Salome HOME
fix archive not found in product
[tools/sat.git] / data / templates / PythonComponent / configure
1 #! /bin/bash
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for Salome2 Project :sat:{PYCMP} module 6.3.0.
4 #
5 # Report bugs to <webmaster.salome@opencascade.com>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in
26   *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44   echo "#! /bin/bash" >conf$$.sh
45   echo  "exit 0"   >>conf$$.sh
46   chmod +x conf$$.sh
47   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48     PATH_SEPARATOR=';'
49   else
50     PATH_SEPARATOR=:
51   fi
52   rm -f conf$$.sh
53 fi
54
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57   as_unset=unset
58 else
59   as_unset=false
60 fi
61
62
63 # IFS
64 # We need space, tab and new line, in precisely that order.  Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
68 as_nl='
69 '
70 IFS=" ""        $as_nl"
71
72 # Find who we are.  Look in the path if we contain no directory separator.
73 case $0 in
74   *[\\/]* ) as_myself=$0 ;;
75   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
77 do
78   IFS=$as_save_IFS
79   test -z "$as_dir" && as_dir=.
80   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
83
84      ;;
85 esac
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
89   as_myself=$0
90 fi
91 if test ! -f "$as_myself"; then
92   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93   { (exit 1); exit 1; }
94 fi
95
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
103
104 # NLS nuisances.
105 for as_var in \
106   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108   LC_TELEPHONE LC_TIME
109 do
110   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111     eval $as_var=C; export $as_var
112   else
113     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114   fi
115 done
116
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119    test "X`expr 00001 : '.*\(...\)'`" = X001; then
120   as_expr=expr
121 else
122   as_expr=false
123 fi
124
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126   as_basename=basename
127 else
128   as_basename=false
129 fi
130
131
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135          X"$0" : 'X\(//\)$' \| \
136          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo X/"$0" |
138     sed '/^.*\/\([^/][^/]*\)\/*$/{
139             s//\1/
140             q
141           }
142           /^X\/\(\/\/\)$/{
143             s//\1/
144             q
145           }
146           /^X\/\(\/\).*/{
147             s//\1/
148             q
149           }
150           s/.*/./; q'`
151
152 # CDPATH.
153 $as_unset CDPATH
154
155
156 if test "x$CONFIG_SHELL" = x; then
157   if (eval ":") 2>/dev/null; then
158   as_have_required=yes
159 else
160   as_have_required=no
161 fi
162
163   if test $as_have_required = yes &&     (eval ":
164 (as_func_return () {
165   (exit \$1)
166 }
167 as_func_success () {
168   as_func_return 0
169 }
170 as_func_failure () {
171   as_func_return 1
172 }
173 as_func_ret_success () {
174   return 0
175 }
176 as_func_ret_failure () {
177   return 1
178 }
179
180 exitcode=0
181 if as_func_success; then
182   :
183 else
184   exitcode=1
185   echo as_func_success failed.
186 fi
187
188 if as_func_failure; then
189   exitcode=1
190   echo as_func_failure succeeded.
191 fi
192
193 if as_func_ret_success; then
194   :
195 else
196   exitcode=1
197   echo as_func_ret_success failed.
198 fi
199
200 if as_func_ret_failure; then
201   exitcode=1
202   echo as_func_ret_failure succeeded.
203 fi
204
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206   :
207 else
208   exitcode=1
209   echo positional parameters were not saved.
210 fi
211
212 test \$exitcode = 0) || { (exit 1); exit 1; }
213
214 (
215   as_lineno_1=\$LINENO
216   as_lineno_2=\$LINENO
217   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
220   :
221 else
222   as_candidate_shells=
223     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 do
226   IFS=$as_save_IFS
227   test -z "$as_dir" && as_dir=.
228   case $as_dir in
229          /*)
230            for as_base in sh bash ksh sh5; do
231              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232            done;;
233        esac
234 done
235 IFS=$as_save_IFS
236
237
238       for as_shell in $as_candidate_shells $SHELL; do
239          # Try only shells that exist, to save several forks.
240          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241                 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243   emulate sh
244   NULLCMD=:
245   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246   # is contrary to our usage.  Disable this feature.
247   alias -g '${1+"$@"}'='"$@"'
248   setopt NO_GLOB_SUBST
249 else
250   case `(set -o) 2>/dev/null` in
251   *posix*) set -o posix ;;
252 esac
253
254 fi
255
256
257 :
258 _ASEOF
259 }; then
260   CONFIG_SHELL=$as_shell
261                as_have_required=yes
262                if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264   emulate sh
265   NULLCMD=:
266   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267   # is contrary to our usage.  Disable this feature.
268   alias -g '${1+"$@"}'='"$@"'
269   setopt NO_GLOB_SUBST
270 else
271   case `(set -o) 2>/dev/null` in
272   *posix*) set -o posix ;;
273 esac
274
275 fi
276
277
278 :
279 (as_func_return () {
280   (exit $1)
281 }
282 as_func_success () {
283   as_func_return 0
284 }
285 as_func_failure () {
286   as_func_return 1
287 }
288 as_func_ret_success () {
289   return 0
290 }
291 as_func_ret_failure () {
292   return 1
293 }
294
295 exitcode=0
296 if as_func_success; then
297   :
298 else
299   exitcode=1
300   echo as_func_success failed.
301 fi
302
303 if as_func_failure; then
304   exitcode=1
305   echo as_func_failure succeeded.
306 fi
307
308 if as_func_ret_success; then
309   :
310 else
311   exitcode=1
312   echo as_func_ret_success failed.
313 fi
314
315 if as_func_ret_failure; then
316   exitcode=1
317   echo as_func_ret_failure succeeded.
318 fi
319
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
321   :
322 else
323   exitcode=1
324   echo positional parameters were not saved.
325 fi
326
327 test $exitcode = 0) || { (exit 1); exit 1; }
328
329 (
330   as_lineno_1=$LINENO
331   as_lineno_2=$LINENO
332   test "x$as_lineno_1" != "x$as_lineno_2" &&
333   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335 _ASEOF
336 }; then
337   break
338 fi
339
340 fi
341
342       done
343
344       if test "x$CONFIG_SHELL" != x; then
345   for as_var in BASH_ENV ENV
346         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347         done
348         export CONFIG_SHELL
349         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350 fi
351
352
353     if test $as_have_required = no; then
354   echo This script requires a shell more modern than all the
355       echo shells that I found on your system.  Please install a
356       echo modern shell, or manually run the script under such a
357       echo shell if you do have one.
358       { (exit 1); exit 1; }
359 fi
360
361
362 fi
363
364 fi
365
366
367
368 (eval "as_func_return () {
369   (exit \$1)
370 }
371 as_func_success () {
372   as_func_return 0
373 }
374 as_func_failure () {
375   as_func_return 1
376 }
377 as_func_ret_success () {
378   return 0
379 }
380 as_func_ret_failure () {
381   return 1
382 }
383
384 exitcode=0
385 if as_func_success; then
386   :
387 else
388   exitcode=1
389   echo as_func_success failed.
390 fi
391
392 if as_func_failure; then
393   exitcode=1
394   echo as_func_failure succeeded.
395 fi
396
397 if as_func_ret_success; then
398   :
399 else
400   exitcode=1
401   echo as_func_ret_success failed.
402 fi
403
404 if as_func_ret_failure; then
405   exitcode=1
406   echo as_func_ret_failure succeeded.
407 fi
408
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410   :
411 else
412   exitcode=1
413   echo positional parameters were not saved.
414 fi
415
416 test \$exitcode = 0") || {
417   echo No shell found that supports shell functions.
418   echo Please tell autoconf@gnu.org about your system,
419   echo including any error possibly output before this
420   echo message
421 }
422
423
424
425   as_lineno_1=$LINENO
426   as_lineno_2=$LINENO
427   test "x$as_lineno_1" != "x$as_lineno_2" &&
428   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431   # uniformly replaced by the line number.  The first 'sed' inserts a
432   # line-number line after each line using $LINENO; the second 'sed'
433   # does the real work.  The second script uses 'N' to pair each
434   # line-number line with the line containing $LINENO, and appends
435   # trailing '-' during substitution so that $LINENO is not a special
436   # case at line end.
437   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438   # scripts with optimization help from Paolo Bonzini.  Blame Lee
439   # E. McMahon (1931-1989) for sed's syntax.  :-)
440   sed -n '
441     p
442     /[$]LINENO/=
443   ' <$as_myself |
444     sed '
445       s/[$]LINENO.*/&-/
446       t lineno
447       b
448       :lineno
449       N
450       :loop
451       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452       t loop
453       s/-\n.*//
454     ' >$as_me.lineno &&
455   chmod +x "$as_me.lineno" ||
456     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457    { (exit 1); exit 1; }; }
458
459   # Don't try to exec as it changes $[0], causing all sort of problems
460   # (the dirname of $[0] is not the place where we might find the
461   # original and so on.  Autoconf is especially sensitive to this).
462   . "./$as_me.lineno"
463   # Exit status is that of the last command.
464   exit
465 }
466
467
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469   as_dirname=dirname
470 else
471   as_dirname=false
472 fi
473
474 ECHO_C= ECHO_N= ECHO_T=
475 case `echo -n x` in
476 -n*)
477   case `echo 'x\c'` in
478   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
479   *)   ECHO_C='\c';;
480   esac;;
481 *)
482   ECHO_N='-n';;
483 esac
484
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486    test "X`expr 00001 : '.*\(...\)'`" = X001; then
487   as_expr=expr
488 else
489   as_expr=false
490 fi
491
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494   rm -f conf$$.dir/conf$$.file
495 else
496   rm -f conf$$.dir
497   mkdir conf$$.dir
498 fi
499 echo >conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
501   as_ln_s='ln -s'
502   # ... but there are two gotchas:
503   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505   # In both cases, we have to default to `cp -p'.
506   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507     as_ln_s='cp -p'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509   as_ln_s=ln
510 else
511   as_ln_s='cp -p'
512 fi
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
515
516 if mkdir -p . 2>/dev/null; then
517   as_mkdir_p=:
518 else
519   test -d ./-p && rmdir ./-p
520   as_mkdir_p=false
521 fi
522
523 if test -x / >/dev/null 2>&1; then
524   as_test_x='test -x'
525 else
526   if ls -dL / >/dev/null 2>&1; then
527     as_ls_L_option=L
528   else
529     as_ls_L_option=
530   fi
531   as_test_x='
532     eval sh -c '\''
533       if test -d "$1"; then
534         test -d "$1/.";
535       else
536         case $1 in
537         -*)set "./$1";;
538         esac;
539         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540         ???[sx]*):;;*)false;;esac;fi
541     '\'' sh
542   '
543 fi
544 as_executable_p=$as_test_x
545
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554
555 # Check that we are running under the correct shell.
556 SHELL=${CONFIG_SHELL-/bin/bash}
557
558 case X$ECHO in
559 X*--fallback-echo)
560   # Remove one level of quotation (which was required for Make).
561   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
562   ;;
563 esac
564
565 echo=${ECHO-echo}
566 if test "X$1" = X--no-reexec; then
567   # Discard the --no-reexec flag, and continue.
568   shift
569 elif test "X$1" = X--fallback-echo; then
570   # Avoid inline document here, it may be left over
571   :
572 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573   # Yippee, $echo works!
574   :
575 else
576   # Restart under the correct shell.
577   exec $SHELL "$0" --no-reexec ${1+"$@"}
578 fi
579
580 if test "X$1" = X--fallback-echo; then
581   # used as fallback echo
582   shift
583   cat <<EOF
584 $*
585 EOF
586   exit 0
587 fi
588
589 # The HP-UX ksh and POSIX shell print the target directory to stdout
590 # if CDPATH is set.
591 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
592
593 if test -z "$ECHO"; then
594 if test "X${echo_test_string+set}" != Xset; then
595 # find a string as large as possible, as long as the shell can cope with it
596   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599        echo_test_string=`eval $cmd` &&
600        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
601     then
602       break
603     fi
604   done
605 fi
606
607 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609    test "X$echo_testing_string" = "X$echo_test_string"; then
610   :
611 else
612   # The Solaris, AIX, and Digital Unix default echo programs unquote
613   # backslashes.  This makes it impossible to quote backslashes using
614   #   echo "$something" | sed 's/\\/\\\\/g'
615   #
616   # So, first we look for a working echo in the user's PATH.
617
618   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619   for dir in $PATH /usr/ucb; do
620     IFS="$lt_save_ifs"
621     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624        test "X$echo_testing_string" = "X$echo_test_string"; then
625       echo="$dir/echo"
626       break
627     fi
628   done
629   IFS="$lt_save_ifs"
630
631   if test "X$echo" = Xecho; then
632     # We didn't find a better echo, so look for alternatives.
633     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635        test "X$echo_testing_string" = "X$echo_test_string"; then
636       # This shell has a builtin print -r that does the trick.
637       echo='print -r'
638     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639          test "X$CONFIG_SHELL" != X/bin/ksh; then
640       # If we have ksh, try running configure again with it.
641       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/bash}
642       export ORIGINAL_CONFIG_SHELL
643       CONFIG_SHELL=/bin/ksh
644       export CONFIG_SHELL
645       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646     else
647       # Try using printf.
648       echo='printf %s\n'
649       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651          test "X$echo_testing_string" = "X$echo_test_string"; then
652         # Cool, printf works
653         :
654       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655            test "X$echo_testing_string" = 'X\t' &&
656            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657            test "X$echo_testing_string" = "X$echo_test_string"; then
658         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
659         export CONFIG_SHELL
660         SHELL="$CONFIG_SHELL"
661         export SHELL
662         echo="$CONFIG_SHELL $0 --fallback-echo"
663       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664            test "X$echo_testing_string" = 'X\t' &&
665            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666            test "X$echo_testing_string" = "X$echo_test_string"; then
667         echo="$CONFIG_SHELL $0 --fallback-echo"
668       else
669         # maybe with a smaller string...
670         prev=:
671
672         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
674           then
675             break
676           fi
677           prev="$cmd"
678         done
679
680         if test "$prev" != 'sed 50q "$0"'; then
681           echo_test_string=`eval $prev`
682           export echo_test_string
683           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/bash}} "$0" ${1+"$@"}
684         else
685           # Oops.  We lost completely, so just stick with echo.
686           echo=echo
687         fi
688       fi
689     fi
690   fi
691 fi
692 fi
693
694 # Copy echo and quote the copy suitably for passing to libtool from
695 # the Makefile, instead of quoting the original, which is used later.
696 ECHO=$echo
697 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
699 fi
700
701
702
703
704 tagnames=${tagnames+${tagnames},}CXX
705
706 tagnames=${tagnames+${tagnames},}F77
707
708 exec 7<&0 </dev/null 6>&1
709
710 # Name of the host.
711 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712 # so uname gets run too.
713 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
714
715 #
716 # Initializations.
717 #
718 ac_default_prefix=/usr/local
719 ac_clean_files=
720 ac_config_libobj_dir=.
721 LIBOBJS=
722 cross_compiling=no
723 subdirs=
724 MFLAGS=
725 MAKEFLAGS=
726 SHELL=${CONFIG_SHELL-/bin/bash}
727
728 # Identity of this package.
729 PACKAGE_NAME='Salome2 Project :sat:{PYCMP} module'
730 PACKAGE_TARNAME='Salome:sat:{PYCMP}'
731 PACKAGE_VERSION='6.3.0'
732 PACKAGE_STRING='Salome2 Project :sat:{PYCMP} module 6.3.0'
733 PACKAGE_BUGREPORT='webmaster.salome@opencascade.com'
734
735 # Factoring default headers for most tests.
736 ac_includes_default="\
737 #include <stdio.h>
738 #ifdef HAVE_SYS_TYPES_H
739 # include <sys/types.h>
740 #endif
741 #ifdef HAVE_SYS_STAT_H
742 # include <sys/stat.h>
743 #endif
744 #ifdef STDC_HEADERS
745 # include <stdlib.h>
746 # include <stddef.h>
747 #else
748 # ifdef HAVE_STDLIB_H
749 #  include <stdlib.h>
750 # endif
751 #endif
752 #ifdef HAVE_STRING_H
753 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
754 #  include <memory.h>
755 # endif
756 # include <string.h>
757 #endif
758 #ifdef HAVE_STRINGS_H
759 # include <strings.h>
760 #endif
761 #ifdef HAVE_INTTYPES_H
762 # include <inttypes.h>
763 #endif
764 #ifdef HAVE_STDINT_H
765 # include <stdint.h>
766 #endif
767 #ifdef HAVE_UNISTD_H
768 # include <unistd.h>
769 #endif"
770
771 ac_subst_vars='SHELL
772 PATH_SEPARATOR
773 PACKAGE_NAME
774 PACKAGE_TARNAME
775 PACKAGE_VERSION
776 PACKAGE_STRING
777 PACKAGE_BUGREPORT
778 exec_prefix
779 prefix
780 program_transform_name
781 bindir
782 sbindir
783 libexecdir
784 datarootdir
785 datadir
786 sysconfdir
787 sharedstatedir
788 localstatedir
789 includedir
790 oldincludedir
791 docdir
792 infodir
793 htmldir
794 dvidir
795 pdfdir
796 psdir
797 libdir
798 localedir
799 mandir
800 DEFS
801 ECHO_C
802 ECHO_N
803 ECHO_T
804 LIBS
805 build_alias
806 host_alias
807 target_alias
808 build
809 build_cpu
810 build_vendor
811 build_os
812 host
813 host_cpu
814 host_vendor
815 host_os
816 target
817 target_cpu
818 target_vendor
819 target_os
820 INSTALL_PROGRAM
821 INSTALL_SCRIPT
822 INSTALL_DATA
823 am__isrc
824 CYGPATH_W
825 PACKAGE
826 VERSION
827 ACLOCAL
828 AUTOCONF
829 AUTOMAKE
830 AUTOHEADER
831 MAKEINFO
832 install_sh
833 STRIP
834 INSTALL_STRIP_PROGRAM
835 mkdir_p
836 AWK
837 SET_MAKE
838 am__leading_dot
839 AMTAR
840 am__tar
841 am__untar
842 XVERSION
843 MODULE_NAME
844 ROOT_SRCDIR
845 ROOT_BUILDDIR
846 AR
847 INSTALL
848 GLOBAL_INSTALL
849 CC
850 CFLAGS
851 LDFLAGS
852 CPPFLAGS
853 ac_ct_CC
854 EXEEXT
855 OBJEXT
856 DEPDIR
857 am__include
858 am__quote
859 AMDEP_TRUE
860 AMDEP_FALSE
861 AMDEPBACKSLASH
862 CCDEPMODE
863 am__fastdepCC_TRUE
864 am__fastdepCC_FALSE
865 GREP
866 EGREP
867 LN_S
868 ECHO
869 RANLIB
870 CPP
871 CXX
872 CXXFLAGS
873 ac_ct_CXX
874 CXXDEPMODE
875 am__fastdepCXX_TRUE
876 am__fastdepCXX_FALSE
877 CXXCPP
878 F77
879 FFLAGS
880 ac_ct_F77
881 LIBTOOL
882 PYTHON
883 LIB_LOCATION_SUFFIX
884 LDEXPDYNFLAGS
885 STDLIB
886 PYTHON_PREFIX
887 PYTHONHOME
888 PYTHON_VERSION
889 PYTHON_INCLUDES
890 PYTHON_LIBS
891 PYTHON_PLATFORM
892 PYTHON_SITE
893 PYTHON_SITE_PACKAGE
894 PYTHON_SITE_EXEC
895 PYTHON_SITE_INSTALL
896 pythondir
897 PYTHON_EXEC_PREFIX
898 pkgpythondir
899 pyexecdir
900 pkgpyexecdir
901 OMNIORB_IDL
902 OMNIORB_ROOT
903 OMNIORB_INCLUDES
904 acx_pthread_config
905 PTHREAD_CC
906 PTHREAD_LIBS
907 PTHREAD_CFLAGS
908 OMNIORB_CXXFLAGS
909 OMNIORB_LIBS
910 OMNIORB_IDLCXXFLAGS
911 OMNIORB_PACOIDLCXXFLAGS
912 OMNIORB_IDLPYFLAGS
913 OMNIORB_IDL_CLN_H
914 OMNIORB_IDL_CLN_CXX
915 OMNIORB_IDL_CLN_OBJ
916 OMNIORB_IDL_SRV_H
917 OMNIORB_IDL_SRV_CXX
918 OMNIORB_IDL_SRV_OBJ
919 OMNIORB_IDL_TIE_H
920 OMNIORB_IDL_TIE_CXX
921 IDL
922 CORBA_ROOT
923 CORBA_INCLUDES
924 CORBA_CXXFLAGS
925 CORBA_LIBS
926 IDLCXXFLAGS
927 PACOIDLCXXFLAGS
928 IDLPYFLAGS
929 IDL_CLN_H
930 IDL_CLN_CXX
931 IDL_CLN_OBJ
932 IDL_SRV_H
933 IDL_SRV_CXX
934 IDL_SRV_OBJ
935 OGL_INCLUDES
936 OGL_LIBS
937 MOC
938 UIC
939 QRCC
940 LRELEASE
941 QTDIR
942 QT_ROOT
943 QT_INCLUDES
944 QT_MT_INCLUDES
945 QT_ASSISTANT_INCLUDES
946 QT_LIB_DIR
947 QT_CORE_LIBS
948 QT_GUI_LIBS
949 QT_OTHER_LIBS
950 QT_LIBS
951 QT_MT_LIBS
952 QT_ASSISTANT_LIBS
953 QT_VERSION
954 QT_VERSION_ID
955 DOXYGEN
956 DOXYGEN_WITH_PYTHON
957 DOXYGEN_PYTHON_EXTENSION
958 DOXYGEN_WITH_STL
959 DOXYGEN_SUPPORT_STL
960 DOT
961 LATEX
962 DVIPS
963 PDFLATEX
964 RST2HTML
965 RST2HTML_IS_OK_TRUE
966 RST2HTML_IS_OK_FALSE
967 TEMP
968 KERNEL_ROOT_DIR
969 KERNEL_SITE_DIR
970 KERNEL_LDFLAGS
971 KERNEL_CXXFLAGS
972 GUI_LDFLAGS
973 GUI_CXXFLAGS
974 GUI_ROOT_DIR
975 CORBA_IN_GUI
976 SETX
977 LIBOBJS
978 LTLIBOBJS'
979 ac_subst_files='CORBA'
980       ac_precious_vars='build_alias
981 host_alias
982 target_alias
983 CC
984 CFLAGS
985 LDFLAGS
986 LIBS
987 CPPFLAGS
988 CPP
989 CXX
990 CXXFLAGS
991 CCC
992 CXXCPP
993 F77
994 FFLAGS'
995
996
997 # Initialize some variables set by options.
998 ac_init_help=
999 ac_init_version=false
1000 # The variables have the same names as the options, with
1001 # dashes changed to underlines.
1002 cache_file=/dev/null
1003 exec_prefix=NONE
1004 no_create=
1005 no_recursion=
1006 prefix=NONE
1007 program_prefix=NONE
1008 program_suffix=NONE
1009 program_transform_name=s,x,x,
1010 silent=
1011 site=
1012 srcdir=
1013 verbose=
1014 x_includes=NONE
1015 x_libraries=NONE
1016
1017 # Installation directory options.
1018 # These are left unexpanded so users can "make install exec_prefix=/foo"
1019 # and all the variables that are supposed to be based on exec_prefix
1020 # by default will actually change.
1021 # Use braces instead of parens because sh, perl, etc. also accept them.
1022 # (The list follows the same order as the GNU Coding Standards.)
1023 bindir='${exec_prefix}/bin'
1024 sbindir='${exec_prefix}/sbin'
1025 libexecdir='${exec_prefix}/libexec'
1026 datarootdir='${prefix}/share'
1027 datadir='${datarootdir}'
1028 sysconfdir='${prefix}/etc'
1029 sharedstatedir='${prefix}/com'
1030 localstatedir='${prefix}/var'
1031 includedir='${prefix}/include'
1032 oldincludedir='/usr/include'
1033 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1034 infodir='${datarootdir}/info'
1035 htmldir='${docdir}'
1036 dvidir='${docdir}'
1037 pdfdir='${docdir}'
1038 psdir='${docdir}'
1039 libdir='${exec_prefix}/lib'
1040 localedir='${datarootdir}/locale'
1041 mandir='${datarootdir}/man'
1042
1043 ac_prev=
1044 ac_dashdash=
1045 for ac_option
1046 do
1047   # If the previous option needs an argument, assign it.
1048   if test -n "$ac_prev"; then
1049     eval $ac_prev=\$ac_option
1050     ac_prev=
1051     continue
1052   fi
1053
1054   case $ac_option in
1055   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1056   *)    ac_optarg=yes ;;
1057   esac
1058
1059   # Accept the important Cygnus configure options, so we can diagnose typos.
1060
1061   case $ac_dashdash$ac_option in
1062   --)
1063     ac_dashdash=yes ;;
1064
1065   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1066     ac_prev=bindir ;;
1067   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1068     bindir=$ac_optarg ;;
1069
1070   -build | --build | --buil | --bui | --bu)
1071     ac_prev=build_alias ;;
1072   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1073     build_alias=$ac_optarg ;;
1074
1075   -cache-file | --cache-file | --cache-fil | --cache-fi \
1076   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1077     ac_prev=cache_file ;;
1078   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1079   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1080     cache_file=$ac_optarg ;;
1081
1082   --config-cache | -C)
1083     cache_file=config.cache ;;
1084
1085   -datadir | --datadir | --datadi | --datad)
1086     ac_prev=datadir ;;
1087   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1088     datadir=$ac_optarg ;;
1089
1090   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1091   | --dataroo | --dataro | --datar)
1092     ac_prev=datarootdir ;;
1093   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1094   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1095     datarootdir=$ac_optarg ;;
1096
1097   -disable-* | --disable-*)
1098     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1099     # Reject names that are not valid shell variable names.
1100     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1101       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1102    { (exit 1); exit 1; }; }
1103     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1104     eval enable_$ac_feature=no ;;
1105
1106   -docdir | --docdir | --docdi | --doc | --do)
1107     ac_prev=docdir ;;
1108   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1109     docdir=$ac_optarg ;;
1110
1111   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1112     ac_prev=dvidir ;;
1113   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1114     dvidir=$ac_optarg ;;
1115
1116   -enable-* | --enable-*)
1117     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1118     # Reject names that are not valid shell variable names.
1119     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1120       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1121    { (exit 1); exit 1; }; }
1122     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1123     eval enable_$ac_feature=\$ac_optarg ;;
1124
1125   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1126   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1127   | --exec | --exe | --ex)
1128     ac_prev=exec_prefix ;;
1129   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1130   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1131   | --exec=* | --exe=* | --ex=*)
1132     exec_prefix=$ac_optarg ;;
1133
1134   -gas | --gas | --ga | --g)
1135     # Obsolete; use --with-gas.
1136     with_gas=yes ;;
1137
1138   -help | --help | --hel | --he | -h)
1139     ac_init_help=long ;;
1140   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1141     ac_init_help=recursive ;;
1142   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1143     ac_init_help=short ;;
1144
1145   -host | --host | --hos | --ho)
1146     ac_prev=host_alias ;;
1147   -host=* | --host=* | --hos=* | --ho=*)
1148     host_alias=$ac_optarg ;;
1149
1150   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1151     ac_prev=htmldir ;;
1152   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1153   | --ht=*)
1154     htmldir=$ac_optarg ;;
1155
1156   -includedir | --includedir | --includedi | --included | --include \
1157   | --includ | --inclu | --incl | --inc)
1158     ac_prev=includedir ;;
1159   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1160   | --includ=* | --inclu=* | --incl=* | --inc=*)
1161     includedir=$ac_optarg ;;
1162
1163   -infodir | --infodir | --infodi | --infod | --info | --inf)
1164     ac_prev=infodir ;;
1165   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1166     infodir=$ac_optarg ;;
1167
1168   -libdir | --libdir | --libdi | --libd)
1169     ac_prev=libdir ;;
1170   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1171     libdir=$ac_optarg ;;
1172
1173   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1174   | --libexe | --libex | --libe)
1175     ac_prev=libexecdir ;;
1176   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1177   | --libexe=* | --libex=* | --libe=*)
1178     libexecdir=$ac_optarg ;;
1179
1180   -localedir | --localedir | --localedi | --localed | --locale)
1181     ac_prev=localedir ;;
1182   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1183     localedir=$ac_optarg ;;
1184
1185   -localstatedir | --localstatedir | --localstatedi | --localstated \
1186   | --localstate | --localstat | --localsta | --localst | --locals)
1187     ac_prev=localstatedir ;;
1188   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1189   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1190     localstatedir=$ac_optarg ;;
1191
1192   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1193     ac_prev=mandir ;;
1194   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1195     mandir=$ac_optarg ;;
1196
1197   -nfp | --nfp | --nf)
1198     # Obsolete; use --without-fp.
1199     with_fp=no ;;
1200
1201   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1202   | --no-cr | --no-c | -n)
1203     no_create=yes ;;
1204
1205   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1206   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1207     no_recursion=yes ;;
1208
1209   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1210   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1211   | --oldin | --oldi | --old | --ol | --o)
1212     ac_prev=oldincludedir ;;
1213   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1214   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1215   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1216     oldincludedir=$ac_optarg ;;
1217
1218   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1219     ac_prev=prefix ;;
1220   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1221     prefix=$ac_optarg ;;
1222
1223   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1224   | --program-pre | --program-pr | --program-p)
1225     ac_prev=program_prefix ;;
1226   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1227   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1228     program_prefix=$ac_optarg ;;
1229
1230   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1231   | --program-suf | --program-su | --program-s)
1232     ac_prev=program_suffix ;;
1233   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1234   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1235     program_suffix=$ac_optarg ;;
1236
1237   -program-transform-name | --program-transform-name \
1238   | --program-transform-nam | --program-transform-na \
1239   | --program-transform-n | --program-transform- \
1240   | --program-transform | --program-transfor \
1241   | --program-transfo | --program-transf \
1242   | --program-trans | --program-tran \
1243   | --progr-tra | --program-tr | --program-t)
1244     ac_prev=program_transform_name ;;
1245   -program-transform-name=* | --program-transform-name=* \
1246   | --program-transform-nam=* | --program-transform-na=* \
1247   | --program-transform-n=* | --program-transform-=* \
1248   | --program-transform=* | --program-transfor=* \
1249   | --program-transfo=* | --program-transf=* \
1250   | --program-trans=* | --program-tran=* \
1251   | --progr-tra=* | --program-tr=* | --program-t=*)
1252     program_transform_name=$ac_optarg ;;
1253
1254   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1255     ac_prev=pdfdir ;;
1256   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1257     pdfdir=$ac_optarg ;;
1258
1259   -psdir | --psdir | --psdi | --psd | --ps)
1260     ac_prev=psdir ;;
1261   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1262     psdir=$ac_optarg ;;
1263
1264   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1265   | -silent | --silent | --silen | --sile | --sil)
1266     silent=yes ;;
1267
1268   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1269     ac_prev=sbindir ;;
1270   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1271   | --sbi=* | --sb=*)
1272     sbindir=$ac_optarg ;;
1273
1274   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1275   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1276   | --sharedst | --shareds | --shared | --share | --shar \
1277   | --sha | --sh)
1278     ac_prev=sharedstatedir ;;
1279   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1280   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1281   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1282   | --sha=* | --sh=*)
1283     sharedstatedir=$ac_optarg ;;
1284
1285   -site | --site | --sit)
1286     ac_prev=site ;;
1287   -site=* | --site=* | --sit=*)
1288     site=$ac_optarg ;;
1289
1290   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1291     ac_prev=srcdir ;;
1292   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1293     srcdir=$ac_optarg ;;
1294
1295   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1296   | --syscon | --sysco | --sysc | --sys | --sy)
1297     ac_prev=sysconfdir ;;
1298   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1299   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1300     sysconfdir=$ac_optarg ;;
1301
1302   -target | --target | --targe | --targ | --tar | --ta | --t)
1303     ac_prev=target_alias ;;
1304   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1305     target_alias=$ac_optarg ;;
1306
1307   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1308     verbose=yes ;;
1309
1310   -version | --version | --versio | --versi | --vers | -V)
1311     ac_init_version=: ;;
1312
1313   -with-* | --with-*)
1314     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1315     # Reject names that are not valid shell variable names.
1316     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1317       { echo "$as_me: error: invalid package name: $ac_package" >&2
1318    { (exit 1); exit 1; }; }
1319     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1320     eval with_$ac_package=\$ac_optarg ;;
1321
1322   -without-* | --without-*)
1323     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1324     # Reject names that are not valid shell variable names.
1325     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1326       { echo "$as_me: error: invalid package name: $ac_package" >&2
1327    { (exit 1); exit 1; }; }
1328     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1329     eval with_$ac_package=no ;;
1330
1331   --x)
1332     # Obsolete; use --with-x.
1333     with_x=yes ;;
1334
1335   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1336   | --x-incl | --x-inc | --x-in | --x-i)
1337     ac_prev=x_includes ;;
1338   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1339   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1340     x_includes=$ac_optarg ;;
1341
1342   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1343   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1344     ac_prev=x_libraries ;;
1345   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1346   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1347     x_libraries=$ac_optarg ;;
1348
1349   -*) { echo "$as_me: error: unrecognized option: $ac_option
1350 Try \`$0 --help' for more information." >&2
1351    { (exit 1); exit 1; }; }
1352     ;;
1353
1354   *=*)
1355     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1356     # Reject names that are not valid shell variable names.
1357     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1358       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1359    { (exit 1); exit 1; }; }
1360     eval $ac_envvar=\$ac_optarg
1361     export $ac_envvar ;;
1362
1363   *)
1364     # FIXME: should be removed in autoconf 3.0.
1365     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1366     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1367       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1368     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1369     ;;
1370
1371   esac
1372 done
1373
1374 if test -n "$ac_prev"; then
1375   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1376   { echo "$as_me: error: missing argument to $ac_option" >&2
1377    { (exit 1); exit 1; }; }
1378 fi
1379
1380 # Be sure to have absolute directory names.
1381 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1382                 datadir sysconfdir sharedstatedir localstatedir includedir \
1383                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1384                 libdir localedir mandir
1385 do
1386   eval ac_val=\$$ac_var
1387   case $ac_val in
1388     [\\/$]* | ?:[\\/]* )  continue;;
1389     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1390   esac
1391   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1392    { (exit 1); exit 1; }; }
1393 done
1394
1395 # There might be people who depend on the old broken behavior: `$host'
1396 # used to hold the argument of --host etc.
1397 # FIXME: To remove some day.
1398 build=$build_alias
1399 host=$host_alias
1400 target=$target_alias
1401
1402 # FIXME: To remove some day.
1403 if test "x$host_alias" != x; then
1404   if test "x$build_alias" = x; then
1405     cross_compiling=maybe
1406     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1407     If a cross compiler is detected then cross compile mode will be used." >&2
1408   elif test "x$build_alias" != "x$host_alias"; then
1409     cross_compiling=yes
1410   fi
1411 fi
1412
1413 ac_tool_prefix=
1414 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1415
1416 test "$silent" = yes && exec 6>/dev/null
1417
1418
1419 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1420 ac_ls_di=`ls -di .` &&
1421 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1422   { echo "$as_me: error: Working directory cannot be determined" >&2
1423    { (exit 1); exit 1; }; }
1424 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1425   { echo "$as_me: error: pwd does not report name of working directory" >&2
1426    { (exit 1); exit 1; }; }
1427
1428
1429 # Find the source files, if location was not specified.
1430 if test -z "$srcdir"; then
1431   ac_srcdir_defaulted=yes
1432   # Try the directory containing this script, then the parent directory.
1433   ac_confdir=`$as_dirname -- "$0" ||
1434 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1435          X"$0" : 'X\(//\)[^/]' \| \
1436          X"$0" : 'X\(//\)$' \| \
1437          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1438 echo X"$0" |
1439     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1440             s//\1/
1441             q
1442           }
1443           /^X\(\/\/\)[^/].*/{
1444             s//\1/
1445             q
1446           }
1447           /^X\(\/\/\)$/{
1448             s//\1/
1449             q
1450           }
1451           /^X\(\/\).*/{
1452             s//\1/
1453             q
1454           }
1455           s/.*/./; q'`
1456   srcdir=$ac_confdir
1457   if test ! -r "$srcdir/$ac_unique_file"; then
1458     srcdir=..
1459   fi
1460 else
1461   ac_srcdir_defaulted=no
1462 fi
1463 if test ! -r "$srcdir/$ac_unique_file"; then
1464   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1465   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1466    { (exit 1); exit 1; }; }
1467 fi
1468 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1469 ac_abs_confdir=`(
1470         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1471    { (exit 1); exit 1; }; }
1472         pwd)`
1473 # When building in place, set srcdir=.
1474 if test "$ac_abs_confdir" = "$ac_pwd"; then
1475   srcdir=.
1476 fi
1477 # Remove unnecessary trailing slashes from srcdir.
1478 # Double slashes in file names in object file debugging info
1479 # mess up M-x gdb in Emacs.
1480 case $srcdir in
1481 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1482 esac
1483 for ac_var in $ac_precious_vars; do
1484   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1485   eval ac_env_${ac_var}_value=\$${ac_var}
1486   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1487   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1488 done
1489
1490 #
1491 # Report the --help message.
1492 #
1493 if test "$ac_init_help" = "long"; then
1494   # Omit some internal or obsolete options to make the list less imposing.
1495   # This message is too long to be a string in the A/UX 3.1 sh.
1496   cat <<_ACEOF
1497 \`configure' configures Salome2 Project :sat:{PYCMP} module 6.3.0 to adapt to many kinds of systems.
1498
1499 Usage: $0 [OPTION]... [VAR=VALUE]...
1500
1501 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1502 VAR=VALUE.  See below for descriptions of some of the useful variables.
1503
1504 Defaults for the options are specified in brackets.
1505
1506 Configuration:
1507   -h, --help              display this help and exit
1508       --help=short        display options specific to this package
1509       --help=recursive    display the short help of all the included packages
1510   -V, --version           display version information and exit
1511   -q, --quiet, --silent   do not print \`checking...' messages
1512       --cache-file=FILE   cache test results in FILE [disabled]
1513   -C, --config-cache      alias for \`--cache-file=config.cache'
1514   -n, --no-create         do not create output files
1515       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1516
1517 Installation directories:
1518   --prefix=PREFIX         install architecture-independent files in PREFIX
1519                           [$ac_default_prefix]
1520   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1521                           [PREFIX]
1522
1523 By default, \`make install' will install all the files in
1524 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1525 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1526 for instance \`--prefix=\$HOME'.
1527
1528 For better control, use the options below.
1529
1530 Fine tuning of the installation directories:
1531   --bindir=DIR           user executables [EPREFIX/bin]
1532   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1533   --libexecdir=DIR       program executables [EPREFIX/libexec]
1534   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1535   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1536   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1537   --libdir=DIR           object code libraries [EPREFIX/lib]
1538   --includedir=DIR       C header files [PREFIX/include]
1539   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1540   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1541   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1542   --infodir=DIR          info documentation [DATAROOTDIR/info]
1543   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1544   --mandir=DIR           man documentation [DATAROOTDIR/man]
1545   --docdir=DIR           documentation root [DATAROOTDIR/doc/Salome:sat:{PYCMP}]
1546   --htmldir=DIR          html documentation [DOCDIR]
1547   --dvidir=DIR           dvi documentation [DOCDIR]
1548   --pdfdir=DIR           pdf documentation [DOCDIR]
1549   --psdir=DIR            ps documentation [DOCDIR]
1550 _ACEOF
1551
1552   cat <<\_ACEOF
1553
1554 Program names:
1555   --program-prefix=PREFIX            prepend PREFIX to installed program names
1556   --program-suffix=SUFFIX            append SUFFIX to installed program names
1557   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1558
1559 System types:
1560   --build=BUILD     configure for building on BUILD [guessed]
1561   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1562   --target=TARGET   configure for building compilers for TARGET [HOST]
1563 _ACEOF
1564 fi
1565
1566 if test -n "$ac_init_help"; then
1567   case $ac_init_help in
1568      short | recursive ) echo "Configuration of Salome2 Project :sat:{PYCMP} module 6.3.0:";;
1569    esac
1570   cat <<\_ACEOF
1571
1572 Optional Features:
1573   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1574   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1575   --enable-debug          build with debug and trace information [default=yes]
1576   --enable-production     compile in optimized mode [default=no]
1577   --enable-static[=PKGS]  build static libraries [default=no]
1578   --enable-shared[=PKGS]  build shared libraries [default=yes]
1579   --enable-fast-install[=PKGS]
1580                           optimize for fast installation [default=yes]
1581   --disable-dependency-tracking  speeds up one-time build
1582   --enable-dependency-tracking   do not reject slow dependency extractors
1583   --disable-libtool-lock  avoid locking (might break parallel builds)
1584
1585 Optional Packages:
1586   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1587   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1588   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1589   --with-pic              try to use only PIC/non-PIC objects [default=use
1590                           both]
1591   --with-tags[=TAGS]      include additional configurations [automatic]
1592   --with-python=DIR       root directory path of python installation
1593   --with-python-site=DIR  Use DIR for installing platform independent Python
1594                           site-packages
1595   --with-python-site-exec=DIR
1596                           Use DIR for installing platform dependent Python
1597                           site-packages
1598   --with-opengl=DIR       root directory path of OpenGL installation
1599   --with-qt               Possible usage: "Qt_Install_Path" - prefix to path
1600                           where Qt was installd; "" or "yes" or "auto" - means
1601                           seaching installed Qt product in the system
1602                           (checking $QTDIR and then - standard system paths );
1603                           "no" - not use Qt product (is not supported) By
1604                           default "" option is used)
1605 --with-kernel=DIR  root directory path of KERNEL build or installation
1606 --with-gui=DIR root directory path of SALOME GUI installation
1607
1608 Some influential environment variables:
1609   CC          C compiler command
1610   CFLAGS      C compiler flags
1611   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1612               nonstandard directory <lib dir>
1613   LIBS        libraries to pass to the linker, e.g. -l<library>
1614   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1615               you have headers in a nonstandard directory <include dir>
1616   CPP         C preprocessor
1617   CXX         C++ compiler command
1618   CXXFLAGS    C++ compiler flags
1619   CXXCPP      C++ preprocessor
1620   F77         Fortran 77 compiler command
1621   FFLAGS      Fortran 77 compiler flags
1622
1623 Use these variables to override the choices made by `configure' or to help
1624 it to find libraries and programs with nonstandard names/locations.
1625
1626 Report bugs to <webmaster.salome@opencascade.com>.
1627 _ACEOF
1628 ac_status=$?
1629 fi
1630
1631 if test "$ac_init_help" = "recursive"; then
1632   # If there are subdirs, report their specific --help.
1633   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1634     test -d "$ac_dir" || continue
1635     ac_builddir=.
1636
1637 case "$ac_dir" in
1638 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1639 *)
1640   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1641   # A ".." for each directory in $ac_dir_suffix.
1642   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1643   case $ac_top_builddir_sub in
1644   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1645   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1646   esac ;;
1647 esac
1648 ac_abs_top_builddir=$ac_pwd
1649 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1650 # for backward compatibility:
1651 ac_top_builddir=$ac_top_build_prefix
1652
1653 case $srcdir in
1654   .)  # We are building in place.
1655     ac_srcdir=.
1656     ac_top_srcdir=$ac_top_builddir_sub
1657     ac_abs_top_srcdir=$ac_pwd ;;
1658   [\\/]* | ?:[\\/]* )  # Absolute name.
1659     ac_srcdir=$srcdir$ac_dir_suffix;
1660     ac_top_srcdir=$srcdir
1661     ac_abs_top_srcdir=$srcdir ;;
1662   *) # Relative name.
1663     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1664     ac_top_srcdir=$ac_top_build_prefix$srcdir
1665     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1666 esac
1667 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1668
1669     cd "$ac_dir" || { ac_status=$?; continue; }
1670     # Check for guested configure.
1671     if test -f "$ac_srcdir/configure.gnu"; then
1672       echo &&
1673       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1674     elif test -f "$ac_srcdir/configure"; then
1675       echo &&
1676       $SHELL "$ac_srcdir/configure" --help=recursive
1677     else
1678       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1679     fi || ac_status=$?
1680     cd "$ac_pwd" || { ac_status=$?; break; }
1681   done
1682 fi
1683
1684 test -n "$ac_init_help" && exit $ac_status
1685 if $ac_init_version; then
1686   cat <<\_ACEOF
1687 Salome2 Project :sat:{PYCMP} module configure 6.3.0
1688 generated by GNU Autoconf 2.61
1689
1690 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1691 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1692 This configure script is free software; the Free Software Foundation
1693 gives unlimited permission to copy, distribute and modify it.
1694 _ACEOF
1695   exit
1696 fi
1697 cat >config.log <<_ACEOF
1698 This file contains any messages produced by compilers while
1699 running configure, to aid debugging if configure makes a mistake.
1700
1701 It was created by Salome2 Project :sat:{PYCMP} module $as_me 6.3.0, which was
1702 generated by GNU Autoconf 2.61.  Invocation command line was
1703
1704   $ $0 $@
1705
1706 _ACEOF
1707 exec 5>>config.log
1708 {
1709 cat <<_ASUNAME
1710 ## --------- ##
1711 ## Platform. ##
1712 ## --------- ##
1713
1714 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1715 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1716 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1717 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1718 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1719
1720 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1721 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1722
1723 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1724 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1725 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1726 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1727 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1728 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1729 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1730
1731 _ASUNAME
1732
1733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1734 for as_dir in $PATH
1735 do
1736   IFS=$as_save_IFS
1737   test -z "$as_dir" && as_dir=.
1738   echo "PATH: $as_dir"
1739 done
1740 IFS=$as_save_IFS
1741
1742 } >&5
1743
1744 cat >&5 <<_ACEOF
1745
1746
1747 ## ----------- ##
1748 ## Core tests. ##
1749 ## ----------- ##
1750
1751 _ACEOF
1752
1753
1754 # Keep a trace of the command line.
1755 # Strip out --no-create and --no-recursion so they do not pile up.
1756 # Strip out --silent because we don't want to record it for future runs.
1757 # Also quote any args containing shell meta-characters.
1758 # Make two passes to allow for proper duplicate-argument suppression.
1759 ac_configure_args=
1760 ac_configure_args0=
1761 ac_configure_args1=
1762 ac_must_keep_next=false
1763 for ac_pass in 1 2
1764 do
1765   for ac_arg
1766   do
1767     case $ac_arg in
1768     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1769     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1770     | -silent | --silent | --silen | --sile | --sil)
1771       continue ;;
1772     *\'*)
1773       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1774     esac
1775     case $ac_pass in
1776     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1777     2)
1778       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1779       if test $ac_must_keep_next = true; then
1780         ac_must_keep_next=false # Got value, back to normal.
1781       else
1782         case $ac_arg in
1783           *=* | --config-cache | -C | -disable-* | --disable-* \
1784           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1785           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1786           | -with-* | --with-* | -without-* | --without-* | --x)
1787             case "$ac_configure_args0 " in
1788               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1789             esac
1790             ;;
1791           -* ) ac_must_keep_next=true ;;
1792         esac
1793       fi
1794       ac_configure_args="$ac_configure_args '$ac_arg'"
1795       ;;
1796     esac
1797   done
1798 done
1799 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1800 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1801
1802 # When interrupted or exit'd, cleanup temporary files, and complete
1803 # config.log.  We remove comments because anyway the quotes in there
1804 # would cause problems or look ugly.
1805 # WARNING: Use '\'' to represent an apostrophe within the trap.
1806 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1807 trap 'exit_status=$?
1808   # Save into config.log some information that might help in debugging.
1809   {
1810     echo
1811
1812     cat <<\_ASBOX
1813 ## ---------------- ##
1814 ## Cache variables. ##
1815 ## ---------------- ##
1816 _ASBOX
1817     echo
1818     # The following way of writing the cache mishandles newlines in values,
1819 (
1820   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1821     eval ac_val=\$$ac_var
1822     case $ac_val in #(
1823     *${as_nl}*)
1824       case $ac_var in #(
1825       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1826 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1827       esac
1828       case $ac_var in #(
1829       _ | IFS | as_nl) ;; #(
1830       *) $as_unset $ac_var ;;
1831       esac ;;
1832     esac
1833   done
1834   (set) 2>&1 |
1835     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1836     *${as_nl}ac_space=\ *)
1837       sed -n \
1838         "s/'\''/'\''\\\\'\'''\''/g;
1839           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1840       ;; #(
1841     *)
1842       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1843       ;;
1844     esac |
1845     sort
1846 )
1847     echo
1848
1849     cat <<\_ASBOX
1850 ## ----------------- ##
1851 ## Output variables. ##
1852 ## ----------------- ##
1853 _ASBOX
1854     echo
1855     for ac_var in $ac_subst_vars
1856     do
1857       eval ac_val=\$$ac_var
1858       case $ac_val in
1859       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1860       esac
1861       echo "$ac_var='\''$ac_val'\''"
1862     done | sort
1863     echo
1864
1865     if test -n "$ac_subst_files"; then
1866       cat <<\_ASBOX
1867 ## ------------------- ##
1868 ## File substitutions. ##
1869 ## ------------------- ##
1870 _ASBOX
1871       echo
1872       for ac_var in $ac_subst_files
1873       do
1874         eval ac_val=\$$ac_var
1875         case $ac_val in
1876         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1877         esac
1878         echo "$ac_var='\''$ac_val'\''"
1879       done | sort
1880       echo
1881     fi
1882
1883     if test -s confdefs.h; then
1884       cat <<\_ASBOX
1885 ## ----------- ##
1886 ## confdefs.h. ##
1887 ## ----------- ##
1888 _ASBOX
1889       echo
1890       cat confdefs.h
1891       echo
1892     fi
1893     test "$ac_signal" != 0 &&
1894       echo "$as_me: caught signal $ac_signal"
1895     echo "$as_me: exit $exit_status"
1896   } >&5
1897   rm -f core *.core core.conftest.* &&
1898     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1899     exit $exit_status
1900 ' 0
1901 for ac_signal in 1 2 13 15; do
1902   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1903 done
1904 ac_signal=0
1905
1906 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1907 rm -f -r conftest* confdefs.h
1908
1909 # Predefined preprocessor variables.
1910
1911 cat >>confdefs.h <<_ACEOF
1912 #define PACKAGE_NAME "$PACKAGE_NAME"
1913 _ACEOF
1914
1915
1916 cat >>confdefs.h <<_ACEOF
1917 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1918 _ACEOF
1919
1920
1921 cat >>confdefs.h <<_ACEOF
1922 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1923 _ACEOF
1924
1925
1926 cat >>confdefs.h <<_ACEOF
1927 #define PACKAGE_STRING "$PACKAGE_STRING"
1928 _ACEOF
1929
1930
1931 cat >>confdefs.h <<_ACEOF
1932 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1933 _ACEOF
1934
1935
1936 # Let the site file select an alternate cache file if it wants to.
1937 # Prefer explicitly selected file to automatically selected ones.
1938 if test -n "$CONFIG_SITE"; then
1939   set x "$CONFIG_SITE"
1940 elif test "x$prefix" != xNONE; then
1941   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1942 else
1943   set x "$ac_default_prefix/share/config.site" \
1944         "$ac_default_prefix/etc/config.site"
1945 fi
1946 shift
1947 for ac_site_file
1948 do
1949   if test -r "$ac_site_file"; then
1950     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1951 echo "$as_me: loading site script $ac_site_file" >&6;}
1952     sed 's/^/| /' "$ac_site_file" >&5
1953     . "$ac_site_file"
1954   fi
1955 done
1956
1957 if test -r "$cache_file"; then
1958   # Some versions of bash will fail to source /dev/null (special
1959   # files actually), so we avoid doing that.
1960   if test -f "$cache_file"; then
1961     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1962 echo "$as_me: loading cache $cache_file" >&6;}
1963     case $cache_file in
1964       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1965       *)                      . "./$cache_file";;
1966     esac
1967   fi
1968 else
1969   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1970 echo "$as_me: creating cache $cache_file" >&6;}
1971   >$cache_file
1972 fi
1973
1974 # Check that the precious variables saved in the cache have kept the same
1975 # value.
1976 ac_cache_corrupted=false
1977 for ac_var in $ac_precious_vars; do
1978   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1979   eval ac_new_set=\$ac_env_${ac_var}_set
1980   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1981   eval ac_new_val=\$ac_env_${ac_var}_value
1982   case $ac_old_set,$ac_new_set in
1983     set,)
1984       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1985 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1986       ac_cache_corrupted=: ;;
1987     ,set)
1988       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1989 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1990       ac_cache_corrupted=: ;;
1991     ,);;
1992     *)
1993       if test "x$ac_old_val" != "x$ac_new_val"; then
1994         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1995 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1996         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1997 echo "$as_me:   former value:  $ac_old_val" >&2;}
1998         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1999 echo "$as_me:   current value: $ac_new_val" >&2;}
2000         ac_cache_corrupted=:
2001       fi;;
2002   esac
2003   # Pass precious variables to config.status.
2004   if test "$ac_new_set" = set; then
2005     case $ac_new_val in
2006     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2007     *) ac_arg=$ac_var=$ac_new_val ;;
2008     esac
2009     case " $ac_configure_args " in
2010       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2011       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2012     esac
2013   fi
2014 done
2015 if $ac_cache_corrupted; then
2016   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2017 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2018   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2019 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2020    { (exit 1); exit 1; }; }
2021 fi
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047 ac_ext=c
2048 ac_cpp='$CPP $CPPFLAGS'
2049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2052
2053
2054 ac_aux_dir=
2055 for ac_dir in adm_local/unix/config_files "$srcdir"/adm_local/unix/config_files; do
2056   if test -f "$ac_dir/install-sh"; then
2057     ac_aux_dir=$ac_dir
2058     ac_install_sh="$ac_aux_dir/install-sh -c"
2059     break
2060   elif test -f "$ac_dir/install.sh"; then
2061     ac_aux_dir=$ac_dir
2062     ac_install_sh="$ac_aux_dir/install.sh -c"
2063     break
2064   elif test -f "$ac_dir/shtool"; then
2065     ac_aux_dir=$ac_dir
2066     ac_install_sh="$ac_aux_dir/shtool install -c"
2067     break
2068   fi
2069 done
2070 if test -z "$ac_aux_dir"; then
2071   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in adm_local/unix/config_files \"$srcdir\"/adm_local/unix/config_files" >&5
2072 echo "$as_me: error: cannot find install-sh or install.sh in adm_local/unix/config_files \"$srcdir\"/adm_local/unix/config_files" >&2;}
2073    { (exit 1); exit 1; }; }
2074 fi
2075
2076 # These three variables are undocumented and unsupported,
2077 # and are intended to be withdrawn in a future Autoconf release.
2078 # They can cause serious problems if a builder's source tree is in a directory
2079 # whose full name contains unusual characters.
2080 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2081 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2082 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2083
2084
2085 # Make sure we can run config.sub.
2086 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2087   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2088 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2089    { (exit 1); exit 1; }; }
2090
2091 { echo "$as_me:$LINENO: checking build system type" >&5
2092 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2093 if test "${ac_cv_build+set}" = set; then
2094   echo $ECHO_N "(cached) $ECHO_C" >&6
2095 else
2096   ac_build_alias=$build_alias
2097 test "x$ac_build_alias" = x &&
2098   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2099 test "x$ac_build_alias" = x &&
2100   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2101 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2102    { (exit 1); exit 1; }; }
2103 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2104   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2105 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2106    { (exit 1); exit 1; }; }
2107
2108 fi
2109 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2110 echo "${ECHO_T}$ac_cv_build" >&6; }
2111 case $ac_cv_build in
2112 *-*-*) ;;
2113 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2114 echo "$as_me: error: invalid value of canonical build" >&2;}
2115    { (exit 1); exit 1; }; };;
2116 esac
2117 build=$ac_cv_build
2118 ac_save_IFS=$IFS; IFS='-'
2119 set x $ac_cv_build
2120 shift
2121 build_cpu=$1
2122 build_vendor=$2
2123 shift; shift
2124 # Remember, the first character of IFS is used to create $*,
2125 # except with old shells:
2126 build_os=$*
2127 IFS=$ac_save_IFS
2128 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2129
2130
2131 { echo "$as_me:$LINENO: checking host system type" >&5
2132 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2133 if test "${ac_cv_host+set}" = set; then
2134   echo $ECHO_N "(cached) $ECHO_C" >&6
2135 else
2136   if test "x$host_alias" = x; then
2137   ac_cv_host=$ac_cv_build
2138 else
2139   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2140     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2141 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2142    { (exit 1); exit 1; }; }
2143 fi
2144
2145 fi
2146 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2147 echo "${ECHO_T}$ac_cv_host" >&6; }
2148 case $ac_cv_host in
2149 *-*-*) ;;
2150 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2151 echo "$as_me: error: invalid value of canonical host" >&2;}
2152    { (exit 1); exit 1; }; };;
2153 esac
2154 host=$ac_cv_host
2155 ac_save_IFS=$IFS; IFS='-'
2156 set x $ac_cv_host
2157 shift
2158 host_cpu=$1
2159 host_vendor=$2
2160 shift; shift
2161 # Remember, the first character of IFS is used to create $*,
2162 # except with old shells:
2163 host_os=$*
2164 IFS=$ac_save_IFS
2165 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2166
2167
2168 { echo "$as_me:$LINENO: checking target system type" >&5
2169 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2170 if test "${ac_cv_target+set}" = set; then
2171   echo $ECHO_N "(cached) $ECHO_C" >&6
2172 else
2173   if test "x$target_alias" = x; then
2174   ac_cv_target=$ac_cv_host
2175 else
2176   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2177     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2178 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2179    { (exit 1); exit 1; }; }
2180 fi
2181
2182 fi
2183 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2184 echo "${ECHO_T}$ac_cv_target" >&6; }
2185 case $ac_cv_target in
2186 *-*-*) ;;
2187 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2188 echo "$as_me: error: invalid value of canonical target" >&2;}
2189    { (exit 1); exit 1; }; };;
2190 esac
2191 target=$ac_cv_target
2192 ac_save_IFS=$IFS; IFS='-'
2193 set x $ac_cv_target
2194 shift
2195 target_cpu=$1
2196 target_vendor=$2
2197 shift; shift
2198 # Remember, the first character of IFS is used to create $*,
2199 # except with old shells:
2200 target_os=$*
2201 IFS=$ac_save_IFS
2202 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2203
2204
2205 # The aliases save the names the user supplied, while $host etc.
2206 # will get canonicalized.
2207 test -n "$target_alias" &&
2208   test "$program_prefix$program_suffix$program_transform_name" = \
2209     NONENONEs,x,x, &&
2210   program_prefix=${target_alias}-
2211 am__api_version='1.10'
2212
2213 # Find a good install program.  We prefer a C program (faster),
2214 # so one script is as good as another.  But avoid the broken or
2215 # incompatible versions:
2216 # SysV /etc/install, /usr/sbin/install
2217 # SunOS /usr/etc/install
2218 # IRIX /sbin/install
2219 # AIX /bin/install
2220 # AmigaOS /C/install, which installs bootblocks on floppy discs
2221 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2222 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2223 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2224 # OS/2's system install, which has a completely different semantic
2225 # ./install, which can be erroneously created by make from ./install.sh.
2226 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2227 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2228 if test -z "$INSTALL"; then
2229 if test "${ac_cv_path_install+set}" = set; then
2230   echo $ECHO_N "(cached) $ECHO_C" >&6
2231 else
2232   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2233 for as_dir in $PATH
2234 do
2235   IFS=$as_save_IFS
2236   test -z "$as_dir" && as_dir=.
2237   # Account for people who put trailing slashes in PATH elements.
2238 case $as_dir/ in
2239   ./ | .// | /cC/* | \
2240   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2241   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2242   /usr/ucb/* ) ;;
2243   *)
2244     # OSF1 and SCO ODT 3.0 have their own names for install.
2245     # Don't use installbsd from OSF since it installs stuff as root
2246     # by default.
2247     for ac_prog in ginstall scoinst install; do
2248       for ac_exec_ext in '' $ac_executable_extensions; do
2249         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2250           if test $ac_prog = install &&
2251             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2252             # AIX install.  It has an incompatible calling convention.
2253             :
2254           elif test $ac_prog = install &&
2255             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2256             # program-specific install script used by HP pwplus--don't use.
2257             :
2258           else
2259             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2260             break 3
2261           fi
2262         fi
2263       done
2264     done
2265     ;;
2266 esac
2267 done
2268 IFS=$as_save_IFS
2269
2270
2271 fi
2272   if test "${ac_cv_path_install+set}" = set; then
2273     INSTALL=$ac_cv_path_install
2274   else
2275     # As a last resort, use the slow shell script.  Don't cache a
2276     # value for INSTALL within a source directory, because that will
2277     # break other packages using the cache if that directory is
2278     # removed, or if the value is a relative name.
2279     INSTALL=$ac_install_sh
2280   fi
2281 fi
2282 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2283 echo "${ECHO_T}$INSTALL" >&6; }
2284
2285 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2286 # It thinks the first close brace ends the variable substitution.
2287 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2288
2289 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2290
2291 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2292
2293 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2294 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2295 # Just in case
2296 sleep 1
2297 echo timestamp > conftest.file
2298 # Do `set' in a subshell so we don't clobber the current shell's
2299 # arguments.  Must try -L first in case configure is actually a
2300 # symlink; some systems play weird games with the mod time of symlinks
2301 # (eg FreeBSD returns the mod time of the symlink's containing
2302 # directory).
2303 if (
2304    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2305    if test "$*" = "X"; then
2306       # -L didn't work.
2307       set X `ls -t $srcdir/configure conftest.file`
2308    fi
2309    rm -f conftest.file
2310    if test "$*" != "X $srcdir/configure conftest.file" \
2311       && test "$*" != "X conftest.file $srcdir/configure"; then
2312
2313       # If neither matched, then we have a broken ls.  This can happen
2314       # if, for instance, CONFIG_SHELL is bash and it inherits a
2315       # broken ls alias from the environment.  This has actually
2316       # happened.  Such a system could not be considered "sane".
2317       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2318 alias in your environment" >&5
2319 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2320 alias in your environment" >&2;}
2321    { (exit 1); exit 1; }; }
2322    fi
2323
2324    test "$2" = conftest.file
2325    )
2326 then
2327    # Ok.
2328    :
2329 else
2330    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2331 Check your system clock" >&5
2332 echo "$as_me: error: newly created file is older than distributed files!
2333 Check your system clock" >&2;}
2334    { (exit 1); exit 1; }; }
2335 fi
2336 { echo "$as_me:$LINENO: result: yes" >&5
2337 echo "${ECHO_T}yes" >&6; }
2338 test "$program_prefix" != NONE &&
2339   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2340 # Use a double $ so make ignores it.
2341 test "$program_suffix" != NONE &&
2342   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2343 # Double any \ or $.  echo might interpret backslashes.
2344 # By default was `s,x,x', remove it if useless.
2345 cat <<\_ACEOF >conftest.sed
2346 s/[\\$]/&&/g;s/;s,x,x,$//
2347 _ACEOF
2348 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2349 rm -f conftest.sed
2350
2351 # expand $ac_aux_dir to an absolute path
2352 am_aux_dir=`cd $ac_aux_dir && pwd`
2353
2354 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2355 # Use eval to expand $SHELL
2356 if eval "$MISSING --run true"; then
2357   am_missing_run="$MISSING --run "
2358 else
2359   am_missing_run=
2360   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2361 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2362 fi
2363
2364 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2365 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2366 if test -z "$MKDIR_P"; then
2367   if test "${ac_cv_path_mkdir+set}" = set; then
2368   echo $ECHO_N "(cached) $ECHO_C" >&6
2369 else
2370   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2371 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2372 do
2373   IFS=$as_save_IFS
2374   test -z "$as_dir" && as_dir=.
2375   for ac_prog in mkdir gmkdir; do
2376          for ac_exec_ext in '' $ac_executable_extensions; do
2377            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2378            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2379              'mkdir (GNU coreutils) '* | \
2380              'mkdir (coreutils) '* | \
2381              'mkdir (fileutils) '4.1*)
2382                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2383                break 3;;
2384            esac
2385          done
2386        done
2387 done
2388 IFS=$as_save_IFS
2389
2390 fi
2391
2392   if test "${ac_cv_path_mkdir+set}" = set; then
2393     MKDIR_P="$ac_cv_path_mkdir -p"
2394   else
2395     # As a last resort, use the slow shell script.  Don't cache a
2396     # value for MKDIR_P within a source directory, because that will
2397     # break other packages using the cache if that directory is
2398     # removed, or if the value is a relative name.
2399     test -d ./--version && rmdir ./--version
2400     MKDIR_P="$ac_install_sh -d"
2401   fi
2402 fi
2403 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2404 echo "${ECHO_T}$MKDIR_P" >&6; }
2405
2406 mkdir_p="$MKDIR_P"
2407 case $mkdir_p in
2408   [\\/$]* | ?:[\\/]*) ;;
2409   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2410 esac
2411
2412 for ac_prog in gawk mawk nawk awk
2413 do
2414   # Extract the first word of "$ac_prog", so it can be a program name with args.
2415 set dummy $ac_prog; ac_word=$2
2416 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2418 if test "${ac_cv_prog_AWK+set}" = set; then
2419   echo $ECHO_N "(cached) $ECHO_C" >&6
2420 else
2421   if test -n "$AWK"; then
2422   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2423 else
2424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2425 for as_dir in $PATH
2426 do
2427   IFS=$as_save_IFS
2428   test -z "$as_dir" && as_dir=.
2429   for ac_exec_ext in '' $ac_executable_extensions; do
2430   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2431     ac_cv_prog_AWK="$ac_prog"
2432     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2433     break 2
2434   fi
2435 done
2436 done
2437 IFS=$as_save_IFS
2438
2439 fi
2440 fi
2441 AWK=$ac_cv_prog_AWK
2442 if test -n "$AWK"; then
2443   { echo "$as_me:$LINENO: result: $AWK" >&5
2444 echo "${ECHO_T}$AWK" >&6; }
2445 else
2446   { echo "$as_me:$LINENO: result: no" >&5
2447 echo "${ECHO_T}no" >&6; }
2448 fi
2449
2450
2451   test -n "$AWK" && break
2452 done
2453
2454 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2455 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2456 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2457 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2458   echo $ECHO_N "(cached) $ECHO_C" >&6
2459 else
2460   cat >conftest.make <<\_ACEOF
2461 SHELL = /bin/bash
2462 all:
2463         @echo '@@@%%%=$(MAKE)=@@@%%%'
2464 _ACEOF
2465 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2466 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2467   *@@@%%%=?*=@@@%%%*)
2468     eval ac_cv_prog_make_${ac_make}_set=yes;;
2469   *)
2470     eval ac_cv_prog_make_${ac_make}_set=no;;
2471 esac
2472 rm -f conftest.make
2473 fi
2474 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2475   { echo "$as_me:$LINENO: result: yes" >&5
2476 echo "${ECHO_T}yes" >&6; }
2477   SET_MAKE=
2478 else
2479   { echo "$as_me:$LINENO: result: no" >&5
2480 echo "${ECHO_T}no" >&6; }
2481   SET_MAKE="MAKE=${MAKE-make}"
2482 fi
2483
2484 rm -rf .tst 2>/dev/null
2485 mkdir .tst 2>/dev/null
2486 if test -d .tst; then
2487   am__leading_dot=.
2488 else
2489   am__leading_dot=_
2490 fi
2491 rmdir .tst 2>/dev/null
2492
2493 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2494   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2495   # is not polluted with repeated "-I."
2496   am__isrc=' -I$(srcdir)'
2497   # test to see if srcdir already configured
2498   if test -f $srcdir/config.status; then
2499     { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2500 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2501    { (exit 1); exit 1; }; }
2502   fi
2503 fi
2504
2505 # test whether we have cygpath
2506 if test -z "$CYGPATH_W"; then
2507   if (cygpath --version) >/dev/null 2>/dev/null; then
2508     CYGPATH_W='cygpath -w'
2509   else
2510     CYGPATH_W=echo
2511   fi
2512 fi
2513
2514
2515 # Define the identity of the package.
2516  PACKAGE='Salome:sat:{PYCMP}'
2517  VERSION='6.3.0'
2518
2519
2520 cat >>confdefs.h <<_ACEOF
2521 #define PACKAGE "$PACKAGE"
2522 _ACEOF
2523
2524
2525 cat >>confdefs.h <<_ACEOF
2526 #define VERSION "$VERSION"
2527 _ACEOF
2528
2529 # Some tools Automake needs.
2530
2531 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2532
2533
2534 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2535
2536
2537 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2538
2539
2540 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2541
2542
2543 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2544
2545 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2546
2547 # Installed binaries are usually stripped using `strip' when the user
2548 # run `make install-strip'.  However `strip' might not be the right
2549 # tool to use in cross-compilation environments, therefore Automake
2550 # will honor the `STRIP' environment variable to overrule this program.
2551 if test "$cross_compiling" != no; then
2552   if test -n "$ac_tool_prefix"; then
2553   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2554 set dummy ${ac_tool_prefix}strip; ac_word=$2
2555 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2557 if test "${ac_cv_prog_STRIP+set}" = set; then
2558   echo $ECHO_N "(cached) $ECHO_C" >&6
2559 else
2560   if test -n "$STRIP"; then
2561   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2562 else
2563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2564 for as_dir in $PATH
2565 do
2566   IFS=$as_save_IFS
2567   test -z "$as_dir" && as_dir=.
2568   for ac_exec_ext in '' $ac_executable_extensions; do
2569   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2570     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2571     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2572     break 2
2573   fi
2574 done
2575 done
2576 IFS=$as_save_IFS
2577
2578 fi
2579 fi
2580 STRIP=$ac_cv_prog_STRIP
2581 if test -n "$STRIP"; then
2582   { echo "$as_me:$LINENO: result: $STRIP" >&5
2583 echo "${ECHO_T}$STRIP" >&6; }
2584 else
2585   { echo "$as_me:$LINENO: result: no" >&5
2586 echo "${ECHO_T}no" >&6; }
2587 fi
2588
2589
2590 fi
2591 if test -z "$ac_cv_prog_STRIP"; then
2592   ac_ct_STRIP=$STRIP
2593   # Extract the first word of "strip", so it can be a program name with args.
2594 set dummy strip; ac_word=$2
2595 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2597 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2598   echo $ECHO_N "(cached) $ECHO_C" >&6
2599 else
2600   if test -n "$ac_ct_STRIP"; then
2601   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2602 else
2603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2604 for as_dir in $PATH
2605 do
2606   IFS=$as_save_IFS
2607   test -z "$as_dir" && as_dir=.
2608   for ac_exec_ext in '' $ac_executable_extensions; do
2609   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2610     ac_cv_prog_ac_ct_STRIP="strip"
2611     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2612     break 2
2613   fi
2614 done
2615 done
2616 IFS=$as_save_IFS
2617
2618 fi
2619 fi
2620 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2621 if test -n "$ac_ct_STRIP"; then
2622   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2623 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2624 else
2625   { echo "$as_me:$LINENO: result: no" >&5
2626 echo "${ECHO_T}no" >&6; }
2627 fi
2628
2629   if test "x$ac_ct_STRIP" = x; then
2630     STRIP=":"
2631   else
2632     case $cross_compiling:$ac_tool_warned in
2633 yes:)
2634 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2635 whose name does not start with the host triplet.  If you think this
2636 configuration is useful to you, please write to autoconf@gnu.org." >&5
2637 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2638 whose name does not start with the host triplet.  If you think this
2639 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2640 ac_tool_warned=yes ;;
2641 esac
2642     STRIP=$ac_ct_STRIP
2643   fi
2644 else
2645   STRIP="$ac_cv_prog_STRIP"
2646 fi
2647
2648 fi
2649 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2650
2651 # We need awk for the "check" target.  The system "awk" is bad on
2652 # some platforms.
2653 # Always define AMTAR for backward compatibility.
2654
2655 AMTAR=${AMTAR-"${am_missing_run}tar"}
2656
2657 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2658
2659
2660
2661
2662
2663
2664 XVERSION=`echo $VERSION | awk -F. '{printf("0x%02x%02x%02x",$1,$2,$3)}'`
2665
2666
2667 # set up MODULE_NAME variable for dynamic construction of directories (resources, etc.)
2668 MODULE_NAME=:sat:{PYCMP}
2669
2670
2671
2672 ROOT_BUILDDIR=`pwd`
2673 ROOT_SRCDIR=`echo $0 | sed -e "s,[^/]*$,,;s,/$,,;s,^$,.,"`
2674 cd $ROOT_SRCDIR
2675 ROOT_SRCDIR=`pwd`
2676 cd $ROOT_BUILDDIR
2677
2678
2679
2680
2681 echo
2682 echo Source root directory : $ROOT_SRCDIR
2683 echo Build  root directory : $ROOT_BUILDDIR
2684 echo
2685 echo
2686
2687 # Extract the first word of "sh", so it can be a program name with args.
2688 set dummy sh; ac_word=$2
2689 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2691 if test "${ac_cv_prog_SHELL+set}" = set; then
2692   echo $ECHO_N "(cached) $ECHO_C" >&6
2693 else
2694   if test -n "$SHELL"; then
2695   ac_cv_prog_SHELL="$SHELL" # Let the user override the test.
2696 else
2697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2698 for as_dir in $PATH
2699 do
2700   IFS=$as_save_IFS
2701   test -z "$as_dir" && as_dir=.
2702   for ac_exec_ext in '' $ac_executable_extensions; do
2703   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2704     ac_cv_prog_SHELL=""
2705     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2706     break 2
2707   fi
2708 done
2709 done
2710 IFS=$as_save_IFS
2711
2712 fi
2713 fi
2714 SHELL=$ac_cv_prog_SHELL
2715 if test -n "$SHELL"; then
2716   { echo "$as_me:$LINENO: result: $SHELL" >&5
2717 echo "${ECHO_T}$SHELL" >&6; }
2718 else
2719   { echo "$as_me:$LINENO: result: no" >&5
2720 echo "${ECHO_T}no" >&6; }
2721 fi
2722
2723
2724
2725
2726 if test -z "$AR"; then
2727    for ac_prog in ar xar
2728 do
2729   # Extract the first word of "$ac_prog", so it can be a program name with args.
2730 set dummy $ac_prog; ac_word=$2
2731 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2733 if test "${ac_cv_prog_AR+set}" = set; then
2734   echo $ECHO_N "(cached) $ECHO_C" >&6
2735 else
2736   if test -n "$AR"; then
2737   ac_cv_prog_AR="$AR" # Let the user override the test.
2738 else
2739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2740 for as_dir in $PATH
2741 do
2742   IFS=$as_save_IFS
2743   test -z "$as_dir" && as_dir=.
2744   for ac_exec_ext in '' $ac_executable_extensions; do
2745   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2746     ac_cv_prog_AR="$ac_prog"
2747     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2748     break 2
2749   fi
2750 done
2751 done
2752 IFS=$as_save_IFS
2753
2754 fi
2755 fi
2756 AR=$ac_cv_prog_AR
2757 if test -n "$AR"; then
2758   { echo "$as_me:$LINENO: result: $AR" >&5
2759 echo "${ECHO_T}$AR" >&6; }
2760 else
2761   { echo "$as_me:$LINENO: result: no" >&5
2762 echo "${ECHO_T}no" >&6; }
2763 fi
2764
2765
2766   test -n "$AR" && break
2767 done
2768 test -n "$AR" || AR=":"
2769
2770 fi
2771
2772
2773 export AR
2774
2775 echo
2776 echo ---------------------------------------------
2777 echo testing make
2778 echo ---------------------------------------------
2779 echo
2780
2781 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2782 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2783 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2784 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2785   echo $ECHO_N "(cached) $ECHO_C" >&6
2786 else
2787   cat >conftest.make <<\_ACEOF
2788 SHELL = /bin/bash
2789 all:
2790         @echo '@@@%%%=$(MAKE)=@@@%%%'
2791 _ACEOF
2792 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2793 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2794   *@@@%%%=?*=@@@%%%*)
2795     eval ac_cv_prog_make_${ac_make}_set=yes;;
2796   *)
2797     eval ac_cv_prog_make_${ac_make}_set=no;;
2798 esac
2799 rm -f conftest.make
2800 fi
2801 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2802   { echo "$as_me:$LINENO: result: yes" >&5
2803 echo "${ECHO_T}yes" >&6; }
2804   SET_MAKE=
2805 else
2806   { echo "$as_me:$LINENO: result: no" >&5
2807 echo "${ECHO_T}no" >&6; }
2808   SET_MAKE="MAKE=${MAKE-make}"
2809 fi
2810
2811 # Find a good install program.  We prefer a C program (faster),
2812 # so one script is as good as another.  But avoid the broken or
2813 # incompatible versions:
2814 # SysV /etc/install, /usr/sbin/install
2815 # SunOS /usr/etc/install
2816 # IRIX /sbin/install
2817 # AIX /bin/install
2818 # AmigaOS /C/install, which installs bootblocks on floppy discs
2819 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2820 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2821 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2822 # OS/2's system install, which has a completely different semantic
2823 # ./install, which can be erroneously created by make from ./install.sh.
2824 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2825 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2826 if test -z "$INSTALL"; then
2827 if test "${ac_cv_path_install+set}" = set; then
2828   echo $ECHO_N "(cached) $ECHO_C" >&6
2829 else
2830   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2831 for as_dir in $PATH
2832 do
2833   IFS=$as_save_IFS
2834   test -z "$as_dir" && as_dir=.
2835   # Account for people who put trailing slashes in PATH elements.
2836 case $as_dir/ in
2837   ./ | .// | /cC/* | \
2838   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2839   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2840   /usr/ucb/* ) ;;
2841   *)
2842     # OSF1 and SCO ODT 3.0 have their own names for install.
2843     # Don't use installbsd from OSF since it installs stuff as root
2844     # by default.
2845     for ac_prog in ginstall scoinst install; do
2846       for ac_exec_ext in '' $ac_executable_extensions; do
2847         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2848           if test $ac_prog = install &&
2849             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2850             # AIX install.  It has an incompatible calling convention.
2851             :
2852           elif test $ac_prog = install &&
2853             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2854             # program-specific install script used by HP pwplus--don't use.
2855             :
2856           else
2857             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2858             break 3
2859           fi
2860         fi
2861       done
2862     done
2863     ;;
2864 esac
2865 done
2866 IFS=$as_save_IFS
2867
2868
2869 fi
2870   if test "${ac_cv_path_install+set}" = set; then
2871     INSTALL=$ac_cv_path_install
2872   else
2873     # As a last resort, use the slow shell script.  Don't cache a
2874     # value for INSTALL within a source directory, because that will
2875     # break other packages using the cache if that directory is
2876     # removed, or if the value is a relative name.
2877     INSTALL=$ac_install_sh
2878   fi
2879 fi
2880 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2881 echo "${ECHO_T}$INSTALL" >&6; }
2882
2883 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2884 # It thinks the first close brace ends the variable substitution.
2885 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2886
2887 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2888
2889 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2890
2891
2892 GLOBAL_INSTALL=$INSTALL
2893 absdir=`pwd`
2894 INSTALL=${absdir}/local-install.sh
2895 cat > ${INSTALL} << EOF
2896 #!/bin/bash
2897
2898 nb_args=\$#
2899 args=\$*
2900 if test \$nb_args -gt 1 ; then
2901     nb=\$(expr \$nb_args - 2)
2902     shift \$nb
2903     target=\$2
2904     if test -f \$target ; then
2905     orig=\$1
2906     if test -f \$orig ; then
2907         diff \$orig \$target > /dev/null 2>&1
2908         if test \$? = 0 ; then
2909         echo \$orig and \$target are identical
2910         exit 0
2911         fi
2912     fi
2913     fi
2914 fi
2915 ${GLOBAL_INSTALL} \$args
2916 EOF
2917 chmod +x ${INSTALL}
2918
2919
2920
2921
2922     # Check whether --enable-debug was given.
2923 if test "${enable_debug+set}" = set; then
2924   enableval=$enable_debug;
2925     enable_debug=$enableval
2926
2927 else
2928   enable_debug=yes
2929 fi
2930
2931
2932 if test "X$enable_debug" = "Xyes"; then
2933   CFLAGS="$CFLAGS -g -D_DEBUG_ "
2934   CXXFLAGS="$CXXFLAGS -g -D_DEBUG_ "
2935 fi
2936
2937 # Check whether --enable-production was given.
2938 if test "${enable_production+set}" = set; then
2939   enableval=$enable_production;
2940     enable_production=$enableval
2941
2942 else
2943   enable_production=no
2944 fi
2945
2946
2947
2948   { echo "$as_me:$LINENO: checking wether $CXX accepts -Wparentheses" >&5
2949 echo $ECHO_N "checking wether $CXX accepts -Wparentheses... $ECHO_C" >&6; }
2950   cat > conftest.cxx <<EOF
2951 int main() { return 0; }
2952 EOF
2953   $CXX -Wparentheses conftest.cxx > conftest.log 2>&1
2954   var=`echo -Wparentheses | sed -e "s, .*$,," | sed -e "s,^-,,"`
2955 #CCRT  if ! grep -e $var conftest.log > /dev/null 2>&1 ; then
2956   if grep -e $var conftest.log > /dev/null 2>&1 ; then
2957     { echo "$as_me:$LINENO: result: no" >&5
2958 echo "${ECHO_T}no" >&6; }
2959     eval
2960   else
2961     { echo "$as_me:$LINENO: result: yes" >&5
2962 echo "${ECHO_T}yes" >&6; }
2963     CXXFLAGS="${CXXFLAGS} -Wparentheses"
2964     eval
2965   fi
2966
2967
2968   { echo "$as_me:$LINENO: checking wether $CXX accepts -Wreturn-type" >&5
2969 echo $ECHO_N "checking wether $CXX accepts -Wreturn-type... $ECHO_C" >&6; }
2970   cat > conftest.cxx <<EOF
2971 int main() { return 0; }
2972 EOF
2973   $CXX -Wreturn-type conftest.cxx > conftest.log 2>&1
2974   var=`echo -Wreturn-type | sed -e "s, .*$,," | sed -e "s,^-,,"`
2975 #CCRT  if ! grep -e $var conftest.log > /dev/null 2>&1 ; then
2976   if grep -e $var conftest.log > /dev/null 2>&1 ; then
2977     { echo "$as_me:$LINENO: result: no" >&5
2978 echo "${ECHO_T}no" >&6; }
2979     eval
2980   else
2981     { echo "$as_me:$LINENO: result: yes" >&5
2982 echo "${ECHO_T}yes" >&6; }
2983     CXXFLAGS="${CXXFLAGS} -Wreturn-type"
2984     eval
2985   fi
2986
2987
2988   { echo "$as_me:$LINENO: checking wether $CXX accepts -fmessage-length=0" >&5
2989 echo $ECHO_N "checking wether $CXX accepts -fmessage-length=0... $ECHO_C" >&6; }
2990   cat > conftest.cxx <<EOF
2991 int main() { return 0; }
2992 EOF
2993   $CXX -fmessage-length=0 conftest.cxx > conftest.log 2>&1
2994   var=`echo -fmessage-length=0 | sed -e "s, .*$,," | sed -e "s,^-,,"`
2995 #CCRT  if ! grep -e $var conftest.log > /dev/null 2>&1 ; then
2996   if grep -e $var conftest.log > /dev/null 2>&1 ; then
2997     { echo "$as_me:$LINENO: result: no" >&5
2998 echo "${ECHO_T}no" >&6; }
2999     eval
3000   else
3001     { echo "$as_me:$LINENO: result: yes" >&5
3002 echo "${ECHO_T}yes" >&6; }
3003     CXXFLAGS="${CXXFLAGS} -fmessage-length=0"
3004     eval
3005   fi
3006
3007
3008   { echo "$as_me:$LINENO: checking wether $CXX accepts -Wunused" >&5
3009 echo $ECHO_N "checking wether $CXX accepts -Wunused... $ECHO_C" >&6; }
3010   cat > conftest.cxx <<EOF
3011 int main() { return 0; }
3012 EOF
3013   $CXX -Wunused conftest.cxx > conftest.log 2>&1
3014   var=`echo -Wunused | sed -e "s, .*$,," | sed -e "s,^-,,"`
3015 #CCRT  if ! grep -e $var conftest.log > /dev/null 2>&1 ; then
3016   if grep -e $var conftest.log > /dev/null 2>&1 ; then
3017     { echo "$as_me:$LINENO: result: no" >&5
3018 echo "${ECHO_T}no" >&6; }
3019     eval
3020   else
3021     { echo "$as_me:$LINENO: result: yes" >&5
3022 echo "${ECHO_T}yes" >&6; }
3023     CXXFLAGS="${CXXFLAGS} -Wunused"
3024     eval
3025   fi
3026
3027
3028   { echo "$as_me:$LINENO: checking wether $CXX accepts -pipe" >&5
3029 echo $ECHO_N "checking wether $CXX accepts -pipe... $ECHO_C" >&6; }
3030   cat > conftest.cxx <<EOF
3031 int main() { return 0; }
3032 EOF
3033   $CXX -pipe conftest.cxx > conftest.log 2>&1
3034   var=`echo -pipe | sed -e "s, .*$,," | sed -e "s,^-,,"`
3035 #CCRT  if ! grep -e $var conftest.log > /dev/null 2>&1 ; then
3036   if grep -e $var conftest.log > /dev/null 2>&1 ; then
3037     { echo "$as_me:$LINENO: result: no" >&5
3038 echo "${ECHO_T}no" >&6; }
3039     eval
3040   else
3041     { echo "$as_me:$LINENO: result: yes" >&5
3042 echo "${ECHO_T}yes" >&6; }
3043     CXXFLAGS="${CXXFLAGS} -pipe"
3044     eval
3045   fi
3046
3047
3048 if test "X$enable_production" = "Xyes"; then
3049   CFLAGS="$CFLAGS -O"
3050
3051   { echo "$as_me:$LINENO: checking wether $CXX accepts -Wuninitialized" >&5
3052 echo $ECHO_N "checking wether $CXX accepts -Wuninitialized... $ECHO_C" >&6; }
3053   cat > conftest.cxx <<EOF
3054 int main() { return 0; }
3055 EOF
3056   $CXX -Wuninitialized conftest.cxx > conftest.log 2>&1
3057   var=`echo -Wuninitialized | sed -e "s, .*$,," | sed -e "s,^-,,"`
3058 #CCRT  if ! grep -e $var conftest.log > /dev/null 2>&1 ; then
3059   if grep -e $var conftest.log > /dev/null 2>&1 ; then
3060     { echo "$as_me:$LINENO: result: no" >&5
3061 echo "${ECHO_T}no" >&6; }
3062     eval
3063   else
3064     { echo "$as_me:$LINENO: result: yes" >&5
3065 echo "${ECHO_T}yes" >&6; }
3066     CXXFLAGS="${CXXFLAGS} -Wuninitialized"
3067     eval
3068   fi
3069
3070   CXXFLAGS="$CXXFLAGS -O "
3071 else
3072   CFLAGS="$CFLAGS -g"
3073   CXXFLAGS="$CXXFLAGS -g"
3074 fi
3075
3076
3077 echo ---------------------------------------------
3078 echo testing libtool
3079 echo ---------------------------------------------
3080
3081 # Check whether --enable-static was given.
3082 if test "${enable_static+set}" = set; then
3083   enableval=$enable_static; p=${PACKAGE-default}
3084     case $enableval in
3085     yes) enable_static=yes ;;
3086     no) enable_static=no ;;
3087     *)
3088      enable_static=no
3089       # Look at the argument we got.  We use all the common list separators.
3090       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3091       for pkg in $enableval; do
3092         IFS="$lt_save_ifs"
3093         if test "X$pkg" = "X$p"; then
3094           enable_static=yes
3095         fi
3096       done
3097       IFS="$lt_save_ifs"
3098       ;;
3099     esac
3100 else
3101   enable_static=no
3102 fi
3103
3104
3105
3106
3107
3108 # Check whether --enable-shared was given.
3109 if test "${enable_shared+set}" = set; then
3110   enableval=$enable_shared; p=${PACKAGE-default}
3111     case $enableval in
3112     yes) enable_shared=yes ;;
3113     no) enable_shared=no ;;
3114     *)
3115       enable_shared=no
3116       # Look at the argument we got.  We use all the common list separators.
3117       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3118       for pkg in $enableval; do
3119         IFS="$lt_save_ifs"
3120         if test "X$pkg" = "X$p"; then
3121           enable_shared=yes
3122         fi
3123       done
3124       IFS="$lt_save_ifs"
3125       ;;
3126     esac
3127 else
3128   enable_shared=yes
3129 fi
3130
3131
3132 # Check whether --enable-fast-install was given.
3133 if test "${enable_fast_install+set}" = set; then
3134   enableval=$enable_fast_install; p=${PACKAGE-default}
3135     case $enableval in
3136     yes) enable_fast_install=yes ;;
3137     no) enable_fast_install=no ;;
3138     *)
3139       enable_fast_install=no
3140       # Look at the argument we got.  We use all the common list separators.
3141       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3142       for pkg in $enableval; do
3143         IFS="$lt_save_ifs"
3144         if test "X$pkg" = "X$p"; then
3145           enable_fast_install=yes
3146         fi
3147       done
3148       IFS="$lt_save_ifs"
3149       ;;
3150     esac
3151 else
3152   enable_fast_install=yes
3153 fi
3154
3155
3156 DEPDIR="${am__leading_dot}deps"
3157
3158 ac_config_commands="$ac_config_commands depfiles"
3159
3160
3161 am_make=${MAKE-make}
3162 cat > confinc << 'END'
3163 am__doit:
3164         @echo done
3165 .PHONY: am__doit
3166 END
3167 # If we don't find an include directive, just comment out the code.
3168 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3169 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3170 am__include="#"
3171 am__quote=
3172 _am_result=none
3173 # First try GNU make style include.
3174 echo "include confinc" > confmf
3175 # We grep out `Entering directory' and `Leaving directory'
3176 # messages which can occur if `w' ends up in MAKEFLAGS.
3177 # In particular we don't look at `^make:' because GNU make might
3178 # be invoked under some other name (usually "gmake"), in which
3179 # case it prints its new name instead of `make'.
3180 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3181    am__include=include
3182    am__quote=
3183    _am_result=GNU
3184 fi
3185 # Now try BSD make style include.
3186 if test "$am__include" = "#"; then
3187    echo '.include "confinc"' > confmf
3188    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3189       am__include=.include
3190       am__quote="\""
3191       _am_result=BSD
3192    fi
3193 fi
3194
3195
3196 { echo "$as_me:$LINENO: result: $_am_result" >&5
3197 echo "${ECHO_T}$_am_result" >&6; }
3198 rm -f confinc confmf
3199
3200 # Check whether --enable-dependency-tracking was given.
3201 if test "${enable_dependency_tracking+set}" = set; then
3202   enableval=$enable_dependency_tracking;
3203 fi
3204
3205 if test "x$enable_dependency_tracking" != xno; then
3206   am_depcomp="$ac_aux_dir/depcomp"
3207   AMDEPBACKSLASH='\'
3208 fi
3209  if test "x$enable_dependency_tracking" != xno; then
3210   AMDEP_TRUE=
3211   AMDEP_FALSE='#'
3212 else
3213   AMDEP_TRUE='#'
3214   AMDEP_FALSE=
3215 fi
3216
3217
3218 ac_ext=c
3219 ac_cpp='$CPP $CPPFLAGS'
3220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3223 if test -n "$ac_tool_prefix"; then
3224   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3225 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3226 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3228 if test "${ac_cv_prog_CC+set}" = set; then
3229   echo $ECHO_N "(cached) $ECHO_C" >&6
3230 else
3231   if test -n "$CC"; then
3232   ac_cv_prog_CC="$CC" # Let the user override the test.
3233 else
3234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3235 for as_dir in $PATH
3236 do
3237   IFS=$as_save_IFS
3238   test -z "$as_dir" && as_dir=.
3239   for ac_exec_ext in '' $ac_executable_extensions; do
3240   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3241     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3242     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3243     break 2
3244   fi
3245 done
3246 done
3247 IFS=$as_save_IFS
3248
3249 fi
3250 fi
3251 CC=$ac_cv_prog_CC
3252 if test -n "$CC"; then
3253   { echo "$as_me:$LINENO: result: $CC" >&5
3254 echo "${ECHO_T}$CC" >&6; }
3255 else
3256   { echo "$as_me:$LINENO: result: no" >&5
3257 echo "${ECHO_T}no" >&6; }
3258 fi
3259
3260
3261 fi
3262 if test -z "$ac_cv_prog_CC"; then
3263   ac_ct_CC=$CC
3264   # Extract the first word of "gcc", so it can be a program name with args.
3265 set dummy gcc; ac_word=$2
3266 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3268 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3269   echo $ECHO_N "(cached) $ECHO_C" >&6
3270 else
3271   if test -n "$ac_ct_CC"; then
3272   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3273 else
3274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3275 for as_dir in $PATH
3276 do
3277   IFS=$as_save_IFS
3278   test -z "$as_dir" && as_dir=.
3279   for ac_exec_ext in '' $ac_executable_extensions; do
3280   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3281     ac_cv_prog_ac_ct_CC="gcc"
3282     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3283     break 2
3284   fi
3285 done
3286 done
3287 IFS=$as_save_IFS
3288
3289 fi
3290 fi
3291 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3292 if test -n "$ac_ct_CC"; then
3293   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3294 echo "${ECHO_T}$ac_ct_CC" >&6; }
3295 else
3296   { echo "$as_me:$LINENO: result: no" >&5
3297 echo "${ECHO_T}no" >&6; }
3298 fi
3299
3300   if test "x$ac_ct_CC" = x; then
3301     CC=""
3302   else
3303     case $cross_compiling:$ac_tool_warned in
3304 yes:)
3305 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3306 whose name does not start with the host triplet.  If you think this
3307 configuration is useful to you, please write to autoconf@gnu.org." >&5
3308 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3309 whose name does not start with the host triplet.  If you think this
3310 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3311 ac_tool_warned=yes ;;
3312 esac
3313     CC=$ac_ct_CC
3314   fi
3315 else
3316   CC="$ac_cv_prog_CC"
3317 fi
3318
3319 if test -z "$CC"; then
3320           if test -n "$ac_tool_prefix"; then
3321     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3322 set dummy ${ac_tool_prefix}cc; ac_word=$2
3323 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3325 if test "${ac_cv_prog_CC+set}" = set; then
3326   echo $ECHO_N "(cached) $ECHO_C" >&6
3327 else
3328   if test -n "$CC"; then
3329   ac_cv_prog_CC="$CC" # Let the user override the test.
3330 else
3331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3332 for as_dir in $PATH
3333 do
3334   IFS=$as_save_IFS
3335   test -z "$as_dir" && as_dir=.
3336   for ac_exec_ext in '' $ac_executable_extensions; do
3337   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3338     ac_cv_prog_CC="${ac_tool_prefix}cc"
3339     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3340     break 2
3341   fi
3342 done
3343 done
3344 IFS=$as_save_IFS
3345
3346 fi
3347 fi
3348 CC=$ac_cv_prog_CC
3349 if test -n "$CC"; then
3350   { echo "$as_me:$LINENO: result: $CC" >&5
3351 echo "${ECHO_T}$CC" >&6; }
3352 else
3353   { echo "$as_me:$LINENO: result: no" >&5
3354 echo "${ECHO_T}no" >&6; }
3355 fi
3356
3357
3358   fi
3359 fi
3360 if test -z "$CC"; then
3361   # Extract the first word of "cc", so it can be a program name with args.
3362 set dummy cc; ac_word=$2
3363 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3365 if test "${ac_cv_prog_CC+set}" = set; then
3366   echo $ECHO_N "(cached) $ECHO_C" >&6
3367 else
3368   if test -n "$CC"; then
3369   ac_cv_prog_CC="$CC" # Let the user override the test.
3370 else
3371   ac_prog_rejected=no
3372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3373 for as_dir in $PATH
3374 do
3375   IFS=$as_save_IFS
3376   test -z "$as_dir" && as_dir=.
3377   for ac_exec_ext in '' $ac_executable_extensions; do
3378   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3379     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3380        ac_prog_rejected=yes
3381        continue
3382      fi
3383     ac_cv_prog_CC="cc"
3384     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3385     break 2
3386   fi
3387 done
3388 done
3389 IFS=$as_save_IFS
3390
3391 if test $ac_prog_rejected = yes; then
3392   # We found a bogon in the path, so make sure we never use it.
3393   set dummy $ac_cv_prog_CC
3394   shift
3395   if test $# != 0; then
3396     # We chose a different compiler from the bogus one.
3397     # However, it has the same basename, so the bogon will be chosen
3398     # first if we set CC to just the basename; use the full file name.
3399     shift
3400     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3401   fi
3402 fi
3403 fi
3404 fi
3405 CC=$ac_cv_prog_CC
3406 if test -n "$CC"; then
3407   { echo "$as_me:$LINENO: result: $CC" >&5
3408 echo "${ECHO_T}$CC" >&6; }
3409 else
3410   { echo "$as_me:$LINENO: result: no" >&5
3411 echo "${ECHO_T}no" >&6; }
3412 fi
3413
3414
3415 fi
3416 if test -z "$CC"; then
3417   if test -n "$ac_tool_prefix"; then
3418   for ac_prog in cl.exe
3419   do
3420     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3421 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3422 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3424 if test "${ac_cv_prog_CC+set}" = set; then
3425   echo $ECHO_N "(cached) $ECHO_C" >&6
3426 else
3427   if test -n "$CC"; then
3428   ac_cv_prog_CC="$CC" # Let the user override the test.
3429 else
3430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3431 for as_dir in $PATH
3432 do
3433   IFS=$as_save_IFS
3434   test -z "$as_dir" && as_dir=.
3435   for ac_exec_ext in '' $ac_executable_extensions; do
3436   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3437     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3438     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3439     break 2
3440   fi
3441 done
3442 done
3443 IFS=$as_save_IFS
3444
3445 fi
3446 fi
3447 CC=$ac_cv_prog_CC
3448 if test -n "$CC"; then
3449   { echo "$as_me:$LINENO: result: $CC" >&5
3450 echo "${ECHO_T}$CC" >&6; }
3451 else
3452   { echo "$as_me:$LINENO: result: no" >&5
3453 echo "${ECHO_T}no" >&6; }
3454 fi
3455
3456
3457     test -n "$CC" && break
3458   done
3459 fi
3460 if test -z "$CC"; then
3461   ac_ct_CC=$CC
3462   for ac_prog in cl.exe
3463 do
3464   # Extract the first word of "$ac_prog", so it can be a program name with args.
3465 set dummy $ac_prog; ac_word=$2
3466 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3468 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3469   echo $ECHO_N "(cached) $ECHO_C" >&6
3470 else
3471   if test -n "$ac_ct_CC"; then
3472   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3473 else
3474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3475 for as_dir in $PATH
3476 do
3477   IFS=$as_save_IFS
3478   test -z "$as_dir" && as_dir=.
3479   for ac_exec_ext in '' $ac_executable_extensions; do
3480   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3481     ac_cv_prog_ac_ct_CC="$ac_prog"
3482     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3483     break 2
3484   fi
3485 done
3486 done
3487 IFS=$as_save_IFS
3488
3489 fi
3490 fi
3491 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3492 if test -n "$ac_ct_CC"; then
3493   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3494 echo "${ECHO_T}$ac_ct_CC" >&6; }
3495 else
3496   { echo "$as_me:$LINENO: result: no" >&5
3497 echo "${ECHO_T}no" >&6; }
3498 fi
3499
3500
3501   test -n "$ac_ct_CC" && break
3502 done
3503
3504   if test "x$ac_ct_CC" = x; then
3505     CC=""
3506   else
3507     case $cross_compiling:$ac_tool_warned in
3508 yes:)
3509 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3510 whose name does not start with the host triplet.  If you think this
3511 configuration is useful to you, please write to autoconf@gnu.org." >&5
3512 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3513 whose name does not start with the host triplet.  If you think this
3514 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3515 ac_tool_warned=yes ;;
3516 esac
3517     CC=$ac_ct_CC
3518   fi
3519 fi
3520
3521 fi
3522
3523
3524 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3525 See \`config.log' for more details." >&5
3526 echo "$as_me: error: no acceptable C compiler found in \$PATH
3527 See \`config.log' for more details." >&2;}
3528    { (exit 1); exit 1; }; }
3529
3530 # Provide some information about the compiler.
3531 echo "$as_me:$LINENO: checking for C compiler version" >&5
3532 ac_compiler=`set X $ac_compile; echo $2`
3533 { (ac_try="$ac_compiler --version >&5"
3534 case "(($ac_try" in
3535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3536   *) ac_try_echo=$ac_try;;
3537 esac
3538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3539   (eval "$ac_compiler --version >&5") 2>&5
3540   ac_status=$?
3541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3542   (exit $ac_status); }
3543 { (ac_try="$ac_compiler -v >&5"
3544 case "(($ac_try" in
3545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3546   *) ac_try_echo=$ac_try;;
3547 esac
3548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3549   (eval "$ac_compiler -v >&5") 2>&5
3550   ac_status=$?
3551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3552   (exit $ac_status); }
3553 { (ac_try="$ac_compiler -V >&5"
3554 case "(($ac_try" in
3555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3556   *) ac_try_echo=$ac_try;;
3557 esac
3558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3559   (eval "$ac_compiler -V >&5") 2>&5
3560   ac_status=$?
3561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562   (exit $ac_status); }
3563
3564 cat >conftest.$ac_ext <<_ACEOF
3565 /* confdefs.h.  */
3566 _ACEOF
3567 cat confdefs.h >>conftest.$ac_ext
3568 cat >>conftest.$ac_ext <<_ACEOF
3569 /* end confdefs.h.  */
3570
3571 int
3572 main ()
3573 {
3574
3575   ;
3576   return 0;
3577 }
3578 _ACEOF
3579 ac_clean_files_save=$ac_clean_files
3580 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3581 # Try to create an executable without -o first, disregard a.out.
3582 # It will help us diagnose broken compilers, and finding out an intuition
3583 # of exeext.
3584 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3585 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3586 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3587 #
3588 # List of possible output files, starting from the most likely.
3589 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3590 # only as a last resort.  b.out is created by i960 compilers.
3591 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3592 #
3593 # The IRIX 6 linker writes into existing files which may not be
3594 # executable, retaining their permissions.  Remove them first so a
3595 # subsequent execution test works.
3596 ac_rmfiles=
3597 for ac_file in $ac_files
3598 do
3599   case $ac_file in
3600     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3601     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3602   esac
3603 done
3604 rm -f $ac_rmfiles
3605
3606 if { (ac_try="$ac_link_default"
3607 case "(($ac_try" in
3608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3609   *) ac_try_echo=$ac_try;;
3610 esac
3611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3612   (eval "$ac_link_default") 2>&5
3613   ac_status=$?
3614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615   (exit $ac_status); }; then
3616   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3617 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3618 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3619 # so that the user can short-circuit this test for compilers unknown to
3620 # Autoconf.
3621 for ac_file in $ac_files ''
3622 do
3623   test -f "$ac_file" || continue
3624   case $ac_file in
3625     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3626         ;;
3627     [ab].out )
3628         # We found the default executable, but exeext='' is most
3629         # certainly right.
3630         break;;
3631     *.* )
3632         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3633         then :; else
3634            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3635         fi
3636         # We set ac_cv_exeext here because the later test for it is not
3637         # safe: cross compilers may not add the suffix if given an `-o'
3638         # argument, so we may need to know it at that point already.
3639         # Even if this section looks crufty: it has the advantage of
3640         # actually working.
3641         break;;
3642     * )
3643         break;;
3644   esac
3645 done
3646 test "$ac_cv_exeext" = no && ac_cv_exeext=
3647
3648 else
3649   ac_file=''
3650 fi
3651
3652 { echo "$as_me:$LINENO: result: $ac_file" >&5
3653 echo "${ECHO_T}$ac_file" >&6; }
3654 if test -z "$ac_file"; then
3655   echo "$as_me: failed program was:" >&5
3656 sed 's/^/| /' conftest.$ac_ext >&5
3657
3658 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3659 See \`config.log' for more details." >&5
3660 echo "$as_me: error: C compiler cannot create executables
3661 See \`config.log' for more details." >&2;}
3662    { (exit 77); exit 77; }; }
3663 fi
3664
3665 ac_exeext=$ac_cv_exeext
3666
3667 # Check that the compiler produces executables we can run.  If not, either
3668 # the compiler is broken, or we cross compile.
3669 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3670 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3671 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3672 # If not cross compiling, check that we can run a simple program.
3673 if test "$cross_compiling" != yes; then
3674   if { ac_try='./$ac_file'
3675   { (case "(($ac_try" in
3676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3677   *) ac_try_echo=$ac_try;;
3678 esac
3679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3680   (eval "$ac_try") 2>&5
3681   ac_status=$?
3682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3683   (exit $ac_status); }; }; then
3684     cross_compiling=no
3685   else
3686     if test "$cross_compiling" = maybe; then
3687         cross_compiling=yes
3688     else
3689         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3690 If you meant to cross compile, use \`--host'.
3691 See \`config.log' for more details." >&5
3692 echo "$as_me: error: cannot run C compiled programs.
3693 If you meant to cross compile, use \`--host'.
3694 See \`config.log' for more details." >&2;}
3695    { (exit 1); exit 1; }; }
3696     fi
3697   fi
3698 fi
3699 { echo "$as_me:$LINENO: result: yes" >&5
3700 echo "${ECHO_T}yes" >&6; }
3701
3702 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3703 ac_clean_files=$ac_clean_files_save
3704 # Check that the compiler produces executables we can run.  If not, either
3705 # the compiler is broken, or we cross compile.
3706 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3707 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3708 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3709 echo "${ECHO_T}$cross_compiling" >&6; }
3710
3711 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3712 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3713 if { (ac_try="$ac_link"
3714 case "(($ac_try" in
3715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3716   *) ac_try_echo=$ac_try;;
3717 esac
3718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3719   (eval "$ac_link") 2>&5
3720   ac_status=$?
3721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722   (exit $ac_status); }; then
3723   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3724 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3725 # work properly (i.e., refer to `conftest.exe'), while it won't with
3726 # `rm'.
3727 for ac_file in conftest.exe conftest conftest.*; do
3728   test -f "$ac_file" || continue
3729   case $ac_file in
3730     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3731     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3732           break;;
3733     * ) break;;
3734   esac
3735 done
3736 else
3737   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3738 See \`config.log' for more details." >&5
3739 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3740 See \`config.log' for more details." >&2;}
3741    { (exit 1); exit 1; }; }
3742 fi
3743
3744 rm -f conftest$ac_cv_exeext
3745 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3746 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3747
3748 rm -f conftest.$ac_ext
3749 EXEEXT=$ac_cv_exeext
3750 ac_exeext=$EXEEXT
3751 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3752 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3753 if test "${ac_cv_objext+set}" = set; then
3754   echo $ECHO_N "(cached) $ECHO_C" >&6
3755 else
3756   cat >conftest.$ac_ext <<_ACEOF
3757 /* confdefs.h.  */
3758 _ACEOF
3759 cat confdefs.h >>conftest.$ac_ext
3760 cat >>conftest.$ac_ext <<_ACEOF
3761 /* end confdefs.h.  */
3762
3763 int
3764 main ()
3765 {
3766
3767   ;
3768   return 0;
3769 }
3770 _ACEOF
3771 rm -f conftest.o conftest.obj
3772 if { (ac_try="$ac_compile"
3773 case "(($ac_try" in
3774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3775   *) ac_try_echo=$ac_try;;
3776 esac
3777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3778   (eval "$ac_compile") 2>&5
3779   ac_status=$?
3780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3781   (exit $ac_status); }; then
3782   for ac_file in conftest.o conftest.obj conftest.*; do
3783   test -f "$ac_file" || continue;
3784   case $ac_file in
3785     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3786     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3787        break;;
3788   esac
3789 done
3790 else
3791   echo "$as_me: failed program was:" >&5
3792 sed 's/^/| /' conftest.$ac_ext >&5
3793
3794 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3795 See \`config.log' for more details." >&5
3796 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3797 See \`config.log' for more details." >&2;}
3798    { (exit 1); exit 1; }; }
3799 fi
3800
3801 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3802 fi
3803 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3804 echo "${ECHO_T}$ac_cv_objext" >&6; }
3805 OBJEXT=$ac_cv_objext
3806 ac_objext=$OBJEXT
3807 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3808 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3809 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3810   echo $ECHO_N "(cached) $ECHO_C" >&6
3811 else
3812   cat >conftest.$ac_ext <<_ACEOF
3813 /* confdefs.h.  */
3814 _ACEOF
3815 cat confdefs.h >>conftest.$ac_ext
3816 cat >>conftest.$ac_ext <<_ACEOF
3817 /* end confdefs.h.  */
3818
3819 int
3820 main ()
3821 {
3822 #ifndef __GNUC__
3823        choke me
3824 #endif
3825
3826   ;
3827   return 0;
3828 }
3829 _ACEOF
3830 rm -f conftest.$ac_objext
3831 if { (ac_try="$ac_compile"
3832 case "(($ac_try" in
3833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3834   *) ac_try_echo=$ac_try;;
3835 esac
3836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3837   (eval "$ac_compile") 2>conftest.er1
3838   ac_status=$?
3839   grep -v '^ *+' conftest.er1 >conftest.err
3840   rm -f conftest.er1
3841   cat conftest.err >&5
3842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3843   (exit $ac_status); } && {
3844          test -z "$ac_c_werror_flag" ||
3845          test ! -s conftest.err
3846        } && test -s conftest.$ac_objext; then
3847   ac_compiler_gnu=yes
3848 else
3849   echo "$as_me: failed program was:" >&5
3850 sed 's/^/| /' conftest.$ac_ext >&5
3851
3852         ac_compiler_gnu=no
3853 fi
3854
3855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3856 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3857
3858 fi
3859 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3860 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3861 GCC=`test $ac_compiler_gnu = yes && echo yes`
3862 ac_test_CFLAGS=${CFLAGS+set}
3863 ac_save_CFLAGS=$CFLAGS
3864 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3865 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3866 if test "${ac_cv_prog_cc_g+set}" = set; then
3867   echo $ECHO_N "(cached) $ECHO_C" >&6
3868 else
3869   ac_save_c_werror_flag=$ac_c_werror_flag
3870    ac_c_werror_flag=yes
3871    ac_cv_prog_cc_g=no
3872    CFLAGS="-g"
3873    cat >conftest.$ac_ext <<_ACEOF
3874 /* confdefs.h.  */
3875 _ACEOF
3876 cat confdefs.h >>conftest.$ac_ext
3877 cat >>conftest.$ac_ext <<_ACEOF
3878 /* end confdefs.h.  */
3879
3880 int
3881 main ()
3882 {
3883
3884   ;
3885   return 0;
3886 }
3887 _ACEOF
3888 rm -f conftest.$ac_objext
3889 if { (ac_try="$ac_compile"
3890 case "(($ac_try" in
3891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3892   *) ac_try_echo=$ac_try;;
3893 esac
3894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3895   (eval "$ac_compile") 2>conftest.er1
3896   ac_status=$?
3897   grep -v '^ *+' conftest.er1 >conftest.err
3898   rm -f conftest.er1
3899   cat conftest.err >&5
3900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901   (exit $ac_status); } && {
3902          test -z "$ac_c_werror_flag" ||
3903          test ! -s conftest.err
3904        } && test -s conftest.$ac_objext; then
3905   ac_cv_prog_cc_g=yes
3906 else
3907   echo "$as_me: failed program was:" >&5
3908 sed 's/^/| /' conftest.$ac_ext >&5
3909
3910         CFLAGS=""
3911       cat >conftest.$ac_ext <<_ACEOF
3912 /* confdefs.h.  */
3913 _ACEOF
3914 cat confdefs.h >>conftest.$ac_ext
3915 cat >>conftest.$ac_ext <<_ACEOF
3916 /* end confdefs.h.  */
3917
3918 int
3919 main ()
3920 {
3921
3922   ;
3923   return 0;
3924 }
3925 _ACEOF
3926 rm -f conftest.$ac_objext
3927 if { (ac_try="$ac_compile"
3928 case "(($ac_try" in
3929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3930   *) ac_try_echo=$ac_try;;
3931 esac
3932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3933   (eval "$ac_compile") 2>conftest.er1
3934   ac_status=$?
3935   grep -v '^ *+' conftest.er1 >conftest.err
3936   rm -f conftest.er1
3937   cat conftest.err >&5
3938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3939   (exit $ac_status); } && {
3940          test -z "$ac_c_werror_flag" ||
3941          test ! -s conftest.err
3942        } && test -s conftest.$ac_objext; then
3943   :
3944 else
3945   echo "$as_me: failed program was:" >&5
3946 sed 's/^/| /' conftest.$ac_ext >&5
3947
3948         ac_c_werror_flag=$ac_save_c_werror_flag
3949          CFLAGS="-g"
3950          cat >conftest.$ac_ext <<_ACEOF
3951 /* confdefs.h.  */
3952 _ACEOF
3953 cat confdefs.h >>conftest.$ac_ext
3954 cat >>conftest.$ac_ext <<_ACEOF
3955 /* end confdefs.h.  */
3956
3957 int
3958 main ()
3959 {
3960
3961   ;
3962   return 0;
3963 }
3964 _ACEOF
3965 rm -f conftest.$ac_objext
3966 if { (ac_try="$ac_compile"
3967 case "(($ac_try" in
3968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3969   *) ac_try_echo=$ac_try;;
3970 esac
3971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3972   (eval "$ac_compile") 2>conftest.er1
3973   ac_status=$?
3974   grep -v '^ *+' conftest.er1 >conftest.err
3975   rm -f conftest.er1
3976   cat conftest.err >&5
3977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3978   (exit $ac_status); } && {
3979          test -z "$ac_c_werror_flag" ||
3980          test ! -s conftest.err
3981        } && test -s conftest.$ac_objext; then
3982   ac_cv_prog_cc_g=yes
3983 else
3984   echo "$as_me: failed program was:" >&5
3985 sed 's/^/| /' conftest.$ac_ext >&5
3986
3987
3988 fi
3989
3990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3991 fi
3992
3993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3994 fi
3995
3996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3997    ac_c_werror_flag=$ac_save_c_werror_flag
3998 fi
3999 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4000 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4001 if test "$ac_test_CFLAGS" = set; then
4002   CFLAGS=$ac_save_CFLAGS
4003 elif test $ac_cv_prog_cc_g = yes; then
4004   if test "$GCC" = yes; then
4005     CFLAGS="-g -O2"
4006   else
4007     CFLAGS="-g"
4008   fi
4009 else
4010   if test "$GCC" = yes; then
4011     CFLAGS="-O2"
4012   else
4013     CFLAGS=
4014   fi
4015 fi
4016 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4017 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4018 if test "${ac_cv_prog_cc_c89+set}" = set; then
4019   echo $ECHO_N "(cached) $ECHO_C" >&6
4020 else
4021   ac_cv_prog_cc_c89=no
4022 ac_save_CC=$CC
4023 cat >conftest.$ac_ext <<_ACEOF
4024 /* confdefs.h.  */
4025 _ACEOF
4026 cat confdefs.h >>conftest.$ac_ext
4027 cat >>conftest.$ac_ext <<_ACEOF
4028 /* end confdefs.h.  */
4029 #include <stdarg.h>
4030 #include <stdio.h>
4031 #include <sys/types.h>
4032 #include <sys/stat.h>
4033 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4034 struct buf { int x; };
4035 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4036 static char *e (p, i)
4037      char **p;
4038      int i;
4039 {
4040   return p[i];
4041 }
4042 static char *f (char * (*g) (char **, int), char **p, ...)
4043 {
4044   char *s;
4045   va_list v;
4046   va_start (v,p);
4047   s = g (p, va_arg (v,int));
4048   va_end (v);
4049   return s;
4050 }
4051
4052 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4053    function prototypes and stuff, but not '\xHH' hex character constants.
4054    These don't provoke an error unfortunately, instead are silently treated
4055    as 'x'.  The following induces an error, until -std is added to get
4056    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4057    array size at least.  It's necessary to write '\x00'==0 to get something
4058    that's true only with -std.  */
4059 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4060
4061 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4062    inside strings and character constants.  */
4063 #define FOO(x) 'x'
4064 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4065
4066 int test (int i, double x);
4067 struct s1 {int (*f) (int a);};
4068 struct s2 {int (*f) (double a);};
4069 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4070 int argc;
4071 char **argv;
4072 int
4073 main ()
4074 {
4075 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4076   ;
4077   return 0;
4078 }
4079 _ACEOF
4080 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4081         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4082 do
4083   CC="$ac_save_CC $ac_arg"
4084   rm -f conftest.$ac_objext
4085 if { (ac_try="$ac_compile"
4086 case "(($ac_try" in
4087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4088   *) ac_try_echo=$ac_try;;
4089 esac
4090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4091   (eval "$ac_compile") 2>conftest.er1
4092   ac_status=$?
4093   grep -v '^ *+' conftest.er1 >conftest.err
4094   rm -f conftest.er1
4095   cat conftest.err >&5
4096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097   (exit $ac_status); } && {
4098          test -z "$ac_c_werror_flag" ||
4099          test ! -s conftest.err
4100        } && test -s conftest.$ac_objext; then
4101   ac_cv_prog_cc_c89=$ac_arg
4102 else
4103   echo "$as_me: failed program was:" >&5
4104 sed 's/^/| /' conftest.$ac_ext >&5
4105
4106
4107 fi
4108
4109 rm -f core conftest.err conftest.$ac_objext
4110   test "x$ac_cv_prog_cc_c89" != "xno" && break
4111 done
4112 rm -f conftest.$ac_ext
4113 CC=$ac_save_CC
4114
4115 fi
4116 # AC_CACHE_VAL
4117 case "x$ac_cv_prog_cc_c89" in
4118   x)
4119     { echo "$as_me:$LINENO: result: none needed" >&5
4120 echo "${ECHO_T}none needed" >&6; } ;;
4121   xno)
4122     { echo "$as_me:$LINENO: result: unsupported" >&5
4123 echo "${ECHO_T}unsupported" >&6; } ;;
4124   *)
4125     CC="$CC $ac_cv_prog_cc_c89"
4126     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4127 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4128 esac
4129
4130
4131 ac_ext=c
4132 ac_cpp='$CPP $CPPFLAGS'
4133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4136
4137 depcc="$CC"   am_compiler_list=
4138
4139 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4140 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4141 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4142   echo $ECHO_N "(cached) $ECHO_C" >&6
4143 else
4144   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4145   # We make a subdir and do the tests there.  Otherwise we can end up
4146   # making bogus files that we don't know about and never remove.  For
4147   # instance it was reported that on HP-UX the gcc test will end up
4148   # making a dummy file named `D' -- because `-MD' means `put the output
4149   # in D'.
4150   mkdir conftest.dir
4151   # Copy depcomp to subdir because otherwise we won't find it if we're
4152   # using a relative directory.
4153   cp "$am_depcomp" conftest.dir
4154   cd conftest.dir
4155   # We will build objects and dependencies in a subdirectory because
4156   # it helps to detect inapplicable dependency modes.  For instance
4157   # both Tru64's cc and ICC support -MD to output dependencies as a
4158   # side effect of compilation, but ICC will put the dependencies in
4159   # the current directory while Tru64 will put them in the object
4160   # directory.
4161   mkdir sub
4162
4163   am_cv_CC_dependencies_compiler_type=none
4164   if test "$am_compiler_list" = ""; then
4165      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4166   fi
4167   for depmode in $am_compiler_list; do
4168     # Setup a source with many dependencies, because some compilers
4169     # like to wrap large dependency lists on column 80 (with \), and
4170     # we should not choose a depcomp mode which is confused by this.
4171     #
4172     # We need to recreate these files for each test, as the compiler may
4173     # overwrite some of them when testing with obscure command lines.
4174     # This happens at least with the AIX C compiler.
4175     : > sub/conftest.c
4176     for i in 1 2 3 4 5 6; do
4177       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4178       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4179       # Solaris 8's {/usr,}/bin/bash.
4180       touch sub/conftst$i.h
4181     done
4182     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4183
4184     case $depmode in
4185     nosideeffect)
4186       # after this tag, mechanisms are not by side-effect, so they'll
4187       # only be used when explicitly requested
4188       if test "x$enable_dependency_tracking" = xyes; then
4189         continue
4190       else
4191         break
4192       fi
4193       ;;
4194     none) break ;;
4195     esac
4196     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4197     # mode.  It turns out that the SunPro C++ compiler does not properly
4198     # handle `-M -o', and we need to detect this.
4199     if depmode=$depmode \
4200        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4201        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4202        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4203          >/dev/null 2>conftest.err &&
4204        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4205        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4206        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4207        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4208       # icc doesn't choke on unknown options, it will just issue warnings
4209       # or remarks (even with -Werror).  So we grep stderr for any message
4210       # that says an option was ignored or not supported.
4211       # When given -MP, icc 7.0 and 7.1 complain thusly:
4212       #   icc: Command line warning: ignoring option '-M'; no argument required
4213       # The diagnosis changed in icc 8.0:
4214       #   icc: Command line remark: option '-MP' not supported
4215       if (grep 'ignoring option' conftest.err ||
4216           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4217         am_cv_CC_dependencies_compiler_type=$depmode
4218         break
4219       fi
4220     fi
4221   done
4222
4223   cd ..
4224   rm -rf conftest.dir
4225 else
4226   am_cv_CC_dependencies_compiler_type=none
4227 fi
4228
4229 fi
4230 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4231 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4232 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4233
4234  if
4235   test "x$enable_dependency_tracking" != xno \
4236   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4237   am__fastdepCC_TRUE=
4238   am__fastdepCC_FALSE='#'
4239 else
4240   am__fastdepCC_TRUE='#'
4241   am__fastdepCC_FALSE=
4242 fi
4243
4244
4245 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4246 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4247 if test "${lt_cv_path_SED+set}" = set; then
4248   echo $ECHO_N "(cached) $ECHO_C" >&6
4249 else
4250   # Loop through the user's path and test for sed and gsed.
4251 # Then use that list of sed's as ones to test for truncation.
4252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4253 for as_dir in $PATH
4254 do
4255   IFS=$as_save_IFS
4256   test -z "$as_dir" && as_dir=.
4257   for lt_ac_prog in sed gsed; do
4258     for ac_exec_ext in '' $ac_executable_extensions; do
4259       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4260         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4261       fi
4262     done
4263   done
4264 done
4265 lt_ac_max=0
4266 lt_ac_count=0
4267 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4268 # along with /bin/sed that truncates output.
4269 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4270   test ! -f $lt_ac_sed && continue
4271   cat /dev/null > conftest.in
4272   lt_ac_count=0
4273   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4274   # Check for GNU sed and select it if it is found.
4275   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4276     lt_cv_path_SED=$lt_ac_sed
4277     break
4278   fi
4279   while true; do
4280     cat conftest.in conftest.in >conftest.tmp
4281     mv conftest.tmp conftest.in
4282     cp conftest.in conftest.nl
4283     echo >>conftest.nl
4284     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4285     cmp -s conftest.out conftest.nl || break
4286     # 10000 chars as input seems more than enough
4287     test $lt_ac_count -gt 10 && break
4288     lt_ac_count=`expr $lt_ac_count + 1`
4289     if test $lt_ac_count -gt $lt_ac_max; then
4290       lt_ac_max=$lt_ac_count
4291       lt_cv_path_SED=$lt_ac_sed
4292     fi
4293   done
4294 done
4295
4296 fi
4297
4298 SED=$lt_cv_path_SED
4299 { echo "$as_me:$LINENO: result: $SED" >&5
4300 echo "${ECHO_T}$SED" >&6; }
4301
4302 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4303 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4304 if test "${ac_cv_path_GREP+set}" = set; then
4305   echo $ECHO_N "(cached) $ECHO_C" >&6
4306 else
4307   # Extract the first word of "grep ggrep" to use in msg output
4308 if test -z "$GREP"; then
4309 set dummy grep ggrep; ac_prog_name=$2
4310 if test "${ac_cv_path_GREP+set}" = set; then
4311   echo $ECHO_N "(cached) $ECHO_C" >&6
4312 else
4313   ac_path_GREP_found=false
4314 # Loop through the user's path and test for each of PROGNAME-LIST
4315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4316 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4317 do
4318   IFS=$as_save_IFS
4319   test -z "$as_dir" && as_dir=.
4320   for ac_prog in grep ggrep; do
4321   for ac_exec_ext in '' $ac_executable_extensions; do
4322     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4323     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4324     # Check for GNU ac_path_GREP and select it if it is found.
4325   # Check for GNU $ac_path_GREP
4326 case `"$ac_path_GREP" --version 2>&1` in
4327 *GNU*)
4328   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4329 *)
4330   ac_count=0
4331   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4332   while :
4333   do
4334     cat "conftest.in" "conftest.in" >"conftest.tmp"
4335     mv "conftest.tmp" "conftest.in"
4336     cp "conftest.in" "conftest.nl"
4337     echo 'GREP' >> "conftest.nl"
4338     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4339     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4340     ac_count=`expr $ac_count + 1`
4341     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4342       # Best one so far, save it but keep looking for a better one
4343       ac_cv_path_GREP="$ac_path_GREP"
4344       ac_path_GREP_max=$ac_count
4345     fi
4346     # 10*(2^10) chars as input seems more than enough
4347     test $ac_count -gt 10 && break
4348   done
4349   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4350 esac
4351
4352
4353     $ac_path_GREP_found && break 3
4354   done
4355 done
4356
4357 done
4358 IFS=$as_save_IFS
4359
4360
4361 fi
4362
4363 GREP="$ac_cv_path_GREP"
4364 if test -z "$GREP"; then
4365   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4366 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4367    { (exit 1); exit 1; }; }
4368 fi
4369
4370 else
4371   ac_cv_path_GREP=$GREP
4372 fi
4373
4374
4375 fi
4376 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4377 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4378  GREP="$ac_cv_path_GREP"
4379
4380
4381 { echo "$as_me:$LINENO: checking for egrep" >&5
4382 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4383 if test "${ac_cv_path_EGREP+set}" = set; then
4384   echo $ECHO_N "(cached) $ECHO_C" >&6
4385 else
4386   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4387    then ac_cv_path_EGREP="$GREP -E"
4388    else
4389      # Extract the first word of "egrep" to use in msg output
4390 if test -z "$EGREP"; then
4391 set dummy egrep; ac_prog_name=$2
4392 if test "${ac_cv_path_EGREP+set}" = set; then
4393   echo $ECHO_N "(cached) $ECHO_C" >&6
4394 else
4395   ac_path_EGREP_found=false
4396 # Loop through the user's path and test for each of PROGNAME-LIST
4397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4398 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4399 do
4400   IFS=$as_save_IFS
4401   test -z "$as_dir" && as_dir=.
4402   for ac_prog in egrep; do
4403   for ac_exec_ext in '' $ac_executable_extensions; do
4404     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4405     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4406     # Check for GNU ac_path_EGREP and select it if it is found.
4407   # Check for GNU $ac_path_EGREP
4408 case `"$ac_path_EGREP" --version 2>&1` in
4409 *GNU*)
4410   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4411 *)
4412   ac_count=0
4413   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4414   while :
4415   do
4416     cat "conftest.in" "conftest.in" >"conftest.tmp"
4417     mv "conftest.tmp" "conftest.in"
4418     cp "conftest.in" "conftest.nl"
4419     echo 'EGREP' >> "conftest.nl"
4420     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4421     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4422     ac_count=`expr $ac_count + 1`
4423     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4424       # Best one so far, save it but keep looking for a better one
4425       ac_cv_path_EGREP="$ac_path_EGREP"
4426       ac_path_EGREP_max=$ac_count
4427     fi
4428     # 10*(2^10) chars as input seems more than enough
4429     test $ac_count -gt 10 && break
4430   done
4431   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4432 esac
4433
4434
4435     $ac_path_EGREP_found && break 3
4436   done
4437 done
4438
4439 done
4440 IFS=$as_save_IFS
4441
4442
4443 fi
4444
4445 EGREP="$ac_cv_path_EGREP"
4446 if test -z "$EGREP"; then
4447   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4448 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4449    { (exit 1); exit 1; }; }
4450 fi
4451
4452 else
4453   ac_cv_path_EGREP=$EGREP
4454 fi
4455
4456
4457    fi
4458 fi
4459 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4460 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4461  EGREP="$ac_cv_path_EGREP"
4462
4463
4464
4465 # Check whether --with-gnu-ld was given.
4466 if test "${with_gnu_ld+set}" = set; then
4467   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4468 else
4469   with_gnu_ld=no
4470 fi
4471
4472 ac_prog=ld
4473 if test "$GCC" = yes; then
4474   # Check if gcc -print-prog-name=ld gives a path.
4475   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4476 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4477   case $host in
4478   *-*-mingw*)
4479     # gcc leaves a trailing carriage return which upsets mingw
4480     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4481   *)
4482     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4483   esac
4484   case $ac_prog in
4485     # Accept absolute paths.
4486     [\\/]* | ?:[\\/]*)
4487       re_direlt='/[^/][^/]*/\.\./'
4488       # Canonicalize the pathname of ld
4489       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4490       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4491         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4492       done
4493       test -z "$LD" && LD="$ac_prog"
4494       ;;
4495   "")
4496     # If it fails, then pretend we aren't using GCC.
4497     ac_prog=ld
4498     ;;
4499   *)
4500     # If it is relative, then search for the first ld in PATH.
4501     with_gnu_ld=unknown
4502     ;;
4503   esac
4504 elif test "$with_gnu_ld" = yes; then
4505   { echo "$as_me:$LINENO: checking for GNU ld" >&5
4506 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4507 else
4508   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4509 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4510 fi
4511 if test "${lt_cv_path_LD+set}" = set; then
4512   echo $ECHO_N "(cached) $ECHO_C" >&6
4513 else
4514   if test -z "$LD"; then
4515   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4516   for ac_dir in $PATH; do
4517     IFS="$lt_save_ifs"
4518     test -z "$ac_dir" && ac_dir=.
4519     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4520       lt_cv_path_LD="$ac_dir/$ac_prog"
4521       # Check to see if the program is GNU ld.  I'd rather use --version,
4522       # but apparently some variants of GNU ld only accept -v.
4523       # Break only if it was the GNU/non-GNU ld that we prefer.
4524       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4525       *GNU* | *'with BFD'*)
4526         test "$with_gnu_ld" != no && break
4527         ;;
4528       *)
4529         test "$with_gnu_ld" != yes && break
4530         ;;
4531       esac
4532     fi
4533   done
4534   IFS="$lt_save_ifs"
4535 else
4536   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4537 fi
4538 fi
4539
4540 LD="$lt_cv_path_LD"
4541 if test -n "$LD"; then
4542   { echo "$as_me:$LINENO: result: $LD" >&5
4543 echo "${ECHO_T}$LD" >&6; }
4544 else
4545   { echo "$as_me:$LINENO: result: no" >&5
4546 echo "${ECHO_T}no" >&6; }
4547 fi
4548 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4549 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4550    { (exit 1); exit 1; }; }
4551 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4552 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4553 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4554   echo $ECHO_N "(cached) $ECHO_C" >&6
4555 else
4556   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4557 case `$LD -v 2>&1 </dev/null` in
4558 *GNU* | *'with BFD'*)
4559   lt_cv_prog_gnu_ld=yes
4560   ;;
4561 *)
4562   lt_cv_prog_gnu_ld=no
4563   ;;
4564 esac
4565 fi
4566 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4567 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4568 with_gnu_ld=$lt_cv_prog_gnu_ld
4569
4570
4571 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4572 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4573 if test "${lt_cv_ld_reload_flag+set}" = set; then
4574   echo $ECHO_N "(cached) $ECHO_C" >&6
4575 else
4576   lt_cv_ld_reload_flag='-r'
4577 fi
4578 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4579 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4580 reload_flag=$lt_cv_ld_reload_flag
4581 case $reload_flag in
4582 "" | " "*) ;;
4583 *) reload_flag=" $reload_flag" ;;
4584 esac
4585 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4586 case $host_os in
4587   darwin*)
4588     if test "$GCC" = yes; then
4589       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4590     else
4591       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4592     fi
4593     ;;
4594 esac
4595
4596 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4597 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4598 if test "${lt_cv_path_NM+set}" = set; then
4599   echo $ECHO_N "(cached) $ECHO_C" >&6
4600 else
4601   if test -n "$NM"; then
4602   # Let the user override the test.
4603   lt_cv_path_NM="$NM"
4604 else
4605   lt_nm_to_check="${ac_tool_prefix}nm"
4606   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4607     lt_nm_to_check="$lt_nm_to_check nm"
4608   fi
4609   for lt_tmp_nm in $lt_nm_to_check; do
4610     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4611     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4612       IFS="$lt_save_ifs"
4613       test -z "$ac_dir" && ac_dir=.
4614       tmp_nm="$ac_dir/$lt_tmp_nm"
4615       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4616         # Check to see if the nm accepts a BSD-compat flag.
4617         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4618         #   nm: unknown option "B" ignored
4619         # Tru64's nm complains that /dev/null is an invalid object file
4620         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4621         */dev/null* | *'Invalid file or object type'*)
4622           lt_cv_path_NM="$tmp_nm -B"
4623           break
4624           ;;
4625         *)
4626           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4627           */dev/null*)
4628             lt_cv_path_NM="$tmp_nm -p"
4629             break
4630             ;;
4631           *)
4632             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4633             continue # so that we can try to find one that supports BSD flags
4634             ;;
4635           esac
4636           ;;
4637         esac
4638       fi
4639     done
4640     IFS="$lt_save_ifs"
4641   done
4642   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4643 fi
4644 fi
4645 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4646 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4647 NM="$lt_cv_path_NM"
4648
4649 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4650 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4651 LN_S=$as_ln_s
4652 if test "$LN_S" = "ln -s"; then
4653   { echo "$as_me:$LINENO: result: yes" >&5
4654 echo "${ECHO_T}yes" >&6; }
4655 else
4656   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4657 echo "${ECHO_T}no, using $LN_S" >&6; }
4658 fi
4659
4660 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4661 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4662 if test "${lt_cv_deplibs_check_method+set}" = set; then
4663   echo $ECHO_N "(cached) $ECHO_C" >&6
4664 else
4665   lt_cv_file_magic_cmd='$MAGIC_CMD'
4666 lt_cv_file_magic_test_file=
4667 lt_cv_deplibs_check_method='unknown'
4668 # Need to set the preceding variable on all platforms that support
4669 # interlibrary dependencies.
4670 # 'none' -- dependencies not supported.
4671 # `unknown' -- same as none, but documents that we really don't know.
4672 # 'pass_all' -- all dependencies passed with no checks.
4673 # 'test_compile' -- check by making test program.
4674 # 'file_magic [[regex]]' -- check by looking for files in library path
4675 # which responds to the $file_magic_cmd with a given extended regex.
4676 # If you have `file' or equivalent on your system and you're not sure
4677 # whether `pass_all' will *always* work, you probably want this one.
4678
4679 case $host_os in
4680 aix4* | aix5*)
4681   lt_cv_deplibs_check_method=pass_all
4682   ;;
4683
4684 beos*)
4685   lt_cv_deplibs_check_method=pass_all
4686   ;;
4687
4688 bsdi[45]*)
4689   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4690   lt_cv_file_magic_cmd='/usr/bin/file -L'
4691   lt_cv_file_magic_test_file=/shlib/libc.so
4692   ;;
4693
4694 cygwin*)
4695   # func_win32_libid is a shell function defined in ltmain.sh
4696   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4697   lt_cv_file_magic_cmd='func_win32_libid'
4698   ;;
4699
4700 mingw* | pw32*)
4701   # Base MSYS/MinGW do not provide the 'file' command needed by
4702   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4703   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4704   lt_cv_file_magic_cmd='$OBJDUMP -f'
4705   ;;
4706
4707 darwin* | rhapsody*)
4708   lt_cv_deplibs_check_method=pass_all
4709   ;;
4710
4711 freebsd* | kfreebsd*-gnu | dragonfly*)
4712   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4713     case $host_cpu in
4714     i*86 )
4715       # Not sure whether the presence of OpenBSD here was a mistake.
4716       # Let's accept both of them until this is cleared up.
4717       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4718       lt_cv_file_magic_cmd=/usr/bin/file
4719       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4720       ;;
4721     esac
4722   else
4723     lt_cv_deplibs_check_method=pass_all
4724   fi
4725   ;;
4726
4727 gnu*)
4728   lt_cv_deplibs_check_method=pass_all
4729   ;;
4730
4731 hpux10.20* | hpux11*)
4732   lt_cv_file_magic_cmd=/usr/bin/file
4733   case $host_cpu in
4734   ia64*)
4735     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4736     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4737     ;;
4738   hppa*64*)
4739     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4740     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4741     ;;
4742   *)
4743     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4744     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4745     ;;
4746   esac
4747   ;;
4748
4749 interix3*)
4750   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4751   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4752   ;;
4753
4754 irix5* | irix6* | nonstopux*)
4755   case $LD in
4756   *-32|*"-32 ") libmagic=32-bit;;
4757   *-n32|*"-n32 ") libmagic=N32;;
4758   *-64|*"-64 ") libmagic=64-bit;;
4759   *) libmagic=never-match;;
4760   esac
4761   lt_cv_deplibs_check_method=pass_all
4762   ;;
4763
4764 # This must be Linux ELF.
4765 linux*)
4766   lt_cv_deplibs_check_method=pass_all
4767   ;;
4768
4769 netbsd*)
4770   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4771     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4772   else
4773     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4774   fi
4775   ;;
4776
4777 newos6*)
4778   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4779   lt_cv_file_magic_cmd=/usr/bin/file
4780   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4781   ;;
4782
4783 nto-qnx*)
4784   lt_cv_deplibs_check_method=unknown
4785   ;;
4786
4787 openbsd*)
4788   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4789     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4790   else
4791     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4792   fi
4793   ;;
4794
4795 osf3* | osf4* | osf5*)
4796   lt_cv_deplibs_check_method=pass_all
4797   ;;
4798
4799 solaris*)
4800   lt_cv_deplibs_check_method=pass_all
4801   ;;
4802
4803 sysv4 | sysv4.3*)
4804   case $host_vendor in
4805   motorola)
4806     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
4807     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4808     ;;
4809   ncr)
4810     lt_cv_deplibs_check_method=pass_all
4811     ;;
4812   sequent)
4813     lt_cv_file_magic_cmd='/bin/file'
4814     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4815     ;;
4816   sni)
4817     lt_cv_file_magic_cmd='/bin/file'
4818     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4819     lt_cv_file_magic_test_file=/lib/libc.so
4820     ;;
4821   siemens)
4822     lt_cv_deplibs_check_method=pass_all
4823     ;;
4824   pc)
4825     lt_cv_deplibs_check_method=pass_all
4826     ;;
4827   esac
4828   ;;
4829
4830 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4831   lt_cv_deplibs_check_method=pass_all
4832   ;;
4833 esac
4834
4835 fi
4836 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4837 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4838 file_magic_cmd=$lt_cv_file_magic_cmd
4839 deplibs_check_method=$lt_cv_deplibs_check_method
4840 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4841
4842
4843
4844
4845 # If no C compiler was specified, use CC.
4846 LTCC=${LTCC-"$CC"}
4847
4848 # If no C compiler flags were specified, use CFLAGS.
4849 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4850
4851 # Allow CC to be a program name with arguments.
4852 compiler=$CC
4853
4854
4855 # Check whether --enable-libtool-lock was given.
4856 if test "${enable_libtool_lock+set}" = set; then
4857   enableval=$enable_libtool_lock;
4858 fi
4859
4860 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4861
4862 # Some flags need to be propagated to the compiler or linker for good
4863 # libtool support.
4864 case $host in
4865 ia64-*-hpux*)
4866   # Find out which ABI we are using.
4867   echo 'int i;' > conftest.$ac_ext
4868   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4869   (eval $ac_compile) 2>&5
4870   ac_status=$?
4871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4872   (exit $ac_status); }; then
4873     case `/usr/bin/file conftest.$ac_objext` in
4874     *ELF-32*)
4875       HPUX_IA64_MODE="32"
4876       ;;
4877     *ELF-64*)
4878       HPUX_IA64_MODE="64"
4879       ;;
4880     esac
4881   fi
4882   rm -rf conftest*
4883   ;;
4884 *-*-irix6*)
4885   # Find out which ABI we are using.
4886   echo '#line 4886 "configure"' > conftest.$ac_ext
4887   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4888   (eval $ac_compile) 2>&5
4889   ac_status=$?
4890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4891   (exit $ac_status); }; then
4892    if test "$lt_cv_prog_gnu_ld" = yes; then
4893     case `/usr/bin/file conftest.$ac_objext` in
4894     *32-bit*)
4895       LD="${LD-ld} -melf32bsmip"
4896       ;;
4897     *N32*)
4898       LD="${LD-ld} -melf32bmipn32"
4899       ;;
4900     *64-bit*)
4901       LD="${LD-ld} -melf64bmip"
4902       ;;
4903     esac
4904    else
4905     case `/usr/bin/file conftest.$ac_objext` in
4906     *32-bit*)
4907       LD="${LD-ld} -32"
4908       ;;
4909     *N32*)
4910       LD="${LD-ld} -n32"
4911       ;;
4912     *64-bit*)
4913       LD="${LD-ld} -64"
4914       ;;
4915     esac
4916    fi
4917   fi
4918   rm -rf conftest*
4919   ;;
4920
4921 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4922   # Find out which ABI we are using.
4923   echo 'int i;' > conftest.$ac_ext
4924   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4925   (eval $ac_compile) 2>&5
4926   ac_status=$?
4927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4928   (exit $ac_status); }; then
4929     case `/usr/bin/file conftest.o` in
4930     *32-bit*)
4931       case $host in
4932         x86_64-*linux*)
4933           LD="${LD-ld} -m elf_i386"
4934           ;;
4935         ppc64-*linux*|powerpc64-*linux*)
4936           LD="${LD-ld} -m elf32ppclinux"
4937           ;;
4938         s390x-*linux*)
4939           LD="${LD-ld} -m elf_s390"
4940           ;;
4941         sparc64-*linux*)
4942           LD="${LD-ld} -m elf32_sparc"
4943           ;;
4944       esac
4945       ;;
4946     *64-bit*)
4947       case $host in
4948         x86_64-*linux*)
4949           LD="${LD-ld} -m elf_x86_64"
4950           ;;
4951         ppc*-*linux*|powerpc*-*linux*)
4952           LD="${LD-ld} -m elf64ppc"
4953           ;;
4954         s390*-*linux*)
4955           LD="${LD-ld} -m elf64_s390"
4956           ;;
4957         sparc*-*linux*)
4958           LD="${LD-ld} -m elf64_sparc"
4959           ;;
4960       esac
4961       ;;
4962     esac
4963   fi
4964   rm -rf conftest*
4965   ;;
4966
4967 *-*-sco3.2v5*)
4968   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4969   SAVE_CFLAGS="$CFLAGS"
4970   CFLAGS="$CFLAGS -belf"
4971   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4972 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4973 if test "${lt_cv_cc_needs_belf+set}" = set; then
4974   echo $ECHO_N "(cached) $ECHO_C" >&6
4975 else
4976   ac_ext=c
4977 ac_cpp='$CPP $CPPFLAGS'
4978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4981
4982      cat >conftest.$ac_ext <<_ACEOF
4983 /* confdefs.h.  */
4984 _ACEOF
4985 cat confdefs.h >>conftest.$ac_ext
4986 cat >>conftest.$ac_ext <<_ACEOF
4987 /* end confdefs.h.  */
4988
4989 int
4990 main ()
4991 {
4992
4993   ;
4994   return 0;
4995 }
4996 _ACEOF
4997 rm -f conftest.$ac_objext conftest$ac_exeext
4998 if { (ac_try="$ac_link"
4999 case "(($ac_try" in
5000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5001   *) ac_try_echo=$ac_try;;
5002 esac
5003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5004   (eval "$ac_link") 2>conftest.er1
5005   ac_status=$?
5006   grep -v '^ *+' conftest.er1 >conftest.err
5007   rm -f conftest.er1
5008   cat conftest.err >&5
5009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010   (exit $ac_status); } && {
5011          test -z "$ac_c_werror_flag" ||
5012          test ! -s conftest.err
5013        } && test -s conftest$ac_exeext &&
5014        $as_test_x conftest$ac_exeext; then
5015   lt_cv_cc_needs_belf=yes
5016 else
5017   echo "$as_me: failed program was:" >&5
5018 sed 's/^/| /' conftest.$ac_ext >&5
5019
5020         lt_cv_cc_needs_belf=no
5021 fi
5022
5023 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5024       conftest$ac_exeext conftest.$ac_ext
5025      ac_ext=c
5026 ac_cpp='$CPP $CPPFLAGS'
5027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5029 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5030
5031 fi
5032 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5033 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5034   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5035     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5036     CFLAGS="$SAVE_CFLAGS"
5037   fi
5038   ;;
5039 sparc*-*solaris*)
5040   # Find out which ABI we are using.
5041   echo 'int i;' > conftest.$ac_ext
5042   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5043   (eval $ac_compile) 2>&5
5044   ac_status=$?
5045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5046   (exit $ac_status); }; then
5047     case `/usr/bin/file conftest.o` in
5048     *64-bit*)
5049       case $lt_cv_prog_gnu_ld in
5050       yes*) LD="${LD-ld} -m elf64_sparc" ;;
5051       *)    LD="${LD-ld} -64" ;;
5052       esac
5053       ;;
5054     esac
5055   fi
5056   rm -rf conftest*
5057   ;;
5058
5059
5060 esac
5061
5062 need_locks="$enable_libtool_lock"
5063
5064
5065 ac_ext=c
5066 ac_cpp='$CPP $CPPFLAGS'
5067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5070 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5071 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5072 # On Suns, sometimes $CPP names a directory.
5073 if test -n "$CPP" && test -d "$CPP"; then
5074   CPP=
5075 fi
5076 if test -z "$CPP"; then
5077   if test "${ac_cv_prog_CPP+set}" = set; then
5078   echo $ECHO_N "(cached) $ECHO_C" >&6
5079 else
5080       # Double quotes because CPP needs to be expanded
5081     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5082     do
5083       ac_preproc_ok=false
5084 for ac_c_preproc_warn_flag in '' yes
5085 do
5086   # Use a header file that comes with gcc, so configuring glibc
5087   # with a fresh cross-compiler works.
5088   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5089   # <limits.h> exists even on freestanding compilers.
5090   # On the NeXT, cc -E runs the code through the compiler's parser,
5091   # not just through cpp. "Syntax error" is here to catch this case.
5092   cat >conftest.$ac_ext <<_ACEOF
5093 /* confdefs.h.  */
5094 _ACEOF
5095 cat confdefs.h >>conftest.$ac_ext
5096 cat >>conftest.$ac_ext <<_ACEOF
5097 /* end confdefs.h.  */
5098 #ifdef __STDC__
5099 # include <limits.h>
5100 #else
5101 # include <assert.h>
5102 #endif
5103                      Syntax error
5104 _ACEOF
5105 if { (ac_try="$ac_cpp conftest.$ac_ext"
5106 case "(($ac_try" in
5107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5108   *) ac_try_echo=$ac_try;;
5109 esac
5110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5111   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5112   ac_status=$?
5113   grep -v '^ *+' conftest.er1 >conftest.err
5114   rm -f conftest.er1
5115   cat conftest.err >&5
5116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117   (exit $ac_status); } >/dev/null && {
5118          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5119          test ! -s conftest.err
5120        }; then
5121   :
5122 else
5123   echo "$as_me: failed program was:" >&5
5124 sed 's/^/| /' conftest.$ac_ext >&5
5125
5126   # Broken: fails on valid input.
5127 continue
5128 fi
5129
5130 rm -f conftest.err conftest.$ac_ext
5131
5132   # OK, works on sane cases.  Now check whether nonexistent headers
5133   # can be detected and how.
5134   cat >conftest.$ac_ext <<_ACEOF
5135 /* confdefs.h.  */
5136 _ACEOF
5137 cat confdefs.h >>conftest.$ac_ext
5138 cat >>conftest.$ac_ext <<_ACEOF
5139 /* end confdefs.h.  */
5140 #include <ac_nonexistent.h>
5141 _ACEOF
5142 if { (ac_try="$ac_cpp conftest.$ac_ext"
5143 case "(($ac_try" in
5144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5145   *) ac_try_echo=$ac_try;;
5146 esac
5147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5148   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5149   ac_status=$?
5150   grep -v '^ *+' conftest.er1 >conftest.err
5151   rm -f conftest.er1
5152   cat conftest.err >&5
5153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5154   (exit $ac_status); } >/dev/null && {
5155          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5156          test ! -s conftest.err
5157        }; then
5158   # Broken: success on invalid input.
5159 continue
5160 else
5161   echo "$as_me: failed program was:" >&5
5162 sed 's/^/| /' conftest.$ac_ext >&5
5163
5164   # Passes both tests.
5165 ac_preproc_ok=:
5166 break
5167 fi
5168
5169 rm -f conftest.err conftest.$ac_ext
5170
5171 done
5172 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5173 rm -f conftest.err conftest.$ac_ext
5174 if $ac_preproc_ok; then
5175   break
5176 fi
5177
5178     done
5179     ac_cv_prog_CPP=$CPP
5180
5181 fi
5182   CPP=$ac_cv_prog_CPP
5183 else
5184   ac_cv_prog_CPP=$CPP
5185 fi
5186 { echo "$as_me:$LINENO: result: $CPP" >&5
5187 echo "${ECHO_T}$CPP" >&6; }
5188 ac_preproc_ok=false
5189 for ac_c_preproc_warn_flag in '' yes
5190 do
5191   # Use a header file that comes with gcc, so configuring glibc
5192   # with a fresh cross-compiler works.
5193   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5194   # <limits.h> exists even on freestanding compilers.
5195   # On the NeXT, cc -E runs the code through the compiler's parser,
5196   # not just through cpp. "Syntax error" is here to catch this case.
5197   cat >conftest.$ac_ext <<_ACEOF
5198 /* confdefs.h.  */
5199 _ACEOF
5200 cat confdefs.h >>conftest.$ac_ext
5201 cat >>conftest.$ac_ext <<_ACEOF
5202 /* end confdefs.h.  */
5203 #ifdef __STDC__
5204 # include <limits.h>
5205 #else
5206 # include <assert.h>
5207 #endif
5208                      Syntax error
5209 _ACEOF
5210 if { (ac_try="$ac_cpp conftest.$ac_ext"
5211 case "(($ac_try" in
5212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5213   *) ac_try_echo=$ac_try;;
5214 esac
5215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5216   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5217   ac_status=$?
5218   grep -v '^ *+' conftest.er1 >conftest.err
5219   rm -f conftest.er1
5220   cat conftest.err >&5
5221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222   (exit $ac_status); } >/dev/null && {
5223          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5224          test ! -s conftest.err
5225        }; then
5226   :
5227 else
5228   echo "$as_me: failed program was:" >&5
5229 sed 's/^/| /' conftest.$ac_ext >&5
5230
5231   # Broken: fails on valid input.
5232 continue
5233 fi
5234
5235 rm -f conftest.err conftest.$ac_ext
5236
5237   # OK, works on sane cases.  Now check whether nonexistent headers
5238   # can be detected and how.
5239   cat >conftest.$ac_ext <<_ACEOF
5240 /* confdefs.h.  */
5241 _ACEOF
5242 cat confdefs.h >>conftest.$ac_ext
5243 cat >>conftest.$ac_ext <<_ACEOF
5244 /* end confdefs.h.  */
5245 #include <ac_nonexistent.h>
5246 _ACEOF
5247 if { (ac_try="$ac_cpp conftest.$ac_ext"
5248 case "(($ac_try" in
5249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5250   *) ac_try_echo=$ac_try;;
5251 esac
5252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5253   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5254   ac_status=$?
5255   grep -v '^ *+' conftest.er1 >conftest.err
5256   rm -f conftest.er1
5257   cat conftest.err >&5
5258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259   (exit $ac_status); } >/dev/null && {
5260          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5261          test ! -s conftest.err
5262        }; then
5263   # Broken: success on invalid input.
5264 continue
5265 else
5266   echo "$as_me: failed program was:" >&5
5267 sed 's/^/| /' conftest.$ac_ext >&5
5268
5269   # Passes both tests.
5270 ac_preproc_ok=:
5271 break
5272 fi
5273
5274 rm -f conftest.err conftest.$ac_ext
5275
5276 done
5277 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5278 rm -f conftest.err conftest.$ac_ext
5279 if $ac_preproc_ok; then
5280   :
5281 else
5282   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5283 See \`config.log' for more details." >&5
5284 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5285 See \`config.log' for more details." >&2;}
5286    { (exit 1); exit 1; }; }
5287 fi
5288
5289 ac_ext=c
5290 ac_cpp='$CPP $CPPFLAGS'
5291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5294
5295
5296 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5297 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5298 if test "${ac_cv_header_stdc+set}" = set; then
5299   echo $ECHO_N "(cached) $ECHO_C" >&6
5300 else
5301   cat >conftest.$ac_ext <<_ACEOF
5302 /* confdefs.h.  */
5303 _ACEOF
5304 cat confdefs.h >>conftest.$ac_ext
5305 cat >>conftest.$ac_ext <<_ACEOF
5306 /* end confdefs.h.  */
5307 #include <stdlib.h>
5308 #include <stdarg.h>
5309 #include <string.h>
5310 #include <float.h>
5311
5312 int
5313 main ()
5314 {
5315
5316   ;
5317   return 0;
5318 }
5319 _ACEOF
5320 rm -f conftest.$ac_objext
5321 if { (ac_try="$ac_compile"
5322 case "(($ac_try" in
5323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5324   *) ac_try_echo=$ac_try;;
5325 esac
5326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5327   (eval "$ac_compile") 2>conftest.er1
5328   ac_status=$?
5329   grep -v '^ *+' conftest.er1 >conftest.err
5330   rm -f conftest.er1
5331   cat conftest.err >&5
5332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5333   (exit $ac_status); } && {
5334          test -z "$ac_c_werror_flag" ||
5335          test ! -s conftest.err
5336        } && test -s conftest.$ac_objext; then
5337   ac_cv_header_stdc=yes
5338 else
5339   echo "$as_me: failed program was:" >&5
5340 sed 's/^/| /' conftest.$ac_ext >&5
5341
5342         ac_cv_header_stdc=no
5343 fi
5344
5345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5346
5347 if test $ac_cv_header_stdc = yes; then
5348   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5349   cat >conftest.$ac_ext <<_ACEOF
5350 /* confdefs.h.  */
5351 _ACEOF
5352 cat confdefs.h >>conftest.$ac_ext
5353 cat >>conftest.$ac_ext <<_ACEOF
5354 /* end confdefs.h.  */
5355 #include <string.h>
5356
5357 _ACEOF
5358 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5359   $EGREP "memchr" >/dev/null 2>&1; then
5360   :
5361 else
5362   ac_cv_header_stdc=no
5363 fi
5364 rm -f conftest*
5365
5366 fi
5367
5368 if test $ac_cv_header_stdc = yes; then
5369   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5370   cat >conftest.$ac_ext <<_ACEOF
5371 /* confdefs.h.  */
5372 _ACEOF
5373 cat confdefs.h >>conftest.$ac_ext
5374 cat >>conftest.$ac_ext <<_ACEOF
5375 /* end confdefs.h.  */
5376 #include <stdlib.h>
5377
5378 _ACEOF
5379 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5380   $EGREP "free" >/dev/null 2>&1; then
5381   :
5382 else
5383   ac_cv_header_stdc=no
5384 fi
5385 rm -f conftest*
5386
5387 fi
5388
5389 if test $ac_cv_header_stdc = yes; then
5390   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5391   if test "$cross_compiling" = yes; then
5392   :
5393 else
5394   cat >conftest.$ac_ext <<_ACEOF
5395 /* confdefs.h.  */
5396 _ACEOF
5397 cat confdefs.h >>conftest.$ac_ext
5398 cat >>conftest.$ac_ext <<_ACEOF
5399 /* end confdefs.h.  */
5400 #include <ctype.h>
5401 #include <stdlib.h>
5402 #if ((' ' & 0x0FF) == 0x020)
5403 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5404 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5405 #else
5406 # define ISLOWER(c) \
5407                    (('a' <= (c) && (c) <= 'i') \
5408                      || ('j' <= (c) && (c) <= 'r') \
5409                      || ('s' <= (c) && (c) <= 'z'))
5410 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5411 #endif
5412
5413 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5414 int
5415 main ()
5416 {
5417   int i;
5418   for (i = 0; i < 256; i++)
5419     if (XOR (islower (i), ISLOWER (i))
5420         || toupper (i) != TOUPPER (i))
5421       return 2;
5422   return 0;
5423 }
5424 _ACEOF
5425 rm -f conftest$ac_exeext
5426 if { (ac_try="$ac_link"
5427 case "(($ac_try" in
5428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5429   *) ac_try_echo=$ac_try;;
5430 esac
5431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5432   (eval "$ac_link") 2>&5
5433   ac_status=$?
5434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5435   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5436   { (case "(($ac_try" in
5437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5438   *) ac_try_echo=$ac_try;;
5439 esac
5440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5441   (eval "$ac_try") 2>&5
5442   ac_status=$?
5443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444   (exit $ac_status); }; }; then
5445   :
5446 else
5447   echo "$as_me: program exited with status $ac_status" >&5
5448 echo "$as_me: failed program was:" >&5
5449 sed 's/^/| /' conftest.$ac_ext >&5
5450
5451 ( exit $ac_status )
5452 ac_cv_header_stdc=no
5453 fi
5454 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5455 fi
5456
5457
5458 fi
5459 fi
5460 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5461 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5462 if test $ac_cv_header_stdc = yes; then
5463
5464 cat >>confdefs.h <<\_ACEOF
5465 #define STDC_HEADERS 1
5466 _ACEOF
5467
5468 fi
5469
5470 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5481                   inttypes.h stdint.h unistd.h
5482 do
5483 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5484 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5485 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5486 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5487   echo $ECHO_N "(cached) $ECHO_C" >&6
5488 else
5489   cat >conftest.$ac_ext <<_ACEOF
5490 /* confdefs.h.  */
5491 _ACEOF
5492 cat confdefs.h >>conftest.$ac_ext
5493 cat >>conftest.$ac_ext <<_ACEOF
5494 /* end confdefs.h.  */
5495 $ac_includes_default
5496
5497 #include <$ac_header>
5498 _ACEOF
5499 rm -f conftest.$ac_objext
5500 if { (ac_try="$ac_compile"
5501 case "(($ac_try" in
5502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5503   *) ac_try_echo=$ac_try;;
5504 esac
5505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5506   (eval "$ac_compile") 2>conftest.er1
5507   ac_status=$?
5508   grep -v '^ *+' conftest.er1 >conftest.err
5509   rm -f conftest.er1
5510   cat conftest.err >&5
5511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5512   (exit $ac_status); } && {
5513          test -z "$ac_c_werror_flag" ||
5514          test ! -s conftest.err
5515        } && test -s conftest.$ac_objext; then
5516   eval "$as_ac_Header=yes"
5517 else
5518   echo "$as_me: failed program was:" >&5
5519 sed 's/^/| /' conftest.$ac_ext >&5
5520
5521         eval "$as_ac_Header=no"
5522 fi
5523
5524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5525 fi
5526 ac_res=`eval echo '${'$as_ac_Header'}'`
5527                { echo "$as_me:$LINENO: result: $ac_res" >&5
5528 echo "${ECHO_T}$ac_res" >&6; }
5529 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5530   cat >>confdefs.h <<_ACEOF
5531 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5532 _ACEOF
5533
5534 fi
5535
5536 done
5537
5538
5539
5540 for ac_header in dlfcn.h
5541 do
5542 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5543 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5544   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5545 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5546 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5547   echo $ECHO_N "(cached) $ECHO_C" >&6
5548 fi
5549 ac_res=`eval echo '${'$as_ac_Header'}'`
5550                { echo "$as_me:$LINENO: result: $ac_res" >&5
5551 echo "${ECHO_T}$ac_res" >&6; }
5552 else
5553   # Is the header compilable?
5554 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5555 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5556 cat >conftest.$ac_ext <<_ACEOF
5557 /* confdefs.h.  */
5558 _ACEOF
5559 cat confdefs.h >>conftest.$ac_ext
5560 cat >>conftest.$ac_ext <<_ACEOF
5561 /* end confdefs.h.  */
5562 $ac_includes_default
5563 #include <$ac_header>
5564 _ACEOF
5565 rm -f conftest.$ac_objext
5566 if { (ac_try="$ac_compile"
5567 case "(($ac_try" in
5568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5569   *) ac_try_echo=$ac_try;;
5570 esac
5571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5572   (eval "$ac_compile") 2>conftest.er1
5573   ac_status=$?
5574   grep -v '^ *+' conftest.er1 >conftest.err
5575   rm -f conftest.er1
5576   cat conftest.err >&5
5577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5578   (exit $ac_status); } && {
5579          test -z "$ac_c_werror_flag" ||
5580          test ! -s conftest.err
5581        } && test -s conftest.$ac_objext; then
5582   ac_header_compiler=yes
5583 else
5584   echo "$as_me: failed program was:" >&5
5585 sed 's/^/| /' conftest.$ac_ext >&5
5586
5587         ac_header_compiler=no
5588 fi
5589
5590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5591 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5592 echo "${ECHO_T}$ac_header_compiler" >&6; }
5593
5594 # Is the header present?
5595 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5596 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5597 cat >conftest.$ac_ext <<_ACEOF
5598 /* confdefs.h.  */
5599 _ACEOF
5600 cat confdefs.h >>conftest.$ac_ext
5601 cat >>conftest.$ac_ext <<_ACEOF
5602 /* end confdefs.h.  */
5603 #include <$ac_header>
5604 _ACEOF
5605 if { (ac_try="$ac_cpp conftest.$ac_ext"
5606 case "(($ac_try" in
5607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5608   *) ac_try_echo=$ac_try;;
5609 esac
5610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5611   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5612   ac_status=$?
5613   grep -v '^ *+' conftest.er1 >conftest.err
5614   rm -f conftest.er1
5615   cat conftest.err >&5
5616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5617   (exit $ac_status); } >/dev/null && {
5618          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5619          test ! -s conftest.err
5620        }; then
5621   ac_header_preproc=yes
5622 else
5623   echo "$as_me: failed program was:" >&5
5624 sed 's/^/| /' conftest.$ac_ext >&5
5625
5626   ac_header_preproc=no
5627 fi
5628
5629 rm -f conftest.err conftest.$ac_ext
5630 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5631 echo "${ECHO_T}$ac_header_preproc" >&6; }
5632
5633 # So?  What about this header?
5634 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5635   yes:no: )
5636     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5637 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5638     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5639 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5640     ac_header_preproc=yes
5641     ;;
5642   no:yes:* )
5643     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5644 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5645     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5646 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5647     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5648 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5649     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5650 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5651     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5652 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5653     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5654 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5655     ( cat <<\_ASBOX
5656 ## ----------------------------------------------- ##
5657 ## Report this to webmaster.salome@opencascade.com ##
5658 ## ----------------------------------------------- ##
5659 _ASBOX
5660      ) | sed "s/^/$as_me: WARNING:     /" >&2
5661     ;;
5662 esac
5663 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5664 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5665 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5666   echo $ECHO_N "(cached) $ECHO_C" >&6
5667 else
5668   eval "$as_ac_Header=\$ac_header_preproc"
5669 fi
5670 ac_res=`eval echo '${'$as_ac_Header'}'`
5671                { echo "$as_me:$LINENO: result: $ac_res" >&5
5672 echo "${ECHO_T}$ac_res" >&6; }
5673
5674 fi
5675 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5676   cat >>confdefs.h <<_ACEOF
5677 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5678 _ACEOF
5679
5680 fi
5681
5682 done
5683
5684 ac_ext=cpp
5685 ac_cpp='$CXXCPP $CPPFLAGS'
5686 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5687 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5688 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5689 if test -z "$CXX"; then
5690   if test -n "$CCC"; then
5691     CXX=$CCC
5692   else
5693     if test -n "$ac_tool_prefix"; then
5694   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5695   do
5696     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5697 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5698 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5700 if test "${ac_cv_prog_CXX+set}" = set; then
5701   echo $ECHO_N "(cached) $ECHO_C" >&6
5702 else
5703   if test -n "$CXX"; then
5704   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5705 else
5706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5707 for as_dir in $PATH
5708 do
5709   IFS=$as_save_IFS
5710   test -z "$as_dir" && as_dir=.
5711   for ac_exec_ext in '' $ac_executable_extensions; do
5712   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5713     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5714     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5715     break 2
5716   fi
5717 done
5718 done
5719 IFS=$as_save_IFS
5720
5721 fi
5722 fi
5723 CXX=$ac_cv_prog_CXX
5724 if test -n "$CXX"; then
5725   { echo "$as_me:$LINENO: result: $CXX" >&5
5726 echo "${ECHO_T}$CXX" >&6; }
5727 else
5728   { echo "$as_me:$LINENO: result: no" >&5
5729 echo "${ECHO_T}no" >&6; }
5730 fi
5731
5732
5733     test -n "$CXX" && break
5734   done
5735 fi
5736 if test -z "$CXX"; then
5737   ac_ct_CXX=$CXX
5738   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5739 do
5740   # Extract the first word of "$ac_prog", so it can be a program name with args.
5741 set dummy $ac_prog; ac_word=$2
5742 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5744 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5745   echo $ECHO_N "(cached) $ECHO_C" >&6
5746 else
5747   if test -n "$ac_ct_CXX"; then
5748   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5749 else
5750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5751 for as_dir in $PATH
5752 do
5753   IFS=$as_save_IFS
5754   test -z "$as_dir" && as_dir=.
5755   for ac_exec_ext in '' $ac_executable_extensions; do
5756   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5757     ac_cv_prog_ac_ct_CXX="$ac_prog"
5758     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5759     break 2
5760   fi
5761 done
5762 done
5763 IFS=$as_save_IFS
5764
5765 fi
5766 fi
5767 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5768 if test -n "$ac_ct_CXX"; then
5769   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5770 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5771 else
5772   { echo "$as_me:$LINENO: result: no" >&5
5773 echo "${ECHO_T}no" >&6; }
5774 fi
5775
5776
5777   test -n "$ac_ct_CXX" && break
5778 done
5779
5780   if test "x$ac_ct_CXX" = x; then
5781     CXX="g++"
5782   else
5783     case $cross_compiling:$ac_tool_warned in
5784 yes:)
5785 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5786 whose name does not start with the host triplet.  If you think this
5787 configuration is useful to you, please write to autoconf@gnu.org." >&5
5788 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5789 whose name does not start with the host triplet.  If you think this
5790 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5791 ac_tool_warned=yes ;;
5792 esac
5793     CXX=$ac_ct_CXX
5794   fi
5795 fi
5796
5797   fi
5798 fi
5799 # Provide some information about the compiler.
5800 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5801 ac_compiler=`set X $ac_compile; echo $2`
5802 { (ac_try="$ac_compiler --version >&5"
5803 case "(($ac_try" in
5804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5805   *) ac_try_echo=$ac_try;;
5806 esac
5807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5808   (eval "$ac_compiler --version >&5") 2>&5
5809   ac_status=$?
5810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5811   (exit $ac_status); }
5812 { (ac_try="$ac_compiler -v >&5"
5813 case "(($ac_try" in
5814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5815   *) ac_try_echo=$ac_try;;
5816 esac
5817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5818   (eval "$ac_compiler -v >&5") 2>&5
5819   ac_status=$?
5820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5821   (exit $ac_status); }
5822 { (ac_try="$ac_compiler -V >&5"
5823 case "(($ac_try" in
5824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5825   *) ac_try_echo=$ac_try;;
5826 esac
5827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5828   (eval "$ac_compiler -V >&5") 2>&5
5829   ac_status=$?
5830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5831   (exit $ac_status); }
5832
5833 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5834 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5835 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5836   echo $ECHO_N "(cached) $ECHO_C" >&6
5837 else
5838   cat >conftest.$ac_ext <<_ACEOF
5839 /* confdefs.h.  */
5840 _ACEOF
5841 cat confdefs.h >>conftest.$ac_ext
5842 cat >>conftest.$ac_ext <<_ACEOF
5843 /* end confdefs.h.  */
5844
5845 int
5846 main ()
5847 {
5848 #ifndef __GNUC__
5849        choke me
5850 #endif
5851
5852   ;
5853   return 0;
5854 }
5855 _ACEOF
5856 rm -f conftest.$ac_objext
5857 if { (ac_try="$ac_compile"
5858 case "(($ac_try" in
5859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5860   *) ac_try_echo=$ac_try;;
5861 esac
5862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5863   (eval "$ac_compile") 2>conftest.er1
5864   ac_status=$?
5865   grep -v '^ *+' conftest.er1 >conftest.err
5866   rm -f conftest.er1
5867   cat conftest.err >&5
5868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5869   (exit $ac_status); } && {
5870          test -z "$ac_cxx_werror_flag" ||
5871          test ! -s conftest.err
5872        } && test -s conftest.$ac_objext; then
5873   ac_compiler_gnu=yes
5874 else
5875   echo "$as_me: failed program was:" >&5
5876 sed 's/^/| /' conftest.$ac_ext >&5
5877
5878         ac_compiler_gnu=no
5879 fi
5880
5881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5882 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5883
5884 fi
5885 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5886 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5887 GXX=`test $ac_compiler_gnu = yes && echo yes`
5888 ac_test_CXXFLAGS=${CXXFLAGS+set}
5889 ac_save_CXXFLAGS=$CXXFLAGS
5890 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5891 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5892 if test "${ac_cv_prog_cxx_g+set}" = set; then
5893   echo $ECHO_N "(cached) $ECHO_C" >&6
5894 else
5895   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5896    ac_cxx_werror_flag=yes
5897    ac_cv_prog_cxx_g=no
5898    CXXFLAGS="-g"
5899    cat >conftest.$ac_ext <<_ACEOF
5900 /* confdefs.h.  */
5901 _ACEOF
5902 cat confdefs.h >>conftest.$ac_ext
5903 cat >>conftest.$ac_ext <<_ACEOF
5904 /* end confdefs.h.  */
5905
5906 int
5907 main ()
5908 {
5909
5910   ;
5911   return 0;
5912 }
5913 _ACEOF
5914 rm -f conftest.$ac_objext
5915 if { (ac_try="$ac_compile"
5916 case "(($ac_try" in
5917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5918   *) ac_try_echo=$ac_try;;
5919 esac
5920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5921   (eval "$ac_compile") 2>conftest.er1
5922   ac_status=$?
5923   grep -v '^ *+' conftest.er1 >conftest.err
5924   rm -f conftest.er1
5925   cat conftest.err >&5
5926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5927   (exit $ac_status); } && {
5928          test -z "$ac_cxx_werror_flag" ||
5929          test ! -s conftest.err
5930        } && test -s conftest.$ac_objext; then
5931   ac_cv_prog_cxx_g=yes
5932 else
5933   echo "$as_me: failed program was:" >&5
5934 sed 's/^/| /' conftest.$ac_ext >&5
5935
5936         CXXFLAGS=""
5937       cat >conftest.$ac_ext <<_ACEOF
5938 /* confdefs.h.  */
5939 _ACEOF
5940 cat confdefs.h >>conftest.$ac_ext
5941 cat >>conftest.$ac_ext <<_ACEOF
5942 /* end confdefs.h.  */
5943
5944 int
5945 main ()
5946 {
5947
5948   ;
5949   return 0;
5950 }
5951 _ACEOF
5952 rm -f conftest.$ac_objext
5953 if { (ac_try="$ac_compile"
5954 case "(($ac_try" in
5955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5956   *) ac_try_echo=$ac_try;;
5957 esac
5958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5959   (eval "$ac_compile") 2>conftest.er1
5960   ac_status=$?
5961   grep -v '^ *+' conftest.er1 >conftest.err
5962   rm -f conftest.er1
5963   cat conftest.err >&5
5964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965   (exit $ac_status); } && {
5966          test -z "$ac_cxx_werror_flag" ||
5967          test ! -s conftest.err
5968        } && test -s conftest.$ac_objext; then
5969   :
5970 else
5971   echo "$as_me: failed program was:" >&5
5972 sed 's/^/| /' conftest.$ac_ext >&5
5973
5974         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5975          CXXFLAGS="-g"
5976          cat >conftest.$ac_ext <<_ACEOF
5977 /* confdefs.h.  */
5978 _ACEOF
5979 cat confdefs.h >>conftest.$ac_ext
5980 cat >>conftest.$ac_ext <<_ACEOF
5981 /* end confdefs.h.  */
5982
5983 int
5984 main ()
5985 {
5986
5987   ;
5988   return 0;
5989 }
5990 _ACEOF
5991 rm -f conftest.$ac_objext
5992 if { (ac_try="$ac_compile"
5993 case "(($ac_try" in
5994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5995   *) ac_try_echo=$ac_try;;
5996 esac
5997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5998   (eval "$ac_compile") 2>conftest.er1
5999   ac_status=$?
6000   grep -v '^ *+' conftest.er1 >conftest.err
6001   rm -f conftest.er1
6002   cat conftest.err >&5
6003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004   (exit $ac_status); } && {
6005          test -z "$ac_cxx_werror_flag" ||
6006          test ! -s conftest.err
6007        } && test -s conftest.$ac_objext; then
6008   ac_cv_prog_cxx_g=yes
6009 else
6010   echo "$as_me: failed program was:" >&5
6011 sed 's/^/| /' conftest.$ac_ext >&5
6012
6013
6014 fi
6015
6016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6017 fi
6018
6019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6020 fi
6021
6022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6023    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6024 fi
6025 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6026 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6027 if test "$ac_test_CXXFLAGS" = set; then
6028   CXXFLAGS=$ac_save_CXXFLAGS
6029 elif test $ac_cv_prog_cxx_g = yes; then
6030   if test "$GXX" = yes; then
6031     CXXFLAGS="-g -O2"
6032   else
6033     CXXFLAGS="-g"
6034   fi
6035 else
6036   if test "$GXX" = yes; then
6037     CXXFLAGS="-O2"
6038   else
6039     CXXFLAGS=
6040   fi
6041 fi
6042 ac_ext=cpp
6043 ac_cpp='$CXXCPP $CPPFLAGS'
6044 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6045 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6046 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6047
6048 depcc="$CXX"  am_compiler_list=
6049
6050 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6051 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
6052 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6053   echo $ECHO_N "(cached) $ECHO_C" >&6
6054 else
6055   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6056   # We make a subdir and do the tests there.  Otherwise we can end up
6057   # making bogus files that we don't know about and never remove.  For
6058   # instance it was reported that on HP-UX the gcc test will end up
6059   # making a dummy file named `D' -- because `-MD' means `put the output
6060   # in D'.
6061   mkdir conftest.dir
6062   # Copy depcomp to subdir because otherwise we won't find it if we're
6063   # using a relative directory.
6064   cp "$am_depcomp" conftest.dir
6065   cd conftest.dir
6066   # We will build objects and dependencies in a subdirectory because
6067   # it helps to detect inapplicable dependency modes.  For instance
6068   # both Tru64's cc and ICC support -MD to output dependencies as a
6069   # side effect of compilation, but ICC will put the dependencies in
6070   # the current directory while Tru64 will put them in the object
6071   # directory.
6072   mkdir sub
6073
6074   am_cv_CXX_dependencies_compiler_type=none
6075   if test "$am_compiler_list" = ""; then
6076      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6077   fi
6078   for depmode in $am_compiler_list; do
6079     # Setup a source with many dependencies, because some compilers
6080     # like to wrap large dependency lists on column 80 (with \), and
6081     # we should not choose a depcomp mode which is confused by this.
6082     #
6083     # We need to recreate these files for each test, as the compiler may
6084     # overwrite some of them when testing with obscure command lines.
6085     # This happens at least with the AIX C compiler.
6086     : > sub/conftest.c
6087     for i in 1 2 3 4 5 6; do
6088       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6089       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6090       # Solaris 8's {/usr,}/bin/bash.
6091       touch sub/conftst$i.h
6092     done
6093     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6094
6095     case $depmode in
6096     nosideeffect)
6097       # after this tag, mechanisms are not by side-effect, so they'll
6098       # only be used when explicitly requested
6099       if test "x$enable_dependency_tracking" = xyes; then
6100         continue
6101       else
6102         break
6103       fi
6104       ;;
6105     none) break ;;
6106     esac
6107     # We check with `-c' and `-o' for the sake of the "dashmstdout"
6108     # mode.  It turns out that the SunPro C++ compiler does not properly
6109     # handle `-M -o', and we need to detect this.
6110     if depmode=$depmode \
6111        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6112        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6113        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6114          >/dev/null 2>conftest.err &&
6115        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6116        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6117        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6118        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6119       # icc doesn't choke on unknown options, it will just issue warnings
6120       # or remarks (even with -Werror).  So we grep stderr for any message
6121       # that says an option was ignored or not supported.
6122       # When given -MP, icc 7.0 and 7.1 complain thusly:
6123       #   icc: Command line warning: ignoring option '-M'; no argument required
6124       # The diagnosis changed in icc 8.0:
6125       #   icc: Command line remark: option '-MP' not supported
6126       if (grep 'ignoring option' conftest.err ||
6127           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6128         am_cv_CXX_dependencies_compiler_type=$depmode
6129         break
6130       fi
6131     fi
6132   done
6133
6134   cd ..
6135   rm -rf conftest.dir
6136 else
6137   am_cv_CXX_dependencies_compiler_type=none
6138 fi
6139
6140 fi
6141 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6142 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
6143 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6144
6145  if
6146   test "x$enable_dependency_tracking" != xno \
6147   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6148   am__fastdepCXX_TRUE=
6149   am__fastdepCXX_FALSE='#'
6150 else
6151   am__fastdepCXX_TRUE='#'
6152   am__fastdepCXX_FALSE=
6153 fi
6154
6155
6156
6157
6158 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6159     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6160     (test "X$CXX" != "Xg++"))) ; then
6161   ac_ext=cpp
6162 ac_cpp='$CXXCPP $CPPFLAGS'
6163 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6164 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6165 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6166 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6167 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6168 if test -z "$CXXCPP"; then
6169   if test "${ac_cv_prog_CXXCPP+set}" = set; then
6170   echo $ECHO_N "(cached) $ECHO_C" >&6
6171 else
6172       # Double quotes because CXXCPP needs to be expanded
6173     for CXXCPP in "$CXX -E" "/lib/cpp"
6174     do
6175       ac_preproc_ok=false
6176 for ac_cxx_preproc_warn_flag in '' yes
6177 do
6178   # Use a header file that comes with gcc, so configuring glibc
6179   # with a fresh cross-compiler works.
6180   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6181   # <limits.h> exists even on freestanding compilers.
6182   # On the NeXT, cc -E runs the code through the compiler's parser,
6183   # not just through cpp. "Syntax error" is here to catch this case.
6184   cat >conftest.$ac_ext <<_ACEOF
6185 /* confdefs.h.  */
6186 _ACEOF
6187 cat confdefs.h >>conftest.$ac_ext
6188 cat >>conftest.$ac_ext <<_ACEOF
6189 /* end confdefs.h.  */
6190 #ifdef __STDC__
6191 # include <limits.h>
6192 #else
6193 # include <assert.h>
6194 #endif
6195                      Syntax error
6196 _ACEOF
6197 if { (ac_try="$ac_cpp conftest.$ac_ext"
6198 case "(($ac_try" in
6199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6200   *) ac_try_echo=$ac_try;;
6201 esac
6202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6203   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6204   ac_status=$?
6205   grep -v '^ *+' conftest.er1 >conftest.err
6206   rm -f conftest.er1
6207   cat conftest.err >&5
6208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6209   (exit $ac_status); } >/dev/null && {
6210          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6211          test ! -s conftest.err
6212        }; then
6213   :
6214 else
6215   echo "$as_me: failed program was:" >&5
6216 sed 's/^/| /' conftest.$ac_ext >&5
6217
6218   # Broken: fails on valid input.
6219 continue
6220 fi
6221
6222 rm -f conftest.err conftest.$ac_ext
6223
6224   # OK, works on sane cases.  Now check whether nonexistent headers
6225   # can be detected and how.
6226   cat >conftest.$ac_ext <<_ACEOF
6227 /* confdefs.h.  */
6228 _ACEOF
6229 cat confdefs.h >>conftest.$ac_ext
6230 cat >>conftest.$ac_ext <<_ACEOF
6231 /* end confdefs.h.  */
6232 #include <ac_nonexistent.h>
6233 _ACEOF
6234 if { (ac_try="$ac_cpp conftest.$ac_ext"
6235 case "(($ac_try" in
6236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6237   *) ac_try_echo=$ac_try;;
6238 esac
6239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6240   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6241   ac_status=$?
6242   grep -v '^ *+' conftest.er1 >conftest.err
6243   rm -f conftest.er1
6244   cat conftest.err >&5
6245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6246   (exit $ac_status); } >/dev/null && {
6247          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6248          test ! -s conftest.err
6249        }; then
6250   # Broken: success on invalid input.
6251 continue
6252 else
6253   echo "$as_me: failed program was:" >&5
6254 sed 's/^/| /' conftest.$ac_ext >&5
6255
6256   # Passes both tests.
6257 ac_preproc_ok=:
6258 break
6259 fi
6260
6261 rm -f conftest.err conftest.$ac_ext
6262
6263 done
6264 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6265 rm -f conftest.err conftest.$ac_ext
6266 if $ac_preproc_ok; then
6267   break
6268 fi
6269
6270     done
6271     ac_cv_prog_CXXCPP=$CXXCPP
6272
6273 fi
6274   CXXCPP=$ac_cv_prog_CXXCPP
6275 else
6276   ac_cv_prog_CXXCPP=$CXXCPP
6277 fi
6278 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6279 echo "${ECHO_T}$CXXCPP" >&6; }
6280 ac_preproc_ok=false
6281 for ac_cxx_preproc_warn_flag in '' yes
6282 do
6283   # Use a header file that comes with gcc, so configuring glibc
6284   # with a fresh cross-compiler works.
6285   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6286   # <limits.h> exists even on freestanding compilers.
6287   # On the NeXT, cc -E runs the code through the compiler's parser,
6288   # not just through cpp. "Syntax error" is here to catch this case.
6289   cat >conftest.$ac_ext <<_ACEOF
6290 /* confdefs.h.  */
6291 _ACEOF
6292 cat confdefs.h >>conftest.$ac_ext
6293 cat >>conftest.$ac_ext <<_ACEOF
6294 /* end confdefs.h.  */
6295 #ifdef __STDC__
6296 # include <limits.h>
6297 #else
6298 # include <assert.h>
6299 #endif
6300                      Syntax error
6301 _ACEOF
6302 if { (ac_try="$ac_cpp conftest.$ac_ext"
6303 case "(($ac_try" in
6304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6305   *) ac_try_echo=$ac_try;;
6306 esac
6307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6308   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6309   ac_status=$?
6310   grep -v '^ *+' conftest.er1 >conftest.err
6311   rm -f conftest.er1
6312   cat conftest.err >&5
6313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314   (exit $ac_status); } >/dev/null && {
6315          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6316          test ! -s conftest.err
6317        }; then
6318   :
6319 else
6320   echo "$as_me: failed program was:" >&5
6321 sed 's/^/| /' conftest.$ac_ext >&5
6322
6323   # Broken: fails on valid input.
6324 continue
6325 fi
6326
6327 rm -f conftest.err conftest.$ac_ext
6328
6329   # OK, works on sane cases.  Now check whether nonexistent headers
6330   # can be detected and how.
6331   cat >conftest.$ac_ext <<_ACEOF
6332 /* confdefs.h.  */
6333 _ACEOF
6334 cat confdefs.h >>conftest.$ac_ext
6335 cat >>conftest.$ac_ext <<_ACEOF
6336 /* end confdefs.h.  */
6337 #include <ac_nonexistent.h>
6338 _ACEOF
6339 if { (ac_try="$ac_cpp conftest.$ac_ext"
6340 case "(($ac_try" in
6341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6342   *) ac_try_echo=$ac_try;;
6343 esac
6344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6345   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6346   ac_status=$?
6347   grep -v '^ *+' conftest.er1 >conftest.err
6348   rm -f conftest.er1
6349   cat conftest.err >&5
6350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6351   (exit $ac_status); } >/dev/null && {
6352          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6353          test ! -s conftest.err
6354        }; then
6355   # Broken: success on invalid input.
6356 continue
6357 else
6358   echo "$as_me: failed program was:" >&5
6359 sed 's/^/| /' conftest.$ac_ext >&5
6360
6361   # Passes both tests.
6362 ac_preproc_ok=:
6363 break
6364 fi
6365
6366 rm -f conftest.err conftest.$ac_ext
6367
6368 done
6369 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6370 rm -f conftest.err conftest.$ac_ext
6371 if $ac_preproc_ok; then
6372   :
6373 else
6374   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6375 See \`config.log' for more details." >&5
6376 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6377 See \`config.log' for more details." >&2;}
6378    { (exit 1); exit 1; }; }
6379 fi
6380
6381 ac_ext=cpp
6382 ac_cpp='$CXXCPP $CPPFLAGS'
6383 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6384 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6385 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6386
6387 fi
6388
6389
6390 ac_ext=f
6391 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6392 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6393 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6394 if test -n "$ac_tool_prefix"; then
6395   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6396   do
6397     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6398 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6399 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6401 if test "${ac_cv_prog_F77+set}" = set; then
6402   echo $ECHO_N "(cached) $ECHO_C" >&6
6403 else
6404   if test -n "$F77"; then
6405   ac_cv_prog_F77="$F77" # Let the user override the test.
6406 else
6407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6408 for as_dir in $PATH
6409 do
6410   IFS=$as_save_IFS
6411   test -z "$as_dir" && as_dir=.
6412   for ac_exec_ext in '' $ac_executable_extensions; do
6413   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6414     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6415     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6416     break 2
6417   fi
6418 done
6419 done
6420 IFS=$as_save_IFS
6421
6422 fi
6423 fi
6424 F77=$ac_cv_prog_F77
6425 if test -n "$F77"; then
6426   { echo "$as_me:$LINENO: result: $F77" >&5
6427 echo "${ECHO_T}$F77" >&6; }
6428 else
6429   { echo "$as_me:$LINENO: result: no" >&5
6430 echo "${ECHO_T}no" >&6; }
6431 fi
6432
6433
6434     test -n "$F77" && break
6435   done
6436 fi
6437 if test -z "$F77"; then
6438   ac_ct_F77=$F77
6439   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6440 do
6441   # Extract the first word of "$ac_prog", so it can be a program name with args.
6442 set dummy $ac_prog; ac_word=$2
6443 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6445 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6446   echo $ECHO_N "(cached) $ECHO_C" >&6
6447 else
6448   if test -n "$ac_ct_F77"; then
6449   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6450 else
6451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6452 for as_dir in $PATH
6453 do
6454   IFS=$as_save_IFS
6455   test -z "$as_dir" && as_dir=.
6456   for ac_exec_ext in '' $ac_executable_extensions; do
6457   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6458     ac_cv_prog_ac_ct_F77="$ac_prog"
6459     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6460     break 2
6461   fi
6462 done
6463 done
6464 IFS=$as_save_IFS
6465
6466 fi
6467 fi
6468 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6469 if test -n "$ac_ct_F77"; then
6470   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6471 echo "${ECHO_T}$ac_ct_F77" >&6; }
6472 else
6473   { echo "$as_me:$LINENO: result: no" >&5
6474 echo "${ECHO_T}no" >&6; }
6475 fi
6476
6477
6478   test -n "$ac_ct_F77" && break
6479 done
6480
6481   if test "x$ac_ct_F77" = x; then
6482     F77=""
6483   else
6484     case $cross_compiling:$ac_tool_warned in
6485 yes:)
6486 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6487 whose name does not start with the host triplet.  If you think this
6488 configuration is useful to you, please write to autoconf@gnu.org." >&5
6489 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6490 whose name does not start with the host triplet.  If you think this
6491 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6492 ac_tool_warned=yes ;;
6493 esac
6494     F77=$ac_ct_F77
6495   fi
6496 fi
6497
6498
6499 # Provide some information about the compiler.
6500 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6501 ac_compiler=`set X $ac_compile; echo $2`
6502 { (ac_try="$ac_compiler --version >&5"
6503 case "(($ac_try" in
6504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6505   *) ac_try_echo=$ac_try;;
6506 esac
6507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6508   (eval "$ac_compiler --version >&5") 2>&5
6509   ac_status=$?
6510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511   (exit $ac_status); }
6512 { (ac_try="$ac_compiler -v >&5"
6513 case "(($ac_try" in
6514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6515   *) ac_try_echo=$ac_try;;
6516 esac
6517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6518   (eval "$ac_compiler -v >&5") 2>&5
6519   ac_status=$?
6520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6521   (exit $ac_status); }
6522 { (ac_try="$ac_compiler -V >&5"
6523 case "(($ac_try" in
6524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6525   *) ac_try_echo=$ac_try;;
6526 esac
6527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6528   (eval "$ac_compiler -V >&5") 2>&5
6529   ac_status=$?
6530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6531   (exit $ac_status); }
6532 rm -f a.out
6533
6534 # If we don't use `.F' as extension, the preprocessor is not run on the
6535 # input file.  (Note that this only needs to work for GNU compilers.)
6536 ac_save_ext=$ac_ext
6537 ac_ext=F
6538 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6539 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6540 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6541   echo $ECHO_N "(cached) $ECHO_C" >&6
6542 else
6543   cat >conftest.$ac_ext <<_ACEOF
6544       program main
6545 #ifndef __GNUC__
6546        choke me
6547 #endif
6548
6549       end
6550 _ACEOF
6551 rm -f conftest.$ac_objext
6552 if { (ac_try="$ac_compile"
6553 case "(($ac_try" in
6554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6555   *) ac_try_echo=$ac_try;;
6556 esac
6557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6558   (eval "$ac_compile") 2>conftest.er1
6559   ac_status=$?
6560   grep -v '^ *+' conftest.er1 >conftest.err
6561   rm -f conftest.er1
6562   cat conftest.err >&5
6563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6564   (exit $ac_status); } && {
6565          test -z "$ac_f77_werror_flag" ||
6566          test ! -s conftest.err
6567        } && test -s conftest.$ac_objext; then
6568   ac_compiler_gnu=yes
6569 else
6570   echo "$as_me: failed program was:" >&5
6571 sed 's/^/| /' conftest.$ac_ext >&5
6572
6573         ac_compiler_gnu=no
6574 fi
6575
6576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6577 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6578
6579 fi
6580 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6581 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6582 ac_ext=$ac_save_ext
6583 ac_test_FFLAGS=${FFLAGS+set}
6584 ac_save_FFLAGS=$FFLAGS
6585 FFLAGS=
6586 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6587 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6588 if test "${ac_cv_prog_f77_g+set}" = set; then
6589   echo $ECHO_N "(cached) $ECHO_C" >&6
6590 else
6591   FFLAGS=-g
6592 cat >conftest.$ac_ext <<_ACEOF
6593       program main
6594
6595       end
6596 _ACEOF
6597 rm -f conftest.$ac_objext
6598 if { (ac_try="$ac_compile"
6599 case "(($ac_try" in
6600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6601   *) ac_try_echo=$ac_try;;
6602 esac
6603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6604   (eval "$ac_compile") 2>conftest.er1
6605   ac_status=$?
6606   grep -v '^ *+' conftest.er1 >conftest.err
6607   rm -f conftest.er1
6608   cat conftest.err >&5
6609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610   (exit $ac_status); } && {
6611          test -z "$ac_f77_werror_flag" ||
6612          test ! -s conftest.err
6613        } && test -s conftest.$ac_objext; then
6614   ac_cv_prog_f77_g=yes
6615 else
6616   echo "$as_me: failed program was:" >&5
6617 sed 's/^/| /' conftest.$ac_ext >&5
6618
6619         ac_cv_prog_f77_g=no
6620 fi
6621
6622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6623
6624 fi
6625 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6626 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6627 if test "$ac_test_FFLAGS" = set; then
6628   FFLAGS=$ac_save_FFLAGS
6629 elif test $ac_cv_prog_f77_g = yes; then
6630   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6631     FFLAGS="-g -O2"
6632   else
6633     FFLAGS="-g"
6634   fi
6635 else
6636   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6637     FFLAGS="-O2"
6638   else
6639     FFLAGS=
6640   fi
6641 fi
6642
6643 G77=`test $ac_compiler_gnu = yes && echo yes`
6644 ac_ext=c
6645 ac_cpp='$CPP $CPPFLAGS'
6646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6649
6650
6651
6652 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6653
6654 # find the maximum length of command line arguments
6655 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6656 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6657 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6658   echo $ECHO_N "(cached) $ECHO_C" >&6
6659 else
6660     i=0
6661   teststring="ABCD"
6662
6663   case $build_os in
6664   msdosdjgpp*)
6665     # On DJGPP, this test can blow up pretty badly due to problems in libc
6666     # (any single argument exceeding 2000 bytes causes a buffer overrun
6667     # during glob expansion).  Even if it were fixed, the result of this
6668     # check would be larger than it should be.
6669     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6670     ;;
6671
6672   gnu*)
6673     # Under GNU Hurd, this test is not required because there is
6674     # no limit to the length of command line arguments.
6675     # Libtool will interpret -1 as no limit whatsoever
6676     lt_cv_sys_max_cmd_len=-1;
6677     ;;
6678
6679   cygwin* | mingw*)
6680     # On Win9x/ME, this test blows up -- it succeeds, but takes
6681     # about 5 minutes as the teststring grows exponentially.
6682     # Worse, since 9x/ME are not pre-emptively multitasking,
6683     # you end up with a "frozen" computer, even though with patience
6684     # the test eventually succeeds (with a max line length of 256k).
6685     # Instead, let's just punt: use the minimum linelength reported by
6686     # all of the supported platforms: 8192 (on NT/2K/XP).
6687     lt_cv_sys_max_cmd_len=8192;
6688     ;;
6689
6690   amigaos*)
6691     # On AmigaOS with pdksh, this test takes hours, literally.
6692     # So we just punt and use a minimum line length of 8192.
6693     lt_cv_sys_max_cmd_len=8192;
6694     ;;
6695
6696   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6697     # This has been around since 386BSD, at least.  Likely further.
6698     if test -x /sbin/sysctl; then
6699       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6700     elif test -x /usr/sbin/sysctl; then
6701       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6702     else
6703       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6704     fi
6705     # And add a safety zone
6706     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6707     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6708     ;;
6709
6710   interix*)
6711     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6712     lt_cv_sys_max_cmd_len=196608
6713     ;;
6714
6715   osf*)
6716     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6717     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6718     # nice to cause kernel panics so lets avoid the loop below.
6719     # First set a reasonable default.
6720     lt_cv_sys_max_cmd_len=16384
6721     #
6722     if test -x /sbin/sysconfig; then
6723       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6724         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6725       esac
6726     fi
6727     ;;
6728   sco3.2v5*)
6729     lt_cv_sys_max_cmd_len=102400
6730     ;;
6731   sysv5* | sco5v6* | sysv4.2uw2*)
6732     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6733     if test -n "$kargmax"; then
6734       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6735     else
6736       lt_cv_sys_max_cmd_len=32768
6737     fi
6738     ;;
6739   *)
6740     # If test is not a shell built-in, we'll probably end up computing a
6741     # maximum length that is only half of the actual maximum length, but
6742     # we can't tell.
6743     SHELL=${SHELL-${CONFIG_SHELL-/bin/bash}}
6744     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6745                = "XX$teststring") >/dev/null 2>&1 &&
6746             new_result=`expr "X$teststring" : ".*" 2>&1` &&
6747             lt_cv_sys_max_cmd_len=$new_result &&
6748             test $i != 17 # 1/2 MB should be enough
6749     do
6750       i=`expr $i + 1`
6751       teststring=$teststring$teststring
6752     done
6753     teststring=
6754     # Add a significant safety factor because C++ compilers can tack on massive
6755     # amounts of additional arguments before passing them to the linker.
6756     # It appears as though 1/2 is a usable value.
6757     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6758     ;;
6759   esac
6760
6761 fi
6762
6763 if test -n $lt_cv_sys_max_cmd_len ; then
6764   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6765 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6766 else
6767   { echo "$as_me:$LINENO: result: none" >&5
6768 echo "${ECHO_T}none" >&6; }
6769 fi
6770
6771
6772
6773
6774 # Check for command to grab the raw symbol name followed by C symbol from nm.
6775 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6776 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6777 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6778   echo $ECHO_N "(cached) $ECHO_C" >&6
6779 else
6780
6781 # These are sane defaults that work on at least a few old systems.
6782 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6783
6784 # Character class describing NM global symbol codes.
6785 symcode='[BCDEGRST]'
6786
6787 # Regexp to match symbols that can be accessed directly from C.
6788 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6789
6790 # Transform an extracted symbol line into a proper C declaration
6791 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6792
6793 # Transform an extracted symbol line into symbol name and symbol address
6794 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6795
6796 # Define system-specific variables.
6797 case $host_os in
6798 aix*)
6799   symcode='[BCDT]'
6800   ;;
6801 cygwin* | mingw* | pw32*)
6802   symcode='[ABCDGISTW]'
6803   ;;
6804 hpux*) # Its linker distinguishes data from code symbols
6805   if test "$host_cpu" = ia64; then
6806     symcode='[ABCDEGRST]'
6807   fi
6808   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6809   lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6810   ;;
6811 linux*)
6812   if test "$host_cpu" = ia64; then
6813     symcode='[ABCDGIRSTW]'
6814     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6815     lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6816   fi
6817   ;;
6818 irix* | nonstopux*)
6819   symcode='[BCDEGRST]'
6820   ;;
6821 osf*)
6822   symcode='[BCDEGQRST]'
6823   ;;
6824 solaris*)
6825   symcode='[BDRT]'
6826   ;;
6827 sco3.2v5*)
6828   symcode='[DT]'
6829   ;;
6830 sysv4.2uw2*)
6831   symcode='[DT]'
6832   ;;
6833 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6834   symcode='[ABDT]'
6835   ;;
6836 sysv4)
6837   symcode='[DFNSTU]'
6838   ;;
6839 esac
6840
6841 # Handle CRLF in mingw tool chain
6842 opt_cr=
6843 case $build_os in
6844 mingw*)
6845   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6846   ;;
6847 esac
6848
6849 # If we're using GNU nm, then use its standard symbol codes.
6850 case `$NM -V 2>&1` in
6851 *GNU* | *'with BFD'*)
6852   symcode='[ABCDGIRSTW]' ;;
6853 esac
6854
6855 # Try without a prefix undercore, then with it.
6856 for ac_symprfx in "" "_"; do
6857
6858   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6859   symxfrm="\\1 $ac_symprfx\\2 \\2"
6860
6861   # Write the raw and C identifiers.
6862   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6863
6864   # Check to see that the pipe works correctly.
6865   pipe_works=no
6866
6867   rm -f conftest*
6868   cat > conftest.$ac_ext <<EOF
6869 #ifdef __cplusplus
6870 extern "C" {
6871 #endif
6872 char nm_test_var;
6873 void nm_test_func(){}
6874 #ifdef __cplusplus
6875 }
6876 #endif
6877 int main(){nm_test_var='a';nm_test_func();return(0);}
6878 EOF
6879
6880   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6881   (eval $ac_compile) 2>&5
6882   ac_status=$?
6883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6884   (exit $ac_status); }; then
6885     # Now try to grab the symbols.
6886     nlist=conftest.nm
6887     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6888   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6889   ac_status=$?
6890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6891   (exit $ac_status); } && test -s "$nlist"; then
6892       # Try sorting and uniquifying the output.
6893       if sort "$nlist" | uniq > "$nlist"T; then
6894         mv -f "$nlist"T "$nlist"
6895       else
6896         rm -f "$nlist"T
6897       fi
6898
6899       # Make sure that we snagged all the symbols we need.
6900       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6901         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6902           cat <<EOF > conftest.$ac_ext
6903 #ifdef __cplusplus
6904 extern "C" {
6905 #endif
6906
6907 EOF
6908           # Now generate the symbol file.
6909           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6910
6911           cat <<EOF >> conftest.$ac_ext
6912 #if defined (__STDC__) && __STDC__
6913 # define lt_ptr_t void *
6914 #else
6915 # define lt_ptr_t char *
6916 # define const
6917 #endif
6918
6919 /* The mapping between symbol names and symbols. */
6920 const struct {
6921   const char *name;
6922   lt_ptr_t address;
6923 }
6924 lt_preloaded_symbols[] =
6925 {
6926 EOF
6927           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6928           cat <<\EOF >> conftest.$ac_ext
6929   {0, (lt_ptr_t) 0}
6930 };
6931
6932 #ifdef __cplusplus
6933 }
6934 #endif
6935 EOF
6936           # Now try linking the two files.
6937           mv conftest.$ac_objext conftstm.$ac_objext
6938           lt_save_LIBS="$LIBS"
6939           lt_save_CFLAGS="$CFLAGS"
6940           LIBS="conftstm.$ac_objext"
6941           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6942           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6943   (eval $ac_link) 2>&5
6944   ac_status=$?
6945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6946   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6947             pipe_works=yes
6948           fi
6949           LIBS="$lt_save_LIBS"
6950           CFLAGS="$lt_save_CFLAGS"
6951         else
6952           echo "cannot find nm_test_func in $nlist" >&5
6953         fi
6954       else
6955         echo "cannot find nm_test_var in $nlist" >&5
6956       fi
6957     else
6958       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6959     fi
6960   else
6961     echo "$progname: failed program was:" >&5
6962     cat conftest.$ac_ext >&5
6963   fi
6964   rm -f conftest* conftst*
6965
6966   # Do not use the global_symbol_pipe unless it works.
6967   if test "$pipe_works" = yes; then
6968     break
6969   else
6970     lt_cv_sys_global_symbol_pipe=
6971   fi
6972 done
6973
6974 fi
6975
6976 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6977   lt_cv_sys_global_symbol_to_cdecl=
6978 fi
6979 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6980   { echo "$as_me:$LINENO: result: failed" >&5
6981 echo "${ECHO_T}failed" >&6; }
6982 else
6983   { echo "$as_me:$LINENO: result: ok" >&5
6984 echo "${ECHO_T}ok" >&6; }
6985 fi
6986
6987 { echo "$as_me:$LINENO: checking for objdir" >&5
6988 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6989 if test "${lt_cv_objdir+set}" = set; then
6990   echo $ECHO_N "(cached) $ECHO_C" >&6
6991 else
6992   rm -f .libs 2>/dev/null
6993 mkdir .libs 2>/dev/null
6994 if test -d .libs; then
6995   lt_cv_objdir=.libs
6996 else
6997   # MS-DOS does not allow filenames that begin with a dot.
6998   lt_cv_objdir=_libs
6999 fi
7000 rmdir .libs 2>/dev/null
7001 fi
7002 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7003 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7004 objdir=$lt_cv_objdir
7005
7006
7007
7008
7009
7010 case $host_os in
7011 aix3*)
7012   # AIX sometimes has problems with the GCC collect2 program.  For some
7013   # reason, if we set the COLLECT_NAMES environment variable, the problems
7014   # vanish in a puff of smoke.
7015   if test "X${COLLECT_NAMES+set}" != Xset; then
7016     COLLECT_NAMES=
7017     export COLLECT_NAMES
7018   fi
7019   ;;
7020 esac
7021
7022 # Sed substitution that helps us do robust quoting.  It backslashifies
7023 # metacharacters that are still active within double-quoted strings.
7024 Xsed='sed -e 1s/^X//'
7025 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7026
7027 # Same as above, but do not quote variable references.
7028 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7029
7030 # Sed substitution to delay expansion of an escaped shell variable in a
7031 # double_quote_subst'ed string.
7032 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7033
7034 # Sed substitution to avoid accidental globbing in evaled expressions
7035 no_glob_subst='s/\*/\\\*/g'
7036
7037 # Constants:
7038 rm="rm -f"
7039
7040 # Global variables:
7041 default_ofile=libtool
7042 can_build_shared=yes
7043
7044 # All known linkers require a `.a' archive for static linking (except MSVC,
7045 # which needs '.lib').
7046 libext=a
7047 ltmain="$ac_aux_dir/ltmain.sh"
7048 ofile="$default_ofile"
7049 with_gnu_ld="$lt_cv_prog_gnu_ld"
7050
7051 if test -n "$ac_tool_prefix"; then
7052   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7053 set dummy ${ac_tool_prefix}ar; ac_word=$2
7054 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7056 if test "${ac_cv_prog_AR+set}" = set; then
7057   echo $ECHO_N "(cached) $ECHO_C" >&6
7058 else
7059   if test -n "$AR"; then
7060   ac_cv_prog_AR="$AR" # Let the user override the test.
7061 else
7062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7063 for as_dir in $PATH
7064 do
7065   IFS=$as_save_IFS
7066   test -z "$as_dir" && as_dir=.
7067   for ac_exec_ext in '' $ac_executable_extensions; do
7068   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7069     ac_cv_prog_AR="${ac_tool_prefix}ar"
7070     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7071     break 2
7072   fi
7073 done
7074 done
7075 IFS=$as_save_IFS
7076
7077 fi
7078 fi
7079 AR=$ac_cv_prog_AR
7080 if test -n "$AR"; then
7081   { echo "$as_me:$LINENO: result: $AR" >&5
7082 echo "${ECHO_T}$AR" >&6; }
7083 else
7084   { echo "$as_me:$LINENO: result: no" >&5
7085 echo "${ECHO_T}no" >&6; }
7086 fi
7087
7088
7089 fi
7090 if test -z "$ac_cv_prog_AR"; then
7091   ac_ct_AR=$AR
7092   # Extract the first word of "ar", so it can be a program name with args.
7093 set dummy ar; ac_word=$2
7094 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7096 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7097   echo $ECHO_N "(cached) $ECHO_C" >&6
7098 else
7099   if test -n "$ac_ct_AR"; then
7100   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7101 else
7102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7103 for as_dir in $PATH
7104 do
7105   IFS=$as_save_IFS
7106   test -z "$as_dir" && as_dir=.
7107   for ac_exec_ext in '' $ac_executable_extensions; do
7108   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7109     ac_cv_prog_ac_ct_AR="ar"
7110     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7111     break 2
7112   fi
7113 done
7114 done
7115 IFS=$as_save_IFS
7116
7117 fi
7118 fi
7119 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7120 if test -n "$ac_ct_AR"; then
7121   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7122 echo "${ECHO_T}$ac_ct_AR" >&6; }
7123 else
7124   { echo "$as_me:$LINENO: result: no" >&5
7125 echo "${ECHO_T}no" >&6; }
7126 fi
7127
7128   if test "x$ac_ct_AR" = x; then
7129     AR="false"
7130   else
7131     case $cross_compiling:$ac_tool_warned in
7132 yes:)
7133 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7134 whose name does not start with the host triplet.  If you think this
7135 configuration is useful to you, please write to autoconf@gnu.org." >&5
7136 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7137 whose name does not start with the host triplet.  If you think this
7138 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7139 ac_tool_warned=yes ;;
7140 esac
7141     AR=$ac_ct_AR
7142   fi
7143 else
7144   AR="$ac_cv_prog_AR"
7145 fi
7146
7147 if test -n "$ac_tool_prefix"; then
7148   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7149 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7150 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7152 if test "${ac_cv_prog_RANLIB+set}" = set; then
7153   echo $ECHO_N "(cached) $ECHO_C" >&6
7154 else
7155   if test -n "$RANLIB"; then
7156   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7157 else
7158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7159 for as_dir in $PATH
7160 do
7161   IFS=$as_save_IFS
7162   test -z "$as_dir" && as_dir=.
7163   for ac_exec_ext in '' $ac_executable_extensions; do
7164   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7165     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7166     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7167     break 2
7168   fi
7169 done
7170 done
7171 IFS=$as_save_IFS
7172
7173 fi
7174 fi
7175 RANLIB=$ac_cv_prog_RANLIB
7176 if test -n "$RANLIB"; then
7177   { echo "$as_me:$LINENO: result: $RANLIB" >&5
7178 echo "${ECHO_T}$RANLIB" >&6; }
7179 else
7180   { echo "$as_me:$LINENO: result: no" >&5
7181 echo "${ECHO_T}no" >&6; }
7182 fi
7183
7184
7185 fi
7186 if test -z "$ac_cv_prog_RANLIB"; then
7187   ac_ct_RANLIB=$RANLIB
7188   # Extract the first word of "ranlib", so it can be a program name with args.
7189 set dummy ranlib; ac_word=$2
7190 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7192 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7193   echo $ECHO_N "(cached) $ECHO_C" >&6
7194 else
7195   if test -n "$ac_ct_RANLIB"; then
7196   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7197 else
7198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7199 for as_dir in $PATH
7200 do
7201   IFS=$as_save_IFS
7202   test -z "$as_dir" && as_dir=.
7203   for ac_exec_ext in '' $ac_executable_extensions; do
7204   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7205     ac_cv_prog_ac_ct_RANLIB="ranlib"
7206     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7207     break 2
7208   fi
7209 done
7210 done
7211 IFS=$as_save_IFS
7212
7213 fi
7214 fi
7215 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7216 if test -n "$ac_ct_RANLIB"; then
7217   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7218 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7219 else
7220   { echo "$as_me:$LINENO: result: no" >&5
7221 echo "${ECHO_T}no" >&6; }
7222 fi
7223
7224   if test "x$ac_ct_RANLIB" = x; then
7225     RANLIB=":"
7226   else
7227     case $cross_compiling:$ac_tool_warned in
7228 yes:)
7229 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7230 whose name does not start with the host triplet.  If you think this
7231 configuration is useful to you, please write to autoconf@gnu.org." >&5
7232 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7233 whose name does not start with the host triplet.  If you think this
7234 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7235 ac_tool_warned=yes ;;
7236 esac
7237     RANLIB=$ac_ct_RANLIB
7238   fi
7239 else
7240   RANLIB="$ac_cv_prog_RANLIB"
7241 fi
7242
7243 if test -n "$ac_tool_prefix"; then
7244   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7245 set dummy ${ac_tool_prefix}strip; ac_word=$2
7246 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7248 if test "${ac_cv_prog_STRIP+set}" = set; then
7249   echo $ECHO_N "(cached) $ECHO_C" >&6
7250 else
7251   if test -n "$STRIP"; then
7252   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7253 else
7254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7255 for as_dir in $PATH
7256 do
7257   IFS=$as_save_IFS
7258   test -z "$as_dir" && as_dir=.
7259   for ac_exec_ext in '' $ac_executable_extensions; do
7260   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7261     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7262     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7263     break 2
7264   fi
7265 done
7266 done
7267 IFS=$as_save_IFS
7268
7269 fi
7270 fi
7271 STRIP=$ac_cv_prog_STRIP
7272 if test -n "$STRIP"; then
7273   { echo "$as_me:$LINENO: result: $STRIP" >&5
7274 echo "${ECHO_T}$STRIP" >&6; }
7275 else
7276   { echo "$as_me:$LINENO: result: no" >&5
7277 echo "${ECHO_T}no" >&6; }
7278 fi
7279
7280
7281 fi
7282 if test -z "$ac_cv_prog_STRIP"; then
7283   ac_ct_STRIP=$STRIP
7284   # Extract the first word of "strip", so it can be a program name with args.
7285 set dummy strip; ac_word=$2
7286 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7288 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7289   echo $ECHO_N "(cached) $ECHO_C" >&6
7290 else
7291   if test -n "$ac_ct_STRIP"; then
7292   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7293 else
7294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7295 for as_dir in $PATH
7296 do
7297   IFS=$as_save_IFS
7298   test -z "$as_dir" && as_dir=.
7299   for ac_exec_ext in '' $ac_executable_extensions; do
7300   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7301     ac_cv_prog_ac_ct_STRIP="strip"
7302     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7303     break 2
7304   fi
7305 done
7306 done
7307 IFS=$as_save_IFS
7308
7309 fi
7310 fi
7311 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7312 if test -n "$ac_ct_STRIP"; then
7313   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7314 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7315 else
7316   { echo "$as_me:$LINENO: result: no" >&5
7317 echo "${ECHO_T}no" >&6; }
7318 fi
7319
7320   if test "x$ac_ct_STRIP" = x; then
7321     STRIP=":"
7322   else
7323     case $cross_compiling:$ac_tool_warned in
7324 yes:)
7325 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7326 whose name does not start with the host triplet.  If you think this
7327 configuration is useful to you, please write to autoconf@gnu.org." >&5
7328 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7329 whose name does not start with the host triplet.  If you think this
7330 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7331 ac_tool_warned=yes ;;
7332 esac
7333     STRIP=$ac_ct_STRIP
7334   fi
7335 else
7336   STRIP="$ac_cv_prog_STRIP"
7337 fi
7338
7339
7340 old_CC="$CC"
7341 old_CFLAGS="$CFLAGS"
7342
7343 # Set sane defaults for various variables
7344 test -z "$AR" && AR=ar
7345 test -z "$AR_FLAGS" && AR_FLAGS=cru
7346 test -z "$AS" && AS=as
7347 test -z "$CC" && CC=cc
7348 test -z "$LTCC" && LTCC=$CC
7349 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7350 test -z "$DLLTOOL" && DLLTOOL=dlltool
7351 test -z "$LD" && LD=ld
7352 test -z "$LN_S" && LN_S="ln -s"
7353 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7354 test -z "$NM" && NM=nm
7355 test -z "$SED" && SED=sed
7356 test -z "$OBJDUMP" && OBJDUMP=objdump
7357 test -z "$RANLIB" && RANLIB=:
7358 test -z "$STRIP" && STRIP=:
7359 test -z "$ac_objext" && ac_objext=o
7360
7361 # Determine commands to create old-style static archives.
7362 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7363 old_postinstall_cmds='chmod 644 $oldlib'
7364 old_postuninstall_cmds=
7365
7366 if test -n "$RANLIB"; then
7367   case $host_os in
7368   openbsd*)
7369     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7370     ;;
7371   *)
7372     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7373     ;;
7374   esac
7375   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7376 fi
7377
7378 for cc_temp in $compiler""; do
7379   case $cc_temp in
7380     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7381     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7382     \-*) ;;
7383     *) break;;
7384   esac
7385 done
7386 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7387
7388
7389 # Only perform the check for file, if the check method requires it
7390 case $deplibs_check_method in
7391 file_magic*)
7392   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7393     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7394 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7395 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7396   echo $ECHO_N "(cached) $ECHO_C" >&6
7397 else
7398   case $MAGIC_CMD in
7399 [\\/*] |  ?:[\\/]*)
7400   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7401   ;;
7402 *)
7403   lt_save_MAGIC_CMD="$MAGIC_CMD"
7404   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7405   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7406   for ac_dir in $ac_dummy; do
7407     IFS="$lt_save_ifs"
7408     test -z "$ac_dir" && ac_dir=.
7409     if test -f $ac_dir/${ac_tool_prefix}file; then
7410       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7411       if test -n "$file_magic_test_file"; then
7412         case $deplibs_check_method in
7413         "file_magic "*)
7414           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7415           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7416           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7417             $EGREP "$file_magic_regex" > /dev/null; then
7418             :
7419           else
7420             cat <<EOF 1>&2
7421
7422 *** Warning: the command libtool uses to detect shared libraries,
7423 *** $file_magic_cmd, produces output that libtool cannot recognize.
7424 *** The result is that libtool may fail to recognize shared libraries
7425 *** as such.  This will affect the creation of libtool libraries that
7426 *** depend on shared libraries, but programs linked with such libtool
7427 *** libraries will work regardless of this problem.  Nevertheless, you
7428 *** may want to report the problem to your system manager and/or to
7429 *** bug-libtool@gnu.org
7430
7431 EOF
7432           fi ;;
7433         esac
7434       fi
7435       break
7436     fi
7437   done
7438   IFS="$lt_save_ifs"
7439   MAGIC_CMD="$lt_save_MAGIC_CMD"
7440   ;;
7441 esac
7442 fi
7443
7444 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7445 if test -n "$MAGIC_CMD"; then
7446   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7447 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7448 else
7449   { echo "$as_me:$LINENO: result: no" >&5
7450 echo "${ECHO_T}no" >&6; }
7451 fi
7452
7453 if test -z "$lt_cv_path_MAGIC_CMD"; then
7454   if test -n "$ac_tool_prefix"; then
7455     { echo "$as_me:$LINENO: checking for file" >&5
7456 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7457 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7458   echo $ECHO_N "(cached) $ECHO_C" >&6
7459 else
7460   case $MAGIC_CMD in
7461 [\\/*] |  ?:[\\/]*)
7462   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7463   ;;
7464 *)
7465   lt_save_MAGIC_CMD="$MAGIC_CMD"
7466   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7467   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7468   for ac_dir in $ac_dummy; do
7469     IFS="$lt_save_ifs"
7470     test -z "$ac_dir" && ac_dir=.
7471     if test -f $ac_dir/file; then
7472       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7473       if test -n "$file_magic_test_file"; then
7474         case $deplibs_check_method in
7475         "file_magic "*)
7476           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7477           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7478           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7479             $EGREP "$file_magic_regex" > /dev/null; then
7480             :
7481           else
7482             cat <<EOF 1>&2
7483
7484 *** Warning: the command libtool uses to detect shared libraries,
7485 *** $file_magic_cmd, produces output that libtool cannot recognize.
7486 *** The result is that libtool may fail to recognize shared libraries
7487 *** as such.  This will affect the creation of libtool libraries that
7488 *** depend on shared libraries, but programs linked with such libtool
7489 *** libraries will work regardless of this problem.  Nevertheless, you
7490 *** may want to report the problem to your system manager and/or to
7491 *** bug-libtool@gnu.org
7492
7493 EOF
7494           fi ;;
7495         esac
7496       fi
7497       break
7498     fi
7499   done
7500   IFS="$lt_save_ifs"
7501   MAGIC_CMD="$lt_save_MAGIC_CMD"
7502   ;;
7503 esac
7504 fi
7505
7506 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7507 if test -n "$MAGIC_CMD"; then
7508   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7509 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7510 else
7511   { echo "$as_me:$LINENO: result: no" >&5
7512 echo "${ECHO_T}no" >&6; }
7513 fi
7514
7515   else
7516     MAGIC_CMD=:
7517   fi
7518 fi
7519
7520   fi
7521   ;;
7522 esac
7523
7524 enable_dlopen=yes
7525 enable_win32_dll=no
7526
7527 # Check whether --enable-libtool-lock was given.
7528 if test "${enable_libtool_lock+set}" = set; then
7529   enableval=$enable_libtool_lock;
7530 fi
7531
7532 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7533
7534
7535 # Check whether --with-pic was given.
7536 if test "${with_pic+set}" = set; then
7537   withval=$with_pic; pic_mode="$withval"
7538 else
7539   pic_mode=default
7540 fi
7541
7542 test -z "$pic_mode" && pic_mode=default
7543
7544 # Use C for the default configuration in the libtool script
7545 tagname=
7546 lt_save_CC="$CC"
7547 ac_ext=c
7548 ac_cpp='$CPP $CPPFLAGS'
7549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7552
7553
7554 # Source file extension for C test sources.
7555 ac_ext=c
7556
7557 # Object file extension for compiled C test sources.
7558 objext=o
7559 objext=$objext
7560
7561 # Code to be used in simple compile tests
7562 lt_simple_compile_test_code="int some_variable = 0;\n"
7563
7564 # Code to be used in simple link tests
7565 lt_simple_link_test_code='int main(){return(0);}\n'
7566
7567
7568 # If no C compiler was specified, use CC.
7569 LTCC=${LTCC-"$CC"}
7570
7571 # If no C compiler flags were specified, use CFLAGS.
7572 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7573
7574 # Allow CC to be a program name with arguments.
7575 compiler=$CC
7576
7577
7578 # save warnings/boilerplate of simple test code
7579 ac_outfile=conftest.$ac_objext
7580 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7581 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7582 _lt_compiler_boilerplate=`cat conftest.err`
7583 $rm conftest*
7584
7585 ac_outfile=conftest.$ac_objext
7586 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7587 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7588 _lt_linker_boilerplate=`cat conftest.err`
7589 $rm conftest*
7590
7591
7592
7593 lt_prog_compiler_no_builtin_flag=
7594
7595 if test "$GCC" = yes; then
7596   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7597
7598
7599 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7600 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7601 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7602   echo $ECHO_N "(cached) $ECHO_C" >&6
7603 else
7604   lt_cv_prog_compiler_rtti_exceptions=no
7605   ac_outfile=conftest.$ac_objext
7606    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7607    lt_compiler_flag="-fno-rtti -fno-exceptions"
7608    # Insert the option either (1) after the last *FLAGS variable, or
7609    # (2) before a word containing "conftest.", or (3) at the end.
7610    # Note that $ac_compile itself does not contain backslashes and begins
7611    # with a dollar sign (not a hyphen), so the echo should work correctly.
7612    # The option is referenced via a variable to avoid confusing sed.
7613    lt_compile=`echo "$ac_compile" | $SED \
7614    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7615    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7616    -e 's:$: $lt_compiler_flag:'`
7617    (eval echo "\"\$as_me:7617: $lt_compile\"" >&5)
7618    (eval "$lt_compile" 2>conftest.err)
7619    ac_status=$?
7620    cat conftest.err >&5
7621    echo "$as_me:7621: \$? = $ac_status" >&5
7622    if (exit $ac_status) && test -s "$ac_outfile"; then
7623      # The compiler can only warn and ignore the option if not recognized
7624      # So say no if there are warnings other than the usual output.
7625      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7626      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7627      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7628        lt_cv_prog_compiler_rtti_exceptions=yes
7629      fi
7630    fi
7631    $rm conftest*
7632
7633 fi
7634 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7635 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7636
7637 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7638     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7639 else
7640     :
7641 fi
7642
7643 fi
7644
7645 lt_prog_compiler_wl=
7646 lt_prog_compiler_pic=
7647 lt_prog_compiler_static=
7648
7649 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7650 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7651
7652   if test "$GCC" = yes; then
7653     lt_prog_compiler_wl='-Wl,'
7654     lt_prog_compiler_static='-static'
7655
7656     case $host_os in
7657       aix*)
7658       # All AIX code is PIC.
7659       if test "$host_cpu" = ia64; then
7660         # AIX 5 now supports IA64 processor
7661         lt_prog_compiler_static='-Bstatic'
7662       fi
7663       ;;
7664
7665     amigaos*)
7666       # FIXME: we need at least 68020 code to build shared libraries, but
7667       # adding the `-m68020' flag to GCC prevents building anything better,
7668       # like `-m68040'.
7669       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7670       ;;
7671
7672     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7673       # PIC is the default for these OSes.
7674       ;;
7675
7676     mingw* | pw32* | os2*)
7677       # This hack is so that the source file can tell whether it is being
7678       # built for inclusion in a dll (and should export symbols for example).
7679       lt_prog_compiler_pic='-DDLL_EXPORT'
7680       ;;
7681
7682     darwin* | rhapsody*)
7683       # PIC is the default on this platform
7684       # Common symbols not allowed in MH_DYLIB files
7685       lt_prog_compiler_pic='-fno-common'
7686       ;;
7687
7688     interix3*)
7689       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7690       # Instead, we relocate shared libraries at runtime.
7691       ;;
7692
7693     msdosdjgpp*)
7694       # Just because we use GCC doesn't mean we suddenly get shared libraries
7695       # on systems that don't support them.
7696       lt_prog_compiler_can_build_shared=no
7697       enable_shared=no
7698       ;;
7699
7700     sysv4*MP*)
7701       if test -d /usr/nec; then
7702         lt_prog_compiler_pic=-Kconform_pic
7703       fi
7704       ;;
7705
7706     hpux*)
7707       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7708       # not for PA HP-UX.
7709       case $host_cpu in
7710       hppa*64*|ia64*)
7711         # +Z the default
7712         ;;
7713       *)
7714         lt_prog_compiler_pic='-fPIC'
7715         ;;
7716       esac
7717       ;;
7718
7719     *)
7720       lt_prog_compiler_pic='-fPIC'
7721       ;;
7722     esac
7723   else
7724     # PORTME Check for flag to pass linker flags through the system compiler.
7725     case $host_os in
7726     aix*)
7727       lt_prog_compiler_wl='-Wl,'
7728       if test "$host_cpu" = ia64; then
7729         # AIX 5 now supports IA64 processor
7730         lt_prog_compiler_static='-Bstatic'
7731       else
7732         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7733       fi
7734       ;;
7735       darwin*)
7736         # PIC is the default on this platform
7737         # Common symbols not allowed in MH_DYLIB files
7738        case $cc_basename in
7739          xlc*)
7740          lt_prog_compiler_pic='-qnocommon'
7741          lt_prog_compiler_wl='-Wl,'
7742          ;;
7743        esac
7744        ;;
7745
7746     mingw* | pw32* | os2*)
7747       # This hack is so that the source file can tell whether it is being
7748       # built for inclusion in a dll (and should export symbols for example).
7749       lt_prog_compiler_pic='-DDLL_EXPORT'
7750       ;;
7751
7752     hpux9* | hpux10* | hpux11*)
7753       lt_prog_compiler_wl='-Wl,'
7754       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7755       # not for PA HP-UX.
7756       case $host_cpu in
7757       hppa*64*|ia64*)
7758         # +Z the default
7759         ;;
7760       *)
7761         lt_prog_compiler_pic='+Z'
7762         ;;
7763       esac
7764       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7765       lt_prog_compiler_static='${wl}-a ${wl}archive'
7766       ;;
7767
7768     irix5* | irix6* | nonstopux*)
7769       lt_prog_compiler_wl='-Wl,'
7770       # PIC (with -KPIC) is the default.
7771       lt_prog_compiler_static='-non_shared'
7772       ;;
7773
7774     newsos6)
7775       lt_prog_compiler_pic='-KPIC'
7776       lt_prog_compiler_static='-Bstatic'
7777       ;;
7778
7779     linux*)
7780       case $cc_basename in
7781       icc* | ecc*)
7782         lt_prog_compiler_wl='-Wl,'
7783         lt_prog_compiler_pic='-KPIC'
7784         lt_prog_compiler_static='-static'
7785         ;;
7786       pgcc* | pgf77* | pgf90* | pgf95*)
7787         # Portland Group compilers (*not* the Pentium gcc compiler,
7788         # which looks to be a dead project)
7789         lt_prog_compiler_wl='-Wl,'
7790         lt_prog_compiler_pic='-fpic'
7791         lt_prog_compiler_static='-Bstatic'
7792         ;;
7793       ccc*)
7794         lt_prog_compiler_wl='-Wl,'
7795         # All Alpha code is PIC.
7796         lt_prog_compiler_static='-non_shared'
7797         ;;
7798       esac
7799       ;;
7800
7801     osf3* | osf4* | osf5*)
7802       lt_prog_compiler_wl='-Wl,'
7803       # All OSF/1 code is PIC.
7804       lt_prog_compiler_static='-non_shared'
7805       ;;
7806
7807     solaris*)
7808       lt_prog_compiler_pic='-KPIC'
7809       lt_prog_compiler_static='-Bstatic'
7810       case $cc_basename in
7811       f77* | f90* | f95*)
7812         lt_prog_compiler_wl='-Qoption ld ';;
7813       *)
7814         lt_prog_compiler_wl='-Wl,';;
7815       esac
7816       ;;
7817
7818     sunos4*)
7819       lt_prog_compiler_wl='-Qoption ld '
7820       lt_prog_compiler_pic='-PIC'
7821       lt_prog_compiler_static='-Bstatic'
7822       ;;
7823
7824     sysv4 | sysv4.2uw2* | sysv4.3*)
7825       lt_prog_compiler_wl='-Wl,'
7826       lt_prog_compiler_pic='-KPIC'
7827       lt_prog_compiler_static='-Bstatic'
7828       ;;
7829
7830     sysv4*MP*)
7831       if test -d /usr/nec ;then
7832         lt_prog_compiler_pic='-Kconform_pic'
7833         lt_prog_compiler_static='-Bstatic'
7834       fi
7835       ;;
7836
7837     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7838       lt_prog_compiler_wl='-Wl,'
7839       lt_prog_compiler_pic='-KPIC'
7840       lt_prog_compiler_static='-Bstatic'
7841       ;;
7842
7843     unicos*)
7844       lt_prog_compiler_wl='-Wl,'
7845       lt_prog_compiler_can_build_shared=no
7846       ;;
7847
7848     uts4*)
7849       lt_prog_compiler_pic='-pic'
7850       lt_prog_compiler_static='-Bstatic'
7851       ;;
7852
7853     *)
7854       lt_prog_compiler_can_build_shared=no
7855       ;;
7856     esac
7857   fi
7858
7859 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7860 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7861
7862 #
7863 # Check to make sure the PIC flag actually works.
7864 #
7865 if test -n "$lt_prog_compiler_pic"; then
7866
7867 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7868 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7869 if test "${lt_prog_compiler_pic_works+set}" = set; then
7870   echo $ECHO_N "(cached) $ECHO_C" >&6
7871 else
7872   lt_prog_compiler_pic_works=no
7873   ac_outfile=conftest.$ac_objext
7874    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7875    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7876    # Insert the option either (1) after the last *FLAGS variable, or
7877    # (2) before a word containing "conftest.", or (3) at the end.
7878    # Note that $ac_compile itself does not contain backslashes and begins
7879    # with a dollar sign (not a hyphen), so the echo should work correctly.
7880    # The option is referenced via a variable to avoid confusing sed.
7881    lt_compile=`echo "$ac_compile" | $SED \
7882    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7883    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7884    -e 's:$: $lt_compiler_flag:'`
7885    (eval echo "\"\$as_me:7885: $lt_compile\"" >&5)
7886    (eval "$lt_compile" 2>conftest.err)
7887    ac_status=$?
7888    cat conftest.err >&5
7889    echo "$as_me:7889: \$? = $ac_status" >&5
7890    if (exit $ac_status) && test -s "$ac_outfile"; then
7891      # The compiler can only warn and ignore the option if not recognized
7892      # So say no if there are warnings other than the usual output.
7893      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7894      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7895      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7896        lt_prog_compiler_pic_works=yes
7897      fi
7898    fi
7899    $rm conftest*
7900
7901 fi
7902 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7903 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7904
7905 if test x"$lt_prog_compiler_pic_works" = xyes; then
7906     case $lt_prog_compiler_pic in
7907      "" | " "*) ;;
7908      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7909      esac
7910 else
7911     lt_prog_compiler_pic=
7912      lt_prog_compiler_can_build_shared=no
7913 fi
7914
7915 fi
7916 case $host_os in
7917   # For platforms which do not support PIC, -DPIC is meaningless:
7918   *djgpp*)
7919     lt_prog_compiler_pic=
7920     ;;
7921   *)
7922     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7923     ;;
7924 esac
7925
7926 #
7927 # Check to make sure the static flag actually works.
7928 #
7929 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7930 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7931 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7932 if test "${lt_prog_compiler_static_works+set}" = set; then
7933   echo $ECHO_N "(cached) $ECHO_C" >&6
7934 else
7935   lt_prog_compiler_static_works=no
7936    save_LDFLAGS="$LDFLAGS"
7937    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7938    printf "$lt_simple_link_test_code" > conftest.$ac_ext
7939    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7940      # The linker can only warn and ignore the option if not recognized
7941      # So say no if there are warnings
7942      if test -s conftest.err; then
7943        # Append any errors to the config.log.
7944        cat conftest.err 1>&5
7945        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7946        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7947        if diff conftest.exp conftest.er2 >/dev/null; then
7948          lt_prog_compiler_static_works=yes
7949        fi
7950      else
7951        lt_prog_compiler_static_works=yes
7952      fi
7953    fi
7954    $rm conftest*
7955    LDFLAGS="$save_LDFLAGS"
7956
7957 fi
7958 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7959 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7960
7961 if test x"$lt_prog_compiler_static_works" = xyes; then
7962     :
7963 else
7964     lt_prog_compiler_static=
7965 fi
7966
7967
7968 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7969 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7970 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7971   echo $ECHO_N "(cached) $ECHO_C" >&6
7972 else
7973   lt_cv_prog_compiler_c_o=no
7974    $rm -r conftest 2>/dev/null
7975    mkdir conftest
7976    cd conftest
7977    mkdir out
7978    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7979
7980    lt_compiler_flag="-o out/conftest2.$ac_objext"
7981    # Insert the option either (1) after the last *FLAGS variable, or
7982    # (2) before a word containing "conftest.", or (3) at the end.
7983    # Note that $ac_compile itself does not contain backslashes and begins
7984    # with a dollar sign (not a hyphen), so the echo should work correctly.
7985    lt_compile=`echo "$ac_compile" | $SED \
7986    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7987    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7988    -e 's:$: $lt_compiler_flag:'`
7989    (eval echo "\"\$as_me:7989: $lt_compile\"" >&5)
7990    (eval "$lt_compile" 2>out/conftest.err)
7991    ac_status=$?
7992    cat out/conftest.err >&5
7993    echo "$as_me:7993: \$? = $ac_status" >&5
7994    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7995    then
7996      # The compiler can only warn and ignore the option if not recognized
7997      # So say no if there are warnings
7998      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7999      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8000      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8001        lt_cv_prog_compiler_c_o=yes
8002      fi
8003    fi
8004    chmod u+w . 2>&5
8005    $rm conftest*
8006    # SGI C++ compiler will create directory out/ii_files/ for
8007    # template instantiation
8008    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8009    $rm out/* && rmdir out
8010    cd ..
8011    rmdir conftest
8012    $rm conftest*
8013
8014 fi
8015 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8016 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8017
8018
8019 hard_links="nottested"
8020 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8021   # do not overwrite the value of need_locks provided by the user
8022   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8023 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8024   hard_links=yes
8025   $rm conftest*
8026   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8027   touch conftest.a
8028   ln conftest.a conftest.b 2>&5 || hard_links=no
8029   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8030   { echo "$as_me:$LINENO: result: $hard_links" >&5
8031 echo "${ECHO_T}$hard_links" >&6; }
8032   if test "$hard_links" = no; then
8033     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8034 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8035     need_locks=warn
8036   fi
8037 else
8038   need_locks=no
8039 fi
8040
8041 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8042 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8043
8044   runpath_var=
8045   allow_undefined_flag=
8046   enable_shared_with_static_runtimes=no
8047   archive_cmds=
8048   archive_expsym_cmds=
8049   old_archive_From_new_cmds=
8050   old_archive_from_expsyms_cmds=
8051   export_dynamic_flag_spec=
8052   whole_archive_flag_spec=
8053   thread_safe_flag_spec=
8054   hardcode_libdir_flag_spec=
8055   hardcode_libdir_flag_spec_ld=
8056   hardcode_libdir_separator=
8057   hardcode_direct=no
8058   hardcode_minus_L=no
8059   hardcode_shlibpath_var=unsupported
8060   link_all_deplibs=unknown
8061   hardcode_automatic=no
8062   module_cmds=
8063   module_expsym_cmds=
8064   always_export_symbols=no
8065   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8066   # include_expsyms should be a list of space-separated symbols to be *always*
8067   # included in the symbol list
8068   include_expsyms=
8069   # exclude_expsyms can be an extended regexp of symbols to exclude
8070   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8071   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8072   # as well as any symbol that contains `d'.
8073   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8074   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8075   # platforms (ab)use it in PIC code, but their linkers get confused if
8076   # the symbol is explicitly referenced.  Since portable code cannot
8077   # rely on this symbol name, it's probably fine to never include it in
8078   # preloaded symbol tables.
8079   extract_expsyms_cmds=
8080   # Just being paranoid about ensuring that cc_basename is set.
8081   for cc_temp in $compiler""; do
8082   case $cc_temp in
8083     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8084     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8085     \-*) ;;
8086     *) break;;
8087   esac
8088 done
8089 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8090
8091   case $host_os in
8092   cygwin* | mingw* | pw32*)
8093     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8094     # When not using gcc, we currently assume that we are using
8095     # Microsoft Visual C++.
8096     if test "$GCC" != yes; then
8097       with_gnu_ld=no
8098     fi
8099     ;;
8100   interix*)
8101     # we just hope/assume this is gcc and not c89 (= MSVC++)
8102     with_gnu_ld=yes
8103     ;;
8104   openbsd*)
8105     with_gnu_ld=no
8106     ;;
8107   esac
8108
8109   ld_shlibs=yes
8110   if test "$with_gnu_ld" = yes; then
8111     # If archive_cmds runs LD, not CC, wlarc should be empty
8112     wlarc='${wl}'
8113
8114     # Set some defaults for GNU ld with shared library support. These
8115     # are reset later if shared libraries are not supported. Putting them
8116     # here allows them to be overridden if necessary.
8117     runpath_var=LD_RUN_PATH
8118     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8119     export_dynamic_flag_spec='${wl}--export-dynamic'
8120     # ancient GNU ld didn't support --whole-archive et. al.
8121     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8122         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8123       else
8124         whole_archive_flag_spec=
8125     fi
8126     supports_anon_versioning=no
8127     case `$LD -v 2>/dev/null` in
8128       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8129       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8130       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8131       *\ 2.11.*) ;; # other 2.11 versions
8132       *) supports_anon_versioning=yes ;;
8133     esac
8134
8135     # See if GNU ld supports shared libraries.
8136     case $host_os in
8137     aix3* | aix4* | aix5*)
8138       # On AIX/PPC, the GNU linker is very broken
8139       if test "$host_cpu" != ia64; then
8140         ld_shlibs=no
8141         cat <<EOF 1>&2
8142
8143 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8144 *** to be unable to reliably create shared libraries on AIX.
8145 *** Therefore, libtool is disabling shared libraries support.  If you
8146 *** really care for shared libraries, you may want to modify your PATH
8147 *** so that a non-GNU linker is found, and then restart.
8148
8149 EOF
8150       fi
8151       ;;
8152
8153     amigaos*)
8154       archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8155       hardcode_libdir_flag_spec='-L$libdir'
8156       hardcode_minus_L=yes
8157
8158       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8159       # that the semantics of dynamic libraries on AmigaOS, at least up
8160       # to version 4, is to share data among multiple programs linked
8161       # with the same dynamic library.  Since this doesn't match the
8162       # behavior of shared libraries on other platforms, we can't use
8163       # them.
8164       ld_shlibs=no
8165       ;;
8166
8167     beos*)
8168       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8169         allow_undefined_flag=unsupported
8170         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8171         # support --undefined.  This deserves some investigation.  FIXME
8172         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8173       else
8174         ld_shlibs=no
8175       fi
8176       ;;
8177
8178     cygwin* | mingw* | pw32*)
8179       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8180       # as there is no search path for DLLs.
8181       hardcode_libdir_flag_spec='-L$libdir'
8182       allow_undefined_flag=unsupported
8183       always_export_symbols=no
8184       enable_shared_with_static_runtimes=yes
8185       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8186
8187       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8188         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8189         # If the export-symbols file already is a .def file (1st line
8190         # is EXPORTS), use it as is; otherwise, prepend...
8191         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8192           cp $export_symbols $output_objdir/$soname.def;
8193         else
8194           echo EXPORTS > $output_objdir/$soname.def;
8195           cat $export_symbols >> $output_objdir/$soname.def;
8196         fi~
8197         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8198       else
8199         ld_shlibs=no
8200       fi
8201       ;;
8202
8203     interix3*)
8204       hardcode_direct=no
8205       hardcode_shlibpath_var=no
8206       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8207       export_dynamic_flag_spec='${wl}-E'
8208       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8209       # Instead, shared libraries are loaded at an image base (0x10000000 by
8210       # default) and relocated if they conflict, which is a slow very memory
8211       # consuming and fragmenting process.  To avoid this, we pick a random,
8212       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8213       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8214       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8215       archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8216       ;;
8217
8218     linux*)
8219       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8220         tmp_addflag=
8221         case $cc_basename,$host_cpu in
8222         pgcc*)                          # Portland Group C compiler
8223           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8224           tmp_addflag=' $pic_flag'
8225           ;;
8226         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8227           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8228           tmp_addflag=' $pic_flag -Mnomain' ;;
8229         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8230           tmp_addflag=' -i_dynamic' ;;
8231         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8232           tmp_addflag=' -i_dynamic -nofor_main' ;;
8233         ifc* | ifort*)                  # Intel Fortran compiler
8234           tmp_addflag=' -nofor_main' ;;
8235         esac
8236         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8237
8238         if test $supports_anon_versioning = yes; then
8239           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8240   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8241   $echo "local: *; };" >> $output_objdir/$libname.ver~
8242           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8243         fi
8244       else
8245         ld_shlibs=no
8246       fi
8247       ;;
8248
8249     netbsd*)
8250       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8251         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8252         wlarc=
8253       else
8254         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8255         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8256       fi
8257       ;;
8258
8259     solaris*)
8260       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8261         ld_shlibs=no
8262         cat <<EOF 1>&2
8263
8264 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8265 *** create shared libraries on Solaris systems.  Therefore, libtool
8266 *** is disabling shared libraries support.  We urge you to upgrade GNU
8267 *** binutils to release 2.9.1 or newer.  Another option is to modify
8268 *** your PATH or compiler configuration so that the native linker is
8269 *** used, and then restart.
8270
8271 EOF
8272       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8273         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8274         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8275       else
8276         ld_shlibs=no
8277       fi
8278       ;;
8279
8280     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8281       case `$LD -v 2>&1` in
8282         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8283         ld_shlibs=no
8284         cat <<_LT_EOF 1>&2
8285
8286 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8287 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8288 *** is disabling shared libraries support.  We urge you to upgrade GNU
8289 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8290 *** your PATH or compiler configuration so that the native linker is
8291 *** used, and then restart.
8292
8293 _LT_EOF
8294         ;;
8295         *)
8296           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8297             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8298             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8299             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8300           else
8301             ld_shlibs=no
8302           fi
8303         ;;
8304       esac
8305       ;;
8306
8307     sunos4*)
8308       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8309       wlarc=
8310       hardcode_direct=yes
8311       hardcode_shlibpath_var=no
8312       ;;
8313
8314     *)
8315       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8316         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8317         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8318       else
8319         ld_shlibs=no
8320       fi
8321       ;;
8322     esac
8323
8324     if test "$ld_shlibs" = no; then
8325       runpath_var=
8326       hardcode_libdir_flag_spec=
8327       export_dynamic_flag_spec=
8328       whole_archive_flag_spec=
8329     fi
8330   else
8331     # PORTME fill in a description of your system's linker (not GNU ld)
8332     case $host_os in
8333     aix3*)
8334       allow_undefined_flag=unsupported
8335       always_export_symbols=yes
8336       archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
8337       # Note: this linker hardcodes the directories in LIBPATH if there
8338       # are no directories specified by -L.
8339       hardcode_minus_L=yes
8340       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8341         # Neither direct hardcoding nor static linking is supported with a
8342         # broken collect2.
8343         hardcode_direct=unsupported
8344       fi
8345       ;;
8346
8347     aix4* | aix5*)
8348       if test "$host_cpu" = ia64; then
8349         # On IA64, the linker does run time linking by default, so we don't
8350         # have to do anything special.
8351         aix_use_runtimelinking=no
8352         exp_sym_flag='-Bexport'
8353         no_entry_flag=""
8354       else
8355         # If we're using GNU nm, then we don't want the "-C" option.
8356         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8357         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8358           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8359         else
8360           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8361         fi
8362         aix_use_runtimelinking=no
8363
8364         # Test if we are trying to use run time linking or normal
8365         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8366         # need to do runtime linking.
8367         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8368           for ld_flag in $LDFLAGS; do
8369           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8370             aix_use_runtimelinking=yes
8371             break
8372           fi
8373           done
8374           ;;
8375         esac
8376
8377         exp_sym_flag='-bexport'
8378         no_entry_flag='-bnoentry'
8379       fi
8380
8381       # When large executables or shared objects are built, AIX ld can
8382       # have problems creating the table of contents.  If linking a library
8383       # or program results in "error TOC overflow" add -mminimal-toc to
8384       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8385       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8386
8387       archive_cmds=''
8388       hardcode_direct=yes
8389       hardcode_libdir_separator=':'
8390       link_all_deplibs=yes
8391
8392       if test "$GCC" = yes; then
8393         case $host_os in aix4.[012]|aix4.[012].*)
8394         # We only want to do this on AIX 4.2 and lower, the check
8395         # below for broken collect2 doesn't work under 4.3+
8396           collect2name=`${CC} -print-prog-name=collect2`
8397           if test -f "$collect2name" && \
8398            strings "$collect2name" | grep resolve_lib_name >/dev/null
8399           then
8400           # We have reworked collect2
8401           hardcode_direct=yes
8402           else
8403           # We have old collect2
8404           hardcode_direct=unsupported
8405           # It fails to find uninstalled libraries when the uninstalled
8406           # path is not listed in the libpath.  Setting hardcode_minus_L
8407           # to unsupported forces relinking
8408           hardcode_minus_L=yes
8409           hardcode_libdir_flag_spec='-L$libdir'
8410           hardcode_libdir_separator=
8411           fi
8412           ;;
8413         esac
8414         shared_flag='-shared'
8415         if test "$aix_use_runtimelinking" = yes; then
8416           shared_flag="$shared_flag "'${wl}-G'
8417         fi
8418       else
8419         # not using gcc
8420         if test "$host_cpu" = ia64; then
8421         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8422         # chokes on -Wl,-G. The following line is correct:
8423           shared_flag='-G'
8424         else
8425           if test "$aix_use_runtimelinking" = yes; then
8426             shared_flag='${wl}-G'
8427           else
8428             shared_flag='${wl}-bM:SRE'
8429           fi
8430         fi
8431       fi
8432
8433       # It seems that -bexpall does not export symbols beginning with
8434       # underscore (_), so it is better to generate a list of symbols to export.
8435       always_export_symbols=yes
8436       if test "$aix_use_runtimelinking" = yes; then
8437         # Warning - without using the other runtime loading flags (-brtl),
8438         # -berok will link without error, but may produce a broken library.
8439         allow_undefined_flag='-berok'
8440        # Determine the default libpath from the value encoded in an empty executable.
8441        cat >conftest.$ac_ext <<_ACEOF
8442 /* confdefs.h.  */
8443 _ACEOF
8444 cat confdefs.h >>conftest.$ac_ext
8445 cat >>conftest.$ac_ext <<_ACEOF
8446 /* end confdefs.h.  */
8447
8448 int
8449 main ()
8450 {
8451
8452   ;
8453   return 0;
8454 }
8455 _ACEOF
8456 rm -f conftest.$ac_objext conftest$ac_exeext
8457 if { (ac_try="$ac_link"
8458 case "(($ac_try" in
8459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8460   *) ac_try_echo=$ac_try;;
8461 esac
8462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8463   (eval "$ac_link") 2>conftest.er1
8464   ac_status=$?
8465   grep -v '^ *+' conftest.er1 >conftest.err
8466   rm -f conftest.er1
8467   cat conftest.err >&5
8468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469   (exit $ac_status); } && {
8470          test -z "$ac_c_werror_flag" ||
8471          test ! -s conftest.err
8472        } && test -s conftest$ac_exeext &&
8473        $as_test_x conftest$ac_exeext; then
8474
8475 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8476 }'`
8477 # Check for a 64-bit object if we didn't find anything.
8478 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8479 }'`; fi
8480 else
8481   echo "$as_me: failed program was:" >&5
8482 sed 's/^/| /' conftest.$ac_ext >&5
8483
8484
8485 fi
8486
8487 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8488       conftest$ac_exeext conftest.$ac_ext
8489 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8490
8491        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8492         archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8493        else
8494         if test "$host_cpu" = ia64; then
8495           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8496           allow_undefined_flag="-z nodefs"
8497           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
8498         else
8499          # Determine the default libpath from the value encoded in an empty executable.
8500          cat >conftest.$ac_ext <<_ACEOF
8501 /* confdefs.h.  */
8502 _ACEOF
8503 cat confdefs.h >>conftest.$ac_ext
8504 cat >>conftest.$ac_ext <<_ACEOF
8505 /* end confdefs.h.  */
8506
8507 int
8508 main ()
8509 {
8510
8511   ;
8512   return 0;
8513 }
8514 _ACEOF
8515 rm -f conftest.$ac_objext conftest$ac_exeext
8516 if { (ac_try="$ac_link"
8517 case "(($ac_try" in
8518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8519   *) ac_try_echo=$ac_try;;
8520 esac
8521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8522   (eval "$ac_link") 2>conftest.er1
8523   ac_status=$?
8524   grep -v '^ *+' conftest.er1 >conftest.err
8525   rm -f conftest.er1
8526   cat conftest.err >&5
8527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8528   (exit $ac_status); } && {
8529          test -z "$ac_c_werror_flag" ||
8530          test ! -s conftest.err
8531        } && test -s conftest$ac_exeext &&
8532        $as_test_x conftest$ac_exeext; then
8533
8534 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8535 }'`
8536 # Check for a 64-bit object if we didn't find anything.
8537 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8538 }'`; fi
8539 else
8540   echo "$as_me: failed program was:" >&5
8541 sed 's/^/| /' conftest.$ac_ext >&5
8542
8543
8544 fi
8545
8546 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8547       conftest$ac_exeext conftest.$ac_ext
8548 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8549
8550          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8551           # Warning - without using the other run time loading flags,
8552           # -berok will link without error, but may produce a broken library.
8553           no_undefined_flag=' ${wl}-bernotok'
8554           allow_undefined_flag=' ${wl}-berok'
8555           # Exported symbols can be pulled into shared objects from archives
8556           whole_archive_flag_spec='$convenience'
8557           archive_cmds_need_lc=yes
8558           # This is similar to how AIX traditionally builds its shared libraries.
8559           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8560         fi
8561       fi
8562       ;;
8563
8564     amigaos*)
8565       archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8566       hardcode_libdir_flag_spec='-L$libdir'
8567       hardcode_minus_L=yes
8568       # see comment about different semantics on the GNU ld section
8569       ld_shlibs=no
8570       ;;
8571
8572     bsdi[45]*)
8573       export_dynamic_flag_spec=-rdynamic
8574       ;;
8575
8576     cygwin* | mingw* | pw32*)
8577       # When not using gcc, we currently assume that we are using
8578       # Microsoft Visual C++.
8579       # hardcode_libdir_flag_spec is actually meaningless, as there is
8580       # no search path for DLLs.
8581       hardcode_libdir_flag_spec=' '
8582       allow_undefined_flag=unsupported
8583       # Tell ltmain to make .lib files, not .a files.
8584       libext=lib
8585       # Tell ltmain to make .dll files, not .so files.
8586       shrext_cmds=".dll"
8587       # FIXME: Setting linknames here is a bad hack.
8588       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8589       # The linker will automatically build a .lib file if we build a DLL.
8590       old_archive_From_new_cmds='true'
8591       # FIXME: Should let the user specify the lib program.
8592       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8593       fix_srcfile_path='`cygpath -w "$srcfile"`'
8594       enable_shared_with_static_runtimes=yes
8595       ;;
8596
8597     darwin* | rhapsody*)
8598       case $host_os in
8599         rhapsody* | darwin1.[012])
8600          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8601          ;;
8602        *) # Darwin 1.3 on
8603          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8604            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8605          else
8606            case ${MACOSX_DEPLOYMENT_TARGET} in
8607              10.[012])
8608                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8609                ;;
8610              10.*)
8611                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8612                ;;
8613            esac
8614          fi
8615          ;;
8616       esac
8617       archive_cmds_need_lc=no
8618       hardcode_direct=no
8619       hardcode_automatic=yes
8620       hardcode_shlibpath_var=unsupported
8621       whole_archive_flag_spec=''
8622       link_all_deplibs=yes
8623     if test "$GCC" = yes ; then
8624         output_verbose_link_cmd='echo'
8625         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8626       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8627       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8628       archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8629       module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8630     else
8631       case $cc_basename in
8632         xlc*)
8633          output_verbose_link_cmd='echo'
8634          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8635          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8636           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8637          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8638           module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8639           ;;
8640        *)
8641          ld_shlibs=no
8642           ;;
8643       esac
8644     fi
8645       ;;
8646
8647     dgux*)
8648       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8649       hardcode_libdir_flag_spec='-L$libdir'
8650       hardcode_shlibpath_var=no
8651       ;;
8652
8653     freebsd1*)
8654       ld_shlibs=no
8655       ;;
8656
8657     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8658     # support.  Future versions do this automatically, but an explicit c++rt0.o
8659     # does not break anything, and helps significantly (at the cost of a little
8660     # extra space).
8661     freebsd2.2*)
8662       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8663       hardcode_libdir_flag_spec='-R$libdir'
8664       hardcode_direct=yes
8665       hardcode_shlibpath_var=no
8666       ;;
8667
8668     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8669     freebsd2*)
8670       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8671       hardcode_direct=yes
8672       hardcode_minus_L=yes
8673       hardcode_shlibpath_var=no
8674       ;;
8675
8676     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8677     freebsd* | kfreebsd*-gnu | dragonfly*)
8678       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8679       hardcode_libdir_flag_spec='-R$libdir'
8680       hardcode_direct=yes
8681       hardcode_shlibpath_var=no
8682       ;;
8683
8684     hpux9*)
8685       if test "$GCC" = yes; then
8686         archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8687       else
8688         archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8689       fi
8690       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8691       hardcode_libdir_separator=:
8692       hardcode_direct=yes
8693
8694       # hardcode_minus_L: Not really in the search PATH,
8695       # but as the default location of the library.
8696       hardcode_minus_L=yes
8697       export_dynamic_flag_spec='${wl}-E'
8698       ;;
8699
8700     hpux10*)
8701       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8702         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8703       else
8704         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8705       fi
8706       if test "$with_gnu_ld" = no; then
8707         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8708         hardcode_libdir_separator=:
8709
8710         hardcode_direct=yes
8711         export_dynamic_flag_spec='${wl}-E'
8712
8713         # hardcode_minus_L: Not really in the search PATH,
8714         # but as the default location of the library.
8715         hardcode_minus_L=yes
8716       fi
8717       ;;
8718
8719     hpux11*)
8720       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8721         case $host_cpu in
8722         hppa*64*)
8723           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8724           ;;
8725         ia64*)
8726           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8727           ;;
8728         *)
8729           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8730           ;;
8731         esac
8732       else
8733         case $host_cpu in
8734         hppa*64*)
8735           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8736           ;;
8737         ia64*)
8738           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8739           ;;
8740         *)
8741           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8742           ;;
8743         esac
8744       fi
8745       if test "$with_gnu_ld" = no; then
8746         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8747         hardcode_libdir_separator=:
8748
8749         case $host_cpu in
8750         hppa*64*|ia64*)
8751           hardcode_libdir_flag_spec_ld='+b $libdir'
8752           hardcode_direct=no
8753           hardcode_shlibpath_var=no
8754           ;;
8755         *)
8756           hardcode_direct=yes
8757           export_dynamic_flag_spec='${wl}-E'
8758
8759           # hardcode_minus_L: Not really in the search PATH,
8760           # but as the default location of the library.
8761           hardcode_minus_L=yes
8762           ;;
8763         esac
8764       fi
8765       ;;
8766
8767     irix5* | irix6* | nonstopux*)
8768       if test "$GCC" = yes; then
8769         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8770       else
8771         archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8772         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8773       fi
8774       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8775       hardcode_libdir_separator=:
8776       link_all_deplibs=yes
8777       ;;
8778
8779     netbsd*)
8780       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8781         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8782       else
8783         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8784       fi
8785       hardcode_libdir_flag_spec='-R$libdir'
8786       hardcode_direct=yes
8787       hardcode_shlibpath_var=no
8788       ;;
8789
8790     newsos6)
8791       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8792       hardcode_direct=yes
8793       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8794       hardcode_libdir_separator=:
8795       hardcode_shlibpath_var=no
8796       ;;
8797
8798     openbsd*)
8799       hardcode_direct=yes
8800       hardcode_shlibpath_var=no
8801       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8802         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8803         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8804         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8805         export_dynamic_flag_spec='${wl}-E'
8806       else
8807        case $host_os in
8808          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8809            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8810            hardcode_libdir_flag_spec='-R$libdir'
8811            ;;
8812          *)
8813            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8814            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8815            ;;
8816        esac
8817       fi
8818       ;;
8819
8820     os2*)
8821       hardcode_libdir_flag_spec='-L$libdir'
8822       hardcode_minus_L=yes
8823       allow_undefined_flag=unsupported
8824       archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
8825       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8826       ;;
8827
8828     osf3*)
8829       if test "$GCC" = yes; then
8830         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8831         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8832       else
8833         allow_undefined_flag=' -expect_unresolved \*'
8834         archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8835       fi
8836       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8837       hardcode_libdir_separator=:
8838       ;;
8839
8840     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8841       if test "$GCC" = yes; then
8842         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8843         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8844         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8845       else
8846         allow_undefined_flag=' -expect_unresolved \*'
8847         archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8848         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8849         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8850
8851         # Both c and cxx compiler support -rpath directly
8852         hardcode_libdir_flag_spec='-rpath $libdir'
8853       fi
8854       hardcode_libdir_separator=:
8855       ;;
8856
8857     solaris*)
8858       no_undefined_flag=' -z text'
8859       if test "$GCC" = yes; then
8860         wlarc='${wl}'
8861         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8862         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8863           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8864       else
8865         wlarc=''
8866         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8867         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8868         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8869       fi
8870       hardcode_libdir_flag_spec='-R$libdir'
8871       hardcode_shlibpath_var=no
8872       case $host_os in
8873       solaris2.[0-5] | solaris2.[0-5].*) ;;
8874       *)
8875         # The compiler driver will combine linker options so we
8876         # cannot just pass the convience library names through
8877         # without $wl, iff we do not link with $LD.
8878         # Luckily, gcc supports the same syntax we need for Sun Studio.
8879         # Supported since Solaris 2.6 (maybe 2.5.1?)
8880         case $wlarc in
8881         '')
8882           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8883         *)
8884           whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8885         esac ;;
8886       esac
8887       link_all_deplibs=yes
8888       ;;
8889
8890     sunos4*)
8891       if test "x$host_vendor" = xsequent; then
8892         # Use $CC to link under sequent, because it throws in some extra .o
8893         # files that make .init and .fini sections work.
8894         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8895       else
8896         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8897       fi
8898       hardcode_libdir_flag_spec='-L$libdir'
8899       hardcode_direct=yes
8900       hardcode_minus_L=yes
8901       hardcode_shlibpath_var=no
8902       ;;
8903
8904     sysv4)
8905       case $host_vendor in
8906         sni)
8907           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8908           hardcode_direct=yes # is this really true???
8909         ;;
8910         siemens)
8911           ## LD is ld it makes a PLAMLIB
8912           ## CC just makes a GrossModule.
8913           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8914           reload_cmds='$CC -r -o $output$reload_objs'
8915           hardcode_direct=no
8916         ;;
8917         motorola)
8918           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8919           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8920         ;;
8921       esac
8922       runpath_var='LD_RUN_PATH'
8923       hardcode_shlibpath_var=no
8924       ;;
8925
8926     sysv4.3*)
8927       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8928       hardcode_shlibpath_var=no
8929       export_dynamic_flag_spec='-Bexport'
8930       ;;
8931
8932     sysv4*MP*)
8933       if test -d /usr/nec; then
8934         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8935         hardcode_shlibpath_var=no
8936         runpath_var=LD_RUN_PATH
8937         hardcode_runpath_var=yes
8938         ld_shlibs=yes
8939       fi
8940       ;;
8941
8942     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8943       no_undefined_flag='${wl}-z,text'
8944       archive_cmds_need_lc=no
8945       hardcode_shlibpath_var=no
8946       runpath_var='LD_RUN_PATH'
8947
8948       if test "$GCC" = yes; then
8949         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8950         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8951       else
8952         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8953         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8954       fi
8955       ;;
8956
8957     sysv5* | sco3.2v5* | sco5v6*)
8958       # Note: We can NOT use -z defs as we might desire, because we do not
8959       # link with -lc, and that would cause any symbols used from libc to
8960       # always be unresolved, which means just about no library would
8961       # ever link correctly.  If we're not using GNU ld we use -z text
8962       # though, which does catch some bad symbols but isn't as heavy-handed
8963       # as -z defs.
8964       no_undefined_flag='${wl}-z,text'
8965       allow_undefined_flag='${wl}-z,nodefs'
8966       archive_cmds_need_lc=no
8967       hardcode_shlibpath_var=no
8968       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8969       hardcode_libdir_separator=':'
8970       link_all_deplibs=yes
8971       export_dynamic_flag_spec='${wl}-Bexport'
8972       runpath_var='LD_RUN_PATH'
8973
8974       if test "$GCC" = yes; then
8975         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8976         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8977       else
8978         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8979         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8980       fi
8981       ;;
8982
8983     uts4*)
8984       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8985       hardcode_libdir_flag_spec='-L$libdir'
8986       hardcode_shlibpath_var=no
8987       ;;
8988
8989     *)
8990       ld_shlibs=no
8991       ;;
8992     esac
8993   fi
8994
8995 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8996 echo "${ECHO_T}$ld_shlibs" >&6; }
8997 test "$ld_shlibs" = no && can_build_shared=no
8998
8999 #
9000 # Do we need to explicitly link libc?
9001 #
9002 case "x$archive_cmds_need_lc" in
9003 x|xyes)
9004   # Assume -lc should be added
9005   archive_cmds_need_lc=yes
9006
9007   if test "$enable_shared" = yes && test "$GCC" = yes; then
9008     case $archive_cmds in
9009     *'~'*)
9010       # FIXME: we may have to deal with multi-command sequences.
9011       ;;
9012     '$CC '*)
9013       # Test whether the compiler implicitly links with -lc since on some
9014       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9015       # to ld, don't add -lc before -lgcc.
9016       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9017 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9018       $rm conftest*
9019       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9020
9021       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9022   (eval $ac_compile) 2>&5
9023   ac_status=$?
9024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9025   (exit $ac_status); } 2>conftest.err; then
9026         soname=conftest
9027         lib=conftest
9028         libobjs=conftest.$ac_objext
9029         deplibs=
9030         wl=$lt_prog_compiler_wl
9031         pic_flag=$lt_prog_compiler_pic
9032         compiler_flags=-v
9033         linker_flags=-v
9034         verstring=
9035         output_objdir=.
9036         libname=conftest
9037         lt_save_allow_undefined_flag=$allow_undefined_flag
9038         allow_undefined_flag=
9039         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9040   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9041   ac_status=$?
9042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9043   (exit $ac_status); }
9044         then
9045           archive_cmds_need_lc=no
9046         else
9047           archive_cmds_need_lc=yes
9048         fi
9049         allow_undefined_flag=$lt_save_allow_undefined_flag
9050       else
9051         cat conftest.err 1>&5
9052       fi
9053       $rm conftest*
9054       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9055 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9056       ;;
9057     esac
9058   fi
9059   ;;
9060 esac
9061
9062 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9063 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9064 library_names_spec=
9065 libname_spec='lib$name'
9066 soname_spec=
9067 shrext_cmds=".so"
9068 postinstall_cmds=
9069 postuninstall_cmds=
9070 finish_cmds=
9071 finish_eval=
9072 shlibpath_var=
9073 shlibpath_overrides_runpath=unknown
9074 version_type=none
9075 dynamic_linker="$host_os ld.so"
9076 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9077 if test "$GCC" = yes; then
9078   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9079   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9080     # if the path contains ";" then we assume it to be the separator
9081     # otherwise default to the standard path separator (i.e. ":") - it is
9082     # assumed that no part of a normal pathname contains ";" but that should
9083     # okay in the real world where ";" in dirpaths is itself problematic.
9084     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9085   else
9086     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9087   fi
9088 else
9089   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9090 fi
9091 need_lib_prefix=unknown
9092 hardcode_into_libs=no
9093
9094 # when you set need_version to no, make sure it does not cause -set_version
9095 # flags to be left without arguments
9096 need_version=unknown
9097
9098 case $host_os in
9099 aix3*)
9100   version_type=linux
9101   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9102   shlibpath_var=LIBPATH
9103
9104   # AIX 3 has no versioning support, so we append a major version to the name.
9105   soname_spec='${libname}${release}${shared_ext}$major'
9106   ;;
9107
9108 aix4* | aix5*)
9109   version_type=linux
9110   need_lib_prefix=no
9111   need_version=no
9112   hardcode_into_libs=yes
9113   if test "$host_cpu" = ia64; then
9114     # AIX 5 supports IA64
9115     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9116     shlibpath_var=LD_LIBRARY_PATH
9117   else
9118     # With GCC up to 2.95.x, collect2 would create an import file
9119     # for dependence libraries.  The import file would start with
9120     # the line `#! .'.  This would cause the generated library to
9121     # depend on `.', always an invalid library.  This was fixed in
9122     # development snapshots of GCC prior to 3.0.
9123     case $host_os in
9124       aix4 | aix4.[01] | aix4.[01].*)
9125       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9126            echo ' yes '
9127            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9128         :
9129       else
9130         can_build_shared=no
9131       fi
9132       ;;
9133     esac
9134     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9135     # soname into executable. Probably we can add versioning support to
9136     # collect2, so additional links can be useful in future.
9137     if test "$aix_use_runtimelinking" = yes; then
9138       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9139       # instead of lib<name>.a to let people know that these are not
9140       # typical AIX shared libraries.
9141       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9142     else
9143       # We preserve .a as extension for shared libraries through AIX4.2
9144       # and later when we are not doing run time linking.
9145       library_names_spec='${libname}${release}.a $libname.a'
9146       soname_spec='${libname}${release}${shared_ext}$major'
9147     fi
9148     shlibpath_var=LIBPATH
9149   fi
9150   ;;
9151
9152 amigaos*)
9153   library_names_spec='$libname.ixlibrary $libname.a'
9154   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9155   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9156   ;;
9157
9158 beos*)
9159   library_names_spec='${libname}${shared_ext}'
9160   dynamic_linker="$host_os ld.so"
9161   shlibpath_var=LIBRARY_PATH
9162   ;;
9163
9164 bsdi[45]*)
9165   version_type=linux
9166   need_version=no
9167   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9168   soname_spec='${libname}${release}${shared_ext}$major'
9169   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9170   shlibpath_var=LD_LIBRARY_PATH
9171   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9172   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9173   # the default ld.so.conf also contains /usr/contrib/lib and
9174   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9175   # libtool to hard-code these into programs
9176   ;;
9177
9178 cygwin* | mingw* | pw32*)
9179   version_type=windows
9180   shrext_cmds=".dll"
9181   need_version=no
9182   need_lib_prefix=no
9183
9184   case $GCC,$host_os in
9185   yes,cygwin* | yes,mingw* | yes,pw32*)
9186     library_names_spec='$libname.dll.a'
9187     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9188     postinstall_cmds='base_file=`basename \${file}`~
9189       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9190       dldir=$destdir/`dirname \$dlpath`~
9191       test -d \$dldir || mkdir -p \$dldir~
9192       $install_prog $dir/$dlname \$dldir/$dlname~
9193       chmod a+x \$dldir/$dlname'
9194     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9195       dlpath=$dir/\$dldll~
9196        $rm \$dlpath'
9197     shlibpath_overrides_runpath=yes
9198
9199     case $host_os in
9200     cygwin*)
9201       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9202       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9203       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9204       ;;
9205     mingw*)
9206       # MinGW DLLs use traditional 'lib' prefix
9207       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9208       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9209       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9210         # It is most probably a Windows format PATH printed by
9211         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9212         # path with ; separators, and with drive letters. We can handle the
9213         # drive letters (cygwin fileutils understands them), so leave them,
9214         # especially as we might pass files found there to a mingw objdump,
9215         # which wouldn't understand a cygwinified path. Ahh.
9216         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9217       else
9218         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9219       fi
9220       ;;
9221     pw32*)
9222       # pw32 DLLs use 'pw' prefix rather than 'lib'
9223       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9224       ;;
9225     esac
9226     ;;
9227
9228   *)
9229     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9230     ;;
9231   esac
9232   dynamic_linker='Win32 ld.exe'
9233   # FIXME: first we should search . and the directory the executable is in
9234   shlibpath_var=PATH
9235   ;;
9236
9237 darwin* | rhapsody*)
9238   dynamic_linker="$host_os dyld"
9239   version_type=darwin
9240   need_lib_prefix=no
9241   need_version=no
9242   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9243   soname_spec='${libname}${release}${major}$shared_ext'
9244   shlibpath_overrides_runpath=yes
9245   shlibpath_var=DYLD_LIBRARY_PATH
9246   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9247   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9248   if test "$GCC" = yes; then
9249     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
9250   else
9251     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9252   fi
9253   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9254   ;;
9255
9256 dgux*)
9257   version_type=linux
9258   need_lib_prefix=no
9259   need_version=no
9260   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9261   soname_spec='${libname}${release}${shared_ext}$major'
9262   shlibpath_var=LD_LIBRARY_PATH
9263   ;;
9264
9265 freebsd1*)
9266   dynamic_linker=no
9267   ;;
9268
9269 kfreebsd*-gnu)
9270   version_type=linux
9271   need_lib_prefix=no
9272   need_version=no
9273   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9274   soname_spec='${libname}${release}${shared_ext}$major'
9275   shlibpath_var=LD_LIBRARY_PATH
9276   shlibpath_overrides_runpath=no
9277   hardcode_into_libs=yes
9278   dynamic_linker='GNU ld.so'
9279   ;;
9280
9281 freebsd* | dragonfly*)
9282   # DragonFly does not have aout.  When/if they implement a new
9283   # versioning mechanism, adjust this.
9284   if test -x /usr/bin/objformat; then
9285     objformat=`/usr/bin/objformat`
9286   else
9287     case $host_os in
9288     freebsd[123]*) objformat=aout ;;
9289     *) objformat=elf ;;
9290     esac
9291   fi
9292   version_type=freebsd-$objformat
9293   case $version_type in
9294     freebsd-elf*)
9295       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9296       need_version=no
9297       need_lib_prefix=no
9298       ;;
9299     freebsd-*)
9300       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9301       need_version=yes
9302       ;;
9303   esac
9304   shlibpath_var=LD_LIBRARY_PATH
9305   case $host_os in
9306   freebsd2*)
9307     shlibpath_overrides_runpath=yes
9308     ;;
9309   freebsd3.[01]* | freebsdelf3.[01]*)
9310     shlibpath_overrides_runpath=yes
9311     hardcode_into_libs=yes
9312     ;;
9313   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9314   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9315     shlibpath_overrides_runpath=no
9316     hardcode_into_libs=yes
9317     ;;
9318   freebsd*) # from 4.6 on
9319     shlibpath_overrides_runpath=yes
9320     hardcode_into_libs=yes
9321     ;;
9322   esac
9323   ;;
9324
9325 gnu*)
9326   version_type=linux
9327   need_lib_prefix=no
9328   need_version=no
9329   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9330   soname_spec='${libname}${release}${shared_ext}$major'
9331   shlibpath_var=LD_LIBRARY_PATH
9332   hardcode_into_libs=yes
9333   ;;
9334
9335 hpux9* | hpux10* | hpux11*)
9336   # Give a soname corresponding to the major version so that dld.sl refuses to
9337   # link against other versions.
9338   version_type=sunos
9339   need_lib_prefix=no
9340   need_version=no
9341   case $host_cpu in
9342   ia64*)
9343     shrext_cmds='.so'
9344     hardcode_into_libs=yes
9345     dynamic_linker="$host_os dld.so"
9346     shlibpath_var=LD_LIBRARY_PATH
9347     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9348     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9349     soname_spec='${libname}${release}${shared_ext}$major'
9350     if test "X$HPUX_IA64_MODE" = X32; then
9351       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9352     else
9353       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9354     fi
9355     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9356     ;;
9357    hppa*64*)
9358      shrext_cmds='.sl'
9359      hardcode_into_libs=yes
9360      dynamic_linker="$host_os dld.sl"
9361      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9362      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9363      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9364      soname_spec='${libname}${release}${shared_ext}$major'
9365      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9366      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9367      ;;
9368    *)
9369     shrext_cmds='.sl'
9370     dynamic_linker="$host_os dld.sl"
9371     shlibpath_var=SHLIB_PATH
9372     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9373     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9374     soname_spec='${libname}${release}${shared_ext}$major'
9375     ;;
9376   esac
9377   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9378   postinstall_cmds='chmod 555 $lib'
9379   ;;
9380
9381 interix3*)
9382   version_type=linux
9383   need_lib_prefix=no
9384   need_version=no
9385   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9386   soname_spec='${libname}${release}${shared_ext}$major'
9387   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9388   shlibpath_var=LD_LIBRARY_PATH
9389   shlibpath_overrides_runpath=no
9390   hardcode_into_libs=yes
9391   ;;
9392
9393 irix5* | irix6* | nonstopux*)
9394   case $host_os in
9395     nonstopux*) version_type=nonstopux ;;
9396     *)
9397         if test "$lt_cv_prog_gnu_ld" = yes; then
9398                 version_type=linux
9399         else
9400                 version_type=irix
9401         fi ;;
9402   esac
9403   need_lib_prefix=no
9404   need_version=no
9405   soname_spec='${libname}${release}${shared_ext}$major'
9406   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9407   case $host_os in
9408   irix5* | nonstopux*)
9409     libsuff= shlibsuff=
9410     ;;
9411   *)
9412     case $LD in # libtool.m4 will add one of these switches to LD
9413     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9414       libsuff= shlibsuff= libmagic=32-bit;;
9415     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9416       libsuff=32 shlibsuff=N32 libmagic=N32;;
9417     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9418       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9419     *) libsuff= shlibsuff= libmagic=never-match;;
9420     esac
9421     ;;
9422   esac
9423   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9424   shlibpath_overrides_runpath=no
9425   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9426   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9427   hardcode_into_libs=yes
9428   ;;
9429
9430 # No shared lib support for Linux oldld, aout, or coff.
9431 linux*oldld* | linux*aout* | linux*coff*)
9432   dynamic_linker=no
9433   ;;
9434
9435 # This must be Linux ELF.
9436 linux*)
9437   version_type=linux
9438   need_lib_prefix=no
9439   need_version=no
9440   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9441   soname_spec='${libname}${release}${shared_ext}$major'
9442   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9443   shlibpath_var=LD_LIBRARY_PATH
9444   shlibpath_overrides_runpath=no
9445   # This implies no fast_install, which is unacceptable.
9446   # Some rework will be needed to allow for fast_install
9447   # before this can be enabled.
9448   hardcode_into_libs=yes
9449
9450   # find out which ABI we are using
9451   libsuff=
9452   case "$host_cpu" in
9453   x86_64*|s390x*|powerpc64*)
9454     echo '#line 9454 "configure"' > conftest.$ac_ext
9455     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9456   (eval $ac_compile) 2>&5
9457   ac_status=$?
9458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9459   (exit $ac_status); }; then
9460       case `/usr/bin/file conftest.$ac_objext` in
9461       *64-bit*)
9462         libsuff=64
9463         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
9464         ;;
9465       esac
9466     fi
9467     rm -rf conftest*
9468     ;;
9469   esac
9470
9471   # Append ld.so.conf contents to the search path
9472   if test -f /etc/ld.so.conf; then
9473     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9474     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
9475   fi
9476
9477   # We used to test for /lib/ld.so.1 and disable shared libraries on
9478   # powerpc, because MkLinux only supported shared libraries with the
9479   # GNU dynamic linker.  Since this was broken with cross compilers,
9480   # most powerpc-linux boxes support dynamic linking these days and
9481   # people can always --disable-shared, the test was removed, and we
9482   # assume the GNU/Linux dynamic linker is in use.
9483   dynamic_linker='GNU/Linux ld.so'
9484   ;;
9485
9486 knetbsd*-gnu)
9487   version_type=linux
9488   need_lib_prefix=no
9489   need_version=no
9490   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9491   soname_spec='${libname}${release}${shared_ext}$major'
9492   shlibpath_var=LD_LIBRARY_PATH
9493   shlibpath_overrides_runpath=no
9494   hardcode_into_libs=yes
9495   dynamic_linker='GNU ld.so'
9496   ;;
9497
9498 netbsd*)
9499   version_type=sunos
9500   need_lib_prefix=no
9501   need_version=no
9502   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9503     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9504     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9505     dynamic_linker='NetBSD (a.out) ld.so'
9506   else
9507     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9508     soname_spec='${libname}${release}${shared_ext}$major'
9509     dynamic_linker='NetBSD ld.elf_so'
9510   fi
9511   shlibpath_var=LD_LIBRARY_PATH
9512   shlibpath_overrides_runpath=yes
9513   hardcode_into_libs=yes
9514   ;;
9515
9516 newsos6)
9517   version_type=linux
9518   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9519   shlibpath_var=LD_LIBRARY_PATH
9520   shlibpath_overrides_runpath=yes
9521   ;;
9522
9523 nto-qnx*)
9524   version_type=linux
9525   need_lib_prefix=no
9526   need_version=no
9527   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9528   soname_spec='${libname}${release}${shared_ext}$major'
9529   shlibpath_var=LD_LIBRARY_PATH
9530   shlibpath_overrides_runpath=yes
9531   ;;
9532
9533 openbsd*)
9534   version_type=sunos
9535   sys_lib_dlsearch_path_spec="/usr/lib"
9536   need_lib_prefix=no
9537   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9538   case $host_os in
9539     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9540     *)                         need_version=no  ;;
9541   esac
9542   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9543   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9544   shlibpath_var=LD_LIBRARY_PATH
9545   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9546     case $host_os in
9547       openbsd2.[89] | openbsd2.[89].*)
9548         shlibpath_overrides_runpath=no
9549         ;;
9550       *)
9551         shlibpath_overrides_runpath=yes
9552         ;;
9553       esac
9554   else
9555     shlibpath_overrides_runpath=yes
9556   fi
9557   ;;
9558
9559 os2*)
9560   libname_spec='$name'
9561   shrext_cmds=".dll"
9562   need_lib_prefix=no
9563   library_names_spec='$libname${shared_ext} $libname.a'
9564   dynamic_linker='OS/2 ld.exe'
9565   shlibpath_var=LIBPATH
9566   ;;
9567
9568 osf3* | osf4* | osf5*)
9569   version_type=osf
9570   need_lib_prefix=no
9571   need_version=no
9572   soname_spec='${libname}${release}${shared_ext}$major'
9573   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9574   shlibpath_var=LD_LIBRARY_PATH
9575   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9576   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9577   ;;
9578
9579 solaris*)
9580   version_type=linux
9581   need_lib_prefix=no
9582   need_version=no
9583   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9584   soname_spec='${libname}${release}${shared_ext}$major'
9585   shlibpath_var=LD_LIBRARY_PATH
9586   shlibpath_overrides_runpath=yes
9587   hardcode_into_libs=yes
9588   # ldd complains unless libraries are executable
9589   postinstall_cmds='chmod +x $lib'
9590   ;;
9591
9592 sunos4*)
9593   version_type=sunos
9594   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9595   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9596   shlibpath_var=LD_LIBRARY_PATH
9597   shlibpath_overrides_runpath=yes
9598   if test "$with_gnu_ld" = yes; then
9599     need_lib_prefix=no
9600   fi
9601   need_version=yes
9602   ;;
9603
9604 sysv4 | sysv4.3*)
9605   version_type=linux
9606   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9607   soname_spec='${libname}${release}${shared_ext}$major'
9608   shlibpath_var=LD_LIBRARY_PATH
9609   case $host_vendor in
9610     sni)
9611       shlibpath_overrides_runpath=no
9612       need_lib_prefix=no
9613       export_dynamic_flag_spec='${wl}-Blargedynsym'
9614       runpath_var=LD_RUN_PATH
9615       ;;
9616     siemens)
9617       need_lib_prefix=no
9618       ;;
9619     motorola)
9620       need_lib_prefix=no
9621       need_version=no
9622       shlibpath_overrides_runpath=no
9623       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9624       ;;
9625   esac
9626   ;;
9627
9628 sysv4*MP*)
9629   if test -d /usr/nec ;then
9630     version_type=linux
9631     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9632     soname_spec='$libname${shared_ext}.$major'
9633     shlibpath_var=LD_LIBRARY_PATH
9634   fi
9635   ;;
9636
9637 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9638   version_type=freebsd-elf
9639   need_lib_prefix=no
9640   need_version=no
9641   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9642   soname_spec='${libname}${release}${shared_ext}$major'
9643   shlibpath_var=LD_LIBRARY_PATH
9644   hardcode_into_libs=yes
9645   if test "$with_gnu_ld" = yes; then
9646     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9647     shlibpath_overrides_runpath=no
9648   else
9649     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9650     shlibpath_overrides_runpath=yes
9651     case $host_os in
9652       sco3.2v5*)
9653         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9654         ;;
9655     esac
9656   fi
9657   sys_lib_dlsearch_path_spec='/usr/lib'
9658   ;;
9659
9660 uts4*)
9661   version_type=linux
9662   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9663   soname_spec='${libname}${release}${shared_ext}$major'
9664   shlibpath_var=LD_LIBRARY_PATH
9665   ;;
9666
9667 *)
9668   dynamic_linker=no
9669   ;;
9670 esac
9671 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9672 echo "${ECHO_T}$dynamic_linker" >&6; }
9673 test "$dynamic_linker" = no && can_build_shared=no
9674
9675 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9676 if test "$GCC" = yes; then
9677   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9678 fi
9679
9680 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9681 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9682 hardcode_action=
9683 if test -n "$hardcode_libdir_flag_spec" || \
9684    test -n "$runpath_var" || \
9685    test "X$hardcode_automatic" = "Xyes" ; then
9686
9687   # We can hardcode non-existant directories.
9688   if test "$hardcode_direct" != no &&
9689      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9690      # have to relink, otherwise we might link with an installed library
9691      # when we should be linking with a yet-to-be-installed one
9692      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9693      test "$hardcode_minus_L" != no; then
9694     # Linking always hardcodes the temporary library directory.
9695     hardcode_action=relink
9696   else
9697     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9698     hardcode_action=immediate
9699   fi
9700 else
9701   # We cannot hardcode anything, or else we can only hardcode existing
9702   # directories.
9703   hardcode_action=unsupported
9704 fi
9705 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9706 echo "${ECHO_T}$hardcode_action" >&6; }
9707
9708 if test "$hardcode_action" = relink; then
9709   # Fast installation is not supported
9710   enable_fast_install=no
9711 elif test "$shlibpath_overrides_runpath" = yes ||
9712      test "$enable_shared" = no; then
9713   # Fast installation is not necessary
9714   enable_fast_install=needless
9715 fi
9716
9717 striplib=
9718 old_striplib=
9719 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9720 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9721 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9722   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9723   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9724   { echo "$as_me:$LINENO: result: yes" >&5
9725 echo "${ECHO_T}yes" >&6; }
9726 else
9727 # FIXME - insert some real tests, host_os isn't really good enough
9728   case $host_os in
9729    darwin*)
9730        if test -n "$STRIP" ; then
9731          striplib="$STRIP -x"
9732          { echo "$as_me:$LINENO: result: yes" >&5
9733 echo "${ECHO_T}yes" >&6; }
9734        else
9735   { echo "$as_me:$LINENO: result: no" >&5
9736 echo "${ECHO_T}no" >&6; }
9737 fi
9738        ;;
9739    *)
9740   { echo "$as_me:$LINENO: result: no" >&5
9741 echo "${ECHO_T}no" >&6; }
9742     ;;
9743   esac
9744 fi
9745
9746 if test "x$enable_dlopen" != xyes; then
9747   enable_dlopen=unknown
9748   enable_dlopen_self=unknown
9749   enable_dlopen_self_static=unknown
9750 else
9751   lt_cv_dlopen=no
9752   lt_cv_dlopen_libs=
9753
9754   case $host_os in
9755   beos*)
9756     lt_cv_dlopen="load_add_on"
9757     lt_cv_dlopen_libs=
9758     lt_cv_dlopen_self=yes
9759     ;;
9760
9761   mingw* | pw32*)
9762     lt_cv_dlopen="LoadLibrary"
9763     lt_cv_dlopen_libs=
9764    ;;
9765
9766   cygwin*)
9767     lt_cv_dlopen="dlopen"
9768     lt_cv_dlopen_libs=
9769    ;;
9770
9771   darwin*)
9772   # if libdl is installed we need to link against it
9773     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9774 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9775 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9776   echo $ECHO_N "(cached) $ECHO_C" >&6
9777 else
9778   ac_check_lib_save_LIBS=$LIBS
9779 LIBS="-ldl  $LIBS"
9780 cat >conftest.$ac_ext <<_ACEOF
9781 /* confdefs.h.  */
9782 _ACEOF
9783 cat confdefs.h >>conftest.$ac_ext
9784 cat >>conftest.$ac_ext <<_ACEOF
9785 /* end confdefs.h.  */
9786
9787 /* Override any GCC internal prototype to avoid an error.
9788    Use char because int might match the return type of a GCC
9789    builtin and then its argument prototype would still apply.  */
9790 #ifdef __cplusplus
9791 extern "C"
9792 #endif
9793 char dlopen ();
9794 int
9795 main ()
9796 {
9797 return dlopen ();
9798   ;
9799   return 0;
9800 }
9801 _ACEOF
9802 rm -f conftest.$ac_objext conftest$ac_exeext
9803 if { (ac_try="$ac_link"
9804 case "(($ac_try" in
9805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9806   *) ac_try_echo=$ac_try;;
9807 esac
9808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9809   (eval "$ac_link") 2>conftest.er1
9810   ac_status=$?
9811   grep -v '^ *+' conftest.er1 >conftest.err
9812   rm -f conftest.er1
9813   cat conftest.err >&5
9814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9815   (exit $ac_status); } && {
9816          test -z "$ac_c_werror_flag" ||
9817          test ! -s conftest.err
9818        } && test -s conftest$ac_exeext &&
9819        $as_test_x conftest$ac_exeext; then
9820   ac_cv_lib_dl_dlopen=yes
9821 else
9822   echo "$as_me: failed program was:" >&5
9823 sed 's/^/| /' conftest.$ac_ext >&5
9824
9825         ac_cv_lib_dl_dlopen=no
9826 fi
9827
9828 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9829       conftest$ac_exeext conftest.$ac_ext
9830 LIBS=$ac_check_lib_save_LIBS
9831 fi
9832 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9833 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9834 if test $ac_cv_lib_dl_dlopen = yes; then
9835   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9836 else
9837
9838     lt_cv_dlopen="dyld"
9839     lt_cv_dlopen_libs=
9840     lt_cv_dlopen_self=yes
9841
9842 fi
9843
9844    ;;
9845
9846   *)
9847     { echo "$as_me:$LINENO: checking for shl_load" >&5
9848 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9849 if test "${ac_cv_func_shl_load+set}" = set; then
9850   echo $ECHO_N "(cached) $ECHO_C" >&6
9851 else
9852   cat >conftest.$ac_ext <<_ACEOF
9853 /* confdefs.h.  */
9854 _ACEOF
9855 cat confdefs.h >>conftest.$ac_ext
9856 cat >>conftest.$ac_ext <<_ACEOF
9857 /* end confdefs.h.  */
9858 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9859    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9860 #define shl_load innocuous_shl_load
9861
9862 /* System header to define __stub macros and hopefully few prototypes,
9863     which can conflict with char shl_load (); below.
9864     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9865     <limits.h> exists even on freestanding compilers.  */
9866
9867 #ifdef __STDC__
9868 # include <limits.h>
9869 #else
9870 # include <assert.h>
9871 #endif
9872
9873 #undef shl_load
9874
9875 /* Override any GCC internal prototype to avoid an error.
9876    Use char because int might match the return type of a GCC
9877    builtin and then its argument prototype would still apply.  */
9878 #ifdef __cplusplus
9879 extern "C"
9880 #endif
9881 char shl_load ();
9882 /* The GNU C library defines this for functions which it implements
9883     to always fail with ENOSYS.  Some functions are actually named
9884     something starting with __ and the normal name is an alias.  */
9885 #if defined __stub_shl_load || defined __stub___shl_load
9886 choke me
9887 #endif
9888
9889 int
9890 main ()
9891 {
9892 return shl_load ();
9893   ;
9894   return 0;
9895 }
9896 _ACEOF
9897 rm -f conftest.$ac_objext conftest$ac_exeext
9898 if { (ac_try="$ac_link"
9899 case "(($ac_try" in
9900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9901   *) ac_try_echo=$ac_try;;
9902 esac
9903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9904   (eval "$ac_link") 2>conftest.er1
9905   ac_status=$?
9906   grep -v '^ *+' conftest.er1 >conftest.err
9907   rm -f conftest.er1
9908   cat conftest.err >&5
9909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9910   (exit $ac_status); } && {
9911          test -z "$ac_c_werror_flag" ||
9912          test ! -s conftest.err
9913        } && test -s conftest$ac_exeext &&
9914        $as_test_x conftest$ac_exeext; then
9915   ac_cv_func_shl_load=yes
9916 else
9917   echo "$as_me: failed program was:" >&5
9918 sed 's/^/| /' conftest.$ac_ext >&5
9919
9920         ac_cv_func_shl_load=no
9921 fi
9922
9923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9924       conftest$ac_exeext conftest.$ac_ext
9925 fi
9926 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9927 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9928 if test $ac_cv_func_shl_load = yes; then
9929   lt_cv_dlopen="shl_load"
9930 else
9931   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9932 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9933 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9934   echo $ECHO_N "(cached) $ECHO_C" >&6
9935 else
9936   ac_check_lib_save_LIBS=$LIBS
9937 LIBS="-ldld  $LIBS"
9938 cat >conftest.$ac_ext <<_ACEOF
9939 /* confdefs.h.  */
9940 _ACEOF
9941 cat confdefs.h >>conftest.$ac_ext
9942 cat >>conftest.$ac_ext <<_ACEOF
9943 /* end confdefs.h.  */
9944
9945 /* Override any GCC internal prototype to avoid an error.
9946    Use char because int might match the return type of a GCC
9947    builtin and then its argument prototype would still apply.  */
9948 #ifdef __cplusplus
9949 extern "C"
9950 #endif
9951 char shl_load ();
9952 int
9953 main ()
9954 {
9955 return shl_load ();
9956   ;
9957   return 0;
9958 }
9959 _ACEOF
9960 rm -f conftest.$ac_objext conftest$ac_exeext
9961 if { (ac_try="$ac_link"
9962 case "(($ac_try" in
9963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9964   *) ac_try_echo=$ac_try;;
9965 esac
9966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9967   (eval "$ac_link") 2>conftest.er1
9968   ac_status=$?
9969   grep -v '^ *+' conftest.er1 >conftest.err
9970   rm -f conftest.er1
9971   cat conftest.err >&5
9972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973   (exit $ac_status); } && {
9974          test -z "$ac_c_werror_flag" ||
9975          test ! -s conftest.err
9976        } && test -s conftest$ac_exeext &&
9977        $as_test_x conftest$ac_exeext; then
9978   ac_cv_lib_dld_shl_load=yes
9979 else
9980   echo "$as_me: failed program was:" >&5
9981 sed 's/^/| /' conftest.$ac_ext >&5
9982
9983         ac_cv_lib_dld_shl_load=no
9984 fi
9985
9986 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9987       conftest$ac_exeext conftest.$ac_ext
9988 LIBS=$ac_check_lib_save_LIBS
9989 fi
9990 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9991 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9992 if test $ac_cv_lib_dld_shl_load = yes; then
9993   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9994 else
9995   { echo "$as_me:$LINENO: checking for dlopen" >&5
9996 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9997 if test "${ac_cv_func_dlopen+set}" = set; then
9998   echo $ECHO_N "(cached) $ECHO_C" >&6
9999 else
10000   cat >conftest.$ac_ext <<_ACEOF
10001 /* confdefs.h.  */
10002 _ACEOF
10003 cat confdefs.h >>conftest.$ac_ext
10004 cat >>conftest.$ac_ext <<_ACEOF
10005 /* end confdefs.h.  */
10006 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10007    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10008 #define dlopen innocuous_dlopen
10009
10010 /* System header to define __stub macros and hopefully few prototypes,
10011     which can conflict with char dlopen (); below.
10012     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10013     <limits.h> exists even on freestanding compilers.  */
10014
10015 #ifdef __STDC__
10016 # include <limits.h>
10017 #else
10018 # include <assert.h>
10019 #endif
10020
10021 #undef dlopen
10022
10023 /* Override any GCC internal prototype to avoid an error.
10024    Use char because int might match the return type of a GCC
10025    builtin and then its argument prototype would still apply.  */
10026 #ifdef __cplusplus
10027 extern "C"
10028 #endif
10029 char dlopen ();
10030 /* The GNU C library defines this for functions which it implements
10031     to always fail with ENOSYS.  Some functions are actually named
10032     something starting with __ and the normal name is an alias.  */
10033 #if defined __stub_dlopen || defined __stub___dlopen
10034 choke me
10035 #endif
10036
10037 int
10038 main ()
10039 {
10040 return dlopen ();
10041   ;
10042   return 0;
10043 }
10044 _ACEOF
10045 rm -f conftest.$ac_objext conftest$ac_exeext
10046 if { (ac_try="$ac_link"
10047 case "(($ac_try" in
10048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10049   *) ac_try_echo=$ac_try;;
10050 esac
10051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10052   (eval "$ac_link") 2>conftest.er1
10053   ac_status=$?
10054   grep -v '^ *+' conftest.er1 >conftest.err
10055   rm -f conftest.er1
10056   cat conftest.err >&5
10057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10058   (exit $ac_status); } && {
10059          test -z "$ac_c_werror_flag" ||
10060          test ! -s conftest.err
10061        } && test -s conftest$ac_exeext &&
10062        $as_test_x conftest$ac_exeext; then
10063   ac_cv_func_dlopen=yes
10064 else
10065   echo "$as_me: failed program was:" >&5
10066 sed 's/^/| /' conftest.$ac_ext >&5
10067
10068         ac_cv_func_dlopen=no
10069 fi
10070
10071 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10072       conftest$ac_exeext conftest.$ac_ext
10073 fi
10074 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10075 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10076 if test $ac_cv_func_dlopen = yes; then
10077   lt_cv_dlopen="dlopen"
10078 else
10079   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10080 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10081 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10082   echo $ECHO_N "(cached) $ECHO_C" >&6
10083 else
10084   ac_check_lib_save_LIBS=$LIBS
10085 LIBS="-ldl  $LIBS"
10086 cat >conftest.$ac_ext <<_ACEOF
10087 /* confdefs.h.  */
10088 _ACEOF
10089 cat confdefs.h >>conftest.$ac_ext
10090 cat >>conftest.$ac_ext <<_ACEOF
10091 /* end confdefs.h.  */
10092
10093 /* Override any GCC internal prototype to avoid an error.
10094    Use char because int might match the return type of a GCC
10095    builtin and then its argument prototype would still apply.  */
10096 #ifdef __cplusplus
10097 extern "C"
10098 #endif
10099 char dlopen ();
10100 int
10101 main ()
10102 {
10103 return dlopen ();
10104   ;
10105   return 0;
10106 }
10107 _ACEOF
10108 rm -f conftest.$ac_objext conftest$ac_exeext
10109 if { (ac_try="$ac_link"
10110 case "(($ac_try" in
10111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10112   *) ac_try_echo=$ac_try;;
10113 esac
10114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10115   (eval "$ac_link") 2>conftest.er1
10116   ac_status=$?
10117   grep -v '^ *+' conftest.er1 >conftest.err
10118   rm -f conftest.er1
10119   cat conftest.err >&5
10120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10121   (exit $ac_status); } && {
10122          test -z "$ac_c_werror_flag" ||
10123          test ! -s conftest.err
10124        } && test -s conftest$ac_exeext &&
10125        $as_test_x conftest$ac_exeext; then
10126   ac_cv_lib_dl_dlopen=yes
10127 else
10128   echo "$as_me: failed program was:" >&5
10129 sed 's/^/| /' conftest.$ac_ext >&5
10130
10131         ac_cv_lib_dl_dlopen=no
10132 fi
10133
10134 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10135       conftest$ac_exeext conftest.$ac_ext
10136 LIBS=$ac_check_lib_save_LIBS
10137 fi
10138 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10139 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10140 if test $ac_cv_lib_dl_dlopen = yes; then
10141   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10142 else
10143   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10144 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10145 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10146   echo $ECHO_N "(cached) $ECHO_C" >&6
10147 else
10148   ac_check_lib_save_LIBS=$LIBS
10149 LIBS="-lsvld  $LIBS"
10150 cat >conftest.$ac_ext <<_ACEOF
10151 /* confdefs.h.  */
10152 _ACEOF
10153 cat confdefs.h >>conftest.$ac_ext
10154 cat >>conftest.$ac_ext <<_ACEOF
10155 /* end confdefs.h.  */
10156
10157 /* Override any GCC internal prototype to avoid an error.
10158    Use char because int might match the return type of a GCC
10159    builtin and then its argument prototype would still apply.  */
10160 #ifdef __cplusplus
10161 extern "C"
10162 #endif
10163 char dlopen ();
10164 int
10165 main ()
10166 {
10167 return dlopen ();
10168   ;
10169   return 0;
10170 }
10171 _ACEOF
10172 rm -f conftest.$ac_objext conftest$ac_exeext
10173 if { (ac_try="$ac_link"
10174 case "(($ac_try" in
10175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10176   *) ac_try_echo=$ac_try;;
10177 esac
10178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10179   (eval "$ac_link") 2>conftest.er1
10180   ac_status=$?
10181   grep -v '^ *+' conftest.er1 >conftest.err
10182   rm -f conftest.er1
10183   cat conftest.err >&5
10184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10185   (exit $ac_status); } && {
10186          test -z "$ac_c_werror_flag" ||
10187          test ! -s conftest.err
10188        } && test -s conftest$ac_exeext &&
10189        $as_test_x conftest$ac_exeext; then
10190   ac_cv_lib_svld_dlopen=yes
10191 else
10192   echo "$as_me: failed program was:" >&5
10193 sed 's/^/| /' conftest.$ac_ext >&5
10194
10195         ac_cv_lib_svld_dlopen=no
10196 fi
10197
10198 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10199       conftest$ac_exeext conftest.$ac_ext
10200 LIBS=$ac_check_lib_save_LIBS
10201 fi
10202 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10203 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10204 if test $ac_cv_lib_svld_dlopen = yes; then
10205   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10206 else
10207   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10208 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10209 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10210   echo $ECHO_N "(cached) $ECHO_C" >&6
10211 else
10212   ac_check_lib_save_LIBS=$LIBS
10213 LIBS="-ldld  $LIBS"
10214 cat >conftest.$ac_ext <<_ACEOF
10215 /* confdefs.h.  */
10216 _ACEOF
10217 cat confdefs.h >>conftest.$ac_ext
10218 cat >>conftest.$ac_ext <<_ACEOF
10219 /* end confdefs.h.  */
10220
10221 /* Override any GCC internal prototype to avoid an error.
10222    Use char because int might match the return type of a GCC
10223    builtin and then its argument prototype would still apply.  */
10224 #ifdef __cplusplus
10225 extern "C"
10226 #endif
10227 char dld_link ();
10228 int
10229 main ()
10230 {
10231 return dld_link ();
10232   ;
10233   return 0;
10234 }
10235 _ACEOF
10236 rm -f conftest.$ac_objext conftest$ac_exeext
10237 if { (ac_try="$ac_link"
10238 case "(($ac_try" in
10239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10240   *) ac_try_echo=$ac_try;;
10241 esac
10242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10243   (eval "$ac_link") 2>conftest.er1
10244   ac_status=$?
10245   grep -v '^ *+' conftest.er1 >conftest.err
10246   rm -f conftest.er1
10247   cat conftest.err >&5
10248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10249   (exit $ac_status); } && {
10250          test -z "$ac_c_werror_flag" ||
10251          test ! -s conftest.err
10252        } && test -s conftest$ac_exeext &&
10253        $as_test_x conftest$ac_exeext; then
10254   ac_cv_lib_dld_dld_link=yes
10255 else
10256   echo "$as_me: failed program was:" >&5
10257 sed 's/^/| /' conftest.$ac_ext >&5
10258
10259         ac_cv_lib_dld_dld_link=no
10260 fi
10261
10262 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10263       conftest$ac_exeext conftest.$ac_ext
10264 LIBS=$ac_check_lib_save_LIBS
10265 fi
10266 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10267 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10268 if test $ac_cv_lib_dld_dld_link = yes; then
10269   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10270 fi
10271
10272
10273 fi
10274
10275
10276 fi
10277
10278
10279 fi
10280
10281
10282 fi
10283
10284
10285 fi
10286
10287     ;;
10288   esac
10289
10290   if test "x$lt_cv_dlopen" != xno; then
10291     enable_dlopen=yes
10292   else
10293     enable_dlopen=no
10294   fi
10295
10296   case $lt_cv_dlopen in
10297   dlopen)
10298     save_CPPFLAGS="$CPPFLAGS"
10299     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10300
10301     save_LDFLAGS="$LDFLAGS"
10302     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10303
10304     save_LIBS="$LIBS"
10305     LIBS="$lt_cv_dlopen_libs $LIBS"
10306
10307     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10308 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10309 if test "${lt_cv_dlopen_self+set}" = set; then
10310   echo $ECHO_N "(cached) $ECHO_C" >&6
10311 else
10312           if test "$cross_compiling" = yes; then :
10313   lt_cv_dlopen_self=cross
10314 else
10315   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10316   lt_status=$lt_dlunknown
10317   cat > conftest.$ac_ext <<EOF
10318 #line 10318 "configure"
10319 #include "confdefs.h"
10320
10321 #if HAVE_DLFCN_H
10322 #include <dlfcn.h>
10323 #endif
10324
10325 #include <stdio.h>
10326
10327 #ifdef RTLD_GLOBAL
10328 #  define LT_DLGLOBAL           RTLD_GLOBAL
10329 #else
10330 #  ifdef DL_GLOBAL
10331 #    define LT_DLGLOBAL         DL_GLOBAL
10332 #  else
10333 #    define LT_DLGLOBAL         0
10334 #  endif
10335 #endif
10336
10337 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10338    find out it does not work in some platform. */
10339 #ifndef LT_DLLAZY_OR_NOW
10340 #  ifdef RTLD_LAZY
10341 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10342 #  else
10343 #    ifdef DL_LAZY
10344 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10345 #    else
10346 #      ifdef RTLD_NOW
10347 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10348 #      else
10349 #        ifdef DL_NOW
10350 #          define LT_DLLAZY_OR_NOW      DL_NOW
10351 #        else
10352 #          define LT_DLLAZY_OR_NOW      0
10353 #        endif
10354 #      endif
10355 #    endif
10356 #  endif
10357 #endif
10358
10359 #ifdef __cplusplus
10360 extern "C" void exit (int);
10361 #endif
10362
10363 void fnord() { int i=42;}
10364 int main ()
10365 {
10366   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10367   int status = $lt_dlunknown;
10368
10369   if (self)
10370     {
10371       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10372       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10373       /* dlclose (self); */
10374     }
10375   else
10376     puts (dlerror ());
10377
10378     exit (status);
10379 }
10380 EOF
10381   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10382   (eval $ac_link) 2>&5
10383   ac_status=$?
10384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10385   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10386     (./conftest; exit; ) >&5 2>/dev/null
10387     lt_status=$?
10388     case x$lt_status in
10389       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10390       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10391       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10392     esac
10393   else :
10394     # compilation failed
10395     lt_cv_dlopen_self=no
10396   fi
10397 fi
10398 rm -fr conftest*
10399
10400
10401 fi
10402 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10403 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10404
10405     if test "x$lt_cv_dlopen_self" = xyes; then
10406       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10407       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10408 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10409 if test "${lt_cv_dlopen_self_static+set}" = set; then
10410   echo $ECHO_N "(cached) $ECHO_C" >&6
10411 else
10412           if test "$cross_compiling" = yes; then :
10413   lt_cv_dlopen_self_static=cross
10414 else
10415   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10416   lt_status=$lt_dlunknown
10417   cat > conftest.$ac_ext <<EOF
10418 #line 10418 "configure"
10419 #include "confdefs.h"
10420
10421 #if HAVE_DLFCN_H
10422 #include <dlfcn.h>
10423 #endif
10424
10425 #include <stdio.h>
10426
10427 #ifdef RTLD_GLOBAL
10428 #  define LT_DLGLOBAL           RTLD_GLOBAL
10429 #else
10430 #  ifdef DL_GLOBAL
10431 #    define LT_DLGLOBAL         DL_GLOBAL
10432 #  else
10433 #    define LT_DLGLOBAL         0
10434 #  endif
10435 #endif
10436
10437 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10438    find out it does not work in some platform. */
10439 #ifndef LT_DLLAZY_OR_NOW
10440 #  ifdef RTLD_LAZY
10441 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10442 #  else
10443 #    ifdef DL_LAZY
10444 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10445 #    else
10446 #      ifdef RTLD_NOW
10447 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10448 #      else
10449 #        ifdef DL_NOW
10450 #          define LT_DLLAZY_OR_NOW      DL_NOW
10451 #        else
10452 #          define LT_DLLAZY_OR_NOW      0
10453 #        endif
10454 #      endif
10455 #    endif
10456 #  endif
10457 #endif
10458
10459 #ifdef __cplusplus
10460 extern "C" void exit (int);
10461 #endif
10462
10463 void fnord() { int i=42;}
10464 int main ()
10465 {
10466   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10467   int status = $lt_dlunknown;
10468
10469   if (self)
10470     {
10471       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10472       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10473       /* dlclose (self); */
10474     }
10475   else
10476     puts (dlerror ());
10477
10478     exit (status);
10479 }
10480 EOF
10481   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10482   (eval $ac_link) 2>&5
10483   ac_status=$?
10484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10485   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10486     (./conftest; exit; ) >&5 2>/dev/null
10487     lt_status=$?
10488     case x$lt_status in
10489       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10490       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10491       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10492     esac
10493   else :
10494     # compilation failed
10495     lt_cv_dlopen_self_static=no
10496   fi
10497 fi
10498 rm -fr conftest*
10499
10500
10501 fi
10502 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10503 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10504     fi
10505
10506     CPPFLAGS="$save_CPPFLAGS"
10507     LDFLAGS="$save_LDFLAGS"
10508     LIBS="$save_LIBS"
10509     ;;
10510   esac
10511
10512   case $lt_cv_dlopen_self in
10513   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10514   *) enable_dlopen_self=unknown ;;
10515   esac
10516
10517   case $lt_cv_dlopen_self_static in
10518   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10519   *) enable_dlopen_self_static=unknown ;;
10520   esac
10521 fi
10522
10523
10524 # Report which library types will actually be built
10525 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10526 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10527 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10528 echo "${ECHO_T}$can_build_shared" >&6; }
10529
10530 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10531 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10532 test "$can_build_shared" = "no" && enable_shared=no
10533
10534 # On AIX, shared libraries and static libraries use the same namespace, and
10535 # are all built from PIC.
10536 case $host_os in
10537 aix3*)
10538   test "$enable_shared" = yes && enable_static=no
10539   if test -n "$RANLIB"; then
10540     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10541     postinstall_cmds='$RANLIB $lib'
10542   fi
10543   ;;
10544
10545 aix4* | aix5*)
10546   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10547     test "$enable_shared" = yes && enable_static=no
10548   fi
10549     ;;
10550 esac
10551 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10552 echo "${ECHO_T}$enable_shared" >&6; }
10553
10554 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10555 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10556 # Make sure either enable_shared or enable_static is yes.
10557 test "$enable_shared" = yes || enable_static=yes
10558 { echo "$as_me:$LINENO: result: $enable_static" >&5
10559 echo "${ECHO_T}$enable_static" >&6; }
10560
10561 # The else clause should only fire when bootstrapping the
10562 # libtool distribution, otherwise you forgot to ship ltmain.sh
10563 # with your package, and you will get complaints that there are
10564 # no rules to generate ltmain.sh.
10565 if test -f "$ltmain"; then
10566   # See if we are running on zsh, and set the options which allow our commands through
10567   # without removal of \ escapes.
10568   if test -n "${ZSH_VERSION+set}" ; then
10569     setopt NO_GLOB_SUBST
10570   fi
10571   # Now quote all the things that may contain metacharacters while being
10572   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10573   # variables and quote the copies for generation of the libtool script.
10574   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10575     SED SHELL STRIP \
10576     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10577     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10578     deplibs_check_method reload_flag reload_cmds need_locks \
10579     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10580     lt_cv_sys_global_symbol_to_c_name_address \
10581     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10582     old_postinstall_cmds old_postuninstall_cmds \
10583     compiler \
10584     CC \
10585     LD \
10586     lt_prog_compiler_wl \
10587     lt_prog_compiler_pic \
10588     lt_prog_compiler_static \
10589     lt_prog_compiler_no_builtin_flag \
10590     export_dynamic_flag_spec \
10591     thread_safe_flag_spec \
10592     whole_archive_flag_spec \
10593     enable_shared_with_static_runtimes \
10594     old_archive_cmds \
10595     old_archive_from_new_cmds \
10596     predep_objects \
10597     postdep_objects \
10598     predeps \
10599     postdeps \
10600     compiler_lib_search_path \
10601     archive_cmds \
10602     archive_expsym_cmds \
10603     postinstall_cmds \
10604     postuninstall_cmds \
10605     old_archive_from_expsyms_cmds \
10606     allow_undefined_flag \
10607     no_undefined_flag \
10608     export_symbols_cmds \
10609     hardcode_libdir_flag_spec \
10610     hardcode_libdir_flag_spec_ld \
10611     hardcode_libdir_separator \
10612     hardcode_automatic \
10613     module_cmds \
10614     module_expsym_cmds \
10615     lt_cv_prog_compiler_c_o \
10616     exclude_expsyms \
10617     include_expsyms; do
10618
10619     case $var in
10620     old_archive_cmds | \
10621     old_archive_from_new_cmds | \
10622     archive_cmds | \
10623     archive_expsym_cmds | \
10624     module_cmds | \
10625     module_expsym_cmds | \
10626     old_archive_from_expsyms_cmds | \
10627     export_symbols_cmds | \
10628     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10629     postinstall_cmds | postuninstall_cmds | \
10630     old_postinstall_cmds | old_postuninstall_cmds | \
10631     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10632       # Double-quote double-evaled strings.
10633       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10634       ;;
10635     *)
10636       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10637       ;;
10638     esac
10639   done
10640
10641   case $lt_echo in
10642   *'\$0 --fallback-echo"')
10643     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10644     ;;
10645   esac
10646
10647 cfgfile="${ofile}T"
10648   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10649   $rm -f "$cfgfile"
10650   { echo "$as_me:$LINENO: creating $ofile" >&5
10651 echo "$as_me: creating $ofile" >&6;}
10652
10653   cat <<__EOF__ >> "$cfgfile"
10654 #! $SHELL
10655
10656 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10657 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10658 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10659 #
10660 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10661 # Free Software Foundation, Inc.
10662 #
10663 # This file is part of GNU Libtool:
10664 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10665 #
10666 # This program is free software; you can redistribute it and/or modify
10667 # it under the terms of the GNU General Public License as published by
10668 # the Free Software Foundation; either version 2 of the License, or
10669 # (at your option) any later version.
10670 #
10671 # This program is distributed in the hope that it will be useful, but
10672 # WITHOUT ANY WARRANTY; without even the implied warranty of
10673 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10674 # General Public License for more details.
10675 #
10676 # You should have received a copy of the GNU General Public License
10677 # along with this program; if not, write to the Free Software
10678 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10679 #
10680 # As a special exception to the GNU General Public License, if you
10681 # distribute this file as part of a program that contains a
10682 # configuration script generated by Autoconf, you may include it under
10683 # the same distribution terms that you use for the rest of that program.
10684
10685 # A sed program that does not truncate output.
10686 SED=$lt_SED
10687
10688 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10689 Xsed="$SED -e 1s/^X//"
10690
10691 # The HP-UX ksh and POSIX shell print the target directory to stdout
10692 # if CDPATH is set.
10693 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10694
10695 # The names of the tagged configurations supported by this script.
10696 available_tags=
10697
10698 # ### BEGIN LIBTOOL CONFIG
10699
10700 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10701
10702 # Shell to use when invoking shell scripts.
10703 SHELL=$lt_SHELL
10704
10705 # Whether or not to build shared libraries.
10706 build_libtool_libs=$enable_shared
10707
10708 # Whether or not to build static libraries.
10709 build_old_libs=$enable_static
10710
10711 # Whether or not to add -lc for building shared libraries.
10712 build_libtool_need_lc=$archive_cmds_need_lc
10713
10714 # Whether or not to disallow shared libs when runtime libs are static
10715 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10716
10717 # Whether or not to optimize for fast installation.
10718 fast_install=$enable_fast_install
10719
10720 # The host system.
10721 host_alias=$host_alias
10722 host=$host
10723 host_os=$host_os
10724
10725 # The build system.
10726 build_alias=$build_alias
10727 build=$build
10728 build_os=$build_os
10729
10730 # An echo program that does not interpret backslashes.
10731 echo=$lt_echo
10732
10733 # The archiver.
10734 AR=$lt_AR
10735 AR_FLAGS=$lt_AR_FLAGS
10736
10737 # A C compiler.
10738 LTCC=$lt_LTCC
10739
10740 # LTCC compiler flags.
10741 LTCFLAGS=$lt_LTCFLAGS
10742
10743 # A language-specific compiler.
10744 CC=$lt_compiler
10745
10746 # Is the compiler the GNU C compiler?
10747 with_gcc=$GCC
10748
10749 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
10750 gcc_ver=\`gcc -dumpversion\`
10751
10752 # An ERE matcher.
10753 EGREP=$lt_EGREP
10754
10755 # The linker used to build libraries.
10756 LD=$lt_LD
10757
10758 # Whether we need hard or soft links.
10759 LN_S=$lt_LN_S
10760
10761 # A BSD-compatible nm program.
10762 NM=$lt_NM
10763
10764 # A symbol stripping program
10765 STRIP=$lt_STRIP
10766
10767 # Used to examine libraries when file_magic_cmd begins "file"
10768 MAGIC_CMD=$MAGIC_CMD
10769
10770 # Used on cygwin: DLL creation program.
10771 DLLTOOL="$DLLTOOL"
10772
10773 # Used on cygwin: object dumper.
10774 OBJDUMP="$OBJDUMP"
10775
10776 # Used on cygwin: assembler.
10777 AS="$AS"
10778
10779 # The name of the directory that contains temporary libtool files.
10780 objdir=$objdir
10781
10782 # How to create reloadable object files.
10783 reload_flag=$lt_reload_flag
10784 reload_cmds=$lt_reload_cmds
10785
10786 # How to pass a linker flag through the compiler.
10787 wl=$lt_lt_prog_compiler_wl
10788
10789 # Object file suffix (normally "o").
10790 objext="$ac_objext"
10791
10792 # Old archive suffix (normally "a").
10793 libext="$libext"
10794
10795 # Shared library suffix (normally ".so").
10796 shrext_cmds='$shrext_cmds'
10797
10798 # Executable file suffix (normally "").
10799 exeext="$exeext"
10800
10801 # Additional compiler flags for building library objects.
10802 pic_flag=$lt_lt_prog_compiler_pic
10803 pic_mode=$pic_mode
10804
10805 # What is the maximum length of a command?
10806 max_cmd_len=$lt_cv_sys_max_cmd_len
10807
10808 # Does compiler simultaneously support -c and -o options?
10809 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10810
10811 # Must we lock files when doing compilation?
10812 need_locks=$lt_need_locks
10813
10814 # Do we need the lib prefix for modules?
10815 need_lib_prefix=$need_lib_prefix
10816
10817 # Do we need a version for libraries?
10818 need_version=$need_version
10819
10820 # Whether dlopen is supported.
10821 dlopen_support=$enable_dlopen
10822
10823 # Whether dlopen of programs is supported.
10824 dlopen_self=$enable_dlopen_self
10825
10826 # Whether dlopen of statically linked programs is supported.
10827 dlopen_self_static=$enable_dlopen_self_static
10828
10829 # Compiler flag to prevent dynamic linking.
10830 link_static_flag=$lt_lt_prog_compiler_static
10831
10832 # Compiler flag to turn off builtin functions.
10833 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10834
10835 # Compiler flag to allow reflexive dlopens.
10836 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10837
10838 # Compiler flag to generate shared objects directly from archives.
10839 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10840
10841 # Compiler flag to generate thread-safe objects.
10842 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10843
10844 # Library versioning type.
10845 version_type=$version_type
10846
10847 # Format of library name prefix.
10848 libname_spec=$lt_libname_spec
10849
10850 # List of archive names.  First name is the real one, the rest are links.
10851 # The last name is the one that the linker finds with -lNAME.
10852 library_names_spec=$lt_library_names_spec
10853
10854 # The coded name of the library, if different from the real name.
10855 soname_spec=$lt_soname_spec
10856
10857 # Commands used to build and install an old-style archive.
10858 RANLIB=$lt_RANLIB
10859 old_archive_cmds=$lt_old_archive_cmds
10860 old_postinstall_cmds=$lt_old_postinstall_cmds
10861 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10862
10863 # Create an old-style archive from a shared archive.
10864 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10865
10866 # Create a temporary old-style archive to link instead of a shared archive.
10867 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10868
10869 # Commands used to build and install a shared archive.
10870 archive_cmds=$lt_archive_cmds
10871 archive_expsym_cmds=$lt_archive_expsym_cmds
10872 postinstall_cmds=$lt_postinstall_cmds
10873 postuninstall_cmds=$lt_postuninstall_cmds
10874
10875 # Commands used to build a loadable module (assumed same as above if empty)
10876 module_cmds=$lt_module_cmds
10877 module_expsym_cmds=$lt_module_expsym_cmds
10878
10879 # Commands to strip libraries.
10880 old_striplib=$lt_old_striplib
10881 striplib=$lt_striplib
10882
10883 # Dependencies to place before the objects being linked to create a
10884 # shared library.
10885 predep_objects=\`echo $lt_predep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10886
10887 # Dependencies to place after the objects being linked to create a
10888 # shared library.
10889 postdep_objects=\`echo $lt_postdep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10890
10891 # Dependencies to place before the objects being linked to create a
10892 # shared library.
10893 predeps=$lt_predeps
10894
10895 # Dependencies to place after the objects being linked to create a
10896 # shared library.
10897 postdeps=$lt_postdeps
10898
10899 # The library search path used internally by the compiler when linking
10900 # a shared library.
10901 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10902
10903 # Method to check whether dependent libraries are shared objects.
10904 deplibs_check_method=$lt_deplibs_check_method
10905
10906 # Command to use when deplibs_check_method == file_magic.
10907 file_magic_cmd=$lt_file_magic_cmd
10908
10909 # Flag that allows shared libraries with undefined symbols to be built.
10910 allow_undefined_flag=$lt_allow_undefined_flag
10911
10912 # Flag that forces no undefined symbols.
10913 no_undefined_flag=$lt_no_undefined_flag
10914
10915 # Commands used to finish a libtool library installation in a directory.
10916 finish_cmds=$lt_finish_cmds
10917
10918 # Same as above, but a single script fragment to be evaled but not shown.
10919 finish_eval=$lt_finish_eval
10920
10921 # Take the output of nm and produce a listing of raw symbols and C names.
10922 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10923
10924 # Transform the output of nm in a proper C declaration
10925 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10926
10927 # Transform the output of nm in a C name address pair
10928 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10929
10930 # This is the shared library runtime path variable.
10931 runpath_var=$runpath_var
10932
10933 # This is the shared library path variable.
10934 shlibpath_var=$shlibpath_var
10935
10936 # Is shlibpath searched before the hard-coded library search path?
10937 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10938
10939 # How to hardcode a shared library path into an executable.
10940 hardcode_action=$hardcode_action
10941
10942 # Whether we should hardcode library paths into libraries.
10943 hardcode_into_libs=$hardcode_into_libs
10944
10945 # Flag to hardcode \$libdir into a binary during linking.
10946 # This must work even if \$libdir does not exist.
10947 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10948
10949 # If ld is used when linking, flag to hardcode \$libdir into
10950 # a binary during linking. This must work even if \$libdir does
10951 # not exist.
10952 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10953
10954 # Whether we need a single -rpath flag with a separated argument.
10955 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10956
10957 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10958 # resulting binary.
10959 hardcode_direct=$hardcode_direct
10960
10961 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10962 # resulting binary.
10963 hardcode_minus_L=$hardcode_minus_L
10964
10965 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10966 # the resulting binary.
10967 hardcode_shlibpath_var=$hardcode_shlibpath_var
10968
10969 # Set to yes if building a shared library automatically hardcodes DIR into the library
10970 # and all subsequent libraries and executables linked against it.
10971 hardcode_automatic=$hardcode_automatic
10972
10973 # Variables whose values should be saved in libtool wrapper scripts and
10974 # restored at relink time.
10975 variables_saved_for_relink="$variables_saved_for_relink"
10976
10977 # Whether libtool must link a program against all its dependency libraries.
10978 link_all_deplibs=$link_all_deplibs
10979
10980 # Compile-time system search path for libraries
10981 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10982
10983 # Run-time system search path for libraries
10984 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10985
10986 # Fix the shell variable \$srcfile for the compiler.
10987 fix_srcfile_path="$fix_srcfile_path"
10988
10989 # Set to yes if exported symbols are required.
10990 always_export_symbols=$always_export_symbols
10991
10992 # The commands to list exported symbols.
10993 export_symbols_cmds=$lt_export_symbols_cmds
10994
10995 # The commands to extract the exported symbol list from a shared archive.
10996 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10997
10998 # Symbols that should not be listed in the preloaded symbols.
10999 exclude_expsyms=$lt_exclude_expsyms
11000
11001 # Symbols that must always be exported.
11002 include_expsyms=$lt_include_expsyms
11003
11004 # ### END LIBTOOL CONFIG
11005
11006 __EOF__
11007
11008
11009   case $host_os in
11010   aix3*)
11011     cat <<\EOF >> "$cfgfile"
11012
11013 # AIX sometimes has problems with the GCC collect2 program.  For some
11014 # reason, if we set the COLLECT_NAMES environment variable, the problems
11015 # vanish in a puff of smoke.
11016 if test "X${COLLECT_NAMES+set}" != Xset; then
11017   COLLECT_NAMES=
11018   export COLLECT_NAMES
11019 fi
11020 EOF
11021     ;;
11022   esac
11023
11024   # We use sed instead of cat because bash on DJGPP gets confused if
11025   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11026   # text mode, it properly converts lines to CR/LF.  This bash problem
11027   # is reportedly fixed, but why not run on old versions too?
11028   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11029
11030   mv -f "$cfgfile" "$ofile" || \
11031     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11032   chmod +x "$ofile"
11033
11034 else
11035   # If there is no Makefile yet, we rely on a make rule to execute
11036   # `config.status --recheck' to rerun these tests and create the
11037   # libtool script then.
11038   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11039   if test -f "$ltmain_in"; then
11040     test -f Makefile && make "$ltmain"
11041   fi
11042 fi
11043
11044
11045 ac_ext=c
11046 ac_cpp='$CPP $CPPFLAGS'
11047 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11048 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11049 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11050
11051 CC="$lt_save_CC"
11052
11053
11054 # Check whether --with-tags was given.
11055 if test "${with_tags+set}" = set; then
11056   withval=$with_tags; tagnames="$withval"
11057 fi
11058
11059
11060 if test -f "$ltmain" && test -n "$tagnames"; then
11061   if test ! -f "${ofile}"; then
11062     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11063 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11064   fi
11065
11066   if test -z "$LTCC"; then
11067     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11068     if test -z "$LTCC"; then
11069       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11070 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11071     else
11072       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11073 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11074     fi
11075   fi
11076   if test -z "$LTCFLAGS"; then
11077     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11078   fi
11079
11080   # Extract list of available tagged configurations in $ofile.
11081   # Note that this assumes the entire list is on one line.
11082   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11083
11084   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11085   for tagname in $tagnames; do
11086     IFS="$lt_save_ifs"
11087     # Check whether tagname contains only valid characters
11088     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11089     "") ;;
11090     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11091 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11092    { (exit 1); exit 1; }; }
11093         ;;
11094     esac
11095
11096     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11097     then
11098       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11099 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11100    { (exit 1); exit 1; }; }
11101     fi
11102
11103     # Update the list of available tags.
11104     if test -n "$tagname"; then
11105       echo appending configuration tag \"$tagname\" to $ofile
11106
11107       case $tagname in
11108       CXX)
11109         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11110             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11111             (test "X$CXX" != "Xg++"))) ; then
11112           ac_ext=cpp
11113 ac_cpp='$CXXCPP $CPPFLAGS'
11114 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11115 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11116 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11117
11118
11119
11120
11121 archive_cmds_need_lc_CXX=no
11122 allow_undefined_flag_CXX=
11123 always_export_symbols_CXX=no
11124 archive_expsym_cmds_CXX=
11125 export_dynamic_flag_spec_CXX=
11126 hardcode_direct_CXX=no
11127 hardcode_libdir_flag_spec_CXX=
11128 hardcode_libdir_flag_spec_ld_CXX=
11129 hardcode_libdir_separator_CXX=
11130 hardcode_minus_L_CXX=no
11131 hardcode_shlibpath_var_CXX=unsupported
11132 hardcode_automatic_CXX=no
11133 module_cmds_CXX=
11134 module_expsym_cmds_CXX=
11135 link_all_deplibs_CXX=unknown
11136 old_archive_cmds_CXX=$old_archive_cmds
11137 no_undefined_flag_CXX=
11138 whole_archive_flag_spec_CXX=
11139 enable_shared_with_static_runtimes_CXX=no
11140
11141 # Dependencies to place before and after the object being linked:
11142 predep_objects_CXX=
11143 postdep_objects_CXX=
11144 predeps_CXX=
11145 postdeps_CXX=
11146 compiler_lib_search_path_CXX=
11147
11148 # Source file extension for C++ test sources.
11149 ac_ext=cpp
11150
11151 # Object file extension for compiled C++ test sources.
11152 objext=o
11153 objext_CXX=$objext
11154
11155 # Code to be used in simple compile tests
11156 lt_simple_compile_test_code="int some_variable = 0;\n"
11157
11158 # Code to be used in simple link tests
11159 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11160
11161 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11162
11163 # If no C compiler was specified, use CC.
11164 LTCC=${LTCC-"$CC"}
11165
11166 # If no C compiler flags were specified, use CFLAGS.
11167 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11168
11169 # Allow CC to be a program name with arguments.
11170 compiler=$CC
11171
11172
11173 # save warnings/boilerplate of simple test code
11174 ac_outfile=conftest.$ac_objext
11175 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11176 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11177 _lt_compiler_boilerplate=`cat conftest.err`
11178 $rm conftest*
11179
11180 ac_outfile=conftest.$ac_objext
11181 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11182 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11183 _lt_linker_boilerplate=`cat conftest.err`
11184 $rm conftest*
11185
11186
11187 # Allow CC to be a program name with arguments.
11188 lt_save_CC=$CC
11189 lt_save_LD=$LD
11190 lt_save_GCC=$GCC
11191 GCC=$GXX
11192 lt_save_with_gnu_ld=$with_gnu_ld
11193 lt_save_path_LD=$lt_cv_path_LD
11194 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11195   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11196 else
11197   $as_unset lt_cv_prog_gnu_ld
11198 fi
11199 if test -n "${lt_cv_path_LDCXX+set}"; then
11200   lt_cv_path_LD=$lt_cv_path_LDCXX
11201 else
11202   $as_unset lt_cv_path_LD
11203 fi
11204 test -z "${LDCXX+set}" || LD=$LDCXX
11205 CC=${CXX-"c++"}
11206 compiler=$CC
11207 compiler_CXX=$CC
11208 for cc_temp in $compiler""; do
11209   case $cc_temp in
11210     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11211     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11212     \-*) ;;
11213     *) break;;
11214   esac
11215 done
11216 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11217
11218
11219 # We don't want -fno-exception wen compiling C++ code, so set the
11220 # no_builtin_flag separately
11221 if test "$GXX" = yes; then
11222   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11223 else
11224   lt_prog_compiler_no_builtin_flag_CXX=
11225 fi
11226
11227 if test "$GXX" = yes; then
11228   # Set up default GNU C++ configuration
11229
11230
11231 # Check whether --with-gnu-ld was given.
11232 if test "${with_gnu_ld+set}" = set; then
11233   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11234 else
11235   with_gnu_ld=no
11236 fi
11237
11238 ac_prog=ld
11239 if test "$GCC" = yes; then
11240   # Check if gcc -print-prog-name=ld gives a path.
11241   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11242 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11243   case $host in
11244   *-*-mingw*)
11245     # gcc leaves a trailing carriage return which upsets mingw
11246     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11247   *)
11248     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11249   esac
11250   case $ac_prog in
11251     # Accept absolute paths.
11252     [\\/]* | ?:[\\/]*)
11253       re_direlt='/[^/][^/]*/\.\./'
11254       # Canonicalize the pathname of ld
11255       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11256       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11257         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11258       done
11259       test -z "$LD" && LD="$ac_prog"
11260       ;;
11261   "")
11262     # If it fails, then pretend we aren't using GCC.
11263     ac_prog=ld
11264     ;;
11265   *)
11266     # If it is relative, then search for the first ld in PATH.
11267     with_gnu_ld=unknown
11268     ;;
11269   esac
11270 elif test "$with_gnu_ld" = yes; then
11271   { echo "$as_me:$LINENO: checking for GNU ld" >&5
11272 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11273 else
11274   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11275 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11276 fi
11277 if test "${lt_cv_path_LD+set}" = set; then
11278   echo $ECHO_N "(cached) $ECHO_C" >&6
11279 else
11280   if test -z "$LD"; then
11281   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11282   for ac_dir in $PATH; do
11283     IFS="$lt_save_ifs"
11284     test -z "$ac_dir" && ac_dir=.
11285     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11286       lt_cv_path_LD="$ac_dir/$ac_prog"
11287       # Check to see if the program is GNU ld.  I'd rather use --version,
11288       # but apparently some variants of GNU ld only accept -v.
11289       # Break only if it was the GNU/non-GNU ld that we prefer.
11290       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11291       *GNU* | *'with BFD'*)
11292         test "$with_gnu_ld" != no && break
11293         ;;
11294       *)
11295         test "$with_gnu_ld" != yes && break
11296         ;;
11297       esac
11298     fi
11299   done
11300   IFS="$lt_save_ifs"
11301 else
11302   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11303 fi
11304 fi
11305
11306 LD="$lt_cv_path_LD"
11307 if test -n "$LD"; then
11308   { echo "$as_me:$LINENO: result: $LD" >&5
11309 echo "${ECHO_T}$LD" >&6; }
11310 else
11311   { echo "$as_me:$LINENO: result: no" >&5
11312 echo "${ECHO_T}no" >&6; }
11313 fi
11314 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11315 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11316    { (exit 1); exit 1; }; }
11317 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11318 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11319 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11320   echo $ECHO_N "(cached) $ECHO_C" >&6
11321 else
11322   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11323 case `$LD -v 2>&1 </dev/null` in
11324 *GNU* | *'with BFD'*)
11325   lt_cv_prog_gnu_ld=yes
11326   ;;
11327 *)
11328   lt_cv_prog_gnu_ld=no
11329   ;;
11330 esac
11331 fi
11332 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11333 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11334 with_gnu_ld=$lt_cv_prog_gnu_ld
11335
11336
11337
11338   # Check if GNU C++ uses GNU ld as the underlying linker, since the
11339   # archiving commands below assume that GNU ld is being used.
11340   if test "$with_gnu_ld" = yes; then
11341     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11342     archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11343
11344     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11345     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11346
11347     # If archive_cmds runs LD, not CC, wlarc should be empty
11348     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11349     #     investigate it a little bit more. (MM)
11350     wlarc='${wl}'
11351
11352     # ancient GNU ld didn't support --whole-archive et. al.
11353     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11354         grep 'no-whole-archive' > /dev/null; then
11355       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11356     else
11357       whole_archive_flag_spec_CXX=
11358     fi
11359   else
11360     with_gnu_ld=no
11361     wlarc=
11362
11363     # A generic and very simple default shared library creation
11364     # command for GNU C++ for the case where it uses the native
11365     # linker, instead of GNU ld.  If possible, this setting should
11366     # overridden to take advantage of the native linker features on
11367     # the platform it is being used on.
11368     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11369   fi
11370
11371   # Commands to make compiler produce verbose output that lists
11372   # what "hidden" libraries, object files and flags are used when
11373   # linking a shared library.
11374   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11375
11376 else
11377   GXX=no
11378   with_gnu_ld=no
11379   wlarc=
11380 fi
11381
11382 # PORTME: fill in a description of your system's C++ link characteristics
11383 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11384 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11385 ld_shlibs_CXX=yes
11386 case $host_os in
11387   aix3*)
11388     # FIXME: insert proper C++ library support
11389     ld_shlibs_CXX=no
11390     ;;
11391   aix4* | aix5*)
11392     if test "$host_cpu" = ia64; then
11393       # On IA64, the linker does run time linking by default, so we don't
11394       # have to do anything special.
11395       aix_use_runtimelinking=no
11396       exp_sym_flag='-Bexport'
11397       no_entry_flag=""
11398     else
11399       aix_use_runtimelinking=no
11400
11401       # Test if we are trying to use run time linking or normal
11402       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11403       # need to do runtime linking.
11404       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11405         for ld_flag in $LDFLAGS; do
11406           case $ld_flag in
11407           *-brtl*)
11408             aix_use_runtimelinking=yes
11409             break
11410             ;;
11411           esac
11412         done
11413         ;;
11414       esac
11415
11416       exp_sym_flag='-bexport'
11417       no_entry_flag='-bnoentry'
11418     fi
11419
11420     # When large executables or shared objects are built, AIX ld can
11421     # have problems creating the table of contents.  If linking a library
11422     # or program results in "error TOC overflow" add -mminimal-toc to
11423     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11424     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11425
11426     archive_cmds_CXX=''
11427     hardcode_direct_CXX=yes
11428     hardcode_libdir_separator_CXX=':'
11429     link_all_deplibs_CXX=yes
11430
11431     if test "$GXX" = yes; then
11432       case $host_os in aix4.[012]|aix4.[012].*)
11433       # We only want to do this on AIX 4.2 and lower, the check
11434       # below for broken collect2 doesn't work under 4.3+
11435         collect2name=`${CC} -print-prog-name=collect2`
11436         if test -f "$collect2name" && \
11437            strings "$collect2name" | grep resolve_lib_name >/dev/null
11438         then
11439           # We have reworked collect2
11440           hardcode_direct_CXX=yes
11441         else
11442           # We have old collect2
11443           hardcode_direct_CXX=unsupported
11444           # It fails to find uninstalled libraries when the uninstalled
11445           # path is not listed in the libpath.  Setting hardcode_minus_L
11446           # to unsupported forces relinking
11447           hardcode_minus_L_CXX=yes
11448           hardcode_libdir_flag_spec_CXX='-L$libdir'
11449           hardcode_libdir_separator_CXX=
11450         fi
11451         ;;
11452       esac
11453       shared_flag='-shared'
11454       if test "$aix_use_runtimelinking" = yes; then
11455         shared_flag="$shared_flag "'${wl}-G'
11456       fi
11457     else
11458       # not using gcc
11459       if test "$host_cpu" = ia64; then
11460         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11461         # chokes on -Wl,-G. The following line is correct:
11462         shared_flag='-G'
11463       else
11464         if test "$aix_use_runtimelinking" = yes; then
11465           shared_flag='${wl}-G'
11466         else
11467           shared_flag='${wl}-bM:SRE'
11468         fi
11469       fi
11470     fi
11471
11472     # It seems that -bexpall does not export symbols beginning with
11473     # underscore (_), so it is better to generate a list of symbols to export.
11474     always_export_symbols_CXX=yes
11475     if test "$aix_use_runtimelinking" = yes; then
11476       # Warning - without using the other runtime loading flags (-brtl),
11477       # -berok will link without error, but may produce a broken library.
11478       allow_undefined_flag_CXX='-berok'
11479       # Determine the default libpath from the value encoded in an empty executable.
11480       cat >conftest.$ac_ext <<_ACEOF
11481 /* confdefs.h.  */
11482 _ACEOF
11483 cat confdefs.h >>conftest.$ac_ext
11484 cat >>conftest.$ac_ext <<_ACEOF
11485 /* end confdefs.h.  */
11486
11487 int
11488 main ()
11489 {
11490
11491   ;
11492   return 0;
11493 }
11494 _ACEOF
11495 rm -f conftest.$ac_objext conftest$ac_exeext
11496 if { (ac_try="$ac_link"
11497 case "(($ac_try" in
11498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11499   *) ac_try_echo=$ac_try;;
11500 esac
11501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11502   (eval "$ac_link") 2>conftest.er1
11503   ac_status=$?
11504   grep -v '^ *+' conftest.er1 >conftest.err
11505   rm -f conftest.er1
11506   cat conftest.err >&5
11507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11508   (exit $ac_status); } && {
11509          test -z "$ac_cxx_werror_flag" ||
11510          test ! -s conftest.err
11511        } && test -s conftest$ac_exeext &&
11512        $as_test_x conftest$ac_exeext; then
11513
11514 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11515 }'`
11516 # Check for a 64-bit object if we didn't find anything.
11517 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11518 }'`; fi
11519 else
11520   echo "$as_me: failed program was:" >&5
11521 sed 's/^/| /' conftest.$ac_ext >&5
11522
11523
11524 fi
11525
11526 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11527       conftest$ac_exeext conftest.$ac_ext
11528 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11529
11530       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11531
11532       archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11533      else
11534       if test "$host_cpu" = ia64; then
11535         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11536         allow_undefined_flag_CXX="-z nodefs"
11537         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
11538       else
11539         # Determine the default libpath from the value encoded in an empty executable.
11540         cat >conftest.$ac_ext <<_ACEOF
11541 /* confdefs.h.  */
11542 _ACEOF
11543 cat confdefs.h >>conftest.$ac_ext
11544 cat >>conftest.$ac_ext <<_ACEOF
11545 /* end confdefs.h.  */
11546
11547 int
11548 main ()
11549 {
11550
11551   ;
11552   return 0;
11553 }
11554 _ACEOF
11555 rm -f conftest.$ac_objext conftest$ac_exeext
11556 if { (ac_try="$ac_link"
11557 case "(($ac_try" in
11558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11559   *) ac_try_echo=$ac_try;;
11560 esac
11561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11562   (eval "$ac_link") 2>conftest.er1
11563   ac_status=$?
11564   grep -v '^ *+' conftest.er1 >conftest.err
11565   rm -f conftest.er1
11566   cat conftest.err >&5
11567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11568   (exit $ac_status); } && {
11569          test -z "$ac_cxx_werror_flag" ||
11570          test ! -s conftest.err
11571        } && test -s conftest$ac_exeext &&
11572        $as_test_x conftest$ac_exeext; then
11573
11574 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11575 }'`
11576 # Check for a 64-bit object if we didn't find anything.
11577 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11578 }'`; fi
11579 else
11580   echo "$as_me: failed program was:" >&5
11581 sed 's/^/| /' conftest.$ac_ext >&5
11582
11583
11584 fi
11585
11586 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11587       conftest$ac_exeext conftest.$ac_ext
11588 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11589
11590         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11591         # Warning - without using the other run time loading flags,
11592         # -berok will link without error, but may produce a broken library.
11593         no_undefined_flag_CXX=' ${wl}-bernotok'
11594         allow_undefined_flag_CXX=' ${wl}-berok'
11595         # Exported symbols can be pulled into shared objects from archives
11596         whole_archive_flag_spec_CXX='$convenience'
11597         archive_cmds_need_lc_CXX=yes
11598         # This is similar to how AIX traditionally builds its shared libraries.
11599         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11600       fi
11601     fi
11602     ;;
11603
11604   beos*)
11605     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11606       allow_undefined_flag_CXX=unsupported
11607       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11608       # support --undefined.  This deserves some investigation.  FIXME
11609       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11610     else
11611       ld_shlibs_CXX=no
11612     fi
11613     ;;
11614
11615   chorus*)
11616     case $cc_basename in
11617       *)
11618         # FIXME: insert proper C++ library support
11619         ld_shlibs_CXX=no
11620         ;;
11621     esac
11622     ;;
11623
11624   cygwin* | mingw* | pw32*)
11625     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11626     # as there is no search path for DLLs.
11627     hardcode_libdir_flag_spec_CXX='-L$libdir'
11628     allow_undefined_flag_CXX=unsupported
11629     always_export_symbols_CXX=no
11630     enable_shared_with_static_runtimes_CXX=yes
11631
11632     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11633       archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11634       # If the export-symbols file already is a .def file (1st line
11635       # is EXPORTS), use it as is; otherwise, prepend...
11636       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11637         cp $export_symbols $output_objdir/$soname.def;
11638       else
11639         echo EXPORTS > $output_objdir/$soname.def;
11640         cat $export_symbols >> $output_objdir/$soname.def;
11641       fi~
11642       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11643     else
11644       ld_shlibs_CXX=no
11645     fi
11646   ;;
11647       darwin* | rhapsody*)
11648         case $host_os in
11649         rhapsody* | darwin1.[012])
11650          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11651          ;;
11652        *) # Darwin 1.3 on
11653          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11654            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11655          else
11656            case ${MACOSX_DEPLOYMENT_TARGET} in
11657              10.[012])
11658                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11659                ;;
11660              10.*)
11661                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11662                ;;
11663            esac
11664          fi
11665          ;;
11666         esac
11667       archive_cmds_need_lc_CXX=no
11668       hardcode_direct_CXX=no
11669       hardcode_automatic_CXX=yes
11670       hardcode_shlibpath_var_CXX=unsupported
11671       whole_archive_flag_spec_CXX=''
11672       link_all_deplibs_CXX=yes
11673
11674     if test "$GXX" = yes ; then
11675       lt_int_apple_cc_single_mod=no
11676       output_verbose_link_cmd='echo'
11677       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11678        lt_int_apple_cc_single_mod=yes
11679       fi
11680       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11681        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11682       else
11683           archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11684         fi
11685         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11686         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11687           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11688             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11689           else
11690             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11691           fi
11692             module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11693       else
11694       case $cc_basename in
11695         xlc*)
11696          output_verbose_link_cmd='echo'
11697           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11698           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11699           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11700           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11701           module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11702           ;;
11703        *)
11704          ld_shlibs_CXX=no
11705           ;;
11706       esac
11707       fi
11708         ;;
11709
11710   dgux*)
11711     case $cc_basename in
11712       ec++*)
11713         # FIXME: insert proper C++ library support
11714         ld_shlibs_CXX=no
11715         ;;
11716       ghcx*)
11717         # Green Hills C++ Compiler
11718         # FIXME: insert proper C++ library support
11719         ld_shlibs_CXX=no
11720         ;;
11721       *)
11722         # FIXME: insert proper C++ library support
11723         ld_shlibs_CXX=no
11724         ;;
11725     esac
11726     ;;
11727   freebsd[12]*)
11728     # C++ shared libraries reported to be fairly broken before switch to ELF
11729     ld_shlibs_CXX=no
11730     ;;
11731   freebsd-elf*)
11732     archive_cmds_need_lc_CXX=no
11733     ;;
11734   freebsd* | kfreebsd*-gnu | dragonfly*)
11735     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11736     # conventions
11737     ld_shlibs_CXX=yes
11738     ;;
11739   gnu*)
11740     ;;
11741   hpux9*)
11742     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11743     hardcode_libdir_separator_CXX=:
11744     export_dynamic_flag_spec_CXX='${wl}-E'
11745     hardcode_direct_CXX=yes
11746     hardcode_minus_L_CXX=yes # Not in the search PATH,
11747                                 # but as the default
11748                                 # location of the library.
11749
11750     case $cc_basename in
11751     CC*)
11752       # FIXME: insert proper C++ library support
11753       ld_shlibs_CXX=no
11754       ;;
11755     aCC*)
11756       archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11757       # Commands to make compiler produce verbose output that lists
11758       # what "hidden" libraries, object files and flags are used when
11759       # linking a shared library.
11760       #
11761       # There doesn't appear to be a way to prevent this compiler from
11762       # explicitly linking system object files so we need to strip them
11763       # from the output so that they don't get included in the library
11764       # dependencies.
11765       output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11766       ;;
11767     *)
11768       if test "$GXX" = yes; then
11769         archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11770       else
11771         # FIXME: insert proper C++ library support
11772         ld_shlibs_CXX=no
11773       fi
11774       ;;
11775     esac
11776     ;;
11777   hpux10*|hpux11*)
11778     if test $with_gnu_ld = no; then
11779       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11780       hardcode_libdir_separator_CXX=:
11781
11782       case $host_cpu in
11783       hppa*64*|ia64*)
11784         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11785         ;;
11786       *)
11787         export_dynamic_flag_spec_CXX='${wl}-E'
11788         ;;
11789       esac
11790     fi
11791     case $host_cpu in
11792     hppa*64*|ia64*)
11793       hardcode_direct_CXX=no
11794       hardcode_shlibpath_var_CXX=no
11795       ;;
11796     *)
11797       hardcode_direct_CXX=yes
11798       hardcode_minus_L_CXX=yes # Not in the search PATH,
11799                                               # but as the default
11800                                               # location of the library.
11801       ;;
11802     esac
11803
11804     case $cc_basename in
11805       CC*)
11806         # FIXME: insert proper C++ library support
11807         ld_shlibs_CXX=no
11808         ;;
11809       aCC*)
11810         case $host_cpu in
11811         hppa*64*)
11812           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11813           ;;
11814         ia64*)
11815           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11816           ;;
11817         *)
11818           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11819           ;;
11820         esac
11821         # Commands to make compiler produce verbose output that lists
11822         # what "hidden" libraries, object files and flags are used when
11823         # linking a shared library.
11824         #
11825         # There doesn't appear to be a way to prevent this compiler from
11826         # explicitly linking system object files so we need to strip them
11827         # from the output so that they don't get included in the library
11828         # dependencies.
11829         output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11830         ;;
11831       *)
11832         if test "$GXX" = yes; then
11833           if test $with_gnu_ld = no; then
11834             case $host_cpu in
11835             hppa*64*)
11836               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11837               ;;
11838             ia64*)
11839               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11840               ;;
11841             *)
11842               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11843               ;;
11844             esac
11845           fi
11846         else
11847           # FIXME: insert proper C++ library support
11848           ld_shlibs_CXX=no
11849         fi
11850         ;;
11851     esac
11852     ;;
11853   interix3*)
11854     hardcode_direct_CXX=no
11855     hardcode_shlibpath_var_CXX=no
11856     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11857     export_dynamic_flag_spec_CXX='${wl}-E'
11858     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11859     # Instead, shared libraries are loaded at an image base (0x10000000 by
11860     # default) and relocated if they conflict, which is a slow very memory
11861     # consuming and fragmenting process.  To avoid this, we pick a random,
11862     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11863     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11864     archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11865     archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11866     ;;
11867   irix5* | irix6*)
11868     case $cc_basename in
11869       CC*)
11870         # SGI C++
11871         archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11872
11873         # Archives containing C++ object files must be created using
11874         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11875         # necessary to make sure instantiated templates are included
11876         # in the archive.
11877         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11878         ;;
11879       *)
11880         if test "$GXX" = yes; then
11881           if test "$with_gnu_ld" = no; then
11882             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11883           else
11884             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
11885           fi
11886         fi
11887         link_all_deplibs_CXX=yes
11888         ;;
11889     esac
11890     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11891     hardcode_libdir_separator_CXX=:
11892     ;;
11893   linux*)
11894     case $cc_basename in
11895       KCC*)
11896         # Kuck and Associates, Inc. (KAI) C++ Compiler
11897
11898         # KCC will only create a shared library if the output file
11899         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11900         # to its proper name (with version) after linking.
11901         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11902         archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
11903         # Commands to make compiler produce verbose output that lists
11904         # what "hidden" libraries, object files and flags are used when
11905         # linking a shared library.
11906         #
11907         # There doesn't appear to be a way to prevent this compiler from
11908         # explicitly linking system object files so we need to strip them
11909         # from the output so that they don't get included in the library
11910         # dependencies.
11911         output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11912
11913         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11914         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11915
11916         # Archives containing C++ object files must be created using
11917         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11918         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11919         ;;
11920       icpc*)
11921         # Intel C++
11922         with_gnu_ld=yes
11923         # version 8.0 and above of icpc choke on multiply defined symbols
11924         # if we add $predep_objects and $postdep_objects, however 7.1 and
11925         # earlier do not add the objects themselves.
11926         case `$CC -V 2>&1` in
11927         *"Version 7."*)
11928           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11929           archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11930           ;;
11931         *)  # Version 8.0 or newer
11932           tmp_idyn=
11933           case $host_cpu in
11934             ia64*) tmp_idyn=' -i_dynamic';;
11935           esac
11936           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11937           archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11938           ;;
11939         esac
11940         archive_cmds_need_lc_CXX=no
11941         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11942         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11943         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11944         ;;
11945       pgCC*)
11946         # Portland Group C++ compiler
11947         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11948         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
11949
11950         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11951         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11952         whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11953         ;;
11954       cxx*)
11955         # Compaq C++
11956         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11957         archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
11958
11959         runpath_var=LD_RUN_PATH
11960         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11961         hardcode_libdir_separator_CXX=:
11962
11963         # Commands to make compiler produce verbose output that lists
11964         # what "hidden" libraries, object files and flags are used when
11965         # linking a shared library.
11966         #
11967         # There doesn't appear to be a way to prevent this compiler from
11968         # explicitly linking system object files so we need to strip them
11969         # from the output so that they don't get included in the library
11970         # dependencies.
11971         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11972         ;;
11973     esac
11974     ;;
11975   lynxos*)
11976     # FIXME: insert proper C++ library support
11977     ld_shlibs_CXX=no
11978     ;;
11979   m88k*)
11980     # FIXME: insert proper C++ library support
11981     ld_shlibs_CXX=no
11982     ;;
11983   mvs*)
11984     case $cc_basename in
11985       cxx*)
11986         # FIXME: insert proper C++ library support
11987         ld_shlibs_CXX=no
11988         ;;
11989       *)
11990         # FIXME: insert proper C++ library support
11991         ld_shlibs_CXX=no
11992         ;;
11993     esac
11994     ;;
11995   netbsd*)
11996     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11997       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11998       wlarc=
11999       hardcode_libdir_flag_spec_CXX='-R$libdir'
12000       hardcode_direct_CXX=yes
12001       hardcode_shlibpath_var_CXX=no
12002     fi
12003     # Workaround some broken pre-1.5 toolchains
12004     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12005     ;;
12006   openbsd2*)
12007     # C++ shared libraries are fairly broken
12008     ld_shlibs_CXX=no
12009     ;;
12010   openbsd*)
12011     hardcode_direct_CXX=yes
12012     hardcode_shlibpath_var_CXX=no
12013     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12014     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12015     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12016       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12017       export_dynamic_flag_spec_CXX='${wl}-E'
12018       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12019     fi
12020     output_verbose_link_cmd='echo'
12021     ;;
12022   osf3*)
12023     case $cc_basename in
12024       KCC*)
12025         # Kuck and Associates, Inc. (KAI) C++ Compiler
12026
12027         # KCC will only create a shared library if the output file
12028         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12029         # to its proper name (with version) after linking.
12030         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12031
12032         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12033         hardcode_libdir_separator_CXX=:
12034
12035         # Archives containing C++ object files must be created using
12036         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12037         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12038
12039         ;;
12040       RCC*)
12041         # Rational C++ 2.4.1
12042         # FIXME: insert proper C++ library support
12043         ld_shlibs_CXX=no
12044         ;;
12045       cxx*)
12046         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12047         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12048
12049         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12050         hardcode_libdir_separator_CXX=:
12051
12052         # Commands to make compiler produce verbose output that lists
12053         # what "hidden" libraries, object files and flags are used when
12054         # linking a shared library.
12055         #
12056         # There doesn't appear to be a way to prevent this compiler from
12057         # explicitly linking system object files so we need to strip them
12058         # from the output so that they don't get included in the library
12059         # dependencies.
12060         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12061         ;;
12062       *)
12063         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12064           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12065           archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12066
12067           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12068           hardcode_libdir_separator_CXX=:
12069
12070           # Commands to make compiler produce verbose output that lists
12071           # what "hidden" libraries, object files and flags are used when
12072           # linking a shared library.
12073           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12074
12075         else
12076           # FIXME: insert proper C++ library support
12077           ld_shlibs_CXX=no
12078         fi
12079         ;;
12080     esac
12081     ;;
12082   osf4* | osf5*)
12083     case $cc_basename in
12084       KCC*)
12085         # Kuck and Associates, Inc. (KAI) C++ Compiler
12086
12087         # KCC will only create a shared library if the output file
12088         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12089         # to its proper name (with version) after linking.
12090         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12091
12092         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12093         hardcode_libdir_separator_CXX=:
12094
12095         # Archives containing C++ object files must be created using
12096         # the KAI C++ compiler.
12097         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12098         ;;
12099       RCC*)
12100         # Rational C++ 2.4.1
12101         # FIXME: insert proper C++ library support
12102         ld_shlibs_CXX=no
12103         ;;
12104       cxx*)
12105         allow_undefined_flag_CXX=' -expect_unresolved \*'
12106         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12107         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12108           echo "-hidden">> $lib.exp~
12109           $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
12110           $rm $lib.exp'
12111
12112         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12113         hardcode_libdir_separator_CXX=:
12114
12115         # Commands to make compiler produce verbose output that lists
12116         # what "hidden" libraries, object files and flags are used when
12117         # linking a shared library.
12118         #
12119         # There doesn't appear to be a way to prevent this compiler from
12120         # explicitly linking system object files so we need to strip them
12121         # from the output so that they don't get included in the library
12122         # dependencies.
12123         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12124         ;;
12125       *)
12126         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12127           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12128          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12129
12130           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12131           hardcode_libdir_separator_CXX=:
12132
12133           # Commands to make compiler produce verbose output that lists
12134           # what "hidden" libraries, object files and flags are used when
12135           # linking a shared library.
12136           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12137
12138         else
12139           # FIXME: insert proper C++ library support
12140           ld_shlibs_CXX=no
12141         fi
12142         ;;
12143     esac
12144     ;;
12145   psos*)
12146     # FIXME: insert proper C++ library support
12147     ld_shlibs_CXX=no
12148     ;;
12149   sunos4*)
12150     case $cc_basename in
12151       CC*)
12152         # Sun C++ 4.x
12153         # FIXME: insert proper C++ library support
12154         ld_shlibs_CXX=no
12155         ;;
12156       lcc*)
12157         # Lucid
12158         # FIXME: insert proper C++ library support
12159         ld_shlibs_CXX=no
12160         ;;
12161       *)
12162         # FIXME: insert proper C++ library support
12163         ld_shlibs_CXX=no
12164         ;;
12165     esac
12166     ;;
12167   solaris*)
12168     case $cc_basename in
12169       CC*)
12170         # Sun C++ 4.2, 5.x and Centerline C++
12171         archive_cmds_need_lc_CXX=yes
12172         no_undefined_flag_CXX=' -zdefs'
12173         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12174         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12175         $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12176
12177         hardcode_libdir_flag_spec_CXX='-R$libdir'
12178         hardcode_shlibpath_var_CXX=no
12179         case $host_os in
12180           solaris2.[0-5] | solaris2.[0-5].*) ;;
12181           *)
12182             # The C++ compiler is used as linker so we must use $wl
12183             # flag to pass the commands to the underlying system
12184             # linker. We must also pass each convience library through
12185             # to the system linker between allextract/defaultextract.
12186             # The C++ compiler will combine linker options so we
12187             # cannot just pass the convience library names through
12188             # without $wl.
12189             # Supported since Solaris 2.6 (maybe 2.5.1?)
12190             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
12191             ;;
12192         esac
12193         link_all_deplibs_CXX=yes
12194
12195         output_verbose_link_cmd='echo'
12196
12197         # Archives containing C++ object files must be created using
12198         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12199         # necessary to make sure instantiated templates are included
12200         # in the archive.
12201         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12202         ;;
12203       gcx*)
12204         # Green Hills C++ Compiler
12205         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12206
12207         # The C++ compiler must be used to create the archive.
12208         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12209         ;;
12210       *)
12211         # GNU C++ compiler with Solaris linker
12212         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12213           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12214           if $CC --version | grep -v '^2\.7' > /dev/null; then
12215             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12216             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12217                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12218
12219             # Commands to make compiler produce verbose output that lists
12220             # what "hidden" libraries, object files and flags are used when
12221             # linking a shared library.
12222             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12223           else
12224             # g++ 2.7 appears to require `-G' NOT `-shared' on this
12225             # platform.
12226             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12227             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12228                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12229
12230             # Commands to make compiler produce verbose output that lists
12231             # what "hidden" libraries, object files and flags are used when
12232             # linking a shared library.
12233             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12234           fi
12235
12236           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12237         fi
12238         ;;
12239     esac
12240     ;;
12241   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12242     no_undefined_flag_CXX='${wl}-z,text'
12243     archive_cmds_need_lc_CXX=no
12244     hardcode_shlibpath_var_CXX=no
12245     runpath_var='LD_RUN_PATH'
12246
12247     case $cc_basename in
12248       CC*)
12249         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12250         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12251         ;;
12252       *)
12253         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12254         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12255         ;;
12256     esac
12257     ;;
12258   sysv5* | sco3.2v5* | sco5v6*)
12259     # Note: We can NOT use -z defs as we might desire, because we do not
12260     # link with -lc, and that would cause any symbols used from libc to
12261     # always be unresolved, which means just about no library would
12262     # ever link correctly.  If we're not using GNU ld we use -z text
12263     # though, which does catch some bad symbols but isn't as heavy-handed
12264     # as -z defs.
12265     # For security reasons, it is highly recommended that you always
12266     # use absolute paths for naming shared libraries, and exclude the
12267     # DT_RUNPATH tag from executables and libraries.  But doing so
12268     # requires that you compile everything twice, which is a pain.
12269     # So that behaviour is only enabled if SCOABSPATH is set to a
12270     # non-empty value in the environment.  Most likely only useful for
12271     # creating official distributions of packages.
12272     # This is a hack until libtool officially supports absolute path
12273     # names for shared libraries.
12274     no_undefined_flag_CXX='${wl}-z,text'
12275     allow_undefined_flag_CXX='${wl}-z,nodefs'
12276     archive_cmds_need_lc_CXX=no
12277     hardcode_shlibpath_var_CXX=no
12278     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12279     hardcode_libdir_separator_CXX=':'
12280     link_all_deplibs_CXX=yes
12281     export_dynamic_flag_spec_CXX='${wl}-Bexport'
12282     runpath_var='LD_RUN_PATH'
12283
12284     case $cc_basename in
12285       CC*)
12286         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12287         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12288         ;;
12289       *)
12290         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12291         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12292         ;;
12293     esac
12294     ;;
12295   tandem*)
12296     case $cc_basename in
12297       NCC*)
12298         # NonStop-UX NCC 3.20
12299         # FIXME: insert proper C++ library support
12300         ld_shlibs_CXX=no
12301         ;;
12302       *)
12303         # FIXME: insert proper C++ library support
12304         ld_shlibs_CXX=no
12305         ;;
12306     esac
12307     ;;
12308   vxworks*)
12309     # FIXME: insert proper C++ library support
12310     ld_shlibs_CXX=no
12311     ;;
12312   *)
12313     # FIXME: insert proper C++ library support
12314     ld_shlibs_CXX=no
12315     ;;
12316 esac
12317 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12318 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12319 test "$ld_shlibs_CXX" = no && can_build_shared=no
12320
12321 GCC_CXX="$GXX"
12322 LD_CXX="$LD"
12323
12324
12325 cat > conftest.$ac_ext <<EOF
12326 class Foo
12327 {
12328 public:
12329   Foo (void) { a = 0; }
12330 private:
12331   int a;
12332 };
12333 EOF
12334
12335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12336   (eval $ac_compile) 2>&5
12337   ac_status=$?
12338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12339   (exit $ac_status); }; then
12340   # Parse the compiler output and extract the necessary
12341   # objects, libraries and library flags.
12342
12343   # Sentinel used to keep track of whether or not we are before
12344   # the conftest object file.
12345   pre_test_object_deps_done=no
12346
12347   # The `*' in the case matches for architectures that use `case' in
12348   # $output_verbose_cmd can trigger glob expansion during the loop
12349   # eval without this substitution.
12350   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12351
12352   for p in `eval $output_verbose_link_cmd`; do
12353     case $p in
12354
12355     -L* | -R* | -l*)
12356        # Some compilers place space between "-{L,R}" and the path.
12357        # Remove the space.
12358        if test $p = "-L" \
12359           || test $p = "-R"; then
12360          prev=$p
12361          continue
12362        else
12363          prev=
12364        fi
12365
12366        if test "$pre_test_object_deps_done" = no; then
12367          case $p in
12368          -L* | -R*)
12369            # Internal compiler library paths should come after those
12370            # provided the user.  The postdeps already come after the
12371            # user supplied libs so there is no need to process them.
12372            if test -z "$compiler_lib_search_path_CXX"; then
12373              compiler_lib_search_path_CXX="${prev}${p}"
12374            else
12375              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12376            fi
12377            ;;
12378          # The "-l" case would never come before the object being
12379          # linked, so don't bother handling this case.
12380          esac
12381        else
12382          if test -z "$postdeps_CXX"; then
12383            postdeps_CXX="${prev}${p}"
12384          else
12385            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12386          fi
12387        fi
12388        ;;
12389
12390     *.$objext)
12391        # This assumes that the test object file only shows up
12392        # once in the compiler output.
12393        if test "$p" = "conftest.$objext"; then
12394          pre_test_object_deps_done=yes
12395          continue
12396        fi
12397
12398        if test "$pre_test_object_deps_done" = no; then
12399          if test -z "$predep_objects_CXX"; then
12400            predep_objects_CXX="$p"
12401          else
12402            predep_objects_CXX="$predep_objects_CXX $p"
12403          fi
12404        else
12405          if test -z "$postdep_objects_CXX"; then
12406            postdep_objects_CXX="$p"
12407          else
12408            postdep_objects_CXX="$postdep_objects_CXX $p"
12409          fi
12410        fi
12411        ;;
12412
12413     *) ;; # Ignore the rest.
12414
12415     esac
12416   done
12417
12418   # Clean up.
12419   rm -f a.out a.exe
12420 else
12421   echo "libtool.m4: error: problem compiling CXX test program"
12422 fi
12423
12424 $rm -f confest.$objext
12425
12426 # PORTME: override above test on systems where it is broken
12427 case $host_os in
12428 interix3*)
12429   # Interix 3.5 installs completely hosed .la files for C++, so rather than
12430   # hack all around it, let's just trust "g++" to DTRT.
12431   predep_objects_CXX=
12432   postdep_objects_CXX=
12433   postdeps_CXX=
12434   ;;
12435
12436 solaris*)
12437   case $cc_basename in
12438   CC*)
12439     # Adding this requires a known-good setup of shared libraries for
12440     # Sun compiler versions before 5.6, else PIC objects from an old
12441     # archive will be linked into the output, leading to subtle bugs.
12442     postdeps_CXX='-lCstd -lCrun'
12443     ;;
12444   esac
12445   ;;
12446 esac
12447
12448
12449 case " $postdeps_CXX " in
12450 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12451 esac
12452
12453 lt_prog_compiler_wl_CXX=
12454 lt_prog_compiler_pic_CXX=
12455 lt_prog_compiler_static_CXX=
12456
12457 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12458 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12459
12460   # C++ specific cases for pic, static, wl, etc.
12461   if test "$GXX" = yes; then
12462     lt_prog_compiler_wl_CXX='-Wl,'
12463     lt_prog_compiler_static_CXX='-static'
12464
12465     case $host_os in
12466     aix*)
12467       # All AIX code is PIC.
12468       if test "$host_cpu" = ia64; then
12469         # AIX 5 now supports IA64 processor
12470         lt_prog_compiler_static_CXX='-Bstatic'
12471       fi
12472       ;;
12473     amigaos*)
12474       # FIXME: we need at least 68020 code to build shared libraries, but
12475       # adding the `-m68020' flag to GCC prevents building anything better,
12476       # like `-m68040'.
12477       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12478       ;;
12479     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12480       # PIC is the default for these OSes.
12481       ;;
12482     mingw* | os2* | pw32*)
12483       # This hack is so that the source file can tell whether it is being
12484       # built for inclusion in a dll (and should export symbols for example).
12485       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12486       ;;
12487     darwin* | rhapsody*)
12488       # PIC is the default on this platform
12489       # Common symbols not allowed in MH_DYLIB files
12490       lt_prog_compiler_pic_CXX='-fno-common'
12491       ;;
12492     *djgpp*)
12493       # DJGPP does not support shared libraries at all
12494       lt_prog_compiler_pic_CXX=
12495       ;;
12496     interix3*)
12497       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12498       # Instead, we relocate shared libraries at runtime.
12499       ;;
12500     sysv4*MP*)
12501       if test -d /usr/nec; then
12502         lt_prog_compiler_pic_CXX=-Kconform_pic
12503       fi
12504       ;;
12505     hpux*)
12506       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12507       # not for PA HP-UX.
12508       case $host_cpu in
12509       hppa*64*|ia64*)
12510         ;;
12511       *)
12512         lt_prog_compiler_pic_CXX='-fPIC'
12513         ;;
12514       esac
12515       ;;
12516     *)
12517       lt_prog_compiler_pic_CXX='-fPIC'
12518       ;;
12519     esac
12520   else
12521     case $host_os in
12522       aix4* | aix5*)
12523         # All AIX code is PIC.
12524         if test "$host_cpu" = ia64; then
12525           # AIX 5 now supports IA64 processor
12526           lt_prog_compiler_static_CXX='-Bstatic'
12527         else
12528           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12529         fi
12530         ;;
12531       chorus*)
12532         case $cc_basename in
12533         cxch68*)
12534           # Green Hills C++ Compiler
12535           # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
12536           ;;
12537         esac
12538         ;;
12539        darwin*)
12540          # PIC is the default on this platform
12541          # Common symbols not allowed in MH_DYLIB files
12542          case $cc_basename in
12543            xlc*)
12544            lt_prog_compiler_pic_CXX='-qnocommon'
12545            lt_prog_compiler_wl_CXX='-Wl,'
12546            ;;
12547          esac
12548        ;;
12549       dgux*)
12550         case $cc_basename in
12551           ec++*)
12552             lt_prog_compiler_pic_CXX='-KPIC'
12553             ;;
12554           ghcx*)
12555             # Green Hills C++ Compiler
12556             lt_prog_compiler_pic_CXX='-pic'
12557             ;;
12558           *)
12559             ;;
12560         esac
12561         ;;
12562       freebsd* | kfreebsd*-gnu | dragonfly*)
12563         # FreeBSD uses GNU C++
12564         ;;
12565       hpux9* | hpux10* | hpux11*)
12566         case $cc_basename in
12567           CC*)
12568             lt_prog_compiler_wl_CXX='-Wl,'
12569             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12570             if test "$host_cpu" != ia64; then
12571               lt_prog_compiler_pic_CXX='+Z'
12572             fi
12573             ;;
12574           aCC*)
12575             lt_prog_compiler_wl_CXX='-Wl,'
12576             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12577             case $host_cpu in
12578             hppa*64*|ia64*)
12579               # +Z the default
12580               ;;
12581             *)
12582               lt_prog_compiler_pic_CXX='+Z'
12583               ;;
12584             esac
12585             ;;
12586           *)
12587             ;;
12588         esac
12589         ;;
12590       interix*)
12591         # This is c89, which is MS Visual C++ (no shared libs)
12592         # Anyone wants to do a port?
12593         ;;
12594       irix5* | irix6* | nonstopux*)
12595         case $cc_basename in
12596           CC*)
12597             lt_prog_compiler_wl_CXX='-Wl,'
12598             lt_prog_compiler_static_CXX='-non_shared'
12599             # CC pic flag -KPIC is the default.
12600             ;;
12601           *)
12602             ;;
12603         esac
12604         ;;
12605       linux*)
12606         case $cc_basename in
12607           KCC*)
12608             # KAI C++ Compiler
12609             lt_prog_compiler_wl_CXX='--backend -Wl,'
12610             lt_prog_compiler_pic_CXX='-fPIC'
12611             ;;
12612           icpc* | ecpc*)
12613             # Intel C++
12614             lt_prog_compiler_wl_CXX='-Wl,'
12615             lt_prog_compiler_pic_CXX='-KPIC'
12616             lt_prog_compiler_static_CXX='-static'
12617             ;;
12618           pgCC*)
12619             # Portland Group C++ compiler.
12620             lt_prog_compiler_wl_CXX='-Wl,'
12621             lt_prog_compiler_pic_CXX='-fpic'
12622             lt_prog_compiler_static_CXX='-Bstatic'
12623             ;;
12624           cxx*)
12625             # Compaq C++
12626             # Make sure the PIC flag is empty.  It appears that all Alpha
12627             # Linux and Compaq Tru64 Unix objects are PIC.
12628             lt_prog_compiler_pic_CXX=
12629             lt_prog_compiler_static_CXX='-non_shared'
12630             ;;
12631           *)
12632             ;;
12633         esac
12634         ;;
12635       lynxos*)
12636         ;;
12637       m88k*)
12638         ;;
12639       mvs*)
12640         case $cc_basename in
12641           cxx*)
12642             lt_prog_compiler_pic_CXX='-W c,exportall'
12643             ;;
12644           *)
12645             ;;
12646         esac
12647         ;;
12648       netbsd*)
12649         ;;
12650       osf3* | osf4* | osf5*)
12651         case $cc_basename in
12652           KCC*)
12653             lt_prog_compiler_wl_CXX='--backend -Wl,'
12654             ;;
12655           RCC*)
12656             # Rational C++ 2.4.1
12657             lt_prog_compiler_pic_CXX='-pic'
12658             ;;
12659           cxx*)
12660             # Digital/Compaq C++
12661             lt_prog_compiler_wl_CXX='-Wl,'
12662             # Make sure the PIC flag is empty.  It appears that all Alpha
12663             # Linux and Compaq Tru64 Unix objects are PIC.
12664             lt_prog_compiler_pic_CXX=
12665             lt_prog_compiler_static_CXX='-non_shared'
12666             ;;
12667           *)
12668             ;;
12669         esac
12670         ;;
12671       psos*)
12672         ;;
12673       solaris*)
12674         case $cc_basename in
12675           CC*)
12676             # Sun C++ 4.2, 5.x and Centerline C++
12677             lt_prog_compiler_pic_CXX='-KPIC'
12678             lt_prog_compiler_static_CXX='-Bstatic'
12679             lt_prog_compiler_wl_CXX='-Qoption ld '
12680             ;;
12681           gcx*)
12682             # Green Hills C++ Compiler
12683             lt_prog_compiler_pic_CXX='-PIC'
12684             ;;
12685           *)
12686             ;;
12687         esac
12688         ;;
12689       sunos4*)
12690         case $cc_basename in
12691           CC*)
12692             # Sun C++ 4.x
12693             lt_prog_compiler_pic_CXX='-pic'
12694             lt_prog_compiler_static_CXX='-Bstatic'
12695             ;;
12696           lcc*)
12697             # Lucid
12698             lt_prog_compiler_pic_CXX='-pic'
12699             ;;
12700           *)
12701             ;;
12702         esac
12703         ;;
12704       tandem*)
12705         case $cc_basename in
12706           NCC*)
12707             # NonStop-UX NCC 3.20
12708             lt_prog_compiler_pic_CXX='-KPIC'
12709             ;;
12710           *)
12711             ;;
12712         esac
12713         ;;
12714       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12715         case $cc_basename in
12716           CC*)
12717             lt_prog_compiler_wl_CXX='-Wl,'
12718             lt_prog_compiler_pic_CXX='-KPIC'
12719             lt_prog_compiler_static_CXX='-Bstatic'
12720             ;;
12721         esac
12722         ;;
12723       vxworks*)
12724         ;;
12725       *)
12726         lt_prog_compiler_can_build_shared_CXX=no
12727         ;;
12728     esac
12729   fi
12730
12731 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12732 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12733
12734 #
12735 # Check to make sure the PIC flag actually works.
12736 #
12737 if test -n "$lt_prog_compiler_pic_CXX"; then
12738
12739 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12740 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12741 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12742   echo $ECHO_N "(cached) $ECHO_C" >&6
12743 else
12744   lt_prog_compiler_pic_works_CXX=no
12745   ac_outfile=conftest.$ac_objext
12746    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12747    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12748    # Insert the option either (1) after the last *FLAGS variable, or
12749    # (2) before a word containing "conftest.", or (3) at the end.
12750    # Note that $ac_compile itself does not contain backslashes and begins
12751    # with a dollar sign (not a hyphen), so the echo should work correctly.
12752    # The option is referenced via a variable to avoid confusing sed.
12753    lt_compile=`echo "$ac_compile" | $SED \
12754    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12755    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12756    -e 's:$: $lt_compiler_flag:'`
12757    (eval echo "\"\$as_me:12757: $lt_compile\"" >&5)
12758    (eval "$lt_compile" 2>conftest.err)
12759    ac_status=$?
12760    cat conftest.err >&5
12761    echo "$as_me:12761: \$? = $ac_status" >&5
12762    if (exit $ac_status) && test -s "$ac_outfile"; then
12763      # The compiler can only warn and ignore the option if not recognized
12764      # So say no if there are warnings other than the usual output.
12765      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12766      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12767      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12768        lt_prog_compiler_pic_works_CXX=yes
12769      fi
12770    fi
12771    $rm conftest*
12772
12773 fi
12774 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12775 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12776
12777 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12778     case $lt_prog_compiler_pic_CXX in
12779      "" | " "*) ;;
12780      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12781      esac
12782 else
12783     lt_prog_compiler_pic_CXX=
12784      lt_prog_compiler_can_build_shared_CXX=no
12785 fi
12786
12787 fi
12788 case $host_os in
12789   # For platforms which do not support PIC, -DPIC is meaningless:
12790   *djgpp*)
12791     lt_prog_compiler_pic_CXX=
12792     ;;
12793   *)
12794     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12795     ;;
12796 esac
12797
12798 #
12799 # Check to make sure the static flag actually works.
12800 #
12801 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12802 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12803 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12804 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12805   echo $ECHO_N "(cached) $ECHO_C" >&6
12806 else
12807   lt_prog_compiler_static_works_CXX=no
12808    save_LDFLAGS="$LDFLAGS"
12809    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12810    printf "$lt_simple_link_test_code" > conftest.$ac_ext
12811    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12812      # The linker can only warn and ignore the option if not recognized
12813      # So say no if there are warnings
12814      if test -s conftest.err; then
12815        # Append any errors to the config.log.
12816        cat conftest.err 1>&5
12817        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12818        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12819        if diff conftest.exp conftest.er2 >/dev/null; then
12820          lt_prog_compiler_static_works_CXX=yes
12821        fi
12822      else
12823        lt_prog_compiler_static_works_CXX=yes
12824      fi
12825    fi
12826    $rm conftest*
12827    LDFLAGS="$save_LDFLAGS"
12828
12829 fi
12830 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12831 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12832
12833 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12834     :
12835 else
12836     lt_prog_compiler_static_CXX=
12837 fi
12838
12839
12840 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12841 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12842 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12843   echo $ECHO_N "(cached) $ECHO_C" >&6
12844 else
12845   lt_cv_prog_compiler_c_o_CXX=no
12846    $rm -r conftest 2>/dev/null
12847    mkdir conftest
12848    cd conftest
12849    mkdir out
12850    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12851
12852    lt_compiler_flag="-o out/conftest2.$ac_objext"
12853    # Insert the option either (1) after the last *FLAGS variable, or
12854    # (2) before a word containing "conftest.", or (3) at the end.
12855    # Note that $ac_compile itself does not contain backslashes and begins
12856    # with a dollar sign (not a hyphen), so the echo should work correctly.
12857    lt_compile=`echo "$ac_compile" | $SED \
12858    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12859    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12860    -e 's:$: $lt_compiler_flag:'`
12861    (eval echo "\"\$as_me:12861: $lt_compile\"" >&5)
12862    (eval "$lt_compile" 2>out/conftest.err)
12863    ac_status=$?
12864    cat out/conftest.err >&5
12865    echo "$as_me:12865: \$? = $ac_status" >&5
12866    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12867    then
12868      # The compiler can only warn and ignore the option if not recognized
12869      # So say no if there are warnings
12870      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12871      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12872      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12873        lt_cv_prog_compiler_c_o_CXX=yes
12874      fi
12875    fi
12876    chmod u+w . 2>&5
12877    $rm conftest*
12878    # SGI C++ compiler will create directory out/ii_files/ for
12879    # template instantiation
12880    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12881    $rm out/* && rmdir out
12882    cd ..
12883    rmdir conftest
12884    $rm conftest*
12885
12886 fi
12887 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12888 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12889
12890
12891 hard_links="nottested"
12892 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12893   # do not overwrite the value of need_locks provided by the user
12894   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12895 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12896   hard_links=yes
12897   $rm conftest*
12898   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12899   touch conftest.a
12900   ln conftest.a conftest.b 2>&5 || hard_links=no
12901   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12902   { echo "$as_me:$LINENO: result: $hard_links" >&5
12903 echo "${ECHO_T}$hard_links" >&6; }
12904   if test "$hard_links" = no; then
12905     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12906 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12907     need_locks=warn
12908   fi
12909 else
12910   need_locks=no
12911 fi
12912
12913 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12914 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12915
12916   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12917   case $host_os in
12918   aix4* | aix5*)
12919     # If we're using GNU nm, then we don't want the "-C" option.
12920     # -C means demangle to AIX nm, but means don't demangle with GNU nm
12921     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12922       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12923     else
12924       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12925     fi
12926     ;;
12927   pw32*)
12928     export_symbols_cmds_CXX="$ltdll_cmds"
12929   ;;
12930   cygwin* | mingw*)
12931     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12932   ;;
12933   *)
12934     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12935   ;;
12936   esac
12937
12938 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12939 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12940 test "$ld_shlibs_CXX" = no && can_build_shared=no
12941
12942 #
12943 # Do we need to explicitly link libc?
12944 #
12945 case "x$archive_cmds_need_lc_CXX" in
12946 x|xyes)
12947   # Assume -lc should be added
12948   archive_cmds_need_lc_CXX=yes
12949
12950   if test "$enable_shared" = yes && test "$GCC" = yes; then
12951     case $archive_cmds_CXX in
12952     *'~'*)
12953       # FIXME: we may have to deal with multi-command sequences.
12954       ;;
12955     '$CC '*)
12956       # Test whether the compiler implicitly links with -lc since on some
12957       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12958       # to ld, don't add -lc before -lgcc.
12959       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12960 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12961       $rm conftest*
12962       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12963
12964       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12965   (eval $ac_compile) 2>&5
12966   ac_status=$?
12967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12968   (exit $ac_status); } 2>conftest.err; then
12969         soname=conftest
12970         lib=conftest
12971         libobjs=conftest.$ac_objext
12972         deplibs=
12973         wl=$lt_prog_compiler_wl_CXX
12974         pic_flag=$lt_prog_compiler_pic_CXX
12975         compiler_flags=-v
12976         linker_flags=-v
12977         verstring=
12978         output_objdir=.
12979         libname=conftest
12980         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12981         allow_undefined_flag_CXX=
12982         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12983   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12984   ac_status=$?
12985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12986   (exit $ac_status); }
12987         then
12988           archive_cmds_need_lc_CXX=no
12989         else
12990           archive_cmds_need_lc_CXX=yes
12991         fi
12992         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12993       else
12994         cat conftest.err 1>&5
12995       fi
12996       $rm conftest*
12997       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12998 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12999       ;;
13000     esac
13001   fi
13002   ;;
13003 esac
13004
13005 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13006 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13007 library_names_spec=
13008 libname_spec='lib$name'
13009 soname_spec=
13010 shrext_cmds=".so"
13011 postinstall_cmds=
13012 postuninstall_cmds=
13013 finish_cmds=
13014 finish_eval=
13015 shlibpath_var=
13016 shlibpath_overrides_runpath=unknown
13017 version_type=none
13018 dynamic_linker="$host_os ld.so"
13019 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13020 if test "$GCC" = yes; then
13021   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13022   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13023     # if the path contains ";" then we assume it to be the separator
13024     # otherwise default to the standard path separator (i.e. ":") - it is
13025     # assumed that no part of a normal pathname contains ";" but that should
13026     # okay in the real world where ";" in dirpaths is itself problematic.
13027     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13028   else
13029     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13030   fi
13031 else
13032   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13033 fi
13034 need_lib_prefix=unknown
13035 hardcode_into_libs=no
13036
13037 # when you set need_version to no, make sure it does not cause -set_version
13038 # flags to be left without arguments
13039 need_version=unknown
13040
13041 case $host_os in
13042 aix3*)
13043   version_type=linux
13044   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13045   shlibpath_var=LIBPATH
13046
13047   # AIX 3 has no versioning support, so we append a major version to the name.
13048   soname_spec='${libname}${release}${shared_ext}$major'
13049   ;;
13050
13051 aix4* | aix5*)
13052   version_type=linux
13053   need_lib_prefix=no
13054   need_version=no
13055   hardcode_into_libs=yes
13056   if test "$host_cpu" = ia64; then
13057     # AIX 5 supports IA64
13058     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13059     shlibpath_var=LD_LIBRARY_PATH
13060   else
13061     # With GCC up to 2.95.x, collect2 would create an import file
13062     # for dependence libraries.  The import file would start with
13063     # the line `#! .'.  This would cause the generated library to
13064     # depend on `.', always an invalid library.  This was fixed in
13065     # development snapshots of GCC prior to 3.0.
13066     case $host_os in
13067       aix4 | aix4.[01] | aix4.[01].*)
13068       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13069            echo ' yes '
13070            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13071         :
13072       else
13073         can_build_shared=no
13074       fi
13075       ;;
13076     esac
13077     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13078     # soname into executable. Probably we can add versioning support to
13079     # collect2, so additional links can be useful in future.
13080     if test "$aix_use_runtimelinking" = yes; then
13081       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13082       # instead of lib<name>.a to let people know that these are not
13083       # typical AIX shared libraries.
13084       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13085     else
13086       # We preserve .a as extension for shared libraries through AIX4.2
13087       # and later when we are not doing run time linking.
13088       library_names_spec='${libname}${release}.a $libname.a'
13089       soname_spec='${libname}${release}${shared_ext}$major'
13090     fi
13091     shlibpath_var=LIBPATH
13092   fi
13093   ;;
13094
13095 amigaos*)
13096   library_names_spec='$libname.ixlibrary $libname.a'
13097   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13098   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
13099   ;;
13100
13101 beos*)
13102   library_names_spec='${libname}${shared_ext}'
13103   dynamic_linker="$host_os ld.so"
13104   shlibpath_var=LIBRARY_PATH
13105   ;;
13106
13107 bsdi[45]*)
13108   version_type=linux
13109   need_version=no
13110   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13111   soname_spec='${libname}${release}${shared_ext}$major'
13112   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13113   shlibpath_var=LD_LIBRARY_PATH
13114   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13115   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13116   # the default ld.so.conf also contains /usr/contrib/lib and
13117   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13118   # libtool to hard-code these into programs
13119   ;;
13120
13121 cygwin* | mingw* | pw32*)
13122   version_type=windows
13123   shrext_cmds=".dll"
13124   need_version=no
13125   need_lib_prefix=no
13126
13127   case $GCC,$host_os in
13128   yes,cygwin* | yes,mingw* | yes,pw32*)
13129     library_names_spec='$libname.dll.a'
13130     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13131     postinstall_cmds='base_file=`basename \${file}`~
13132       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13133       dldir=$destdir/`dirname \$dlpath`~
13134       test -d \$dldir || mkdir -p \$dldir~
13135       $install_prog $dir/$dlname \$dldir/$dlname~
13136       chmod a+x \$dldir/$dlname'
13137     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13138       dlpath=$dir/\$dldll~
13139        $rm \$dlpath'
13140     shlibpath_overrides_runpath=yes
13141
13142     case $host_os in
13143     cygwin*)
13144       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13145       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13146       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13147       ;;
13148     mingw*)
13149       # MinGW DLLs use traditional 'lib' prefix
13150       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13151       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13152       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13153         # It is most probably a Windows format PATH printed by
13154         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13155         # path with ; separators, and with drive letters. We can handle the
13156         # drive letters (cygwin fileutils understands them), so leave them,
13157         # especially as we might pass files found there to a mingw objdump,
13158         # which wouldn't understand a cygwinified path. Ahh.
13159         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13160       else
13161         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13162       fi
13163       ;;
13164     pw32*)
13165       # pw32 DLLs use 'pw' prefix rather than 'lib'
13166       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13167       ;;
13168     esac
13169     ;;
13170
13171   *)
13172     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13173     ;;
13174   esac
13175   dynamic_linker='Win32 ld.exe'
13176   # FIXME: first we should search . and the directory the executable is in
13177   shlibpath_var=PATH
13178   ;;
13179
13180 darwin* | rhapsody*)
13181   dynamic_linker="$host_os dyld"
13182   version_type=darwin
13183   need_lib_prefix=no
13184   need_version=no
13185   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13186   soname_spec='${libname}${release}${major}$shared_ext'
13187   shlibpath_overrides_runpath=yes
13188   shlibpath_var=DYLD_LIBRARY_PATH
13189   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13190   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13191   if test "$GCC" = yes; then
13192     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
13193   else
13194     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13195   fi
13196   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13197   ;;
13198
13199 dgux*)
13200   version_type=linux
13201   need_lib_prefix=no
13202   need_version=no
13203   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13204   soname_spec='${libname}${release}${shared_ext}$major'
13205   shlibpath_var=LD_LIBRARY_PATH
13206   ;;
13207
13208 freebsd1*)
13209   dynamic_linker=no
13210   ;;
13211
13212 kfreebsd*-gnu)
13213   version_type=linux
13214   need_lib_prefix=no
13215   need_version=no
13216   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13217   soname_spec='${libname}${release}${shared_ext}$major'
13218   shlibpath_var=LD_LIBRARY_PATH
13219   shlibpath_overrides_runpath=no
13220   hardcode_into_libs=yes
13221   dynamic_linker='GNU ld.so'
13222   ;;
13223
13224 freebsd* | dragonfly*)
13225   # DragonFly does not have aout.  When/if they implement a new
13226   # versioning mechanism, adjust this.
13227   if test -x /usr/bin/objformat; then
13228     objformat=`/usr/bin/objformat`
13229   else
13230     case $host_os in
13231     freebsd[123]*) objformat=aout ;;
13232     *) objformat=elf ;;
13233     esac
13234   fi
13235   version_type=freebsd-$objformat
13236   case $version_type in
13237     freebsd-elf*)
13238       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13239       need_version=no
13240       need_lib_prefix=no
13241       ;;
13242     freebsd-*)
13243       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13244       need_version=yes
13245       ;;
13246   esac
13247   shlibpath_var=LD_LIBRARY_PATH
13248   case $host_os in
13249   freebsd2*)
13250     shlibpath_overrides_runpath=yes
13251     ;;
13252   freebsd3.[01]* | freebsdelf3.[01]*)
13253     shlibpath_overrides_runpath=yes
13254     hardcode_into_libs=yes
13255     ;;
13256   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13257   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13258     shlibpath_overrides_runpath=no
13259     hardcode_into_libs=yes
13260     ;;
13261   freebsd*) # from 4.6 on
13262     shlibpath_overrides_runpath=yes
13263     hardcode_into_libs=yes
13264     ;;
13265   esac
13266   ;;
13267
13268 gnu*)
13269   version_type=linux
13270   need_lib_prefix=no
13271   need_version=no
13272   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13273   soname_spec='${libname}${release}${shared_ext}$major'
13274   shlibpath_var=LD_LIBRARY_PATH
13275   hardcode_into_libs=yes
13276   ;;
13277
13278 hpux9* | hpux10* | hpux11*)
13279   # Give a soname corresponding to the major version so that dld.sl refuses to
13280   # link against other versions.
13281   version_type=sunos
13282   need_lib_prefix=no
13283   need_version=no
13284   case $host_cpu in
13285   ia64*)
13286     shrext_cmds='.so'
13287     hardcode_into_libs=yes
13288     dynamic_linker="$host_os dld.so"
13289     shlibpath_var=LD_LIBRARY_PATH
13290     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13291     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13292     soname_spec='${libname}${release}${shared_ext}$major'
13293     if test "X$HPUX_IA64_MODE" = X32; then
13294       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13295     else
13296       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13297     fi
13298     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13299     ;;
13300    hppa*64*)
13301      shrext_cmds='.sl'
13302      hardcode_into_libs=yes
13303      dynamic_linker="$host_os dld.sl"
13304      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13305      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13306      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13307      soname_spec='${libname}${release}${shared_ext}$major'
13308      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13309      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13310      ;;
13311    *)
13312     shrext_cmds='.sl'
13313     dynamic_linker="$host_os dld.sl"
13314     shlibpath_var=SHLIB_PATH
13315     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13316     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13317     soname_spec='${libname}${release}${shared_ext}$major'
13318     ;;
13319   esac
13320   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13321   postinstall_cmds='chmod 555 $lib'
13322   ;;
13323
13324 interix3*)
13325   version_type=linux
13326   need_lib_prefix=no
13327   need_version=no
13328   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13329   soname_spec='${libname}${release}${shared_ext}$major'
13330   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13331   shlibpath_var=LD_LIBRARY_PATH
13332   shlibpath_overrides_runpath=no
13333   hardcode_into_libs=yes
13334   ;;
13335
13336 irix5* | irix6* | nonstopux*)
13337   case $host_os in
13338     nonstopux*) version_type=nonstopux ;;
13339     *)
13340         if test "$lt_cv_prog_gnu_ld" = yes; then
13341                 version_type=linux
13342         else
13343                 version_type=irix
13344         fi ;;
13345   esac
13346   need_lib_prefix=no
13347   need_version=no
13348   soname_spec='${libname}${release}${shared_ext}$major'
13349   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13350   case $host_os in
13351   irix5* | nonstopux*)
13352     libsuff= shlibsuff=
13353     ;;
13354   *)
13355     case $LD in # libtool.m4 will add one of these switches to LD
13356     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13357       libsuff= shlibsuff= libmagic=32-bit;;
13358     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13359       libsuff=32 shlibsuff=N32 libmagic=N32;;
13360     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13361       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13362     *) libsuff= shlibsuff= libmagic=never-match;;
13363     esac
13364     ;;
13365   esac
13366   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13367   shlibpath_overrides_runpath=no
13368   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13369   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13370   hardcode_into_libs=yes
13371   ;;
13372
13373 # No shared lib support for Linux oldld, aout, or coff.
13374 linux*oldld* | linux*aout* | linux*coff*)
13375   dynamic_linker=no
13376   ;;
13377
13378 # This must be Linux ELF.
13379 linux*)
13380   version_type=linux
13381   need_lib_prefix=no
13382   need_version=no
13383   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13384   soname_spec='${libname}${release}${shared_ext}$major'
13385   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13386   shlibpath_var=LD_LIBRARY_PATH
13387   shlibpath_overrides_runpath=no
13388   # This implies no fast_install, which is unacceptable.
13389   # Some rework will be needed to allow for fast_install
13390   # before this can be enabled.
13391   hardcode_into_libs=yes
13392
13393   # find out which ABI we are using
13394   libsuff=
13395   case "$host_cpu" in
13396   x86_64*|s390x*|powerpc64*)
13397     echo '#line 13397 "configure"' > conftest.$ac_ext
13398     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13399   (eval $ac_compile) 2>&5
13400   ac_status=$?
13401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13402   (exit $ac_status); }; then
13403       case `/usr/bin/file conftest.$ac_objext` in
13404       *64-bit*)
13405         libsuff=64
13406         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
13407         ;;
13408       esac
13409     fi
13410     rm -rf conftest*
13411     ;;
13412   esac
13413
13414   # Append ld.so.conf contents to the search path
13415   if test -f /etc/ld.so.conf; then
13416     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13417     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
13418   fi
13419
13420   # We used to test for /lib/ld.so.1 and disable shared libraries on
13421   # powerpc, because MkLinux only supported shared libraries with the
13422   # GNU dynamic linker.  Since this was broken with cross compilers,
13423   # most powerpc-linux boxes support dynamic linking these days and
13424   # people can always --disable-shared, the test was removed, and we
13425   # assume the GNU/Linux dynamic linker is in use.
13426   dynamic_linker='GNU/Linux ld.so'
13427   ;;
13428
13429 knetbsd*-gnu)
13430   version_type=linux
13431   need_lib_prefix=no
13432   need_version=no
13433   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13434   soname_spec='${libname}${release}${shared_ext}$major'
13435   shlibpath_var=LD_LIBRARY_PATH
13436   shlibpath_overrides_runpath=no
13437   hardcode_into_libs=yes
13438   dynamic_linker='GNU ld.so'
13439   ;;
13440
13441 netbsd*)
13442   version_type=sunos
13443   need_lib_prefix=no
13444   need_version=no
13445   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13446     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13447     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13448     dynamic_linker='NetBSD (a.out) ld.so'
13449   else
13450     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13451     soname_spec='${libname}${release}${shared_ext}$major'
13452     dynamic_linker='NetBSD ld.elf_so'
13453   fi
13454   shlibpath_var=LD_LIBRARY_PATH
13455   shlibpath_overrides_runpath=yes
13456   hardcode_into_libs=yes
13457   ;;
13458
13459 newsos6)
13460   version_type=linux
13461   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13462   shlibpath_var=LD_LIBRARY_PATH
13463   shlibpath_overrides_runpath=yes
13464   ;;
13465
13466 nto-qnx*)
13467   version_type=linux
13468   need_lib_prefix=no
13469   need_version=no
13470   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13471   soname_spec='${libname}${release}${shared_ext}$major'
13472   shlibpath_var=LD_LIBRARY_PATH
13473   shlibpath_overrides_runpath=yes
13474   ;;
13475
13476 openbsd*)
13477   version_type=sunos
13478   sys_lib_dlsearch_path_spec="/usr/lib"
13479   need_lib_prefix=no
13480   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13481   case $host_os in
13482     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13483     *)                         need_version=no  ;;
13484   esac
13485   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13486   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13487   shlibpath_var=LD_LIBRARY_PATH
13488   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13489     case $host_os in
13490       openbsd2.[89] | openbsd2.[89].*)
13491         shlibpath_overrides_runpath=no
13492         ;;
13493       *)
13494         shlibpath_overrides_runpath=yes
13495         ;;
13496       esac
13497   else
13498     shlibpath_overrides_runpath=yes
13499   fi
13500   ;;
13501
13502 os2*)
13503   libname_spec='$name'
13504   shrext_cmds=".dll"
13505   need_lib_prefix=no
13506   library_names_spec='$libname${shared_ext} $libname.a'
13507   dynamic_linker='OS/2 ld.exe'
13508   shlibpath_var=LIBPATH
13509   ;;
13510
13511 osf3* | osf4* | osf5*)
13512   version_type=osf
13513   need_lib_prefix=no
13514   need_version=no
13515   soname_spec='${libname}${release}${shared_ext}$major'
13516   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13517   shlibpath_var=LD_LIBRARY_PATH
13518   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13519   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13520   ;;
13521
13522 solaris*)
13523   version_type=linux
13524   need_lib_prefix=no
13525   need_version=no
13526   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13527   soname_spec='${libname}${release}${shared_ext}$major'
13528   shlibpath_var=LD_LIBRARY_PATH
13529   shlibpath_overrides_runpath=yes
13530   hardcode_into_libs=yes
13531   # ldd complains unless libraries are executable
13532   postinstall_cmds='chmod +x $lib'
13533   ;;
13534
13535 sunos4*)
13536   version_type=sunos
13537   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13538   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13539   shlibpath_var=LD_LIBRARY_PATH
13540   shlibpath_overrides_runpath=yes
13541   if test "$with_gnu_ld" = yes; then
13542     need_lib_prefix=no
13543   fi
13544   need_version=yes
13545   ;;
13546
13547 sysv4 | sysv4.3*)
13548   version_type=linux
13549   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13550   soname_spec='${libname}${release}${shared_ext}$major'
13551   shlibpath_var=LD_LIBRARY_PATH
13552   case $host_vendor in
13553     sni)
13554       shlibpath_overrides_runpath=no
13555       need_lib_prefix=no
13556       export_dynamic_flag_spec='${wl}-Blargedynsym'
13557       runpath_var=LD_RUN_PATH
13558       ;;
13559     siemens)
13560       need_lib_prefix=no
13561       ;;
13562     motorola)
13563       need_lib_prefix=no
13564       need_version=no
13565       shlibpath_overrides_runpath=no
13566       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13567       ;;
13568   esac
13569   ;;
13570
13571 sysv4*MP*)
13572   if test -d /usr/nec ;then
13573     version_type=linux
13574     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13575     soname_spec='$libname${shared_ext}.$major'
13576     shlibpath_var=LD_LIBRARY_PATH
13577   fi
13578   ;;
13579
13580 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13581   version_type=freebsd-elf
13582   need_lib_prefix=no
13583   need_version=no
13584   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13585   soname_spec='${libname}${release}${shared_ext}$major'
13586   shlibpath_var=LD_LIBRARY_PATH
13587   hardcode_into_libs=yes
13588   if test "$with_gnu_ld" = yes; then
13589     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13590     shlibpath_overrides_runpath=no
13591   else
13592     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13593     shlibpath_overrides_runpath=yes
13594     case $host_os in
13595       sco3.2v5*)
13596         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13597         ;;
13598     esac
13599   fi
13600   sys_lib_dlsearch_path_spec='/usr/lib'
13601   ;;
13602
13603 uts4*)
13604   version_type=linux
13605   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13606   soname_spec='${libname}${release}${shared_ext}$major'
13607   shlibpath_var=LD_LIBRARY_PATH
13608   ;;
13609
13610 *)
13611   dynamic_linker=no
13612   ;;
13613 esac
13614 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13615 echo "${ECHO_T}$dynamic_linker" >&6; }
13616 test "$dynamic_linker" = no && can_build_shared=no
13617
13618 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13619 if test "$GCC" = yes; then
13620   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13621 fi
13622
13623 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13624 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13625 hardcode_action_CXX=
13626 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13627    test -n "$runpath_var_CXX" || \
13628    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13629
13630   # We can hardcode non-existant directories.
13631   if test "$hardcode_direct_CXX" != no &&
13632      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13633      # have to relink, otherwise we might link with an installed library
13634      # when we should be linking with a yet-to-be-installed one
13635      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13636      test "$hardcode_minus_L_CXX" != no; then
13637     # Linking always hardcodes the temporary library directory.
13638     hardcode_action_CXX=relink
13639   else
13640     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13641     hardcode_action_CXX=immediate
13642   fi
13643 else
13644   # We cannot hardcode anything, or else we can only hardcode existing
13645   # directories.
13646   hardcode_action_CXX=unsupported
13647 fi
13648 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13649 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13650
13651 if test "$hardcode_action_CXX" = relink; then
13652   # Fast installation is not supported
13653   enable_fast_install=no
13654 elif test "$shlibpath_overrides_runpath" = yes ||
13655      test "$enable_shared" = no; then
13656   # Fast installation is not necessary
13657   enable_fast_install=needless
13658 fi
13659
13660
13661 # The else clause should only fire when bootstrapping the
13662 # libtool distribution, otherwise you forgot to ship ltmain.sh
13663 # with your package, and you will get complaints that there are
13664 # no rules to generate ltmain.sh.
13665 if test -f "$ltmain"; then
13666   # See if we are running on zsh, and set the options which allow our commands through
13667   # without removal of \ escapes.
13668   if test -n "${ZSH_VERSION+set}" ; then
13669     setopt NO_GLOB_SUBST
13670   fi
13671   # Now quote all the things that may contain metacharacters while being
13672   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13673   # variables and quote the copies for generation of the libtool script.
13674   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13675     SED SHELL STRIP \
13676     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13677     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13678     deplibs_check_method reload_flag reload_cmds need_locks \
13679     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13680     lt_cv_sys_global_symbol_to_c_name_address \
13681     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13682     old_postinstall_cmds old_postuninstall_cmds \
13683     compiler_CXX \
13684     CC_CXX \
13685     LD_CXX \
13686     lt_prog_compiler_wl_CXX \
13687     lt_prog_compiler_pic_CXX \
13688     lt_prog_compiler_static_CXX \
13689     lt_prog_compiler_no_builtin_flag_CXX \
13690     export_dynamic_flag_spec_CXX \
13691     thread_safe_flag_spec_CXX \
13692     whole_archive_flag_spec_CXX \
13693     enable_shared_with_static_runtimes_CXX \
13694     old_archive_cmds_CXX \
13695     old_archive_from_new_cmds_CXX \
13696     predep_objects_CXX \
13697     postdep_objects_CXX \
13698     predeps_CXX \
13699     postdeps_CXX \
13700     compiler_lib_search_path_CXX \
13701     archive_cmds_CXX \
13702     archive_expsym_cmds_CXX \
13703     postinstall_cmds_CXX \
13704     postuninstall_cmds_CXX \
13705     old_archive_from_expsyms_cmds_CXX \
13706     allow_undefined_flag_CXX \
13707     no_undefined_flag_CXX \
13708     export_symbols_cmds_CXX \
13709     hardcode_libdir_flag_spec_CXX \
13710     hardcode_libdir_flag_spec_ld_CXX \
13711     hardcode_libdir_separator_CXX \
13712     hardcode_automatic_CXX \
13713     module_cmds_CXX \
13714     module_expsym_cmds_CXX \
13715     lt_cv_prog_compiler_c_o_CXX \
13716     exclude_expsyms_CXX \
13717     include_expsyms_CXX; do
13718
13719     case $var in
13720     old_archive_cmds_CXX | \
13721     old_archive_from_new_cmds_CXX | \
13722     archive_cmds_CXX | \
13723     archive_expsym_cmds_CXX | \
13724     module_cmds_CXX | \
13725     module_expsym_cmds_CXX | \
13726     old_archive_from_expsyms_cmds_CXX | \
13727     export_symbols_cmds_CXX | \
13728     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13729     postinstall_cmds | postuninstall_cmds | \
13730     old_postinstall_cmds | old_postuninstall_cmds | \
13731     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13732       # Double-quote double-evaled strings.
13733       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13734       ;;
13735     *)
13736       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13737       ;;
13738     esac
13739   done
13740
13741   case $lt_echo in
13742   *'\$0 --fallback-echo"')
13743     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13744     ;;
13745   esac
13746
13747 cfgfile="$ofile"
13748
13749   cat <<__EOF__ >> "$cfgfile"
13750 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13751
13752 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13753
13754 # Shell to use when invoking shell scripts.
13755 SHELL=$lt_SHELL
13756
13757 # Whether or not to build shared libraries.
13758 build_libtool_libs=$enable_shared
13759
13760 # Whether or not to build static libraries.
13761 build_old_libs=$enable_static
13762
13763 # Whether or not to add -lc for building shared libraries.
13764 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13765
13766 # Whether or not to disallow shared libs when runtime libs are static
13767 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13768
13769 # Whether or not to optimize for fast installation.
13770 fast_install=$enable_fast_install
13771
13772 # The host system.
13773 host_alias=$host_alias
13774 host=$host
13775 host_os=$host_os
13776
13777 # The build system.
13778 build_alias=$build_alias
13779 build=$build
13780 build_os=$build_os
13781
13782 # An echo program that does not interpret backslashes.
13783 echo=$lt_echo
13784
13785 # The archiver.
13786 AR=$lt_AR
13787 AR_FLAGS=$lt_AR_FLAGS
13788
13789 # A C compiler.
13790 LTCC=$lt_LTCC
13791
13792 # LTCC compiler flags.
13793 LTCFLAGS=$lt_LTCFLAGS
13794
13795 # A language-specific compiler.
13796 CC=$lt_compiler_CXX
13797
13798 # Is the compiler the GNU C compiler?
13799 with_gcc=$GCC_CXX
13800
13801 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
13802 gcc_ver=\`gcc -dumpversion\`
13803
13804 # An ERE matcher.
13805 EGREP=$lt_EGREP
13806
13807 # The linker used to build libraries.
13808 LD=$lt_LD_CXX
13809
13810 # Whether we need hard or soft links.
13811 LN_S=$lt_LN_S
13812
13813 # A BSD-compatible nm program.
13814 NM=$lt_NM
13815
13816 # A symbol stripping program
13817 STRIP=$lt_STRIP
13818
13819 # Used to examine libraries when file_magic_cmd begins "file"
13820 MAGIC_CMD=$MAGIC_CMD
13821
13822 # Used on cygwin: DLL creation program.
13823 DLLTOOL="$DLLTOOL"
13824
13825 # Used on cygwin: object dumper.
13826 OBJDUMP="$OBJDUMP"
13827
13828 # Used on cygwin: assembler.
13829 AS="$AS"
13830
13831 # The name of the directory that contains temporary libtool files.
13832 objdir=$objdir
13833
13834 # How to create reloadable object files.
13835 reload_flag=$lt_reload_flag
13836 reload_cmds=$lt_reload_cmds
13837
13838 # How to pass a linker flag through the compiler.
13839 wl=$lt_lt_prog_compiler_wl_CXX
13840
13841 # Object file suffix (normally "o").
13842 objext="$ac_objext"
13843
13844 # Old archive suffix (normally "a").
13845 libext="$libext"
13846
13847 # Shared library suffix (normally ".so").
13848 shrext_cmds='$shrext_cmds'
13849
13850 # Executable file suffix (normally "").
13851 exeext="$exeext"
13852
13853 # Additional compiler flags for building library objects.
13854 pic_flag=$lt_lt_prog_compiler_pic_CXX
13855 pic_mode=$pic_mode
13856
13857 # What is the maximum length of a command?
13858 max_cmd_len=$lt_cv_sys_max_cmd_len
13859
13860 # Does compiler simultaneously support -c and -o options?
13861 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13862
13863 # Must we lock files when doing compilation?
13864 need_locks=$lt_need_locks
13865
13866 # Do we need the lib prefix for modules?
13867 need_lib_prefix=$need_lib_prefix
13868
13869 # Do we need a version for libraries?
13870 need_version=$need_version
13871
13872 # Whether dlopen is supported.
13873 dlopen_support=$enable_dlopen
13874
13875 # Whether dlopen of programs is supported.
13876 dlopen_self=$enable_dlopen_self
13877
13878 # Whether dlopen of statically linked programs is supported.
13879 dlopen_self_static=$enable_dlopen_self_static
13880
13881 # Compiler flag to prevent dynamic linking.
13882 link_static_flag=$lt_lt_prog_compiler_static_CXX
13883
13884 # Compiler flag to turn off builtin functions.
13885 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13886
13887 # Compiler flag to allow reflexive dlopens.
13888 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13889
13890 # Compiler flag to generate shared objects directly from archives.
13891 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13892
13893 # Compiler flag to generate thread-safe objects.
13894 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13895
13896 # Library versioning type.
13897 version_type=$version_type
13898
13899 # Format of library name prefix.
13900 libname_spec=$lt_libname_spec
13901
13902 # List of archive names.  First name is the real one, the rest are links.
13903 # The last name is the one that the linker finds with -lNAME.
13904 library_names_spec=$lt_library_names_spec
13905
13906 # The coded name of the library, if different from the real name.
13907 soname_spec=$lt_soname_spec
13908
13909 # Commands used to build and install an old-style archive.
13910 RANLIB=$lt_RANLIB
13911 old_archive_cmds=$lt_old_archive_cmds_CXX
13912 old_postinstall_cmds=$lt_old_postinstall_cmds
13913 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13914
13915 # Create an old-style archive from a shared archive.
13916 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13917
13918 # Create a temporary old-style archive to link instead of a shared archive.
13919 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13920
13921 # Commands used to build and install a shared archive.
13922 archive_cmds=$lt_archive_cmds_CXX
13923 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13924 postinstall_cmds=$lt_postinstall_cmds
13925 postuninstall_cmds=$lt_postuninstall_cmds
13926
13927 # Commands used to build a loadable module (assumed same as above if empty)
13928 module_cmds=$lt_module_cmds_CXX
13929 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13930
13931 # Commands to strip libraries.
13932 old_striplib=$lt_old_striplib
13933 striplib=$lt_striplib
13934
13935 # Dependencies to place before the objects being linked to create a
13936 # shared library.
13937 predep_objects=\`echo $lt_predep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13938
13939 # Dependencies to place after the objects being linked to create a
13940 # shared library.
13941 postdep_objects=\`echo $lt_postdep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13942
13943 # Dependencies to place before the objects being linked to create a
13944 # shared library.
13945 predeps=$lt_predeps_CXX
13946
13947 # Dependencies to place after the objects being linked to create a
13948 # shared library.
13949 postdeps=$lt_postdeps_CXX
13950
13951 # The library search path used internally by the compiler when linking
13952 # a shared library.
13953 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13954
13955 # Method to check whether dependent libraries are shared objects.
13956 deplibs_check_method=$lt_deplibs_check_method
13957
13958 # Command to use when deplibs_check_method == file_magic.
13959 file_magic_cmd=$lt_file_magic_cmd
13960
13961 # Flag that allows shared libraries with undefined symbols to be built.
13962 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13963
13964 # Flag that forces no undefined symbols.
13965 no_undefined_flag=$lt_no_undefined_flag_CXX
13966
13967 # Commands used to finish a libtool library installation in a directory.
13968 finish_cmds=$lt_finish_cmds
13969
13970 # Same as above, but a single script fragment to be evaled but not shown.
13971 finish_eval=$lt_finish_eval
13972
13973 # Take the output of nm and produce a listing of raw symbols and C names.
13974 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13975
13976 # Transform the output of nm in a proper C declaration
13977 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13978
13979 # Transform the output of nm in a C name address pair
13980 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13981
13982 # This is the shared library runtime path variable.
13983 runpath_var=$runpath_var
13984
13985 # This is the shared library path variable.
13986 shlibpath_var=$shlibpath_var
13987
13988 # Is shlibpath searched before the hard-coded library search path?
13989 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13990
13991 # How to hardcode a shared library path into an executable.
13992 hardcode_action=$hardcode_action_CXX
13993
13994 # Whether we should hardcode library paths into libraries.
13995 hardcode_into_libs=$hardcode_into_libs
13996
13997 # Flag to hardcode \$libdir into a binary during linking.
13998 # This must work even if \$libdir does not exist.
13999 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14000
14001 # If ld is used when linking, flag to hardcode \$libdir into
14002 # a binary during linking. This must work even if \$libdir does
14003 # not exist.
14004 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14005
14006 # Whether we need a single -rpath flag with a separated argument.
14007 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14008
14009 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14010 # resulting binary.
14011 hardcode_direct=$hardcode_direct_CXX
14012
14013 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14014 # resulting binary.
14015 hardcode_minus_L=$hardcode_minus_L_CXX
14016
14017 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14018 # the resulting binary.
14019 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14020
14021 # Set to yes if building a shared library automatically hardcodes DIR into the library
14022 # and all subsequent libraries and executables linked against it.
14023 hardcode_automatic=$hardcode_automatic_CXX
14024
14025 # Variables whose values should be saved in libtool wrapper scripts and
14026 # restored at relink time.
14027 variables_saved_for_relink="$variables_saved_for_relink"
14028
14029 # Whether libtool must link a program against all its dependency libraries.
14030 link_all_deplibs=$link_all_deplibs_CXX
14031
14032 # Compile-time system search path for libraries
14033 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
14034
14035 # Run-time system search path for libraries
14036 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14037
14038 # Fix the shell variable \$srcfile for the compiler.
14039 fix_srcfile_path="$fix_srcfile_path_CXX"
14040
14041 # Set to yes if exported symbols are required.
14042 always_export_symbols=$always_export_symbols_CXX
14043
14044 # The commands to list exported symbols.
14045 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14046
14047 # The commands to extract the exported symbol list from a shared archive.
14048 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14049
14050 # Symbols that should not be listed in the preloaded symbols.
14051 exclude_expsyms=$lt_exclude_expsyms_CXX
14052
14053 # Symbols that must always be exported.
14054 include_expsyms=$lt_include_expsyms_CXX
14055
14056 # ### END LIBTOOL TAG CONFIG: $tagname
14057
14058 __EOF__
14059
14060
14061 else
14062   # If there is no Makefile yet, we rely on a make rule to execute
14063   # `config.status --recheck' to rerun these tests and create the
14064   # libtool script then.
14065   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14066   if test -f "$ltmain_in"; then
14067     test -f Makefile && make "$ltmain"
14068   fi
14069 fi
14070
14071
14072 ac_ext=c
14073 ac_cpp='$CPP $CPPFLAGS'
14074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14077
14078 CC=$lt_save_CC
14079 LDCXX=$LD
14080 LD=$lt_save_LD
14081 GCC=$lt_save_GCC
14082 with_gnu_ldcxx=$with_gnu_ld
14083 with_gnu_ld=$lt_save_with_gnu_ld
14084 lt_cv_path_LDCXX=$lt_cv_path_LD
14085 lt_cv_path_LD=$lt_save_path_LD
14086 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14087 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14088
14089         else
14090           tagname=""
14091         fi
14092         ;;
14093
14094       F77)
14095         if test -n "$F77" && test "X$F77" != "Xno"; then
14096
14097 ac_ext=f
14098 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14099 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14100 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14101
14102
14103 archive_cmds_need_lc_F77=no
14104 allow_undefined_flag_F77=
14105 always_export_symbols_F77=no
14106 archive_expsym_cmds_F77=
14107 export_dynamic_flag_spec_F77=
14108 hardcode_direct_F77=no
14109 hardcode_libdir_flag_spec_F77=
14110 hardcode_libdir_flag_spec_ld_F77=
14111 hardcode_libdir_separator_F77=
14112 hardcode_minus_L_F77=no
14113 hardcode_automatic_F77=no
14114 module_cmds_F77=
14115 module_expsym_cmds_F77=
14116 link_all_deplibs_F77=unknown
14117 old_archive_cmds_F77=$old_archive_cmds
14118 no_undefined_flag_F77=
14119 whole_archive_flag_spec_F77=
14120 enable_shared_with_static_runtimes_F77=no
14121
14122 # Source file extension for f77 test sources.
14123 ac_ext=f
14124
14125 # Object file extension for compiled f77 test sources.
14126 objext=o
14127 objext_F77=$objext
14128
14129 # Code to be used in simple compile tests
14130 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
14131
14132 # Code to be used in simple link tests
14133 lt_simple_link_test_code="      program t\n      end\n"
14134
14135 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14136
14137 # If no C compiler was specified, use CC.
14138 LTCC=${LTCC-"$CC"}
14139
14140 # If no C compiler flags were specified, use CFLAGS.
14141 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14142
14143 # Allow CC to be a program name with arguments.
14144 compiler=$CC
14145
14146
14147 # save warnings/boilerplate of simple test code
14148 ac_outfile=conftest.$ac_objext
14149 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14150 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14151 _lt_compiler_boilerplate=`cat conftest.err`
14152 $rm conftest*
14153
14154 ac_outfile=conftest.$ac_objext
14155 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14156 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14157 _lt_linker_boilerplate=`cat conftest.err`
14158 $rm conftest*
14159
14160
14161 # Allow CC to be a program name with arguments.
14162 lt_save_CC="$CC"
14163 CC=${F77-"f77"}
14164 compiler=$CC
14165 compiler_F77=$CC
14166 for cc_temp in $compiler""; do
14167   case $cc_temp in
14168     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14169     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14170     \-*) ;;
14171     *) break;;
14172   esac
14173 done
14174 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14175
14176
14177 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14178 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14179 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14180 echo "${ECHO_T}$can_build_shared" >&6; }
14181
14182 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14183 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14184 test "$can_build_shared" = "no" && enable_shared=no
14185
14186 # On AIX, shared libraries and static libraries use the same namespace, and
14187 # are all built from PIC.
14188 case $host_os in
14189 aix3*)
14190   test "$enable_shared" = yes && enable_static=no
14191   if test -n "$RANLIB"; then
14192     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14193     postinstall_cmds='$RANLIB $lib'
14194   fi
14195   ;;
14196 aix4* | aix5*)
14197   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14198     test "$enable_shared" = yes && enable_static=no
14199   fi
14200   ;;
14201 esac
14202 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14203 echo "${ECHO_T}$enable_shared" >&6; }
14204
14205 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14206 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14207 # Make sure either enable_shared or enable_static is yes.
14208 test "$enable_shared" = yes || enable_static=yes
14209 { echo "$as_me:$LINENO: result: $enable_static" >&5
14210 echo "${ECHO_T}$enable_static" >&6; }
14211
14212 GCC_F77="$G77"
14213 LD_F77="$LD"
14214
14215 lt_prog_compiler_wl_F77=
14216 lt_prog_compiler_pic_F77=
14217 lt_prog_compiler_static_F77=
14218
14219 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14220 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14221
14222   if test "$GCC" = yes; then
14223     lt_prog_compiler_wl_F77='-Wl,'
14224     lt_prog_compiler_static_F77='-static'
14225
14226     case $host_os in
14227       aix*)
14228       # All AIX code is PIC.
14229       if test "$host_cpu" = ia64; then
14230         # AIX 5 now supports IA64 processor
14231         lt_prog_compiler_static_F77='-Bstatic'
14232       fi
14233       ;;
14234
14235     amigaos*)
14236       # FIXME: we need at least 68020 code to build shared libraries, but
14237       # adding the `-m68020' flag to GCC prevents building anything better,
14238       # like `-m68040'.
14239       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14240       ;;
14241
14242     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14243       # PIC is the default for these OSes.
14244       ;;
14245
14246     mingw* | pw32* | os2*)
14247       # This hack is so that the source file can tell whether it is being
14248       # built for inclusion in a dll (and should export symbols for example).
14249       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14250       ;;
14251
14252     darwin* | rhapsody*)
14253       # PIC is the default on this platform
14254       # Common symbols not allowed in MH_DYLIB files
14255       lt_prog_compiler_pic_F77='-fno-common'
14256       ;;
14257
14258     interix3*)
14259       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14260       # Instead, we relocate shared libraries at runtime.
14261       ;;
14262
14263     msdosdjgpp*)
14264       # Just because we use GCC doesn't mean we suddenly get shared libraries
14265       # on systems that don't support them.
14266       lt_prog_compiler_can_build_shared_F77=no
14267       enable_shared=no
14268       ;;
14269
14270     sysv4*MP*)
14271       if test -d /usr/nec; then
14272         lt_prog_compiler_pic_F77=-Kconform_pic
14273       fi
14274       ;;
14275
14276     hpux*)
14277       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14278       # not for PA HP-UX.
14279       case $host_cpu in
14280       hppa*64*|ia64*)
14281         # +Z the default
14282         ;;
14283       *)
14284         lt_prog_compiler_pic_F77='-fPIC'
14285         ;;
14286       esac
14287       ;;
14288
14289     *)
14290       lt_prog_compiler_pic_F77='-fPIC'
14291       ;;
14292     esac
14293   else
14294     # PORTME Check for flag to pass linker flags through the system compiler.
14295     case $host_os in
14296     aix*)
14297       lt_prog_compiler_wl_F77='-Wl,'
14298       if test "$host_cpu" = ia64; then
14299         # AIX 5 now supports IA64 processor
14300         lt_prog_compiler_static_F77='-Bstatic'
14301       else
14302         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14303       fi
14304       ;;
14305       darwin*)
14306         # PIC is the default on this platform
14307         # Common symbols not allowed in MH_DYLIB files
14308        case $cc_basename in
14309          xlc*)
14310          lt_prog_compiler_pic_F77='-qnocommon'
14311          lt_prog_compiler_wl_F77='-Wl,'
14312          ;;
14313        esac
14314        ;;
14315
14316     mingw* | pw32* | os2*)
14317       # This hack is so that the source file can tell whether it is being
14318       # built for inclusion in a dll (and should export symbols for example).
14319       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14320       ;;
14321
14322     hpux9* | hpux10* | hpux11*)
14323       lt_prog_compiler_wl_F77='-Wl,'
14324       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14325       # not for PA HP-UX.
14326       case $host_cpu in
14327       hppa*64*|ia64*)
14328         # +Z the default
14329         ;;
14330       *)
14331         lt_prog_compiler_pic_F77='+Z'
14332         ;;
14333       esac
14334       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14335       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14336       ;;
14337
14338     irix5* | irix6* | nonstopux*)
14339       lt_prog_compiler_wl_F77='-Wl,'
14340       # PIC (with -KPIC) is the default.
14341       lt_prog_compiler_static_F77='-non_shared'
14342       ;;
14343
14344     newsos6)
14345       lt_prog_compiler_pic_F77='-KPIC'
14346       lt_prog_compiler_static_F77='-Bstatic'
14347       ;;
14348
14349     linux*)
14350       case $cc_basename in
14351       icc* | ecc*)
14352         lt_prog_compiler_wl_F77='-Wl,'
14353         lt_prog_compiler_pic_F77='-KPIC'
14354         lt_prog_compiler_static_F77='-static'
14355         ;;
14356       pgcc* | pgf77* | pgf90* | pgf95*)
14357         # Portland Group compilers (*not* the Pentium gcc compiler,
14358         # which looks to be a dead project)
14359         lt_prog_compiler_wl_F77='-Wl,'
14360         lt_prog_compiler_pic_F77='-fpic'
14361         lt_prog_compiler_static_F77='-Bstatic'
14362         ;;
14363       ccc*)
14364         lt_prog_compiler_wl_F77='-Wl,'
14365         # All Alpha code is PIC.
14366         lt_prog_compiler_static_F77='-non_shared'
14367         ;;
14368       esac
14369       ;;
14370
14371     osf3* | osf4* | osf5*)
14372       lt_prog_compiler_wl_F77='-Wl,'
14373       # All OSF/1 code is PIC.
14374       lt_prog_compiler_static_F77='-non_shared'
14375       ;;
14376
14377     solaris*)
14378       lt_prog_compiler_pic_F77='-KPIC'
14379       lt_prog_compiler_static_F77='-Bstatic'
14380       case $cc_basename in
14381       f77* | f90* | f95*)
14382         lt_prog_compiler_wl_F77='-Qoption ld ';;
14383       *)
14384         lt_prog_compiler_wl_F77='-Wl,';;
14385       esac
14386       ;;
14387
14388     sunos4*)
14389       lt_prog_compiler_wl_F77='-Qoption ld '
14390       lt_prog_compiler_pic_F77='-PIC'
14391       lt_prog_compiler_static_F77='-Bstatic'
14392       ;;
14393
14394     sysv4 | sysv4.2uw2* | sysv4.3*)
14395       lt_prog_compiler_wl_F77='-Wl,'
14396       lt_prog_compiler_pic_F77='-KPIC'
14397       lt_prog_compiler_static_F77='-Bstatic'
14398       ;;
14399
14400     sysv4*MP*)
14401       if test -d /usr/nec ;then
14402         lt_prog_compiler_pic_F77='-Kconform_pic'
14403         lt_prog_compiler_static_F77='-Bstatic'
14404       fi
14405       ;;
14406
14407     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14408       lt_prog_compiler_wl_F77='-Wl,'
14409       lt_prog_compiler_pic_F77='-KPIC'
14410       lt_prog_compiler_static_F77='-Bstatic'
14411       ;;
14412
14413     unicos*)
14414       lt_prog_compiler_wl_F77='-Wl,'
14415       lt_prog_compiler_can_build_shared_F77=no
14416       ;;
14417
14418     uts4*)
14419       lt_prog_compiler_pic_F77='-pic'
14420       lt_prog_compiler_static_F77='-Bstatic'
14421       ;;
14422
14423     *)
14424       lt_prog_compiler_can_build_shared_F77=no
14425       ;;
14426     esac
14427   fi
14428
14429 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14430 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14431
14432 #
14433 # Check to make sure the PIC flag actually works.
14434 #
14435 if test -n "$lt_prog_compiler_pic_F77"; then
14436
14437 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14438 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14439 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14440   echo $ECHO_N "(cached) $ECHO_C" >&6
14441 else
14442   lt_prog_compiler_pic_works_F77=no
14443   ac_outfile=conftest.$ac_objext
14444    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14445    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14446    # Insert the option either (1) after the last *FLAGS variable, or
14447    # (2) before a word containing "conftest.", or (3) at the end.
14448    # Note that $ac_compile itself does not contain backslashes and begins
14449    # with a dollar sign (not a hyphen), so the echo should work correctly.
14450    # The option is referenced via a variable to avoid confusing sed.
14451    lt_compile=`echo "$ac_compile" | $SED \
14452    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14453    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14454    -e 's:$: $lt_compiler_flag:'`
14455    (eval echo "\"\$as_me:14455: $lt_compile\"" >&5)
14456    (eval "$lt_compile" 2>conftest.err)
14457    ac_status=$?
14458    cat conftest.err >&5
14459    echo "$as_me:14459: \$? = $ac_status" >&5
14460    if (exit $ac_status) && test -s "$ac_outfile"; then
14461      # The compiler can only warn and ignore the option if not recognized
14462      # So say no if there are warnings other than the usual output.
14463      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14464      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14465      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14466        lt_prog_compiler_pic_works_F77=yes
14467      fi
14468    fi
14469    $rm conftest*
14470
14471 fi
14472 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14473 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14474
14475 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14476     case $lt_prog_compiler_pic_F77 in
14477      "" | " "*) ;;
14478      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14479      esac
14480 else
14481     lt_prog_compiler_pic_F77=
14482      lt_prog_compiler_can_build_shared_F77=no
14483 fi
14484
14485 fi
14486 case $host_os in
14487   # For platforms which do not support PIC, -DPIC is meaningless:
14488   *djgpp*)
14489     lt_prog_compiler_pic_F77=
14490     ;;
14491   *)
14492     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14493     ;;
14494 esac
14495
14496 #
14497 # Check to make sure the static flag actually works.
14498 #
14499 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14500 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14501 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14502 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14503   echo $ECHO_N "(cached) $ECHO_C" >&6
14504 else
14505   lt_prog_compiler_static_works_F77=no
14506    save_LDFLAGS="$LDFLAGS"
14507    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14508    printf "$lt_simple_link_test_code" > conftest.$ac_ext
14509    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14510      # The linker can only warn and ignore the option if not recognized
14511      # So say no if there are warnings
14512      if test -s conftest.err; then
14513        # Append any errors to the config.log.
14514        cat conftest.err 1>&5
14515        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14516        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14517        if diff conftest.exp conftest.er2 >/dev/null; then
14518          lt_prog_compiler_static_works_F77=yes
14519        fi
14520      else
14521        lt_prog_compiler_static_works_F77=yes
14522      fi
14523    fi
14524    $rm conftest*
14525    LDFLAGS="$save_LDFLAGS"
14526
14527 fi
14528 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14529 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14530
14531 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14532     :
14533 else
14534     lt_prog_compiler_static_F77=
14535 fi
14536
14537
14538 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14539 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14540 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14541   echo $ECHO_N "(cached) $ECHO_C" >&6
14542 else
14543   lt_cv_prog_compiler_c_o_F77=no
14544    $rm -r conftest 2>/dev/null
14545    mkdir conftest
14546    cd conftest
14547    mkdir out
14548    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14549
14550    lt_compiler_flag="-o out/conftest2.$ac_objext"
14551    # Insert the option either (1) after the last *FLAGS variable, or
14552    # (2) before a word containing "conftest.", or (3) at the end.
14553    # Note that $ac_compile itself does not contain backslashes and begins
14554    # with a dollar sign (not a hyphen), so the echo should work correctly.
14555    lt_compile=`echo "$ac_compile" | $SED \
14556    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14557    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14558    -e 's:$: $lt_compiler_flag:'`
14559    (eval echo "\"\$as_me:14559: $lt_compile\"" >&5)
14560    (eval "$lt_compile" 2>out/conftest.err)
14561    ac_status=$?
14562    cat out/conftest.err >&5
14563    echo "$as_me:14563: \$? = $ac_status" >&5
14564    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14565    then
14566      # The compiler can only warn and ignore the option if not recognized
14567      # So say no if there are warnings
14568      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14569      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14570      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14571        lt_cv_prog_compiler_c_o_F77=yes
14572      fi
14573    fi
14574    chmod u+w . 2>&5
14575    $rm conftest*
14576    # SGI C++ compiler will create directory out/ii_files/ for
14577    # template instantiation
14578    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14579    $rm out/* && rmdir out
14580    cd ..
14581    rmdir conftest
14582    $rm conftest*
14583
14584 fi
14585 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14586 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14587
14588
14589 hard_links="nottested"
14590 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14591   # do not overwrite the value of need_locks provided by the user
14592   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14593 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14594   hard_links=yes
14595   $rm conftest*
14596   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14597   touch conftest.a
14598   ln conftest.a conftest.b 2>&5 || hard_links=no
14599   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14600   { echo "$as_me:$LINENO: result: $hard_links" >&5
14601 echo "${ECHO_T}$hard_links" >&6; }
14602   if test "$hard_links" = no; then
14603     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14604 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14605     need_locks=warn
14606   fi
14607 else
14608   need_locks=no
14609 fi
14610
14611 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14612 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14613
14614   runpath_var=
14615   allow_undefined_flag_F77=
14616   enable_shared_with_static_runtimes_F77=no
14617   archive_cmds_F77=
14618   archive_expsym_cmds_F77=
14619   old_archive_From_new_cmds_F77=
14620   old_archive_from_expsyms_cmds_F77=
14621   export_dynamic_flag_spec_F77=
14622   whole_archive_flag_spec_F77=
14623   thread_safe_flag_spec_F77=
14624   hardcode_libdir_flag_spec_F77=
14625   hardcode_libdir_flag_spec_ld_F77=
14626   hardcode_libdir_separator_F77=
14627   hardcode_direct_F77=no
14628   hardcode_minus_L_F77=no
14629   hardcode_shlibpath_var_F77=unsupported
14630   link_all_deplibs_F77=unknown
14631   hardcode_automatic_F77=no
14632   module_cmds_F77=
14633   module_expsym_cmds_F77=
14634   always_export_symbols_F77=no
14635   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14636   # include_expsyms should be a list of space-separated symbols to be *always*
14637   # included in the symbol list
14638   include_expsyms_F77=
14639   # exclude_expsyms can be an extended regexp of symbols to exclude
14640   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14641   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14642   # as well as any symbol that contains `d'.
14643   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14644   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14645   # platforms (ab)use it in PIC code, but their linkers get confused if
14646   # the symbol is explicitly referenced.  Since portable code cannot
14647   # rely on this symbol name, it's probably fine to never include it in
14648   # preloaded symbol tables.
14649   extract_expsyms_cmds=
14650   # Just being paranoid about ensuring that cc_basename is set.
14651   for cc_temp in $compiler""; do
14652   case $cc_temp in
14653     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14654     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14655     \-*) ;;
14656     *) break;;
14657   esac
14658 done
14659 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14660
14661   case $host_os in
14662   cygwin* | mingw* | pw32*)
14663     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14664     # When not using gcc, we currently assume that we are using
14665     # Microsoft Visual C++.
14666     if test "$GCC" != yes; then
14667       with_gnu_ld=no
14668     fi
14669     ;;
14670   interix*)
14671     # we just hope/assume this is gcc and not c89 (= MSVC++)
14672     with_gnu_ld=yes
14673     ;;
14674   openbsd*)
14675     with_gnu_ld=no
14676     ;;
14677   esac
14678
14679   ld_shlibs_F77=yes
14680   if test "$with_gnu_ld" = yes; then
14681     # If archive_cmds runs LD, not CC, wlarc should be empty
14682     wlarc='${wl}'
14683
14684     # Set some defaults for GNU ld with shared library support. These
14685     # are reset later if shared libraries are not supported. Putting them
14686     # here allows them to be overridden if necessary.
14687     runpath_var=LD_RUN_PATH
14688     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14689     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14690     # ancient GNU ld didn't support --whole-archive et. al.
14691     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14692         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14693       else
14694         whole_archive_flag_spec_F77=
14695     fi
14696     supports_anon_versioning=no
14697     case `$LD -v 2>/dev/null` in
14698       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14699       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14700       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14701       *\ 2.11.*) ;; # other 2.11 versions
14702       *) supports_anon_versioning=yes ;;
14703     esac
14704
14705     # See if GNU ld supports shared libraries.
14706     case $host_os in
14707     aix3* | aix4* | aix5*)
14708       # On AIX/PPC, the GNU linker is very broken
14709       if test "$host_cpu" != ia64; then
14710         ld_shlibs_F77=no
14711         cat <<EOF 1>&2
14712
14713 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14714 *** to be unable to reliably create shared libraries on AIX.
14715 *** Therefore, libtool is disabling shared libraries support.  If you
14716 *** really care for shared libraries, you may want to modify your PATH
14717 *** so that a non-GNU linker is found, and then restart.
14718
14719 EOF
14720       fi
14721       ;;
14722
14723     amigaos*)
14724       archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
14725       hardcode_libdir_flag_spec_F77='-L$libdir'
14726       hardcode_minus_L_F77=yes
14727
14728       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14729       # that the semantics of dynamic libraries on AmigaOS, at least up
14730       # to version 4, is to share data among multiple programs linked
14731       # with the same dynamic library.  Since this doesn't match the
14732       # behavior of shared libraries on other platforms, we can't use
14733       # them.
14734       ld_shlibs_F77=no
14735       ;;
14736
14737     beos*)
14738       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14739         allow_undefined_flag_F77=unsupported
14740         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14741         # support --undefined.  This deserves some investigation.  FIXME
14742         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14743       else
14744         ld_shlibs_F77=no
14745       fi
14746       ;;
14747
14748     cygwin* | mingw* | pw32*)
14749       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14750       # as there is no search path for DLLs.
14751       hardcode_libdir_flag_spec_F77='-L$libdir'
14752       allow_undefined_flag_F77=unsupported
14753       always_export_symbols_F77=no
14754       enable_shared_with_static_runtimes_F77=yes
14755       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14756
14757       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14758         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14759         # If the export-symbols file already is a .def file (1st line
14760         # is EXPORTS), use it as is; otherwise, prepend...
14761         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14762           cp $export_symbols $output_objdir/$soname.def;
14763         else
14764           echo EXPORTS > $output_objdir/$soname.def;
14765           cat $export_symbols >> $output_objdir/$soname.def;
14766         fi~
14767         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14768       else
14769         ld_shlibs_F77=no
14770       fi
14771       ;;
14772
14773     interix3*)
14774       hardcode_direct_F77=no
14775       hardcode_shlibpath_var_F77=no
14776       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14777       export_dynamic_flag_spec_F77='${wl}-E'
14778       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14779       # Instead, shared libraries are loaded at an image base (0x10000000 by
14780       # default) and relocated if they conflict, which is a slow very memory
14781       # consuming and fragmenting process.  To avoid this, we pick a random,
14782       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14783       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14784       archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14785       archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14786       ;;
14787
14788     linux*)
14789       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14790         tmp_addflag=
14791         case $cc_basename,$host_cpu in
14792         pgcc*)                          # Portland Group C compiler
14793           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14794           tmp_addflag=' $pic_flag'
14795           ;;
14796         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14797           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14798           tmp_addflag=' $pic_flag -Mnomain' ;;
14799         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14800           tmp_addflag=' -i_dynamic' ;;
14801         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14802           tmp_addflag=' -i_dynamic -nofor_main' ;;
14803         ifc* | ifort*)                  # Intel Fortran compiler
14804           tmp_addflag=' -nofor_main' ;;
14805         esac
14806         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14807
14808         if test $supports_anon_versioning = yes; then
14809           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14810   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14811   $echo "local: *; };" >> $output_objdir/$libname.ver~
14812           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14813         fi
14814       else
14815         ld_shlibs_F77=no
14816       fi
14817       ;;
14818
14819     netbsd*)
14820       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14821         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14822         wlarc=
14823       else
14824         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14825         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14826       fi
14827       ;;
14828
14829     solaris*)
14830       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14831         ld_shlibs_F77=no
14832         cat <<EOF 1>&2
14833
14834 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14835 *** create shared libraries on Solaris systems.  Therefore, libtool
14836 *** is disabling shared libraries support.  We urge you to upgrade GNU
14837 *** binutils to release 2.9.1 or newer.  Another option is to modify
14838 *** your PATH or compiler configuration so that the native linker is
14839 *** used, and then restart.
14840
14841 EOF
14842       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14843         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14844         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14845       else
14846         ld_shlibs_F77=no
14847       fi
14848       ;;
14849
14850     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14851       case `$LD -v 2>&1` in
14852         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14853         ld_shlibs_F77=no
14854         cat <<_LT_EOF 1>&2
14855
14856 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14857 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14858 *** is disabling shared libraries support.  We urge you to upgrade GNU
14859 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14860 *** your PATH or compiler configuration so that the native linker is
14861 *** used, and then restart.
14862
14863 _LT_EOF
14864         ;;
14865         *)
14866           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14867             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14868             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14869             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14870           else
14871             ld_shlibs_F77=no
14872           fi
14873         ;;
14874       esac
14875       ;;
14876
14877     sunos4*)
14878       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14879       wlarc=
14880       hardcode_direct_F77=yes
14881       hardcode_shlibpath_var_F77=no
14882       ;;
14883
14884     *)
14885       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14886         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14887         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14888       else
14889         ld_shlibs_F77=no
14890       fi
14891       ;;
14892     esac
14893
14894     if test "$ld_shlibs_F77" = no; then
14895       runpath_var=
14896       hardcode_libdir_flag_spec_F77=
14897       export_dynamic_flag_spec_F77=
14898       whole_archive_flag_spec_F77=
14899     fi
14900   else
14901     # PORTME fill in a description of your system's linker (not GNU ld)
14902     case $host_os in
14903     aix3*)
14904       allow_undefined_flag_F77=unsupported
14905       always_export_symbols_F77=yes
14906       archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14907       # Note: this linker hardcodes the directories in LIBPATH if there
14908       # are no directories specified by -L.
14909       hardcode_minus_L_F77=yes
14910       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14911         # Neither direct hardcoding nor static linking is supported with a
14912         # broken collect2.
14913         hardcode_direct_F77=unsupported
14914       fi
14915       ;;
14916
14917     aix4* | aix5*)
14918       if test "$host_cpu" = ia64; then
14919         # On IA64, the linker does run time linking by default, so we don't
14920         # have to do anything special.
14921         aix_use_runtimelinking=no
14922         exp_sym_flag='-Bexport'
14923         no_entry_flag=""
14924       else
14925         # If we're using GNU nm, then we don't want the "-C" option.
14926         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14927         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14928           export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14929         else
14930           export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14931         fi
14932         aix_use_runtimelinking=no
14933
14934         # Test if we are trying to use run time linking or normal
14935         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14936         # need to do runtime linking.
14937         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14938           for ld_flag in $LDFLAGS; do
14939           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14940             aix_use_runtimelinking=yes
14941             break
14942           fi
14943           done
14944           ;;
14945         esac
14946
14947         exp_sym_flag='-bexport'
14948         no_entry_flag='-bnoentry'
14949       fi
14950
14951       # When large executables or shared objects are built, AIX ld can
14952       # have problems creating the table of contents.  If linking a library
14953       # or program results in "error TOC overflow" add -mminimal-toc to
14954       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14955       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14956
14957       archive_cmds_F77=''
14958       hardcode_direct_F77=yes
14959       hardcode_libdir_separator_F77=':'
14960       link_all_deplibs_F77=yes
14961
14962       if test "$GCC" = yes; then
14963         case $host_os in aix4.[012]|aix4.[012].*)
14964         # We only want to do this on AIX 4.2 and lower, the check
14965         # below for broken collect2 doesn't work under 4.3+
14966           collect2name=`${CC} -print-prog-name=collect2`
14967           if test -f "$collect2name" && \
14968            strings "$collect2name" | grep resolve_lib_name >/dev/null
14969           then
14970           # We have reworked collect2
14971           hardcode_direct_F77=yes
14972           else
14973           # We have old collect2
14974           hardcode_direct_F77=unsupported
14975           # It fails to find uninstalled libraries when the uninstalled
14976           # path is not listed in the libpath.  Setting hardcode_minus_L
14977           # to unsupported forces relinking
14978           hardcode_minus_L_F77=yes
14979           hardcode_libdir_flag_spec_F77='-L$libdir'
14980           hardcode_libdir_separator_F77=
14981           fi
14982           ;;
14983         esac
14984         shared_flag='-shared'
14985         if test "$aix_use_runtimelinking" = yes; then
14986           shared_flag="$shared_flag "'${wl}-G'
14987         fi
14988       else
14989         # not using gcc
14990         if test "$host_cpu" = ia64; then
14991         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14992         # chokes on -Wl,-G. The following line is correct:
14993           shared_flag='-G'
14994         else
14995           if test "$aix_use_runtimelinking" = yes; then
14996             shared_flag='${wl}-G'
14997           else
14998             shared_flag='${wl}-bM:SRE'
14999           fi
15000         fi
15001       fi
15002
15003       # It seems that -bexpall does not export symbols beginning with
15004       # underscore (_), so it is better to generate a list of symbols to export.
15005       always_export_symbols_F77=yes
15006       if test "$aix_use_runtimelinking" = yes; then
15007         # Warning - without using the other runtime loading flags (-brtl),
15008         # -berok will link without error, but may produce a broken library.
15009         allow_undefined_flag_F77='-berok'
15010        # Determine the default libpath from the value encoded in an empty executable.
15011        cat >conftest.$ac_ext <<_ACEOF
15012       program main
15013
15014       end
15015 _ACEOF
15016 rm -f conftest.$ac_objext conftest$ac_exeext
15017 if { (ac_try="$ac_link"
15018 case "(($ac_try" in
15019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15020   *) ac_try_echo=$ac_try;;
15021 esac
15022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15023   (eval "$ac_link") 2>conftest.er1
15024   ac_status=$?
15025   grep -v '^ *+' conftest.er1 >conftest.err
15026   rm -f conftest.er1
15027   cat conftest.err >&5
15028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15029   (exit $ac_status); } && {
15030          test -z "$ac_f77_werror_flag" ||
15031          test ! -s conftest.err
15032        } && test -s conftest$ac_exeext &&
15033        $as_test_x conftest$ac_exeext; then
15034
15035 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15036 }'`
15037 # Check for a 64-bit object if we didn't find anything.
15038 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15039 }'`; fi
15040 else
15041   echo "$as_me: failed program was:" >&5
15042 sed 's/^/| /' conftest.$ac_ext >&5
15043
15044
15045 fi
15046
15047 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15048       conftest$ac_exeext conftest.$ac_ext
15049 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15050
15051        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15052         archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15053        else
15054         if test "$host_cpu" = ia64; then
15055           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15056           allow_undefined_flag_F77="-z nodefs"
15057           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
15058         else
15059          # Determine the default libpath from the value encoded in an empty executable.
15060          cat >conftest.$ac_ext <<_ACEOF
15061       program main
15062
15063       end
15064 _ACEOF
15065 rm -f conftest.$ac_objext conftest$ac_exeext
15066 if { (ac_try="$ac_link"
15067 case "(($ac_try" in
15068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15069   *) ac_try_echo=$ac_try;;
15070 esac
15071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15072   (eval "$ac_link") 2>conftest.er1
15073   ac_status=$?
15074   grep -v '^ *+' conftest.er1 >conftest.err
15075   rm -f conftest.er1
15076   cat conftest.err >&5
15077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15078   (exit $ac_status); } && {
15079          test -z "$ac_f77_werror_flag" ||
15080          test ! -s conftest.err
15081        } && test -s conftest$ac_exeext &&
15082        $as_test_x conftest$ac_exeext; then
15083
15084 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15085 }'`
15086 # Check for a 64-bit object if we didn't find anything.
15087 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15088 }'`; fi
15089 else
15090   echo "$as_me: failed program was:" >&5
15091 sed 's/^/| /' conftest.$ac_ext >&5
15092
15093
15094 fi
15095
15096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15097       conftest$ac_exeext conftest.$ac_ext
15098 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15099
15100          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15101           # Warning - without using the other run time loading flags,
15102           # -berok will link without error, but may produce a broken library.
15103           no_undefined_flag_F77=' ${wl}-bernotok'
15104           allow_undefined_flag_F77=' ${wl}-berok'
15105           # Exported symbols can be pulled into shared objects from archives
15106           whole_archive_flag_spec_F77='$convenience'
15107           archive_cmds_need_lc_F77=yes
15108           # This is similar to how AIX traditionally builds its shared libraries.
15109           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15110         fi
15111       fi
15112       ;;
15113
15114     amigaos*)
15115       archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
15116       hardcode_libdir_flag_spec_F77='-L$libdir'
15117       hardcode_minus_L_F77=yes
15118       # see comment about different semantics on the GNU ld section
15119       ld_shlibs_F77=no
15120       ;;
15121
15122     bsdi[45]*)
15123       export_dynamic_flag_spec_F77=-rdynamic
15124       ;;
15125
15126     cygwin* | mingw* | pw32*)
15127       # When not using gcc, we currently assume that we are using
15128       # Microsoft Visual C++.
15129       # hardcode_libdir_flag_spec is actually meaningless, as there is
15130       # no search path for DLLs.
15131       hardcode_libdir_flag_spec_F77=' '
15132       allow_undefined_flag_F77=unsupported
15133       # Tell ltmain to make .lib files, not .a files.
15134       libext=lib
15135       # Tell ltmain to make .dll files, not .so files.
15136       shrext_cmds=".dll"
15137       # FIXME: Setting linknames here is a bad hack.
15138       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15139       # The linker will automatically build a .lib file if we build a DLL.
15140       old_archive_From_new_cmds_F77='true'
15141       # FIXME: Should let the user specify the lib program.
15142       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15143       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15144       enable_shared_with_static_runtimes_F77=yes
15145       ;;
15146
15147     darwin* | rhapsody*)
15148       case $host_os in
15149         rhapsody* | darwin1.[012])
15150          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15151          ;;
15152        *) # Darwin 1.3 on
15153          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15154            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15155          else
15156            case ${MACOSX_DEPLOYMENT_TARGET} in
15157              10.[012])
15158                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15159                ;;
15160              10.*)
15161                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15162                ;;
15163            esac
15164          fi
15165          ;;
15166       esac
15167       archive_cmds_need_lc_F77=no
15168       hardcode_direct_F77=no
15169       hardcode_automatic_F77=yes
15170       hardcode_shlibpath_var_F77=unsupported
15171       whole_archive_flag_spec_F77=''
15172       link_all_deplibs_F77=yes
15173     if test "$GCC" = yes ; then
15174         output_verbose_link_cmd='echo'
15175         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15176       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15177       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15178       archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15179       module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15180     else
15181       case $cc_basename in
15182         xlc*)
15183          output_verbose_link_cmd='echo'
15184          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15185          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15186           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15187          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15188           module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15189           ;;
15190        *)
15191          ld_shlibs_F77=no
15192           ;;
15193       esac
15194     fi
15195       ;;
15196
15197     dgux*)
15198       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15199       hardcode_libdir_flag_spec_F77='-L$libdir'
15200       hardcode_shlibpath_var_F77=no
15201       ;;
15202
15203     freebsd1*)
15204       ld_shlibs_F77=no
15205       ;;
15206
15207     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15208     # support.  Future versions do this automatically, but an explicit c++rt0.o
15209     # does not break anything, and helps significantly (at the cost of a little
15210     # extra space).
15211     freebsd2.2*)
15212       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15213       hardcode_libdir_flag_spec_F77='-R$libdir'
15214       hardcode_direct_F77=yes
15215       hardcode_shlibpath_var_F77=no
15216       ;;
15217
15218     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15219     freebsd2*)
15220       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15221       hardcode_direct_F77=yes
15222       hardcode_minus_L_F77=yes
15223       hardcode_shlibpath_var_F77=no
15224       ;;
15225
15226     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15227     freebsd* | kfreebsd*-gnu | dragonfly*)
15228       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15229       hardcode_libdir_flag_spec_F77='-R$libdir'
15230       hardcode_direct_F77=yes
15231       hardcode_shlibpath_var_F77=no
15232       ;;
15233
15234     hpux9*)
15235       if test "$GCC" = yes; then
15236         archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15237       else
15238         archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15239       fi
15240       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15241       hardcode_libdir_separator_F77=:
15242       hardcode_direct_F77=yes
15243
15244       # hardcode_minus_L: Not really in the search PATH,
15245       # but as the default location of the library.
15246       hardcode_minus_L_F77=yes
15247       export_dynamic_flag_spec_F77='${wl}-E'
15248       ;;
15249
15250     hpux10*)
15251       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15252         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15253       else
15254         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15255       fi
15256       if test "$with_gnu_ld" = no; then
15257         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15258         hardcode_libdir_separator_F77=:
15259
15260         hardcode_direct_F77=yes
15261         export_dynamic_flag_spec_F77='${wl}-E'
15262
15263         # hardcode_minus_L: Not really in the search PATH,
15264         # but as the default location of the library.
15265         hardcode_minus_L_F77=yes
15266       fi
15267       ;;
15268
15269     hpux11*)
15270       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15271         case $host_cpu in
15272         hppa*64*)
15273           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15274           ;;
15275         ia64*)
15276           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15277           ;;
15278         *)
15279           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15280           ;;
15281         esac
15282       else
15283         case $host_cpu in
15284         hppa*64*)
15285           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15286           ;;
15287         ia64*)
15288           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15289           ;;
15290         *)
15291           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15292           ;;
15293         esac
15294       fi
15295       if test "$with_gnu_ld" = no; then
15296         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15297         hardcode_libdir_separator_F77=:
15298
15299         case $host_cpu in
15300         hppa*64*|ia64*)
15301           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15302           hardcode_direct_F77=no
15303           hardcode_shlibpath_var_F77=no
15304           ;;
15305         *)
15306           hardcode_direct_F77=yes
15307           export_dynamic_flag_spec_F77='${wl}-E'
15308
15309           # hardcode_minus_L: Not really in the search PATH,
15310           # but as the default location of the library.
15311           hardcode_minus_L_F77=yes
15312           ;;
15313         esac
15314       fi
15315       ;;
15316
15317     irix5* | irix6* | nonstopux*)
15318       if test "$GCC" = yes; then
15319         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15320       else
15321         archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15322         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15323       fi
15324       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15325       hardcode_libdir_separator_F77=:
15326       link_all_deplibs_F77=yes
15327       ;;
15328
15329     netbsd*)
15330       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15331         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15332       else
15333         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15334       fi
15335       hardcode_libdir_flag_spec_F77='-R$libdir'
15336       hardcode_direct_F77=yes
15337       hardcode_shlibpath_var_F77=no
15338       ;;
15339
15340     newsos6)
15341       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15342       hardcode_direct_F77=yes
15343       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15344       hardcode_libdir_separator_F77=:
15345       hardcode_shlibpath_var_F77=no
15346       ;;
15347
15348     openbsd*)
15349       hardcode_direct_F77=yes
15350       hardcode_shlibpath_var_F77=no
15351       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15352         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15353         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15354         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15355         export_dynamic_flag_spec_F77='${wl}-E'
15356       else
15357        case $host_os in
15358          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15359            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15360            hardcode_libdir_flag_spec_F77='-R$libdir'
15361            ;;
15362          *)
15363            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15364            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15365            ;;
15366        esac
15367       fi
15368       ;;
15369
15370     os2*)
15371       hardcode_libdir_flag_spec_F77='-L$libdir'
15372       hardcode_minus_L_F77=yes
15373       allow_undefined_flag_F77=unsupported
15374       archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
15375       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15376       ;;
15377
15378     osf3*)
15379       if test "$GCC" = yes; then
15380         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15381         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15382       else
15383         allow_undefined_flag_F77=' -expect_unresolved \*'
15384         archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15385       fi
15386       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15387       hardcode_libdir_separator_F77=:
15388       ;;
15389
15390     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15391       if test "$GCC" = yes; then
15392         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15393         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15394         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15395       else
15396         allow_undefined_flag_F77=' -expect_unresolved \*'
15397         archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15398         archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15399         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
15400
15401         # Both c and cxx compiler support -rpath directly
15402         hardcode_libdir_flag_spec_F77='-rpath $libdir'
15403       fi
15404       hardcode_libdir_separator_F77=:
15405       ;;
15406
15407     solaris*)
15408       no_undefined_flag_F77=' -z text'
15409       if test "$GCC" = yes; then
15410         wlarc='${wl}'
15411         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15412         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15413           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15414       else
15415         wlarc=''
15416         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15417         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15418         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15419       fi
15420       hardcode_libdir_flag_spec_F77='-R$libdir'
15421       hardcode_shlibpath_var_F77=no
15422       case $host_os in
15423       solaris2.[0-5] | solaris2.[0-5].*) ;;
15424       *)
15425         # The compiler driver will combine linker options so we
15426         # cannot just pass the convience library names through
15427         # without $wl, iff we do not link with $LD.
15428         # Luckily, gcc supports the same syntax we need for Sun Studio.
15429         # Supported since Solaris 2.6 (maybe 2.5.1?)
15430         case $wlarc in
15431         '')
15432           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15433         *)
15434           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
15435         esac ;;
15436       esac
15437       link_all_deplibs_F77=yes
15438       ;;
15439
15440     sunos4*)
15441       if test "x$host_vendor" = xsequent; then
15442         # Use $CC to link under sequent, because it throws in some extra .o
15443         # files that make .init and .fini sections work.
15444         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15445       else
15446         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15447       fi
15448       hardcode_libdir_flag_spec_F77='-L$libdir'
15449       hardcode_direct_F77=yes
15450       hardcode_minus_L_F77=yes
15451       hardcode_shlibpath_var_F77=no
15452       ;;
15453
15454     sysv4)
15455       case $host_vendor in
15456         sni)
15457           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15458           hardcode_direct_F77=yes # is this really true???
15459         ;;
15460         siemens)
15461           ## LD is ld it makes a PLAMLIB
15462           ## CC just makes a GrossModule.
15463           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15464           reload_cmds_F77='$CC -r -o $output$reload_objs'
15465           hardcode_direct_F77=no
15466         ;;
15467         motorola)
15468           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15469           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15470         ;;
15471       esac
15472       runpath_var='LD_RUN_PATH'
15473       hardcode_shlibpath_var_F77=no
15474       ;;
15475
15476     sysv4.3*)
15477       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15478       hardcode_shlibpath_var_F77=no
15479       export_dynamic_flag_spec_F77='-Bexport'
15480       ;;
15481
15482     sysv4*MP*)
15483       if test -d /usr/nec; then
15484         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15485         hardcode_shlibpath_var_F77=no
15486         runpath_var=LD_RUN_PATH
15487         hardcode_runpath_var=yes
15488         ld_shlibs_F77=yes
15489       fi
15490       ;;
15491
15492     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15493       no_undefined_flag_F77='${wl}-z,text'
15494       archive_cmds_need_lc_F77=no
15495       hardcode_shlibpath_var_F77=no
15496       runpath_var='LD_RUN_PATH'
15497
15498       if test "$GCC" = yes; then
15499         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15500         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15501       else
15502         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15503         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15504       fi
15505       ;;
15506
15507     sysv5* | sco3.2v5* | sco5v6*)
15508       # Note: We can NOT use -z defs as we might desire, because we do not
15509       # link with -lc, and that would cause any symbols used from libc to
15510       # always be unresolved, which means just about no library would
15511       # ever link correctly.  If we're not using GNU ld we use -z text
15512       # though, which does catch some bad symbols but isn't as heavy-handed
15513       # as -z defs.
15514       no_undefined_flag_F77='${wl}-z,text'
15515       allow_undefined_flag_F77='${wl}-z,nodefs'
15516       archive_cmds_need_lc_F77=no
15517       hardcode_shlibpath_var_F77=no
15518       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15519       hardcode_libdir_separator_F77=':'
15520       link_all_deplibs_F77=yes
15521       export_dynamic_flag_spec_F77='${wl}-Bexport'
15522       runpath_var='LD_RUN_PATH'
15523
15524       if test "$GCC" = yes; then
15525         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15526         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15527       else
15528         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15529         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15530       fi
15531       ;;
15532
15533     uts4*)
15534       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15535       hardcode_libdir_flag_spec_F77='-L$libdir'
15536       hardcode_shlibpath_var_F77=no
15537       ;;
15538
15539     *)
15540       ld_shlibs_F77=no
15541       ;;
15542     esac
15543   fi
15544
15545 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15546 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15547 test "$ld_shlibs_F77" = no && can_build_shared=no
15548
15549 #
15550 # Do we need to explicitly link libc?
15551 #
15552 case "x$archive_cmds_need_lc_F77" in
15553 x|xyes)
15554   # Assume -lc should be added
15555   archive_cmds_need_lc_F77=yes
15556
15557   if test "$enable_shared" = yes && test "$GCC" = yes; then
15558     case $archive_cmds_F77 in
15559     *'~'*)
15560       # FIXME: we may have to deal with multi-command sequences.
15561       ;;
15562     '$CC '*)
15563       # Test whether the compiler implicitly links with -lc since on some
15564       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15565       # to ld, don't add -lc before -lgcc.
15566       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15567 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15568       $rm conftest*
15569       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15570
15571       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15572   (eval $ac_compile) 2>&5
15573   ac_status=$?
15574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15575   (exit $ac_status); } 2>conftest.err; then
15576         soname=conftest
15577         lib=conftest
15578         libobjs=conftest.$ac_objext
15579         deplibs=
15580         wl=$lt_prog_compiler_wl_F77
15581         pic_flag=$lt_prog_compiler_pic_F77
15582         compiler_flags=-v
15583         linker_flags=-v
15584         verstring=
15585         output_objdir=.
15586         libname=conftest
15587         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15588         allow_undefined_flag_F77=
15589         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15590   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15591   ac_status=$?
15592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15593   (exit $ac_status); }
15594         then
15595           archive_cmds_need_lc_F77=no
15596         else
15597           archive_cmds_need_lc_F77=yes
15598         fi
15599         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15600       else
15601         cat conftest.err 1>&5
15602       fi
15603       $rm conftest*
15604       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15605 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15606       ;;
15607     esac
15608   fi
15609   ;;
15610 esac
15611
15612 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15613 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15614 library_names_spec=
15615 libname_spec='lib$name'
15616 soname_spec=
15617 shrext_cmds=".so"
15618 postinstall_cmds=
15619 postuninstall_cmds=
15620 finish_cmds=
15621 finish_eval=
15622 shlibpath_var=
15623 shlibpath_overrides_runpath=unknown
15624 version_type=none
15625 dynamic_linker="$host_os ld.so"
15626 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15627 if test "$GCC" = yes; then
15628   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15629   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15630     # if the path contains ";" then we assume it to be the separator
15631     # otherwise default to the standard path separator (i.e. ":") - it is
15632     # assumed that no part of a normal pathname contains ";" but that should
15633     # okay in the real world where ";" in dirpaths is itself problematic.
15634     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15635   else
15636     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15637   fi
15638 else
15639   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15640 fi
15641 need_lib_prefix=unknown
15642 hardcode_into_libs=no
15643
15644 # when you set need_version to no, make sure it does not cause -set_version
15645 # flags to be left without arguments
15646 need_version=unknown
15647
15648 case $host_os in
15649 aix3*)
15650   version_type=linux
15651   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15652   shlibpath_var=LIBPATH
15653
15654   # AIX 3 has no versioning support, so we append a major version to the name.
15655   soname_spec='${libname}${release}${shared_ext}$major'
15656   ;;
15657
15658 aix4* | aix5*)
15659   version_type=linux
15660   need_lib_prefix=no
15661   need_version=no
15662   hardcode_into_libs=yes
15663   if test "$host_cpu" = ia64; then
15664     # AIX 5 supports IA64
15665     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15666     shlibpath_var=LD_LIBRARY_PATH
15667   else
15668     # With GCC up to 2.95.x, collect2 would create an import file
15669     # for dependence libraries.  The import file would start with
15670     # the line `#! .'.  This would cause the generated library to
15671     # depend on `.', always an invalid library.  This was fixed in
15672     # development snapshots of GCC prior to 3.0.
15673     case $host_os in
15674       aix4 | aix4.[01] | aix4.[01].*)
15675       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15676            echo ' yes '
15677            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15678         :
15679       else
15680         can_build_shared=no
15681       fi
15682       ;;
15683     esac
15684     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15685     # soname into executable. Probably we can add versioning support to
15686     # collect2, so additional links can be useful in future.
15687     if test "$aix_use_runtimelinking" = yes; then
15688       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15689       # instead of lib<name>.a to let people know that these are not
15690       # typical AIX shared libraries.
15691       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15692     else
15693       # We preserve .a as extension for shared libraries through AIX4.2
15694       # and later when we are not doing run time linking.
15695       library_names_spec='${libname}${release}.a $libname.a'
15696       soname_spec='${libname}${release}${shared_ext}$major'
15697     fi
15698     shlibpath_var=LIBPATH
15699   fi
15700   ;;
15701
15702 amigaos*)
15703   library_names_spec='$libname.ixlibrary $libname.a'
15704   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15705   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15706   ;;
15707
15708 beos*)
15709   library_names_spec='${libname}${shared_ext}'
15710   dynamic_linker="$host_os ld.so"
15711   shlibpath_var=LIBRARY_PATH
15712   ;;
15713
15714 bsdi[45]*)
15715   version_type=linux
15716   need_version=no
15717   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15718   soname_spec='${libname}${release}${shared_ext}$major'
15719   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15720   shlibpath_var=LD_LIBRARY_PATH
15721   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15722   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15723   # the default ld.so.conf also contains /usr/contrib/lib and
15724   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15725   # libtool to hard-code these into programs
15726   ;;
15727
15728 cygwin* | mingw* | pw32*)
15729   version_type=windows
15730   shrext_cmds=".dll"
15731   need_version=no
15732   need_lib_prefix=no
15733
15734   case $GCC,$host_os in
15735   yes,cygwin* | yes,mingw* | yes,pw32*)
15736     library_names_spec='$libname.dll.a'
15737     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15738     postinstall_cmds='base_file=`basename \${file}`~
15739       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15740       dldir=$destdir/`dirname \$dlpath`~
15741       test -d \$dldir || mkdir -p \$dldir~
15742       $install_prog $dir/$dlname \$dldir/$dlname~
15743       chmod a+x \$dldir/$dlname'
15744     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15745       dlpath=$dir/\$dldll~
15746        $rm \$dlpath'
15747     shlibpath_overrides_runpath=yes
15748
15749     case $host_os in
15750     cygwin*)
15751       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15752       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15753       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15754       ;;
15755     mingw*)
15756       # MinGW DLLs use traditional 'lib' prefix
15757       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15758       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15759       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15760         # It is most probably a Windows format PATH printed by
15761         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15762         # path with ; separators, and with drive letters. We can handle the
15763         # drive letters (cygwin fileutils understands them), so leave them,
15764         # especially as we might pass files found there to a mingw objdump,
15765         # which wouldn't understand a cygwinified path. Ahh.
15766         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15767       else
15768         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15769       fi
15770       ;;
15771     pw32*)
15772       # pw32 DLLs use 'pw' prefix rather than 'lib'
15773       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15774       ;;
15775     esac
15776     ;;
15777
15778   *)
15779     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15780     ;;
15781   esac
15782   dynamic_linker='Win32 ld.exe'
15783   # FIXME: first we should search . and the directory the executable is in
15784   shlibpath_var=PATH
15785   ;;
15786
15787 darwin* | rhapsody*)
15788   dynamic_linker="$host_os dyld"
15789   version_type=darwin
15790   need_lib_prefix=no
15791   need_version=no
15792   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15793   soname_spec='${libname}${release}${major}$shared_ext'
15794   shlibpath_overrides_runpath=yes
15795   shlibpath_var=DYLD_LIBRARY_PATH
15796   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15797   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15798   if test "$GCC" = yes; then
15799     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15800   else
15801     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15802   fi
15803   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15804   ;;
15805
15806 dgux*)
15807   version_type=linux
15808   need_lib_prefix=no
15809   need_version=no
15810   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15811   soname_spec='${libname}${release}${shared_ext}$major'
15812   shlibpath_var=LD_LIBRARY_PATH
15813   ;;
15814
15815 freebsd1*)
15816   dynamic_linker=no
15817   ;;
15818
15819 kfreebsd*-gnu)
15820   version_type=linux
15821   need_lib_prefix=no
15822   need_version=no
15823   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15824   soname_spec='${libname}${release}${shared_ext}$major'
15825   shlibpath_var=LD_LIBRARY_PATH
15826   shlibpath_overrides_runpath=no
15827   hardcode_into_libs=yes
15828   dynamic_linker='GNU ld.so'
15829   ;;
15830
15831 freebsd* | dragonfly*)
15832   # DragonFly does not have aout.  When/if they implement a new
15833   # versioning mechanism, adjust this.
15834   if test -x /usr/bin/objformat; then
15835     objformat=`/usr/bin/objformat`
15836   else
15837     case $host_os in
15838     freebsd[123]*) objformat=aout ;;
15839     *) objformat=elf ;;
15840     esac
15841   fi
15842   version_type=freebsd-$objformat
15843   case $version_type in
15844     freebsd-elf*)
15845       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15846       need_version=no
15847       need_lib_prefix=no
15848       ;;
15849     freebsd-*)
15850       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15851       need_version=yes
15852       ;;
15853   esac
15854   shlibpath_var=LD_LIBRARY_PATH
15855   case $host_os in
15856   freebsd2*)
15857     shlibpath_overrides_runpath=yes
15858     ;;
15859   freebsd3.[01]* | freebsdelf3.[01]*)
15860     shlibpath_overrides_runpath=yes
15861     hardcode_into_libs=yes
15862     ;;
15863   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15864   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15865     shlibpath_overrides_runpath=no
15866     hardcode_into_libs=yes
15867     ;;
15868   freebsd*) # from 4.6 on
15869     shlibpath_overrides_runpath=yes
15870     hardcode_into_libs=yes
15871     ;;
15872   esac
15873   ;;
15874
15875 gnu*)
15876   version_type=linux
15877   need_lib_prefix=no
15878   need_version=no
15879   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15880   soname_spec='${libname}${release}${shared_ext}$major'
15881   shlibpath_var=LD_LIBRARY_PATH
15882   hardcode_into_libs=yes
15883   ;;
15884
15885 hpux9* | hpux10* | hpux11*)
15886   # Give a soname corresponding to the major version so that dld.sl refuses to
15887   # link against other versions.
15888   version_type=sunos
15889   need_lib_prefix=no
15890   need_version=no
15891   case $host_cpu in
15892   ia64*)
15893     shrext_cmds='.so'
15894     hardcode_into_libs=yes
15895     dynamic_linker="$host_os dld.so"
15896     shlibpath_var=LD_LIBRARY_PATH
15897     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15898     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15899     soname_spec='${libname}${release}${shared_ext}$major'
15900     if test "X$HPUX_IA64_MODE" = X32; then
15901       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15902     else
15903       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15904     fi
15905     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15906     ;;
15907    hppa*64*)
15908      shrext_cmds='.sl'
15909      hardcode_into_libs=yes
15910      dynamic_linker="$host_os dld.sl"
15911      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15912      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15913      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15914      soname_spec='${libname}${release}${shared_ext}$major'
15915      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15916      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15917      ;;
15918    *)
15919     shrext_cmds='.sl'
15920     dynamic_linker="$host_os dld.sl"
15921     shlibpath_var=SHLIB_PATH
15922     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15923     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15924     soname_spec='${libname}${release}${shared_ext}$major'
15925     ;;
15926   esac
15927   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15928   postinstall_cmds='chmod 555 $lib'
15929   ;;
15930
15931 interix3*)
15932   version_type=linux
15933   need_lib_prefix=no
15934   need_version=no
15935   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15936   soname_spec='${libname}${release}${shared_ext}$major'
15937   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15938   shlibpath_var=LD_LIBRARY_PATH
15939   shlibpath_overrides_runpath=no
15940   hardcode_into_libs=yes
15941   ;;
15942
15943 irix5* | irix6* | nonstopux*)
15944   case $host_os in
15945     nonstopux*) version_type=nonstopux ;;
15946     *)
15947         if test "$lt_cv_prog_gnu_ld" = yes; then
15948                 version_type=linux
15949         else
15950                 version_type=irix
15951         fi ;;
15952   esac
15953   need_lib_prefix=no
15954   need_version=no
15955   soname_spec='${libname}${release}${shared_ext}$major'
15956   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15957   case $host_os in
15958   irix5* | nonstopux*)
15959     libsuff= shlibsuff=
15960     ;;
15961   *)
15962     case $LD in # libtool.m4 will add one of these switches to LD
15963     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15964       libsuff= shlibsuff= libmagic=32-bit;;
15965     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15966       libsuff=32 shlibsuff=N32 libmagic=N32;;
15967     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15968       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15969     *) libsuff= shlibsuff= libmagic=never-match;;
15970     esac
15971     ;;
15972   esac
15973   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15974   shlibpath_overrides_runpath=no
15975   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15976   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15977   hardcode_into_libs=yes
15978   ;;
15979
15980 # No shared lib support for Linux oldld, aout, or coff.
15981 linux*oldld* | linux*aout* | linux*coff*)
15982   dynamic_linker=no
15983   ;;
15984
15985 # This must be Linux ELF.
15986 linux*)
15987   version_type=linux
15988   need_lib_prefix=no
15989   need_version=no
15990   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15991   soname_spec='${libname}${release}${shared_ext}$major'
15992   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15993   shlibpath_var=LD_LIBRARY_PATH
15994   shlibpath_overrides_runpath=no
15995   # This implies no fast_install, which is unacceptable.
15996   # Some rework will be needed to allow for fast_install
15997   # before this can be enabled.
15998   hardcode_into_libs=yes
15999
16000   # find out which ABI we are using
16001   libsuff=
16002   case "$host_cpu" in
16003   x86_64*|s390x*|powerpc64*)
16004     echo '#line 16004 "configure"' > conftest.$ac_ext
16005     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16006   (eval $ac_compile) 2>&5
16007   ac_status=$?
16008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16009   (exit $ac_status); }; then
16010       case `/usr/bin/file conftest.$ac_objext` in
16011       *64-bit*)
16012         libsuff=64
16013         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
16014         ;;
16015       esac
16016     fi
16017     rm -rf conftest*
16018     ;;
16019   esac
16020
16021   # Append ld.so.conf contents to the search path
16022   if test -f /etc/ld.so.conf; then
16023     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16024     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
16025   fi
16026
16027   # We used to test for /lib/ld.so.1 and disable shared libraries on
16028   # powerpc, because MkLinux only supported shared libraries with the
16029   # GNU dynamic linker.  Since this was broken with cross compilers,
16030   # most powerpc-linux boxes support dynamic linking these days and
16031   # people can always --disable-shared, the test was removed, and we
16032   # assume the GNU/Linux dynamic linker is in use.
16033   dynamic_linker='GNU/Linux ld.so'
16034   ;;
16035
16036 knetbsd*-gnu)
16037   version_type=linux
16038   need_lib_prefix=no
16039   need_version=no
16040   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16041   soname_spec='${libname}${release}${shared_ext}$major'
16042   shlibpath_var=LD_LIBRARY_PATH
16043   shlibpath_overrides_runpath=no
16044   hardcode_into_libs=yes
16045   dynamic_linker='GNU ld.so'
16046   ;;
16047
16048 netbsd*)
16049   version_type=sunos
16050   need_lib_prefix=no
16051   need_version=no
16052   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16053     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16054     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16055     dynamic_linker='NetBSD (a.out) ld.so'
16056   else
16057     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16058     soname_spec='${libname}${release}${shared_ext}$major'
16059     dynamic_linker='NetBSD ld.elf_so'
16060   fi
16061   shlibpath_var=LD_LIBRARY_PATH
16062   shlibpath_overrides_runpath=yes
16063   hardcode_into_libs=yes
16064   ;;
16065
16066 newsos6)
16067   version_type=linux
16068   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16069   shlibpath_var=LD_LIBRARY_PATH
16070   shlibpath_overrides_runpath=yes
16071   ;;
16072
16073 nto-qnx*)
16074   version_type=linux
16075   need_lib_prefix=no
16076   need_version=no
16077   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16078   soname_spec='${libname}${release}${shared_ext}$major'
16079   shlibpath_var=LD_LIBRARY_PATH
16080   shlibpath_overrides_runpath=yes
16081   ;;
16082
16083 openbsd*)
16084   version_type=sunos
16085   sys_lib_dlsearch_path_spec="/usr/lib"
16086   need_lib_prefix=no
16087   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16088   case $host_os in
16089     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16090     *)                         need_version=no  ;;
16091   esac
16092   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16093   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16094   shlibpath_var=LD_LIBRARY_PATH
16095   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16096     case $host_os in
16097       openbsd2.[89] | openbsd2.[89].*)
16098         shlibpath_overrides_runpath=no
16099         ;;
16100       *)
16101         shlibpath_overrides_runpath=yes
16102         ;;
16103       esac
16104   else
16105     shlibpath_overrides_runpath=yes
16106   fi
16107   ;;
16108
16109 os2*)
16110   libname_spec='$name'
16111   shrext_cmds=".dll"
16112   need_lib_prefix=no
16113   library_names_spec='$libname${shared_ext} $libname.a'
16114   dynamic_linker='OS/2 ld.exe'
16115   shlibpath_var=LIBPATH
16116   ;;
16117
16118 osf3* | osf4* | osf5*)
16119   version_type=osf
16120   need_lib_prefix=no
16121   need_version=no
16122   soname_spec='${libname}${release}${shared_ext}$major'
16123   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16124   shlibpath_var=LD_LIBRARY_PATH
16125   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16126   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16127   ;;
16128
16129 solaris*)
16130   version_type=linux
16131   need_lib_prefix=no
16132   need_version=no
16133   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16134   soname_spec='${libname}${release}${shared_ext}$major'
16135   shlibpath_var=LD_LIBRARY_PATH
16136   shlibpath_overrides_runpath=yes
16137   hardcode_into_libs=yes
16138   # ldd complains unless libraries are executable
16139   postinstall_cmds='chmod +x $lib'
16140   ;;
16141
16142 sunos4*)
16143   version_type=sunos
16144   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16145   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16146   shlibpath_var=LD_LIBRARY_PATH
16147   shlibpath_overrides_runpath=yes
16148   if test "$with_gnu_ld" = yes; then
16149     need_lib_prefix=no
16150   fi
16151   need_version=yes
16152   ;;
16153
16154 sysv4 | sysv4.3*)
16155   version_type=linux
16156   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16157   soname_spec='${libname}${release}${shared_ext}$major'
16158   shlibpath_var=LD_LIBRARY_PATH
16159   case $host_vendor in
16160     sni)
16161       shlibpath_overrides_runpath=no
16162       need_lib_prefix=no
16163       export_dynamic_flag_spec='${wl}-Blargedynsym'
16164       runpath_var=LD_RUN_PATH
16165       ;;
16166     siemens)
16167       need_lib_prefix=no
16168       ;;
16169     motorola)
16170       need_lib_prefix=no
16171       need_version=no
16172       shlibpath_overrides_runpath=no
16173       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16174       ;;
16175   esac
16176   ;;
16177
16178 sysv4*MP*)
16179   if test -d /usr/nec ;then
16180     version_type=linux
16181     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16182     soname_spec='$libname${shared_ext}.$major'
16183     shlibpath_var=LD_LIBRARY_PATH
16184   fi
16185   ;;
16186
16187 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16188   version_type=freebsd-elf
16189   need_lib_prefix=no
16190   need_version=no
16191   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16192   soname_spec='${libname}${release}${shared_ext}$major'
16193   shlibpath_var=LD_LIBRARY_PATH
16194   hardcode_into_libs=yes
16195   if test "$with_gnu_ld" = yes; then
16196     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16197     shlibpath_overrides_runpath=no
16198   else
16199     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16200     shlibpath_overrides_runpath=yes
16201     case $host_os in
16202       sco3.2v5*)
16203         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16204         ;;
16205     esac
16206   fi
16207   sys_lib_dlsearch_path_spec='/usr/lib'
16208   ;;
16209
16210 uts4*)
16211   version_type=linux
16212   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16213   soname_spec='${libname}${release}${shared_ext}$major'
16214   shlibpath_var=LD_LIBRARY_PATH
16215   ;;
16216
16217 *)
16218   dynamic_linker=no
16219   ;;
16220 esac
16221 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16222 echo "${ECHO_T}$dynamic_linker" >&6; }
16223 test "$dynamic_linker" = no && can_build_shared=no
16224
16225 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16226 if test "$GCC" = yes; then
16227   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16228 fi
16229
16230 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16231 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16232 hardcode_action_F77=
16233 if test -n "$hardcode_libdir_flag_spec_F77" || \
16234    test -n "$runpath_var_F77" || \
16235    test "X$hardcode_automatic_F77" = "Xyes" ; then
16236
16237   # We can hardcode non-existant directories.
16238   if test "$hardcode_direct_F77" != no &&
16239      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16240      # have to relink, otherwise we might link with an installed library
16241      # when we should be linking with a yet-to-be-installed one
16242      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16243      test "$hardcode_minus_L_F77" != no; then
16244     # Linking always hardcodes the temporary library directory.
16245     hardcode_action_F77=relink
16246   else
16247     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16248     hardcode_action_F77=immediate
16249   fi
16250 else
16251   # We cannot hardcode anything, or else we can only hardcode existing
16252   # directories.
16253   hardcode_action_F77=unsupported
16254 fi
16255 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16256 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16257
16258 if test "$hardcode_action_F77" = relink; then
16259   # Fast installation is not supported
16260   enable_fast_install=no
16261 elif test "$shlibpath_overrides_runpath" = yes ||
16262      test "$enable_shared" = no; then
16263   # Fast installation is not necessary
16264   enable_fast_install=needless
16265 fi
16266
16267
16268 # The else clause should only fire when bootstrapping the
16269 # libtool distribution, otherwise you forgot to ship ltmain.sh
16270 # with your package, and you will get complaints that there are
16271 # no rules to generate ltmain.sh.
16272 if test -f "$ltmain"; then
16273   # See if we are running on zsh, and set the options which allow our commands through
16274   # without removal of \ escapes.
16275   if test -n "${ZSH_VERSION+set}" ; then
16276     setopt NO_GLOB_SUBST
16277   fi
16278   # Now quote all the things that may contain metacharacters while being
16279   # careful not to overquote the AC_SUBSTed values.  We take copies of the
16280   # variables and quote the copies for generation of the libtool script.
16281   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16282     SED SHELL STRIP \
16283     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16284     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16285     deplibs_check_method reload_flag reload_cmds need_locks \
16286     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16287     lt_cv_sys_global_symbol_to_c_name_address \
16288     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16289     old_postinstall_cmds old_postuninstall_cmds \
16290     compiler_F77 \
16291     CC_F77 \
16292     LD_F77 \
16293     lt_prog_compiler_wl_F77 \
16294     lt_prog_compiler_pic_F77 \
16295     lt_prog_compiler_static_F77 \
16296     lt_prog_compiler_no_builtin_flag_F77 \
16297     export_dynamic_flag_spec_F77 \
16298     thread_safe_flag_spec_F77 \
16299     whole_archive_flag_spec_F77 \
16300     enable_shared_with_static_runtimes_F77 \
16301     old_archive_cmds_F77 \
16302     old_archive_from_new_cmds_F77 \
16303     predep_objects_F77 \
16304     postdep_objects_F77 \
16305     predeps_F77 \
16306     postdeps_F77 \
16307     compiler_lib_search_path_F77 \
16308     archive_cmds_F77 \
16309     archive_expsym_cmds_F77 \
16310     postinstall_cmds_F77 \
16311     postuninstall_cmds_F77 \
16312     old_archive_from_expsyms_cmds_F77 \
16313     allow_undefined_flag_F77 \
16314     no_undefined_flag_F77 \
16315     export_symbols_cmds_F77 \
16316     hardcode_libdir_flag_spec_F77 \
16317     hardcode_libdir_flag_spec_ld_F77 \
16318     hardcode_libdir_separator_F77 \
16319     hardcode_automatic_F77 \
16320     module_cmds_F77 \
16321     module_expsym_cmds_F77 \
16322     lt_cv_prog_compiler_c_o_F77 \
16323     exclude_expsyms_F77 \
16324     include_expsyms_F77; do
16325
16326     case $var in
16327     old_archive_cmds_F77 | \
16328     old_archive_from_new_cmds_F77 | \
16329     archive_cmds_F77 | \
16330     archive_expsym_cmds_F77 | \
16331     module_cmds_F77 | \
16332     module_expsym_cmds_F77 | \
16333     old_archive_from_expsyms_cmds_F77 | \
16334     export_symbols_cmds_F77 | \
16335     extract_expsyms_cmds | reload_cmds | finish_cmds | \
16336     postinstall_cmds | postuninstall_cmds | \
16337     old_postinstall_cmds | old_postuninstall_cmds | \
16338     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16339       # Double-quote double-evaled strings.
16340       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16341       ;;
16342     *)
16343       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16344       ;;
16345     esac
16346   done
16347
16348   case $lt_echo in
16349   *'\$0 --fallback-echo"')
16350     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16351     ;;
16352   esac
16353
16354 cfgfile="$ofile"
16355
16356   cat <<__EOF__ >> "$cfgfile"
16357 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16358
16359 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16360
16361 # Shell to use when invoking shell scripts.
16362 SHELL=$lt_SHELL
16363
16364 # Whether or not to build shared libraries.
16365 build_libtool_libs=$enable_shared
16366
16367 # Whether or not to build static libraries.
16368 build_old_libs=$enable_static
16369
16370 # Whether or not to add -lc for building shared libraries.
16371 build_libtool_need_lc=$archive_cmds_need_lc_F77
16372
16373 # Whether or not to disallow shared libs when runtime libs are static
16374 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16375
16376 # Whether or not to optimize for fast installation.
16377 fast_install=$enable_fast_install
16378
16379 # The host system.
16380 host_alias=$host_alias
16381 host=$host
16382 host_os=$host_os
16383
16384 # The build system.
16385 build_alias=$build_alias
16386 build=$build
16387 build_os=$build_os
16388
16389 # An echo program that does not interpret backslashes.
16390 echo=$lt_echo
16391
16392 # The archiver.
16393 AR=$lt_AR
16394 AR_FLAGS=$lt_AR_FLAGS
16395
16396 # A C compiler.
16397 LTCC=$lt_LTCC
16398
16399 # LTCC compiler flags.
16400 LTCFLAGS=$lt_LTCFLAGS
16401
16402 # A language-specific compiler.
16403 CC=$lt_compiler_F77
16404
16405 # Is the compiler the GNU C compiler?
16406 with_gcc=$GCC_F77
16407
16408 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
16409 gcc_ver=\`gcc -dumpversion\`
16410
16411 # An ERE matcher.
16412 EGREP=$lt_EGREP
16413
16414 # The linker used to build libraries.
16415 LD=$lt_LD_F77
16416
16417 # Whether we need hard or soft links.
16418 LN_S=$lt_LN_S
16419
16420 # A BSD-compatible nm program.
16421 NM=$lt_NM
16422
16423 # A symbol stripping program
16424 STRIP=$lt_STRIP
16425
16426 # Used to examine libraries when file_magic_cmd begins "file"
16427 MAGIC_CMD=$MAGIC_CMD
16428
16429 # Used on cygwin: DLL creation program.
16430 DLLTOOL="$DLLTOOL"
16431
16432 # Used on cygwin: object dumper.
16433 OBJDUMP="$OBJDUMP"
16434
16435 # Used on cygwin: assembler.
16436 AS="$AS"
16437
16438 # The name of the directory that contains temporary libtool files.
16439 objdir=$objdir
16440
16441 # How to create reloadable object files.
16442 reload_flag=$lt_reload_flag
16443 reload_cmds=$lt_reload_cmds
16444
16445 # How to pass a linker flag through the compiler.
16446 wl=$lt_lt_prog_compiler_wl_F77
16447
16448 # Object file suffix (normally "o").
16449 objext="$ac_objext"
16450
16451 # Old archive suffix (normally "a").
16452 libext="$libext"
16453
16454 # Shared library suffix (normally ".so").
16455 shrext_cmds='$shrext_cmds'
16456
16457 # Executable file suffix (normally "").
16458 exeext="$exeext"
16459
16460 # Additional compiler flags for building library objects.
16461 pic_flag=$lt_lt_prog_compiler_pic_F77
16462 pic_mode=$pic_mode
16463
16464 # What is the maximum length of a command?
16465 max_cmd_len=$lt_cv_sys_max_cmd_len
16466
16467 # Does compiler simultaneously support -c and -o options?
16468 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16469
16470 # Must we lock files when doing compilation?
16471 need_locks=$lt_need_locks
16472
16473 # Do we need the lib prefix for modules?
16474 need_lib_prefix=$need_lib_prefix
16475
16476 # Do we need a version for libraries?
16477 need_version=$need_version
16478
16479 # Whether dlopen is supported.
16480 dlopen_support=$enable_dlopen
16481
16482 # Whether dlopen of programs is supported.
16483 dlopen_self=$enable_dlopen_self
16484
16485 # Whether dlopen of statically linked programs is supported.
16486 dlopen_self_static=$enable_dlopen_self_static
16487
16488 # Compiler flag to prevent dynamic linking.
16489 link_static_flag=$lt_lt_prog_compiler_static_F77
16490
16491 # Compiler flag to turn off builtin functions.
16492 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16493
16494 # Compiler flag to allow reflexive dlopens.
16495 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16496
16497 # Compiler flag to generate shared objects directly from archives.
16498 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16499
16500 # Compiler flag to generate thread-safe objects.
16501 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16502
16503 # Library versioning type.
16504 version_type=$version_type
16505
16506 # Format of library name prefix.
16507 libname_spec=$lt_libname_spec
16508
16509 # List of archive names.  First name is the real one, the rest are links.
16510 # The last name is the one that the linker finds with -lNAME.
16511 library_names_spec=$lt_library_names_spec
16512
16513 # The coded name of the library, if different from the real name.
16514 soname_spec=$lt_soname_spec
16515
16516 # Commands used to build and install an old-style archive.
16517 RANLIB=$lt_RANLIB
16518 old_archive_cmds=$lt_old_archive_cmds_F77
16519 old_postinstall_cmds=$lt_old_postinstall_cmds
16520 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16521
16522 # Create an old-style archive from a shared archive.
16523 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16524
16525 # Create a temporary old-style archive to link instead of a shared archive.
16526 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16527
16528 # Commands used to build and install a shared archive.
16529 archive_cmds=$lt_archive_cmds_F77
16530 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16531 postinstall_cmds=$lt_postinstall_cmds
16532 postuninstall_cmds=$lt_postuninstall_cmds
16533
16534 # Commands used to build a loadable module (assumed same as above if empty)
16535 module_cmds=$lt_module_cmds_F77
16536 module_expsym_cmds=$lt_module_expsym_cmds_F77
16537
16538 # Commands to strip libraries.
16539 old_striplib=$lt_old_striplib
16540 striplib=$lt_striplib
16541
16542 # Dependencies to place before the objects being linked to create a
16543 # shared library.
16544 predep_objects=\`echo $lt_predep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
16545
16546 # Dependencies to place after the objects being linked to create a
16547 # shared library.
16548 postdep_objects=\`echo $lt_postdep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
16549
16550 # Dependencies to place before the objects being linked to create a
16551 # shared library.
16552 predeps=$lt_predeps_F77
16553
16554 # Dependencies to place after the objects being linked to create a
16555 # shared library.
16556 postdeps=$lt_postdeps_F77
16557
16558 # The library search path used internally by the compiler when linking
16559 # a shared library.
16560 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
16561
16562 # Method to check whether dependent libraries are shared objects.
16563 deplibs_check_method=$lt_deplibs_check_method
16564
16565 # Command to use when deplibs_check_method == file_magic.
16566 file_magic_cmd=$lt_file_magic_cmd
16567
16568 # Flag that allows shared libraries with undefined symbols to be built.
16569 allow_undefined_flag=$lt_allow_undefined_flag_F77
16570
16571 # Flag that forces no undefined symbols.
16572 no_undefined_flag=$lt_no_undefined_flag_F77
16573
16574 # Commands used to finish a libtool library installation in a directory.
16575 finish_cmds=$lt_finish_cmds
16576
16577 # Same as above, but a single script fragment to be evaled but not shown.
16578 finish_eval=$lt_finish_eval
16579
16580 # Take the output of nm and produce a listing of raw symbols and C names.
16581 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16582
16583 # Transform the output of nm in a proper C declaration
16584 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16585
16586 # Transform the output of nm in a C name address pair
16587 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16588
16589 # This is the shared library runtime path variable.
16590 runpath_var=$runpath_var
16591
16592 # This is the shared library path variable.
16593 shlibpath_var=$shlibpath_var
16594
16595 # Is shlibpath searched before the hard-coded library search path?
16596 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16597
16598 # How to hardcode a shared library path into an executable.
16599 hardcode_action=$hardcode_action_F77
16600
16601 # Whether we should hardcode library paths into libraries.
16602 hardcode_into_libs=$hardcode_into_libs
16603
16604 # Flag to hardcode \$libdir into a binary during linking.
16605 # This must work even if \$libdir does not exist.
16606 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16607
16608 # If ld is used when linking, flag to hardcode \$libdir into
16609 # a binary during linking. This must work even if \$libdir does
16610 # not exist.
16611 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16612
16613 # Whether we need a single -rpath flag with a separated argument.
16614 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16615
16616 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16617 # resulting binary.
16618 hardcode_direct=$hardcode_direct_F77
16619
16620 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16621 # resulting binary.
16622 hardcode_minus_L=$hardcode_minus_L_F77
16623
16624 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16625 # the resulting binary.
16626 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16627
16628 # Set to yes if building a shared library automatically hardcodes DIR into the library
16629 # and all subsequent libraries and executables linked against it.
16630 hardcode_automatic=$hardcode_automatic_F77
16631
16632 # Variables whose values should be saved in libtool wrapper scripts and
16633 # restored at relink time.
16634 variables_saved_for_relink="$variables_saved_for_relink"
16635
16636 # Whether libtool must link a program against all its dependency libraries.
16637 link_all_deplibs=$link_all_deplibs_F77
16638
16639 # Compile-time system search path for libraries
16640 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
16641
16642 # Run-time system search path for libraries
16643 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16644
16645 # Fix the shell variable \$srcfile for the compiler.
16646 fix_srcfile_path="$fix_srcfile_path_F77"
16647
16648 # Set to yes if exported symbols are required.
16649 always_export_symbols=$always_export_symbols_F77
16650
16651 # The commands to list exported symbols.
16652 export_symbols_cmds=$lt_export_symbols_cmds_F77
16653
16654 # The commands to extract the exported symbol list from a shared archive.
16655 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16656
16657 # Symbols that should not be listed in the preloaded symbols.
16658 exclude_expsyms=$lt_exclude_expsyms_F77
16659
16660 # Symbols that must always be exported.
16661 include_expsyms=$lt_include_expsyms_F77
16662
16663 # ### END LIBTOOL TAG CONFIG: $tagname
16664
16665 __EOF__
16666
16667
16668 else
16669   # If there is no Makefile yet, we rely on a make rule to execute
16670   # `config.status --recheck' to rerun these tests and create the
16671   # libtool script then.
16672   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16673   if test -f "$ltmain_in"; then
16674     test -f Makefile && make "$ltmain"
16675   fi
16676 fi
16677
16678
16679 ac_ext=c
16680 ac_cpp='$CPP $CPPFLAGS'
16681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16684
16685 CC="$lt_save_CC"
16686
16687         else
16688           tagname=""
16689         fi
16690         ;;
16691
16692       GCJ)
16693         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16694
16695
16696 # Source file extension for Java test sources.
16697 ac_ext=java
16698
16699 # Object file extension for compiled Java test sources.
16700 objext=o
16701 objext_GCJ=$objext
16702
16703 # Code to be used in simple compile tests
16704 lt_simple_compile_test_code="class foo {}\n"
16705
16706 # Code to be used in simple link tests
16707 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16708
16709 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16710
16711 # If no C compiler was specified, use CC.
16712 LTCC=${LTCC-"$CC"}
16713
16714 # If no C compiler flags were specified, use CFLAGS.
16715 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16716
16717 # Allow CC to be a program name with arguments.
16718 compiler=$CC
16719
16720
16721 # save warnings/boilerplate of simple test code
16722 ac_outfile=conftest.$ac_objext
16723 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16724 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16725 _lt_compiler_boilerplate=`cat conftest.err`
16726 $rm conftest*
16727
16728 ac_outfile=conftest.$ac_objext
16729 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16730 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16731 _lt_linker_boilerplate=`cat conftest.err`
16732 $rm conftest*
16733
16734
16735 # Allow CC to be a program name with arguments.
16736 lt_save_CC="$CC"
16737 CC=${GCJ-"gcj"}
16738 compiler=$CC
16739 compiler_GCJ=$CC
16740 for cc_temp in $compiler""; do
16741   case $cc_temp in
16742     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16743     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16744     \-*) ;;
16745     *) break;;
16746   esac
16747 done
16748 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16749
16750 LD_GCJ="$LD"
16751
16752 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16753 archive_cmds_need_lc_GCJ=no
16754
16755 old_archive_cmds_GCJ=$old_archive_cmds
16756
16757
16758 lt_prog_compiler_no_builtin_flag_GCJ=
16759
16760 if test "$GCC" = yes; then
16761   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16762
16763
16764 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16765 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16766 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16767   echo $ECHO_N "(cached) $ECHO_C" >&6
16768 else
16769   lt_cv_prog_compiler_rtti_exceptions=no
16770   ac_outfile=conftest.$ac_objext
16771    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16772    lt_compiler_flag="-fno-rtti -fno-exceptions"
16773    # Insert the option either (1) after the last *FLAGS variable, or
16774    # (2) before a word containing "conftest.", or (3) at the end.
16775    # Note that $ac_compile itself does not contain backslashes and begins
16776    # with a dollar sign (not a hyphen), so the echo should work correctly.
16777    # The option is referenced via a variable to avoid confusing sed.
16778    lt_compile=`echo "$ac_compile" | $SED \
16779    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16780    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16781    -e 's:$: $lt_compiler_flag:'`
16782    (eval echo "\"\$as_me:16782: $lt_compile\"" >&5)
16783    (eval "$lt_compile" 2>conftest.err)
16784    ac_status=$?
16785    cat conftest.err >&5
16786    echo "$as_me:16786: \$? = $ac_status" >&5
16787    if (exit $ac_status) && test -s "$ac_outfile"; then
16788      # The compiler can only warn and ignore the option if not recognized
16789      # So say no if there are warnings other than the usual output.
16790      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16791      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16792      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16793        lt_cv_prog_compiler_rtti_exceptions=yes
16794      fi
16795    fi
16796    $rm conftest*
16797
16798 fi
16799 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16800 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16801
16802 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16803     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16804 else
16805     :
16806 fi
16807
16808 fi
16809
16810 lt_prog_compiler_wl_GCJ=
16811 lt_prog_compiler_pic_GCJ=
16812 lt_prog_compiler_static_GCJ=
16813
16814 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16815 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16816
16817   if test "$GCC" = yes; then
16818     lt_prog_compiler_wl_GCJ='-Wl,'
16819     lt_prog_compiler_static_GCJ='-static'
16820
16821     case $host_os in
16822       aix*)
16823       # All AIX code is PIC.
16824       if test "$host_cpu" = ia64; then
16825         # AIX 5 now supports IA64 processor
16826         lt_prog_compiler_static_GCJ='-Bstatic'
16827       fi
16828       ;;
16829
16830     amigaos*)
16831       # FIXME: we need at least 68020 code to build shared libraries, but
16832       # adding the `-m68020' flag to GCC prevents building anything better,
16833       # like `-m68040'.
16834       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16835       ;;
16836
16837     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16838       # PIC is the default for these OSes.
16839       ;;
16840
16841     mingw* | pw32* | os2*)
16842       # This hack is so that the source file can tell whether it is being
16843       # built for inclusion in a dll (and should export symbols for example).
16844       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16845       ;;
16846
16847     darwin* | rhapsody*)
16848       # PIC is the default on this platform
16849       # Common symbols not allowed in MH_DYLIB files
16850       lt_prog_compiler_pic_GCJ='-fno-common'
16851       ;;
16852
16853     interix3*)
16854       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16855       # Instead, we relocate shared libraries at runtime.
16856       ;;
16857
16858     msdosdjgpp*)
16859       # Just because we use GCC doesn't mean we suddenly get shared libraries
16860       # on systems that don't support them.
16861       lt_prog_compiler_can_build_shared_GCJ=no
16862       enable_shared=no
16863       ;;
16864
16865     sysv4*MP*)
16866       if test -d /usr/nec; then
16867         lt_prog_compiler_pic_GCJ=-Kconform_pic
16868       fi
16869       ;;
16870
16871     hpux*)
16872       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16873       # not for PA HP-UX.
16874       case $host_cpu in
16875       hppa*64*|ia64*)
16876         # +Z the default
16877         ;;
16878       *)
16879         lt_prog_compiler_pic_GCJ='-fPIC'
16880         ;;
16881       esac
16882       ;;
16883
16884     *)
16885       lt_prog_compiler_pic_GCJ='-fPIC'
16886       ;;
16887     esac
16888   else
16889     # PORTME Check for flag to pass linker flags through the system compiler.
16890     case $host_os in
16891     aix*)
16892       lt_prog_compiler_wl_GCJ='-Wl,'
16893       if test "$host_cpu" = ia64; then
16894         # AIX 5 now supports IA64 processor
16895         lt_prog_compiler_static_GCJ='-Bstatic'
16896       else
16897         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16898       fi
16899       ;;
16900       darwin*)
16901         # PIC is the default on this platform
16902         # Common symbols not allowed in MH_DYLIB files
16903        case $cc_basename in
16904          xlc*)
16905          lt_prog_compiler_pic_GCJ='-qnocommon'
16906          lt_prog_compiler_wl_GCJ='-Wl,'
16907          ;;
16908        esac
16909        ;;
16910
16911     mingw* | pw32* | os2*)
16912       # This hack is so that the source file can tell whether it is being
16913       # built for inclusion in a dll (and should export symbols for example).
16914       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16915       ;;
16916
16917     hpux9* | hpux10* | hpux11*)
16918       lt_prog_compiler_wl_GCJ='-Wl,'
16919       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16920       # not for PA HP-UX.
16921       case $host_cpu in
16922       hppa*64*|ia64*)
16923         # +Z the default
16924         ;;
16925       *)
16926         lt_prog_compiler_pic_GCJ='+Z'
16927         ;;
16928       esac
16929       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16930       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16931       ;;
16932
16933     irix5* | irix6* | nonstopux*)
16934       lt_prog_compiler_wl_GCJ='-Wl,'
16935       # PIC (with -KPIC) is the default.
16936       lt_prog_compiler_static_GCJ='-non_shared'
16937       ;;
16938
16939     newsos6)
16940       lt_prog_compiler_pic_GCJ='-KPIC'
16941       lt_prog_compiler_static_GCJ='-Bstatic'
16942       ;;
16943
16944     linux*)
16945       case $cc_basename in
16946       icc* | ecc*)
16947         lt_prog_compiler_wl_GCJ='-Wl,'
16948         lt_prog_compiler_pic_GCJ='-KPIC'
16949         lt_prog_compiler_static_GCJ='-static'
16950         ;;
16951       pgcc* | pgf77* | pgf90* | pgf95*)
16952         # Portland Group compilers (*not* the Pentium gcc compiler,
16953         # which looks to be a dead project)
16954         lt_prog_compiler_wl_GCJ='-Wl,'
16955         lt_prog_compiler_pic_GCJ='-fpic'
16956         lt_prog_compiler_static_GCJ='-Bstatic'
16957         ;;
16958       ccc*)
16959         lt_prog_compiler_wl_GCJ='-Wl,'
16960         # All Alpha code is PIC.
16961         lt_prog_compiler_static_GCJ='-non_shared'
16962         ;;
16963       esac
16964       ;;
16965
16966     osf3* | osf4* | osf5*)
16967       lt_prog_compiler_wl_GCJ='-Wl,'
16968       # All OSF/1 code is PIC.
16969       lt_prog_compiler_static_GCJ='-non_shared'
16970       ;;
16971
16972     solaris*)
16973       lt_prog_compiler_pic_GCJ='-KPIC'
16974       lt_prog_compiler_static_GCJ='-Bstatic'
16975       case $cc_basename in
16976       f77* | f90* | f95*)
16977         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16978       *)
16979         lt_prog_compiler_wl_GCJ='-Wl,';;
16980       esac
16981       ;;
16982
16983     sunos4*)
16984       lt_prog_compiler_wl_GCJ='-Qoption ld '
16985       lt_prog_compiler_pic_GCJ='-PIC'
16986       lt_prog_compiler_static_GCJ='-Bstatic'
16987       ;;
16988
16989     sysv4 | sysv4.2uw2* | sysv4.3*)
16990       lt_prog_compiler_wl_GCJ='-Wl,'
16991       lt_prog_compiler_pic_GCJ='-KPIC'
16992       lt_prog_compiler_static_GCJ='-Bstatic'
16993       ;;
16994
16995     sysv4*MP*)
16996       if test -d /usr/nec ;then
16997         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16998         lt_prog_compiler_static_GCJ='-Bstatic'
16999       fi
17000       ;;
17001
17002     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17003       lt_prog_compiler_wl_GCJ='-Wl,'
17004       lt_prog_compiler_pic_GCJ='-KPIC'
17005       lt_prog_compiler_static_GCJ='-Bstatic'
17006       ;;
17007
17008     unicos*)
17009       lt_prog_compiler_wl_GCJ='-Wl,'
17010       lt_prog_compiler_can_build_shared_GCJ=no
17011       ;;
17012
17013     uts4*)
17014       lt_prog_compiler_pic_GCJ='-pic'
17015       lt_prog_compiler_static_GCJ='-Bstatic'
17016       ;;
17017
17018     *)
17019       lt_prog_compiler_can_build_shared_GCJ=no
17020       ;;
17021     esac
17022   fi
17023
17024 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17025 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17026
17027 #
17028 # Check to make sure the PIC flag actually works.
17029 #
17030 if test -n "$lt_prog_compiler_pic_GCJ"; then
17031
17032 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17033 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17034 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17035   echo $ECHO_N "(cached) $ECHO_C" >&6
17036 else
17037   lt_prog_compiler_pic_works_GCJ=no
17038   ac_outfile=conftest.$ac_objext
17039    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17040    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17041    # Insert the option either (1) after the last *FLAGS variable, or
17042    # (2) before a word containing "conftest.", or (3) at the end.
17043    # Note that $ac_compile itself does not contain backslashes and begins
17044    # with a dollar sign (not a hyphen), so the echo should work correctly.
17045    # The option is referenced via a variable to avoid confusing sed.
17046    lt_compile=`echo "$ac_compile" | $SED \
17047    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17048    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17049    -e 's:$: $lt_compiler_flag:'`
17050    (eval echo "\"\$as_me:17050: $lt_compile\"" >&5)
17051    (eval "$lt_compile" 2>conftest.err)
17052    ac_status=$?
17053    cat conftest.err >&5
17054    echo "$as_me:17054: \$? = $ac_status" >&5
17055    if (exit $ac_status) && test -s "$ac_outfile"; then
17056      # The compiler can only warn and ignore the option if not recognized
17057      # So say no if there are warnings other than the usual output.
17058      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17059      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17060      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17061        lt_prog_compiler_pic_works_GCJ=yes
17062      fi
17063    fi
17064    $rm conftest*
17065
17066 fi
17067 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17068 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
17069
17070 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17071     case $lt_prog_compiler_pic_GCJ in
17072      "" | " "*) ;;
17073      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17074      esac
17075 else
17076     lt_prog_compiler_pic_GCJ=
17077      lt_prog_compiler_can_build_shared_GCJ=no
17078 fi
17079
17080 fi
17081 case $host_os in
17082   # For platforms which do not support PIC, -DPIC is meaningless:
17083   *djgpp*)
17084     lt_prog_compiler_pic_GCJ=
17085     ;;
17086   *)
17087     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17088     ;;
17089 esac
17090
17091 #
17092 # Check to make sure the static flag actually works.
17093 #
17094 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17095 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17096 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17097 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17098   echo $ECHO_N "(cached) $ECHO_C" >&6
17099 else
17100   lt_prog_compiler_static_works_GCJ=no
17101    save_LDFLAGS="$LDFLAGS"
17102    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17103    printf "$lt_simple_link_test_code" > conftest.$ac_ext
17104    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17105      # The linker can only warn and ignore the option if not recognized
17106      # So say no if there are warnings
17107      if test -s conftest.err; then
17108        # Append any errors to the config.log.
17109        cat conftest.err 1>&5
17110        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17111        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17112        if diff conftest.exp conftest.er2 >/dev/null; then
17113          lt_prog_compiler_static_works_GCJ=yes
17114        fi
17115      else
17116        lt_prog_compiler_static_works_GCJ=yes
17117      fi
17118    fi
17119    $rm conftest*
17120    LDFLAGS="$save_LDFLAGS"
17121
17122 fi
17123 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17124 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17125
17126 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17127     :
17128 else
17129     lt_prog_compiler_static_GCJ=
17130 fi
17131
17132
17133 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17134 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17135 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17136   echo $ECHO_N "(cached) $ECHO_C" >&6
17137 else
17138   lt_cv_prog_compiler_c_o_GCJ=no
17139    $rm -r conftest 2>/dev/null
17140    mkdir conftest
17141    cd conftest
17142    mkdir out
17143    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17144
17145    lt_compiler_flag="-o out/conftest2.$ac_objext"
17146    # Insert the option either (1) after the last *FLAGS variable, or
17147    # (2) before a word containing "conftest.", or (3) at the end.
17148    # Note that $ac_compile itself does not contain backslashes and begins
17149    # with a dollar sign (not a hyphen), so the echo should work correctly.
17150    lt_compile=`echo "$ac_compile" | $SED \
17151    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17152    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17153    -e 's:$: $lt_compiler_flag:'`
17154    (eval echo "\"\$as_me:17154: $lt_compile\"" >&5)
17155    (eval "$lt_compile" 2>out/conftest.err)
17156    ac_status=$?
17157    cat out/conftest.err >&5
17158    echo "$as_me:17158: \$? = $ac_status" >&5
17159    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17160    then
17161      # The compiler can only warn and ignore the option if not recognized
17162      # So say no if there are warnings
17163      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17164      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17165      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17166        lt_cv_prog_compiler_c_o_GCJ=yes
17167      fi
17168    fi
17169    chmod u+w . 2>&5
17170    $rm conftest*
17171    # SGI C++ compiler will create directory out/ii_files/ for
17172    # template instantiation
17173    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17174    $rm out/* && rmdir out
17175    cd ..
17176    rmdir conftest
17177    $rm conftest*
17178
17179 fi
17180 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17181 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17182
17183
17184 hard_links="nottested"
17185 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17186   # do not overwrite the value of need_locks provided by the user
17187   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17188 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17189   hard_links=yes
17190   $rm conftest*
17191   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17192   touch conftest.a
17193   ln conftest.a conftest.b 2>&5 || hard_links=no
17194   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17195   { echo "$as_me:$LINENO: result: $hard_links" >&5
17196 echo "${ECHO_T}$hard_links" >&6; }
17197   if test "$hard_links" = no; then
17198     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17199 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17200     need_locks=warn
17201   fi
17202 else
17203   need_locks=no
17204 fi
17205
17206 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17207 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17208
17209   runpath_var=
17210   allow_undefined_flag_GCJ=
17211   enable_shared_with_static_runtimes_GCJ=no
17212   archive_cmds_GCJ=
17213   archive_expsym_cmds_GCJ=
17214   old_archive_From_new_cmds_GCJ=
17215   old_archive_from_expsyms_cmds_GCJ=
17216   export_dynamic_flag_spec_GCJ=
17217   whole_archive_flag_spec_GCJ=
17218   thread_safe_flag_spec_GCJ=
17219   hardcode_libdir_flag_spec_GCJ=
17220   hardcode_libdir_flag_spec_ld_GCJ=
17221   hardcode_libdir_separator_GCJ=
17222   hardcode_direct_GCJ=no
17223   hardcode_minus_L_GCJ=no
17224   hardcode_shlibpath_var_GCJ=unsupported
17225   link_all_deplibs_GCJ=unknown
17226   hardcode_automatic_GCJ=no
17227   module_cmds_GCJ=
17228   module_expsym_cmds_GCJ=
17229   always_export_symbols_GCJ=no
17230   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17231   # include_expsyms should be a list of space-separated symbols to be *always*
17232   # included in the symbol list
17233   include_expsyms_GCJ=
17234   # exclude_expsyms can be an extended regexp of symbols to exclude
17235   # it will be wrapped by ` (' and `)$', so one must not match beginning or
17236   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17237   # as well as any symbol that contains `d'.
17238   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17239   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17240   # platforms (ab)use it in PIC code, but their linkers get confused if
17241   # the symbol is explicitly referenced.  Since portable code cannot
17242   # rely on this symbol name, it's probably fine to never include it in
17243   # preloaded symbol tables.
17244   extract_expsyms_cmds=
17245   # Just being paranoid about ensuring that cc_basename is set.
17246   for cc_temp in $compiler""; do
17247   case $cc_temp in
17248     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17249     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17250     \-*) ;;
17251     *) break;;
17252   esac
17253 done
17254 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17255
17256   case $host_os in
17257   cygwin* | mingw* | pw32*)
17258     # FIXME: the MSVC++ port hasn't been tested in a loooong time
17259     # When not using gcc, we currently assume that we are using
17260     # Microsoft Visual C++.
17261     if test "$GCC" != yes; then
17262       with_gnu_ld=no
17263     fi
17264     ;;
17265   interix*)
17266     # we just hope/assume this is gcc and not c89 (= MSVC++)
17267     with_gnu_ld=yes
17268     ;;
17269   openbsd*)
17270     with_gnu_ld=no
17271     ;;
17272   esac
17273
17274   ld_shlibs_GCJ=yes
17275   if test "$with_gnu_ld" = yes; then
17276     # If archive_cmds runs LD, not CC, wlarc should be empty
17277     wlarc='${wl}'
17278
17279     # Set some defaults for GNU ld with shared library support. These
17280     # are reset later if shared libraries are not supported. Putting them
17281     # here allows them to be overridden if necessary.
17282     runpath_var=LD_RUN_PATH
17283     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17284     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17285     # ancient GNU ld didn't support --whole-archive et. al.
17286     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17287         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17288       else
17289         whole_archive_flag_spec_GCJ=
17290     fi
17291     supports_anon_versioning=no
17292     case `$LD -v 2>/dev/null` in
17293       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17294       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17295       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17296       *\ 2.11.*) ;; # other 2.11 versions
17297       *) supports_anon_versioning=yes ;;
17298     esac
17299
17300     # See if GNU ld supports shared libraries.
17301     case $host_os in
17302     aix3* | aix4* | aix5*)
17303       # On AIX/PPC, the GNU linker is very broken
17304       if test "$host_cpu" != ia64; then
17305         ld_shlibs_GCJ=no
17306         cat <<EOF 1>&2
17307
17308 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17309 *** to be unable to reliably create shared libraries on AIX.
17310 *** Therefore, libtool is disabling shared libraries support.  If you
17311 *** really care for shared libraries, you may want to modify your PATH
17312 *** so that a non-GNU linker is found, and then restart.
17313
17314 EOF
17315       fi
17316       ;;
17317
17318     amigaos*)
17319       archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
17320       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17321       hardcode_minus_L_GCJ=yes
17322
17323       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17324       # that the semantics of dynamic libraries on AmigaOS, at least up
17325       # to version 4, is to share data among multiple programs linked
17326       # with the same dynamic library.  Since this doesn't match the
17327       # behavior of shared libraries on other platforms, we can't use
17328       # them.
17329       ld_shlibs_GCJ=no
17330       ;;
17331
17332     beos*)
17333       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17334         allow_undefined_flag_GCJ=unsupported
17335         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17336         # support --undefined.  This deserves some investigation.  FIXME
17337         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17338       else
17339         ld_shlibs_GCJ=no
17340       fi
17341       ;;
17342
17343     cygwin* | mingw* | pw32*)
17344       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17345       # as there is no search path for DLLs.
17346       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17347       allow_undefined_flag_GCJ=unsupported
17348       always_export_symbols_GCJ=no
17349       enable_shared_with_static_runtimes_GCJ=yes
17350       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17351
17352       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17353         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17354         # If the export-symbols file already is a .def file (1st line
17355         # is EXPORTS), use it as is; otherwise, prepend...
17356         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17357           cp $export_symbols $output_objdir/$soname.def;
17358         else
17359           echo EXPORTS > $output_objdir/$soname.def;
17360           cat $export_symbols >> $output_objdir/$soname.def;
17361         fi~
17362         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17363       else
17364         ld_shlibs_GCJ=no
17365       fi
17366       ;;
17367
17368     interix3*)
17369       hardcode_direct_GCJ=no
17370       hardcode_shlibpath_var_GCJ=no
17371       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17372       export_dynamic_flag_spec_GCJ='${wl}-E'
17373       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17374       # Instead, shared libraries are loaded at an image base (0x10000000 by
17375       # default) and relocated if they conflict, which is a slow very memory
17376       # consuming and fragmenting process.  To avoid this, we pick a random,
17377       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17378       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17379       archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17380       archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17381       ;;
17382
17383     linux*)
17384       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17385         tmp_addflag=
17386         case $cc_basename,$host_cpu in
17387         pgcc*)                          # Portland Group C compiler
17388           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17389           tmp_addflag=' $pic_flag'
17390           ;;
17391         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17392           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17393           tmp_addflag=' $pic_flag -Mnomain' ;;
17394         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17395           tmp_addflag=' -i_dynamic' ;;
17396         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17397           tmp_addflag=' -i_dynamic -nofor_main' ;;
17398         ifc* | ifort*)                  # Intel Fortran compiler
17399           tmp_addflag=' -nofor_main' ;;
17400         esac
17401         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17402
17403         if test $supports_anon_versioning = yes; then
17404           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17405   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17406   $echo "local: *; };" >> $output_objdir/$libname.ver~
17407           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17408         fi
17409       else
17410         ld_shlibs_GCJ=no
17411       fi
17412       ;;
17413
17414     netbsd*)
17415       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17416         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17417         wlarc=
17418       else
17419         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17420         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17421       fi
17422       ;;
17423
17424     solaris*)
17425       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17426         ld_shlibs_GCJ=no
17427         cat <<EOF 1>&2
17428
17429 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17430 *** create shared libraries on Solaris systems.  Therefore, libtool
17431 *** is disabling shared libraries support.  We urge you to upgrade GNU
17432 *** binutils to release 2.9.1 or newer.  Another option is to modify
17433 *** your PATH or compiler configuration so that the native linker is
17434 *** used, and then restart.
17435
17436 EOF
17437       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17438         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17439         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17440       else
17441         ld_shlibs_GCJ=no
17442       fi
17443       ;;
17444
17445     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17446       case `$LD -v 2>&1` in
17447         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17448         ld_shlibs_GCJ=no
17449         cat <<_LT_EOF 1>&2
17450
17451 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17452 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17453 *** is disabling shared libraries support.  We urge you to upgrade GNU
17454 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17455 *** your PATH or compiler configuration so that the native linker is
17456 *** used, and then restart.
17457
17458 _LT_EOF
17459         ;;
17460         *)
17461           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17462             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17463             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17464             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17465           else
17466             ld_shlibs_GCJ=no
17467           fi
17468         ;;
17469       esac
17470       ;;
17471
17472     sunos4*)
17473       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17474       wlarc=
17475       hardcode_direct_GCJ=yes
17476       hardcode_shlibpath_var_GCJ=no
17477       ;;
17478
17479     *)
17480       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17481         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17482         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17483       else
17484         ld_shlibs_GCJ=no
17485       fi
17486       ;;
17487     esac
17488
17489     if test "$ld_shlibs_GCJ" = no; then
17490       runpath_var=
17491       hardcode_libdir_flag_spec_GCJ=
17492       export_dynamic_flag_spec_GCJ=
17493       whole_archive_flag_spec_GCJ=
17494     fi
17495   else
17496     # PORTME fill in a description of your system's linker (not GNU ld)
17497     case $host_os in
17498     aix3*)
17499       allow_undefined_flag_GCJ=unsupported
17500       always_export_symbols_GCJ=yes
17501       archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
17502       # Note: this linker hardcodes the directories in LIBPATH if there
17503       # are no directories specified by -L.
17504       hardcode_minus_L_GCJ=yes
17505       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17506         # Neither direct hardcoding nor static linking is supported with a
17507         # broken collect2.
17508         hardcode_direct_GCJ=unsupported
17509       fi
17510       ;;
17511
17512     aix4* | aix5*)
17513       if test "$host_cpu" = ia64; then
17514         # On IA64, the linker does run time linking by default, so we don't
17515         # have to do anything special.
17516         aix_use_runtimelinking=no
17517         exp_sym_flag='-Bexport'
17518         no_entry_flag=""
17519       else
17520         # If we're using GNU nm, then we don't want the "-C" option.
17521         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17522         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17523           export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17524         else
17525           export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17526         fi
17527         aix_use_runtimelinking=no
17528
17529         # Test if we are trying to use run time linking or normal
17530         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17531         # need to do runtime linking.
17532         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17533           for ld_flag in $LDFLAGS; do
17534           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17535             aix_use_runtimelinking=yes
17536             break
17537           fi
17538           done
17539           ;;
17540         esac
17541
17542         exp_sym_flag='-bexport'
17543         no_entry_flag='-bnoentry'
17544       fi
17545
17546       # When large executables or shared objects are built, AIX ld can
17547       # have problems creating the table of contents.  If linking a library
17548       # or program results in "error TOC overflow" add -mminimal-toc to
17549       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17550       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17551
17552       archive_cmds_GCJ=''
17553       hardcode_direct_GCJ=yes
17554       hardcode_libdir_separator_GCJ=':'
17555       link_all_deplibs_GCJ=yes
17556
17557       if test "$GCC" = yes; then
17558         case $host_os in aix4.[012]|aix4.[012].*)
17559         # We only want to do this on AIX 4.2 and lower, the check
17560         # below for broken collect2 doesn't work under 4.3+
17561           collect2name=`${CC} -print-prog-name=collect2`
17562           if test -f "$collect2name" && \
17563            strings "$collect2name" | grep resolve_lib_name >/dev/null
17564           then
17565           # We have reworked collect2
17566           hardcode_direct_GCJ=yes
17567           else
17568           # We have old collect2
17569           hardcode_direct_GCJ=unsupported
17570           # It fails to find uninstalled libraries when the uninstalled
17571           # path is not listed in the libpath.  Setting hardcode_minus_L
17572           # to unsupported forces relinking
17573           hardcode_minus_L_GCJ=yes
17574           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17575           hardcode_libdir_separator_GCJ=
17576           fi
17577           ;;
17578         esac
17579         shared_flag='-shared'
17580         if test "$aix_use_runtimelinking" = yes; then
17581           shared_flag="$shared_flag "'${wl}-G'
17582         fi
17583       else
17584         # not using gcc
17585         if test "$host_cpu" = ia64; then
17586         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17587         # chokes on -Wl,-G. The following line is correct:
17588           shared_flag='-G'
17589         else
17590           if test "$aix_use_runtimelinking" = yes; then
17591             shared_flag='${wl}-G'
17592           else
17593             shared_flag='${wl}-bM:SRE'
17594           fi
17595         fi
17596       fi
17597
17598       # It seems that -bexpall does not export symbols beginning with
17599       # underscore (_), so it is better to generate a list of symbols to export.
17600       always_export_symbols_GCJ=yes
17601       if test "$aix_use_runtimelinking" = yes; then
17602         # Warning - without using the other runtime loading flags (-brtl),
17603         # -berok will link without error, but may produce a broken library.
17604         allow_undefined_flag_GCJ='-berok'
17605        # Determine the default libpath from the value encoded in an empty executable.
17606        cat >conftest.$ac_ext <<_ACEOF
17607 /* confdefs.h.  */
17608 _ACEOF
17609 cat confdefs.h >>conftest.$ac_ext
17610 cat >>conftest.$ac_ext <<_ACEOF
17611 /* end confdefs.h.  */
17612
17613 int
17614 main ()
17615 {
17616
17617   ;
17618   return 0;
17619 }
17620 _ACEOF
17621 rm -f conftest.$ac_objext conftest$ac_exeext
17622 if { (ac_try="$ac_link"
17623 case "(($ac_try" in
17624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17625   *) ac_try_echo=$ac_try;;
17626 esac
17627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17628   (eval "$ac_link") 2>conftest.er1
17629   ac_status=$?
17630   grep -v '^ *+' conftest.er1 >conftest.err
17631   rm -f conftest.er1
17632   cat conftest.err >&5
17633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17634   (exit $ac_status); } && {
17635          test -z "$ac_c_werror_flag" ||
17636          test ! -s conftest.err
17637        } && test -s conftest$ac_exeext &&
17638        $as_test_x conftest$ac_exeext; then
17639
17640 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17641 }'`
17642 # Check for a 64-bit object if we didn't find anything.
17643 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17644 }'`; fi
17645 else
17646   echo "$as_me: failed program was:" >&5
17647 sed 's/^/| /' conftest.$ac_ext >&5
17648
17649
17650 fi
17651
17652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17653       conftest$ac_exeext conftest.$ac_ext
17654 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17655
17656        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17657         archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17658        else
17659         if test "$host_cpu" = ia64; then
17660           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17661           allow_undefined_flag_GCJ="-z nodefs"
17662           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
17663         else
17664          # Determine the default libpath from the value encoded in an empty executable.
17665          cat >conftest.$ac_ext <<_ACEOF
17666 /* confdefs.h.  */
17667 _ACEOF
17668 cat confdefs.h >>conftest.$ac_ext
17669 cat >>conftest.$ac_ext <<_ACEOF
17670 /* end confdefs.h.  */
17671
17672 int
17673 main ()
17674 {
17675
17676   ;
17677   return 0;
17678 }
17679 _ACEOF
17680 rm -f conftest.$ac_objext conftest$ac_exeext
17681 if { (ac_try="$ac_link"
17682 case "(($ac_try" in
17683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17684   *) ac_try_echo=$ac_try;;
17685 esac
17686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17687   (eval "$ac_link") 2>conftest.er1
17688   ac_status=$?
17689   grep -v '^ *+' conftest.er1 >conftest.err
17690   rm -f conftest.er1
17691   cat conftest.err >&5
17692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17693   (exit $ac_status); } && {
17694          test -z "$ac_c_werror_flag" ||
17695          test ! -s conftest.err
17696        } && test -s conftest$ac_exeext &&
17697        $as_test_x conftest$ac_exeext; then
17698
17699 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17700 }'`
17701 # Check for a 64-bit object if we didn't find anything.
17702 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17703 }'`; fi
17704 else
17705   echo "$as_me: failed program was:" >&5
17706 sed 's/^/| /' conftest.$ac_ext >&5
17707
17708
17709 fi
17710
17711 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17712       conftest$ac_exeext conftest.$ac_ext
17713 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17714
17715          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17716           # Warning - without using the other run time loading flags,
17717           # -berok will link without error, but may produce a broken library.
17718           no_undefined_flag_GCJ=' ${wl}-bernotok'
17719           allow_undefined_flag_GCJ=' ${wl}-berok'
17720           # Exported symbols can be pulled into shared objects from archives
17721           whole_archive_flag_spec_GCJ='$convenience'
17722           archive_cmds_need_lc_GCJ=yes
17723           # This is similar to how AIX traditionally builds its shared libraries.
17724           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17725         fi
17726       fi
17727       ;;
17728
17729     amigaos*)
17730       archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
17731       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17732       hardcode_minus_L_GCJ=yes
17733       # see comment about different semantics on the GNU ld section
17734       ld_shlibs_GCJ=no
17735       ;;
17736
17737     bsdi[45]*)
17738       export_dynamic_flag_spec_GCJ=-rdynamic
17739       ;;
17740
17741     cygwin* | mingw* | pw32*)
17742       # When not using gcc, we currently assume that we are using
17743       # Microsoft Visual C++.
17744       # hardcode_libdir_flag_spec is actually meaningless, as there is
17745       # no search path for DLLs.
17746       hardcode_libdir_flag_spec_GCJ=' '
17747       allow_undefined_flag_GCJ=unsupported
17748       # Tell ltmain to make .lib files, not .a files.
17749       libext=lib
17750       # Tell ltmain to make .dll files, not .so files.
17751       shrext_cmds=".dll"
17752       # FIXME: Setting linknames here is a bad hack.
17753       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17754       # The linker will automatically build a .lib file if we build a DLL.
17755       old_archive_From_new_cmds_GCJ='true'
17756       # FIXME: Should let the user specify the lib program.
17757       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17758       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17759       enable_shared_with_static_runtimes_GCJ=yes
17760       ;;
17761
17762     darwin* | rhapsody*)
17763       case $host_os in
17764         rhapsody* | darwin1.[012])
17765          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17766          ;;
17767        *) # Darwin 1.3 on
17768          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17769            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17770          else
17771            case ${MACOSX_DEPLOYMENT_TARGET} in
17772              10.[012])
17773                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17774                ;;
17775              10.*)
17776                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17777                ;;
17778            esac
17779          fi
17780          ;;
17781       esac
17782       archive_cmds_need_lc_GCJ=no
17783       hardcode_direct_GCJ=no
17784       hardcode_automatic_GCJ=yes
17785       hardcode_shlibpath_var_GCJ=unsupported
17786       whole_archive_flag_spec_GCJ=''
17787       link_all_deplibs_GCJ=yes
17788     if test "$GCC" = yes ; then
17789         output_verbose_link_cmd='echo'
17790         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17791       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17792       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17793       archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17794       module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17795     else
17796       case $cc_basename in
17797         xlc*)
17798          output_verbose_link_cmd='echo'
17799          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17800          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17801           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17802          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17803           module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17804           ;;
17805        *)
17806          ld_shlibs_GCJ=no
17807           ;;
17808       esac
17809     fi
17810       ;;
17811
17812     dgux*)
17813       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17814       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17815       hardcode_shlibpath_var_GCJ=no
17816       ;;
17817
17818     freebsd1*)
17819       ld_shlibs_GCJ=no
17820       ;;
17821
17822     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17823     # support.  Future versions do this automatically, but an explicit c++rt0.o
17824     # does not break anything, and helps significantly (at the cost of a little
17825     # extra space).
17826     freebsd2.2*)
17827       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17828       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17829       hardcode_direct_GCJ=yes
17830       hardcode_shlibpath_var_GCJ=no
17831       ;;
17832
17833     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17834     freebsd2*)
17835       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17836       hardcode_direct_GCJ=yes
17837       hardcode_minus_L_GCJ=yes
17838       hardcode_shlibpath_var_GCJ=no
17839       ;;
17840
17841     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17842     freebsd* | kfreebsd*-gnu | dragonfly*)
17843       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17844       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17845       hardcode_direct_GCJ=yes
17846       hardcode_shlibpath_var_GCJ=no
17847       ;;
17848
17849     hpux9*)
17850       if test "$GCC" = yes; then
17851         archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17852       else
17853         archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17854       fi
17855       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17856       hardcode_libdir_separator_GCJ=:
17857       hardcode_direct_GCJ=yes
17858
17859       # hardcode_minus_L: Not really in the search PATH,
17860       # but as the default location of the library.
17861       hardcode_minus_L_GCJ=yes
17862       export_dynamic_flag_spec_GCJ='${wl}-E'
17863       ;;
17864
17865     hpux10*)
17866       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17867         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17868       else
17869         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17870       fi
17871       if test "$with_gnu_ld" = no; then
17872         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17873         hardcode_libdir_separator_GCJ=:
17874
17875         hardcode_direct_GCJ=yes
17876         export_dynamic_flag_spec_GCJ='${wl}-E'
17877
17878         # hardcode_minus_L: Not really in the search PATH,
17879         # but as the default location of the library.
17880         hardcode_minus_L_GCJ=yes
17881       fi
17882       ;;
17883
17884     hpux11*)
17885       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17886         case $host_cpu in
17887         hppa*64*)
17888           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17889           ;;
17890         ia64*)
17891           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17892           ;;
17893         *)
17894           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17895           ;;
17896         esac
17897       else
17898         case $host_cpu in
17899         hppa*64*)
17900           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17901           ;;
17902         ia64*)
17903           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17904           ;;
17905         *)
17906           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17907           ;;
17908         esac
17909       fi
17910       if test "$with_gnu_ld" = no; then
17911         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17912         hardcode_libdir_separator_GCJ=:
17913
17914         case $host_cpu in
17915         hppa*64*|ia64*)
17916           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17917           hardcode_direct_GCJ=no
17918           hardcode_shlibpath_var_GCJ=no
17919           ;;
17920         *)
17921           hardcode_direct_GCJ=yes
17922           export_dynamic_flag_spec_GCJ='${wl}-E'
17923
17924           # hardcode_minus_L: Not really in the search PATH,
17925           # but as the default location of the library.
17926           hardcode_minus_L_GCJ=yes
17927           ;;
17928         esac
17929       fi
17930       ;;
17931
17932     irix5* | irix6* | nonstopux*)
17933       if test "$GCC" = yes; then
17934         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17935       else
17936         archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17937         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17938       fi
17939       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17940       hardcode_libdir_separator_GCJ=:
17941       link_all_deplibs_GCJ=yes
17942       ;;
17943
17944     netbsd*)
17945       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17946         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17947       else
17948         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17949       fi
17950       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17951       hardcode_direct_GCJ=yes
17952       hardcode_shlibpath_var_GCJ=no
17953       ;;
17954
17955     newsos6)
17956       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17957       hardcode_direct_GCJ=yes
17958       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17959       hardcode_libdir_separator_GCJ=:
17960       hardcode_shlibpath_var_GCJ=no
17961       ;;
17962
17963     openbsd*)
17964       hardcode_direct_GCJ=yes
17965       hardcode_shlibpath_var_GCJ=no
17966       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17967         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17968         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17969         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17970         export_dynamic_flag_spec_GCJ='${wl}-E'
17971       else
17972        case $host_os in
17973          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17974            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17975            hardcode_libdir_flag_spec_GCJ='-R$libdir'
17976            ;;
17977          *)
17978            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17979            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17980            ;;
17981        esac
17982       fi
17983       ;;
17984
17985     os2*)
17986       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17987       hardcode_minus_L_GCJ=yes
17988       allow_undefined_flag_GCJ=unsupported
17989       archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
17990       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17991       ;;
17992
17993     osf3*)
17994       if test "$GCC" = yes; then
17995         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17996         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17997       else
17998         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17999         archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18000       fi
18001       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18002       hardcode_libdir_separator_GCJ=:
18003       ;;
18004
18005     osf4* | osf5*)      # as osf3* with the addition of -msym flag
18006       if test "$GCC" = yes; then
18007         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18008         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18009         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18010       else
18011         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18012         archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18013         archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
18014         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
18015
18016         # Both c and cxx compiler support -rpath directly
18017         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18018       fi
18019       hardcode_libdir_separator_GCJ=:
18020       ;;
18021
18022     solaris*)
18023       no_undefined_flag_GCJ=' -z text'
18024       if test "$GCC" = yes; then
18025         wlarc='${wl}'
18026         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18027         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18028           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18029       else
18030         wlarc=''
18031         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18032         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18033         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18034       fi
18035       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18036       hardcode_shlibpath_var_GCJ=no
18037       case $host_os in
18038       solaris2.[0-5] | solaris2.[0-5].*) ;;
18039       *)
18040         # The compiler driver will combine linker options so we
18041         # cannot just pass the convience library names through
18042         # without $wl, iff we do not link with $LD.
18043         # Luckily, gcc supports the same syntax we need for Sun Studio.
18044         # Supported since Solaris 2.6 (maybe 2.5.1?)
18045         case $wlarc in
18046         '')
18047           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18048         *)
18049           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
18050         esac ;;
18051       esac
18052       link_all_deplibs_GCJ=yes
18053       ;;
18054
18055     sunos4*)
18056       if test "x$host_vendor" = xsequent; then
18057         # Use $CC to link under sequent, because it throws in some extra .o
18058         # files that make .init and .fini sections work.
18059         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18060       else
18061         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18062       fi
18063       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18064       hardcode_direct_GCJ=yes
18065       hardcode_minus_L_GCJ=yes
18066       hardcode_shlibpath_var_GCJ=no
18067       ;;
18068
18069     sysv4)
18070       case $host_vendor in
18071         sni)
18072           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18073           hardcode_direct_GCJ=yes # is this really true???
18074         ;;
18075         siemens)
18076           ## LD is ld it makes a PLAMLIB
18077           ## CC just makes a GrossModule.
18078           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18079           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18080           hardcode_direct_GCJ=no
18081         ;;
18082         motorola)
18083           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18084           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18085         ;;
18086       esac
18087       runpath_var='LD_RUN_PATH'
18088       hardcode_shlibpath_var_GCJ=no
18089       ;;
18090
18091     sysv4.3*)
18092       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18093       hardcode_shlibpath_var_GCJ=no
18094       export_dynamic_flag_spec_GCJ='-Bexport'
18095       ;;
18096
18097     sysv4*MP*)
18098       if test -d /usr/nec; then
18099         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18100         hardcode_shlibpath_var_GCJ=no
18101         runpath_var=LD_RUN_PATH
18102         hardcode_runpath_var=yes
18103         ld_shlibs_GCJ=yes
18104       fi
18105       ;;
18106
18107     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18108       no_undefined_flag_GCJ='${wl}-z,text'
18109       archive_cmds_need_lc_GCJ=no
18110       hardcode_shlibpath_var_GCJ=no
18111       runpath_var='LD_RUN_PATH'
18112
18113       if test "$GCC" = yes; then
18114         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18115         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18116       else
18117         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18118         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18119       fi
18120       ;;
18121
18122     sysv5* | sco3.2v5* | sco5v6*)
18123       # Note: We can NOT use -z defs as we might desire, because we do not
18124       # link with -lc, and that would cause any symbols used from libc to
18125       # always be unresolved, which means just about no library would
18126       # ever link correctly.  If we're not using GNU ld we use -z text
18127       # though, which does catch some bad symbols but isn't as heavy-handed
18128       # as -z defs.
18129       no_undefined_flag_GCJ='${wl}-z,text'
18130       allow_undefined_flag_GCJ='${wl}-z,nodefs'
18131       archive_cmds_need_lc_GCJ=no
18132       hardcode_shlibpath_var_GCJ=no
18133       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18134       hardcode_libdir_separator_GCJ=':'
18135       link_all_deplibs_GCJ=yes
18136       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18137       runpath_var='LD_RUN_PATH'
18138
18139       if test "$GCC" = yes; then
18140         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18141         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18142       else
18143         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18144         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18145       fi
18146       ;;
18147
18148     uts4*)
18149       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18150       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18151       hardcode_shlibpath_var_GCJ=no
18152       ;;
18153
18154     *)
18155       ld_shlibs_GCJ=no
18156       ;;
18157     esac
18158   fi
18159
18160 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18161 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18162 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18163
18164 #
18165 # Do we need to explicitly link libc?
18166 #
18167 case "x$archive_cmds_need_lc_GCJ" in
18168 x|xyes)
18169   # Assume -lc should be added
18170   archive_cmds_need_lc_GCJ=yes
18171
18172   if test "$enable_shared" = yes && test "$GCC" = yes; then
18173     case $archive_cmds_GCJ in
18174     *'~'*)
18175       # FIXME: we may have to deal with multi-command sequences.
18176       ;;
18177     '$CC '*)
18178       # Test whether the compiler implicitly links with -lc since on some
18179       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18180       # to ld, don't add -lc before -lgcc.
18181       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18182 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18183       $rm conftest*
18184       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18185
18186       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18187   (eval $ac_compile) 2>&5
18188   ac_status=$?
18189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18190   (exit $ac_status); } 2>conftest.err; then
18191         soname=conftest
18192         lib=conftest
18193         libobjs=conftest.$ac_objext
18194         deplibs=
18195         wl=$lt_prog_compiler_wl_GCJ
18196         pic_flag=$lt_prog_compiler_pic_GCJ
18197         compiler_flags=-v
18198         linker_flags=-v
18199         verstring=
18200         output_objdir=.
18201         libname=conftest
18202         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18203         allow_undefined_flag_GCJ=
18204         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18205   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18206   ac_status=$?
18207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18208   (exit $ac_status); }
18209         then
18210           archive_cmds_need_lc_GCJ=no
18211         else
18212           archive_cmds_need_lc_GCJ=yes
18213         fi
18214         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18215       else
18216         cat conftest.err 1>&5
18217       fi
18218       $rm conftest*
18219       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18220 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18221       ;;
18222     esac
18223   fi
18224   ;;
18225 esac
18226
18227 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18228 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18229 library_names_spec=
18230 libname_spec='lib$name'
18231 soname_spec=
18232 shrext_cmds=".so"
18233 postinstall_cmds=
18234 postuninstall_cmds=
18235 finish_cmds=
18236 finish_eval=
18237 shlibpath_var=
18238 shlibpath_overrides_runpath=unknown
18239 version_type=none
18240 dynamic_linker="$host_os ld.so"
18241 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18242 if test "$GCC" = yes; then
18243   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18244   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18245     # if the path contains ";" then we assume it to be the separator
18246     # otherwise default to the standard path separator (i.e. ":") - it is
18247     # assumed that no part of a normal pathname contains ";" but that should
18248     # okay in the real world where ";" in dirpaths is itself problematic.
18249     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18250   else
18251     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18252   fi
18253 else
18254   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18255 fi
18256 need_lib_prefix=unknown
18257 hardcode_into_libs=no
18258
18259 # when you set need_version to no, make sure it does not cause -set_version
18260 # flags to be left without arguments
18261 need_version=unknown
18262
18263 case $host_os in
18264 aix3*)
18265   version_type=linux
18266   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18267   shlibpath_var=LIBPATH
18268
18269   # AIX 3 has no versioning support, so we append a major version to the name.
18270   soname_spec='${libname}${release}${shared_ext}$major'
18271   ;;
18272
18273 aix4* | aix5*)
18274   version_type=linux
18275   need_lib_prefix=no
18276   need_version=no
18277   hardcode_into_libs=yes
18278   if test "$host_cpu" = ia64; then
18279     # AIX 5 supports IA64
18280     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18281     shlibpath_var=LD_LIBRARY_PATH
18282   else
18283     # With GCC up to 2.95.x, collect2 would create an import file
18284     # for dependence libraries.  The import file would start with
18285     # the line `#! .'.  This would cause the generated library to
18286     # depend on `.', always an invalid library.  This was fixed in
18287     # development snapshots of GCC prior to 3.0.
18288     case $host_os in
18289       aix4 | aix4.[01] | aix4.[01].*)
18290       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18291            echo ' yes '
18292            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18293         :
18294       else
18295         can_build_shared=no
18296       fi
18297       ;;
18298     esac
18299     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18300     # soname into executable. Probably we can add versioning support to
18301     # collect2, so additional links can be useful in future.
18302     if test "$aix_use_runtimelinking" = yes; then
18303       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18304       # instead of lib<name>.a to let people know that these are not
18305       # typical AIX shared libraries.
18306       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18307     else
18308       # We preserve .a as extension for shared libraries through AIX4.2
18309       # and later when we are not doing run time linking.
18310       library_names_spec='${libname}${release}.a $libname.a'
18311       soname_spec='${libname}${release}${shared_ext}$major'
18312     fi
18313     shlibpath_var=LIBPATH
18314   fi
18315   ;;
18316
18317 amigaos*)
18318   library_names_spec='$libname.ixlibrary $libname.a'
18319   # Create ${libname}_ixlibrary.a entries in /sys/libs.
18320   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
18321   ;;
18322
18323 beos*)
18324   library_names_spec='${libname}${shared_ext}'
18325   dynamic_linker="$host_os ld.so"
18326   shlibpath_var=LIBRARY_PATH
18327   ;;
18328
18329 bsdi[45]*)
18330   version_type=linux
18331   need_version=no
18332   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18333   soname_spec='${libname}${release}${shared_ext}$major'
18334   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18335   shlibpath_var=LD_LIBRARY_PATH
18336   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18337   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18338   # the default ld.so.conf also contains /usr/contrib/lib and
18339   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18340   # libtool to hard-code these into programs
18341   ;;
18342
18343 cygwin* | mingw* | pw32*)
18344   version_type=windows
18345   shrext_cmds=".dll"
18346   need_version=no
18347   need_lib_prefix=no
18348
18349   case $GCC,$host_os in
18350   yes,cygwin* | yes,mingw* | yes,pw32*)
18351     library_names_spec='$libname.dll.a'
18352     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18353     postinstall_cmds='base_file=`basename \${file}`~
18354       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18355       dldir=$destdir/`dirname \$dlpath`~
18356       test -d \$dldir || mkdir -p \$dldir~
18357       $install_prog $dir/$dlname \$dldir/$dlname~
18358       chmod a+x \$dldir/$dlname'
18359     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18360       dlpath=$dir/\$dldll~
18361        $rm \$dlpath'
18362     shlibpath_overrides_runpath=yes
18363
18364     case $host_os in
18365     cygwin*)
18366       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18367       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18368       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18369       ;;
18370     mingw*)
18371       # MinGW DLLs use traditional 'lib' prefix
18372       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18373       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18374       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18375         # It is most probably a Windows format PATH printed by
18376         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18377         # path with ; separators, and with drive letters. We can handle the
18378         # drive letters (cygwin fileutils understands them), so leave them,
18379         # especially as we might pass files found there to a mingw objdump,
18380         # which wouldn't understand a cygwinified path. Ahh.
18381         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18382       else
18383         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18384       fi
18385       ;;
18386     pw32*)
18387       # pw32 DLLs use 'pw' prefix rather than 'lib'
18388       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18389       ;;
18390     esac
18391     ;;
18392
18393   *)
18394     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18395     ;;
18396   esac
18397   dynamic_linker='Win32 ld.exe'
18398   # FIXME: first we should search . and the directory the executable is in
18399   shlibpath_var=PATH
18400   ;;
18401
18402 darwin* | rhapsody*)
18403   dynamic_linker="$host_os dyld"
18404   version_type=darwin
18405   need_lib_prefix=no
18406   need_version=no
18407   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18408   soname_spec='${libname}${release}${major}$shared_ext'
18409   shlibpath_overrides_runpath=yes
18410   shlibpath_var=DYLD_LIBRARY_PATH
18411   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18412   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18413   if test "$GCC" = yes; then
18414     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
18415   else
18416     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18417   fi
18418   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18419   ;;
18420
18421 dgux*)
18422   version_type=linux
18423   need_lib_prefix=no
18424   need_version=no
18425   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18426   soname_spec='${libname}${release}${shared_ext}$major'
18427   shlibpath_var=LD_LIBRARY_PATH
18428   ;;
18429
18430 freebsd1*)
18431   dynamic_linker=no
18432   ;;
18433
18434 kfreebsd*-gnu)
18435   version_type=linux
18436   need_lib_prefix=no
18437   need_version=no
18438   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18439   soname_spec='${libname}${release}${shared_ext}$major'
18440   shlibpath_var=LD_LIBRARY_PATH
18441   shlibpath_overrides_runpath=no
18442   hardcode_into_libs=yes
18443   dynamic_linker='GNU ld.so'
18444   ;;
18445
18446 freebsd* | dragonfly*)
18447   # DragonFly does not have aout.  When/if they implement a new
18448   # versioning mechanism, adjust this.
18449   if test -x /usr/bin/objformat; then
18450     objformat=`/usr/bin/objformat`
18451   else
18452     case $host_os in
18453     freebsd[123]*) objformat=aout ;;
18454     *) objformat=elf ;;
18455     esac
18456   fi
18457   version_type=freebsd-$objformat
18458   case $version_type in
18459     freebsd-elf*)
18460       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18461       need_version=no
18462       need_lib_prefix=no
18463       ;;
18464     freebsd-*)
18465       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18466       need_version=yes
18467       ;;
18468   esac
18469   shlibpath_var=LD_LIBRARY_PATH
18470   case $host_os in
18471   freebsd2*)
18472     shlibpath_overrides_runpath=yes
18473     ;;
18474   freebsd3.[01]* | freebsdelf3.[01]*)
18475     shlibpath_overrides_runpath=yes
18476     hardcode_into_libs=yes
18477     ;;
18478   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18479   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18480     shlibpath_overrides_runpath=no
18481     hardcode_into_libs=yes
18482     ;;
18483   freebsd*) # from 4.6 on
18484     shlibpath_overrides_runpath=yes
18485     hardcode_into_libs=yes
18486     ;;
18487   esac
18488   ;;
18489
18490 gnu*)
18491   version_type=linux
18492   need_lib_prefix=no
18493   need_version=no
18494   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18495   soname_spec='${libname}${release}${shared_ext}$major'
18496   shlibpath_var=LD_LIBRARY_PATH
18497   hardcode_into_libs=yes
18498   ;;
18499
18500 hpux9* | hpux10* | hpux11*)
18501   # Give a soname corresponding to the major version so that dld.sl refuses to
18502   # link against other versions.
18503   version_type=sunos
18504   need_lib_prefix=no
18505   need_version=no
18506   case $host_cpu in
18507   ia64*)
18508     shrext_cmds='.so'
18509     hardcode_into_libs=yes
18510     dynamic_linker="$host_os dld.so"
18511     shlibpath_var=LD_LIBRARY_PATH
18512     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18513     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18514     soname_spec='${libname}${release}${shared_ext}$major'
18515     if test "X$HPUX_IA64_MODE" = X32; then
18516       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18517     else
18518       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18519     fi
18520     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18521     ;;
18522    hppa*64*)
18523      shrext_cmds='.sl'
18524      hardcode_into_libs=yes
18525      dynamic_linker="$host_os dld.sl"
18526      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18527      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18528      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18529      soname_spec='${libname}${release}${shared_ext}$major'
18530      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18531      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18532      ;;
18533    *)
18534     shrext_cmds='.sl'
18535     dynamic_linker="$host_os dld.sl"
18536     shlibpath_var=SHLIB_PATH
18537     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18538     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18539     soname_spec='${libname}${release}${shared_ext}$major'
18540     ;;
18541   esac
18542   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18543   postinstall_cmds='chmod 555 $lib'
18544   ;;
18545
18546 interix3*)
18547   version_type=linux
18548   need_lib_prefix=no
18549   need_version=no
18550   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18551   soname_spec='${libname}${release}${shared_ext}$major'
18552   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18553   shlibpath_var=LD_LIBRARY_PATH
18554   shlibpath_overrides_runpath=no
18555   hardcode_into_libs=yes
18556   ;;
18557
18558 irix5* | irix6* | nonstopux*)
18559   case $host_os in
18560     nonstopux*) version_type=nonstopux ;;
18561     *)
18562         if test "$lt_cv_prog_gnu_ld" = yes; then
18563                 version_type=linux
18564         else
18565                 version_type=irix
18566         fi ;;
18567   esac
18568   need_lib_prefix=no
18569   need_version=no
18570   soname_spec='${libname}${release}${shared_ext}$major'
18571   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18572   case $host_os in
18573   irix5* | nonstopux*)
18574     libsuff= shlibsuff=
18575     ;;
18576   *)
18577     case $LD in # libtool.m4 will add one of these switches to LD
18578     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18579       libsuff= shlibsuff= libmagic=32-bit;;
18580     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18581       libsuff=32 shlibsuff=N32 libmagic=N32;;
18582     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18583       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18584     *) libsuff= shlibsuff= libmagic=never-match;;
18585     esac
18586     ;;
18587   esac
18588   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18589   shlibpath_overrides_runpath=no
18590   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18591   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18592   hardcode_into_libs=yes
18593   ;;
18594
18595 # No shared lib support for Linux oldld, aout, or coff.
18596 linux*oldld* | linux*aout* | linux*coff*)
18597   dynamic_linker=no
18598   ;;
18599
18600 # This must be Linux ELF.
18601 linux*)
18602   version_type=linux
18603   need_lib_prefix=no
18604   need_version=no
18605   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18606   soname_spec='${libname}${release}${shared_ext}$major'
18607   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18608   shlibpath_var=LD_LIBRARY_PATH
18609   shlibpath_overrides_runpath=no
18610   # This implies no fast_install, which is unacceptable.
18611   # Some rework will be needed to allow for fast_install
18612   # before this can be enabled.
18613   hardcode_into_libs=yes
18614
18615   # find out which ABI we are using
18616   libsuff=
18617   case "$host_cpu" in
18618   x86_64*|s390x*|powerpc64*)
18619     echo '#line 18619 "configure"' > conftest.$ac_ext
18620     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18621   (eval $ac_compile) 2>&5
18622   ac_status=$?
18623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18624   (exit $ac_status); }; then
18625       case `/usr/bin/file conftest.$ac_objext` in
18626       *64-bit*)
18627         libsuff=64
18628         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
18629         ;;
18630       esac
18631     fi
18632     rm -rf conftest*
18633     ;;
18634   esac
18635
18636   # Append ld.so.conf contents to the search path
18637   if test -f /etc/ld.so.conf; then
18638     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18639     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
18640   fi
18641
18642   # We used to test for /lib/ld.so.1 and disable shared libraries on
18643   # powerpc, because MkLinux only supported shared libraries with the
18644   # GNU dynamic linker.  Since this was broken with cross compilers,
18645   # most powerpc-linux boxes support dynamic linking these days and
18646   # people can always --disable-shared, the test was removed, and we
18647   # assume the GNU/Linux dynamic linker is in use.
18648   dynamic_linker='GNU/Linux ld.so'
18649   ;;
18650
18651 knetbsd*-gnu)
18652   version_type=linux
18653   need_lib_prefix=no
18654   need_version=no
18655   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18656   soname_spec='${libname}${release}${shared_ext}$major'
18657   shlibpath_var=LD_LIBRARY_PATH
18658   shlibpath_overrides_runpath=no
18659   hardcode_into_libs=yes
18660   dynamic_linker='GNU ld.so'
18661   ;;
18662
18663 netbsd*)
18664   version_type=sunos
18665   need_lib_prefix=no
18666   need_version=no
18667   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18668     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18669     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18670     dynamic_linker='NetBSD (a.out) ld.so'
18671   else
18672     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18673     soname_spec='${libname}${release}${shared_ext}$major'
18674     dynamic_linker='NetBSD ld.elf_so'
18675   fi
18676   shlibpath_var=LD_LIBRARY_PATH
18677   shlibpath_overrides_runpath=yes
18678   hardcode_into_libs=yes
18679   ;;
18680
18681 newsos6)
18682   version_type=linux
18683   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18684   shlibpath_var=LD_LIBRARY_PATH
18685   shlibpath_overrides_runpath=yes
18686   ;;
18687
18688 nto-qnx*)
18689   version_type=linux
18690   need_lib_prefix=no
18691   need_version=no
18692   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18693   soname_spec='${libname}${release}${shared_ext}$major'
18694   shlibpath_var=LD_LIBRARY_PATH
18695   shlibpath_overrides_runpath=yes
18696   ;;
18697
18698 openbsd*)
18699   version_type=sunos
18700   sys_lib_dlsearch_path_spec="/usr/lib"
18701   need_lib_prefix=no
18702   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18703   case $host_os in
18704     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18705     *)                         need_version=no  ;;
18706   esac
18707   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18708   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18709   shlibpath_var=LD_LIBRARY_PATH
18710   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18711     case $host_os in
18712       openbsd2.[89] | openbsd2.[89].*)
18713         shlibpath_overrides_runpath=no
18714         ;;
18715       *)
18716         shlibpath_overrides_runpath=yes
18717         ;;
18718       esac
18719   else
18720     shlibpath_overrides_runpath=yes
18721   fi
18722   ;;
18723
18724 os2*)
18725   libname_spec='$name'
18726   shrext_cmds=".dll"
18727   need_lib_prefix=no
18728   library_names_spec='$libname${shared_ext} $libname.a'
18729   dynamic_linker='OS/2 ld.exe'
18730   shlibpath_var=LIBPATH
18731   ;;
18732
18733 osf3* | osf4* | osf5*)
18734   version_type=osf
18735   need_lib_prefix=no
18736   need_version=no
18737   soname_spec='${libname}${release}${shared_ext}$major'
18738   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18739   shlibpath_var=LD_LIBRARY_PATH
18740   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18741   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18742   ;;
18743
18744 solaris*)
18745   version_type=linux
18746   need_lib_prefix=no
18747   need_version=no
18748   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18749   soname_spec='${libname}${release}${shared_ext}$major'
18750   shlibpath_var=LD_LIBRARY_PATH
18751   shlibpath_overrides_runpath=yes
18752   hardcode_into_libs=yes
18753   # ldd complains unless libraries are executable
18754   postinstall_cmds='chmod +x $lib'
18755   ;;
18756
18757 sunos4*)
18758   version_type=sunos
18759   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18760   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18761   shlibpath_var=LD_LIBRARY_PATH
18762   shlibpath_overrides_runpath=yes
18763   if test "$with_gnu_ld" = yes; then
18764     need_lib_prefix=no
18765   fi
18766   need_version=yes
18767   ;;
18768
18769 sysv4 | sysv4.3*)
18770   version_type=linux
18771   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18772   soname_spec='${libname}${release}${shared_ext}$major'
18773   shlibpath_var=LD_LIBRARY_PATH
18774   case $host_vendor in
18775     sni)
18776       shlibpath_overrides_runpath=no
18777       need_lib_prefix=no
18778       export_dynamic_flag_spec='${wl}-Blargedynsym'
18779       runpath_var=LD_RUN_PATH
18780       ;;
18781     siemens)
18782       need_lib_prefix=no
18783       ;;
18784     motorola)
18785       need_lib_prefix=no
18786       need_version=no
18787       shlibpath_overrides_runpath=no
18788       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18789       ;;
18790   esac
18791   ;;
18792
18793 sysv4*MP*)
18794   if test -d /usr/nec ;then
18795     version_type=linux
18796     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18797     soname_spec='$libname${shared_ext}.$major'
18798     shlibpath_var=LD_LIBRARY_PATH
18799   fi
18800   ;;
18801
18802 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18803   version_type=freebsd-elf
18804   need_lib_prefix=no
18805   need_version=no
18806   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18807   soname_spec='${libname}${release}${shared_ext}$major'
18808   shlibpath_var=LD_LIBRARY_PATH
18809   hardcode_into_libs=yes
18810   if test "$with_gnu_ld" = yes; then
18811     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18812     shlibpath_overrides_runpath=no
18813   else
18814     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18815     shlibpath_overrides_runpath=yes
18816     case $host_os in
18817       sco3.2v5*)
18818         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18819         ;;
18820     esac
18821   fi
18822   sys_lib_dlsearch_path_spec='/usr/lib'
18823   ;;
18824
18825 uts4*)
18826   version_type=linux
18827   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18828   soname_spec='${libname}${release}${shared_ext}$major'
18829   shlibpath_var=LD_LIBRARY_PATH
18830   ;;
18831
18832 *)
18833   dynamic_linker=no
18834   ;;
18835 esac
18836 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18837 echo "${ECHO_T}$dynamic_linker" >&6; }
18838 test "$dynamic_linker" = no && can_build_shared=no
18839
18840 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18841 if test "$GCC" = yes; then
18842   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18843 fi
18844
18845 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18846 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18847 hardcode_action_GCJ=
18848 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18849    test -n "$runpath_var_GCJ" || \
18850    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18851
18852   # We can hardcode non-existant directories.
18853   if test "$hardcode_direct_GCJ" != no &&
18854      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18855      # have to relink, otherwise we might link with an installed library
18856      # when we should be linking with a yet-to-be-installed one
18857      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18858      test "$hardcode_minus_L_GCJ" != no; then
18859     # Linking always hardcodes the temporary library directory.
18860     hardcode_action_GCJ=relink
18861   else
18862     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18863     hardcode_action_GCJ=immediate
18864   fi
18865 else
18866   # We cannot hardcode anything, or else we can only hardcode existing
18867   # directories.
18868   hardcode_action_GCJ=unsupported
18869 fi
18870 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18871 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18872
18873 if test "$hardcode_action_GCJ" = relink; then
18874   # Fast installation is not supported
18875   enable_fast_install=no
18876 elif test "$shlibpath_overrides_runpath" = yes ||
18877      test "$enable_shared" = no; then
18878   # Fast installation is not necessary
18879   enable_fast_install=needless
18880 fi
18881
18882
18883 # The else clause should only fire when bootstrapping the
18884 # libtool distribution, otherwise you forgot to ship ltmain.sh
18885 # with your package, and you will get complaints that there are
18886 # no rules to generate ltmain.sh.
18887 if test -f "$ltmain"; then
18888   # See if we are running on zsh, and set the options which allow our commands through
18889   # without removal of \ escapes.
18890   if test -n "${ZSH_VERSION+set}" ; then
18891     setopt NO_GLOB_SUBST
18892   fi
18893   # Now quote all the things that may contain metacharacters while being
18894   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18895   # variables and quote the copies for generation of the libtool script.
18896   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18897     SED SHELL STRIP \
18898     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18899     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18900     deplibs_check_method reload_flag reload_cmds need_locks \
18901     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18902     lt_cv_sys_global_symbol_to_c_name_address \
18903     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18904     old_postinstall_cmds old_postuninstall_cmds \
18905     compiler_GCJ \
18906     CC_GCJ \
18907     LD_GCJ \
18908     lt_prog_compiler_wl_GCJ \
18909     lt_prog_compiler_pic_GCJ \
18910     lt_prog_compiler_static_GCJ \
18911     lt_prog_compiler_no_builtin_flag_GCJ \
18912     export_dynamic_flag_spec_GCJ \
18913     thread_safe_flag_spec_GCJ \
18914     whole_archive_flag_spec_GCJ \
18915     enable_shared_with_static_runtimes_GCJ \
18916     old_archive_cmds_GCJ \
18917     old_archive_from_new_cmds_GCJ \
18918     predep_objects_GCJ \
18919     postdep_objects_GCJ \
18920     predeps_GCJ \
18921     postdeps_GCJ \
18922     compiler_lib_search_path_GCJ \
18923     archive_cmds_GCJ \
18924     archive_expsym_cmds_GCJ \
18925     postinstall_cmds_GCJ \
18926     postuninstall_cmds_GCJ \
18927     old_archive_from_expsyms_cmds_GCJ \
18928     allow_undefined_flag_GCJ \
18929     no_undefined_flag_GCJ \
18930     export_symbols_cmds_GCJ \
18931     hardcode_libdir_flag_spec_GCJ \
18932     hardcode_libdir_flag_spec_ld_GCJ \
18933     hardcode_libdir_separator_GCJ \
18934     hardcode_automatic_GCJ \
18935     module_cmds_GCJ \
18936     module_expsym_cmds_GCJ \
18937     lt_cv_prog_compiler_c_o_GCJ \
18938     exclude_expsyms_GCJ \
18939     include_expsyms_GCJ; do
18940
18941     case $var in
18942     old_archive_cmds_GCJ | \
18943     old_archive_from_new_cmds_GCJ | \
18944     archive_cmds_GCJ | \
18945     archive_expsym_cmds_GCJ | \
18946     module_cmds_GCJ | \
18947     module_expsym_cmds_GCJ | \
18948     old_archive_from_expsyms_cmds_GCJ | \
18949     export_symbols_cmds_GCJ | \
18950     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18951     postinstall_cmds | postuninstall_cmds | \
18952     old_postinstall_cmds | old_postuninstall_cmds | \
18953     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18954       # Double-quote double-evaled strings.
18955       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18956       ;;
18957     *)
18958       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18959       ;;
18960     esac
18961   done
18962
18963   case $lt_echo in
18964   *'\$0 --fallback-echo"')
18965     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18966     ;;
18967   esac
18968
18969 cfgfile="$ofile"
18970
18971   cat <<__EOF__ >> "$cfgfile"
18972 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18973
18974 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18975
18976 # Shell to use when invoking shell scripts.
18977 SHELL=$lt_SHELL
18978
18979 # Whether or not to build shared libraries.
18980 build_libtool_libs=$enable_shared
18981
18982 # Whether or not to build static libraries.
18983 build_old_libs=$enable_static
18984
18985 # Whether or not to add -lc for building shared libraries.
18986 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18987
18988 # Whether or not to disallow shared libs when runtime libs are static
18989 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18990
18991 # Whether or not to optimize for fast installation.
18992 fast_install=$enable_fast_install
18993
18994 # The host system.
18995 host_alias=$host_alias
18996 host=$host
18997 host_os=$host_os
18998
18999 # The build system.
19000 build_alias=$build_alias
19001 build=$build
19002 build_os=$build_os
19003
19004 # An echo program that does not interpret backslashes.
19005 echo=$lt_echo
19006
19007 # The archiver.
19008 AR=$lt_AR
19009 AR_FLAGS=$lt_AR_FLAGS
19010
19011 # A C compiler.
19012 LTCC=$lt_LTCC
19013
19014 # LTCC compiler flags.
19015 LTCFLAGS=$lt_LTCFLAGS
19016
19017 # A language-specific compiler.
19018 CC=$lt_compiler_GCJ
19019
19020 # Is the compiler the GNU C compiler?
19021 with_gcc=$GCC_GCJ
19022
19023 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
19024 gcc_ver=\`gcc -dumpversion\`
19025
19026 # An ERE matcher.
19027 EGREP=$lt_EGREP
19028
19029 # The linker used to build libraries.
19030 LD=$lt_LD_GCJ
19031
19032 # Whether we need hard or soft links.
19033 LN_S=$lt_LN_S
19034
19035 # A BSD-compatible nm program.
19036 NM=$lt_NM
19037
19038 # A symbol stripping program
19039 STRIP=$lt_STRIP
19040
19041 # Used to examine libraries when file_magic_cmd begins "file"
19042 MAGIC_CMD=$MAGIC_CMD
19043
19044 # Used on cygwin: DLL creation program.
19045 DLLTOOL="$DLLTOOL"
19046
19047 # Used on cygwin: object dumper.
19048 OBJDUMP="$OBJDUMP"
19049
19050 # Used on cygwin: assembler.
19051 AS="$AS"
19052
19053 # The name of the directory that contains temporary libtool files.
19054 objdir=$objdir
19055
19056 # How to create reloadable object files.
19057 reload_flag=$lt_reload_flag
19058 reload_cmds=$lt_reload_cmds
19059
19060 # How to pass a linker flag through the compiler.
19061 wl=$lt_lt_prog_compiler_wl_GCJ
19062
19063 # Object file suffix (normally "o").
19064 objext="$ac_objext"
19065
19066 # Old archive suffix (normally "a").
19067 libext="$libext"
19068
19069 # Shared library suffix (normally ".so").
19070 shrext_cmds='$shrext_cmds'
19071
19072 # Executable file suffix (normally "").
19073 exeext="$exeext"
19074
19075 # Additional compiler flags for building library objects.
19076 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19077 pic_mode=$pic_mode
19078
19079 # What is the maximum length of a command?
19080 max_cmd_len=$lt_cv_sys_max_cmd_len
19081
19082 # Does compiler simultaneously support -c and -o options?
19083 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19084
19085 # Must we lock files when doing compilation?
19086 need_locks=$lt_need_locks
19087
19088 # Do we need the lib prefix for modules?
19089 need_lib_prefix=$need_lib_prefix
19090
19091 # Do we need a version for libraries?
19092 need_version=$need_version
19093
19094 # Whether dlopen is supported.
19095 dlopen_support=$enable_dlopen
19096
19097 # Whether dlopen of programs is supported.
19098 dlopen_self=$enable_dlopen_self
19099
19100 # Whether dlopen of statically linked programs is supported.
19101 dlopen_self_static=$enable_dlopen_self_static
19102
19103 # Compiler flag to prevent dynamic linking.
19104 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19105
19106 # Compiler flag to turn off builtin functions.
19107 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19108
19109 # Compiler flag to allow reflexive dlopens.
19110 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19111
19112 # Compiler flag to generate shared objects directly from archives.
19113 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19114
19115 # Compiler flag to generate thread-safe objects.
19116 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19117
19118 # Library versioning type.
19119 version_type=$version_type
19120
19121 # Format of library name prefix.
19122 libname_spec=$lt_libname_spec
19123
19124 # List of archive names.  First name is the real one, the rest are links.
19125 # The last name is the one that the linker finds with -lNAME.
19126 library_names_spec=$lt_library_names_spec
19127
19128 # The coded name of the library, if different from the real name.
19129 soname_spec=$lt_soname_spec
19130
19131 # Commands used to build and install an old-style archive.
19132 RANLIB=$lt_RANLIB
19133 old_archive_cmds=$lt_old_archive_cmds_GCJ
19134 old_postinstall_cmds=$lt_old_postinstall_cmds
19135 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19136
19137 # Create an old-style archive from a shared archive.
19138 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19139
19140 # Create a temporary old-style archive to link instead of a shared archive.
19141 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19142
19143 # Commands used to build and install a shared archive.
19144 archive_cmds=$lt_archive_cmds_GCJ
19145 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19146 postinstall_cmds=$lt_postinstall_cmds
19147 postuninstall_cmds=$lt_postuninstall_cmds
19148
19149 # Commands used to build a loadable module (assumed same as above if empty)
19150 module_cmds=$lt_module_cmds_GCJ
19151 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19152
19153 # Commands to strip libraries.
19154 old_striplib=$lt_old_striplib
19155 striplib=$lt_striplib
19156
19157 # Dependencies to place before the objects being linked to create a
19158 # shared library.
19159 predep_objects=\`echo $lt_predep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19160
19161 # Dependencies to place after the objects being linked to create a
19162 # shared library.
19163 postdep_objects=\`echo $lt_postdep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19164
19165 # Dependencies to place before the objects being linked to create a
19166 # shared library.
19167 predeps=$lt_predeps_GCJ
19168
19169 # Dependencies to place after the objects being linked to create a
19170 # shared library.
19171 postdeps=$lt_postdeps_GCJ
19172
19173 # The library search path used internally by the compiler when linking
19174 # a shared library.
19175 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19176
19177 # Method to check whether dependent libraries are shared objects.
19178 deplibs_check_method=$lt_deplibs_check_method
19179
19180 # Command to use when deplibs_check_method == file_magic.
19181 file_magic_cmd=$lt_file_magic_cmd
19182
19183 # Flag that allows shared libraries with undefined symbols to be built.
19184 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19185
19186 # Flag that forces no undefined symbols.
19187 no_undefined_flag=$lt_no_undefined_flag_GCJ
19188
19189 # Commands used to finish a libtool library installation in a directory.
19190 finish_cmds=$lt_finish_cmds
19191
19192 # Same as above, but a single script fragment to be evaled but not shown.
19193 finish_eval=$lt_finish_eval
19194
19195 # Take the output of nm and produce a listing of raw symbols and C names.
19196 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19197
19198 # Transform the output of nm in a proper C declaration
19199 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19200
19201 # Transform the output of nm in a C name address pair
19202 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19203
19204 # This is the shared library runtime path variable.
19205 runpath_var=$runpath_var
19206
19207 # This is the shared library path variable.
19208 shlibpath_var=$shlibpath_var
19209
19210 # Is shlibpath searched before the hard-coded library search path?
19211 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19212
19213 # How to hardcode a shared library path into an executable.
19214 hardcode_action=$hardcode_action_GCJ
19215
19216 # Whether we should hardcode library paths into libraries.
19217 hardcode_into_libs=$hardcode_into_libs
19218
19219 # Flag to hardcode \$libdir into a binary during linking.
19220 # This must work even if \$libdir does not exist.
19221 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19222
19223 # If ld is used when linking, flag to hardcode \$libdir into
19224 # a binary during linking. This must work even if \$libdir does
19225 # not exist.
19226 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19227
19228 # Whether we need a single -rpath flag with a separated argument.
19229 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19230
19231 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19232 # resulting binary.
19233 hardcode_direct=$hardcode_direct_GCJ
19234
19235 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19236 # resulting binary.
19237 hardcode_minus_L=$hardcode_minus_L_GCJ
19238
19239 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19240 # the resulting binary.
19241 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19242
19243 # Set to yes if building a shared library automatically hardcodes DIR into the library
19244 # and all subsequent libraries and executables linked against it.
19245 hardcode_automatic=$hardcode_automatic_GCJ
19246
19247 # Variables whose values should be saved in libtool wrapper scripts and
19248 # restored at relink time.
19249 variables_saved_for_relink="$variables_saved_for_relink"
19250
19251 # Whether libtool must link a program against all its dependency libraries.
19252 link_all_deplibs=$link_all_deplibs_GCJ
19253
19254 # Compile-time system search path for libraries
19255 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19256
19257 # Run-time system search path for libraries
19258 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19259
19260 # Fix the shell variable \$srcfile for the compiler.
19261 fix_srcfile_path="$fix_srcfile_path_GCJ"
19262
19263 # Set to yes if exported symbols are required.
19264 always_export_symbols=$always_export_symbols_GCJ
19265
19266 # The commands to list exported symbols.
19267 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19268
19269 # The commands to extract the exported symbol list from a shared archive.
19270 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19271
19272 # Symbols that should not be listed in the preloaded symbols.
19273 exclude_expsyms=$lt_exclude_expsyms_GCJ
19274
19275 # Symbols that must always be exported.
19276 include_expsyms=$lt_include_expsyms_GCJ
19277
19278 # ### END LIBTOOL TAG CONFIG: $tagname
19279
19280 __EOF__
19281
19282
19283 else
19284   # If there is no Makefile yet, we rely on a make rule to execute
19285   # `config.status --recheck' to rerun these tests and create the
19286   # libtool script then.
19287   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19288   if test -f "$ltmain_in"; then
19289     test -f Makefile && make "$ltmain"
19290   fi
19291 fi
19292
19293
19294 ac_ext=c
19295 ac_cpp='$CPP $CPPFLAGS'
19296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19299
19300 CC="$lt_save_CC"
19301
19302         else
19303           tagname=""
19304         fi
19305         ;;
19306
19307       RC)
19308
19309
19310 # Source file extension for RC test sources.
19311 ac_ext=rc
19312
19313 # Object file extension for compiled RC test sources.
19314 objext=o
19315 objext_RC=$objext
19316
19317 # Code to be used in simple compile tests
19318 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19319
19320 # Code to be used in simple link tests
19321 lt_simple_link_test_code="$lt_simple_compile_test_code"
19322
19323 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19324
19325 # If no C compiler was specified, use CC.
19326 LTCC=${LTCC-"$CC"}
19327
19328 # If no C compiler flags were specified, use CFLAGS.
19329 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19330
19331 # Allow CC to be a program name with arguments.
19332 compiler=$CC
19333
19334
19335 # save warnings/boilerplate of simple test code
19336 ac_outfile=conftest.$ac_objext
19337 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19338 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19339 _lt_compiler_boilerplate=`cat conftest.err`
19340 $rm conftest*
19341
19342 ac_outfile=conftest.$ac_objext
19343 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19344 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19345 _lt_linker_boilerplate=`cat conftest.err`
19346 $rm conftest*
19347
19348
19349 # Allow CC to be a program name with arguments.
19350 lt_save_CC="$CC"
19351 CC=${RC-"windres"}
19352 compiler=$CC
19353 compiler_RC=$CC
19354 for cc_temp in $compiler""; do
19355   case $cc_temp in
19356     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19357     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19358     \-*) ;;
19359     *) break;;
19360   esac
19361 done
19362 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19363
19364 lt_cv_prog_compiler_c_o_RC=yes
19365
19366 # The else clause should only fire when bootstrapping the
19367 # libtool distribution, otherwise you forgot to ship ltmain.sh
19368 # with your package, and you will get complaints that there are
19369 # no rules to generate ltmain.sh.
19370 if test -f "$ltmain"; then
19371   # See if we are running on zsh, and set the options which allow our commands through
19372   # without removal of \ escapes.
19373   if test -n "${ZSH_VERSION+set}" ; then
19374     setopt NO_GLOB_SUBST
19375   fi
19376   # Now quote all the things that may contain metacharacters while being
19377   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19378   # variables and quote the copies for generation of the libtool script.
19379   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19380     SED SHELL STRIP \
19381     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19382     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19383     deplibs_check_method reload_flag reload_cmds need_locks \
19384     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19385     lt_cv_sys_global_symbol_to_c_name_address \
19386     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19387     old_postinstall_cmds old_postuninstall_cmds \
19388     compiler_RC \
19389     CC_RC \
19390     LD_RC \
19391     lt_prog_compiler_wl_RC \
19392     lt_prog_compiler_pic_RC \
19393     lt_prog_compiler_static_RC \
19394     lt_prog_compiler_no_builtin_flag_RC \
19395     export_dynamic_flag_spec_RC \
19396     thread_safe_flag_spec_RC \
19397     whole_archive_flag_spec_RC \
19398     enable_shared_with_static_runtimes_RC \
19399     old_archive_cmds_RC \
19400     old_archive_from_new_cmds_RC \
19401     predep_objects_RC \
19402     postdep_objects_RC \
19403     predeps_RC \
19404     postdeps_RC \
19405     compiler_lib_search_path_RC \
19406     archive_cmds_RC \
19407     archive_expsym_cmds_RC \
19408     postinstall_cmds_RC \
19409     postuninstall_cmds_RC \
19410     old_archive_from_expsyms_cmds_RC \
19411     allow_undefined_flag_RC \
19412     no_undefined_flag_RC \
19413     export_symbols_cmds_RC \
19414     hardcode_libdir_flag_spec_RC \
19415     hardcode_libdir_flag_spec_ld_RC \
19416     hardcode_libdir_separator_RC \
19417     hardcode_automatic_RC \
19418     module_cmds_RC \
19419     module_expsym_cmds_RC \
19420     lt_cv_prog_compiler_c_o_RC \
19421     exclude_expsyms_RC \
19422     include_expsyms_RC; do
19423
19424     case $var in
19425     old_archive_cmds_RC | \
19426     old_archive_from_new_cmds_RC | \
19427     archive_cmds_RC | \
19428     archive_expsym_cmds_RC | \
19429     module_cmds_RC | \
19430     module_expsym_cmds_RC | \
19431     old_archive_from_expsyms_cmds_RC | \
19432     export_symbols_cmds_RC | \
19433     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19434     postinstall_cmds | postuninstall_cmds | \
19435     old_postinstall_cmds | old_postuninstall_cmds | \
19436     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19437       # Double-quote double-evaled strings.
19438       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19439       ;;
19440     *)
19441       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19442       ;;
19443     esac
19444   done
19445
19446   case $lt_echo in
19447   *'\$0 --fallback-echo"')
19448     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19449     ;;
19450   esac
19451
19452 cfgfile="$ofile"
19453
19454   cat <<__EOF__ >> "$cfgfile"
19455 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19456
19457 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19458
19459 # Shell to use when invoking shell scripts.
19460 SHELL=$lt_SHELL
19461
19462 # Whether or not to build shared libraries.
19463 build_libtool_libs=$enable_shared
19464
19465 # Whether or not to build static libraries.
19466 build_old_libs=$enable_static
19467
19468 # Whether or not to add -lc for building shared libraries.
19469 build_libtool_need_lc=$archive_cmds_need_lc_RC
19470
19471 # Whether or not to disallow shared libs when runtime libs are static
19472 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19473
19474 # Whether or not to optimize for fast installation.
19475 fast_install=$enable_fast_install
19476
19477 # The host system.
19478 host_alias=$host_alias
19479 host=$host
19480 host_os=$host_os
19481
19482 # The build system.
19483 build_alias=$build_alias
19484 build=$build
19485 build_os=$build_os
19486
19487 # An echo program that does not interpret backslashes.
19488 echo=$lt_echo
19489
19490 # The archiver.
19491 AR=$lt_AR
19492 AR_FLAGS=$lt_AR_FLAGS
19493
19494 # A C compiler.
19495 LTCC=$lt_LTCC
19496
19497 # LTCC compiler flags.
19498 LTCFLAGS=$lt_LTCFLAGS
19499
19500 # A language-specific compiler.
19501 CC=$lt_compiler_RC
19502
19503 # Is the compiler the GNU C compiler?
19504 with_gcc=$GCC_RC
19505
19506 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
19507 gcc_ver=\`gcc -dumpversion\`
19508
19509 # An ERE matcher.
19510 EGREP=$lt_EGREP
19511
19512 # The linker used to build libraries.
19513 LD=$lt_LD_RC
19514
19515 # Whether we need hard or soft links.
19516 LN_S=$lt_LN_S
19517
19518 # A BSD-compatible nm program.
19519 NM=$lt_NM
19520
19521 # A symbol stripping program
19522 STRIP=$lt_STRIP
19523
19524 # Used to examine libraries when file_magic_cmd begins "file"
19525 MAGIC_CMD=$MAGIC_CMD
19526
19527 # Used on cygwin: DLL creation program.
19528 DLLTOOL="$DLLTOOL"
19529
19530 # Used on cygwin: object dumper.
19531 OBJDUMP="$OBJDUMP"
19532
19533 # Used on cygwin: assembler.
19534 AS="$AS"
19535
19536 # The name of the directory that contains temporary libtool files.
19537 objdir=$objdir
19538
19539 # How to create reloadable object files.
19540 reload_flag=$lt_reload_flag
19541 reload_cmds=$lt_reload_cmds
19542
19543 # How to pass a linker flag through the compiler.
19544 wl=$lt_lt_prog_compiler_wl_RC
19545
19546 # Object file suffix (normally "o").
19547 objext="$ac_objext"
19548
19549 # Old archive suffix (normally "a").
19550 libext="$libext"
19551
19552 # Shared library suffix (normally ".so").
19553 shrext_cmds='$shrext_cmds'
19554
19555 # Executable file suffix (normally "").
19556 exeext="$exeext"
19557
19558 # Additional compiler flags for building library objects.
19559 pic_flag=$lt_lt_prog_compiler_pic_RC
19560 pic_mode=$pic_mode
19561
19562 # What is the maximum length of a command?
19563 max_cmd_len=$lt_cv_sys_max_cmd_len
19564
19565 # Does compiler simultaneously support -c and -o options?
19566 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19567
19568 # Must we lock files when doing compilation?
19569 need_locks=$lt_need_locks
19570
19571 # Do we need the lib prefix for modules?
19572 need_lib_prefix=$need_lib_prefix
19573
19574 # Do we need a version for libraries?
19575 need_version=$need_version
19576
19577 # Whether dlopen is supported.
19578 dlopen_support=$enable_dlopen
19579
19580 # Whether dlopen of programs is supported.
19581 dlopen_self=$enable_dlopen_self
19582
19583 # Whether dlopen of statically linked programs is supported.
19584 dlopen_self_static=$enable_dlopen_self_static
19585
19586 # Compiler flag to prevent dynamic linking.
19587 link_static_flag=$lt_lt_prog_compiler_static_RC
19588
19589 # Compiler flag to turn off builtin functions.
19590 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19591
19592 # Compiler flag to allow reflexive dlopens.
19593 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19594
19595 # Compiler flag to generate shared objects directly from archives.
19596 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19597
19598 # Compiler flag to generate thread-safe objects.
19599 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19600
19601 # Library versioning type.
19602 version_type=$version_type
19603
19604 # Format of library name prefix.
19605 libname_spec=$lt_libname_spec
19606
19607 # List of archive names.  First name is the real one, the rest are links.
19608 # The last name is the one that the linker finds with -lNAME.
19609 library_names_spec=$lt_library_names_spec
19610
19611 # The coded name of the library, if different from the real name.
19612 soname_spec=$lt_soname_spec
19613
19614 # Commands used to build and install an old-style archive.
19615 RANLIB=$lt_RANLIB
19616 old_archive_cmds=$lt_old_archive_cmds_RC
19617 old_postinstall_cmds=$lt_old_postinstall_cmds
19618 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19619
19620 # Create an old-style archive from a shared archive.
19621 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19622
19623 # Create a temporary old-style archive to link instead of a shared archive.
19624 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19625
19626 # Commands used to build and install a shared archive.
19627 archive_cmds=$lt_archive_cmds_RC
19628 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19629 postinstall_cmds=$lt_postinstall_cmds
19630 postuninstall_cmds=$lt_postuninstall_cmds
19631
19632 # Commands used to build a loadable module (assumed same as above if empty)
19633 module_cmds=$lt_module_cmds_RC
19634 module_expsym_cmds=$lt_module_expsym_cmds_RC
19635
19636 # Commands to strip libraries.
19637 old_striplib=$lt_old_striplib
19638 striplib=$lt_striplib
19639
19640 # Dependencies to place before the objects being linked to create a
19641 # shared library.
19642 predep_objects=\`echo $lt_predep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19643
19644 # Dependencies to place after the objects being linked to create a
19645 # shared library.
19646 postdep_objects=\`echo $lt_postdep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19647
19648 # Dependencies to place before the objects being linked to create a
19649 # shared library.
19650 predeps=$lt_predeps_RC
19651
19652 # Dependencies to place after the objects being linked to create a
19653 # shared library.
19654 postdeps=$lt_postdeps_RC
19655
19656 # The library search path used internally by the compiler when linking
19657 # a shared library.
19658 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19659
19660 # Method to check whether dependent libraries are shared objects.
19661 deplibs_check_method=$lt_deplibs_check_method
19662
19663 # Command to use when deplibs_check_method == file_magic.
19664 file_magic_cmd=$lt_file_magic_cmd
19665
19666 # Flag that allows shared libraries with undefined symbols to be built.
19667 allow_undefined_flag=$lt_allow_undefined_flag_RC
19668
19669 # Flag that forces no undefined symbols.
19670 no_undefined_flag=$lt_no_undefined_flag_RC
19671
19672 # Commands used to finish a libtool library installation in a directory.
19673 finish_cmds=$lt_finish_cmds
19674
19675 # Same as above, but a single script fragment to be evaled but not shown.
19676 finish_eval=$lt_finish_eval
19677
19678 # Take the output of nm and produce a listing of raw symbols and C names.
19679 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19680
19681 # Transform the output of nm in a proper C declaration
19682 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19683
19684 # Transform the output of nm in a C name address pair
19685 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19686
19687 # This is the shared library runtime path variable.
19688 runpath_var=$runpath_var
19689
19690 # This is the shared library path variable.
19691 shlibpath_var=$shlibpath_var
19692
19693 # Is shlibpath searched before the hard-coded library search path?
19694 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19695
19696 # How to hardcode a shared library path into an executable.
19697 hardcode_action=$hardcode_action_RC
19698
19699 # Whether we should hardcode library paths into libraries.
19700 hardcode_into_libs=$hardcode_into_libs
19701
19702 # Flag to hardcode \$libdir into a binary during linking.
19703 # This must work even if \$libdir does not exist.
19704 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19705
19706 # If ld is used when linking, flag to hardcode \$libdir into
19707 # a binary during linking. This must work even if \$libdir does
19708 # not exist.
19709 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19710
19711 # Whether we need a single -rpath flag with a separated argument.
19712 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19713
19714 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19715 # resulting binary.
19716 hardcode_direct=$hardcode_direct_RC
19717
19718 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19719 # resulting binary.
19720 hardcode_minus_L=$hardcode_minus_L_RC
19721
19722 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19723 # the resulting binary.
19724 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19725
19726 # Set to yes if building a shared library automatically hardcodes DIR into the library
19727 # and all subsequent libraries and executables linked against it.
19728 hardcode_automatic=$hardcode_automatic_RC
19729
19730 # Variables whose values should be saved in libtool wrapper scripts and
19731 # restored at relink time.
19732 variables_saved_for_relink="$variables_saved_for_relink"
19733
19734 # Whether libtool must link a program against all its dependency libraries.
19735 link_all_deplibs=$link_all_deplibs_RC
19736
19737 # Compile-time system search path for libraries
19738 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19739
19740 # Run-time system search path for libraries
19741 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19742
19743 # Fix the shell variable \$srcfile for the compiler.
19744 fix_srcfile_path="$fix_srcfile_path_RC"
19745
19746 # Set to yes if exported symbols are required.
19747 always_export_symbols=$always_export_symbols_RC
19748
19749 # The commands to list exported symbols.
19750 export_symbols_cmds=$lt_export_symbols_cmds_RC
19751
19752 # The commands to extract the exported symbol list from a shared archive.
19753 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19754
19755 # Symbols that should not be listed in the preloaded symbols.
19756 exclude_expsyms=$lt_exclude_expsyms_RC
19757
19758 # Symbols that must always be exported.
19759 include_expsyms=$lt_include_expsyms_RC
19760
19761 # ### END LIBTOOL TAG CONFIG: $tagname
19762
19763 __EOF__
19764
19765
19766 else
19767   # If there is no Makefile yet, we rely on a make rule to execute
19768   # `config.status --recheck' to rerun these tests and create the
19769   # libtool script then.
19770   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19771   if test -f "$ltmain_in"; then
19772     test -f Makefile && make "$ltmain"
19773   fi
19774 fi
19775
19776
19777 ac_ext=c
19778 ac_cpp='$CPP $CPPFLAGS'
19779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19782
19783 CC="$lt_save_CC"
19784
19785         ;;
19786
19787       *)
19788         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19789 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19790    { (exit 1); exit 1; }; }
19791         ;;
19792       esac
19793
19794       # Append the new tag name to the list of available tags.
19795       if test -n "$tagname" ; then
19796       available_tags="$available_tags $tagname"
19797     fi
19798     fi
19799   done
19800   IFS="$lt_save_ifs"
19801
19802   # Now substitute the updated list of available tags.
19803   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19804     mv "${ofile}T" "$ofile"
19805     chmod +x "$ofile"
19806   else
19807     rm -f "${ofile}T"
19808     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19809 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19810    { (exit 1); exit 1; }; }
19811   fi
19812 fi
19813
19814
19815
19816 # This can be used to rebuild libtool when needed
19817 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19818
19819 # Always use our own libtool.
19820 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19821
19822 # Prevent multiple expansion
19823
19824
19825
19826
19827
19828
19829
19830
19831
19832
19833
19834
19835
19836
19837
19838
19839
19840
19841
19842
19843
19844 case "$INSTALL" in
19845    *install-sh*)
19846       INSTALL='\${KERNEL_ROOT_DIR}'/adm_local/unix/config_files/install-sh
19847       ;;
19848 esac
19849
19850 echo
19851 echo ---------------------------------------------
19852 echo testing python
19853 echo ---------------------------------------------
19854 echo
19855
19856
19857
19858   { echo "$as_me:$LINENO: checking for LIB_LOCATION_SUFFIX..." >&5
19859 echo "$as_me: checking for LIB_LOCATION_SUFFIX..." >&6;}
19860   LIB_LOCATION_SUFFIX=""
19861
19862   { echo "$as_me:$LINENO: result: LIB_LOCATION_SUFFIX is $LIB_LOCATION_SUFFIX" >&5
19863 echo "${ECHO_T}LIB_LOCATION_SUFFIX is $LIB_LOCATION_SUFFIX" >&6; }
19864
19865   for opt in "-Xlinker -export-dynamic" -transitive_link; do
19866
19867   { echo "$as_me:$LINENO: checking wether $CXX accepts $opt" >&5
19868 echo $ECHO_N "checking wether $CXX accepts $opt... $ECHO_C" >&6; }
19869   cat > conftest.cxx <<EOF
19870 int main() { return 0; }
19871 EOF
19872   $CXX $opt conftest.cxx > conftest.log 2>&1
19873   var=`echo $opt | sed -e "s, .*$,," | sed -e "s,^-,,"`
19874 #CCRT  if ! grep -e $var conftest.log > /dev/null 2>&1 ; then
19875   if grep -e $var conftest.log > /dev/null 2>&1 ; then
19876     { echo "$as_me:$LINENO: result: no" >&5
19877 echo "${ECHO_T}no" >&6; }
19878     eval flag=no
19879   else
19880     { echo "$as_me:$LINENO: result: yes" >&5
19881 echo "${ECHO_T}yes" >&6; }
19882     LDEXPDYNFLAGS="${LDEXPDYNFLAGS} $opt"
19883     eval flag=yes
19884   fi
19885
19886     if test "$flag" = "yes"; then
19887       break
19888     fi
19889   done
19890
19891
19892   for opt in "-Xlinker -enable-new-dtags" ; do
19893
19894   { echo "$as_me:$LINENO: checking wether $CXX accepts $opt" >&5
19895 echo $ECHO_N "checking wether $CXX accepts $opt... $ECHO_C" >&6; }
19896   cat > conftest.cxx <<EOF
19897 int main() { return 0; }
19898 EOF
19899   $CXX $opt conftest.cxx > conftest.log 2>&1
19900   var=`echo $opt | sed -e "s, .*$,," | sed -e "s,^-,,"`
19901 #CCRT  if ! grep -e $var conftest.log > /dev/null 2>&1 ; then
19902   if grep -e $var conftest.log > /dev/null 2>&1 ; then
19903     { echo "$as_me:$LINENO: result: no" >&5
19904 echo "${ECHO_T}no" >&6; }
19905     eval
19906   else
19907     { echo "$as_me:$LINENO: result: yes" >&5
19908 echo "${ECHO_T}yes" >&6; }
19909     LDFLAGS="${LDFLAGS} $opt"
19910     eval
19911   fi
19912
19913   done
19914
19915
19916   case $host_os in
19917     osf*)
19918       STDLIB="-lcxxstd"
19919       ;;
19920     *)
19921       STDLIB="-lstdc++"
19922       ;;
19923   esac
19924
19925
19926
19927   python_ok=yes
19928
19929
19930 # Check whether --with-python was given.
19931 if test "${with_python+set}" = set; then
19932   withval=$with_python; PYTHON="$withval/bin/python"
19933     { echo "$as_me:$LINENO: result: \"select python distribution in $withval\"" >&5
19934 echo "${ECHO_T}\"select python distribution in $withval\"" >&6; }
19935
19936 else
19937
19938     # Extract the first word of "python", so it can be a program name with args.
19939 set dummy python; ac_word=$2
19940 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19942 if test "${ac_cv_path_PYTHON+set}" = set; then
19943   echo $ECHO_N "(cached) $ECHO_C" >&6
19944 else
19945   case $PYTHON in
19946   [\\/]* | ?:[\\/]*)
19947   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
19948   ;;
19949   *)
19950   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19951 for as_dir in $PATH
19952 do
19953   IFS=$as_save_IFS
19954   test -z "$as_dir" && as_dir=.
19955   for ac_exec_ext in '' $ac_executable_extensions; do
19956   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19957     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
19958     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19959     break 2
19960   fi
19961 done
19962 done
19963 IFS=$as_save_IFS
19964
19965   ;;
19966 esac
19967 fi
19968 PYTHON=$ac_cv_path_PYTHON
19969 if test -n "$PYTHON"; then
19970   { echo "$as_me:$LINENO: result: $PYTHON" >&5
19971 echo "${ECHO_T}$PYTHON" >&6; }
19972 else
19973   { echo "$as_me:$LINENO: result: no" >&5
19974 echo "${ECHO_T}no" >&6; }
19975 fi
19976
19977
19978
19979 fi
19980
19981
19982   { echo "$as_me:$LINENO: checking local Python configuration..." >&5
19983 echo "$as_me: checking local Python configuration..." >&6;}
19984
19985
19986   PYTHON_PREFIX=`echo $PYTHON | sed -e "s,[^/]*$,,;s,/$,,;s,^$,.,"`
19987   PYTHON_PREFIX=`echo $PYTHON_PREFIX | sed -e "s,[^/]*$,,;s,/$,,;s,^$,.,"`
19988   PYTHONHOME=$PYTHON_PREFIX
19989
19990
19991
19992
19993     PYTHON_VERSION=`$PYTHON -c "import sys; print sys.version[:3]"`
19994
19995
19996   PY_MAKEFILE=${PYTHON_PREFIX}/lib${LIB_LOCATION_SUFFIX}/python$PYTHON_VERSION/config/Makefile
19997   if test ! -f "$PY_MAKEFILE"; then
19998     if test "${build_cpu::6}" = "x86_64" ; then
19999       PY_MAKEFILE=${PYTHON_PREFIX}/lib64/python$PYTHON_VERSION/config/Makefile
20000     fi
20001   fi
20002   if test ! -f "$PY_MAKEFILE"; then
20003      { echo "$as_me:$LINENO: WARNING: *** Couldn't find ${PY_MAKEFILE}.  Maybe you are
20004 *** missing the development portion of the python installation" >&5
20005 echo "$as_me: WARNING: *** Couldn't find ${PY_MAKEFILE}.  Maybe you are
20006 *** missing the development portion of the python installation" >&2;}
20007      python_ok=no
20008   fi
20009
20010
20011
20012
20013   PYTHON_INCLUDES=-I$PYTHON_PREFIX/include/python$PYTHON_VERSION
20014   PYTHON_LIBS="-L${PYTHON_PREFIX}/lib${LIB_LOCATION_SUFFIX}/python${PYTHON_VERSION}/config -lpython${PYTHON_VERSION}"
20015   PYTHON_LIB=$PYTHON_LIBS
20016   PYTHON_LIBA=${PYTHON_PREFIX}/lib${LIB_LOCATION_SUFFIX}/python$PYTHON_VERSION/config/libpython$PYTHON_VERSION.a
20017   if test "${build_cpu::6}" = "x86_64" ; then
20018     if test "$PY_MAKEFILE" = "${PYTHON_PREFIX}/lib64/python$PYTHON_VERSION/config/Makefile" ; then
20019       PYTHON_LIBS="-L${PYTHON_PREFIX}/lib64/python${PYTHON_VERSION}/config -lpython${PYTHON_VERSION}"
20020       PYTHON_LIB=$PYTHON_LIBS
20021       PYTHON_LIBA=${PYTHON_PREFIX}/lib64/python$PYTHON_VERSION/config/libpython$PYTHON_VERSION.a
20022     fi
20023   fi
20024
20025
20026
20027   PYTHON_PLATFORM=`$PYTHON -c "import sys; print sys.platform"`
20028
20029
20030
20031 # Check whether --with-python-site was given.
20032 if test "${with_python_site+set}" = set; then
20033   withval=$with_python_site;
20034
20035    PYTHON_SITE="$withval"
20036     python_site_given=yes
20037 else
20038   PYTHON_SITE=${prefix}"/lib${LIB_LOCATION_SUFFIX}/python"${PYTHON_VERSION}/site-packages
20039     python_site_given=no
20040 fi
20041
20042
20043
20044   PYTHON_SITE_PACKAGE=$PYTHON_SITE/$PACKAGE
20045
20046
20047
20048
20049
20050 # Check whether --with-python-site-exec was given.
20051 if test "${with_python_site_exec+set}" = set; then
20052   withval=$with_python_site_exec; PYTHON_SITE_EXEC="$withval"
20053 else
20054   if test "$python_site_given" = yes; then
20055        PYTHON_SITE_EXEC=$PYTHON_SITE
20056      else
20057        PYTHON_SITE_EXEC=${PYTHON_EXEC_PREFIX}"/lib${LIB_LOCATION_SUFFIX}/python"${PYTHON_VERSION}/site-packages
20058      fi
20059 fi
20060
20061
20062     PYTHON_SITE_INSTALL=$PYTHON_SITE_PACKAGE
20063
20064
20065
20066   pythondir=${PYTHON_PREFIX}"/lib${LIB_LOCATION_SUFFIX}/python"${PYTHON_VERSION}/
20067
20068
20069  { echo "$as_me:$LINENO: checking if we need libdb" >&5
20070 echo $ECHO_N "checking if we need libdb... $ECHO_C" >&6; }
20071  PY_NEEDOPENDB=`nm $PYTHON_LIBA | grep dbopen | grep U`
20072   if test "x$PY_NEEDOPENDB" != "x"; then
20073      { echo "$as_me:$LINENO: result: yes" >&5
20074 echo "${ECHO_T}yes" >&6; }
20075      { echo "$as_me:$LINENO: checking for dbopen in -ldb" >&5
20076 echo $ECHO_N "checking for dbopen in -ldb... $ECHO_C" >&6; }
20077 if test "${ac_cv_lib_db_dbopen+set}" = set; then
20078   echo $ECHO_N "(cached) $ECHO_C" >&6
20079 else
20080   ac_check_lib_save_LIBS=$LIBS
20081 LIBS="-ldb  $LIBS"
20082 cat >conftest.$ac_ext <<_ACEOF
20083 /* confdefs.h.  */
20084 _ACEOF
20085 cat confdefs.h >>conftest.$ac_ext
20086 cat >>conftest.$ac_ext <<_ACEOF
20087 /* end confdefs.h.  */
20088
20089 /* Override any GCC internal prototype to avoid an error.
20090    Use char because int might match the return type of a GCC
20091    builtin and then its argument prototype would still apply.  */
20092 #ifdef __cplusplus
20093 extern "C"
20094 #endif
20095 char dbopen ();
20096 int
20097 main ()
20098 {
20099 return dbopen ();
20100   ;
20101   return 0;
20102 }
20103 _ACEOF
20104 rm -f conftest.$ac_objext conftest$ac_exeext
20105 if { (ac_try="$ac_link"
20106 case "(($ac_try" in
20107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20108   *) ac_try_echo=$ac_try;;
20109 esac
20110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20111   (eval "$ac_link") 2>conftest.er1
20112   ac_status=$?
20113   grep -v '^ *+' conftest.er1 >conftest.err
20114   rm -f conftest.er1
20115   cat conftest.err >&5
20116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20117   (exit $ac_status); } && {
20118          test -z "$ac_c_werror_flag" ||
20119          test ! -s conftest.err
20120        } && test -s conftest$ac_exeext &&
20121        $as_test_x conftest$ac_exeext; then
20122   ac_cv_lib_db_dbopen=yes
20123 else
20124   echo "$as_me: failed program was:" >&5
20125 sed 's/^/| /' conftest.$ac_ext >&5
20126
20127         ac_cv_lib_db_dbopen=no
20128 fi
20129
20130 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20131       conftest$ac_exeext conftest.$ac_ext
20132 LIBS=$ac_check_lib_save_LIBS
20133 fi
20134 { echo "$as_me:$LINENO: result: $ac_cv_lib_db_dbopen" >&5
20135 echo "${ECHO_T}$ac_cv_lib_db_dbopen" >&6; }
20136 if test $ac_cv_lib_db_dbopen = yes; then
20137   PYTHON_LIBS="$PYTHON_LIBS -ldb"
20138 else
20139   db_ok=no
20140 fi
20141
20142   else
20143      { echo "$as_me:$LINENO: result: no" >&5
20144 echo "${ECHO_T}no" >&6; }
20145   fi
20146
20147  { echo "$as_me:$LINENO: checking if we need libdl" >&5
20148 echo $ECHO_N "checking if we need libdl... $ECHO_C" >&6; }
20149   PY_NEEDOPENDL=`nm $PYTHON_LIBA | grep dlopen | grep U`
20150   if test "x$PY_NEEDOPENDL" != "x"; then
20151      { echo "$as_me:$LINENO: result: yes" >&5
20152 echo "${ECHO_T}yes" >&6; }
20153      { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20154 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
20155 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20156   echo $ECHO_N "(cached) $ECHO_C" >&6
20157 else
20158   ac_check_lib_save_LIBS=$LIBS
20159 LIBS="-ldl  $LIBS"
20160 cat >conftest.$ac_ext <<_ACEOF
20161 /* confdefs.h.  */
20162 _ACEOF
20163 cat confdefs.h >>conftest.$ac_ext
20164 cat >>conftest.$ac_ext <<_ACEOF
20165 /* end confdefs.h.  */
20166
20167 /* Override any GCC internal prototype to avoid an error.
20168    Use char because int might match the return type of a GCC
20169    builtin and then its argument prototype would still apply.  */
20170 #ifdef __cplusplus
20171 extern "C"
20172 #endif
20173 char dlopen ();
20174 int
20175 main ()
20176 {
20177 return dlopen ();
20178   ;
20179   return 0;
20180 }
20181 _ACEOF
20182 rm -f conftest.$ac_objext conftest$ac_exeext
20183 if { (ac_try="$ac_link"
20184 case "(($ac_try" in
20185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20186   *) ac_try_echo=$ac_try;;
20187 esac
20188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20189   (eval "$ac_link") 2>conftest.er1
20190   ac_status=$?
20191   grep -v '^ *+' conftest.er1 >conftest.err
20192   rm -f conftest.er1
20193   cat conftest.err >&5
20194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20195   (exit $ac_status); } && {
20196          test -z "$ac_c_werror_flag" ||
20197          test ! -s conftest.err
20198        } && test -s conftest$ac_exeext &&
20199        $as_test_x conftest$ac_exeext; then
20200   ac_cv_lib_dl_dlopen=yes
20201 else
20202   echo "$as_me: failed program was:" >&5
20203 sed 's/^/| /' conftest.$ac_ext >&5
20204
20205         ac_cv_lib_dl_dlopen=no
20206 fi
20207
20208 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20209       conftest$ac_exeext conftest.$ac_ext
20210 LIBS=$ac_check_lib_save_LIBS
20211 fi
20212 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20213 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
20214 if test $ac_cv_lib_dl_dlopen = yes; then
20215   PYTHON_LIBS="$PYTHON_LIBS -ldl"
20216 else
20217   dl_ok=no
20218 fi
20219
20220   else
20221      { echo "$as_me:$LINENO: result: no" >&5
20222 echo "${ECHO_T}no" >&6; }
20223   fi
20224
20225  { echo "$as_me:$LINENO: checking if we need libutil" >&5
20226 echo $ECHO_N "checking if we need libutil... $ECHO_C" >&6; }
20227   PY_NEEDOPENPTY=`nm $PYTHON_LIBA | grep openpty | grep U`
20228   if test "x$PY_NEEDOPENPTY" != "x"; then
20229      { echo "$as_me:$LINENO: result: yes" >&5
20230 echo "${ECHO_T}yes" >&6; }
20231      { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
20232 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
20233 if test "${ac_cv_lib_util_openpty+set}" = set; then
20234   echo $ECHO_N "(cached) $ECHO_C" >&6
20235 else
20236   ac_check_lib_save_LIBS=$LIBS
20237 LIBS="-lutil  $LIBS"
20238 cat >conftest.$ac_ext <<_ACEOF
20239 /* confdefs.h.  */
20240 _ACEOF
20241 cat confdefs.h >>conftest.$ac_ext
20242 cat >>conftest.$ac_ext <<_ACEOF
20243 /* end confdefs.h.  */
20244
20245 /* Override any GCC internal prototype to avoid an error.
20246    Use char because int might match the return type of a GCC
20247    builtin and then its argument prototype would still apply.  */
20248 #ifdef __cplusplus
20249 extern "C"
20250 #endif
20251 char openpty ();
20252 int
20253 main ()
20254 {
20255 return openpty ();
20256   ;
20257   return 0;
20258 }
20259 _ACEOF
20260 rm -f conftest.$ac_objext conftest$ac_exeext
20261 if { (ac_try="$ac_link"
20262 case "(($ac_try" in
20263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20264   *) ac_try_echo=$ac_try;;
20265 esac
20266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20267   (eval "$ac_link") 2>conftest.er1
20268   ac_status=$?
20269   grep -v '^ *+' conftest.er1 >conftest.err
20270   rm -f conftest.er1
20271   cat conftest.err >&5
20272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20273   (exit $ac_status); } && {
20274          test -z "$ac_c_werror_flag" ||
20275          test ! -s conftest.err
20276        } && test -s conftest$ac_exeext &&
20277        $as_test_x conftest$ac_exeext; then
20278   ac_cv_lib_util_openpty=yes
20279 else
20280   echo "$as_me: failed program was:" >&5
20281 sed 's/^/| /' conftest.$ac_ext >&5
20282
20283         ac_cv_lib_util_openpty=no
20284 fi
20285
20286 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20287       conftest$ac_exeext conftest.$ac_ext
20288 LIBS=$ac_check_lib_save_LIBS
20289 fi
20290 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
20291 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
20292 if test $ac_cv_lib_util_openpty = yes; then
20293   PYTHON_LIBS="$PYTHON_LIBS -lutil"
20294 else
20295   openpty_ok=no
20296 fi
20297
20298   else
20299      { echo "$as_me:$LINENO: result: no" >&5
20300 echo "${ECHO_T}no" >&6; }
20301   fi
20302
20303  { echo "$as_me:$LINENO: checking if we need tcltk" >&5
20304 echo $ECHO_N "checking if we need tcltk... $ECHO_C" >&6; }
20305   PY_NEEDTCLTK=`nm $PYTHON_LIBA | grep Tcl_Init | grep U`
20306   if test "x$PY_NEEDTCLTK" != "x"; then
20307      { echo "$as_me:$LINENO: result: yes" >&5
20308 echo "${ECHO_T}yes" >&6; }
20309      { echo "$as_me:$LINENO: checking for Tcl_Init in -ltcl" >&5
20310 echo $ECHO_N "checking for Tcl_Init in -ltcl... $ECHO_C" >&6; }
20311 if test "${ac_cv_lib_tcl_Tcl_Init+set}" = set; then
20312   echo $ECHO_N "(cached) $ECHO_C" >&6
20313 else
20314   ac_check_lib_save_LIBS=$LIBS
20315 LIBS="-ltcl  $LIBS"
20316 cat >conftest.$ac_ext <<_ACEOF
20317 /* confdefs.h.  */
20318 _ACEOF
20319 cat confdefs.h >>conftest.$ac_ext
20320 cat >>conftest.$ac_ext <<_ACEOF
20321 /* end confdefs.h.  */
20322
20323 /* Override any GCC internal prototype to avoid an error.
20324    Use char because int might match the return type of a GCC
20325    builtin and then its argument prototype would still apply.  */
20326 #ifdef __cplusplus
20327 extern "C"
20328 #endif
20329 char Tcl_Init ();
20330 int
20331 main ()
20332 {
20333 return Tcl_Init ();
20334   ;
20335   return 0;
20336 }
20337 _ACEOF
20338 rm -f conftest.$ac_objext conftest$ac_exeext
20339 if { (ac_try="$ac_link"
20340 case "(($ac_try" in
20341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20342   *) ac_try_echo=$ac_try;;
20343 esac
20344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20345   (eval "$ac_link") 2>conftest.er1
20346   ac_status=$?
20347   grep -v '^ *+' conftest.er1 >conftest.err
20348   rm -f conftest.er1
20349   cat conftest.err >&5
20350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20351   (exit $ac_status); } && {
20352          test -z "$ac_c_werror_flag" ||
20353          test ! -s conftest.err
20354        } && test -s conftest$ac_exeext &&
20355        $as_test_x conftest$ac_exeext; then
20356   ac_cv_lib_tcl_Tcl_Init=yes
20357 else
20358   echo "$as_me: failed program was:" >&5
20359 sed 's/^/| /' conftest.$ac_ext >&5
20360
20361         ac_cv_lib_tcl_Tcl_Init=no
20362 fi
20363
20364 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20365       conftest$ac_exeext conftest.$ac_ext
20366 LIBS=$ac_check_lib_save_LIBS
20367 fi
20368 { echo "$as_me:$LINENO: result: $ac_cv_lib_tcl_Tcl_Init" >&5
20369 echo "${ECHO_T}$ac_cv_lib_tcl_Tcl_Init" >&6; }
20370 if test $ac_cv_lib_tcl_Tcl_Init = yes; then
20371   PYTHON_LIBS="$PYTHON_LIBS -ltcl -ltk"
20372 else
20373   tclinit_ok=no
20374 fi
20375
20376   else
20377      { echo "$as_me:$LINENO: result: no" >&5
20378 echo "${ECHO_T}no" >&6; }
20379   fi
20380
20381   if test "$python_ok" == "yes"; then
20382       { echo "$as_me:$LINENO: result: looks good" >&5
20383 echo "${ECHO_T}looks good" >&6; }
20384   fi
20385
20386
20387
20388
20389
20390
20391         if test -n "$PYTHON"; then
20392       # If the user set $PYTHON, use it and don't search something else.
20393       { echo "$as_me:$LINENO: checking whether $PYTHON version >= 2.3" >&5
20394 echo $ECHO_N "checking whether $PYTHON version >= 2.3... $ECHO_C" >&6; }
20395       prog="import sys, string
20396 # split strings by '.' and convert to numeric.  Append some zeros
20397 # because we need at least 4 digits for the hex conversion.
20398 minver = map(int, string.split('2.3', '.')) + [0, 0, 0]
20399 minverhex = 0
20400 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
20401 sys.exit(sys.hexversion < minverhex)"
20402   if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
20403    ($PYTHON -c "$prog") >&5 2>&5
20404    ac_status=$?
20405    echo "$as_me:$LINENO: \$? = $ac_status" >&5
20406    (exit $ac_status); }; then
20407   { echo "$as_me:$LINENO: result: yes" >&5
20408 echo "${ECHO_T}yes" >&6; }
20409 else
20410   { { echo "$as_me:$LINENO: error: too old" >&5
20411 echo "$as_me: error: too old" >&2;}
20412    { (exit 1); exit 1; }; }
20413 fi
20414
20415       am_display_PYTHON=$PYTHON
20416     else
20417       # Otherwise, try each interpreter until we find one that satisfies
20418       # VERSION.
20419       { echo "$as_me:$LINENO: checking for a Python interpreter with version >= 2.3" >&5
20420 echo $ECHO_N "checking for a Python interpreter with version >= 2.3... $ECHO_C" >&6; }
20421 if test "${am_cv_pathless_PYTHON+set}" = set; then
20422   echo $ECHO_N "(cached) $ECHO_C" >&6
20423 else
20424
20425         for am_cv_pathless_PYTHON in python python2 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5 none; do
20426           test "$am_cv_pathless_PYTHON" = none && break
20427           prog="import sys, string
20428 # split strings by '.' and convert to numeric.  Append some zeros
20429 # because we need at least 4 digits for the hex conversion.
20430 minver = map(int, string.split('2.3', '.')) + [0, 0, 0]
20431 minverhex = 0
20432 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
20433 sys.exit(sys.hexversion < minverhex)"
20434   if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
20435    ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
20436    ac_status=$?
20437    echo "$as_me:$LINENO: \$? = $ac_status" >&5
20438    (exit $ac_status); }; then
20439   break
20440 fi
20441
20442         done
20443 fi
20444 { echo "$as_me:$LINENO: result: $am_cv_pathless_PYTHON" >&5
20445 echo "${ECHO_T}$am_cv_pathless_PYTHON" >&6; }
20446       # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
20447       if test "$am_cv_pathless_PYTHON" = none; then
20448         PYTHON=:
20449       else
20450         # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
20451 set dummy $am_cv_pathless_PYTHON; ac_word=$2
20452 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20454 if test "${ac_cv_path_PYTHON+set}" = set; then
20455   echo $ECHO_N "(cached) $ECHO_C" >&6
20456 else
20457   case $PYTHON in
20458   [\\/]* | ?:[\\/]*)
20459   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
20460   ;;
20461   *)
20462   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20463 for as_dir in $PATH
20464 do
20465   IFS=$as_save_IFS
20466   test -z "$as_dir" && as_dir=.
20467   for ac_exec_ext in '' $ac_executable_extensions; do
20468   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20469     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
20470     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20471     break 2
20472   fi
20473 done
20474 done
20475 IFS=$as_save_IFS
20476
20477   ;;
20478 esac
20479 fi
20480 PYTHON=$ac_cv_path_PYTHON
20481 if test -n "$PYTHON"; then
20482   { echo "$as_me:$LINENO: result: $PYTHON" >&5
20483 echo "${ECHO_T}$PYTHON" >&6; }
20484 else
20485   { echo "$as_me:$LINENO: result: no" >&5
20486 echo "${ECHO_T}no" >&6; }
20487 fi
20488
20489
20490       fi
20491       am_display_PYTHON=$am_cv_pathless_PYTHON
20492     fi
20493
20494
20495   if test "$PYTHON" = :; then
20496       { { echo "$as_me:$LINENO: error: no suitable Python interpreter found" >&5
20497 echo "$as_me: error: no suitable Python interpreter found" >&2;}
20498    { (exit 1); exit 1; }; }
20499   else
20500
20501
20502   { echo "$as_me:$LINENO: checking for $am_display_PYTHON version" >&5
20503 echo $ECHO_N "checking for $am_display_PYTHON version... $ECHO_C" >&6; }
20504 if test "${am_cv_python_version+set}" = set; then
20505   echo $ECHO_N "(cached) $ECHO_C" >&6
20506 else
20507   am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
20508 fi
20509 { echo "$as_me:$LINENO: result: $am_cv_python_version" >&5
20510 echo "${ECHO_T}$am_cv_python_version" >&6; }
20511   PYTHON_VERSION=$am_cv_python_version
20512
20513
20514
20515   PYTHON_PREFIX='${prefix}'
20516
20517   PYTHON_EXEC_PREFIX='${exec_prefix}'
20518
20519
20520
20521   { echo "$as_me:$LINENO: checking for $am_display_PYTHON platform" >&5
20522 echo $ECHO_N "checking for $am_display_PYTHON platform... $ECHO_C" >&6; }
20523 if test "${am_cv_python_platform+set}" = set; then
20524   echo $ECHO_N "(cached) $ECHO_C" >&6
20525 else
20526   am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
20527 fi
20528 { echo "$as_me:$LINENO: result: $am_cv_python_platform" >&5
20529 echo "${ECHO_T}$am_cv_python_platform" >&6; }
20530   PYTHON_PLATFORM=$am_cv_python_platform
20531
20532
20533
20534
20535                 { echo "$as_me:$LINENO: checking for $am_display_PYTHON script directory" >&5
20536 echo $ECHO_N "checking for $am_display_PYTHON script directory... $ECHO_C" >&6; }
20537 if test "${am_cv_python_pythondir+set}" = set; then
20538   echo $ECHO_N "(cached) $ECHO_C" >&6
20539 else
20540   am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
20541      echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
20542 fi
20543 { echo "$as_me:$LINENO: result: $am_cv_python_pythondir" >&5
20544 echo "${ECHO_T}$am_cv_python_pythondir" >&6; }
20545   pythondir=$am_cv_python_pythondir
20546
20547
20548
20549   pkgpythondir=\${pythondir}/$PACKAGE
20550
20551
20552             { echo "$as_me:$LINENO: checking for $am_display_PYTHON extension module directory" >&5
20553 echo $ECHO_N "checking for $am_display_PYTHON extension module directory... $ECHO_C" >&6; }
20554 if test "${am_cv_python_pyexecdir+set}" = set; then
20555   echo $ECHO_N "(cached) $ECHO_C" >&6
20556 else
20557   am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
20558      echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
20559 fi
20560 { echo "$as_me:$LINENO: result: $am_cv_python_pyexecdir" >&5
20561 echo "${ECHO_T}$am_cv_python_pyexecdir" >&6; }
20562   pyexecdir=$am_cv_python_pyexecdir
20563
20564
20565
20566   pkgpyexecdir=\${pyexecdir}/$PACKAGE
20567
20568
20569
20570   fi
20571
20572
20573
20574 echo
20575 echo ---------------------------------------------
20576 echo testing omniORB
20577 echo ---------------------------------------------
20578 echo
20579
20580
20581
20582
20583 ac_ext=c
20584 ac_cpp='$CPP $CPPFLAGS'
20585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20588
20589 acx_pthread_ok=no
20590
20591 # We used to check for pthread.h first, but this fails if pthread.h
20592 # requires special compiler flags (e.g. on True64 or Sequent).
20593 # It gets checked for in the link test anyway.
20594
20595 # First of all, check if the user has set any of the PTHREAD_LIBS,
20596 # etcetera environment variables, and if threads linking works using
20597 # them:
20598 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
20599         save_CFLAGS="$CFLAGS"
20600         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
20601         save_LIBS="$LIBS"
20602         LIBS="$PTHREAD_LIBS $LIBS"
20603         { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
20604 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
20605         cat >conftest.$ac_ext <<_ACEOF
20606 /* confdefs.h.  */
20607 _ACEOF
20608 cat confdefs.h >>conftest.$ac_ext
20609 cat >>conftest.$ac_ext <<_ACEOF
20610 /* end confdefs.h.  */
20611
20612 /* Override any GCC internal prototype to avoid an error.
20613    Use char because int might match the return type of a GCC
20614    builtin and then its argument prototype would still apply.  */
20615 #ifdef __cplusplus
20616 extern "C"
20617 #endif
20618 char pthread_join ();
20619 int
20620 main ()
20621 {
20622 return pthread_join ();
20623   ;
20624   return 0;
20625 }
20626 _ACEOF
20627 rm -f conftest.$ac_objext conftest$ac_exeext
20628 if { (ac_try="$ac_link"
20629 case "(($ac_try" in
20630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20631   *) ac_try_echo=$ac_try;;
20632 esac
20633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20634   (eval "$ac_link") 2>conftest.er1
20635   ac_status=$?
20636   grep -v '^ *+' conftest.er1 >conftest.err
20637   rm -f conftest.er1
20638   cat conftest.err >&5
20639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20640   (exit $ac_status); } && {
20641          test -z "$ac_c_werror_flag" ||
20642          test ! -s conftest.err
20643        } && test -s conftest$ac_exeext &&
20644        $as_test_x conftest$ac_exeext; then
20645   acx_pthread_ok=yes
20646 else
20647   echo "$as_me: failed program was:" >&5
20648 sed 's/^/| /' conftest.$ac_ext >&5
20649
20650
20651 fi
20652
20653 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20654       conftest$ac_exeext conftest.$ac_ext
20655         { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
20656 echo "${ECHO_T}$acx_pthread_ok" >&6; }
20657         if test x"$acx_pthread_ok" = xno; then
20658                 PTHREAD_LIBS=""
20659                 PTHREAD_CFLAGS=""
20660         fi
20661         LIBS="$save_LIBS"
20662         CFLAGS="$save_CFLAGS"
20663 fi
20664
20665 # We must check for the threads library under a number of different
20666 # names; the ordering is very important because some systems
20667 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
20668 # libraries is broken (non-POSIX).
20669
20670 # Create a list of thread flags to try.  Items starting with a "-" are
20671 # C compiler flags, and other items are library names, except for "none"
20672 # which indicates that we try without any flags at all, and "pthread-config"
20673 # which is a program returning the flags for the Pth emulation library.
20674
20675 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
20676
20677 # The ordering *is* (sometimes) important.  Some notes on the
20678 # individual items follow:
20679
20680 # pthreads: AIX (must check this before -lpthread)
20681 # none: in case threads are in libc; should be tried before -Kthread and
20682 #       other compiler flags to prevent continual compiler warnings
20683 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
20684 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
20685 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
20686 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
20687 # -pthreads: Solaris/gcc
20688 # -mthreads: Mingw32/gcc, Lynx/gcc
20689 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
20690 #      doesn't hurt to check since this sometimes defines pthreads too;
20691 #      also defines -D_REENTRANT)
20692 # pthread: Linux, etcetera
20693 # --thread-safe: KAI C++
20694 # pthread-config: use pthread-config program (for GNU Pth library)
20695
20696 case "${host_cpu}-${host_os}" in
20697         *linux*)
20698
20699         # On linux "none" works, but boost requires -pthread, so, try first "-pthread"
20700 acx_pthread_flags="-pthread pthreads none -Kthread -kthread lthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
20701         ;;
20702
20703         *solaris*)
20704
20705         # On Solaris (at least, for some versions), libc contains stubbed
20706         # (non-functional) versions of the pthreads routines, so link-based
20707         # tests will erroneously succeed.  (We need to link with -pthread or
20708         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
20709         # a function called by this macro, so we could check for that, but
20710         # who knows whether they'll stub that too in a future libc.)  So,
20711         # we'll just look for -pthreads and -lpthread first:
20712
20713         acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
20714         ;;
20715 esac
20716
20717 if test x"$acx_pthread_ok" = xno; then
20718 for flag in $acx_pthread_flags; do
20719
20720         case $flag in
20721                 none)
20722                 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
20723 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
20724                 ;;
20725
20726                 -*)
20727                 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
20728 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
20729                 PTHREAD_CFLAGS="$flag"
20730                 ;;
20731
20732                 pthread-config)
20733                 # Extract the first word of "pthread-config", so it can be a program name with args.
20734 set dummy pthread-config; ac_word=$2
20735 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20737 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
20738   echo $ECHO_N "(cached) $ECHO_C" >&6
20739 else
20740   if test -n "$acx_pthread_config"; then
20741   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
20742 else
20743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20744 for as_dir in $PATH
20745 do
20746   IFS=$as_save_IFS
20747   test -z "$as_dir" && as_dir=.
20748   for ac_exec_ext in '' $ac_executable_extensions; do
20749   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20750     ac_cv_prog_acx_pthread_config="yes"
20751     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20752     break 2
20753   fi
20754 done
20755 done
20756 IFS=$as_save_IFS
20757
20758   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
20759 fi
20760 fi
20761 acx_pthread_config=$ac_cv_prog_acx_pthread_config
20762 if test -n "$acx_pthread_config"; then
20763   { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
20764 echo "${ECHO_T}$acx_pthread_config" >&6; }
20765 else
20766   { echo "$as_me:$LINENO: result: no" >&5
20767 echo "${ECHO_T}no" >&6; }
20768 fi
20769
20770
20771                 if test x"$acx_pthread_config" = xno; then continue; fi
20772                 PTHREAD_CFLAGS="`pthread-config --cflags`"
20773                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
20774                 ;;
20775
20776                 *)
20777                 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
20778 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
20779                 PTHREAD_LIBS="-l$flag"
20780                 ;;
20781         esac
20782
20783         save_LIBS="$LIBS"
20784         save_CFLAGS="$CFLAGS"
20785         LIBS="$PTHREAD_LIBS $LIBS"
20786         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
20787
20788         # Check for various functions.  We must include pthread.h,
20789         # since some functions may be macros.  (On the Sequent, we
20790         # need a special flag -Kthread to make this header compile.)
20791         # We check for pthread_join because it is in -lpthread on IRIX
20792         # while pthread_create is in libc.  We check for pthread_attr_init
20793         # due to DEC craziness with -lpthreads.  We check for
20794         # pthread_cleanup_push because it is one of the few pthread
20795         # functions on Solaris that doesn't have a non-functional libc stub.
20796         # We try pthread_create on general principles.
20797         cat >conftest.$ac_ext <<_ACEOF
20798 /* confdefs.h.  */
20799 _ACEOF
20800 cat confdefs.h >>conftest.$ac_ext
20801 cat >>conftest.$ac_ext <<_ACEOF
20802 /* end confdefs.h.  */
20803 #include <pthread.h>
20804 int
20805 main ()
20806 {
20807 pthread_t th; pthread_join(th, 0);
20808                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
20809                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
20810   ;
20811   return 0;
20812 }
20813 _ACEOF
20814 rm -f conftest.$ac_objext conftest$ac_exeext
20815 if { (ac_try="$ac_link"
20816 case "(($ac_try" in
20817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20818   *) ac_try_echo=$ac_try;;
20819 esac
20820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20821   (eval "$ac_link") 2>conftest.er1
20822   ac_status=$?
20823   grep -v '^ *+' conftest.er1 >conftest.err
20824   rm -f conftest.er1
20825   cat conftest.err >&5
20826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20827   (exit $ac_status); } && {
20828          test -z "$ac_c_werror_flag" ||
20829          test ! -s conftest.err
20830        } && test -s conftest$ac_exeext &&
20831        $as_test_x conftest$ac_exeext; then
20832   acx_pthread_ok=yes
20833 else
20834   echo "$as_me: failed program was:" >&5
20835 sed 's/^/| /' conftest.$ac_ext >&5
20836
20837
20838 fi
20839
20840 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20841       conftest$ac_exeext conftest.$ac_ext
20842
20843         LIBS="$save_LIBS"
20844         CFLAGS="$save_CFLAGS"
20845
20846         { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
20847 echo "${ECHO_T}$acx_pthread_ok" >&6; }
20848         if test "x$acx_pthread_ok" = xyes; then
20849                 break;
20850         fi
20851
20852         PTHREAD_LIBS=""
20853         PTHREAD_CFLAGS=""
20854 done
20855 fi
20856
20857 # Various other checks:
20858 if test "x$acx_pthread_ok" = xyes; then
20859         save_LIBS="$LIBS"
20860         LIBS="$PTHREAD_LIBS $LIBS"
20861         save_CFLAGS="$CFLAGS"
20862         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
20863
20864         # Detect AIX lossage: threads are created detached by default
20865         # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
20866         { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
20867 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
20868         cat >conftest.$ac_ext <<_ACEOF
20869 /* confdefs.h.  */
20870 _ACEOF
20871 cat confdefs.h >>conftest.$ac_ext
20872 cat >>conftest.$ac_ext <<_ACEOF
20873 /* end confdefs.h.  */
20874 #include <pthread.h>
20875 int
20876 main ()
20877 {
20878 int attr=PTHREAD_CREATE_JOINABLE;
20879   ;
20880   return 0;
20881 }
20882 _ACEOF
20883 rm -f conftest.$ac_objext conftest$ac_exeext
20884 if { (ac_try="$ac_link"
20885 case "(($ac_try" in
20886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20887   *) ac_try_echo=$ac_try;;
20888 esac
20889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20890   (eval "$ac_link") 2>conftest.er1
20891   ac_status=$?
20892   grep -v '^ *+' conftest.er1 >conftest.err
20893   rm -f conftest.er1
20894   cat conftest.err >&5
20895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20896   (exit $ac_status); } && {
20897          test -z "$ac_c_werror_flag" ||
20898          test ! -s conftest.err
20899        } && test -s conftest$ac_exeext &&
20900        $as_test_x conftest$ac_exeext; then
20901   ok=PTHREAD_CREATE_JOINABLE
20902 else
20903   echo "$as_me: failed program was:" >&5
20904 sed 's/^/| /' conftest.$ac_ext >&5
20905
20906         ok=unknown
20907 fi
20908
20909 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20910       conftest$ac_exeext conftest.$ac_ext
20911         if test x"$ok" = xunknown; then
20912                 cat >conftest.$ac_ext <<_ACEOF
20913 /* confdefs.h.  */
20914 _ACEOF
20915 cat confdefs.h >>conftest.$ac_ext
20916 cat >>conftest.$ac_ext <<_ACEOF
20917 /* end confdefs.h.  */
20918 #include <pthread.h>
20919 int
20920 main ()
20921 {
20922 int attr=PTHREAD_CREATE_UNDETACHED;
20923   ;
20924   return 0;
20925 }
20926 _ACEOF
20927 rm -f conftest.$ac_objext conftest$ac_exeext
20928 if { (ac_try="$ac_link"
20929 case "(($ac_try" in
20930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20931   *) ac_try_echo=$ac_try;;
20932 esac
20933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20934   (eval "$ac_link") 2>conftest.er1
20935   ac_status=$?
20936   grep -v '^ *+' conftest.er1 >conftest.err
20937   rm -f conftest.er1
20938   cat conftest.err >&5
20939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20940   (exit $ac_status); } && {
20941          test -z "$ac_c_werror_flag" ||
20942          test ! -s conftest.err
20943        } && test -s conftest$ac_exeext &&
20944        $as_test_x conftest$ac_exeext; then
20945   ok=PTHREAD_CREATE_UNDETACHED
20946 else
20947   echo "$as_me: failed program was:" >&5
20948 sed 's/^/| /' conftest.$ac_ext >&5
20949
20950         ok=unknown
20951 fi
20952
20953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20954       conftest$ac_exeext conftest.$ac_ext
20955         fi
20956         if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
20957
20958 cat >>confdefs.h <<\_ACEOF
20959 #define PTHREAD_CREATE_JOINABLE $ok
20960 _ACEOF
20961
20962         fi
20963         { echo "$as_me:$LINENO: result: ${ok}" >&5
20964 echo "${ECHO_T}${ok}" >&6; }
20965         if test x"$ok" = xunknown; then
20966                 { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
20967 echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
20968         fi
20969
20970         { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
20971 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
20972         flag=no
20973         case "${host_cpu}-${host_os}" in
20974                 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
20975                 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
20976         esac
20977         { echo "$as_me:$LINENO: result: ${flag}" >&5
20978 echo "${ECHO_T}${flag}" >&6; }
20979         if test "x$flag" != xno; then
20980                 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
20981         fi
20982
20983         LIBS="$save_LIBS"
20984         CFLAGS="$save_CFLAGS"
20985
20986         # More AIX lossage: must compile with cc_r
20987         # Extract the first word of "cc_r", so it can be a program name with args.
20988 set dummy cc_r; ac_word=$2
20989 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20991 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
20992   echo $ECHO_N "(cached) $ECHO_C" >&6
20993 else
20994   if test -n "$PTHREAD_CC"; then
20995   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
20996 else
20997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20998 for as_dir in $PATH
20999 do
21000   IFS=$as_save_IFS
21001   test -z "$as_dir" && as_dir=.
21002   for ac_exec_ext in '' $ac_executable_extensions; do
21003   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21004     ac_cv_prog_PTHREAD_CC="cc_r"
21005     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21006     break 2
21007   fi
21008 done
21009 done
21010 IFS=$as_save_IFS
21011
21012   test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
21013 fi
21014 fi
21015 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
21016 if test -n "$PTHREAD_CC"; then
21017   { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
21018 echo "${ECHO_T}$PTHREAD_CC" >&6; }
21019 else
21020   { echo "$as_me:$LINENO: result: no" >&5
21021 echo "${ECHO_T}no" >&6; }
21022 fi
21023
21024
21025 else
21026         PTHREAD_CC="$CC"
21027 fi
21028
21029
21030
21031
21032
21033 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
21034 if test x"$acx_pthread_ok" = xyes; then
21035
21036 cat >>confdefs.h <<\_ACEOF
21037 #define HAVE_PTHREAD 1
21038 _ACEOF
21039
21040         :
21041 else
21042         acx_pthread_ok=no
21043
21044 fi
21045 ac_ext=cpp
21046 ac_cpp='$CXXCPP $CPPFLAGS'
21047 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21048 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21049 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21050
21051
21052
21053
21054
21055 { echo "$as_me:$LINENO: checking for omniORB..." >&5
21056 echo "$as_me: checking for omniORB..." >&6;}
21057 omniORB_ok=yes
21058
21059 if test "x$PYTHON" = "x"
21060 then
21061
21062   python_ok=yes
21063
21064
21065 # Check whether --with-python was given.
21066 if test "${with_python+set}" = set; then
21067   withval=$with_python; PYTHON="$withval/bin/python"
21068     { echo "$as_me:$LINENO: result: \"select python distribution in $withval\"" >&5
21069 echo "${ECHO_T}\"select python distribution in $withval\"" >&6; }
21070
21071 else
21072
21073     # Extract the first word of "python", so it can be a program name with args.
21074 set dummy python; ac_word=$2
21075 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21077 if test "${ac_cv_path_PYTHON+set}" = set; then
21078   echo $ECHO_N "(cached) $ECHO_C" >&6
21079 else
21080   case $PYTHON in
21081   [\\/]* | ?:[\\/]*)
21082   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
21083   ;;
21084   *)
21085   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21086 for as_dir in $PATH
21087 do
21088   IFS=$as_save_IFS
21089   test -z "$as_dir" && as_dir=.
21090   for ac_exec_ext in '' $ac_executable_extensions; do
21091   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21092     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
21093     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21094     break 2
21095   fi
21096 done
21097 done
21098 IFS=$as_save_IFS
21099
21100   ;;
21101 esac
21102 fi
21103 PYTHON=$ac_cv_path_PYTHON
21104 if test -n "$PYTHON"; then
21105   { echo "$as_me:$LINENO: result: $PYTHON" >&5
21106 echo "${ECHO_T}$PYTHON" >&6; }
21107 else
21108   { echo "$as_me:$LINENO: result: no" >&5
21109 echo "${ECHO_T}no" >&6; }
21110 fi
21111
21112
21113
21114 fi
21115
21116
21117   { echo "$as_me:$LINENO: checking local Python configuration..." >&5
21118 echo "$as_me: checking local Python configuration..." >&6;}
21119
21120
21121   PYTHON_PREFIX=`echo $PYTHON | sed -e "s,[^/]*$,,;s,/$,,;s,^$,.,"`
21122   PYTHON_PREFIX=`echo $PYTHON_PREFIX | sed -e "s,[^/]*$,,;s,/$,,;s,^$,.,"`
21123   PYTHONHOME=$PYTHON_PREFIX
21124
21125
21126
21127
21128     PYTHON_VERSION=`$PYTHON -c "import sys; print sys.version[:3]"`
21129
21130
21131   PY_MAKEFILE=${PYTHON_PREFIX}/lib${LIB_LOCATION_SUFFIX}/python$PYTHON_VERSION/config/Makefile
21132   if test ! -f "$PY_MAKEFILE"; then
21133     if test "${build_cpu::6}" = "x86_64" ; then
21134       PY_MAKEFILE=${PYTHON_PREFIX}/lib64/python$PYTHON_VERSION/config/Makefile
21135     fi
21136   fi
21137   if test ! -f "$PY_MAKEFILE"; then
21138      { echo "$as_me:$LINENO: WARNING: *** Couldn't find ${PY_MAKEFILE}.  Maybe you are
21139 *** missing the development portion of the python installation" >&5
21140 echo "$as_me: WARNING: *** Couldn't find ${PY_MAKEFILE}.  Maybe you are
21141 *** missing the development portion of the python installation" >&2;}
21142      python_ok=no
21143   fi
21144
21145
21146
21147
21148   PYTHON_INCLUDES=-I$PYTHON_PREFIX/include/python$PYTHON_VERSION
21149   PYTHON_LIBS="-L${PYTHON_PREFIX}/lib${LIB_LOCATION_SUFFIX}/python${PYTHON_VERSION}/config -lpython${PYTHON_VERSION}"
21150   PYTHON_LIB=$PYTHON_LIBS
21151   PYTHON_LIBA=${PYTHON_PREFIX}/lib${LIB_LOCATION_SUFFIX}/python$PYTHON_VERSION/config/libpython$PYTHON_VERSION.a
21152   if test "${build_cpu::6}" = "x86_64" ; then
21153     if test "$PY_MAKEFILE" = "${PYTHON_PREFIX}/lib64/python$PYTHON_VERSION/config/Makefile" ; then
21154       PYTHON_LIBS="-L${PYTHON_PREFIX}/lib64/python${PYTHON_VERSION}/config -lpython${PYTHON_VERSION}"
21155       PYTHON_LIB=$PYTHON_LIBS
21156       PYTHON_LIBA=${PYTHON_PREFIX}/lib64/python$PYTHON_VERSION/config/libpython$PYTHON_VERSION.a
21157     fi
21158   fi
21159
21160
21161
21162   PYTHON_PLATFORM=`$PYTHON -c "import sys; print sys.platform"`
21163
21164
21165
21166 # Check whether --with-python-site was given.
21167 if test "${with_python_site+set}" = set; then
21168   withval=$with_python_site;
21169
21170    PYTHON_SITE="$withval"
21171     python_site_given=yes
21172 else
21173   PYTHON_SITE=${prefix}"/lib${LIB_LOCATION_SUFFIX}/python"${PYTHON_VERSION}/site-packages
21174     python_site_given=no
21175 fi
21176
21177
21178
21179   PYTHON_SITE_PACKAGE=$PYTHON_SITE/$PACKAGE
21180
21181
21182
21183
21184
21185 # Check whether --with-python-site-exec was given.
21186 if test "${with_python_site_exec+set}" = set; then
21187   withval=$with_python_site_exec; PYTHON_SITE_EXEC="$withval"
21188 else
21189   if test "$python_site_given" = yes; then
21190        PYTHON_SITE_EXEC=$PYTHON_SITE
21191      else
21192        PYTHON_SITE_EXEC=${PYTHON_EXEC_PREFIX}"/lib${LIB_LOCATION_SUFFIX}/python"${PYTHON_VERSION}/site-packages
21193      fi
21194 fi
21195
21196
21197     PYTHON_SITE_INSTALL=$PYTHON_SITE_PACKAGE
21198
21199
21200
21201   pythondir=${PYTHON_PREFIX}"/lib${LIB_LOCATION_SUFFIX}/python"${PYTHON_VERSION}/
21202
21203
21204  { echo "$as_me:$LINENO: checking if we need libdb" >&5
21205 echo $ECHO_N "checking if we need libdb... $ECHO_C" >&6; }
21206  PY_NEEDOPENDB=`nm $PYTHON_LIBA | grep dbopen | grep U`
21207   if test "x$PY_NEEDOPENDB" != "x"; then
21208      { echo "$as_me:$LINENO: result: yes" >&5
21209 echo "${ECHO_T}yes" >&6; }
21210      { echo "$as_me:$LINENO: checking for dbopen in -ldb" >&5
21211 echo $ECHO_N "checking for dbopen in -ldb... $ECHO_C" >&6; }
21212 if test "${ac_cv_lib_db_dbopen+set}" = set; then
21213   echo $ECHO_N "(cached) $ECHO_C" >&6
21214 else
21215   ac_check_lib_save_LIBS=$LIBS
21216 LIBS="-ldb  $LIBS"
21217 cat >conftest.$ac_ext <<_ACEOF
21218 /* confdefs.h.  */
21219 _ACEOF
21220 cat confdefs.h >>conftest.$ac_ext
21221 cat >>conftest.$ac_ext <<_ACEOF
21222 /* end confdefs.h.  */
21223
21224 /* Override any GCC internal prototype to avoid an error.
21225    Use char because int might match the return type of a GCC
21226    builtin and then its argument prototype would still apply.  */
21227 #ifdef __cplusplus
21228 extern "C"
21229 #endif
21230 char dbopen ();
21231 int
21232 main ()
21233 {
21234 return dbopen ();
21235   ;
21236   return 0;
21237 }
21238 _ACEOF
21239 rm -f conftest.$ac_objext conftest$ac_exeext
21240 if { (ac_try="$ac_link"
21241 case "(($ac_try" in
21242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21243   *) ac_try_echo=$ac_try;;
21244 esac
21245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21246   (eval "$ac_link") 2>conftest.er1
21247   ac_status=$?
21248   grep -v '^ *+' conftest.er1 >conftest.err
21249   rm -f conftest.er1
21250   cat conftest.err >&5
21251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21252   (exit $ac_status); } && {
21253          test -z "$ac_c_werror_flag" ||
21254          test ! -s conftest.err
21255        } && test -s conftest$ac_exeext &&
21256        $as_test_x conftest$ac_exeext; then
21257   ac_cv_lib_db_dbopen=yes
21258 else
21259   echo "$as_me: failed program was:" >&5
21260 sed 's/^/| /' conftest.$ac_ext >&5
21261
21262         ac_cv_lib_db_dbopen=no
21263 fi
21264
21265 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21266       conftest$ac_exeext conftest.$ac_ext
21267 LIBS=$ac_check_lib_save_LIBS
21268 fi
21269 { echo "$as_me:$LINENO: result: $ac_cv_lib_db_dbopen" >&5
21270 echo "${ECHO_T}$ac_cv_lib_db_dbopen" >&6; }
21271 if test $ac_cv_lib_db_dbopen = yes; then
21272   PYTHON_LIBS="$PYTHON_LIBS -ldb"
21273 else
21274   db_ok=no
21275 fi
21276
21277   else
21278      { echo "$as_me:$LINENO: result: no" >&5
21279 echo "${ECHO_T}no" >&6; }
21280   fi
21281
21282  { echo "$as_me:$LINENO: checking if we need libdl" >&5
21283 echo $ECHO_N "checking if we need libdl... $ECHO_C" >&6; }
21284   PY_NEEDOPENDL=`nm $PYTHON_LIBA | grep dlopen | grep U`
21285   if test "x$PY_NEEDOPENDL" != "x"; then
21286      { echo "$as_me:$LINENO: result: yes" >&5
21287 echo "${ECHO_T}yes" >&6; }
21288      { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
21289 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
21290 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
21291   echo $ECHO_N "(cached) $ECHO_C" >&6
21292 else
21293   ac_check_lib_save_LIBS=$LIBS
21294 LIBS="-ldl  $LIBS"
21295 cat >conftest.$ac_ext <<_ACEOF
21296 /* confdefs.h.  */
21297 _ACEOF
21298 cat confdefs.h >>conftest.$ac_ext
21299 cat >>conftest.$ac_ext <<_ACEOF
21300 /* end confdefs.h.  */
21301
21302 /* Override any GCC internal prototype to avoid an error.
21303    Use char because int might match the return type of a GCC
21304    builtin and then its argument prototype would still apply.  */
21305 #ifdef __cplusplus
21306 extern "C"
21307 #endif
21308 char dlopen ();
21309 int
21310 main ()
21311 {
21312 return dlopen ();
21313   ;
21314   return 0;
21315 }
21316 _ACEOF
21317 rm -f conftest.$ac_objext conftest$ac_exeext
21318 if { (ac_try="$ac_link"
21319 case "(($ac_try" in
21320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21321   *) ac_try_echo=$ac_try;;
21322 esac
21323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21324   (eval "$ac_link") 2>conftest.er1
21325   ac_status=$?
21326   grep -v '^ *+' conftest.er1 >conftest.err
21327   rm -f conftest.er1
21328   cat conftest.err >&5
21329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21330   (exit $ac_status); } && {
21331          test -z "$ac_c_werror_flag" ||
21332          test ! -s conftest.err
21333        } && test -s conftest$ac_exeext &&
21334        $as_test_x conftest$ac_exeext; then
21335   ac_cv_lib_dl_dlopen=yes
21336 else
21337   echo "$as_me: failed program was:" >&5
21338 sed 's/^/| /' conftest.$ac_ext >&5
21339
21340         ac_cv_lib_dl_dlopen=no
21341 fi
21342
21343 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21344       conftest$ac_exeext conftest.$ac_ext
21345 LIBS=$ac_check_lib_save_LIBS
21346 fi
21347 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
21348 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
21349 if test $ac_cv_lib_dl_dlopen = yes; then
21350   PYTHON_LIBS="$PYTHON_LIBS -ldl"
21351 else
21352   dl_ok=no
21353 fi
21354
21355   else
21356      { echo "$as_me:$LINENO: result: no" >&5
21357 echo "${ECHO_T}no" >&6; }
21358   fi
21359
21360  { echo "$as_me:$LINENO: checking if we need libutil" >&5
21361 echo $ECHO_N "checking if we need libutil... $ECHO_C" >&6; }
21362   PY_NEEDOPENPTY=`nm $PYTHON_LIBA | grep openpty | grep U`
21363   if test "x$PY_NEEDOPENPTY" != "x"; then
21364      { echo "$as_me:$LINENO: result: yes" >&5
21365 echo "${ECHO_T}yes" >&6; }
21366      { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
21367 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
21368 if test "${ac_cv_lib_util_openpty+set}" = set; then
21369   echo $ECHO_N "(cached) $ECHO_C" >&6
21370 else
21371   ac_check_lib_save_LIBS=$LIBS
21372 LIBS="-lutil  $LIBS"
21373 cat >conftest.$ac_ext <<_ACEOF
21374 /* confdefs.h.  */
21375 _ACEOF
21376 cat confdefs.h >>conftest.$ac_ext
21377 cat >>conftest.$ac_ext <<_ACEOF
21378 /* end confdefs.h.  */
21379
21380 /* Override any GCC internal prototype to avoid an error.
21381    Use char because int might match the return type of a GCC
21382    builtin and then its argument prototype would still apply.  */
21383 #ifdef __cplusplus
21384 extern "C"
21385 #endif
21386 char openpty ();
21387 int
21388 main ()
21389 {
21390 return openpty ();
21391   ;
21392   return 0;
21393 }
21394 _ACEOF
21395 rm -f conftest.$ac_objext conftest$ac_exeext
21396 if { (ac_try="$ac_link"
21397 case "(($ac_try" in
21398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21399   *) ac_try_echo=$ac_try;;
21400 esac
21401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21402   (eval "$ac_link") 2>conftest.er1
21403   ac_status=$?
21404   grep -v '^ *+' conftest.er1 >conftest.err
21405   rm -f conftest.er1
21406   cat conftest.err >&5
21407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21408   (exit $ac_status); } && {
21409          test -z "$ac_c_werror_flag" ||
21410          test ! -s conftest.err
21411        } && test -s conftest$ac_exeext &&
21412        $as_test_x conftest$ac_exeext; then
21413   ac_cv_lib_util_openpty=yes
21414 else
21415   echo "$as_me: failed program was:" >&5
21416 sed 's/^/| /' conftest.$ac_ext >&5
21417
21418         ac_cv_lib_util_openpty=no
21419 fi
21420
21421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21422       conftest$ac_exeext conftest.$ac_ext
21423 LIBS=$ac_check_lib_save_LIBS
21424 fi
21425 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
21426 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
21427 if test $ac_cv_lib_util_openpty = yes; then
21428   PYTHON_LIBS="$PYTHON_LIBS -lutil"
21429 else
21430   openpty_ok=no
21431 fi
21432
21433   else
21434      { echo "$as_me:$LINENO: result: no" >&5
21435 echo "${ECHO_T}no" >&6; }
21436   fi
21437
21438  { echo "$as_me:$LINENO: checking if we need tcltk" >&5
21439 echo $ECHO_N "checking if we need tcltk... $ECHO_C" >&6; }
21440   PY_NEEDTCLTK=`nm $PYTHON_LIBA | grep Tcl_Init | grep U`
21441   if test "x$PY_NEEDTCLTK" != "x"; then
21442      { echo "$as_me:$LINENO: result: yes" >&5
21443 echo "${ECHO_T}yes" >&6; }
21444      { echo "$as_me:$LINENO: checking for Tcl_Init in -ltcl" >&5
21445 echo $ECHO_N "checking for Tcl_Init in -ltcl... $ECHO_C" >&6; }
21446 if test "${ac_cv_lib_tcl_Tcl_Init+set}" = set; then
21447   echo $ECHO_N "(cached) $ECHO_C" >&6
21448 else
21449   ac_check_lib_save_LIBS=$LIBS
21450 LIBS="-ltcl  $LIBS"
21451 cat >conftest.$ac_ext <<_ACEOF
21452 /* confdefs.h.  */
21453 _ACEOF
21454 cat confdefs.h >>conftest.$ac_ext
21455 cat >>conftest.$ac_ext <<_ACEOF
21456 /* end confdefs.h.  */
21457
21458 /* Override any GCC internal prototype to avoid an error.
21459    Use char because int might match the return type of a GCC
21460    builtin and then its argument prototype would still apply.  */
21461 #ifdef __cplusplus
21462 extern "C"
21463 #endif
21464 char Tcl_Init ();
21465 int
21466 main ()
21467 {
21468 return Tcl_Init ();
21469   ;
21470   return 0;
21471 }
21472 _ACEOF
21473 rm -f conftest.$ac_objext conftest$ac_exeext
21474 if { (ac_try="$ac_link"
21475 case "(($ac_try" in
21476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21477   *) ac_try_echo=$ac_try;;
21478 esac
21479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21480   (eval "$ac_link") 2>conftest.er1
21481   ac_status=$?
21482   grep -v '^ *+' conftest.er1 >conftest.err
21483   rm -f conftest.er1
21484   cat conftest.err >&5
21485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21486   (exit $ac_status); } && {
21487          test -z "$ac_c_werror_flag" ||
21488          test ! -s conftest.err
21489        } && test -s conftest$ac_exeext &&
21490        $as_test_x conftest$ac_exeext; then
21491   ac_cv_lib_tcl_Tcl_Init=yes
21492 else
21493   echo "$as_me: failed program was:" >&5
21494 sed 's/^/| /' conftest.$ac_ext >&5
21495
21496         ac_cv_lib_tcl_Tcl_Init=no
21497 fi
21498
21499 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21500       conftest$ac_exeext conftest.$ac_ext
21501 LIBS=$ac_check_lib_save_LIBS
21502 fi
21503 { echo "$as_me:$LINENO: result: $ac_cv_lib_tcl_Tcl_Init" >&5
21504 echo "${ECHO_T}$ac_cv_lib_tcl_Tcl_Init" >&6; }
21505 if test $ac_cv_lib_tcl_Tcl_Init = yes; then
21506   PYTHON_LIBS="$PYTHON_LIBS -ltcl -ltk"
21507 else
21508   tclinit_ok=no
21509 fi
21510
21511   else
21512      { echo "$as_me:$LINENO: result: no" >&5
21513 echo "${ECHO_T}no" >&6; }
21514   fi
21515
21516   if test "$python_ok" == "yes"; then
21517       { echo "$as_me:$LINENO: result: looks good" >&5
21518 echo "${ECHO_T}looks good" >&6; }
21519   fi
21520
21521 fi
21522
21523
21524 ac_ext=cpp
21525 ac_cpp='$CXXCPP $CPPFLAGS'
21526 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21527 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21528 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21529
21530
21531 # Extract the first word of "omniidl", so it can be a program name with args.
21532 set dummy omniidl; ac_word=$2
21533 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21535 if test "${ac_cv_path_OMNIORB_IDL+set}" = set; then
21536   echo $ECHO_N "(cached) $ECHO_C" >&6
21537 else
21538   case $OMNIORB_IDL in
21539   [\\/]* | ?:[\\/]*)
21540   ac_cv_path_OMNIORB_IDL="$OMNIORB_IDL" # Let the user override the test with a path.
21541   ;;
21542   *)
21543   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21544 for as_dir in $PATH
21545 do
21546   IFS=$as_save_IFS
21547   test -z "$as_dir" && as_dir=.
21548   for ac_exec_ext in '' $ac_executable_extensions; do
21549   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21550     ac_cv_path_OMNIORB_IDL="$as_dir/$ac_word$ac_exec_ext"
21551     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21552     break 2
21553   fi
21554 done
21555 done
21556 IFS=$as_save_IFS
21557
21558   ;;
21559 esac
21560 fi
21561 OMNIORB_IDL=$ac_cv_path_OMNIORB_IDL
21562 if test -n "$OMNIORB_IDL"; then
21563   { echo "$as_me:$LINENO: result: $OMNIORB_IDL" >&5
21564 echo "${ECHO_T}$OMNIORB_IDL" >&6; }
21565 else
21566   { echo "$as_me:$LINENO: result: no" >&5
21567 echo "${ECHO_T}no" >&6; }
21568 fi
21569
21570
21571 if test "x$OMNIORB_IDL" = "x"
21572 then
21573   omniORB_ok=no
21574   { echo "$as_me:$LINENO: result: omniORB binaries not in PATH variable" >&5
21575 echo "${ECHO_T}omniORB binaries not in PATH variable" >&6; }
21576 else
21577   omniORB_ok=yes
21578 fi
21579
21580 if  test "x$omniORB_ok" = "xyes"
21581 then
21582
21583
21584   OMNIORB_BIN=`echo ${OMNIORB_IDL} | sed -e "s,[^/]*$,,;s,/$,,;s,^$,.,"`
21585   OMNIORB_ROOT=${OMNIORB_BIN}
21586   # one-level up
21587   OMNIORB_ROOT=`echo ${OMNIORB_ROOT}  | sed -e "s,[^/]*$,,;s,/$,,;s,^$,.,"`
21588   #
21589   #
21590   if test -d $OMNIORB_ROOT/include ; then
21591     # if $OMNIORB_ROOT/include exists, there are a lot of chance that
21592     # this is omniORB4.x installed via configure && make && make install
21593     OMNIORB_LIB=`echo ${OMNIORB_BIN} | sed -e "s,bin\$,lib,"`
21594     OMNIORB_VERSION=4
21595   else
21596     # omniORB has been installed old way
21597     OMNIORB_LIB=`echo ${OMNIORB_BIN} | sed -e "s,bin/,lib/,"`
21598     # one-level up again
21599     OMNIORB_ROOT=`echo ${OMNIORB_ROOT}  | sed -e "s,[^/]*$,,;s,/$,,;s,^$,.,"`
21600     if test -d $OMNIORB_ROOT/include/omniORB4 ; then
21601       OMNIORB_VERSION=4
21602     else
21603       OMNIORB_VERSION=3
21604     fi
21605   fi
21606
21607
21608   OMNIORB_INCLUDES="-I$OMNIORB_ROOT/include -I$OMNIORB_ROOT/include/omniORB${OMNIORB_VERSION} -I$OMNIORB_ROOT/include/COS"
21609
21610
21611
21612
21613
21614 if test x"$enable_pthreads_done" != xyes; then
21615   if test x"$acx_pthread_ok" = xyes; then
21616     CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
21617     CXXFLAGS="$CXXFLAGS $PTHREAD_CFLAGS"
21618     LIBS="$LIBS $PTHREAD_LIBS"
21619     threads_ok=yes
21620   else
21621     threads_ok=no
21622   fi
21623   enable_pthreads_done=yes
21624 fi
21625
21626
21627   OMNIORB_CXXFLAGS="-DOMNIORB_VERSION=$OMNIORB_VERSION"
21628   case $build_cpu in
21629     sparc*)
21630       # AC_DEFINE(__sparc__)
21631       OMNIORB_CXXFLAGS="$OMNIORB_CXXFLAGS -D__sparc__"
21632       ;;
21633    *86*)
21634       # AC_DEFINE(__x86__)
21635       OMNIORB_CXXFLAGS="$OMNIORB_CXXFLAGS -D__x86__"
21636       ;;
21637   esac
21638   case $build_os in
21639     osf*)
21640       # AC_DEFINE(__osf1__)
21641       __OSVERSION__=5
21642
21643 cat >>confdefs.h <<\_ACEOF
21644 #define __OSVERSION__ 5
21645 _ACEOF
21646
21647       OMNIORB_CXXFLAGS="$OMNIORB_CXXFLAGS -D__osf1__"
21648       ;;
21649     solaris*)
21650       # AC_DEFINE(__sunos__)
21651       __OSVERSION__=5
21652
21653 cat >>confdefs.h <<\_ACEOF
21654 #define __OSVERSION__ 5
21655 _ACEOF
21656
21657       OMNIORB_CXXFLAGS="$OMNIORB_CXXFLAGS -D__sunos__"
21658       ;;
21659    linux*)
21660       # AC_DEFINE(__linux__)
21661       __OSVERSION__=2
21662
21663 cat >>confdefs.h <<\_ACEOF
21664 #define __OSVERSION__ 2
21665 _ACEOF
21666
21667       OMNIORB_CXXFLAGS="$OMNIORB_CXXFLAGS -D__linux__"
21668       ;;
21669   esac
21670
21671
21672   CPPFLAGS_old=$CPPFLAGS
21673   CPPFLAGS="$CPPFLAGS $OMNIORB_CXXFLAGS $OMNIORB_INCLUDES"
21674
21675   ac_ext=cpp
21676 ac_cpp='$CXXCPP $CPPFLAGS'
21677 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21678 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21679 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21680
21681   if test "${ac_cv_header_CORBA_h+set}" = set; then
21682   { echo "$as_me:$LINENO: checking for CORBA.h" >&5
21683 echo $ECHO_N "checking for CORBA.h... $ECHO_C" >&6; }
21684 if test "${ac_cv_header_CORBA_h+set}" = set; then
21685   echo $ECHO_N "(cached) $ECHO_C" >&6
21686 fi
21687 { echo "$as_me:$LINENO: result: $ac_cv_header_CORBA_h" >&5
21688 echo "${ECHO_T}$ac_cv_header_CORBA_h" >&6; }
21689 else
21690   # Is the header compilable?
21691 { echo "$as_me:$LINENO: checking CORBA.h usability" >&5
21692 echo $ECHO_N "checking CORBA.h usability... $ECHO_C" >&6; }
21693 cat >conftest.$ac_ext <<_ACEOF
21694 /* confdefs.h.  */
21695 _ACEOF
21696 cat confdefs.h >>conftest.$ac_ext
21697 cat >>conftest.$ac_ext <<_ACEOF
21698 /* end confdefs.h.  */
21699 $ac_includes_default
21700 #include <CORBA.h>
21701 _ACEOF
21702 rm -f conftest.$ac_objext
21703 if { (ac_try="$ac_compile"
21704 case "(($ac_try" in
21705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21706   *) ac_try_echo=$ac_try;;
21707 esac
21708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21709   (eval "$ac_compile") 2>conftest.er1
21710   ac_status=$?
21711   grep -v '^ *+' conftest.er1 >conftest.err
21712   rm -f conftest.er1
21713   cat conftest.err >&5
21714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21715   (exit $ac_status); } && {
21716          test -z "$ac_cxx_werror_flag" ||
21717          test ! -s conftest.err
21718        } && test -s conftest.$ac_objext; then
21719   ac_header_compiler=yes
21720 else
21721   echo "$as_me: failed program was:" >&5
21722 sed 's/^/| /' conftest.$ac_ext >&5
21723
21724         ac_header_compiler=no
21725 fi
21726
21727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21728 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21729 echo "${ECHO_T}$ac_header_compiler" >&6; }
21730
21731 # Is the header present?
21732 { echo "$as_me:$LINENO: checking CORBA.h presence" >&5
21733 echo $ECHO_N "checking CORBA.h presence... $ECHO_C" >&6; }
21734 cat >conftest.$ac_ext <<_ACEOF
21735 /* confdefs.h.  */
21736 _ACEOF
21737 cat confdefs.h >>conftest.$ac_ext
21738 cat >>conftest.$ac_ext <<_ACEOF
21739 /* end confdefs.h.  */
21740 #include <CORBA.h>
21741 _ACEOF
21742 if { (ac_try="$ac_cpp conftest.$ac_ext"
21743 case "(($ac_try" in
21744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21745   *) ac_try_echo=$ac_try;;
21746 esac
21747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21748   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21749   ac_status=$?
21750   grep -v '^ *+' conftest.er1 >conftest.err
21751   rm -f conftest.er1
21752   cat conftest.err >&5
21753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21754   (exit $ac_status); } >/dev/null && {
21755          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
21756          test ! -s conftest.err
21757        }; then
21758   ac_header_preproc=yes
21759 else
21760   echo "$as_me: failed program was:" >&5
21761 sed 's/^/| /' conftest.$ac_ext >&5
21762
21763   ac_header_preproc=no
21764 fi
21765
21766 rm -f conftest.err conftest.$ac_ext
21767 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21768 echo "${ECHO_T}$ac_header_preproc" >&6; }
21769
21770 # So?  What about this header?
21771 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21772   yes:no: )
21773     { echo "$as_me:$LINENO: WARNING: CORBA.h: accepted by the compiler, rejected by the preprocessor!" >&5
21774 echo "$as_me: WARNING: CORBA.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21775     { echo "$as_me:$LINENO: WARNING: CORBA.h: proceeding with the compiler's result" >&5
21776 echo "$as_me: WARNING: CORBA.h: proceeding with the compiler's result" >&2;}
21777     ac_header_preproc=yes
21778     ;;
21779   no:yes:* )
21780     { echo "$as_me:$LINENO: WARNING: CORBA.h: present but cannot be compiled" >&5
21781 echo "$as_me: WARNING: CORBA.h: present but cannot be compiled" >&2;}
21782     { echo "$as_me:$LINENO: WARNING: CORBA.h:     check for missing prerequisite headers?" >&5
21783 echo "$as_me: WARNING: CORBA.h:     check for missing prerequisite headers?" >&2;}
21784     { echo "$as_me:$LINENO: WARNING: CORBA.h: see the Autoconf documentation" >&5
21785 echo "$as_me: WARNING: CORBA.h: see the Autoconf documentation" >&2;}
21786     { echo "$as_me:$LINENO: WARNING: CORBA.h:     section \"Present But Cannot Be Compiled\"" >&5
21787 echo "$as_me: WARNING: CORBA.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21788     { echo "$as_me:$LINENO: WARNING: CORBA.h: proceeding with the preprocessor's result" >&5
21789 echo "$as_me: WARNING: CORBA.h: proceeding with the preprocessor's result" >&2;}
21790     { echo "$as_me:$LINENO: WARNING: CORBA.h: in the future, the compiler will take precedence" >&5
21791 echo "$as_me: WARNING: CORBA.h: in the future, the compiler will take precedence" >&2;}
21792     ( cat <<\_ASBOX
21793 ## ----------------------------------------------- ##
21794 ## Report this to webmaster.salome@opencascade.com ##
21795 ## ----------------------------------------------- ##
21796 _ASBOX
21797      ) | sed "s/^/$as_me: WARNING:     /" >&2
21798     ;;
21799 esac
21800 { echo "$as_me:$LINENO: checking for CORBA.h" >&5
21801 echo $ECHO_N "checking for CORBA.h... $ECHO_C" >&6; }
21802 if test "${ac_cv_header_CORBA_h+set}" = set; then
21803   echo $ECHO_N "(cached) $ECHO_C" >&6
21804 else
21805   ac_cv_header_CORBA_h=$ac_header_preproc
21806 fi
21807 { echo "$as_me:$LINENO: result: $ac_cv_header_CORBA_h" >&5
21808 echo "${ECHO_T}$ac_cv_header_CORBA_h" >&6; }
21809
21810 fi
21811 if test $ac_cv_header_CORBA_h = yes; then
21812   omniORB_ok="yes"
21813 else
21814   omniORB_ok="no"
21815 fi
21816
21817
21818
21819   CPPFLAGS=$CPPFLAGS_old
21820
21821 fi
21822
21823 if test "x$omniORB_ok" = "xyes"
21824 then
21825   if test "x$OMNIORB_LIB" = "x/usr/lib"
21826   then
21827     OMNIORB_LDFLAGS=""
21828     OMNIORB_RFLAGS=""
21829   else
21830     OMNIORB_LDFLAGS="-L$OMNIORB_LIB"
21831     OMNIORB_RFLAGS="-Wl,-R$OMNIORB_LIB"
21832   fi
21833
21834   LIBS_old=$LIBS
21835   LIBS="$LIBS $OMNIORB_LDFLAGS -lomnithread"
21836
21837   CXXFLAGS_old=$CXXFLAGS
21838   CXXFLAGS="$CXXFLAGS $OMNIORB_CXXFLAGS $OMNIORB_INCLUDES"
21839
21840   { echo "$as_me:$LINENO: checking whether we can link with omnithreads" >&5
21841 echo $ECHO_N "checking whether we can link with omnithreads... $ECHO_C" >&6; }
21842   if test "${salome_cv_lib_omnithreads+set}" = set; then
21843   echo $ECHO_N "(cached) $ECHO_C" >&6
21844 else
21845
21846     cat >conftest.$ac_ext <<_ACEOF
21847 /* confdefs.h.  */
21848 _ACEOF
21849 cat confdefs.h >>conftest.$ac_ext
21850 cat >>conftest.$ac_ext <<_ACEOF
21851 /* end confdefs.h.  */
21852 #include <omnithread.h>
21853
21854 int
21855 main ()
21856 {
21857 omni_mutex my_mutex
21858   ;
21859   return 0;
21860 }
21861 _ACEOF
21862 rm -f conftest.$ac_objext conftest$ac_exeext
21863 if { (ac_try="$ac_link"
21864 case "(($ac_try" in
21865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21866   *) ac_try_echo=$ac_try;;
21867 esac
21868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21869   (eval "$ac_link") 2>conftest.er1
21870   ac_status=$?
21871   grep -v '^ *+' conftest.er1 >conftest.err
21872   rm -f conftest.er1
21873   cat conftest.err >&5
21874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21875   (exit $ac_status); } && {
21876          test -z "$ac_cxx_werror_flag" ||
21877          test ! -s conftest.err
21878        } && test -s conftest$ac_exeext &&
21879        $as_test_x conftest$ac_exeext; then
21880   eval "salome_cv_lib_omnithreads=yes"
21881 else
21882   echo "$as_me: failed program was:" >&5
21883 sed 's/^/| /' conftest.$ac_ext >&5
21884
21885         eval "salome_cv_lib_omnithreads=no"
21886 fi
21887
21888 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21889       conftest$ac_exeext conftest.$ac_ext
21890
21891 fi
21892
21893
21894   omniORB_ok="$salome_cv_lib_omnithreads"
21895   if  test "x$omniORB_ok" = "xno"
21896   then
21897     { echo "$as_me:$LINENO: result: omnithreads not found" >&5
21898 echo "${ECHO_T}omnithreads not found" >&6; }
21899   else
21900     { echo "$as_me:$LINENO: result: yes" >&5
21901 echo "${ECHO_T}yes" >&6; }
21902   fi
21903
21904   LIBS=$LIBS_old
21905   CXXFLAGS=$CXXFLAGS_old
21906 fi
21907
21908
21909 if test "x$omniORB_ok" = "xyes"
21910 then
21911
21912   { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
21913 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
21914 if test "${ac_cv_lib_socket_socket+set}" = set; then
21915   echo $ECHO_N "(cached) $ECHO_C" >&6
21916 else
21917   ac_check_lib_save_LIBS=$LIBS
21918 LIBS="-lsocket  $LIBS"
21919 cat >conftest.$ac_ext <<_ACEOF
21920 /* confdefs.h.  */
21921 _ACEOF
21922 cat confdefs.h >>conftest.$ac_ext
21923 cat >>conftest.$ac_ext <<_ACEOF
21924 /* end confdefs.h.  */
21925
21926 /* Override any GCC internal prototype to avoid an error.
21927    Use char because int might match the return type of a GCC
21928    builtin and then its argument prototype would still apply.  */
21929 #ifdef __cplusplus
21930 extern "C"
21931 #endif
21932 char socket ();
21933 int
21934 main ()
21935 {
21936 return socket ();
21937   ;
21938   return 0;
21939 }
21940 _ACEOF
21941 rm -f conftest.$ac_objext conftest$ac_exeext
21942 if { (ac_try="$ac_link"
21943 case "(($ac_try" in
21944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21945   *) ac_try_echo=$ac_try;;
21946 esac
21947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21948   (eval "$ac_link") 2>conftest.er1
21949   ac_status=$?
21950   grep -v '^ *+' conftest.er1 >conftest.err
21951   rm -f conftest.er1
21952   cat conftest.err >&5
21953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21954   (exit $ac_status); } && {
21955          test -z "$ac_cxx_werror_flag" ||
21956          test ! -s conftest.err
21957        } && test -s conftest$ac_exeext &&
21958        $as_test_x conftest$ac_exeext; then
21959   ac_cv_lib_socket_socket=yes
21960 else
21961   echo "$as_me: failed program was:" >&5
21962 sed 's/^/| /' conftest.$ac_ext >&5
21963
21964         ac_cv_lib_socket_socket=no
21965 fi
21966
21967 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21968       conftest$ac_exeext conftest.$ac_ext
21969 LIBS=$ac_check_lib_save_LIBS
21970 fi
21971 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
21972 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
21973 if test $ac_cv_lib_socket_socket = yes; then
21974   LIBS="-lsocket $LIBS"
21975 fi
21976
21977   { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
21978 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
21979 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
21980   echo $ECHO_N "(cached) $ECHO_C" >&6
21981 else
21982   ac_check_lib_save_LIBS=$LIBS
21983 LIBS="-lnsl  $LIBS"
21984 cat >conftest.$ac_ext <<_ACEOF
21985 /* confdefs.h.  */
21986 _ACEOF
21987 cat confdefs.h >>conftest.$ac_ext
21988 cat >>conftest.$ac_ext <<_ACEOF
21989 /* end confdefs.h.  */
21990
21991 /* Override any GCC internal prototype to avoid an error.
21992    Use char because int might match the return type of a GCC
21993    builtin and then its argument prototype would still apply.  */
21994 #ifdef __cplusplus
21995 extern "C"
21996 #endif
21997 char gethostbyname ();
21998 int
21999 main ()
22000 {
22001 return gethostbyname ();
22002   ;
22003   return 0;
22004 }
22005 _ACEOF
22006 rm -f conftest.$ac_objext conftest$ac_exeext
22007 if { (ac_try="$ac_link"
22008 case "(($ac_try" in
22009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22010   *) ac_try_echo=$ac_try;;
22011 esac
22012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22013   (eval "$ac_link") 2>conftest.er1
22014   ac_status=$?
22015   grep -v '^ *+' conftest.er1 >conftest.err
22016   rm -f conftest.er1
22017   cat conftest.err >&5
22018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22019   (exit $ac_status); } && {
22020          test -z "$ac_cxx_werror_flag" ||
22021          test ! -s conftest.err
22022        } && test -s conftest$ac_exeext &&
22023        $as_test_x conftest$ac_exeext; then
22024   ac_cv_lib_nsl_gethostbyname=yes
22025 else
22026   echo "$as_me: failed program was:" >&5
22027 sed 's/^/| /' conftest.$ac_ext >&5
22028
22029         ac_cv_lib_nsl_gethostbyname=no
22030 fi
22031
22032 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22033       conftest$ac_exeext conftest.$ac_ext
22034 LIBS=$ac_check_lib_save_LIBS
22035 fi
22036 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
22037 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
22038 if test $ac_cv_lib_nsl_gethostbyname = yes; then
22039   LIBS="-lnsl $LIBS"
22040 fi
22041
22042
22043   LIBS_old=$LIBS
22044   OMNIORB_LIBS="$OMNIORB_LDFLAGS"
22045   OMNIORB_LIBS="$OMNIORB_LIBS -lomniORB${OMNIORB_VERSION}"
22046   OMNIORB_LIBS="$OMNIORB_LIBS -lomniDynamic${OMNIORB_VERSION}"
22047   OMNIORB_LIBS="$OMNIORB_LIBS -lCOS${OMNIORB_VERSION}"
22048   OMNIORB_LIBS="$OMNIORB_LIBS -lCOSDynamic${OMNIORB_VERSION}"
22049   OMNIORB_LIBS="$OMNIORB_LIBS -lomnithread"
22050   OMNIORB_LIBS="$OMNIORB_LIBS ${OMNIORB_RFLAGS}"
22051   if test $OMNIORB_VERSION = 3 ; then
22052     OMNIORB_LIBS="$OMNIORB_LIBS -ltcpwrapGK"
22053   fi
22054
22055
22056   LIBS="$OMNIORB_LIBS $LIBS"
22057   CXXFLAGS_old=$CXXFLAGS
22058   CXXFLAGS="$CXXFLAGS $OMNIORB_CXXFLAGS $OMNIORB_INCLUDES"
22059
22060   { echo "$as_me:$LINENO: checking whether we can link with omniORB" >&5
22061 echo $ECHO_N "checking whether we can link with omniORB... $ECHO_C" >&6; }
22062   if test "${salome_cv_lib_omniorb+set}" = set; then
22063   echo $ECHO_N "(cached) $ECHO_C" >&6
22064 else
22065
22066     cat >conftest.$ac_ext <<_ACEOF
22067 /* confdefs.h.  */
22068 _ACEOF
22069 cat confdefs.h >>conftest.$ac_ext
22070 cat >>conftest.$ac_ext <<_ACEOF
22071 /* end confdefs.h.  */
22072 #include <CORBA.h>
22073
22074 int
22075 main ()
22076 {
22077 CORBA::ORB_var orb
22078   ;
22079   return 0;
22080 }
22081 _ACEOF
22082 rm -f conftest.$ac_objext conftest$ac_exeext
22083 if { (ac_try="$ac_link"
22084 case "(($ac_try" in
22085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22086   *) ac_try_echo=$ac_try;;
22087 esac
22088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22089   (eval "$ac_link") 2>conftest.er1
22090   ac_status=$?
22091   grep -v '^ *+' conftest.er1 >conftest.err
22092   rm -f conftest.er1
22093   cat conftest.err >&5
22094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22095   (exit $ac_status); } && {
22096          test -z "$ac_cxx_werror_flag" ||
22097          test ! -s conftest.err
22098        } && test -s conftest$ac_exeext &&
22099        $as_test_x conftest$ac_exeext; then
22100   eval "salome_cv_lib_omniorb3=yes"
22101 else
22102   echo "$as_me: failed program was:" >&5
22103 sed 's/^/| /' conftest.$ac_ext >&5
22104
22105         eval "salome_cv_lib_omniorb3=no"
22106 fi
22107
22108 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22109       conftest$ac_exeext conftest.$ac_ext
22110
22111 fi
22112
22113   omniORB_ok="$salome_cv_lib_omniorb3"
22114
22115   omniORB_ok=yes
22116   if test "x$omniORB_ok" = "xno"
22117   then
22118     { echo "$as_me:$LINENO: result: omniORB library linking failed" >&5
22119 echo "${ECHO_T}omniORB library linking failed" >&6; }
22120     omniORB_ok=no
22121   else
22122     { echo "$as_me:$LINENO: result: yes" >&5
22123 echo "${ECHO_T}yes" >&6; }
22124   fi
22125   LIBS="$LIBS_old"
22126   CXXFLAGS=$CXXFLAGS_old
22127 fi
22128
22129
22130 if test "x$omniORB_ok" = "xyes"
22131 then
22132
22133   OMNIORB_IDLCXXFLAGS="-Wba -nf -I${OMNIORB_ROOT}/idl"
22134   OMNIORB_PACOIDLCXXFLAGS="-nf -I${OMNIORB_ROOT}/idl"
22135   OMNIORB_IDLPYFLAGS_1='-bpython -nf '
22136   OMNIORB_IDLPYFLAGS_2=" -I${OMNIORB_ROOT}/idl"
22137   OMNIORB_IDLPYFLAGS=${OMNIORB_IDLPYFLAGS_1}${OMNIORB_IDLPYFLAGS_2}
22138
22139
22140
22141
22142
22143   OMNIORB_IDL_CLN_H=.hh
22144   OMNIORB_IDL_CLN_CXX=SK.cc
22145   OMNIORB_IDL_CLN_OBJ=SK.o
22146
22147
22148
22149
22150   OMNIORB_IDL_SRV_H=.hh
22151   OMNIORB_IDL_SRV_CXX=SK.cc
22152   OMNIORB_IDL_SRV_OBJ=SK.o
22153
22154
22155
22156
22157   OMNIORB_IDL_TIE_H=
22158   OMNIORB_IDL_TIE_CXX=
22159
22160
22161
22162
22163 cat >>confdefs.h <<\_ACEOF
22164 #define OMNIORB
22165 _ACEOF
22166
22167
22168   CORBA_HAVE_POA=1
22169
22170 cat >>confdefs.h <<\_ACEOF
22171 #define CORBA_HAVE_POA
22172 _ACEOF
22173
22174
22175   CORBA_ORB_INIT_HAVE_3_ARGS=1
22176
22177 cat >>confdefs.h <<\_ACEOF
22178 #define CORBA_ORB_INIT_HAVE_3_ARGS
22179 _ACEOF
22180
22181   CORBA_ORB_INIT_THIRD_ARG='"omniORB"'
22182
22183 cat >>confdefs.h <<\_ACEOF
22184 #define CORBA_ORB_INIT_THIRD_ARG
22185 _ACEOF
22186
22187
22188 fi
22189
22190 omniORBpy_ok=no
22191 if  test "x$omniORB_ok" = "xyes"
22192 then
22193   { echo "$as_me:$LINENO: checking omniORBpy" >&5
22194 echo $ECHO_N "checking omniORBpy... $ECHO_C" >&6; }
22195   $PYTHON -c "import omniORB" &> /dev/null
22196   if test $? = 0 ; then
22197     { echo "$as_me:$LINENO: result: yes" >&5
22198 echo "${ECHO_T}yes" >&6; }
22199     omniORBpy_ok=yes
22200   else
22201     { echo "$as_me:$LINENO: result: no" >&5
22202 echo "${ECHO_T}no" >&6; }
22203     omniORBpy_ok=no
22204   fi
22205 fi
22206
22207
22208 { echo "$as_me:$LINENO: result: for omniORBpy: $omniORBpy_ok" >&5
22209 echo "${ECHO_T}for omniORBpy: $omniORBpy_ok" >&6; }
22210 { echo "$as_me:$LINENO: result: for omniORB: $omniORB_ok" >&5
22211 echo "${ECHO_T}for omniORB: $omniORB_ok" >&6; }
22212
22213 # Save cache
22214 cat >confcache <<\_ACEOF
22215 # This file is a shell script that caches the results of configure
22216 # tests run on this system so they can be shared between configure
22217 # scripts and configure runs, see configure's option --config-cache.
22218 # It is not useful on other systems.  If it contains results you don't
22219 # want to keep, you may remove or edit it.
22220 #
22221 # config.status only pays attention to the cache file if you give it
22222 # the --recheck option to rerun configure.
22223 #
22224 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22225 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22226 # following values.
22227
22228 _ACEOF
22229
22230 # The following way of writing the cache mishandles newlines in values,
22231 # but we know of no workaround that is simple, portable, and efficient.
22232 # So, we kill variables containing newlines.
22233 # Ultrix sh set writes to stderr and can't be redirected directly,
22234 # and sets the high bit in the cache file unless we assign to the vars.
22235 (
22236   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22237     eval ac_val=\$$ac_var
22238     case $ac_val in #(
22239     *${as_nl}*)
22240       case $ac_var in #(
22241       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22242 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22243       esac
22244       case $ac_var in #(
22245       _ | IFS | as_nl) ;; #(
22246       *) $as_unset $ac_var ;;
22247       esac ;;
22248     esac
22249   done
22250
22251   (set) 2>&1 |
22252     case $as_nl`(ac_space=' '; set) 2>&1` in #(
22253     *${as_nl}ac_space=\ *)
22254       # `set' does not quote correctly, so add quotes (double-quote
22255       # substitution turns \\\\ into \\, and sed turns \\ into \).
22256       sed -n \
22257         "s/'/'\\\\''/g;
22258           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22259       ;; #(
22260     *)
22261       # `set' quotes correctly as required by POSIX, so do not add quotes.
22262       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22263       ;;
22264     esac |
22265     sort
22266 ) |
22267   sed '
22268      /^ac_cv_env_/b end
22269      t clear
22270      :clear
22271      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22272      t end
22273      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22274      :end' >>confcache
22275 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22276   if test -w "$cache_file"; then
22277     test "x$cache_file" != "x/dev/null" &&
22278       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22279 echo "$as_me: updating cache $cache_file" >&6;}
22280     cat confcache >$cache_file
22281   else
22282     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22283 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22284   fi
22285 fi
22286 rm -f confcache
22287
22288
22289 CXXFLAGS_old=$CXXFLAGS
22290 CXXFLAGS="$CXXFLAGS $OMNIORB_CXXFLAGS $OMNIORB_INCLUDES"
22291 LIBS_old=$LIBS
22292 LIBS="$LIBS $OMNIORB_LDFLAGS $OMNIORB_LIBS"
22293 { echo "$as_me:$LINENO: checking whether we have double and CORBA::Double compatibility" >&5
22294 echo $ECHO_N "checking whether we have double and CORBA::Double compatibility... $ECHO_C" >&6; }
22295 if test "$cross_compiling" = yes; then
22296   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22297 See \`config.log' for more details." >&5
22298 echo "$as_me: error: cannot run test program while cross compiling
22299 See \`config.log' for more details." >&2;}
22300    { (exit 1); exit 1; }; }
22301 else
22302   cat >conftest.$ac_ext <<_ACEOF
22303 /* confdefs.h.  */
22304 _ACEOF
22305 cat confdefs.h >>conftest.$ac_ext
22306 cat >>conftest.$ac_ext <<_ACEOF
22307 /* end confdefs.h.  */
22308 #include <stdlib.h>
22309 #include <CORBA.h>
22310 int main ()
22311 {
22312   CORBA::Double *a=new CORBA::Double(2.5);
22313   double c=2.5;
22314   double *b;
22315   b=(double *)a;
22316
22317   if( (c==*b) && (sizeof(double)==sizeof(CORBA::Double)) ){
22318     delete a;
22319     exit(0);
22320   }
22321   else{
22322     delete a;
22323     exit(1);
22324   }
22325 }
22326
22327 _ACEOF
22328 rm -f conftest$ac_exeext
22329 if { (ac_try="$ac_link"
22330 case "(($ac_try" in
22331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22332   *) ac_try_echo=$ac_try;;
22333 esac
22334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22335   (eval "$ac_link") 2>&5
22336   ac_status=$?
22337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22338   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22339   { (case "(($ac_try" in
22340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22341   *) ac_try_echo=$ac_try;;
22342 esac
22343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22344   (eval "$ac_try") 2>&5
22345   ac_status=$?
22346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22347   (exit $ac_status); }; }; then
22348   DOUBLECOMP="yes"
22349 else
22350   echo "$as_me: program exited with status $ac_status" >&5
22351 echo "$as_me: failed program was:" >&5
22352 sed 's/^/| /' conftest.$ac_ext >&5
22353
22354 ( exit $ac_status )
22355 DOUBLECOMP="no"
22356 fi
22357 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22358 fi
22359
22360
22361 if test "$DOUBLECOMP" = yes; then
22362   OMNIORB_CXXFLAGS="$OMNIORB_CXXFLAGS -DCOMP_CORBA_DOUBLE"
22363   { echo "$as_me:$LINENO: result: yes" >&5
22364 echo "${ECHO_T}yes" >&6; }
22365 else
22366   { echo "$as_me:$LINENO: result: no" >&5
22367 echo "${ECHO_T}no" >&6; }
22368 fi
22369 { echo "$as_me:$LINENO: checking whether we have int and CORBA::Long compatibility" >&5
22370 echo $ECHO_N "checking whether we have int and CORBA::Long compatibility... $ECHO_C" >&6; }
22371 if test "$cross_compiling" = yes; then
22372   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22373 See \`config.log' for more details." >&5
22374 echo "$as_me: error: cannot run test program while cross compiling
22375 See \`config.log' for more details." >&2;}
22376    { (exit 1); exit 1; }; }
22377 else
22378   cat >conftest.$ac_ext <<_ACEOF
22379 /* confdefs.h.  */
22380 _ACEOF
22381 cat confdefs.h >>conftest.$ac_ext
22382 cat >>conftest.$ac_ext <<_ACEOF
22383 /* end confdefs.h.  */
22384 #include <stdlib.h>
22385 #include <CORBA.h>
22386 int main ()
22387 {
22388   CORBA::Long *a=new CORBA::Long(2);
22389   int c=2;
22390   int *b;
22391   b=(int *)a;
22392
22393   if( (c==*b) && (sizeof(int)==sizeof(CORBA::Long)) )
22394     exit(0);
22395   else
22396     exit(1);
22397 }
22398
22399 _ACEOF
22400 rm -f conftest$ac_exeext
22401 if { (ac_try="$ac_link"
22402 case "(($ac_try" in
22403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22404   *) ac_try_echo=$ac_try;;
22405 esac
22406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22407   (eval "$ac_link") 2>&5
22408   ac_status=$?
22409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22410   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22411   { (case "(($ac_try" in
22412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22413   *) ac_try_echo=$ac_try;;
22414 esac
22415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22416   (eval "$ac_try") 2>&5
22417   ac_status=$?
22418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22419   (exit $ac_status); }; }; then
22420   LONGCOMP="yes"
22421 else
22422   echo "$as_me: program exited with status $ac_status" >&5
22423 echo "$as_me: failed program was:" >&5
22424 sed 's/^/| /' conftest.$ac_ext >&5
22425
22426 ( exit $ac_status )
22427 LONGCOMP="no"
22428 fi
22429 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22430 fi
22431
22432
22433 if test "$LONGCOMP" = yes; then
22434   OMNIORB_CXXFLAGS="$OMNIORB_CXXFLAGS -DCOMP_CORBA_LONG"
22435   { echo "$as_me:$LINENO: result: yes" >&5
22436 echo "${ECHO_T}yes" >&6; }
22437 else
22438   { echo "$as_me:$LINENO: result: no" >&5
22439 echo "${ECHO_T}no" >&6; }
22440 fi
22441 CXXFLAGS=$CXXFLAGS_old
22442 LIBS=$LIBS_old
22443
22444 ac_ext=c
22445 ac_cpp='$CPP $CPPFLAGS'
22446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22449
22450
22451
22452
22453
22454
22455 echo
22456 echo ---------------------------------------------
22457 echo default ORB : omniORB
22458 echo ---------------------------------------------
22459 echo
22460
22461 DEFAULT_ORB=omniORB
22462
22463
22464 if test x"$DEFAULT_ORB" = x"omniORB"
22465 then
22466
22467   #  Contient le nom de l'ORB
22468   ORB=omniorb
22469
22470   { echo "$as_me:$LINENO: result: default orb : omniORB" >&5
22471 echo "${ECHO_T}default orb : omniORB" >&6; }
22472   IDL=$OMNIORB_IDL
22473
22474
22475   CORBA_ROOT=$OMNIORB_ROOT
22476   CORBA_INCLUDES=$OMNIORB_INCLUDES
22477   CORBA_CXXFLAGS=$OMNIORB_CXXFLAGS
22478   CORBA_LIBS=$OMNIORB_LIBS
22479   IDLCXXFLAGS=$OMNIORB_IDLCXXFLAGS
22480   PACOIDLCXXFLAGS=$OMNIORB_PACOIDLCXXFLAGS
22481   IDLPYFLAGS=$OMNIORB_IDLPYFLAGS
22482
22483
22484
22485
22486
22487
22488
22489
22490
22491   IDL_CLN_H=$OMNIORB_IDL_CLN_H
22492   IDL_CLN_CXX=$OMNIORB_IDL_CLN_CXX
22493   IDL_CLN_OBJ=$OMNIORB_IDL_CLN_OBJ
22494
22495
22496
22497
22498
22499   IDL_SRV_H=$OMNIORB_IDL_SRV_H
22500   IDL_SRV_CXX=$OMNIORB_IDL_SRV_CXX
22501   IDL_SRV_OBJ=$OMNIORB_IDL_SRV_OBJ
22502
22503
22504
22505
22506
22507 else
22508     { echo "$as_me:$LINENO: result: $DEFAULT_ORB unknown orb" >&5
22509 echo "${ECHO_T}$DEFAULT_ORB unknown orb" >&6; }
22510
22511 fi
22512
22513
22514
22515
22516 corba=make_$ORB
22517 CORBA=adm_local/unix/$corba
22518
22519 echo
22520 echo ---------------------------------------------
22521 echo testing QT
22522 echo ---------------------------------------------
22523 echo
22524
22525
22526
22527
22528 ac_ext=cpp
22529 ac_cpp='$CXXCPP $CPPFLAGS'
22530 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22531 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22532 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22533
22534
22535
22536 # Check whether --with-opengl was given.
22537 if test "${with_opengl+set}" = set; then
22538   withval=$with_opengl; opengl_dir="$withval"
22539 else
22540   dirs="/usr/lib64 /usr/lib /usr/local/lib64 /usr/local/lib /opt/graphics/OpenGL/lib64 /opt/graphics/OpenGL/lib /usr/openwin/lib64 /usr/openwin/lib /usr/X11R6/lib64 /usr/X11R6/lib"
22541 fi
22542
22543 { echo "$as_me:$LINENO: checking for OpenGL..." >&5
22544 echo "$as_me: checking for OpenGL..." >&6;}
22545 { echo "$as_me:$LINENO: checking for OpenGL headers..." >&5
22546 echo "$as_me: checking for OpenGL headers..." >&6;}
22547
22548 OGL_INCLUDES=""
22549 OGL_LIBS=""
22550
22551 GL_LIB_PATH=""
22552 GLU_LIB_PATH=""
22553
22554 OpenGL_ok=no
22555 OpenGL_libs_ok=no
22556 OpenGL_headers_ok=no
22557
22558 # by default
22559 if test "x${opengl_dir}" != "x" ; then
22560   { echo "$as_me:$LINENO: result: for opengl_dir: $opengl_dir" >&5
22561 echo "${ECHO_T}for opengl_dir: $opengl_dir" >&6; }
22562   as_ac_Header=`echo "ac_cv_header_${opengl_dir}/include/GL/gl.h" | $as_tr_sh`
22563 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22564   { echo "$as_me:$LINENO: checking for ${opengl_dir}/include/GL/gl.h" >&5
22565 echo $ECHO_N "checking for ${opengl_dir}/include/GL/gl.h... $ECHO_C" >&6; }
22566 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22567   echo $ECHO_N "(cached) $ECHO_C" >&6
22568 fi
22569 ac_res=`eval echo '${'$as_ac_Header'}'`
22570                { echo "$as_me:$LINENO: result: $ac_res" >&5
22571 echo "${ECHO_T}$ac_res" >&6; }
22572 else
22573   # Is the header compilable?
22574 { echo "$as_me:$LINENO: checking ${opengl_dir}/include/GL/gl.h usability" >&5
22575 echo $ECHO_N "checking ${opengl_dir}/include/GL/gl.h usability... $ECHO_C" >&6; }
22576 cat >conftest.$ac_ext <<_ACEOF
22577 /* confdefs.h.  */
22578 _ACEOF
22579 cat confdefs.h >>conftest.$ac_ext
22580 cat >>conftest.$ac_ext <<_ACEOF
22581 /* end confdefs.h.  */
22582 $ac_includes_default
22583 #include <${opengl_dir}/include/GL/gl.h>
22584 _ACEOF
22585 rm -f conftest.$ac_objext
22586 if { (ac_try="$ac_compile"
22587 case "(($ac_try" in
22588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22589   *) ac_try_echo=$ac_try;;
22590 esac
22591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22592   (eval "$ac_compile") 2>conftest.er1
22593   ac_status=$?
22594   grep -v '^ *+' conftest.er1 >conftest.err
22595   rm -f conftest.er1
22596   cat conftest.err >&5
22597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22598   (exit $ac_status); } && {
22599          test -z "$ac_cxx_werror_flag" ||
22600          test ! -s conftest.err
22601        } && test -s conftest.$ac_objext; then
22602   ac_header_compiler=yes
22603 else
22604   echo "$as_me: failed program was:" >&5
22605 sed 's/^/| /' conftest.$ac_ext >&5
22606
22607         ac_header_compiler=no
22608 fi
22609
22610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22611 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22612 echo "${ECHO_T}$ac_header_compiler" >&6; }
22613
22614 # Is the header present?
22615 { echo "$as_me:$LINENO: checking ${opengl_dir}/include/GL/gl.h presence" >&5
22616 echo $ECHO_N "checking ${opengl_dir}/include/GL/gl.h presence... $ECHO_C" >&6; }
22617 cat >conftest.$ac_ext <<_ACEOF
22618 /* confdefs.h.  */
22619 _ACEOF
22620 cat confdefs.h >>conftest.$ac_ext
22621 cat >>conftest.$ac_ext <<_ACEOF
22622 /* end confdefs.h.  */
22623 #include <${opengl_dir}/include/GL/gl.h>
22624 _ACEOF
22625 if { (ac_try="$ac_cpp conftest.$ac_ext"
22626 case "(($ac_try" in
22627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22628   *) ac_try_echo=$ac_try;;
22629 esac
22630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22631   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22632   ac_status=$?
22633   grep -v '^ *+' conftest.er1 >conftest.err
22634   rm -f conftest.er1
22635   cat conftest.err >&5
22636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22637   (exit $ac_status); } >/dev/null && {
22638          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
22639          test ! -s conftest.err
22640        }; then
22641   ac_header_preproc=yes
22642 else
22643   echo "$as_me: failed program was:" >&5
22644 sed 's/^/| /' conftest.$ac_ext >&5
22645
22646   ac_header_preproc=no
22647 fi
22648
22649 rm -f conftest.err conftest.$ac_ext
22650 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22651 echo "${ECHO_T}$ac_header_preproc" >&6; }
22652
22653 # So?  What about this header?
22654 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22655   yes:no: )
22656     { echo "$as_me:$LINENO: WARNING: ${opengl_dir}/include/GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
22657 echo "$as_me: WARNING: ${opengl_dir}/include/GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22658     { echo "$as_me:$LINENO: WARNING: ${opengl_dir}/include/GL/gl.h: proceeding with the compiler's result" >&5
22659 echo "$as_me: WARNING: ${opengl_dir}/include/GL/gl.h: proceeding with the compiler's result" >&2;}
22660     ac_header_preproc=yes
22661     ;;
22662   no:yes:* )
22663     { echo "$as_me:$LINENO: WARNING: ${opengl_dir}/include/GL/gl.h: present but cannot be compiled" >&5
22664 echo "$as_me: WARNING: ${opengl_dir}/include/GL/gl.h: present but cannot be compiled" >&2;}
22665     { echo "$as_me:$LINENO: WARNING: ${opengl_dir}/include/GL/gl.h:     check for missing prerequisite headers?" >&5
22666 echo "$as_me: WARNING: ${opengl_dir}/include/GL/gl.h:     check for missing prerequisite headers?" >&2;}
22667     { echo "$as_me:$LINENO: WARNING: ${opengl_dir}/include/GL/gl.h: see the Autoconf documentation" >&5
22668 echo "$as_me: WARNING: ${opengl_dir}/include/GL/gl.h: see the Autoconf documentation" >&2;}
22669     { echo "$as_me:$LINENO: WARNING: ${opengl_dir}/include/GL/gl.h:     section \"Present But Cannot Be Compiled\"" >&5
22670 echo "$as_me: WARNING: ${opengl_dir}/include/GL/gl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22671     { echo "$as_me:$LINENO: WARNING: ${opengl_dir}/include/GL/gl.h: proceeding with the preprocessor's result" >&5
22672 echo "$as_me: WARNING: ${opengl_dir}/include/GL/gl.h: proceeding with the preprocessor's result" >&2;}
22673     { echo "$as_me:$LINENO: WARNING: ${opengl_dir}/include/GL/gl.h: in the future, the compiler will take precedence" >&5
22674 echo "$as_me: WARNING: ${opengl_dir}/include/GL/gl.h: in the future, the compiler will take precedence" >&2;}
22675     ( cat <<\_ASBOX
22676 ## ----------------------------------------------- ##
22677 ## Report this to webmaster.salome@opencascade.com ##
22678 ## ----------------------------------------------- ##
22679 _ASBOX
22680      ) | sed "s/^/$as_me: WARNING:     /" >&2
22681     ;;
22682 esac
22683 { echo "$as_me:$LINENO: checking for ${opengl_dir}/include/GL/gl.h" >&5
22684 echo $ECHO_N "checking for ${opengl_dir}/include/GL/gl.h... $ECHO_C" >&6; }
22685 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22686   echo $ECHO_N "(cached) $ECHO_C" >&6
22687 else
22688   eval "$as_ac_Header=\$ac_header_preproc"
22689 fi
22690 ac_res=`eval echo '${'$as_ac_Header'}'`
22691                { echo "$as_me:$LINENO: result: $ac_res" >&5
22692 echo "${ECHO_T}$ac_res" >&6; }
22693
22694 fi
22695 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22696   OpenGL_headers_ok=yes; OGL_INCLUDES="-I${opengl_dir}/include"
22697 else
22698   OpenGL_headers_ok=no
22699 fi
22700
22701
22702   if test "x${OpenGL_headers_ok}" = "xyes" ; then
22703     { echo "$as_me:$LINENO: checking for default OpenGL library..." >&5
22704 echo "$as_me: checking for default OpenGL library..." >&6;}
22705     if test "x${opengl_dir}" = "x/usr" ; then
22706       OGL_LIBS=""
22707     else
22708       OGL_LIBS="-L${opengl_dir}/lib"
22709     fi
22710     LDFLAGS_old="$LDFLAGS"
22711     LDFLAGS="$LDFLAGS $OGL_LIBS"
22712     { echo "$as_me:$LINENO: checking for glBegin in -lGL" >&5
22713 echo $ECHO_N "checking for glBegin in -lGL... $ECHO_C" >&6; }
22714 if test "${ac_cv_lib_GL_glBegin+set}" = set; then
22715   echo $ECHO_N "(cached) $ECHO_C" >&6
22716 else
22717   ac_check_lib_save_LIBS=$LIBS
22718 LIBS="-lGL  $LIBS"
22719 cat >conftest.$ac_ext <<_ACEOF
22720 /* confdefs.h.  */
22721 _ACEOF
22722 cat confdefs.h >>conftest.$ac_ext
22723 cat >>conftest.$ac_ext <<_ACEOF
22724 /* end confdefs.h.  */
22725
22726 /* Override any GCC internal prototype to avoid an error.
22727    Use char because int might match the return type of a GCC
22728    builtin and then its argument prototype would still apply.  */
22729 #ifdef __cplusplus
22730 extern "C"
22731 #endif
22732 char glBegin ();
22733 int
22734 main ()
22735 {
22736 return glBegin ();
22737   ;
22738   return 0;
22739 }
22740 _ACEOF
22741 rm -f conftest.$ac_objext conftest$ac_exeext
22742 if { (ac_try="$ac_link"
22743 case "(($ac_try" in
22744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22745   *) ac_try_echo=$ac_try;;
22746 esac
22747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22748   (eval "$ac_link") 2>conftest.er1
22749   ac_status=$?
22750   grep -v '^ *+' conftest.er1 >conftest.err
22751   rm -f conftest.er1
22752   cat conftest.err >&5
22753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22754   (exit $ac_status); } && {
22755          test -z "$ac_cxx_werror_flag" ||
22756          test ! -s conftest.err
22757        } && test -s conftest$ac_exeext &&
22758        $as_test_x conftest$ac_exeext; then
22759   ac_cv_lib_GL_glBegin=yes
22760 else
22761   echo "$as_me: failed program was:" >&5
22762 sed 's/^/| /' conftest.$ac_ext >&5
22763
22764         ac_cv_lib_GL_glBegin=no
22765 fi
22766
22767 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22768       conftest$ac_exeext conftest.$ac_ext
22769 LIBS=$ac_check_lib_save_LIBS
22770 fi
22771 { echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glBegin" >&5
22772 echo "${ECHO_T}$ac_cv_lib_GL_glBegin" >&6; }
22773 if test $ac_cv_lib_GL_glBegin = yes; then
22774   OpenGL_libs_ok=yes
22775 else
22776   OpenGL_libs_ok=no
22777 fi
22778
22779     if test "x${OpenGL_libs_ok}" = "xyes" ; then
22780       cat >conftest.$ac_ext <<_ACEOF
22781 /* confdefs.h.  */
22782 _ACEOF
22783 cat confdefs.h >>conftest.$ac_ext
22784 cat >>conftest.$ac_ext <<_ACEOF
22785 /* end confdefs.h.  */
22786
22787 int
22788 main ()
22789 {
22790
22791   ;
22792   return 0;
22793 }
22794 _ACEOF
22795 rm -f conftest.$ac_objext conftest$ac_exeext
22796 if { (ac_try="$ac_link"
22797 case "(($ac_try" in
22798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22799   *) ac_try_echo=$ac_try;;
22800 esac
22801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22802   (eval "$ac_link") 2>conftest.er1
22803   ac_status=$?
22804   grep -v '^ *+' conftest.er1 >conftest.err
22805   rm -f conftest.er1
22806   cat conftest.err >&5
22807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22808   (exit $ac_status); } && {
22809          test -z "$ac_cxx_werror_flag" ||
22810          test ! -s conftest.err
22811        } && test -s conftest$ac_exeext &&
22812        $as_test_x conftest$ac_exeext; then
22813   OpenGL_libs_ok=yes ; OpenGL_ok=yes; OGL_LIBS="$OGL_LIBS -lGL"
22814 else
22815   echo "$as_me: failed program was:" >&5
22816 sed 's/^/| /' conftest.$ac_ext >&5
22817
22818         OpenGL_libs_ok=no
22819 fi
22820
22821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22822       conftest$ac_exeext conftest.$ac_ext
22823     fi
22824     LDFLAGS="$LDFLAGS_old"
22825   fi
22826 fi
22827
22828 if test "x${OpenGL_headers_ok}" = "xno" ; then
22829   if test "${ac_cv_header_GL_gl_h+set}" = set; then
22830   { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
22831 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
22832 if test "${ac_cv_header_GL_gl_h+set}" = set; then
22833   echo $ECHO_N "(cached) $ECHO_C" >&6
22834 fi
22835 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
22836 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
22837 else
22838   # Is the header compilable?
22839 { echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
22840 echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6; }
22841 cat >conftest.$ac_ext <<_ACEOF
22842 /* confdefs.h.  */
22843 _ACEOF
22844 cat confdefs.h >>conftest.$ac_ext
22845 cat >>conftest.$ac_ext <<_ACEOF
22846 /* end confdefs.h.  */
22847 $ac_includes_default
22848 #include <GL/gl.h>
22849 _ACEOF
22850 rm -f conftest.$ac_objext
22851 if { (ac_try="$ac_compile"
22852 case "(($ac_try" in
22853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22854   *) ac_try_echo=$ac_try;;
22855 esac
22856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22857   (eval "$ac_compile") 2>conftest.er1
22858   ac_status=$?
22859   grep -v '^ *+' conftest.er1 >conftest.err
22860   rm -f conftest.er1
22861   cat conftest.err >&5
22862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22863   (exit $ac_status); } && {
22864          test -z "$ac_cxx_werror_flag" ||
22865          test ! -s conftest.err
22866        } && test -s conftest.$ac_objext; then
22867   ac_header_compiler=yes
22868 else
22869   echo "$as_me: failed program was:" >&5
22870 sed 's/^/| /' conftest.$ac_ext >&5
22871
22872         ac_header_compiler=no
22873 fi
22874
22875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22876 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22877 echo "${ECHO_T}$ac_header_compiler" >&6; }
22878
22879 # Is the header present?
22880 { echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
22881 echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6; }
22882 cat >conftest.$ac_ext <<_ACEOF
22883 /* confdefs.h.  */
22884 _ACEOF
22885 cat confdefs.h >>conftest.$ac_ext
22886 cat >>conftest.$ac_ext <<_ACEOF
22887 /* end confdefs.h.  */
22888 #include <GL/gl.h>
22889 _ACEOF
22890 if { (ac_try="$ac_cpp conftest.$ac_ext"
22891 case "(($ac_try" in
22892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22893   *) ac_try_echo=$ac_try;;
22894 esac
22895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22896   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22897   ac_status=$?
22898   grep -v '^ *+' conftest.er1 >conftest.err
22899   rm -f conftest.er1
22900   cat conftest.err >&5
22901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22902   (exit $ac_status); } >/dev/null && {
22903          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
22904          test ! -s conftest.err
22905        }; then
22906   ac_header_preproc=yes
22907 else
22908   echo "$as_me: failed program was:" >&5
22909 sed 's/^/| /' conftest.$ac_ext >&5
22910
22911   ac_header_preproc=no
22912 fi
22913
22914 rm -f conftest.err conftest.$ac_ext
22915 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22916 echo "${ECHO_T}$ac_header_preproc" >&6; }
22917
22918 # So?  What about this header?
22919 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22920   yes:no: )
22921     { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
22922 echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22923     { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
22924 echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
22925     ac_header_preproc=yes
22926     ;;
22927   no:yes:* )
22928     { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
22929 echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
22930     { echo "$as_me:$LINENO: WARNING: GL/gl.h:     check for missing prerequisite headers?" >&5
22931 echo "$as_me: WARNING: GL/gl.h:     check for missing prerequisite headers?" >&2;}
22932     { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
22933 echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
22934     { echo "$as_me:$LINENO: WARNING: GL/gl.h:     section \"Present But Cannot Be Compiled\"" >&5
22935 echo "$as_me: WARNING: GL/gl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22936     { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
22937 echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
22938     { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
22939 echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
22940     ( cat <<\_ASBOX
22941 ## ----------------------------------------------- ##
22942 ## Report this to webmaster.salome@opencascade.com ##
22943 ## ----------------------------------------------- ##
22944 _ASBOX
22945      ) | sed "s/^/$as_me: WARNING:     /" >&2
22946     ;;
22947 esac
22948 { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
22949 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
22950 if test "${ac_cv_header_GL_gl_h+set}" = set; then
22951   echo $ECHO_N "(cached) $ECHO_C" >&6
22952 else
22953   ac_cv_header_GL_gl_h=$ac_header_preproc
22954 fi
22955 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
22956 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
22957
22958 fi
22959 if test $ac_cv_header_GL_gl_h = yes; then
22960   OpenGL_headers_ok=yes
22961 else
22962   OpenGL_headers_ok=no
22963 fi
22964
22965
22966 fi
22967
22968 # under SunOS ?
22969 if test "x${OpenGL_headers_ok}" = "xno" ; then
22970
22971 for ac_header in /usr/openwin/share/include/GL/glxmd.h
22972 do
22973 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22974 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22975   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22976 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22977 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22978   echo $ECHO_N "(cached) $ECHO_C" >&6
22979 fi
22980 ac_res=`eval echo '${'$as_ac_Header'}'`
22981                { echo "$as_me:$LINENO: result: $ac_res" >&5
22982 echo "${ECHO_T}$ac_res" >&6; }
22983 else
22984   # Is the header compilable?
22985 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22986 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22987 cat >conftest.$ac_ext <<_ACEOF
22988 /* confdefs.h.  */
22989 _ACEOF
22990 cat confdefs.h >>conftest.$ac_ext
22991 cat >>conftest.$ac_ext <<_ACEOF
22992 /* end confdefs.h.  */
22993 $ac_includes_default
22994 #include <$ac_header>
22995 _ACEOF
22996 rm -f conftest.$ac_objext
22997 if { (ac_try="$ac_compile"
22998 case "(($ac_try" in
22999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23000   *) ac_try_echo=$ac_try;;
23001 esac
23002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23003   (eval "$ac_compile") 2>conftest.er1
23004   ac_status=$?
23005   grep -v '^ *+' conftest.er1 >conftest.err
23006   rm -f conftest.er1
23007   cat conftest.err >&5
23008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23009   (exit $ac_status); } && {
23010          test -z "$ac_cxx_werror_flag" ||
23011          test ! -s conftest.err
23012        } && test -s conftest.$ac_objext; then
23013   ac_header_compiler=yes
23014 else
23015   echo "$as_me: failed program was:" >&5
23016 sed 's/^/| /' conftest.$ac_ext >&5
23017
23018         ac_header_compiler=no
23019 fi
23020
23021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23022 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23023 echo "${ECHO_T}$ac_header_compiler" >&6; }
23024
23025 # Is the header present?
23026 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23027 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23028 cat >conftest.$ac_ext <<_ACEOF
23029 /* confdefs.h.  */
23030 _ACEOF
23031 cat confdefs.h >>conftest.$ac_ext
23032 cat >>conftest.$ac_ext <<_ACEOF
23033 /* end confdefs.h.  */
23034 #include <$ac_header>
23035 _ACEOF
23036 if { (ac_try="$ac_cpp conftest.$ac_ext"
23037 case "(($ac_try" in
23038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23039   *) ac_try_echo=$ac_try;;
23040 esac
23041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23042   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23043   ac_status=$?
23044   grep -v '^ *+' conftest.er1 >conftest.err
23045   rm -f conftest.er1
23046   cat conftest.err >&5
23047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23048   (exit $ac_status); } >/dev/null && {
23049          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
23050          test ! -s conftest.err
23051        }; then
23052   ac_header_preproc=yes
23053 else
23054   echo "$as_me: failed program was:" >&5
23055 sed 's/^/| /' conftest.$ac_ext >&5
23056
23057   ac_header_preproc=no
23058 fi
23059
23060 rm -f conftest.err conftest.$ac_ext
23061 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23062 echo "${ECHO_T}$ac_header_preproc" >&6; }
23063
23064 # So?  What about this header?
23065 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23066   yes:no: )
23067     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23068 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23069     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23070 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23071     ac_header_preproc=yes
23072     ;;
23073   no:yes:* )
23074     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23075 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23076     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23077 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23078     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23079 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23080     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23081 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23082     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23083 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23084     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23085 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23086     ( cat <<\_ASBOX
23087 ## ----------------------------------------------- ##
23088 ## Report this to webmaster.salome@opencascade.com ##
23089 ## ----------------------------------------------- ##
23090 _ASBOX
23091      ) | sed "s/^/$as_me: WARNING:     /" >&2
23092     ;;
23093 esac
23094 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23095 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23096 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23097   echo $ECHO_N "(cached) $ECHO_C" >&6
23098 else
23099   eval "$as_ac_Header=\$ac_header_preproc"
23100 fi
23101 ac_res=`eval echo '${'$as_ac_Header'}'`
23102                { echo "$as_me:$LINENO: result: $ac_res" >&5
23103 echo "${ECHO_T}$ac_res" >&6; }
23104
23105 fi
23106 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23107   cat >>confdefs.h <<_ACEOF
23108 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23109 _ACEOF
23110  OpenGL_headers_ok=yes; OGL_INCLUDES="-I/usr/openwin/share/include/"
23111 else
23112   OpenGL_headers_ok=no
23113 fi
23114
23115 done
23116
23117 fi
23118
23119 # under IRIX ?
23120 if test "x${OpenGL_headers_ok}" = "xno" ; then
23121
23122 for ac_header in /opt/graphics/OpenGL/include/GL/glxmd.h
23123 do
23124 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23125 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23126   { echo "$as_me:$LINENO: checking for $ac_header" >&5
23127 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23128 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23129   echo $ECHO_N "(cached) $ECHO_C" >&6
23130 fi
23131 ac_res=`eval echo '${'$as_ac_Header'}'`
23132                { echo "$as_me:$LINENO: result: $ac_res" >&5
23133 echo "${ECHO_T}$ac_res" >&6; }
23134 else
23135   # Is the header compilable?
23136 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23137 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23138 cat >conftest.$ac_ext <<_ACEOF
23139 /* confdefs.h.  */
23140 _ACEOF
23141 cat confdefs.h >>conftest.$ac_ext
23142 cat >>conftest.$ac_ext <<_ACEOF
23143 /* end confdefs.h.  */
23144 $ac_includes_default
23145 #include <$ac_header>
23146 _ACEOF
23147 rm -f conftest.$ac_objext
23148 if { (ac_try="$ac_compile"
23149 case "(($ac_try" in
23150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23151   *) ac_try_echo=$ac_try;;
23152 esac
23153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23154   (eval "$ac_compile") 2>conftest.er1
23155   ac_status=$?
23156   grep -v '^ *+' conftest.er1 >conftest.err
23157   rm -f conftest.er1
23158   cat conftest.err >&5
23159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23160   (exit $ac_status); } && {
23161          test -z "$ac_cxx_werror_flag" ||
23162          test ! -s conftest.err
23163        } && test -s conftest.$ac_objext; then
23164   ac_header_compiler=yes
23165 else
23166   echo "$as_me: failed program was:" >&5
23167 sed 's/^/| /' conftest.$ac_ext >&5
23168
23169         ac_header_compiler=no
23170 fi
23171
23172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23173 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23174 echo "${ECHO_T}$ac_header_compiler" >&6; }
23175
23176 # Is the header present?
23177 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23178 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23179 cat >conftest.$ac_ext <<_ACEOF
23180 /* confdefs.h.  */
23181 _ACEOF
23182 cat confdefs.h >>conftest.$ac_ext
23183 cat >>conftest.$ac_ext <<_ACEOF
23184 /* end confdefs.h.  */
23185 #include <$ac_header>
23186 _ACEOF
23187 if { (ac_try="$ac_cpp conftest.$ac_ext"
23188 case "(($ac_try" in
23189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23190   *) ac_try_echo=$ac_try;;
23191 esac
23192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23193   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23194   ac_status=$?
23195   grep -v '^ *+' conftest.er1 >conftest.err
23196   rm -f conftest.er1
23197   cat conftest.err >&5
23198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23199   (exit $ac_status); } >/dev/null && {
23200          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
23201          test ! -s conftest.err
23202        }; then
23203   ac_header_preproc=yes
23204 else
23205   echo "$as_me: failed program was:" >&5
23206 sed 's/^/| /' conftest.$ac_ext >&5
23207
23208   ac_header_preproc=no
23209 fi
23210
23211 rm -f conftest.err conftest.$ac_ext
23212 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23213 echo "${ECHO_T}$ac_header_preproc" >&6; }
23214
23215 # So?  What about this header?
23216 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23217   yes:no: )
23218     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23219 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23220     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23221 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23222     ac_header_preproc=yes
23223     ;;
23224   no:yes:* )
23225     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23226 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23227     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23228 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23229     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23230 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23231     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23232 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23233     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23234 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23235     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23236 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23237     ( cat <<\_ASBOX
23238 ## ----------------------------------------------- ##
23239 ## Report this to webmaster.salome@opencascade.com ##
23240 ## ----------------------------------------------- ##
23241 _ASBOX
23242      ) | sed "s/^/$as_me: WARNING:     /" >&2
23243     ;;
23244 esac
23245 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23246 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23247 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23248   echo $ECHO_N "(cached) $ECHO_C" >&6
23249 else
23250   eval "$as_ac_Header=\$ac_header_preproc"
23251 fi
23252 ac_res=`eval echo '${'$as_ac_Header'}'`
23253                { echo "$as_me:$LINENO: result: $ac_res" >&5
23254 echo "${ECHO_T}$ac_res" >&6; }
23255
23256 fi
23257 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23258   cat >>confdefs.h <<_ACEOF
23259 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23260 _ACEOF
23261  OpenGL_headers_ok=yes; OGL_INCLUDES="-I/opt/graphics/OpenGL/include"
23262 else
23263   OpenGL_headers_ok=no
23264 fi
23265
23266 done
23267
23268 fi
23269
23270 # some linux OpenGL servers hide the includes in /usr/X11R6/include/GL
23271 if test "x${OpenGL_headers_ok}" = "xno" ; then
23272
23273 for ac_header in /usr/X11R6/include/GL/gl.h
23274 do
23275 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23276 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23277   { echo "$as_me:$LINENO: checking for $ac_header" >&5
23278 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23279 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23280   echo $ECHO_N "(cached) $ECHO_C" >&6
23281 fi
23282 ac_res=`eval echo '${'$as_ac_Header'}'`
23283                { echo "$as_me:$LINENO: result: $ac_res" >&5
23284 echo "${ECHO_T}$ac_res" >&6; }
23285 else
23286   # Is the header compilable?
23287 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23288 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23289 cat >conftest.$ac_ext <<_ACEOF
23290 /* confdefs.h.  */
23291 _ACEOF
23292 cat confdefs.h >>conftest.$ac_ext
23293 cat >>conftest.$ac_ext <<_ACEOF
23294 /* end confdefs.h.  */
23295 $ac_includes_default
23296 #include <$ac_header>
23297 _ACEOF
23298 rm -f conftest.$ac_objext
23299 if { (ac_try="$ac_compile"
23300 case "(($ac_try" in
23301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23302   *) ac_try_echo=$ac_try;;
23303 esac
23304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23305   (eval "$ac_compile") 2>conftest.er1
23306   ac_status=$?
23307   grep -v '^ *+' conftest.er1 >conftest.err
23308   rm -f conftest.er1
23309   cat conftest.err >&5
23310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23311   (exit $ac_status); } && {
23312          test -z "$ac_cxx_werror_flag" ||
23313          test ! -s conftest.err
23314        } && test -s conftest.$ac_objext; then
23315   ac_header_compiler=yes
23316 else
23317   echo "$as_me: failed program was:" >&5
23318 sed 's/^/| /' conftest.$ac_ext >&5
23319
23320         ac_header_compiler=no
23321 fi
23322
23323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23324 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23325 echo "${ECHO_T}$ac_header_compiler" >&6; }
23326
23327 # Is the header present?
23328 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23329 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23330 cat >conftest.$ac_ext <<_ACEOF
23331 /* confdefs.h.  */
23332 _ACEOF
23333 cat confdefs.h >>conftest.$ac_ext
23334 cat >>conftest.$ac_ext <<_ACEOF
23335 /* end confdefs.h.  */
23336 #include <$ac_header>
23337 _ACEOF
23338 if { (ac_try="$ac_cpp conftest.$ac_ext"
23339 case "(($ac_try" in
23340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23341   *) ac_try_echo=$ac_try;;
23342 esac
23343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23344   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23345   ac_status=$?
23346   grep -v '^ *+' conftest.er1 >conftest.err
23347   rm -f conftest.er1
23348   cat conftest.err >&5
23349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23350   (exit $ac_status); } >/dev/null && {
23351          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
23352          test ! -s conftest.err
23353        }; then
23354   ac_header_preproc=yes
23355 else
23356   echo "$as_me: failed program was:" >&5
23357 sed 's/^/| /' conftest.$ac_ext >&5
23358
23359   ac_header_preproc=no
23360 fi
23361
23362 rm -f conftest.err conftest.$ac_ext
23363 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23364 echo "${ECHO_T}$ac_header_preproc" >&6; }
23365
23366 # So?  What about this header?
23367 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23368   yes:no: )
23369     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23370 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23371     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23372 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23373     ac_header_preproc=yes
23374     ;;
23375   no:yes:* )
23376     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23377 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23378     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23379 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23380     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23381 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23382     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23383 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23384     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23385 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23386     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23387 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23388     ( cat <<\_ASBOX
23389 ## ----------------------------------------------- ##
23390 ## Report this to webmaster.salome@opencascade.com ##
23391 ## ----------------------------------------------- ##
23392 _ASBOX
23393      ) | sed "s/^/$as_me: WARNING:     /" >&2
23394     ;;
23395 esac
23396 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23397 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23398 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23399   echo $ECHO_N "(cached) $ECHO_C" >&6
23400 else
23401   eval "$as_ac_Header=\$ac_header_preproc"
23402 fi
23403 ac_res=`eval echo '${'$as_ac_Header'}'`
23404                { echo "$as_me:$LINENO: result: $ac_res" >&5
23405 echo "${ECHO_T}$ac_res" >&6; }
23406
23407 fi
23408 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23409   cat >>confdefs.h <<_ACEOF
23410 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23411 _ACEOF
23412  OpenGL_headers_ok=yes; OGL_INCLUDES="-I/usr/X11R6/include"
23413 else
23414   OpenGL_headers_ok=no
23415 fi
23416
23417 done
23418
23419 fi
23420
23421 if test "x${OpenGL_headers_ok}" = "xyes" ; then
23422   { echo "$as_me:$LINENO: checking for OpenGL library..." >&5
23423 echo "$as_me: checking for OpenGL library..." >&6;}
23424   for idir in $dirs; do
23425     if test -r "${idir}/libGL.so"; then
23426       { echo "$as_me:$LINENO: result: in ${idir}" >&5
23427 echo "${ECHO_T}in ${idir}" >&6; }
23428       if test "x${idir}" = "x/usr/lib64" -o "x${idir}" = "x/usr/lib" ; then
23429         GL_LIB_PATH=""
23430       else
23431         GL_LIB_PATH="-L${idir}"
23432       fi
23433       break
23434     fi
23435     # under IRIX ?
23436     if test -r "${idir}/libGL.sl"; then
23437       { echo "$as_me:$LINENO: result: in ${idir}" >&5
23438 echo "${ECHO_T}in ${idir}" >&6; }
23439       if test "x${idir}" = "x/usr/lib64" -o "x${idir}" = "x/usr/lib" ; then
23440         GL_LIB_PATH=""
23441       else
23442         GL_LIB_PATH="-L${idir}"
23443       fi
23444       break
23445     fi
23446   done
23447   LDFLAGS_old="${LDFLAGS}"
23448   LDFLAGS="${LDFLAGS} ${GL_LIB_PATH}"
23449   { echo "$as_me:$LINENO: checking for glBegin in -lGL" >&5
23450 echo $ECHO_N "checking for glBegin in -lGL... $ECHO_C" >&6; }
23451 if test "${ac_cv_lib_GL_glBegin+set}" = set; then
23452   echo $ECHO_N "(cached) $ECHO_C" >&6
23453 else
23454   ac_check_lib_save_LIBS=$LIBS
23455 LIBS="-lGL  $LIBS"
23456 cat >conftest.$ac_ext <<_ACEOF
23457 /* confdefs.h.  */
23458 _ACEOF
23459 cat confdefs.h >>conftest.$ac_ext
23460 cat >>conftest.$ac_ext <<_ACEOF
23461 /* end confdefs.h.  */
23462
23463 /* Override any GCC internal prototype to avoid an error.
23464    Use char because int might match the return type of a GCC
23465    builtin and then its argument prototype would still apply.  */
23466 #ifdef __cplusplus
23467 extern "C"
23468 #endif
23469 char glBegin ();
23470 int
23471 main ()
23472 {
23473 return glBegin ();
23474   ;
23475   return 0;
23476 }
23477 _ACEOF
23478 rm -f conftest.$ac_objext conftest$ac_exeext
23479 if { (ac_try="$ac_link"
23480 case "(($ac_try" in
23481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23482   *) ac_try_echo=$ac_try;;
23483 esac
23484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23485   (eval "$ac_link") 2>conftest.er1
23486   ac_status=$?
23487   grep -v '^ *+' conftest.er1 >conftest.err
23488   rm -f conftest.er1
23489   cat conftest.err >&5
23490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23491   (exit $ac_status); } && {
23492          test -z "$ac_cxx_werror_flag" ||
23493          test ! -s conftest.err
23494        } && test -s conftest$ac_exeext &&
23495        $as_test_x conftest$ac_exeext; then
23496   ac_cv_lib_GL_glBegin=yes
23497 else
23498   echo "$as_me: failed program was:" >&5
23499 sed 's/^/| /' conftest.$ac_ext >&5
23500
23501         ac_cv_lib_GL_glBegin=no
23502 fi
23503
23504 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23505       conftest$ac_exeext conftest.$ac_ext
23506 LIBS=$ac_check_lib_save_LIBS
23507 fi
23508 { echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glBegin" >&5
23509 echo "${ECHO_T}$ac_cv_lib_GL_glBegin" >&6; }
23510 if test $ac_cv_lib_GL_glBegin = yes; then
23511   OpenGL_libs_ok=yes
23512 else
23513   OpenGL_libs_ok=no
23514 fi
23515
23516   if test "x${OpenGL_libs_ok}" = "xyes" ; then
23517     cat >conftest.$ac_ext <<_ACEOF
23518 /* confdefs.h.  */
23519 _ACEOF
23520 cat confdefs.h >>conftest.$ac_ext
23521 cat >>conftest.$ac_ext <<_ACEOF
23522 /* end confdefs.h.  */
23523
23524 int
23525 main ()
23526 {
23527
23528   ;
23529   return 0;
23530 }
23531 _ACEOF
23532 rm -f conftest.$ac_objext conftest$ac_exeext
23533 if { (ac_try="$ac_link"
23534 case "(($ac_try" in
23535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23536   *) ac_try_echo=$ac_try;;
23537 esac
23538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23539   (eval "$ac_link") 2>conftest.er1
23540   ac_status=$?
23541   grep -v '^ *+' conftest.er1 >conftest.err
23542   rm -f conftest.er1
23543   cat conftest.err >&5
23544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23545   (exit $ac_status); } && {
23546          test -z "$ac_cxx_werror_flag" ||
23547          test ! -s conftest.err
23548        } && test -s conftest$ac_exeext &&
23549        $as_test_x conftest$ac_exeext; then
23550   OpenGL_libs_ok=yes ; OGL_LIBS="${OGL_LIBS} ${GL_LIB_PATH} -lGL"
23551 else
23552   echo "$as_me: failed program was:" >&5
23553 sed 's/^/| /' conftest.$ac_ext >&5
23554
23555         OpenGL_libs_ok=no
23556 fi
23557
23558 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23559       conftest$ac_exeext conftest.$ac_ext
23560   fi
23561   LDFLAGS="$LDFLAGS_old"
23562 fi
23563
23564 if test "x${OpenGL_libs_ok}" = "xyes" ; then
23565   for idir in $dirs; do
23566     if test -r "${idir}/libGLU.so"; then
23567       { echo "$as_me:$LINENO: result: in ${idir}" >&5
23568 echo "${ECHO_T}in ${idir}" >&6; }
23569       if test "x${idir}" = "x/usr/lib64" -o "x${idir}" = "x/usr/lib" ; then
23570         GLU_LIB_PATH=""
23571       else
23572         GLU_LIB_PATH="-L${idir}"
23573       fi
23574       break
23575     fi
23576     # under IRIX ?
23577     if test -r "${idir}/libGLU.sl"; then
23578       { echo "$as_me:$LINENO: result: in ${idir}" >&5
23579 echo "${ECHO_T}in ${idir}" >&6; }
23580       if test "x${idir}" = "x/usr/lib64" -o "x${idir}" = "x/usr/lib" ; then
23581         GLU_LIB_PATH=""
23582       else
23583         GLU_LIB_PATH="-L${idir}"
23584       fi
23585       break
23586     fi
23587   done
23588
23589   # workaround a problem with libGL library location
23590   for idir in $dirs; do
23591     if test -r "${idir}/libGLU.la"; then
23592       GLU_LA_PATH="${idir}/libGLU.la"
23593       GL_LA_PATH_TO_CHECK=`cat ${GLU_LA_PATH} | awk '{ for(i=1;i<NF;i++){ if(gsub("libGL.la","&",$i)>0) print $i } }'`
23594       if test -z ${GL_LA_PATH_TO_CHECK} || test -r ${GL_LA_PATH_TO_CHECK}; then
23595         # nothing to do
23596         break
23597       fi
23598       for jdir in $dirs; do
23599         if test -r "${jdir}/libGL.la"; then
23600           GL_LA_PATH="${jdir}/libGL.la"
23601           # copy the libGLU.la file and set correct libGL.la path in it
23602           NEW_GLU_LA_PATH=${ROOT_BUILDDIR}
23603           NEW_GLU_LA_FILE="${NEW_GLU_LA_PATH}/libGLU.la"
23604           sed -e "s%${GL_LA_PATH_TO_CHECK}%${GL_LA_PATH}%" ${GLU_LA_PATH} > "${NEW_GLU_LA_FILE}"
23605           chmod -f --reference=${GLU_LA_PATH} "${NEW_GLU_LA_FILE}"
23606           # set a new libGLU.la path
23607           GLU_LIB_PATH="-L${NEW_GLU_LA_PATH}"
23608           # create a simbolic link to libGLU.so
23609           for kdir in $dirs; do
23610             if test -r "${kdir}/libGLU.so"; then
23611               cp -fs "${kdir}/libGLU.so" "${NEW_GLU_LA_PATH}/libGLU.so"
23612               break
23613             fi
23614           done
23615           break
23616         fi
23617       done
23618       break
23619     fi
23620   done
23621
23622   LDFLAGS_old="${LDFLAGS}"
23623   LDFLAGS="${LDFLAGS} ${OGL_LIBS} ${GLU_LIB_PATH}"
23624   { echo "$as_me:$LINENO: checking for gluBeginSurface in -lGLU" >&5
23625 echo $ECHO_N "checking for gluBeginSurface in -lGLU... $ECHO_C" >&6; }
23626 if test "${ac_cv_lib_GLU_gluBeginSurface+set}" = set; then
23627   echo $ECHO_N "(cached) $ECHO_C" >&6
23628 else
23629   ac_check_lib_save_LIBS=$LIBS
23630 LIBS="-lGLU  $LIBS"
23631 cat >conftest.$ac_ext <<_ACEOF
23632 /* confdefs.h.  */
23633 _ACEOF
23634 cat confdefs.h >>conftest.$ac_ext
23635 cat >>conftest.$ac_ext <<_ACEOF
23636 /* end confdefs.h.  */
23637
23638 /* Override any GCC internal prototype to avoid an error.
23639    Use char because int might match the return type of a GCC
23640    builtin and then its argument prototype would still apply.  */
23641 #ifdef __cplusplus
23642 extern "C"
23643 #endif
23644 char gluBeginSurface ();
23645 int
23646 main ()
23647 {
23648 return gluBeginSurface ();
23649   ;
23650   return 0;
23651 }
23652 _ACEOF
23653 rm -f conftest.$ac_objext conftest$ac_exeext
23654 if { (ac_try="$ac_link"
23655 case "(($ac_try" in
23656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23657   *) ac_try_echo=$ac_try;;
23658 esac
23659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23660   (eval "$ac_link") 2>conftest.er1
23661   ac_status=$?
23662   grep -v '^ *+' conftest.er1 >conftest.err
23663   rm -f conftest.er1
23664   cat conftest.err >&5
23665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23666   (exit $ac_status); } && {
23667          test -z "$ac_cxx_werror_flag" ||
23668          test ! -s conftest.err
23669        } && test -s conftest$ac_exeext &&
23670        $as_test_x conftest$ac_exeext; then
23671   ac_cv_lib_GLU_gluBeginSurface=yes
23672 else
23673   echo "$as_me: failed program was:" >&5
23674 sed 's/^/| /' conftest.$ac_ext >&5
23675
23676         ac_cv_lib_GLU_gluBeginSurface=no
23677 fi
23678
23679 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23680       conftest$ac_exeext conftest.$ac_ext
23681 LIBS=$ac_check_lib_save_LIBS
23682 fi
23683 { echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluBeginSurface" >&5
23684 echo "${ECHO_T}$ac_cv_lib_GLU_gluBeginSurface" >&6; }
23685 if test $ac_cv_lib_GLU_gluBeginSurface = yes; then
23686   OpenGL_libs_ok=yes
23687 else
23688   OpenGL_libs_ok=no
23689 fi
23690
23691   if test "x${OpenGL_libs_ok}" = "xyes" ; then
23692     cat >conftest.$ac_ext <<_ACEOF
23693 /* confdefs.h.  */
23694 _ACEOF
23695 cat confdefs.h >>conftest.$ac_ext
23696 cat >>conftest.$ac_ext <<_ACEOF
23697 /* end confdefs.h.  */
23698
23699 int
23700 main ()
23701 {
23702
23703   ;
23704   return 0;
23705 }
23706 _ACEOF
23707 rm -f conftest.$ac_objext conftest$ac_exeext
23708 if { (ac_try="$ac_link"
23709 case "(($ac_try" in
23710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23711   *) ac_try_echo=$ac_try;;
23712 esac
23713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23714   (eval "$ac_link") 2>conftest.er1
23715   ac_status=$?
23716   grep -v '^ *+' conftest.er1 >conftest.err
23717   rm -f conftest.er1
23718   cat conftest.err >&5
23719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23720   (exit $ac_status); } && {
23721          test -z "$ac_cxx_werror_flag" ||
23722          test ! -s conftest.err
23723        } && test -s conftest$ac_exeext &&
23724        $as_test_x conftest$ac_exeext; then
23725   OpenGL_libs_ok=yes ; OGL_LIBS="${OGL_LIBS} ${GLU_LIB_PATH} -lGLU"
23726 else
23727   echo "$as_me: failed program was:" >&5
23728 sed 's/^/| /' conftest.$ac_ext >&5
23729
23730         OpenGL_libs_ok=no
23731 fi
23732
23733 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23734       conftest$ac_exeext conftest.$ac_ext
23735   fi
23736   LDFLAGS="$LDFLAGS_old"
23737 fi
23738
23739 if test "x${OpenGL_headers_ok}" = "xyes" ; then
23740   if test "x${OpenGL_libs_ok}" = "xyes" ; then
23741     OpenGL_ok=yes
23742   fi
23743 fi
23744
23745 { echo "$as_me:$LINENO: result: for OpenGL_headers_ok: $OpenGL_headers_ok" >&5
23746 echo "${ECHO_T}for OpenGL_headers_ok: $OpenGL_headers_ok" >&6; }
23747 { echo "$as_me:$LINENO: result: for OpenGL_libs_ok: $OpenGL_libs_ok" >&5
23748 echo "${ECHO_T}for OpenGL_libs_ok: $OpenGL_libs_ok" >&6; }
23749 { echo "$as_me:$LINENO: result: for OpenGL_ok: $OpenGL_ok" >&5
23750 echo "${ECHO_T}for OpenGL_ok: $OpenGL_ok" >&6; }
23751
23752
23753
23754
23755 ac_ext=c
23756 ac_cpp='$CPP $CPPFLAGS'
23757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23760
23761
23762
23763
23764
23765 # Check whether --with-qt was given.
23766 if test "${with_qt+set}" = set; then
23767   withval=$with_qt; with_qt=$withval
23768 else
23769   with_qt=""
23770 fi
23771
23772
23773
23774
23775
23776 { echo "$as_me:$LINENO: checking for Qt..." >&5
23777 echo "$as_me: checking for Qt..." >&6;}
23778
23779 if test "x$OpenGL_ok" != "xyes" ; then
23780    { echo "$as_me:$LINENO: WARNING: Qt needs OpenGL correct configuration" >&5
23781 echo "$as_me: WARNING: Qt needs OpenGL correct configuration" >&2;}
23782 fi
23783
23784 qt_ok=yes
23785
23786 QTDIR=$(echo $QTDIR | sed 's%/\+$%%')
23787
23788
23789 ac_ext=cpp
23790 ac_cpp='$CXXCPP $CPPFLAGS'
23791 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23792 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23793 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23794
23795
23796 if test -z $with_qt ; then
23797   with_qt=""
23798 fi
23799 if test "x$with_qt" = "xyes" ; then
23800     with_qt=""
23801 fi
23802 if test "x$with_qt" = "xauto" ; then
23803     with_qt=""
23804 fi
23805 if test "x$with_qt" = "xno" ; then
23806     with_qt=""
23807   { echo "$as_me:$LINENO: WARNING: Value no" >&5
23808 echo "$as_me: WARNING: Value no" >&2;}
23809 fi
23810
23811 if test "x$with_qt" != "x" ; then
23812     QTDIR="$with_qt"
23813 elif test "$QTDIR" = "/usr/lib/qt3" ; then
23814     { echo "$as_me:$LINENO: result: current QTDIR is $QTDIR" >&5
23815 echo "${ECHO_T}current QTDIR is $QTDIR" >&6; }
23816     if test -d /usr/lib/qt4 ; then
23817     { echo "$as_me:$LINENO: result: it is strange for a qt4 installation !" >&5
23818 echo "${ECHO_T}it is strange for a qt4 installation !" >&6; }
23819     { echo "$as_me:$LINENO: result: /usr/lib/qt4 is present" >&5
23820 echo "${ECHO_T}/usr/lib/qt4 is present" >&6; }
23821     { echo "$as_me:$LINENO: result: replacing QTDIR by /usr/lib/qt4" >&5
23822 echo "${ECHO_T}replacing QTDIR by /usr/lib/qt4" >&6; }
23823     QTDIR=/usr/lib/qt4
23824   fi
23825 elif test -z $QTDIR ; then
23826   { echo "$as_me:$LINENO: WARNING: undefined QTDIR variable which specify where Qt product was installed" >&5
23827 echo "$as_me: WARNING: undefined QTDIR variable which specify where Qt product was installed" >&2;}
23828   for d in /usr/local/lib/qt4 /usr/lib/qt4 /usr ; do
23829     if test -f ${d}/lib/libQtCore.so ; then
23830       { echo "$as_me:$LINENO: result: trying ${d}" >&5
23831 echo "${ECHO_T}trying ${d}" >&6; }
23832       QTDIR="${d}"
23833       break
23834     elif test -f ${d}/lib64/libQtCore.so ; then
23835       { echo "$as_me:$LINENO: result: trying ${d}" >&5
23836 echo "${ECHO_T}trying ${d}" >&6; }
23837       QTDIR="${d}"
23838       break
23839     elif test -f ${d}/libQtCore.so ; then
23840       { echo "$as_me:$LINENO: result: trying ${d}" >&5
23841 echo "${ECHO_T}trying ${d}" >&6; }
23842       QTDIR="${d}"
23843       break
23844     fi
23845   done
23846 fi
23847
23848 #
23849 # check QTDIR environment variable
23850 #
23851 if test "x$QTDIR" = "x"
23852 then
23853    { echo "$as_me:$LINENO: result: Please define correct path in \"--with-qt\" option or use correct $QTDIR variable" >&5
23854 echo "${ECHO_T}Please define correct path in \"--with-qt\" option or use correct $QTDIR variable" >&6; }
23855    qt_ok=no
23856 fi
23857
23858 #
23859 # check Qt version
23860 #
23861 if  test "x$qt_ok" = "xyes"
23862 then
23863    qt_inc_ok=no
23864    QTINC=""
23865    as_ac_File=`echo "ac_cv_file_${QTDIR}/include/qt4/QtCore/qglobal.h" | $as_tr_sh`
23866 { echo "$as_me:$LINENO: checking for ${QTDIR}/include/qt4/QtCore/qglobal.h" >&5
23867 echo $ECHO_N "checking for ${QTDIR}/include/qt4/QtCore/qglobal.h... $ECHO_C" >&6; }
23868 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
23869   echo $ECHO_N "(cached) $ECHO_C" >&6
23870 else
23871   test "$cross_compiling" = yes &&
23872   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23873 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23874    { (exit 1); exit 1; }; }
23875 if test -r "${QTDIR}/include/qt4/QtCore/qglobal.h"; then
23876   eval "$as_ac_File=yes"
23877 else
23878   eval "$as_ac_File=no"
23879 fi
23880 fi
23881 ac_res=`eval echo '${'$as_ac_File'}'`
23882                { echo "$as_me:$LINENO: result: $ac_res" >&5
23883 echo "${ECHO_T}$ac_res" >&6; }
23884 if test `eval echo '${'$as_ac_File'}'` = yes; then
23885   QTINC="/qt4"
23886 else
23887   QTINC=""
23888 fi
23889
23890    if test "x$QTINC" = "x"
23891    then
23892      as_ac_File=`echo "ac_cv_file_${QTDIR}/include${QTINC}/QtCore/qglobal.h" | $as_tr_sh`
23893 { echo "$as_me:$LINENO: checking for ${QTDIR}/include${QTINC}/QtCore/qglobal.h" >&5
23894 echo $ECHO_N "checking for ${QTDIR}/include${QTINC}/QtCore/qglobal.h... $ECHO_C" >&6; }
23895 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
23896   echo $ECHO_N "(cached) $ECHO_C" >&6
23897 else
23898   test "$cross_compiling" = yes &&
23899   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23900 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23901    { (exit 1); exit 1; }; }
23902 if test -r "${QTDIR}/include${QTINC}/QtCore/qglobal.h"; then
23903   eval "$as_ac_File=yes"
23904 else
23905   eval "$as_ac_File=no"
23906 fi
23907 fi
23908 ac_res=`eval echo '${'$as_ac_File'}'`
23909                { echo "$as_me:$LINENO: result: $ac_res" >&5
23910 echo "${ECHO_T}$ac_res" >&6; }
23911 if test `eval echo '${'$as_ac_File'}'` = yes; then
23912   qt_inc_ok=yes
23913 else
23914   qt_inc_ok=no
23915 fi
23916
23917    else
23918      qt_inc_ok=yes
23919    fi
23920    if test "x$qt_inc_ok" = "xyes"
23921    then
23922      { echo "$as_me:$LINENO: checking whether Qt version >= 4.0" >&5
23923 echo $ECHO_N "checking whether Qt version >= 4.0... $ECHO_C" >&6; }
23924      QT_VERSION=`grep "QT_VERSION_STR" ${QTDIR}/include${QTINC}/QtCore/qglobal.h | sed -e 's%^#define QT_VERSION_STR[[:space:]]*\"\([[:digit:]\.]*\)\"%\1%g'`
23925      QT_VERSION_ID=`echo $QT_VERSION | awk -F. '{v=$1*10000+$2*100+$3;print v}'`
23926      if test $QT_VERSION_ID -ge 40000
23927      then
23928        { echo "$as_me:$LINENO: result: yes" >&5
23929 echo "${ECHO_T}yes" >&6; }
23930      else
23931        { echo "$as_me:$LINENO: result: no" >&5
23932 echo "${ECHO_T}no" >&6; }
23933        qt_ok=no
23934      fi
23935      { echo "$as_me:$LINENO: checking Qt version" >&5
23936 echo $ECHO_N "checking Qt version... $ECHO_C" >&6; }
23937      { echo "$as_me:$LINENO: result: $QT_VERSION" >&5
23938 echo "${ECHO_T}$QT_VERSION" >&6; }
23939    else
23940      qt_ok=no
23941    fi
23942 fi
23943
23944 #
23945 # check moc presence (meta-object compiler)
23946 #
23947 qt_add=no
23948
23949 if  test "x$qt_ok" = "xyes"
23950 then
23951   if test -f ${QTDIR}/bin/moc
23952   then
23953     MOC=${QTDIR}/bin/moc
23954   else
23955     # Extract the first word of "moc", so it can be a program name with args.
23956 set dummy moc; ac_word=$2
23957 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23958 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23959 if test "${ac_cv_path_MOC+set}" = set; then
23960   echo $ECHO_N "(cached) $ECHO_C" >&6
23961 else
23962   case $MOC in
23963   [\\/]* | ?:[\\/]*)
23964   ac_cv_path_MOC="$MOC" # Let the user override the test with a path.
23965   ;;
23966   *)
23967   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23968 for as_dir in $PATH
23969 do
23970   IFS=$as_save_IFS
23971   test -z "$as_dir" && as_dir=.
23972   for ac_exec_ext in '' $ac_executable_extensions; do
23973   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23974     ac_cv_path_MOC="$as_dir/$ac_word$ac_exec_ext"
23975     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23976     break 2
23977   fi
23978 done
23979 done
23980 IFS=$as_save_IFS
23981
23982   ;;
23983 esac
23984 fi
23985 MOC=$ac_cv_path_MOC
23986 if test -n "$MOC"; then
23987   { echo "$as_me:$LINENO: result: $MOC" >&5
23988 echo "${ECHO_T}$MOC" >&6; }
23989 else
23990   { echo "$as_me:$LINENO: result: no" >&5
23991 echo "${ECHO_T}no" >&6; }
23992 fi
23993
23994
23995   fi
23996   if test "x$MOC" = "x"
23997   then
23998     qt_ok=no
23999     { echo "$as_me:$LINENO: result: moc (Qt meta-object compiler) is not in the PATH variable" >&5
24000 echo "${ECHO_T}moc (Qt meta-object compiler) is not in the PATH variable" >&6; }
24001   else
24002     qt_ok=yes
24003     { echo "$as_me:$LINENO: result: moc (Qt meta-object compiler) is found" >&5
24004 echo "${ECHO_T}moc (Qt meta-object compiler) is found" >&6; }
24005   fi
24006
24007   if test "x$qt_ok" = "xyes"
24008   then
24009         { echo "$as_me:$LINENO: checking equality Qt and moc tool version" >&5
24010 echo $ECHO_N "checking equality Qt and moc tool version... $ECHO_C" >&6; }
24011     MOC_VERSION=`$MOC -v 2>&1 | awk 'BEGIN{FS="[ ()]"};{print $(NF-1)}'`
24012     if test "x$QT_VERSION" = "x$MOC_VERSION"
24013     then
24014       { echo "$as_me:$LINENO: result: yes" >&5
24015 echo "${ECHO_T}yes" >&6; }
24016       qt_ok=yes
24017     else
24018       { echo "$as_me:$LINENO: result: moc tool and Qt product are incompatible $MOC_VERSION" >&5
24019 echo "${ECHO_T}moc tool and Qt product are incompatible $MOC_VERSION" >&6; }
24020       QT_VERSION_MAJ=`echo $QT_VERSION | awk -F. '{v=$1;print v}'`
24021       { echo "$as_me:$LINENO: checking for moc-qt$QT_VERSION_MAJ compatible version" >&5
24022 echo $ECHO_N "checking for moc-qt$QT_VERSION_MAJ compatible version... $ECHO_C" >&6; }
24023       if test -f ${QTDIR}/bin/moc-qt$QT_VERSION_MAJ
24024       then
24025         MOC=${QTDIR}/bin/moc-qt$QT_VERSION_MAJ
24026         qt_ok=yes
24027         qt_add=$QT_VERSION_MAJ
24028         { echo "$as_me:$LINENO: result: yes" >&5
24029 echo "${ECHO_T}yes" >&6; }
24030       else
24031         { echo "$as_me:$LINENO: result: no" >&5
24032 echo "${ECHO_T}no" >&6; }
24033         qt_ok=no
24034       fi
24035     fi
24036   fi
24037 fi
24038 { echo "$as_me:$LINENO: checking moc tool and Qt product done" >&5
24039 echo $ECHO_N "checking moc tool and Qt product done... $ECHO_C" >&6; }
24040 { echo "$as_me:$LINENO: result: yes" >&5
24041 echo "${ECHO_T}yes" >&6; }
24042
24043 #
24044 # check uic presence (user interface compiler)
24045 #
24046 if  test "x$qt_ok" = "xyes"
24047 then
24048   if test "x$qt_add" = "xno"
24049   then
24050      { echo "$as_me:$LINENO: checking uic" >&5
24051 echo $ECHO_N "checking uic... $ECHO_C" >&6; }
24052      if test -f ${QTDIR}/bin/uic
24053      then
24054        UIC=${QTDIR}/bin/uic
24055      else
24056        # Extract the first word of "uic", so it can be a program name with args.
24057 set dummy uic; ac_word=$2
24058 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24060 if test "${ac_cv_path_UIC+set}" = set; then
24061   echo $ECHO_N "(cached) $ECHO_C" >&6
24062 else
24063   case $UIC in
24064   [\\/]* | ?:[\\/]*)
24065   ac_cv_path_UIC="$UIC" # Let the user override the test with a path.
24066   ;;
24067   *)
24068   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24069 for as_dir in $PATH
24070 do
24071   IFS=$as_save_IFS
24072   test -z "$as_dir" && as_dir=.
24073   for ac_exec_ext in '' $ac_executable_extensions; do
24074   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24075     ac_cv_path_UIC="$as_dir/$ac_word$ac_exec_ext"
24076     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24077     break 2
24078   fi
24079 done
24080 done
24081 IFS=$as_save_IFS
24082
24083   ;;
24084 esac
24085 fi
24086 UIC=$ac_cv_path_UIC
24087 if test -n "$UIC"; then
24088   { echo "$as_me:$LINENO: result: $UIC" >&5
24089 echo "${ECHO_T}$UIC" >&6; }
24090 else
24091   { echo "$as_me:$LINENO: result: no" >&5
24092 echo "${ECHO_T}no" >&6; }
24093 fi
24094
24095
24096      fi
24097      { echo "$as_me:$LINENO: result: yes" >&5
24098 echo "${ECHO_T}yes" >&6; }
24099   else
24100      { echo "$as_me:$LINENO: checking uic-qt$qt_add" >&5
24101 echo $ECHO_N "checking uic-qt$qt_add... $ECHO_C" >&6; }
24102      if test -f ${QTDIR}/bin/uic-qt$qt_add
24103      then
24104        UIC=${QTDIR}/bin/uic-qt$qt_add
24105      else
24106        # Extract the first word of "uic", so it can be a program name with args.
24107 set dummy uic; ac_word=$2
24108 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24110 if test "${ac_cv_path_UIC+set}" = set; then
24111   echo $ECHO_N "(cached) $ECHO_C" >&6
24112 else
24113   case $UIC in
24114   [\\/]* | ?:[\\/]*)
24115   ac_cv_path_UIC="$UIC" # Let the user override the test with a path.
24116   ;;
24117   *)
24118   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24119 for as_dir in $PATH
24120 do
24121   IFS=$as_save_IFS
24122   test -z "$as_dir" && as_dir=.
24123   for ac_exec_ext in '' $ac_executable_extensions; do
24124   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24125     ac_cv_path_UIC="$as_dir/$ac_word$ac_exec_ext"
24126     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24127     break 2
24128   fi
24129 done
24130 done
24131 IFS=$as_save_IFS
24132
24133   ;;
24134 esac
24135 fi
24136 UIC=$ac_cv_path_UIC
24137 if test -n "$UIC"; then
24138   { echo "$as_me:$LINENO: result: $UIC" >&5
24139 echo "${ECHO_T}$UIC" >&6; }
24140 else
24141   { echo "$as_me:$LINENO: result: no" >&5
24142 echo "${ECHO_T}no" >&6; }
24143 fi
24144
24145
24146      fi
24147      { echo "$as_me:$LINENO: result: yes" >&5
24148 echo "${ECHO_T}yes" >&6; }
24149   fi
24150
24151   if test "x$UIC" = "x"
24152   then
24153     qt_ok=no
24154     { echo "$as_me:$LINENO: result: uic (Qt user interface compiler) is not in the PATH variable" >&5
24155 echo "${ECHO_T}uic (Qt user interface compiler) is not in the PATH variable" >&6; }
24156   else
24157     qt_ok=yes
24158     { echo "$as_me:$LINENO: result: uic (Qt user interface compiler) is found" >&5
24159 echo "${ECHO_T}uic (Qt user interface compiler) is found" >&6; }
24160   fi
24161
24162   if test "x$qt_ok" = "xyes"
24163   then
24164         { echo "$as_me:$LINENO: checking cheching equality Qt and uic tool version" >&5
24165 echo $ECHO_N "checking cheching equality Qt and uic tool version... $ECHO_C" >&6; }
24166     UIC_VERSION=`$UIC -version 2>&1 | awk '{print $NF}'`
24167     if test "x$QT_VERSION" = "x$UIC_VERSION"
24168     then
24169       { echo "$as_me:$LINENO: result: yes" >&5
24170 echo "${ECHO_T}yes" >&6; }
24171       qt_ok=yes
24172     else
24173       { echo "$as_me:$LINENO: result: uic tool and Qt product are incompatible" >&5
24174 echo "${ECHO_T}uic tool and Qt product are incompatible" >&6; }
24175       qt_ok=no
24176     fi
24177   fi
24178 fi
24179
24180 #
24181 # check rcc presence (resources compiler)
24182 #
24183 if  test "x$qt_ok" = "xyes"
24184 then
24185   if test "x$qt_add" = "xno"
24186   then
24187      if test -f ${QTDIR}/bin/rcc
24188      then
24189        QRCC=${QTDIR}/bin/rcc
24190      else
24191        # Extract the first word of "rcc", so it can be a program name with args.
24192 set dummy rcc; ac_word=$2
24193 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24195 if test "${ac_cv_path_QRCC+set}" = set; then
24196   echo $ECHO_N "(cached) $ECHO_C" >&6
24197 else
24198   case $QRCC in
24199   [\\/]* | ?:[\\/]*)
24200   ac_cv_path_QRCC="$QRCC" # Let the user override the test with a path.
24201   ;;
24202   *)
24203   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24204 for as_dir in $PATH
24205 do
24206   IFS=$as_save_IFS
24207   test -z "$as_dir" && as_dir=.
24208   for ac_exec_ext in '' $ac_executable_extensions; do
24209   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24210     ac_cv_path_QRCC="$as_dir/$ac_word$ac_exec_ext"
24211     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24212     break 2
24213   fi
24214 done
24215 done
24216 IFS=$as_save_IFS
24217
24218   ;;
24219 esac
24220 fi
24221 QRCC=$ac_cv_path_QRCC
24222 if test -n "$QRCC"; then
24223   { echo "$as_me:$LINENO: result: $QRCC" >&5
24224 echo "${ECHO_T}$QRCC" >&6; }
24225 else
24226   { echo "$as_me:$LINENO: result: no" >&5
24227 echo "${ECHO_T}no" >&6; }
24228 fi
24229
24230
24231      fi
24232   else
24233      if test -f ${QTDIR}/bin/rcc-qt$qt_add
24234      then
24235        QRCC=${QTDIR}/bin/rcc-qt$qt_add
24236      else
24237        # Extract the first word of "rcc", so it can be a program name with args.
24238 set dummy rcc; ac_word=$2
24239 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24241 if test "${ac_cv_path_QRCC+set}" = set; then
24242   echo $ECHO_N "(cached) $ECHO_C" >&6
24243 else
24244   case $QRCC in
24245   [\\/]* | ?:[\\/]*)
24246   ac_cv_path_QRCC="$QRCC" # Let the user override the test with a path.
24247   ;;
24248   *)
24249   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24250 for as_dir in $PATH
24251 do
24252   IFS=$as_save_IFS
24253   test -z "$as_dir" && as_dir=.
24254   for ac_exec_ext in '' $ac_executable_extensions; do
24255   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24256     ac_cv_path_QRCC="$as_dir/$ac_word$ac_exec_ext"
24257     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24258     break 2
24259   fi
24260 done
24261 done
24262 IFS=$as_save_IFS
24263
24264   ;;
24265 esac
24266 fi
24267 QRCC=$ac_cv_path_QRCC
24268 if test -n "$QRCC"; then
24269   { echo "$as_me:$LINENO: result: $QRCC" >&5
24270 echo "${ECHO_T}$QRCC" >&6; }
24271 else
24272   { echo "$as_me:$LINENO: result: no" >&5
24273 echo "${ECHO_T}no" >&6; }
24274 fi
24275
24276
24277      fi
24278   fi
24279   if test "x$QRCC" = "x"
24280   then
24281     qt_ok=no
24282     { echo "$as_me:$LINENO: result: rcc (Qt resources compiler) is not in the PATH variable" >&5
24283 echo "${ECHO_T}rcc (Qt resources compiler) is not in the PATH variable" >&6; }
24284   else
24285     qt_ok=yes
24286     { echo "$as_me:$LINENO: result: rcc (Qt resources compiler) is found" >&5
24287 echo "${ECHO_T}rcc (Qt resources compiler) is found" >&6; }
24288   fi
24289
24290   if test "x$qt_ok" = "xyes"
24291   then
24292         { echo "$as_me:$LINENO: checking cheching equality Qt and rcc tool version" >&5
24293 echo $ECHO_N "checking cheching equality Qt and rcc tool version... $ECHO_C" >&6; }
24294     QRCC_VERSION=`$QRCC -v 2>&1 | awk '{print $NF}'`
24295     if test "x$QT_VERSION" = "x$QRCC_VERSION"
24296     then
24297       { echo "$as_me:$LINENO: result: yes" >&5
24298 echo "${ECHO_T}yes" >&6; }
24299       qt_ok=yes
24300     else
24301       { echo "$as_me:$LINENO: result: rcc tool and Qt product are incompatible" >&5
24302 echo "${ECHO_T}rcc tool and Qt product are incompatible" >&6; }
24303       qt_ok=no
24304     fi
24305   fi
24306 fi
24307
24308 #
24309 # check lrelease presence (translation files compiler)
24310 #
24311 if  test "x$qt_ok" = "xyes"
24312 then
24313   if test "x$qt_add" = "xno"
24314   then
24315      if test -f ${QTDIR}/bin/lrelease
24316      then
24317        LRELEASE=${QTDIR}/bin/lrelease
24318      else
24319        # Extract the first word of "lrelease", so it can be a program name with args.
24320 set dummy lrelease; ac_word=$2
24321 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24323 if test "${ac_cv_path_LRELEASE+set}" = set; then
24324   echo $ECHO_N "(cached) $ECHO_C" >&6
24325 else
24326   case $LRELEASE in
24327   [\\/]* | ?:[\\/]*)
24328   ac_cv_path_LRELEASE="$LRELEASE" # Let the user override the test with a path.
24329   ;;
24330   *)
24331   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24332 for as_dir in $PATH
24333 do
24334   IFS=$as_save_IFS
24335   test -z "$as_dir" && as_dir=.
24336   for ac_exec_ext in '' $ac_executable_extensions; do
24337   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24338     ac_cv_path_LRELEASE="$as_dir/$ac_word$ac_exec_ext"
24339     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24340     break 2
24341   fi
24342 done
24343 done
24344 IFS=$as_save_IFS
24345
24346   ;;
24347 esac
24348 fi
24349 LRELEASE=$ac_cv_path_LRELEASE
24350 if test -n "$LRELEASE"; then
24351   { echo "$as_me:$LINENO: result: $LRELEASE" >&5
24352 echo "${ECHO_T}$LRELEASE" >&6; }
24353 else
24354   { echo "$as_me:$LINENO: result: no" >&5
24355 echo "${ECHO_T}no" >&6; }
24356 fi
24357
24358
24359      fi
24360   else
24361      if test -f ${QTDIR}/bin/lrelease-qt$qt_add
24362      then
24363        LRELEASE=${QTDIR}/bin/lrelease-qt$qt_add
24364      else
24365        # Extract the first word of "lrelease", so it can be a program name with args.
24366 set dummy lrelease; ac_word=$2
24367 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24369 if test "${ac_cv_path_LRELEASE+set}" = set; then
24370   echo $ECHO_N "(cached) $ECHO_C" >&6
24371 else
24372   case $LRELEASE in
24373   [\\/]* | ?:[\\/]*)
24374   ac_cv_path_LRELEASE="$LRELEASE" # Let the user override the test with a path.
24375   ;;
24376   *)
24377   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24378 for as_dir in $PATH
24379 do
24380   IFS=$as_save_IFS
24381   test -z "$as_dir" && as_dir=.
24382   for ac_exec_ext in '' $ac_executable_extensions; do
24383   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24384     ac_cv_path_LRELEASE="$as_dir/$ac_word$ac_exec_ext"
24385     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24386     break 2
24387   fi
24388 done
24389 done
24390 IFS=$as_save_IFS
24391
24392   ;;
24393 esac
24394 fi
24395 LRELEASE=$ac_cv_path_LRELEASE
24396 if test -n "$LRELEASE"; then
24397   { echo "$as_me:$LINENO: result: $LRELEASE" >&5
24398 echo "${ECHO_T}$LRELEASE" >&6; }
24399 else
24400   { echo "$as_me:$LINENO: result: no" >&5
24401 echo "${ECHO_T}no" >&6; }
24402 fi
24403
24404
24405      fi
24406   fi
24407   if test "x$LRELEASE" = "x"
24408   then
24409     qt_ok=no
24410     { echo "$as_me:$LINENO: result: lrelease (Qt translation files compiler) is not in the PATH variable" >&5
24411 echo "${ECHO_T}lrelease (Qt translation files compiler) is not in the PATH variable" >&6; }
24412   else
24413     qt_ok=yes
24414     { echo "$as_me:$LINENO: result: lrelease (Qt translation files compiler) is found" >&5
24415 echo "${ECHO_T}lrelease (Qt translation files compiler) is found" >&6; }
24416   fi
24417
24418   if test "x$qt_ok" = "xyes"
24419   then
24420         { echo "$as_me:$LINENO: checking equality of Qt and lrelease tool version" >&5
24421 echo $ECHO_N "checking equality of Qt and lrelease tool version... $ECHO_C" >&6; }
24422     LRELEASE_VERSION=`$LRELEASE -version 2>&1 | awk '{print $NF}'`
24423     if test "x$QT_VERSION" = "x$LRELEASE_VERSION"
24424     then
24425       { echo "$as_me:$LINENO: result: yes" >&5
24426 echo "${ECHO_T}yes" >&6; }
24427       qt_ok=yes
24428     else
24429       { echo "$as_me:$LINENO: result: lrelease tool and Qt product are incompatible" >&5
24430 echo "${ECHO_T}lrelease tool and Qt product are incompatible" >&6; }
24431       qt_ok=no
24432     fi
24433   fi
24434 fi
24435
24436 QT_ROOT=$QTDIR
24437
24438 #
24439 # check Qt header files
24440 #
24441 if  test "x$qt_ok" = "xyes"
24442 then
24443   { echo "$as_me:$LINENO: checking include Qt header files..." >&5
24444 echo "$as_me: checking include Qt header files..." >&6;}
24445
24446   CPPFLAGS_old=$CPPFLAGS
24447   CPPFLAGS="$CPPFLAGS -I${QTDIR}/include${QTINC} -I${QTDIR}/include${QTINC}/QtCore"
24448   if test "${ac_cv_header_QObject+set}" = set; then
24449   { echo "$as_me:$LINENO: checking for QObject" >&5
24450 echo $ECHO_N "checking for QObject... $ECHO_C" >&6; }
24451 if test "${ac_cv_header_QObject+set}" = set; then
24452   echo $ECHO_N "(cached) $ECHO_C" >&6
24453 fi
24454 { echo "$as_me:$LINENO: result: $ac_cv_header_QObject" >&5
24455 echo "${ECHO_T}$ac_cv_header_QObject" >&6; }
24456 else
24457   # Is the header compilable?
24458 { echo "$as_me:$LINENO: checking QObject usability" >&5
24459 echo $ECHO_N "checking QObject usability... $ECHO_C" >&6; }
24460 cat >conftest.$ac_ext <<_ACEOF
24461 /* confdefs.h.  */
24462 _ACEOF
24463 cat confdefs.h >>conftest.$ac_ext
24464 cat >>conftest.$ac_ext <<_ACEOF
24465 /* end confdefs.h.  */
24466 $ac_includes_default
24467 #include <QObject>
24468 _ACEOF
24469 rm -f conftest.$ac_objext
24470 if { (ac_try="$ac_compile"
24471 case "(($ac_try" in
24472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24473   *) ac_try_echo=$ac_try;;
24474 esac
24475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24476   (eval "$ac_compile") 2>conftest.er1
24477   ac_status=$?
24478   grep -v '^ *+' conftest.er1 >conftest.err
24479   rm -f conftest.er1
24480   cat conftest.err >&5
24481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24482   (exit $ac_status); } && {
24483          test -z "$ac_cxx_werror_flag" ||
24484          test ! -s conftest.err
24485        } && test -s conftest.$ac_objext; then
24486   ac_header_compiler=yes
24487 else
24488   echo "$as_me: failed program was:" >&5
24489 sed 's/^/| /' conftest.$ac_ext >&5
24490
24491         ac_header_compiler=no
24492 fi
24493
24494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24495 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24496 echo "${ECHO_T}$ac_header_compiler" >&6; }
24497
24498 # Is the header present?
24499 { echo "$as_me:$LINENO: checking QObject presence" >&5
24500 echo $ECHO_N "checking QObject presence... $ECHO_C" >&6; }
24501 cat >conftest.$ac_ext <<_ACEOF
24502 /* confdefs.h.  */
24503 _ACEOF
24504 cat confdefs.h >>conftest.$ac_ext
24505 cat >>conftest.$ac_ext <<_ACEOF
24506 /* end confdefs.h.  */
24507 #include <QObject>
24508 _ACEOF
24509 if { (ac_try="$ac_cpp conftest.$ac_ext"
24510 case "(($ac_try" in
24511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24512   *) ac_try_echo=$ac_try;;
24513 esac
24514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24515   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24516   ac_status=$?
24517   grep -v '^ *+' conftest.er1 >conftest.err
24518   rm -f conftest.er1
24519   cat conftest.err >&5
24520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24521   (exit $ac_status); } >/dev/null && {
24522          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
24523          test ! -s conftest.err
24524        }; then
24525   ac_header_preproc=yes
24526 else
24527   echo "$as_me: failed program was:" >&5
24528 sed 's/^/| /' conftest.$ac_ext >&5
24529
24530   ac_header_preproc=no
24531 fi
24532
24533 rm -f conftest.err conftest.$ac_ext
24534 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24535 echo "${ECHO_T}$ac_header_preproc" >&6; }
24536
24537 # So?  What about this header?
24538 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24539   yes:no: )
24540     { echo "$as_me:$LINENO: WARNING: QObject: accepted by the compiler, rejected by the preprocessor!" >&5
24541 echo "$as_me: WARNING: QObject: accepted by the compiler, rejected by the preprocessor!" >&2;}
24542     { echo "$as_me:$LINENO: WARNING: QObject: proceeding with the compiler's result" >&5
24543 echo "$as_me: WARNING: QObject: proceeding with the compiler's result" >&2;}
24544     ac_header_preproc=yes
24545     ;;
24546   no:yes:* )
24547     { echo "$as_me:$LINENO: WARNING: QObject: present but cannot be compiled" >&5
24548 echo "$as_me: WARNING: QObject: present but cannot be compiled" >&2;}
24549     { echo "$as_me:$LINENO: WARNING: QObject:     check for missing prerequisite headers?" >&5
24550 echo "$as_me: WARNING: QObject:     check for missing prerequisite headers?" >&2;}
24551     { echo "$as_me:$LINENO: WARNING: QObject: see the Autoconf documentation" >&5
24552 echo "$as_me: WARNING: QObject: see the Autoconf documentation" >&2;}
24553     { echo "$as_me:$LINENO: WARNING: QObject:     section \"Present But Cannot Be Compiled\"" >&5
24554 echo "$as_me: WARNING: QObject:     section \"Present But Cannot Be Compiled\"" >&2;}
24555     { echo "$as_me:$LINENO: WARNING: QObject: proceeding with the preprocessor's result" >&5
24556 echo "$as_me: WARNING: QObject: proceeding with the preprocessor's result" >&2;}
24557     { echo "$as_me:$LINENO: WARNING: QObject: in the future, the compiler will take precedence" >&5
24558 echo "$as_me: WARNING: QObject: in the future, the compiler will take precedence" >&2;}
24559     ( cat <<\_ASBOX
24560 ## ----------------------------------------------- ##
24561 ## Report this to webmaster.salome@opencascade.com ##
24562 ## ----------------------------------------------- ##
24563 _ASBOX
24564      ) | sed "s/^/$as_me: WARNING:     /" >&2
24565     ;;
24566 esac
24567 { echo "$as_me:$LINENO: checking for QObject" >&5
24568 echo $ECHO_N "checking for QObject... $ECHO_C" >&6; }
24569 if test "${ac_cv_header_QObject+set}" = set; then
24570   echo $ECHO_N "(cached) $ECHO_C" >&6
24571 else
24572   ac_cv_header_QObject=$ac_header_preproc
24573 fi
24574 { echo "$as_me:$LINENO: result: $ac_cv_header_QObject" >&5
24575 echo "${ECHO_T}$ac_cv_header_QObject" >&6; }
24576
24577 fi
24578 if test $ac_cv_header_QObject = yes; then
24579   qt_ok=yes
24580 else
24581   qt_ok=no
24582 fi
24583
24584
24585   CPPFLAGS=$CPPFLAGS_old
24586
24587   if  test "x$qt_ok" = "xno"
24588   then
24589     { echo "$as_me:$LINENO: result: qt header files are not found in $QTDIR/include${QTINC}/QtCore" >&5
24590 echo "${ECHO_T}qt header files are not found in $QTDIR/include${QTINC}/QtCore" >&6; }
24591     { echo "$as_me:$LINENO: result: QTDIR environment variable may be wrong (probably too old Qt version)" >&5
24592 echo "${ECHO_T}QTDIR environment variable may be wrong (probably too old Qt version)" >&6; }
24593   else
24594     { echo "$as_me:$LINENO: result: qt header files seem to be OK" >&5
24595 echo "${ECHO_T}qt header files seem to be OK" >&6; }
24596     QT_INCLUDES="-I${QTDIR}/include${QTINC}"
24597     # user header files
24598     QT_INCLUDES="${QT_INCLUDES} -I${QTDIR}/include${QTINC}/QtCore"
24599     QT_INCLUDES="${QT_INCLUDES} -I${QTDIR}/include${QTINC}/QtGui"
24600     QT_INCLUDES="${QT_INCLUDES} -I${QTDIR}/include${QTINC}/QtOpenGL"
24601     QT_INCLUDES="${QT_INCLUDES} -I${QTDIR}/include${QTINC}/QtXml"
24602     # not used currently header files (uncomment if required)
24603     #QT_INCLUDES="${QT_INCLUDES} -I$(QTDIR)/include${QTINC}/QtAssistant"
24604     #QT_INCLUDES="${QT_INCLUDES} -I$(QTDIR)/include${QTINC}/QtDBus"
24605     #QT_INCLUDES="${QT_INCLUDES} -I$(QTDIR)/include${QTINC}/QtDesigner"
24606     #QT_INCLUDES="${QT_INCLUDES} -I$(QTDIR)/include${QTINC}/QtNetwork"
24607     #QT_INCLUDES="${QT_INCLUDES} -I$(QTDIR)/include${QTINC}/QtSql"
24608     #QT_INCLUDES="${QT_INCLUDES} -I$(QTDIR)/include${QTINC}/QtSvg"
24609     #QT_INCLUDES="${QT_INCLUDES} -I$(QTDIR)/include${QTINC}/QtTest"
24610     #QT_INCLUDES="${QT_INCLUDES} -I$(QTDIR)/include${QTINC}/QtUiTools"
24611
24612     QT_ASSISTANT_INCLUDES="${QT_ASSISTANT_INCLUDES} -I${QTDIR}/include${QTINC}/QtAssistant"
24613     QT_ASSISTANT_INCLUDES="${QT_ASSISTANT_INCLUDES} -I${QTDIR}/include${QTINC}/QtNetwork"
24614
24615     # this flag is obsolete with Qt 4
24616     QT_MT_INCLUDES="$QT_INCLUDES"
24617   fi
24618 fi
24619
24620 #
24621 # test Qt libraries
24622 #
24623 if  test "x$qt_ok" = "xyes"
24624 then
24625   { echo "$as_me:$LINENO: checking linking against Qt library" >&5
24626 echo $ECHO_N "checking linking against Qt library... $ECHO_C" >&6; }
24627
24628   CXXFLAGS_old=$CXXFLAGS
24629   CXXFLAGS="$CXXFLAGS $QT_INCLUDES"
24630
24631   LIBS_old=$LIBS
24632   if test "x$QTDIR" = "x/usr" ; then
24633     QT_LIB_DIR=""
24634   elif test -d ${QTDIR}/lib; then
24635     QT_LIB_DIR="-L$QTDIR/lib"
24636   elif test -d ${QTDIR}/lib64; then
24637     QT_LIB_DIR="-L$QTDIR/lib64"
24638   elif test "x$QTDIR" = "x/usr/lib/qt4" ; then
24639     QT_LIB_DIR=""
24640   else
24641     { { echo "$as_me:$LINENO: error: Can't detect of Qt library directory " >&5
24642 echo "$as_me: error: Can't detect of Qt library directory " >&2;}
24643    { (exit 1); exit 1; }; }
24644     qt_ok=no
24645   fi
24646   LIBS="$LIBS $QT_LIB_DIR -lQtCore"
24647
24648   if test "${salome_cv_lib_qt+set}" = set; then
24649   echo $ECHO_N "(cached) $ECHO_C" >&6
24650 else
24651
24652     cat >conftest.$ac_ext <<_ACEOF
24653 /* confdefs.h.  */
24654 _ACEOF
24655 cat confdefs.h >>conftest.$ac_ext
24656 cat >>conftest.$ac_ext <<_ACEOF
24657 /* end confdefs.h.  */
24658 #include <QCoreApplication>
24659
24660 int
24661 main ()
24662 {
24663 int n;
24664     char **s;
24665     QCoreApplication a(n, s);
24666     a.exec();
24667   ;
24668   return 0;
24669 }
24670 _ACEOF
24671 rm -f conftest.$ac_objext conftest$ac_exeext
24672 if { (ac_try="$ac_link"
24673 case "(($ac_try" in
24674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24675   *) ac_try_echo=$ac_try;;
24676 esac
24677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24678   (eval "$ac_link") 2>conftest.er1
24679   ac_status=$?
24680   grep -v '^ *+' conftest.er1 >conftest.err
24681   rm -f conftest.er1
24682   cat conftest.err >&5
24683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24684   (exit $ac_status); } && {
24685          test -z "$ac_cxx_werror_flag" ||
24686          test ! -s conftest.err
24687        } && test -s conftest$ac_exeext &&
24688        $as_test_x conftest$ac_exeext; then
24689   eval "salome_cv_lib_qt=yes"
24690 else
24691   echo "$as_me: failed program was:" >&5
24692 sed 's/^/| /' conftest.$ac_ext >&5
24693
24694         eval "salome_cv_lib_qt=no"
24695 fi
24696
24697 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24698       conftest$ac_exeext conftest.$ac_ext
24699
24700 fi
24701
24702   qt_ok="$salome_cv_lib_qt"
24703
24704   # BEGIN: for CCRT (installation of qt have only a "lib" directory)
24705   if  test "x$qt_ok" = "xno"
24706   then
24707     QT_LIB_DIR="-L$QTDIR/lib"
24708     LIBS="$LIBS_old $QT_LIB_DIR -lQtCore"
24709
24710     if test "${salome_cv_lib_qt+set}" = set; then
24711   echo $ECHO_N "(cached) $ECHO_C" >&6
24712 else
24713
24714       cat >conftest.$ac_ext <<_ACEOF
24715 /* confdefs.h.  */
24716 _ACEOF
24717 cat confdefs.h >>conftest.$ac_ext
24718 cat >>conftest.$ac_ext <<_ACEOF
24719 /* end confdefs.h.  */
24720 #include <QCoreApplication>
24721
24722 int
24723 main ()
24724 {
24725 int n;
24726       char **s;
24727       QCoreApplication a(n, s);
24728       a.exec();
24729   ;
24730   return 0;
24731 }
24732 _ACEOF
24733 rm -f conftest.$ac_objext conftest$ac_exeext
24734 if { (ac_try="$ac_link"
24735 case "(($ac_try" in
24736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24737   *) ac_try_echo=$ac_try;;
24738 esac
24739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24740   (eval "$ac_link") 2>conftest.er1
24741   ac_status=$?
24742   grep -v '^ *+' conftest.er1 >conftest.err
24743   rm -f conftest.er1
24744   cat conftest.err >&5
24745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24746   (exit $ac_status); } && {
24747          test -z "$ac_cxx_werror_flag" ||
24748          test ! -s conftest.err
24749        } && test -s conftest$ac_exeext &&
24750        $as_test_x conftest$ac_exeext; then
24751   eval "salome_cv_lib_qt=yes"
24752 else
24753   echo "$as_me: failed program was:" >&5
24754 sed 's/^/| /' conftest.$ac_ext >&5
24755
24756         eval "salome_cv_lib_qt=no"
24757 fi
24758
24759 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24760       conftest$ac_exeext conftest.$ac_ext
24761
24762 fi
24763
24764     qt_ok="$salome_cv_lib_qt"
24765   fi
24766   # END: for CCRT
24767
24768   if  test "x$qt_ok" = "xno"
24769   then
24770     { echo "$as_me:$LINENO: result: no" >&5
24771 echo "${ECHO_T}no" >&6; }
24772     { echo "$as_me:$LINENO: result: unable to link with qt library" >&5
24773 echo "${ECHO_T}unable to link with qt library" >&6; }
24774     { echo "$as_me:$LINENO: result: QTDIR environment variable may be wrong (probably too old Qt version)" >&5
24775 echo "${ECHO_T}QTDIR environment variable may be wrong (probably too old Qt version)" >&6; }
24776   else
24777     { echo "$as_me:$LINENO: result: yes" >&5
24778 echo "${ECHO_T}yes" >&6; }
24779     # core libs
24780     QT_CORE_LIBS="$QT_LIB_DIR -lQtCore -lQtXml"
24781     # gui libs
24782     QT_GUI_LIBS="$QT_LIB_DIR -lQtGui -lQtOpenGL"
24783     # other libs (currently not used)
24784     QT_OTHER_LIBS="$QT_LIB_DIR"
24785     # other libs (can be used if necessary)
24786     #QT_OTHER_LIBS="$QT_LIB_DIR -lQt3Support -lQtAssistantClient -lQtDesigner -lQtNetwork -lQtSql -lQtSvg -lQtTest -ltQtUiTools"
24787     QT_ASSISTANT_LIBS="$QT_LIB_DIR -lQtAssistantClient -lQtNetwork"
24788     # all libs
24789     QT_LIBS="$QT_CORE_LIBS $QT_GUI_LIBS $QT_OTHER_LIBS"
24790     # this flag is obsolete with Qt 4
24791     QT_MT_LIBS="$QT_LIBS"
24792   fi
24793   LIBS=$LIBS_old
24794   CXXFLAGS=$CXXFLAGS_old
24795 fi
24796
24797
24798
24799
24800
24801
24802
24803
24804
24805
24806
24807
24808
24809
24810
24811
24812
24813
24814
24815
24816
24817 ac_ext=c
24818 ac_cpp='$CPP $CPPFLAGS'
24819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24822
24823
24824 { echo "$as_me:$LINENO: result: for Qt: $qt_ok" >&5
24825 echo "${ECHO_T}for Qt: $qt_ok" >&6; }
24826
24827 # Save cache
24828 cat >confcache <<\_ACEOF
24829 # This file is a shell script that caches the results of configure
24830 # tests run on this system so they can be shared between configure
24831 # scripts and configure runs, see configure's option --config-cache.
24832 # It is not useful on other systems.  If it contains results you don't
24833 # want to keep, you may remove or edit it.
24834 #
24835 # config.status only pays attention to the cache file if you give it
24836 # the --recheck option to rerun configure.
24837 #
24838 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24839 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24840 # following values.
24841
24842 _ACEOF
24843
24844 # The following way of writing the cache mishandles newlines in values,
24845 # but we know of no workaround that is simple, portable, and efficient.
24846 # So, we kill variables containing newlines.
24847 # Ultrix sh set writes to stderr and can't be redirected directly,
24848 # and sets the high bit in the cache file unless we assign to the vars.
24849 (
24850   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24851     eval ac_val=\$$ac_var
24852     case $ac_val in #(
24853     *${as_nl}*)
24854       case $ac_var in #(
24855       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24856 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24857       esac
24858       case $ac_var in #(
24859       _ | IFS | as_nl) ;; #(
24860       *) $as_unset $ac_var ;;
24861       esac ;;
24862     esac
24863   done
24864
24865   (set) 2>&1 |
24866     case $as_nl`(ac_space=' '; set) 2>&1` in #(
24867     *${as_nl}ac_space=\ *)
24868       # `set' does not quote correctly, so add quotes (double-quote
24869       # substitution turns \\\\ into \\, and sed turns \\ into \).
24870       sed -n \
24871         "s/'/'\\\\''/g;
24872           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24873       ;; #(
24874     *)
24875       # `set' quotes correctly as required by POSIX, so do not add quotes.
24876       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24877       ;;
24878     esac |
24879     sort
24880 ) |
24881   sed '
24882      /^ac_cv_env_/b end
24883      t clear
24884      :clear
24885      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24886      t end
24887      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24888      :end' >>confcache
24889 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24890   if test -w "$cache_file"; then
24891     test "x$cache_file" != "x/dev/null" &&
24892       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24893 echo "$as_me: updating cache $cache_file" >&6;}
24894     cat confcache >$cache_file
24895   else
24896     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24897 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24898   fi
24899 fi
24900 rm -f confcache
24901
24902
24903
24904 echo
24905 echo ---------------------------------------------
24906 echo Testing html generators
24907 echo ---------------------------------------------
24908 echo
24909
24910
24911
24912 #AC_CHECKING(for html generators)
24913
24914 doxygen_ok=yes
24915 # Extract the first word of "doxygen", so it can be a program name with args.
24916 set dummy doxygen; ac_word=$2
24917 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24919 if test "${ac_cv_path_DOXYGEN+set}" = set; then
24920   echo $ECHO_N "(cached) $ECHO_C" >&6
24921 else
24922   case $DOXYGEN in
24923   [\\/]* | ?:[\\/]*)
24924   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
24925   ;;
24926   *)
24927   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24928 for as_dir in $PATH
24929 do
24930   IFS=$as_save_IFS
24931   test -z "$as_dir" && as_dir=.
24932   for ac_exec_ext in '' $ac_executable_extensions; do
24933   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24934     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
24935     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24936     break 2
24937   fi
24938 done
24939 done
24940 IFS=$as_save_IFS
24941
24942   ;;
24943 esac
24944 fi
24945 DOXYGEN=$ac_cv_path_DOXYGEN
24946 if test -n "$DOXYGEN"; then
24947   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
24948 echo "${ECHO_T}$DOXYGEN" >&6; }
24949 else
24950   { echo "$as_me:$LINENO: result: no" >&5
24951 echo "${ECHO_T}no" >&6; }
24952 fi
24953
24954
24955 if test "x$DOXYGEN" = "x"
24956 then
24957   { echo "$as_me:$LINENO: WARNING: doxygen not found" >&5
24958 echo "$as_me: WARNING: doxygen not found" >&2;}
24959   doxygen_ok=no
24960 fi
24961 if test "x$doxygen_ok" = "xyes"
24962 then
24963   version=`$DOXYGEN --version`
24964   { echo "$as_me:$LINENO: result: doxygen version $version" >&5
24965 echo "${ECHO_T}doxygen version $version" >&6; }
24966   case "$version" in
24967         1.4.4*)
24968           DOXYGEN_WITH_PYTHON=yes
24969           DOXYGEN_WITH_STL=no
24970           ;;
24971         1.4.5*)
24972           DOXYGEN_WITH_PYTHON=yes
24973           DOXYGEN_WITH_STL=yes
24974           ;;
24975         1.4.6*)
24976           DOXYGEN_WITH_PYTHON=yes
24977           DOXYGEN_WITH_STL=yes
24978           ;;
24979         1.4.7*)
24980           DOXYGEN_WITH_PYTHON=yes
24981           DOXYGEN_WITH_STL=yes
24982           ;;
24983         1.4.8*)
24984           DOXYGEN_WITH_PYTHON=yes
24985           DOXYGEN_WITH_STL=yes
24986           ;;
24987         1.4.9*)
24988           DOXYGEN_WITH_PYTHON=yes
24989           DOXYGEN_WITH_STL=yes
24990           ;;
24991         [1-9].[5-9]*)
24992           DOXYGEN_WITH_PYTHON=yes
24993           DOXYGEN_WITH_STL=yes
24994           ;;
24995         *)
24996           DOXYGEN_WITH_PYTHON=no
24997           DOXYGEN_WITH_STL=no
24998           ;;
24999   esac
25000   { echo "$as_me:$LINENO: result: doxygen with support STL    - $DOXYGEN_WITH_STL" >&5
25001 echo "${ECHO_T}doxygen with support STL    - $DOXYGEN_WITH_STL" >&6; }
25002   { echo "$as_me:$LINENO: result: doxygen with support PYTHON - $DOXYGEN_WITH_PYTHON" >&5
25003 echo "${ECHO_T}doxygen with support PYTHON - $DOXYGEN_WITH_PYTHON" >&6; }
25004   if test "$DOXYGEN_WITH_PYTHON" == "yes" ; then
25005     DOXYGEN_PYTHON_EXTENSION="*.py"
25006   else
25007     DOXYGEN_PYTHON_EXTENSION=""
25008   fi
25009   if test "$DOXYGEN_WITH_STL" == "yes" ; then
25010     DOXYGEN_SUPPORT_STL="YES"
25011   else
25012     DOXYGEN_SUPPORT_STL="NO"
25013   fi
25014
25015
25016
25017
25018 fi
25019
25020 graphviz_ok=yes
25021 # Extract the first word of "dot", so it can be a program name with args.
25022 set dummy dot; ac_word=$2
25023 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25025 if test "${ac_cv_path_DOT+set}" = set; then
25026   echo $ECHO_N "(cached) $ECHO_C" >&6
25027 else
25028   case $DOT in
25029   [\\/]* | ?:[\\/]*)
25030   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
25031   ;;
25032   *)
25033   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25034 for as_dir in $PATH
25035 do
25036   IFS=$as_save_IFS
25037   test -z "$as_dir" && as_dir=.
25038   for ac_exec_ext in '' $ac_executable_extensions; do
25039   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25040     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
25041     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25042     break 2
25043   fi
25044 done
25045 done
25046 IFS=$as_save_IFS
25047
25048   ;;
25049 esac
25050 fi
25051 DOT=$ac_cv_path_DOT
25052 if test -n "$DOT"; then
25053   { echo "$as_me:$LINENO: result: $DOT" >&5
25054 echo "${ECHO_T}$DOT" >&6; }
25055 else
25056   { echo "$as_me:$LINENO: result: no" >&5
25057 echo "${ECHO_T}no" >&6; }
25058 fi
25059
25060
25061 if test "x$DOT" = "x" ; then
25062   { echo "$as_me:$LINENO: WARNING: graphviz not found" >&5
25063 echo "$as_me: WARNING: graphviz not found" >&2;}
25064   graphviz_ok=no
25065 fi
25066
25067 # Extract the first word of "latex", so it can be a program name with args.
25068 set dummy latex; ac_word=$2
25069 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25071 if test "${ac_cv_path_LATEX+set}" = set; then
25072   echo $ECHO_N "(cached) $ECHO_C" >&6
25073 else
25074   case $LATEX in
25075   [\\/]* | ?:[\\/]*)
25076   ac_cv_path_LATEX="$LATEX" # Let the user override the test with a path.
25077   ;;
25078   *)
25079   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25080 for as_dir in $PATH
25081 do
25082   IFS=$as_save_IFS
25083   test -z "$as_dir" && as_dir=.
25084   for ac_exec_ext in '' $ac_executable_extensions; do
25085   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25086     ac_cv_path_LATEX="$as_dir/$ac_word$ac_exec_ext"
25087     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25088     break 2
25089   fi
25090 done
25091 done
25092 IFS=$as_save_IFS
25093
25094   ;;
25095 esac
25096 fi
25097 LATEX=$ac_cv_path_LATEX
25098 if test -n "$LATEX"; then
25099   { echo "$as_me:$LINENO: result: $LATEX" >&5
25100 echo "${ECHO_T}$LATEX" >&6; }
25101 else
25102   { echo "$as_me:$LINENO: result: no" >&5
25103 echo "${ECHO_T}no" >&6; }
25104 fi
25105
25106
25107 if test "x$LATEX" = "x" ; then
25108   { echo "$as_me:$LINENO: WARNING: latex not found" >&5
25109 echo "$as_me: WARNING: latex not found" >&2;}
25110 fi
25111
25112
25113 # Extract the first word of "dvips", so it can be a program name with args.
25114 set dummy dvips; ac_word=$2
25115 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25117 if test "${ac_cv_path_DVIPS+set}" = set; then
25118   echo $ECHO_N "(cached) $ECHO_C" >&6
25119 else
25120   case $DVIPS in
25121   [\\/]* | ?:[\\/]*)
25122   ac_cv_path_DVIPS="$DVIPS" # Let the user override the test with a path.
25123   ;;
25124   *)
25125   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25126 for as_dir in $PATH
25127 do
25128   IFS=$as_save_IFS
25129   test -z "$as_dir" && as_dir=.
25130   for ac_exec_ext in '' $ac_executable_extensions; do
25131   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25132     ac_cv_path_DVIPS="$as_dir/$ac_word$ac_exec_ext"
25133     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25134     break 2
25135   fi
25136 done
25137 done
25138 IFS=$as_save_IFS
25139
25140   ;;
25141 esac
25142 fi
25143 DVIPS=$ac_cv_path_DVIPS
25144 if test -n "$DVIPS"; then
25145   { echo "$as_me:$LINENO: result: $DVIPS" >&5
25146 echo "${ECHO_T}$DVIPS" >&6; }
25147 else
25148   { echo "$as_me:$LINENO: result: no" >&5
25149 echo "${ECHO_T}no" >&6; }
25150 fi
25151
25152
25153 if test "x$DVIPS" = "x" ; then
25154   { echo "$as_me:$LINENO: WARNING: dvips not found" >&5
25155 echo "$as_me: WARNING: dvips not found" >&2;}
25156 fi
25157
25158
25159 # Extract the first word of "pdflatex", so it can be a program name with args.
25160 set dummy pdflatex; ac_word=$2
25161 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25163 if test "${ac_cv_path_PDFLATEX+set}" = set; then
25164   echo $ECHO_N "(cached) $ECHO_C" >&6
25165 else
25166   case $PDFLATEX in
25167   [\\/]* | ?:[\\/]*)
25168   ac_cv_path_PDFLATEX="$PDFLATEX" # Let the user override the test with a path.
25169   ;;
25170   *)
25171   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25172 for as_dir in $PATH
25173 do
25174   IFS=$as_save_IFS
25175   test -z "$as_dir" && as_dir=.
25176   for ac_exec_ext in '' $ac_executable_extensions; do
25177   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25178     ac_cv_path_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
25179     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25180     break 2
25181   fi
25182 done
25183 done
25184 IFS=$as_save_IFS
25185
25186   ;;
25187 esac
25188 fi
25189 PDFLATEX=$ac_cv_path_PDFLATEX
25190 if test -n "$PDFLATEX"; then
25191   { echo "$as_me:$LINENO: result: $PDFLATEX" >&5
25192 echo "${ECHO_T}$PDFLATEX" >&6; }
25193 else
25194   { echo "$as_me:$LINENO: result: no" >&5
25195 echo "${ECHO_T}no" >&6; }
25196 fi
25197
25198
25199 if test "x$PDFLATEX" = "x" ; then
25200   { echo "$as_me:$LINENO: WARNING: pdflatex not found" >&5
25201 echo "$as_me: WARNING: pdflatex not found" >&2;}
25202 fi
25203
25204
25205 rst2html_ok=yes
25206 # Extract the first word of "rst2html", so it can be a program name with args.
25207 set dummy rst2html; ac_word=$2
25208 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25210 if test "${ac_cv_path_RST2HTML+set}" = set; then
25211   echo $ECHO_N "(cached) $ECHO_C" >&6
25212 else
25213   case $RST2HTML in
25214   [\\/]* | ?:[\\/]*)
25215   ac_cv_path_RST2HTML="$RST2HTML" # Let the user override the test with a path.
25216   ;;
25217   *)
25218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25219 for as_dir in $PATH
25220 do
25221   IFS=$as_save_IFS
25222   test -z "$as_dir" && as_dir=.
25223   for ac_exec_ext in '' $ac_executable_extensions; do
25224   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25225     ac_cv_path_RST2HTML="$as_dir/$ac_word$ac_exec_ext"
25226     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25227     break 2
25228   fi
25229 done
25230 done
25231 IFS=$as_save_IFS
25232
25233   ;;
25234 esac
25235 fi
25236 RST2HTML=$ac_cv_path_RST2HTML
25237 if test -n "$RST2HTML"; then
25238   { echo "$as_me:$LINENO: result: $RST2HTML" >&5
25239 echo "${ECHO_T}$RST2HTML" >&6; }
25240 else
25241   { echo "$as_me:$LINENO: result: no" >&5
25242 echo "${ECHO_T}no" >&6; }
25243 fi
25244
25245
25246 if test "x$RST2HTML" = "x"; then
25247   # Extract the first word of "rst2html.py", so it can be a program name with args.
25248 set dummy rst2html.py; ac_word=$2
25249 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25251 if test "${ac_cv_path_RST2HTML+set}" = set; then
25252   echo $ECHO_N "(cached) $ECHO_C" >&6
25253 else
25254   case $RST2HTML in
25255   [\\/]* | ?:[\\/]*)
25256   ac_cv_path_RST2HTML="$RST2HTML" # Let the user override the test with a path.
25257   ;;
25258   *)
25259   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25260 for as_dir in $PATH
25261 do
25262   IFS=$as_save_IFS
25263   test -z "$as_dir" && as_dir=.
25264   for ac_exec_ext in '' $ac_executable_extensions; do
25265   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25266     ac_cv_path_RST2HTML="$as_dir/$ac_word$ac_exec_ext"
25267     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25268     break 2
25269   fi
25270 done
25271 done
25272 IFS=$as_save_IFS
25273
25274   ;;
25275 esac
25276 fi
25277 RST2HTML=$ac_cv_path_RST2HTML
25278 if test -n "$RST2HTML"; then
25279   { echo "$as_me:$LINENO: result: $RST2HTML" >&5
25280 echo "${ECHO_T}$RST2HTML" >&6; }
25281 else
25282   { echo "$as_me:$LINENO: result: no" >&5
25283 echo "${ECHO_T}no" >&6; }
25284 fi
25285
25286
25287 fi
25288
25289 if test "x$RST2HTML" = "x"; then
25290   { echo "$as_me:$LINENO: WARNING: rst2html not found" >&5
25291 echo "$as_me: WARNING: rst2html not found" >&2;}
25292   rst2html_ok=no
25293 fi
25294
25295
25296  if test x"$rst2html_ok" = xyes; then
25297   RST2HTML_IS_OK_TRUE=
25298   RST2HTML_IS_OK_FALSE='#'
25299 else
25300   RST2HTML_IS_OK_TRUE='#'
25301   RST2HTML_IS_OK_FALSE=
25302 fi
25303
25304
25305
25306
25307 echo
25308 echo ---------------------------------------------
25309 echo Testing Kernel
25310 echo ---------------------------------------------
25311 echo
25312
25313
25314
25315 { echo "$as_me:$LINENO: checking for Kernel..." >&5
25316 echo "$as_me: checking for Kernel..." >&6;}
25317
25318 Kernel_ok=no
25319
25320 KERNEL_LDFLAGS=""
25321 KERNEL_CXXFLAGS=""
25322
25323
25324 # Check whether --with-kernel was given.
25325 if test "${with_kernel+set}" = set; then
25326   withval=$with_kernel; KERNEL_DIR="$withval"
25327 else
25328   KERNEL_DIR=""
25329 fi
25330
25331
25332 if test "x${KERNEL_DIR}" = "x" ; then
25333   { echo "$as_me:$LINENO: result: for \${KERNEL_ROOT_DIR}: ${KERNEL_ROOT_DIR}" >&5
25334 echo "${ECHO_T}for \${KERNEL_ROOT_DIR}: ${KERNEL_ROOT_DIR}" >&6; }
25335   # no --with-kernel-dir option used
25336   if test "x${KERNEL_ROOT_DIR}" != "x" ; then
25337     # KERNEL_ROOT_DIR environment variable defined
25338     KERNEL_DIR=${KERNEL_ROOT_DIR}
25339   else
25340     # search Kernel binaries in PATH variable
25341     # Extract the first word of "runSalome", so it can be a program name with args.
25342 set dummy runSalome; ac_word=$2
25343 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25345 if test "${ac_cv_path_TEMP+set}" = set; then
25346   echo $ECHO_N "(cached) $ECHO_C" >&6
25347 else
25348   case $TEMP in
25349   [\\/]* | ?:[\\/]*)
25350   ac_cv_path_TEMP="$TEMP" # Let the user override the test with a path.
25351   ;;
25352   *)
25353   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25354 for as_dir in $PATH
25355 do
25356   IFS=$as_save_IFS
25357   test -z "$as_dir" && as_dir=.
25358   for ac_exec_ext in '' $ac_executable_extensions; do
25359   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25360     ac_cv_path_TEMP="$as_dir/$ac_word$ac_exec_ext"
25361     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25362     break 2
25363   fi
25364 done
25365 done
25366 IFS=$as_save_IFS
25367
25368   ;;
25369 esac
25370 fi
25371 TEMP=$ac_cv_path_TEMP
25372 if test -n "$TEMP"; then
25373   { echo "$as_me:$LINENO: result: $TEMP" >&5
25374 echo "${ECHO_T}$TEMP" >&6; }
25375 else
25376   { echo "$as_me:$LINENO: result: no" >&5
25377 echo "${ECHO_T}no" >&6; }
25378 fi
25379
25380
25381     if test "x${TEMP}" != "x" ; then
25382       { echo "$as_me:$LINENO: result: runSalome was found at : ${TEMP}" >&5
25383 echo "${ECHO_T}runSalome was found at : ${TEMP}" >&6; }
25384       KERNEL_BIN_DIR=`dirname ${TEMP}`
25385       KERNEL_DIR=`cd ${KERNEL_BIN_DIR}/../..; pwd`
25386     fi
25387   fi
25388 fi
25389
25390 if test -f ${KERNEL_DIR}/bin/salome/runSalome ; then
25391    { echo "$as_me:$LINENO: result: Using Kernel module distribution in ${KERNEL_DIR}" >&5
25392 echo "${ECHO_T}Using Kernel module distribution in ${KERNEL_DIR}" >&6; }
25393    Kernel_ok=yes
25394
25395    if test "x${KERNEL_ROOT_DIR}" = "x" ; then
25396       KERNEL_ROOT_DIR=${KERNEL_DIR}
25397    fi
25398
25399    if test "x${KERNEL_SITE_DIR}" = "x" ; then
25400       KERNEL_SITE_DIR=${KERNEL_ROOT_DIR}
25401    fi
25402
25403
25404
25405
25406    KERNEL_LDFLAGS=-L${KERNEL_DIR}/lib${LIB_LOCATION_SUFFIX}/salome
25407    KERNEL_CXXFLAGS=-I${KERNEL_DIR}/include/salome
25408
25409
25410
25411 else
25412    { echo "$as_me:$LINENO: WARNING: \"Cannot find compiled Kernel module distribution\"" >&5
25413 echo "$as_me: WARNING: \"Cannot find compiled Kernel module distribution\"" >&2;}
25414 fi
25415
25416 { echo "$as_me:$LINENO: result: for Kernel: $Kernel_ok" >&5
25417 echo "${ECHO_T}for Kernel: $Kernel_ok" >&6; }
25418
25419
25420
25421 echo
25422 echo ---------------------------------------------
25423 echo Testing GUI
25424 echo ---------------------------------------------
25425 echo
25426
25427
25428
25429
25430 LightGUI_ok=no
25431 FullGUI_ok=no
25432
25433 GUI_LDFLAGS=""
25434 GUI_CXXFLAGS=""
25435
25436 SALOME_GUI_DIR=""
25437
25438
25439 # Check whether --with-gui was given.
25440 if test "${with_gui+set}" = set; then
25441   withval=$with_gui;
25442 else
25443   with_gui=auto
25444 fi
25445
25446
25447 if test "${with_gui}" = "no"; then
25448   SalomeGUI_need=no
25449 else
25450   # define SALOME_GUI_DIR
25451   if test "${with_gui}" = "yes" -o "${with_gui}" = "auto"; then
25452     SalomeGUI_need="$with_gui"
25453     { echo "$as_me:$LINENO: result: try \${GUI_ROOT_DIR}: ${GUI_ROOT_DIR}" >&5
25454 echo "${ECHO_T}try \${GUI_ROOT_DIR}: ${GUI_ROOT_DIR}" >&6; }
25455     if test "x${GUI_ROOT_DIR}" != "x" ; then
25456       # GUI_ROOT_DIR environment variable defined
25457       SALOME_GUI_DIR=${GUI_ROOT_DIR}
25458     else
25459       # search Salome binaries in PATH variable
25460       # Extract the first word of "SUITApp", so it can be a program name with args.
25461 set dummy SUITApp; ac_word=$2
25462 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25464 if test "${ac_cv_path_TEMP+set}" = set; then
25465   echo $ECHO_N "(cached) $ECHO_C" >&6
25466 else
25467   case $TEMP in
25468   [\\/]* | ?:[\\/]*)
25469   ac_cv_path_TEMP="$TEMP" # Let the user override the test with a path.
25470   ;;
25471   *)
25472   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25473 for as_dir in $PATH
25474 do
25475   IFS=$as_save_IFS
25476   test -z "$as_dir" && as_dir=.
25477   for ac_exec_ext in '' $ac_executable_extensions; do
25478   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25479     ac_cv_path_TEMP="$as_dir/$ac_word$ac_exec_ext"
25480     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25481     break 2
25482   fi
25483 done
25484 done
25485 IFS=$as_save_IFS
25486
25487   ;;
25488 esac
25489 fi
25490 TEMP=$ac_cv_path_TEMP
25491 if test -n "$TEMP"; then
25492   { echo "$as_me:$LINENO: result: $TEMP" >&5
25493 echo "${ECHO_T}$TEMP" >&6; }
25494 else
25495   { echo "$as_me:$LINENO: result: no" >&5
25496 echo "${ECHO_T}no" >&6; }
25497 fi
25498
25499
25500       if test "x${TEMP}" != "x" ; then
25501         { echo "$as_me:$LINENO: result: SUITApp was found at : ${TEMP}" >&5
25502 echo "${ECHO_T}SUITApp was found at : ${TEMP}" >&6; }
25503         SALOME_BIN_DIR=`dirname ${TEMP}`
25504         SALOME_GUI_DIR=`cd ${SALOME_BIN_DIR}/../..; pwd`
25505       fi
25506     fi
25507   else
25508     # GUI directory defined by user
25509     SalomeGUI_need=yes
25510     SALOME_GUI_DIR="$with_gui"
25511   fi
25512
25513   # check GUI installation
25514   { echo "$as_me:$LINENO: checking for light GUI..." >&5
25515 echo "$as_me: checking for light GUI..." >&6;}
25516   if test -f ${SALOME_GUI_DIR}/bin/salome/SUITApp ; then
25517     LightGUI_ok=yes
25518     { echo "$as_me:$LINENO: result: Using SALOME GUI distribution in ${SALOME_GUI_DIR}" >&5
25519 echo "${ECHO_T}Using SALOME GUI distribution in ${SALOME_GUI_DIR}" >&6; }
25520
25521     GUI_ROOT_DIR=${SALOME_GUI_DIR}
25522
25523     GUI_LDFLAGS=-L${SALOME_GUI_DIR}/lib${LIB_LOCATION_SUFFIX}/salome
25524     GUI_CXXFLAGS=-I${SALOME_GUI_DIR}/include/salome
25525
25526     { echo "$as_me:$LINENO: checking for full GUI..." >&5
25527 echo "$as_me: checking for full GUI..." >&6;}
25528     if test -f ${SALOME_GUI_DIR}/bin/salome/SALOME_Session_Server ; then
25529       FullGUI_ok=yes
25530     fi
25531   else
25532     { echo "$as_me:$LINENO: WARNING: \"Cannot find compiled SALOME GUI distribution\"" >&5
25533 echo "$as_me: WARNING: \"Cannot find compiled SALOME GUI distribution\"" >&2;}
25534   fi
25535   { echo "$as_me:$LINENO: result: for light GUI: ${LightGUI_ok}" >&5
25536 echo "${ECHO_T}for light GUI: ${LightGUI_ok}" >&6; }
25537   { echo "$as_me:$LINENO: result: for full GUI: ${FullGUI_ok}" >&5
25538 echo "${ECHO_T}for full GUI: ${FullGUI_ok}" >&6; }
25539 fi
25540
25541
25542
25543
25544
25545
25546   SalomeGUI_ok=${LightGUI_ok}
25547
25548
25549 echo
25550 echo ---------------------------------------------
25551 echo Testing full GUI
25552 echo ---------------------------------------------
25553 echo
25554
25555
25556
25557
25558 LightGUI_ok=no
25559 FullGUI_ok=no
25560
25561 GUI_LDFLAGS=""
25562 GUI_CXXFLAGS=""
25563
25564 SALOME_GUI_DIR=""
25565
25566
25567 # Check whether --with-gui was given.
25568 if test "${with_gui+set}" = set; then
25569   withval=$with_gui;
25570 else
25571   with_gui=auto
25572 fi
25573
25574
25575 if test "${with_gui}" = "no"; then
25576   SalomeGUI_need=no
25577 else
25578   # define SALOME_GUI_DIR
25579   if test "${with_gui}" = "yes" -o "${with_gui}" = "auto"; then
25580     SalomeGUI_need="$with_gui"
25581     { echo "$as_me:$LINENO: result: try \${GUI_ROOT_DIR}: ${GUI_ROOT_DIR}" >&5
25582 echo "${ECHO_T}try \${GUI_ROOT_DIR}: ${GUI_ROOT_DIR}" >&6; }
25583     if test "x${GUI_ROOT_DIR}" != "x" ; then
25584       # GUI_ROOT_DIR environment variable defined
25585       SALOME_GUI_DIR=${GUI_ROOT_DIR}
25586     else
25587       # search Salome binaries in PATH variable
25588       # Extract the first word of "SUITApp", so it can be a program name with args.
25589 set dummy SUITApp; ac_word=$2
25590 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25592 if test "${ac_cv_path_TEMP+set}" = set; then
25593   echo $ECHO_N "(cached) $ECHO_C" >&6
25594 else
25595   case $TEMP in
25596   [\\/]* | ?:[\\/]*)
25597   ac_cv_path_TEMP="$TEMP" # Let the user override the test with a path.
25598   ;;
25599   *)
25600   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25601 for as_dir in $PATH
25602 do
25603   IFS=$as_save_IFS
25604   test -z "$as_dir" && as_dir=.
25605   for ac_exec_ext in '' $ac_executable_extensions; do
25606   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25607     ac_cv_path_TEMP="$as_dir/$ac_word$ac_exec_ext"
25608     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25609     break 2
25610   fi
25611 done
25612 done
25613 IFS=$as_save_IFS
25614
25615   ;;
25616 esac
25617 fi
25618 TEMP=$ac_cv_path_TEMP
25619 if test -n "$TEMP"; then
25620   { echo "$as_me:$LINENO: result: $TEMP" >&5
25621 echo "${ECHO_T}$TEMP" >&6; }
25622 else
25623   { echo "$as_me:$LINENO: result: no" >&5
25624 echo "${ECHO_T}no" >&6; }
25625 fi
25626
25627
25628       if test "x${TEMP}" != "x" ; then
25629         { echo "$as_me:$LINENO: result: SUITApp was found at : ${TEMP}" >&5
25630 echo "${ECHO_T}SUITApp was found at : ${TEMP}" >&6; }
25631         SALOME_BIN_DIR=`dirname ${TEMP}`
25632         SALOME_GUI_DIR=`cd ${SALOME_BIN_DIR}/../..; pwd`
25633       fi
25634     fi
25635   else
25636     # GUI directory defined by user
25637     SalomeGUI_need=yes
25638     SALOME_GUI_DIR="$with_gui"
25639   fi
25640
25641   # check GUI installation
25642   { echo "$as_me:$LINENO: checking for light GUI..." >&5
25643 echo "$as_me: checking for light GUI..." >&6;}
25644   if test -f ${SALOME_GUI_DIR}/bin/salome/SUITApp ; then
25645     LightGUI_ok=yes
25646     { echo "$as_me:$LINENO: result: Using SALOME GUI distribution in ${SALOME_GUI_DIR}" >&5
25647 echo "${ECHO_T}Using SALOME GUI distribution in ${SALOME_GUI_DIR}" >&6; }
25648
25649     GUI_ROOT_DIR=${SALOME_GUI_DIR}
25650
25651     GUI_LDFLAGS=-L${SALOME_GUI_DIR}/lib${LIB_LOCATION_SUFFIX}/salome
25652     GUI_CXXFLAGS=-I${SALOME_GUI_DIR}/include/salome
25653
25654     { echo "$as_me:$LINENO: checking for full GUI..." >&5
25655 echo "$as_me: checking for full GUI..." >&6;}
25656     if test -f ${SALOME_GUI_DIR}/bin/salome/SALOME_Session_Server ; then
25657       FullGUI_ok=yes
25658     fi
25659   else
25660     { echo "$as_me:$LINENO: WARNING: \"Cannot find compiled SALOME GUI distribution\"" >&5
25661 echo "$as_me: WARNING: \"Cannot find compiled SALOME GUI distribution\"" >&2;}
25662   fi
25663   { echo "$as_me:$LINENO: result: for light GUI: ${LightGUI_ok}" >&5
25664 echo "${ECHO_T}for light GUI: ${LightGUI_ok}" >&6; }
25665   { echo "$as_me:$LINENO: result: for full GUI: ${FullGUI_ok}" >&5
25666 echo "${ECHO_T}for full GUI: ${FullGUI_ok}" >&6; }
25667 fi
25668
25669
25670
25671
25672
25673
25674   CORBA_IN_GUI=${FullGUI_ok}
25675
25676
25677
25678 if test "x${CORBA_IN_GUI}" != "xyes"; then
25679   echo "failed : For configure :sat:{PYCMP} module necessary full GUI !"
25680   exit
25681 fi
25682
25683 echo
25684 echo ---------------------------------------------
25685 echo Summary
25686 echo ---------------------------------------------
25687 echo
25688
25689 echo Configure
25690 variables="python_ok omniORB_ok qt_ok doxygen_ok Kernel_ok"
25691
25692 for var in $variables
25693 do
25694    printf "   %10s : " `echo \$var | sed -e "s,_ok,,"`
25695    eval echo \$$var
25696 done
25697
25698 echo
25699 echo "Default ORB   : $DEFAULT_ORB"
25700 echo
25701
25702 if test "X$GMAKE" = "Xyes"; then
25703     SETX=":"
25704 else
25705     SETX="set -x"
25706 fi
25707 echo
25708 echo ---------------------------------------------
25709 echo generating Makefiles and configure files
25710 echo ---------------------------------------------
25711 echo
25712
25713 ac_config_commands="$ac_config_commands default-1"
25714
25715
25716
25717 cat > hack_libtool <<EOF
25718 #! /bin/bash
25719
25720 cmd=""
25721 cmd_end=""
25722
25723 for param in "\$@"
25724 do
25725     case \${param} in
25726         -L* ) where=\$(echo \${param} | cut -b3-) ; if test "\${where}" != "" && test -d \${where} ; then where=\$(cd \${where}; pwd) ; if test "\${where}" = "/usr/lib" || test "\${where}" = "/usr/lib64" ; then cmd_end="\${cmd_end} \${param}" ; else cmd="\${cmd} \${param}" ; fi ; fi ;;
25727         *   ) cmd="\${cmd} \${param}" ;;
25728     esac
25729 done
25730 cmd="\${cmd} \${cmd_end}"
25731 \$cmd
25732 EOF
25733 chmod a+x hack_libtool
25734
25735 ac_config_commands="$ac_config_commands hack_libtool"
25736
25737
25738 # This list is initiated using autoscan and must be updated manually
25739 # when adding a new file <filename>.in to manage. When you execute
25740 # autoscan, the Makefile list is generated in the output file configure.scan.
25741 # This could be helpfull to update de configuration.
25742 ac_config_files="$ac_config_files adm_local/Makefile adm_local/unix/Makefile adm_local/unix/config_files/Makefile bin/VERSION bin/runAppli bin/Makefile doc/Makefile doc/doxyfile doc/static/header.html src/Makefile src/:sat:{PYCMP}/Makefile src/:sat:{PYCMP}GUI/Makefile resources/Makefile resources/:sat:{PYCMP}Catalog.xml idl/Makefile Makefile"
25743
25744 cat >confcache <<\_ACEOF
25745 # This file is a shell script that caches the results of configure
25746 # tests run on this system so they can be shared between configure
25747 # scripts and configure runs, see configure's option --config-cache.
25748 # It is not useful on other systems.  If it contains results you don't
25749 # want to keep, you may remove or edit it.
25750 #
25751 # config.status only pays attention to the cache file if you give it
25752 # the --recheck option to rerun configure.
25753 #
25754 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25755 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25756 # following values.
25757
25758 _ACEOF
25759
25760 # The following way of writing the cache mishandles newlines in values,
25761 # but we know of no workaround that is simple, portable, and efficient.
25762 # So, we kill variables containing newlines.
25763 # Ultrix sh set writes to stderr and can't be redirected directly,
25764 # and sets the high bit in the cache file unless we assign to the vars.
25765 (
25766   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25767     eval ac_val=\$$ac_var
25768     case $ac_val in #(
25769     *${as_nl}*)
25770       case $ac_var in #(
25771       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25772 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25773       esac
25774       case $ac_var in #(
25775       _ | IFS | as_nl) ;; #(
25776       *) $as_unset $ac_var ;;
25777       esac ;;
25778     esac
25779   done
25780
25781   (set) 2>&1 |
25782     case $as_nl`(ac_space=' '; set) 2>&1` in #(
25783     *${as_nl}ac_space=\ *)
25784       # `set' does not quote correctly, so add quotes (double-quote
25785       # substitution turns \\\\ into \\, and sed turns \\ into \).
25786       sed -n \
25787         "s/'/'\\\\''/g;
25788           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25789       ;; #(
25790     *)
25791       # `set' quotes correctly as required by POSIX, so do not add quotes.
25792       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25793       ;;
25794     esac |
25795     sort
25796 ) |
25797   sed '
25798      /^ac_cv_env_/b end
25799      t clear
25800      :clear
25801      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25802      t end
25803      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25804      :end' >>confcache
25805 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25806   if test -w "$cache_file"; then
25807     test "x$cache_file" != "x/dev/null" &&
25808       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
25809 echo "$as_me: updating cache $cache_file" >&6;}
25810     cat confcache >$cache_file
25811   else
25812     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25813 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25814   fi
25815 fi
25816 rm -f confcache
25817
25818 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25819 # Let make expand exec_prefix.
25820 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25821
25822 # Transform confdefs.h into DEFS.
25823 # Protect against shell expansion while executing Makefile rules.
25824 # Protect against Makefile macro expansion.
25825 #
25826 # If the first sed substitution is executed (which looks for macros that
25827 # take arguments), then branch to the quote section.  Otherwise,
25828 # look for a macro that doesn't take arguments.
25829 ac_script='
25830 t clear
25831 :clear
25832 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
25833 t quote
25834 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
25835 t quote
25836 b any
25837 :quote
25838 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
25839 s/\[/\\&/g
25840 s/\]/\\&/g
25841 s/\$/$$/g
25842 H
25843 :any
25844 ${
25845         g
25846         s/^\n//
25847         s/\n/ /g
25848         p
25849 }
25850 '
25851 DEFS=`sed -n "$ac_script" confdefs.h`
25852
25853
25854 ac_libobjs=
25855 ac_ltlibobjs=
25856 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25857   # 1. Remove the extension, and $U if already installed.
25858   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25859   ac_i=`echo "$ac_i" | sed "$ac_script"`
25860   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
25861   #    will be set to the directory where LIBOBJS objects are built.
25862   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25863   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
25864 done
25865 LIBOBJS=$ac_libobjs
25866
25867 LTLIBOBJS=$ac_ltlibobjs
25868
25869
25870 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25871   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
25872 Usually this means the macro was only invoked conditionally." >&5
25873 echo "$as_me: error: conditional \"AMDEP\" was never defined.
25874 Usually this means the macro was only invoked conditionally." >&2;}
25875    { (exit 1); exit 1; }; }
25876 fi
25877 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25878   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
25879 Usually this means the macro was only invoked conditionally." >&5
25880 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
25881 Usually this means the macro was only invoked conditionally." >&2;}
25882    { (exit 1); exit 1; }; }
25883 fi
25884 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
25885   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
25886 Usually this means the macro was only invoked conditionally." >&5
25887 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
25888 Usually this means the macro was only invoked conditionally." >&2;}
25889    { (exit 1); exit 1; }; }
25890 fi
25891 if test -z "${RST2HTML_IS_OK_TRUE}" && test -z "${RST2HTML_IS_OK_FALSE}"; then
25892   { { echo "$as_me:$LINENO: error: conditional \"RST2HTML_IS_OK\" was never defined.
25893 Usually this means the macro was only invoked conditionally." >&5
25894 echo "$as_me: error: conditional \"RST2HTML_IS_OK\" was never defined.
25895 Usually this means the macro was only invoked conditionally." >&2;}
25896    { (exit 1); exit 1; }; }
25897 fi
25898
25899 : ${CONFIG_STATUS=./config.status}
25900 ac_clean_files_save=$ac_clean_files
25901 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25902 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25903 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25904 cat >$CONFIG_STATUS <<_ACEOF
25905 #! $SHELL
25906 # Generated by $as_me.
25907 # Run this file to recreate the current configuration.
25908 # Compiler output produced by configure, useful for debugging
25909 # configure, is in config.log if it exists.
25910
25911 debug=false
25912 ac_cs_recheck=false
25913 ac_cs_silent=false
25914 SHELL=\${CONFIG_SHELL-$SHELL}
25915 _ACEOF
25916
25917 cat >>$CONFIG_STATUS <<\_ACEOF
25918 ## --------------------- ##
25919 ## M4sh Initialization.  ##
25920 ## --------------------- ##
25921
25922 # Be more Bourne compatible
25923 DUALCASE=1; export DUALCASE # for MKS sh
25924 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25925   emulate sh
25926   NULLCMD=:
25927   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25928   # is contrary to our usage.  Disable this feature.
25929   alias -g '${1+"$@"}'='"$@"'
25930   setopt NO_GLOB_SUBST
25931 else
25932   case `(set -o) 2>/dev/null` in
25933   *posix*) set -o posix ;;
25934 esac
25935
25936 fi
25937
25938
25939
25940
25941 # PATH needs CR
25942 # Avoid depending upon Character Ranges.
25943 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25944 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25945 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25946 as_cr_digits='0123456789'
25947 as_cr_alnum=$as_cr_Letters$as_cr_digits
25948
25949 # The user is always right.
25950 if test "${PATH_SEPARATOR+set}" != set; then
25951   echo "#! /bin/bash" >conf$$.sh
25952   echo  "exit 0"   >>conf$$.sh
25953   chmod +x conf$$.sh
25954   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25955     PATH_SEPARATOR=';'
25956   else
25957     PATH_SEPARATOR=:
25958   fi
25959   rm -f conf$$.sh
25960 fi
25961
25962 # Support unset when possible.
25963 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25964   as_unset=unset
25965 else
25966   as_unset=false
25967 fi
25968
25969
25970 # IFS
25971 # We need space, tab and new line, in precisely that order.  Quoting is
25972 # there to prevent editors from complaining about space-tab.
25973 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25974 # splitting by setting IFS to empty value.)
25975 as_nl='
25976 '
25977 IFS=" ""        $as_nl"
25978
25979 # Find who we are.  Look in the path if we contain no directory separator.
25980 case $0 in
25981   *[\\/]* ) as_myself=$0 ;;
25982   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25983 for as_dir in $PATH
25984 do
25985   IFS=$as_save_IFS
25986   test -z "$as_dir" && as_dir=.
25987   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25988 done
25989 IFS=$as_save_IFS
25990
25991      ;;
25992 esac
25993 # We did not find ourselves, most probably we were run as `sh COMMAND'
25994 # in which case we are not to be found in the path.
25995 if test "x$as_myself" = x; then
25996   as_myself=$0
25997 fi
25998 if test ! -f "$as_myself"; then
25999   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26000   { (exit 1); exit 1; }
26001 fi
26002
26003 # Work around bugs in pre-3.0 UWIN ksh.
26004 for as_var in ENV MAIL MAILPATH
26005 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26006 done
26007 PS1='$ '
26008 PS2='> '
26009 PS4='+ '
26010
26011 # NLS nuisances.
26012 for as_var in \
26013   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26014   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26015   LC_TELEPHONE LC_TIME
26016 do
26017   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26018     eval $as_var=C; export $as_var
26019   else
26020     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26021   fi
26022 done
26023
26024 # Required to use basename.
26025 if expr a : '\(a\)' >/dev/null 2>&1 &&
26026    test "X`expr 00001 : '.*\(...\)'`" = X001; then
26027   as_expr=expr
26028 else
26029   as_expr=false
26030 fi
26031
26032 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26033   as_basename=basename
26034 else
26035   as_basename=false
26036 fi
26037
26038
26039 # Name of the executable.
26040 as_me=`$as_basename -- "$0" ||
26041 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26042          X"$0" : 'X\(//\)$' \| \
26043          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26044 echo X/"$0" |
26045     sed '/^.*\/\([^/][^/]*\)\/*$/{
26046             s//\1/
26047             q
26048           }
26049           /^X\/\(\/\/\)$/{
26050             s//\1/
26051             q
26052           }
26053           /^X\/\(\/\).*/{
26054             s//\1/
26055             q
26056           }
26057           s/.*/./; q'`
26058
26059 # CDPATH.
26060 $as_unset CDPATH
26061
26062
26063
26064   as_lineno_1=$LINENO
26065   as_lineno_2=$LINENO
26066   test "x$as_lineno_1" != "x$as_lineno_2" &&
26067   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26068
26069   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26070   # uniformly replaced by the line number.  The first 'sed' inserts a
26071   # line-number line after each line using $LINENO; the second 'sed'
26072   # does the real work.  The second script uses 'N' to pair each
26073   # line-number line with the line containing $LINENO, and appends
26074   # trailing '-' during substitution so that $LINENO is not a special
26075   # case at line end.
26076   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26077   # scripts with optimization help from Paolo Bonzini.  Blame Lee
26078   # E. McMahon (1931-1989) for sed's syntax.  :-)
26079   sed -n '
26080     p
26081     /[$]LINENO/=
26082   ' <$as_myself |
26083     sed '
26084       s/[$]LINENO.*/&-/
26085       t lineno
26086       b
26087       :lineno
26088       N
26089       :loop
26090       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26091       t loop
26092       s/-\n.*//
26093     ' >$as_me.lineno &&
26094   chmod +x "$as_me.lineno" ||
26095     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26096    { (exit 1); exit 1; }; }
26097
26098   # Don't try to exec as it changes $[0], causing all sort of problems
26099   # (the dirname of $[0] is not the place where we might find the
26100   # original and so on.  Autoconf is especially sensitive to this).
26101   . "./$as_me.lineno"
26102   # Exit status is that of the last command.
26103   exit
26104 }
26105
26106
26107 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26108   as_dirname=dirname
26109 else
26110   as_dirname=false
26111 fi
26112
26113 ECHO_C= ECHO_N= ECHO_T=
26114 case `echo -n x` in
26115 -n*)
26116   case `echo 'x\c'` in
26117   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
26118   *)   ECHO_C='\c';;
26119   esac;;
26120 *)
26121   ECHO_N='-n';;
26122 esac
26123
26124 if expr a : '\(a\)' >/dev/null 2>&1 &&
26125    test "X`expr 00001 : '.*\(...\)'`" = X001; then
26126   as_expr=expr
26127 else
26128   as_expr=false
26129 fi
26130
26131 rm -f conf$$ conf$$.exe conf$$.file
26132 if test -d conf$$.dir; then
26133   rm -f conf$$.dir/conf$$.file
26134 else
26135   rm -f conf$$.dir
26136   mkdir conf$$.dir
26137 fi
26138 echo >conf$$.file
26139 if ln -s conf$$.file conf$$ 2>/dev/null; then
26140   as_ln_s='ln -s'
26141   # ... but there are two gotchas:
26142   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26143   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26144   # In both cases, we have to default to `cp -p'.
26145   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26146     as_ln_s='cp -p'
26147 elif ln conf$$.file conf$$ 2>/dev/null; then
26148   as_ln_s=ln
26149 else
26150   as_ln_s='cp -p'
26151 fi
26152 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26153 rmdir conf$$.dir 2>/dev/null
26154
26155 if mkdir -p . 2>/dev/null; then
26156   as_mkdir_p=:
26157 else
26158   test -d ./-p && rmdir ./-p
26159   as_mkdir_p=false
26160 fi
26161
26162 if test -x / >/dev/null 2>&1; then
26163   as_test_x='test -x'
26164 else
26165   if ls -dL / >/dev/null 2>&1; then
26166     as_ls_L_option=L
26167   else
26168     as_ls_L_option=
26169   fi
26170   as_test_x='
26171     eval sh -c '\''
26172       if test -d "$1"; then
26173         test -d "$1/.";
26174       else
26175         case $1 in
26176         -*)set "./$1";;
26177         esac;
26178         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26179         ???[sx]*):;;*)false;;esac;fi
26180     '\'' sh
26181   '
26182 fi
26183 as_executable_p=$as_test_x
26184
26185 # Sed expression to map a string onto a valid CPP name.
26186 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26187
26188 # Sed expression to map a string onto a valid variable name.
26189 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26190
26191
26192 exec 6>&1
26193
26194 # Save the log message, to keep $[0] and so on meaningful, and to
26195 # report actual input values of CONFIG_FILES etc. instead of their
26196 # values after options handling.
26197 ac_log="
26198 This file was extended by Salome2 Project :sat:{PYCMP} module $as_me 6.3.0, which was
26199 generated by GNU Autoconf 2.61.  Invocation command line was
26200
26201   CONFIG_FILES    = $CONFIG_FILES
26202   CONFIG_HEADERS  = $CONFIG_HEADERS
26203   CONFIG_LINKS    = $CONFIG_LINKS
26204   CONFIG_COMMANDS = $CONFIG_COMMANDS
26205   $ $0 $@
26206
26207 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26208 "
26209
26210 _ACEOF
26211
26212 cat >>$CONFIG_STATUS <<_ACEOF
26213 # Files that config.status was made for.
26214 config_files="$ac_config_files"
26215 config_commands="$ac_config_commands"
26216
26217 _ACEOF
26218
26219 cat >>$CONFIG_STATUS <<\_ACEOF
26220 ac_cs_usage="\
26221 \`$as_me' instantiates files from templates according to the
26222 current configuration.
26223
26224 Usage: $0 [OPTIONS] [FILE]...
26225
26226   -h, --help       print this help, then exit
26227   -V, --version    print version number and configuration settings, then exit
26228   -q, --quiet      do not print progress messages
26229   -d, --debug      don't remove temporary files
26230       --recheck    update $as_me by reconfiguring in the same conditions
26231   --file=FILE[:TEMPLATE]
26232                    instantiate the configuration file FILE
26233
26234 Configuration files:
26235 $config_files
26236
26237 Configuration commands:
26238 $config_commands
26239
26240 Report bugs to <bug-autoconf@gnu.org>."
26241
26242 _ACEOF
26243 cat >>$CONFIG_STATUS <<_ACEOF
26244 ac_cs_version="\\
26245 Salome2 Project :sat:{PYCMP} module config.status 6.3.0
26246 configured by $0, generated by GNU Autoconf 2.61,
26247   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26248
26249 Copyright (C) 2006 Free Software Foundation, Inc.
26250 This config.status script is free software; the Free Software Foundation
26251 gives unlimited permission to copy, distribute and modify it."
26252
26253 ac_pwd='$ac_pwd'
26254 srcdir='$srcdir'
26255 INSTALL='$INSTALL'
26256 MKDIR_P='$MKDIR_P'
26257 _ACEOF
26258
26259 cat >>$CONFIG_STATUS <<\_ACEOF
26260 # If no file are specified by the user, then we need to provide default
26261 # value.  By we need to know if files were specified by the user.
26262 ac_need_defaults=:
26263 while test $# != 0
26264 do
26265   case $1 in
26266   --*=*)
26267     ac_option=`expr "X$1" : 'X\([^=]*\)='`
26268     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26269     ac_shift=:
26270     ;;
26271   *)
26272     ac_option=$1
26273     ac_optarg=$2
26274     ac_shift=shift
26275     ;;
26276   esac
26277
26278   case $ac_option in
26279   # Handling of the options.
26280   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26281     ac_cs_recheck=: ;;
26282   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26283     echo "$ac_cs_version"; exit ;;
26284   --debug | --debu | --deb | --de | --d | -d )
26285     debug=: ;;
26286   --file | --fil | --fi | --f )
26287     $ac_shift
26288     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26289     ac_need_defaults=false;;
26290   --he | --h |  --help | --hel | -h )
26291     echo "$ac_cs_usage"; exit ;;
26292   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26293   | -silent | --silent | --silen | --sile | --sil | --si | --s)
26294     ac_cs_silent=: ;;
26295
26296   # This is an error.
26297   -*) { echo "$as_me: error: unrecognized option: $1
26298 Try \`$0 --help' for more information." >&2
26299    { (exit 1); exit 1; }; } ;;
26300
26301   *) ac_config_targets="$ac_config_targets $1"
26302      ac_need_defaults=false ;;
26303
26304   esac
26305   shift
26306 done
26307
26308 ac_configure_extra_args=
26309
26310 if $ac_cs_silent; then
26311   exec 6>/dev/null
26312   ac_configure_extra_args="$ac_configure_extra_args --silent"
26313 fi
26314
26315 _ACEOF
26316 cat >>$CONFIG_STATUS <<_ACEOF
26317 if \$ac_cs_recheck; then
26318   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26319   CONFIG_SHELL=$SHELL
26320   export CONFIG_SHELL
26321   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26322 fi
26323
26324 _ACEOF
26325 cat >>$CONFIG_STATUS <<\_ACEOF
26326 exec 5>>config.log
26327 {
26328   echo
26329   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26330 ## Running $as_me. ##
26331 _ASBOX
26332   echo "$ac_log"
26333 } >&5
26334
26335 _ACEOF
26336 cat >>$CONFIG_STATUS <<_ACEOF
26337 #
26338 # INIT-COMMANDS
26339 #
26340 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26341
26342
26343 _ACEOF
26344
26345 cat >>$CONFIG_STATUS <<\_ACEOF
26346
26347 # Handling of arguments.
26348 for ac_config_target in $ac_config_targets
26349 do
26350   case $ac_config_target in
26351     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26352     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
26353     "hack_libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS hack_libtool" ;;
26354     "adm_local/Makefile") CONFIG_FILES="$CONFIG_FILES adm_local/Makefile" ;;
26355     "adm_local/unix/Makefile") CONFIG_FILES="$CONFIG_FILES adm_local/unix/Makefile" ;;
26356     "adm_local/unix/config_files/Makefile") CONFIG_FILES="$CONFIG_FILES adm_local/unix/config_files/Makefile" ;;
26357     "bin/VERSION") CONFIG_FILES="$CONFIG_FILES bin/VERSION" ;;
26358     "bin/runAppli") CONFIG_FILES="$CONFIG_FILES bin/runAppli" ;;
26359     "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
26360     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
26361     "doc/doxyfile") CONFIG_FILES="$CONFIG_FILES doc/doxyfile" ;;
26362     "doc/static/header.html") CONFIG_FILES="$CONFIG_FILES doc/static/header.html" ;;
26363     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
26364     "src/:sat:{PYCMP}/Makefile") CONFIG_FILES="$CONFIG_FILES src/:sat:{PYCMP}/Makefile" ;;
26365     "src/:sat:{PYCMP}GUI/Makefile") CONFIG_FILES="$CONFIG_FILES src/:sat:{PYCMP}GUI/Makefile" ;;
26366     "resources/Makefile") CONFIG_FILES="$CONFIG_FILES resources/Makefile" ;;
26367     "resources/:sat:{PYCMP}Catalog.xml") CONFIG_FILES="$CONFIG_FILES resources/:sat:{PYCMP}Catalog.xml" ;;
26368     "idl/Makefile") CONFIG_FILES="$CONFIG_FILES idl/Makefile" ;;
26369     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26370
26371   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26372 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26373    { (exit 1); exit 1; }; };;
26374   esac
26375 done
26376
26377
26378 # If the user did not use the arguments to specify the items to instantiate,
26379 # then the envvar interface is used.  Set only those that are not.
26380 # We use the long form for the default assignment because of an extremely
26381 # bizarre bug on SunOS 4.1.3.
26382 if $ac_need_defaults; then
26383   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26384   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26385 fi
26386
26387 # Have a temporary directory for convenience.  Make it in the build tree
26388 # simply because there is no reason against having it here, and in addition,
26389 # creating and moving files from /tmp can sometimes cause problems.
26390 # Hook for its removal unless debugging.
26391 # Note that there is a small window in which the directory will not be cleaned:
26392 # after its creation but before its name has been assigned to `$tmp'.
26393 $debug ||
26394 {
26395   tmp=
26396   trap 'exit_status=$?
26397   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26398 ' 0
26399   trap '{ (exit 1); exit 1; }' 1 2 13 15
26400 }
26401 # Create a (secure) tmp directory for tmp files.
26402
26403 {
26404   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26405   test -n "$tmp" && test -d "$tmp"
26406 }  ||
26407 {
26408   tmp=./conf$$-$RANDOM
26409   (umask 077 && mkdir "$tmp")
26410 } ||
26411 {
26412    echo "$me: cannot create a temporary directory in ." >&2
26413    { (exit 1); exit 1; }
26414 }
26415
26416 #
26417 # Set up the sed scripts for CONFIG_FILES section.
26418 #
26419
26420 # No need to generate the scripts if there are no CONFIG_FILES.
26421 # This happens for instance when ./config.status config.h
26422 if test -n "$CONFIG_FILES"; then
26423
26424 _ACEOF
26425
26426 # Create sed commands to just substitute file output variables.
26427
26428 # Remaining file output variables are in a fragment that also has non-file
26429 # output varibles.
26430
26431
26432
26433 ac_delim='%!_!# '
26434 for ac_last_try in false false false false false :; do
26435   cat >conf$$subs.sed <<_ACEOF
26436 SHELL!$SHELL$ac_delim
26437 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
26438 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
26439 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
26440 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
26441 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
26442 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
26443 exec_prefix!$exec_prefix$ac_delim
26444 prefix!$prefix$ac_delim
26445 program_transform_name!$program_transform_name$ac_delim
26446 bindir!$bindir$ac_delim
26447 sbindir!$sbindir$ac_delim
26448 libexecdir!$libexecdir$ac_delim
26449 datarootdir!$datarootdir$ac_delim
26450 datadir!$datadir$ac_delim
26451 sysconfdir!$sysconfdir$ac_delim
26452 sharedstatedir!$sharedstatedir$ac_delim
26453 localstatedir!$localstatedir$ac_delim
26454 includedir!$includedir$ac_delim
26455 oldincludedir!$oldincludedir$ac_delim
26456 docdir!$docdir$ac_delim
26457 infodir!$infodir$ac_delim
26458 htmldir!$htmldir$ac_delim
26459 dvidir!$dvidir$ac_delim
26460 pdfdir!$pdfdir$ac_delim
26461 psdir!$psdir$ac_delim
26462 libdir!$libdir$ac_delim
26463 localedir!$localedir$ac_delim
26464 mandir!$mandir$ac_delim
26465 DEFS!$DEFS$ac_delim
26466 ECHO_C!$ECHO_C$ac_delim
26467 ECHO_N!$ECHO_N$ac_delim
26468 ECHO_T!$ECHO_T$ac_delim
26469 LIBS!$LIBS$ac_delim
26470 build_alias!$build_alias$ac_delim
26471 host_alias!$host_alias$ac_delim
26472 target_alias!$target_alias$ac_delim
26473 build!$build$ac_delim
26474 build_cpu!$build_cpu$ac_delim
26475 build_vendor!$build_vendor$ac_delim
26476 build_os!$build_os$ac_delim
26477 host!$host$ac_delim
26478 host_cpu!$host_cpu$ac_delim
26479 host_vendor!$host_vendor$ac_delim
26480 host_os!$host_os$ac_delim
26481 target!$target$ac_delim
26482 target_cpu!$target_cpu$ac_delim
26483 target_vendor!$target_vendor$ac_delim
26484 target_os!$target_os$ac_delim
26485 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
26486 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
26487 INSTALL_DATA!$INSTALL_DATA$ac_delim
26488 am__isrc!$am__isrc$ac_delim
26489 CYGPATH_W!$CYGPATH_W$ac_delim
26490 PACKAGE!$PACKAGE$ac_delim
26491 VERSION!$VERSION$ac_delim
26492 ACLOCAL!$ACLOCAL$ac_delim
26493 AUTOCONF!$AUTOCONF$ac_delim
26494 AUTOMAKE!$AUTOMAKE$ac_delim
26495 AUTOHEADER!$AUTOHEADER$ac_delim
26496 MAKEINFO!$MAKEINFO$ac_delim
26497 install_sh!$install_sh$ac_delim
26498 STRIP!$STRIP$ac_delim
26499 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
26500 mkdir_p!$mkdir_p$ac_delim
26501 AWK!$AWK$ac_delim
26502 SET_MAKE!$SET_MAKE$ac_delim
26503 am__leading_dot!$am__leading_dot$ac_delim
26504 AMTAR!$AMTAR$ac_delim
26505 am__tar!$am__tar$ac_delim
26506 am__untar!$am__untar$ac_delim
26507 XVERSION!$XVERSION$ac_delim
26508 MODULE_NAME!$MODULE_NAME$ac_delim
26509 ROOT_SRCDIR!$ROOT_SRCDIR$ac_delim
26510 ROOT_BUILDDIR!$ROOT_BUILDDIR$ac_delim
26511 AR!$AR$ac_delim
26512 INSTALL!$INSTALL$ac_delim
26513 GLOBAL_INSTALL!$GLOBAL_INSTALL$ac_delim
26514 CC!$CC$ac_delim
26515 CFLAGS!$CFLAGS$ac_delim
26516 LDFLAGS!$LDFLAGS$ac_delim
26517 CPPFLAGS!$CPPFLAGS$ac_delim
26518 ac_ct_CC!$ac_ct_CC$ac_delim
26519 EXEEXT!$EXEEXT$ac_delim
26520 OBJEXT!$OBJEXT$ac_delim
26521 DEPDIR!$DEPDIR$ac_delim
26522 am__include!$am__include$ac_delim
26523 am__quote!$am__quote$ac_delim
26524 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
26525 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
26526 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
26527 CCDEPMODE!$CCDEPMODE$ac_delim
26528 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
26529 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
26530 _ACEOF
26531
26532   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
26533     break
26534   elif $ac_last_try; then
26535     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26536 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26537    { (exit 1); exit 1; }; }
26538   else
26539     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26540   fi
26541 done
26542
26543 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26544 if test -n "$ac_eof"; then
26545   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26546   ac_eof=`expr $ac_eof + 1`
26547 fi
26548
26549 cat >>$CONFIG_STATUS <<_ACEOF
26550 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
26551 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26552 /^[      ]*@CORBA@[      ]*$/{
26553 r $CORBA
26554 d
26555 }
26556 _ACEOF
26557 sed '
26558 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26559 s/^/s,@/; s/!/@,|#_!!_#|/
26560 :n
26561 t n
26562 s/'"$ac_delim"'$/,g/; t
26563 s/$/\\/; p
26564 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26565 ' >>$CONFIG_STATUS <conf$$subs.sed
26566 rm -f conf$$subs.sed
26567 cat >>$CONFIG_STATUS <<_ACEOF
26568 CEOF$ac_eof
26569 _ACEOF
26570
26571
26572 ac_delim='%!_!# '
26573 for ac_last_try in false false false false false :; do
26574   cat >conf$$subs.sed <<_ACEOF
26575 GREP!$GREP$ac_delim
26576 EGREP!$EGREP$ac_delim
26577 LN_S!$LN_S$ac_delim
26578 ECHO!$ECHO$ac_delim
26579 RANLIB!$RANLIB$ac_delim
26580 CPP!$CPP$ac_delim
26581 CXX!$CXX$ac_delim
26582 CXXFLAGS!$CXXFLAGS$ac_delim
26583 ac_ct_CXX!$ac_ct_CXX$ac_delim
26584 CXXDEPMODE!$CXXDEPMODE$ac_delim
26585 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
26586 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
26587 CXXCPP!$CXXCPP$ac_delim
26588 F77!$F77$ac_delim
26589 FFLAGS!$FFLAGS$ac_delim
26590 ac_ct_F77!$ac_ct_F77$ac_delim
26591 LIBTOOL!$LIBTOOL$ac_delim
26592 PYTHON!$PYTHON$ac_delim
26593 LIB_LOCATION_SUFFIX!$LIB_LOCATION_SUFFIX$ac_delim
26594 LDEXPDYNFLAGS!$LDEXPDYNFLAGS$ac_delim
26595 STDLIB!$STDLIB$ac_delim
26596 PYTHON_PREFIX!$PYTHON_PREFIX$ac_delim
26597 PYTHONHOME!$PYTHONHOME$ac_delim
26598 PYTHON_VERSION!$PYTHON_VERSION$ac_delim
26599 PYTHON_INCLUDES!$PYTHON_INCLUDES$ac_delim
26600 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
26601 PYTHON_PLATFORM!$PYTHON_PLATFORM$ac_delim
26602 PYTHON_SITE!$PYTHON_SITE$ac_delim
26603 PYTHON_SITE_PACKAGE!$PYTHON_SITE_PACKAGE$ac_delim
26604 PYTHON_SITE_EXEC!$PYTHON_SITE_EXEC$ac_delim
26605 PYTHON_SITE_INSTALL!$PYTHON_SITE_INSTALL$ac_delim
26606 pythondir!$pythondir$ac_delim
26607 PYTHON_EXEC_PREFIX!$PYTHON_EXEC_PREFIX$ac_delim
26608 pkgpythondir!$pkgpythondir$ac_delim
26609 pyexecdir!$pyexecdir$ac_delim
26610 pkgpyexecdir!$pkgpyexecdir$ac_delim
26611 OMNIORB_IDL!$OMNIORB_IDL$ac_delim
26612 OMNIORB_ROOT!$OMNIORB_ROOT$ac_delim
26613 OMNIORB_INCLUDES!$OMNIORB_INCLUDES$ac_delim
26614 acx_pthread_config!$acx_pthread_config$ac_delim
26615 PTHREAD_CC!$PTHREAD_CC$ac_delim
26616 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
26617 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
26618 OMNIORB_CXXFLAGS!$OMNIORB_CXXFLAGS$ac_delim
26619 OMNIORB_LIBS!$OMNIORB_LIBS$ac_delim
26620 OMNIORB_IDLCXXFLAGS!$OMNIORB_IDLCXXFLAGS$ac_delim
26621 OMNIORB_PACOIDLCXXFLAGS!$OMNIORB_PACOIDLCXXFLAGS$ac_delim
26622 OMNIORB_IDLPYFLAGS!$OMNIORB_IDLPYFLAGS$ac_delim
26623 OMNIORB_IDL_CLN_H!$OMNIORB_IDL_CLN_H$ac_delim
26624 OMNIORB_IDL_CLN_CXX!$OMNIORB_IDL_CLN_CXX$ac_delim
26625 OMNIORB_IDL_CLN_OBJ!$OMNIORB_IDL_CLN_OBJ$ac_delim
26626 OMNIORB_IDL_SRV_H!$OMNIORB_IDL_SRV_H$ac_delim
26627 OMNIORB_IDL_SRV_CXX!$OMNIORB_IDL_SRV_CXX$ac_delim
26628 OMNIORB_IDL_SRV_OBJ!$OMNIORB_IDL_SRV_OBJ$ac_delim
26629 OMNIORB_IDL_TIE_H!$OMNIORB_IDL_TIE_H$ac_delim
26630 OMNIORB_IDL_TIE_CXX!$OMNIORB_IDL_TIE_CXX$ac_delim
26631 IDL!$IDL$ac_delim
26632 CORBA_ROOT!$CORBA_ROOT$ac_delim
26633 CORBA_INCLUDES!$CORBA_INCLUDES$ac_delim
26634 CORBA_CXXFLAGS!$CORBA_CXXFLAGS$ac_delim
26635 CORBA_LIBS!$CORBA_LIBS$ac_delim
26636 IDLCXXFLAGS!$IDLCXXFLAGS$ac_delim
26637 PACOIDLCXXFLAGS!$PACOIDLCXXFLAGS$ac_delim
26638 IDLPYFLAGS!$IDLPYFLAGS$ac_delim
26639 IDL_CLN_H!$IDL_CLN_H$ac_delim
26640 IDL_CLN_CXX!$IDL_CLN_CXX$ac_delim
26641 IDL_CLN_OBJ!$IDL_CLN_OBJ$ac_delim
26642 IDL_SRV_H!$IDL_SRV_H$ac_delim
26643 IDL_SRV_CXX!$IDL_SRV_CXX$ac_delim
26644 IDL_SRV_OBJ!$IDL_SRV_OBJ$ac_delim
26645 OGL_INCLUDES!$OGL_INCLUDES$ac_delim
26646 OGL_LIBS!$OGL_LIBS$ac_delim
26647 MOC!$MOC$ac_delim
26648 UIC!$UIC$ac_delim
26649 QRCC!$QRCC$ac_delim
26650 LRELEASE!$LRELEASE$ac_delim
26651 QTDIR!$QTDIR$ac_delim
26652 QT_ROOT!$QT_ROOT$ac_delim
26653 QT_INCLUDES!$QT_INCLUDES$ac_delim
26654 QT_MT_INCLUDES!$QT_MT_INCLUDES$ac_delim
26655 QT_ASSISTANT_INCLUDES!$QT_ASSISTANT_INCLUDES$ac_delim
26656 QT_LIB_DIR!$QT_LIB_DIR$ac_delim
26657 QT_CORE_LIBS!$QT_CORE_LIBS$ac_delim
26658 QT_GUI_LIBS!$QT_GUI_LIBS$ac_delim
26659 QT_OTHER_LIBS!$QT_OTHER_LIBS$ac_delim
26660 QT_LIBS!$QT_LIBS$ac_delim
26661 QT_MT_LIBS!$QT_MT_LIBS$ac_delim
26662 QT_ASSISTANT_LIBS!$QT_ASSISTANT_LIBS$ac_delim
26663 QT_VERSION!$QT_VERSION$ac_delim
26664 QT_VERSION_ID!$QT_VERSION_ID$ac_delim
26665 DOXYGEN!$DOXYGEN$ac_delim
26666 DOXYGEN_WITH_PYTHON!$DOXYGEN_WITH_PYTHON$ac_delim
26667 DOXYGEN_PYTHON_EXTENSION!$DOXYGEN_PYTHON_EXTENSION$ac_delim
26668 DOXYGEN_WITH_STL!$DOXYGEN_WITH_STL$ac_delim
26669 DOXYGEN_SUPPORT_STL!$DOXYGEN_SUPPORT_STL$ac_delim
26670 DOT!$DOT$ac_delim
26671 LATEX!$LATEX$ac_delim
26672 _ACEOF
26673
26674   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
26675     break
26676   elif $ac_last_try; then
26677     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26678 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26679    { (exit 1); exit 1; }; }
26680   else
26681     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26682   fi
26683 done
26684
26685 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26686 if test -n "$ac_eof"; then
26687   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26688   ac_eof=`expr $ac_eof + 1`
26689 fi
26690
26691 cat >>$CONFIG_STATUS <<_ACEOF
26692 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
26693 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26694 _ACEOF
26695 sed '
26696 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26697 s/^/s,@/; s/!/@,|#_!!_#|/
26698 :n
26699 t n
26700 s/'"$ac_delim"'$/,g/; t
26701 s/$/\\/; p
26702 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26703 ' >>$CONFIG_STATUS <conf$$subs.sed
26704 rm -f conf$$subs.sed
26705 cat >>$CONFIG_STATUS <<_ACEOF
26706 CEOF$ac_eof
26707 _ACEOF
26708
26709
26710 ac_delim='%!_!# '
26711 for ac_last_try in false false false false false :; do
26712   cat >conf$$subs.sed <<_ACEOF
26713 DVIPS!$DVIPS$ac_delim
26714 PDFLATEX!$PDFLATEX$ac_delim
26715 RST2HTML!$RST2HTML$ac_delim
26716 RST2HTML_IS_OK_TRUE!$RST2HTML_IS_OK_TRUE$ac_delim
26717 RST2HTML_IS_OK_FALSE!$RST2HTML_IS_OK_FALSE$ac_delim
26718 TEMP!$TEMP$ac_delim
26719 KERNEL_ROOT_DIR!$KERNEL_ROOT_DIR$ac_delim
26720 KERNEL_SITE_DIR!$KERNEL_SITE_DIR$ac_delim
26721 KERNEL_LDFLAGS!$KERNEL_LDFLAGS$ac_delim
26722 KERNEL_CXXFLAGS!$KERNEL_CXXFLAGS$ac_delim
26723 GUI_LDFLAGS!$GUI_LDFLAGS$ac_delim
26724 GUI_CXXFLAGS!$GUI_CXXFLAGS$ac_delim
26725 GUI_ROOT_DIR!$GUI_ROOT_DIR$ac_delim
26726 CORBA_IN_GUI!$CORBA_IN_GUI$ac_delim
26727 SETX!$SETX$ac_delim
26728 LIBOBJS!$LIBOBJS$ac_delim
26729 LTLIBOBJS!$LTLIBOBJS$ac_delim
26730 _ACEOF
26731
26732   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 17; then
26733     break
26734   elif $ac_last_try; then
26735     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26736 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26737    { (exit 1); exit 1; }; }
26738   else
26739     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26740   fi
26741 done
26742
26743 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26744 if test -n "$ac_eof"; then
26745   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26746   ac_eof=`expr $ac_eof + 1`
26747 fi
26748
26749 cat >>$CONFIG_STATUS <<_ACEOF
26750 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
26751 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
26752 _ACEOF
26753 sed '
26754 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26755 s/^/s,@/; s/!/@,|#_!!_#|/
26756 :n
26757 t n
26758 s/'"$ac_delim"'$/,g/; t
26759 s/$/\\/; p
26760 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26761 ' >>$CONFIG_STATUS <conf$$subs.sed
26762 rm -f conf$$subs.sed
26763 cat >>$CONFIG_STATUS <<_ACEOF
26764 :end
26765 s/|#_!!_#|//g
26766 CEOF$ac_eof
26767 _ACEOF
26768
26769
26770 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26771 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26772 # trailing colons and then remove the whole line if VPATH becomes empty
26773 # (actually we leave an empty line to preserve line numbers).
26774 if test "x$srcdir" = x.; then
26775   ac_vpsub='/^[  ]*VPATH[        ]*=/{
26776 s/:*\$(srcdir):*/:/
26777 s/:*\${srcdir}:*/:/
26778 s/:*@srcdir@:*/:/
26779 s/^\([^=]*=[     ]*\):*/\1/
26780 s/:*$//
26781 s/^[^=]*=[       ]*$//
26782 }'
26783 fi
26784
26785 cat >>$CONFIG_STATUS <<\_ACEOF
26786 fi # test -n "$CONFIG_FILES"
26787
26788
26789 for ac_tag in  :F $CONFIG_FILES      :C $CONFIG_COMMANDS
26790 do
26791   case $ac_tag in
26792   :[FHLC]) ac_mode=$ac_tag; continue;;
26793   esac
26794   case $ac_mode$ac_tag in
26795   :[FHL]*:*);;
26796   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26797 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26798    { (exit 1); exit 1; }; };;
26799   :[FH]-) ac_tag=-:-;;
26800   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26801   esac
26802   ac_save_IFS=$IFS
26803   IFS=:
26804   set x $ac_tag
26805   IFS=$ac_save_IFS
26806   shift
26807   ac_file=$1
26808   shift
26809
26810   case $ac_mode in
26811   :L) ac_source=$1;;
26812   :[FH])
26813     ac_file_inputs=
26814     for ac_f
26815     do
26816       case $ac_f in
26817       -) ac_f="$tmp/stdin";;
26818       *) # Look for the file first in the build tree, then in the source tree
26819          # (if the path is not absolute).  The absolute path cannot be DOS-style,
26820          # because $ac_f cannot contain `:'.
26821          test -f "$ac_f" ||
26822            case $ac_f in
26823            [\\/$]*) false;;
26824            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26825            esac ||
26826            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26827 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26828    { (exit 1); exit 1; }; };;
26829       esac
26830       ac_file_inputs="$ac_file_inputs $ac_f"
26831     done
26832
26833     # Let's still pretend it is `configure' which instantiates (i.e., don't
26834     # use $as_me), people would be surprised to read:
26835     #    /* config.h.  Generated by config.status.  */
26836     configure_input="Generated from "`IFS=:
26837           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
26838     if test x"$ac_file" != x-; then
26839       configure_input="$ac_file.  $configure_input"
26840       { echo "$as_me:$LINENO: creating $ac_file" >&5
26841 echo "$as_me: creating $ac_file" >&6;}
26842     fi
26843
26844     case $ac_tag in
26845     *:-:* | *:-) cat >"$tmp/stdin";;
26846     esac
26847     ;;
26848   esac
26849
26850   ac_dir=`$as_dirname -- "$ac_file" ||
26851 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26852          X"$ac_file" : 'X\(//\)[^/]' \| \
26853          X"$ac_file" : 'X\(//\)$' \| \
26854          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26855 echo X"$ac_file" |
26856     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26857             s//\1/
26858             q
26859           }
26860           /^X\(\/\/\)[^/].*/{
26861             s//\1/
26862             q
26863           }
26864           /^X\(\/\/\)$/{
26865             s//\1/
26866             q
26867           }
26868           /^X\(\/\).*/{
26869             s//\1/
26870             q
26871           }
26872           s/.*/./; q'`
26873   { as_dir="$ac_dir"
26874   case $as_dir in #(
26875   -*) as_dir=./$as_dir;;
26876   esac
26877   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26878     as_dirs=
26879     while :; do
26880       case $as_dir in #(
26881       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26882       *) as_qdir=$as_dir;;
26883       esac
26884       as_dirs="'$as_qdir' $as_dirs"
26885       as_dir=`$as_dirname -- "$as_dir" ||
26886 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26887          X"$as_dir" : 'X\(//\)[^/]' \| \
26888          X"$as_dir" : 'X\(//\)$' \| \
26889          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26890 echo X"$as_dir" |
26891     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26892             s//\1/
26893             q
26894           }
26895           /^X\(\/\/\)[^/].*/{
26896             s//\1/
26897             q
26898           }
26899           /^X\(\/\/\)$/{
26900             s//\1/
26901             q
26902           }
26903           /^X\(\/\).*/{
26904             s//\1/
26905             q
26906           }
26907           s/.*/./; q'`
26908       test -d "$as_dir" && break
26909     done
26910     test -z "$as_dirs" || eval "mkdir $as_dirs"
26911   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26912 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26913    { (exit 1); exit 1; }; }; }
26914   ac_builddir=.
26915
26916 case "$ac_dir" in
26917 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26918 *)
26919   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26920   # A ".." for each directory in $ac_dir_suffix.
26921   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
26922   case $ac_top_builddir_sub in
26923   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26924   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26925   esac ;;
26926 esac
26927 ac_abs_top_builddir=$ac_pwd
26928 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26929 # for backward compatibility:
26930 ac_top_builddir=$ac_top_build_prefix
26931
26932 case $srcdir in
26933   .)  # We are building in place.
26934     ac_srcdir=.
26935     ac_top_srcdir=$ac_top_builddir_sub
26936     ac_abs_top_srcdir=$ac_pwd ;;
26937   [\\/]* | ?:[\\/]* )  # Absolute name.
26938     ac_srcdir=$srcdir$ac_dir_suffix;
26939     ac_top_srcdir=$srcdir
26940     ac_abs_top_srcdir=$srcdir ;;
26941   *) # Relative name.
26942     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26943     ac_top_srcdir=$ac_top_build_prefix$srcdir
26944     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26945 esac
26946 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26947
26948
26949   case $ac_mode in
26950   :F)
26951   #
26952   # CONFIG_FILE
26953   #
26954
26955   case $INSTALL in
26956   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26957   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26958   esac
26959   ac_MKDIR_P=$MKDIR_P
26960   case $MKDIR_P in
26961   [\\/$]* | ?:[\\/]* ) ;;
26962   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
26963   esac
26964 _ACEOF
26965
26966 cat >>$CONFIG_STATUS <<\_ACEOF
26967 # If the template does not know about datarootdir, expand it.
26968 # FIXME: This hack should be removed a few years after 2.60.
26969 ac_datarootdir_hack=; ac_datarootdir_seen=
26970
26971 case `sed -n '/datarootdir/ {
26972   p
26973   q
26974 }
26975 /@datadir@/p
26976 /@docdir@/p
26977 /@infodir@/p
26978 /@localedir@/p
26979 /@mandir@/p
26980 ' $ac_file_inputs` in
26981 *datarootdir*) ac_datarootdir_seen=yes;;
26982 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26983   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26984 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26985 _ACEOF
26986 cat >>$CONFIG_STATUS <<_ACEOF
26987   ac_datarootdir_hack='
26988   s&@datadir@&$datadir&g
26989   s&@docdir@&$docdir&g
26990   s&@infodir@&$infodir&g
26991   s&@localedir@&$localedir&g
26992   s&@mandir@&$mandir&g
26993     s&\\\${datarootdir}&$datarootdir&g' ;;
26994 esac
26995 _ACEOF
26996
26997 # Neutralize VPATH when `$srcdir' = `.'.
26998 # Shell code in configure.ac might set extrasub.
26999 # FIXME: do we really want to maintain this feature?
27000 cat >>$CONFIG_STATUS <<_ACEOF
27001   sed "$ac_vpsub
27002 $extrasub
27003 _ACEOF
27004 cat >>$CONFIG_STATUS <<\_ACEOF
27005 :t
27006 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27007 s&@configure_input@&$configure_input&;t t
27008 s&@top_builddir@&$ac_top_builddir_sub&;t t
27009 s&@srcdir@&$ac_srcdir&;t t
27010 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27011 s&@top_srcdir@&$ac_top_srcdir&;t t
27012 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27013 s&@builddir@&$ac_builddir&;t t
27014 s&@abs_builddir@&$ac_abs_builddir&;t t
27015 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27016 s&@INSTALL@&$ac_INSTALL&;t t
27017 s&@MKDIR_P@&$ac_MKDIR_P&;t t
27018 $ac_datarootdir_hack
27019 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
27020
27021 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27022   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27023   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27024   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27025 which seems to be undefined.  Please make sure it is defined." >&5
27026 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27027 which seems to be undefined.  Please make sure it is defined." >&2;}
27028
27029   rm -f "$tmp/stdin"
27030   case $ac_file in
27031   -) cat "$tmp/out"; rm -f "$tmp/out";;
27032   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
27033   esac
27034  ;;
27035
27036
27037   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
27038 echo "$as_me: executing $ac_file commands" >&6;}
27039  ;;
27040   esac
27041
27042
27043   case $ac_file$ac_mode in
27044     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
27045   # Strip MF so we end up with the name of the file.
27046   mf=`echo "$mf" | sed -e 's/:.*$//'`
27047   # Check whether this is an Automake generated Makefile or not.
27048   # We used to match only the files named `Makefile.in', but
27049   # some people rename them; so instead we look at the file content.
27050   # Grep'ing the first line is not enough: some people post-process
27051   # each Makefile.in and add a new line on top of each file to say so.
27052   # Grep'ing the whole file is not good either: AIX grep has a line
27053   # limit of 2048, but all sed's we know have understand at least 4000.
27054   if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
27055     dirpart=`$as_dirname -- "$mf" ||
27056 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27057          X"$mf" : 'X\(//\)[^/]' \| \
27058          X"$mf" : 'X\(//\)$' \| \
27059          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
27060 echo X"$mf" |
27061     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27062             s//\1/
27063             q
27064           }
27065           /^X\(\/\/\)[^/].*/{
27066             s//\1/
27067             q
27068           }
27069           /^X\(\/\/\)$/{
27070             s//\1/
27071             q
27072           }
27073           /^X\(\/\).*/{
27074             s//\1/
27075             q
27076           }
27077           s/.*/./; q'`
27078   else
27079     continue
27080   fi
27081   # Extract the definition of DEPDIR, am__include, and am__quote
27082   # from the Makefile without running `make'.
27083   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
27084   test -z "$DEPDIR" && continue
27085   am__include=`sed -n 's/^am__include = //p' < "$mf"`
27086   test -z "am__include" && continue
27087   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
27088   # When using ansi2knr, U may be empty or an underscore; expand it
27089   U=`sed -n 's/^U = //p' < "$mf"`
27090   # Find all dependency output files, they are included files with
27091   # $(DEPDIR) in their names.  We invoke sed twice because it is the
27092   # simplest approach to changing $(DEPDIR) to its actual value in the
27093   # expansion.
27094   for file in `sed -n "
27095     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27096        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
27097     # Make sure the directory exists.
27098     test -f "$dirpart/$file" && continue
27099     fdir=`$as_dirname -- "$file" ||
27100 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27101          X"$file" : 'X\(//\)[^/]' \| \
27102          X"$file" : 'X\(//\)$' \| \
27103          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
27104 echo X"$file" |
27105     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27106             s//\1/
27107             q
27108           }
27109           /^X\(\/\/\)[^/].*/{
27110             s//\1/
27111             q
27112           }
27113           /^X\(\/\/\)$/{
27114             s//\1/
27115             q
27116           }
27117           /^X\(\/\).*/{
27118             s//\1/
27119             q
27120           }
27121           s/.*/./; q'`
27122     { as_dir=$dirpart/$fdir
27123   case $as_dir in #(
27124   -*) as_dir=./$as_dir;;
27125   esac
27126   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27127     as_dirs=
27128     while :; do
27129       case $as_dir in #(
27130       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27131       *) as_qdir=$as_dir;;
27132       esac
27133       as_dirs="'$as_qdir' $as_dirs"
27134       as_dir=`$as_dirname -- "$as_dir" ||
27135 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27136          X"$as_dir" : 'X\(//\)[^/]' \| \
27137          X"$as_dir" : 'X\(//\)$' \| \
27138          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27139 echo X"$as_dir" |
27140     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27141             s//\1/
27142             q
27143           }
27144           /^X\(\/\/\)[^/].*/{
27145             s//\1/
27146             q
27147           }
27148           /^X\(\/\/\)$/{
27149             s//\1/
27150             q
27151           }
27152           /^X\(\/\).*/{
27153             s//\1/
27154             q
27155           }
27156           s/.*/./; q'`
27157       test -d "$as_dir" && break
27158     done
27159     test -z "$as_dirs" || eval "mkdir $as_dirs"
27160   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27161 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27162    { (exit 1); exit 1; }; }; }
27163     # echo "creating $dirpart/$file"
27164     echo '# dummy' > "$dirpart/$file"
27165   done
27166 done
27167  ;;
27168     "default-1":C)  \
27169       chmod +x ./bin/*; \
27170  ;;
27171     "hack_libtool":C)
27172 sed -i "s%^CC=\"\(.*\)\"%hack_libtool (){ \n\
27173   $(pwd)/hack_libtool \1 \"\$@\" \n\
27174 }\n\
27175 CC=\"hack_libtool\"%g" libtool
27176 sed -i "s%\(\s*\)for searchdir in \$newlib_search_path \$lib_search_path \$sys_lib_search_path \$shlib_search_path; do%\1searchdirs=\"\$newlib_search_path \$lib_search_path \$sys_lib_search_path \$shlib_search_path\"\n\1for searchdir in \$searchdirs; do%g" libtool
27177 sed -i "s%\(\s*\)searchdirs=\"\$newlib_search_path \$lib_search_path \(.*\)\"%\1searchdirs=\"\$newlib_search_path \$lib_search_path\"\n\1sss_beg=\"\"\n\1sss_end=\"\2\"%g" libtool
27178 sed -i "s%\(\s*\)\(for searchdir in \$searchdirs; do\)%\1for sss in \$searchdirs; do\n\1  if ! test -d \$sss; then continue; fi\n\1  ssss=\$(cd \$sss; pwd)\n\1  if test \"\$ssss\" != \"\" \&\& test -d \$ssss; then\n\1    case \$ssss in\n\1      /usr/lib | /usr/lib64 ) ;;\n\1      * ) sss_beg=\"\$sss_beg \$ssss\" ;;\n\1    esac\n\1  fi\n\1done\n\1searchdirs=\"\$sss_beg \$sss_end\"\n\1\2%g" libtool
27179  ;;
27180
27181   esac
27182 done # for ac_tag
27183
27184
27185 { (exit 0); exit 0; }
27186 _ACEOF
27187 chmod +x $CONFIG_STATUS
27188 ac_clean_files=$ac_clean_files_save
27189
27190
27191 # configure is writing to config.log, and then calls config.status.
27192 # config.status does its own redirection, appending to config.log.
27193 # Unfortunately, on DOS this fails, as config.log is still kept open
27194 # by configure, so config.status won't be able to write to it; its
27195 # output is simply discarded.  So we exec the FD to /dev/null,
27196 # effectively closing config.log, so it can be properly (re)opened and
27197 # appended to by config.status.  When coming back to configure, we
27198 # need to make the FD available again.
27199 if test "$no_create" != yes; then
27200   ac_cs_success=:
27201   ac_config_status_args=
27202   test "$silent" = yes &&
27203     ac_config_status_args="$ac_config_status_args --quiet"
27204   exec 5>/dev/null
27205   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27206   exec 5>>config.log
27207   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27208   # would make configure fail if this is the last instruction.
27209   $ac_cs_success || { (exit 1); exit 1; }
27210 fi
27211