Regenerate configure.
[oota-llvm.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 2.6svn.
4 #
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
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 # Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization.  ##
15 ## --------------------- ##
16
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19   emulate sh
20   NULLCMD=:
21   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22   # is contrary to our usage.  Disable this feature.
23   alias -g '${1+"$@"}'='"$@"'
24   setopt NO_GLOB_SUBST
25 else
26   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
27 fi
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242   emulate sh
243   NULLCMD=:
244   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245   # is contrary to our usage.  Disable this feature.
246   alias -g '${1+"$@"}'='"$@"'
247   setopt NO_GLOB_SUBST
248 else
249   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250 fi
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
253
254 :
255 _ASEOF
256 }; then
257   CONFIG_SHELL=$as_shell
258                as_have_required=yes
259                if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270 fi
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
273
274 :
275 (as_func_return () {
276   (exit $1)
277 }
278 as_func_success () {
279   as_func_return 0
280 }
281 as_func_failure () {
282   as_func_return 1
283 }
284 as_func_ret_success () {
285   return 0
286 }
287 as_func_ret_failure () {
288   return 1
289 }
290
291 exitcode=0
292 if as_func_success; then
293   :
294 else
295   exitcode=1
296   echo as_func_success failed.
297 fi
298
299 if as_func_failure; then
300   exitcode=1
301   echo as_func_failure succeeded.
302 fi
303
304 if as_func_ret_success; then
305   :
306 else
307   exitcode=1
308   echo as_func_ret_success failed.
309 fi
310
311 if as_func_ret_failure; then
312   exitcode=1
313   echo as_func_ret_failure succeeded.
314 fi
315
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
317   :
318 else
319   exitcode=1
320   echo positional parameters were not saved.
321 fi
322
323 test $exitcode = 0) || { (exit 1); exit 1; }
324
325 (
326   as_lineno_1=$LINENO
327   as_lineno_2=$LINENO
328   test "x$as_lineno_1" != "x$as_lineno_2" &&
329   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331 _ASEOF
332 }; then
333   break
334 fi
335
336 fi
337
338       done
339
340       if test "x$CONFIG_SHELL" != x; then
341   for as_var in BASH_ENV ENV
342         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343         done
344         export CONFIG_SHELL
345         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346 fi
347
348
349     if test $as_have_required = no; then
350   echo This script requires a shell more modern than all the
351       echo shells that I found on your system.  Please install a
352       echo modern shell, or manually run the script under such a
353       echo shell if you do have one.
354       { (exit 1); exit 1; }
355 fi
356
357
358 fi
359
360 fi
361
362
363
364 (eval "as_func_return () {
365   (exit \$1)
366 }
367 as_func_success () {
368   as_func_return 0
369 }
370 as_func_failure () {
371   as_func_return 1
372 }
373 as_func_ret_success () {
374   return 0
375 }
376 as_func_ret_failure () {
377   return 1
378 }
379
380 exitcode=0
381 if as_func_success; then
382   :
383 else
384   exitcode=1
385   echo as_func_success failed.
386 fi
387
388 if as_func_failure; then
389   exitcode=1
390   echo as_func_failure succeeded.
391 fi
392
393 if as_func_ret_success; then
394   :
395 else
396   exitcode=1
397   echo as_func_ret_success failed.
398 fi
399
400 if as_func_ret_failure; then
401   exitcode=1
402   echo as_func_ret_failure succeeded.
403 fi
404
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406   :
407 else
408   exitcode=1
409   echo positional parameters were not saved.
410 fi
411
412 test \$exitcode = 0") || {
413   echo No shell found that supports shell functions.
414   echo Please tell autoconf@gnu.org about your system,
415   echo including any error possibly output before this
416   echo message
417 }
418
419
420
421   as_lineno_1=$LINENO
422   as_lineno_2=$LINENO
423   test "x$as_lineno_1" != "x$as_lineno_2" &&
424   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
425
426   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427   # uniformly replaced by the line number.  The first 'sed' inserts a
428   # line-number line after each line using $LINENO; the second 'sed'
429   # does the real work.  The second script uses 'N' to pair each
430   # line-number line with the line containing $LINENO, and appends
431   # trailing '-' during substitution so that $LINENO is not a special
432   # case at line end.
433   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434   # scripts with optimization help from Paolo Bonzini.  Blame Lee
435   # E. McMahon (1931-1989) for sed's syntax.  :-)
436   sed -n '
437     p
438     /[$]LINENO/=
439   ' <$as_myself |
440     sed '
441       s/[$]LINENO.*/&-/
442       t lineno
443       b
444       :lineno
445       N
446       :loop
447       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
448       t loop
449       s/-\n.*//
450     ' >$as_me.lineno &&
451   chmod +x "$as_me.lineno" ||
452     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453    { (exit 1); exit 1; }; }
454
455   # Don't try to exec as it changes $[0], causing all sort of problems
456   # (the dirname of $[0] is not the place where we might find the
457   # original and so on.  Autoconf is especially sensitive to this).
458   . "./$as_me.lineno"
459   # Exit status is that of the last command.
460   exit
461 }
462
463
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465   as_dirname=dirname
466 else
467   as_dirname=false
468 fi
469
470 ECHO_C= ECHO_N= ECHO_T=
471 case `echo -n x` in
472 -n*)
473   case `echo 'x\c'` in
474   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
475   *)   ECHO_C='\c';;
476   esac;;
477 *)
478   ECHO_N='-n';;
479 esac
480
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482    test "X`expr 00001 : '.*\(...\)'`" = X001; then
483   as_expr=expr
484 else
485   as_expr=false
486 fi
487
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490   rm -f conf$$.dir/conf$$.file
491 else
492   rm -f conf$$.dir
493   mkdir conf$$.dir
494 fi
495 echo >conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
497   as_ln_s='ln -s'
498   # ... but there are two gotchas:
499   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501   # In both cases, we have to default to `cp -p'.
502   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
503     as_ln_s='cp -p'
504 elif ln conf$$.file conf$$ 2>/dev/null; then
505   as_ln_s=ln
506 else
507   as_ln_s='cp -p'
508 fi
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
511
512 if mkdir -p . 2>/dev/null; then
513   as_mkdir_p=:
514 else
515   test -d ./-p && rmdir ./-p
516   as_mkdir_p=false
517 fi
518
519 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
522 #! /bin/sh
523 exit 0
524 _ASEOF
525 chmod +x conf$$.file
526 if test -x conf$$.file >/dev/null 2>&1; then
527   as_executable_p="test -x"
528 else
529   as_executable_p=:
530 fi
531 rm -f conf$$.file
532
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539
540
541
542 # Check that we are running under the correct shell.
543 SHELL=${CONFIG_SHELL-/bin/sh}
544
545 case X$ECHO in
546 X*--fallback-echo)
547   # Remove one level of quotation (which was required for Make).
548   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
549   ;;
550 esac
551
552 echo=${ECHO-echo}
553 if test "X$1" = X--no-reexec; then
554   # Discard the --no-reexec flag, and continue.
555   shift
556 elif test "X$1" = X--fallback-echo; then
557   # Avoid inline document here, it may be left over
558   :
559 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
560   # Yippee, $echo works!
561   :
562 else
563   # Restart under the correct shell.
564   exec $SHELL "$0" --no-reexec ${1+"$@"}
565 fi
566
567 if test "X$1" = X--fallback-echo; then
568   # used as fallback echo
569   shift
570   cat <<EOF
571 $*
572 EOF
573   exit 0
574 fi
575
576 # The HP-UX ksh and POSIX shell print the target directory to stdout
577 # if CDPATH is set.
578 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
579
580 if test -z "$ECHO"; then
581 if test "X${echo_test_string+set}" != Xset; then
582 # find a string as large as possible, as long as the shell can cope with it
583   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
584     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
585     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
586        echo_test_string=`eval $cmd` &&
587        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
588     then
589       break
590     fi
591   done
592 fi
593
594 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
595    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
596    test "X$echo_testing_string" = "X$echo_test_string"; then
597   :
598 else
599   # The Solaris, AIX, and Digital Unix default echo programs unquote
600   # backslashes.  This makes it impossible to quote backslashes using
601   #   echo "$something" | sed 's/\\/\\\\/g'
602   #
603   # So, first we look for a working echo in the user's PATH.
604
605   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
606   for dir in $PATH /usr/ucb; do
607     IFS="$lt_save_ifs"
608     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
609        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
610        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
611        test "X$echo_testing_string" = "X$echo_test_string"; then
612       echo="$dir/echo"
613       break
614     fi
615   done
616   IFS="$lt_save_ifs"
617
618   if test "X$echo" = Xecho; then
619     # We didn't find a better echo, so look for alternatives.
620     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
621        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
622        test "X$echo_testing_string" = "X$echo_test_string"; then
623       # This shell has a builtin print -r that does the trick.
624       echo='print -r'
625     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
626          test "X$CONFIG_SHELL" != X/bin/ksh; then
627       # If we have ksh, try running configure again with it.
628       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
629       export ORIGINAL_CONFIG_SHELL
630       CONFIG_SHELL=/bin/ksh
631       export CONFIG_SHELL
632       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
633     else
634       # Try using printf.
635       echo='printf %s\n'
636       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
637          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
638          test "X$echo_testing_string" = "X$echo_test_string"; then
639         # Cool, printf works
640         :
641       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642            test "X$echo_testing_string" = 'X\t' &&
643            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644            test "X$echo_testing_string" = "X$echo_test_string"; then
645         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
646         export CONFIG_SHELL
647         SHELL="$CONFIG_SHELL"
648         export SHELL
649         echo="$CONFIG_SHELL $0 --fallback-echo"
650       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
651            test "X$echo_testing_string" = 'X\t' &&
652            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
653            test "X$echo_testing_string" = "X$echo_test_string"; then
654         echo="$CONFIG_SHELL $0 --fallback-echo"
655       else
656         # maybe with a smaller string...
657         prev=:
658
659         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
660           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
661           then
662             break
663           fi
664           prev="$cmd"
665         done
666
667         if test "$prev" != 'sed 50q "$0"'; then
668           echo_test_string=`eval $prev`
669           export echo_test_string
670           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
671         else
672           # Oops.  We lost completely, so just stick with echo.
673           echo=echo
674         fi
675       fi
676     fi
677   fi
678 fi
679 fi
680
681 # Copy echo and quote the copy suitably for passing to libtool from
682 # the Makefile, instead of quoting the original, which is used later.
683 ECHO=$echo
684 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
685    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
686 fi
687
688
689
690
691 tagnames=${tagnames+${tagnames},}CXX
692
693 tagnames=${tagnames+${tagnames},}F77
694
695 exec 7<&0 </dev/null 6>&1
696
697 # Name of the host.
698 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
699 # so uname gets run too.
700 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
701
702 #
703 # Initializations.
704 #
705 ac_default_prefix=/usr/local
706 ac_clean_files=
707 ac_config_libobj_dir=.
708 LIBOBJS=
709 cross_compiling=no
710 subdirs=
711 MFLAGS=
712 MAKEFLAGS=
713 SHELL=${CONFIG_SHELL-/bin/sh}
714
715 # Identity of this package.
716 PACKAGE_NAME='llvm'
717 PACKAGE_TARNAME='-llvm-'
718 PACKAGE_VERSION='2.6svn'
719 PACKAGE_STRING='llvm 2.6svn'
720 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
721
722 ac_unique_file="lib/VMCore/Module.cpp"
723 # Factoring default headers for most tests.
724 ac_includes_default="\
725 #include <stdio.h>
726 #if HAVE_SYS_TYPES_H
727 # include <sys/types.h>
728 #endif
729 #if HAVE_SYS_STAT_H
730 # include <sys/stat.h>
731 #endif
732 #if STDC_HEADERS
733 # include <stdlib.h>
734 # include <stddef.h>
735 #else
736 # if HAVE_STDLIB_H
737 #  include <stdlib.h>
738 # endif
739 #endif
740 #if HAVE_STRING_H
741 # if !STDC_HEADERS && HAVE_MEMORY_H
742 #  include <memory.h>
743 # endif
744 # include <string.h>
745 #endif
746 #if HAVE_STRINGS_H
747 # include <strings.h>
748 #endif
749 #if HAVE_INTTYPES_H
750 # include <inttypes.h>
751 #endif
752 #if HAVE_STDINT_H
753 # include <stdint.h>
754 #endif
755 #if HAVE_UNISTD_H
756 # include <unistd.h>
757 #endif"
758
759 ac_subst_vars='SHELL
760 PATH_SEPARATOR
761 PACKAGE_NAME
762 PACKAGE_TARNAME
763 PACKAGE_VERSION
764 PACKAGE_STRING
765 PACKAGE_BUGREPORT
766 exec_prefix
767 prefix
768 program_transform_name
769 bindir
770 sbindir
771 libexecdir
772 datarootdir
773 datadir
774 sysconfdir
775 sharedstatedir
776 localstatedir
777 includedir
778 oldincludedir
779 docdir
780 infodir
781 htmldir
782 dvidir
783 pdfdir
784 psdir
785 libdir
786 localedir
787 mandir
788 DEFS
789 ECHO_C
790 ECHO_N
791 ECHO_T
792 LIBS
793 build_alias
794 host_alias
795 target_alias
796 LLVM_COPYRIGHT
797 subdirs
798 build
799 build_cpu
800 build_vendor
801 build_os
802 host
803 host_cpu
804 host_vendor
805 host_os
806 target
807 target_cpu
808 target_vendor
809 target_os
810 OS
811 LINKALL
812 NOLINKALL
813 LLVM_ON_UNIX
814 LLVM_ON_WIN32
815 ARCH
816 ENDIAN
817 CC
818 CFLAGS
819 LDFLAGS
820 CPPFLAGS
821 ac_ct_CC
822 EXEEXT
823 OBJEXT
824 CPP
825 GREP
826 EGREP
827 LLVM_CROSS_COMPILING
828 BUILD_CC
829 BUILD_EXEEXT
830 BUILD_CXX
831 CVSBUILD
832 ENABLE_OPTIMIZED
833 ENABLE_PROFILING
834 DISABLE_ASSERTIONS
835 ENABLE_EXPENSIVE_CHECKS
836 EXPENSIVE_CHECKS
837 DEBUG_RUNTIME
838 JIT
839 TARGET_HAS_JIT
840 ENABLE_DOXYGEN
841 ENABLE_THREADS
842 ENABLE_PIC
843 TARGETS_TO_BUILD
844 ENABLE_CBE_PRINTF_A
845 EXTRA_OPTIONS
846 BINUTILS_INCDIR
847 CXX
848 CXXFLAGS
849 ac_ct_CXX
850 NM
851 ifGNUmake
852 LN_S
853 CMP
854 CP
855 DATE
856 FIND
857 MKDIR
858 MV
859 RANLIB
860 RM
861 SED
862 TAR
863 BINPWD
864 GRAPHVIZ
865 DOT
866 GV
867 DOTTY
868 PERL
869 HAVE_PERL
870 INSTALL_PROGRAM
871 INSTALL_SCRIPT
872 INSTALL_DATA
873 BZIP2
874 DOXYGEN
875 GROFF
876 GZIP
877 POD2HTML
878 POD2MAN
879 RUNTEST
880 TCLSH
881 ZIP
882 OCAMLC
883 OCAMLOPT
884 OCAMLDEP
885 OCAMLDOC
886 GAS
887 INSTALL_LTDL_TRUE
888 INSTALL_LTDL_FALSE
889 CONVENIENCE_LTDL_TRUE
890 CONVENIENCE_LTDL_FALSE
891 LIBADD_DL
892 ECHO
893 AR
894 STRIP
895 CXXCPP
896 F77
897 FFLAGS
898 ac_ct_F77
899 LIBTOOL
900 LLVMGCC
901 LLVMGXX
902 USE_UDIS86
903 HAVE_PTHREAD
904 HUGE_VAL_SANITY
905 ALLOCA
906 MMAP_FILE
907 LLVMCC1
908 LLVMCC1PLUS
909 LLVMGCCDIR
910 LLVMGCCLIBEXEC
911 LLVMGCC_VERSION
912 LLVMGCC_MAJVERS
913 LLVMGCC_LANGS
914 SHLIBEXT
915 LLVM_PREFIX
916 LLVM_BINDIR
917 LLVM_LIBDIR
918 LLVM_DATADIR
919 LLVM_DOCSDIR
920 LLVM_ETCDIR
921 LLVM_INCLUDEDIR
922 LLVM_INFODIR
923 LLVM_MANDIR
924 LLVM_CONFIGTIME
925 BINDINGS_TO_BUILD
926 ALL_BINDINGS
927 OCAML_LIBDIR
928 ENABLE_VISIBILITY_INLINES_HIDDEN
929 RPATH
930 RDYNAMIC
931 LIBOBJS
932 LTLIBOBJS'
933 ac_subst_files=''
934       ac_precious_vars='build_alias
935 host_alias
936 target_alias
937 CC
938 CFLAGS
939 LDFLAGS
940 CPPFLAGS
941 CPP
942 CXX
943 CXXFLAGS
944 CCC
945 CXXCPP
946 F77
947 FFLAGS'
948 ac_subdirs_all='projects/sample
949 projects/privbracket
950 projects/llvm-stacker
951 projects/llvm-test
952 projects/test-suite
953 projects/llvm-reopt
954 projects/llvm-gcc
955 projects/llvm-java
956 projects/llvm-tv
957 projects/llvm-poolalloc
958 projects/poolalloc
959 projects/llvm-kernel'
960
961 # Initialize some variables set by options.
962 ac_init_help=
963 ac_init_version=false
964 # The variables have the same names as the options, with
965 # dashes changed to underlines.
966 cache_file=/dev/null
967 exec_prefix=NONE
968 no_create=
969 no_recursion=
970 prefix=NONE
971 program_prefix=NONE
972 program_suffix=NONE
973 program_transform_name=s,x,x,
974 silent=
975 site=
976 srcdir=
977 verbose=
978 x_includes=NONE
979 x_libraries=NONE
980
981 # Installation directory options.
982 # These are left unexpanded so users can "make install exec_prefix=/foo"
983 # and all the variables that are supposed to be based on exec_prefix
984 # by default will actually change.
985 # Use braces instead of parens because sh, perl, etc. also accept them.
986 # (The list follows the same order as the GNU Coding Standards.)
987 bindir='${exec_prefix}/bin'
988 sbindir='${exec_prefix}/sbin'
989 libexecdir='${exec_prefix}/libexec'
990 datarootdir='${prefix}/share'
991 datadir='${datarootdir}'
992 sysconfdir='${prefix}/etc'
993 sharedstatedir='${prefix}/com'
994 localstatedir='${prefix}/var'
995 includedir='${prefix}/include'
996 oldincludedir='/usr/include'
997 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
998 infodir='${datarootdir}/info'
999 htmldir='${docdir}'
1000 dvidir='${docdir}'
1001 pdfdir='${docdir}'
1002 psdir='${docdir}'
1003 libdir='${exec_prefix}/lib'
1004 localedir='${datarootdir}/locale'
1005 mandir='${datarootdir}/man'
1006
1007 ac_prev=
1008 ac_dashdash=
1009 for ac_option
1010 do
1011   # If the previous option needs an argument, assign it.
1012   if test -n "$ac_prev"; then
1013     eval $ac_prev=\$ac_option
1014     ac_prev=
1015     continue
1016   fi
1017
1018   case $ac_option in
1019   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1020   *)    ac_optarg=yes ;;
1021   esac
1022
1023   # Accept the important Cygnus configure options, so we can diagnose typos.
1024
1025   case $ac_dashdash$ac_option in
1026   --)
1027     ac_dashdash=yes ;;
1028
1029   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1030     ac_prev=bindir ;;
1031   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1032     bindir=$ac_optarg ;;
1033
1034   -build | --build | --buil | --bui | --bu)
1035     ac_prev=build_alias ;;
1036   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1037     build_alias=$ac_optarg ;;
1038
1039   -cache-file | --cache-file | --cache-fil | --cache-fi \
1040   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1041     ac_prev=cache_file ;;
1042   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1043   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1044     cache_file=$ac_optarg ;;
1045
1046   --config-cache | -C)
1047     cache_file=config.cache ;;
1048
1049   -datadir | --datadir | --datadi | --datad)
1050     ac_prev=datadir ;;
1051   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1052     datadir=$ac_optarg ;;
1053
1054   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1055   | --dataroo | --dataro | --datar)
1056     ac_prev=datarootdir ;;
1057   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1058   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1059     datarootdir=$ac_optarg ;;
1060
1061   -disable-* | --disable-*)
1062     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1063     # Reject names that are not valid shell variable names.
1064     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1065       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1066    { (exit 1); exit 1; }; }
1067     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1068     eval enable_$ac_feature=no ;;
1069
1070   -docdir | --docdir | --docdi | --doc | --do)
1071     ac_prev=docdir ;;
1072   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1073     docdir=$ac_optarg ;;
1074
1075   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1076     ac_prev=dvidir ;;
1077   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1078     dvidir=$ac_optarg ;;
1079
1080   -enable-* | --enable-*)
1081     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1082     # Reject names that are not valid shell variable names.
1083     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1084       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1085    { (exit 1); exit 1; }; }
1086     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1087     eval enable_$ac_feature=\$ac_optarg ;;
1088
1089   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1090   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1091   | --exec | --exe | --ex)
1092     ac_prev=exec_prefix ;;
1093   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1094   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1095   | --exec=* | --exe=* | --ex=*)
1096     exec_prefix=$ac_optarg ;;
1097
1098   -gas | --gas | --ga | --g)
1099     # Obsolete; use --with-gas.
1100     with_gas=yes ;;
1101
1102   -help | --help | --hel | --he | -h)
1103     ac_init_help=long ;;
1104   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1105     ac_init_help=recursive ;;
1106   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1107     ac_init_help=short ;;
1108
1109   -host | --host | --hos | --ho)
1110     ac_prev=host_alias ;;
1111   -host=* | --host=* | --hos=* | --ho=*)
1112     host_alias=$ac_optarg ;;
1113
1114   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1115     ac_prev=htmldir ;;
1116   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1117   | --ht=*)
1118     htmldir=$ac_optarg ;;
1119
1120   -includedir | --includedir | --includedi | --included | --include \
1121   | --includ | --inclu | --incl | --inc)
1122     ac_prev=includedir ;;
1123   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1124   | --includ=* | --inclu=* | --incl=* | --inc=*)
1125     includedir=$ac_optarg ;;
1126
1127   -infodir | --infodir | --infodi | --infod | --info | --inf)
1128     ac_prev=infodir ;;
1129   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1130     infodir=$ac_optarg ;;
1131
1132   -libdir | --libdir | --libdi | --libd)
1133     ac_prev=libdir ;;
1134   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1135     libdir=$ac_optarg ;;
1136
1137   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1138   | --libexe | --libex | --libe)
1139     ac_prev=libexecdir ;;
1140   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1141   | --libexe=* | --libex=* | --libe=*)
1142     libexecdir=$ac_optarg ;;
1143
1144   -localedir | --localedir | --localedi | --localed | --locale)
1145     ac_prev=localedir ;;
1146   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1147     localedir=$ac_optarg ;;
1148
1149   -localstatedir | --localstatedir | --localstatedi | --localstated \
1150   | --localstate | --localstat | --localsta | --localst | --locals)
1151     ac_prev=localstatedir ;;
1152   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1153   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1154     localstatedir=$ac_optarg ;;
1155
1156   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1157     ac_prev=mandir ;;
1158   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1159     mandir=$ac_optarg ;;
1160
1161   -nfp | --nfp | --nf)
1162     # Obsolete; use --without-fp.
1163     with_fp=no ;;
1164
1165   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1166   | --no-cr | --no-c | -n)
1167     no_create=yes ;;
1168
1169   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1170   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1171     no_recursion=yes ;;
1172
1173   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1174   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1175   | --oldin | --oldi | --old | --ol | --o)
1176     ac_prev=oldincludedir ;;
1177   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1178   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1179   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1180     oldincludedir=$ac_optarg ;;
1181
1182   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1183     ac_prev=prefix ;;
1184   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1185     prefix=$ac_optarg ;;
1186
1187   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1188   | --program-pre | --program-pr | --program-p)
1189     ac_prev=program_prefix ;;
1190   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1191   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1192     program_prefix=$ac_optarg ;;
1193
1194   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1195   | --program-suf | --program-su | --program-s)
1196     ac_prev=program_suffix ;;
1197   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1198   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1199     program_suffix=$ac_optarg ;;
1200
1201   -program-transform-name | --program-transform-name \
1202   | --program-transform-nam | --program-transform-na \
1203   | --program-transform-n | --program-transform- \
1204   | --program-transform | --program-transfor \
1205   | --program-transfo | --program-transf \
1206   | --program-trans | --program-tran \
1207   | --progr-tra | --program-tr | --program-t)
1208     ac_prev=program_transform_name ;;
1209   -program-transform-name=* | --program-transform-name=* \
1210   | --program-transform-nam=* | --program-transform-na=* \
1211   | --program-transform-n=* | --program-transform-=* \
1212   | --program-transform=* | --program-transfor=* \
1213   | --program-transfo=* | --program-transf=* \
1214   | --program-trans=* | --program-tran=* \
1215   | --progr-tra=* | --program-tr=* | --program-t=*)
1216     program_transform_name=$ac_optarg ;;
1217
1218   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1219     ac_prev=pdfdir ;;
1220   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1221     pdfdir=$ac_optarg ;;
1222
1223   -psdir | --psdir | --psdi | --psd | --ps)
1224     ac_prev=psdir ;;
1225   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1226     psdir=$ac_optarg ;;
1227
1228   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1229   | -silent | --silent | --silen | --sile | --sil)
1230     silent=yes ;;
1231
1232   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1233     ac_prev=sbindir ;;
1234   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1235   | --sbi=* | --sb=*)
1236     sbindir=$ac_optarg ;;
1237
1238   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1239   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1240   | --sharedst | --shareds | --shared | --share | --shar \
1241   | --sha | --sh)
1242     ac_prev=sharedstatedir ;;
1243   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1244   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1245   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1246   | --sha=* | --sh=*)
1247     sharedstatedir=$ac_optarg ;;
1248
1249   -site | --site | --sit)
1250     ac_prev=site ;;
1251   -site=* | --site=* | --sit=*)
1252     site=$ac_optarg ;;
1253
1254   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1255     ac_prev=srcdir ;;
1256   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1257     srcdir=$ac_optarg ;;
1258
1259   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1260   | --syscon | --sysco | --sysc | --sys | --sy)
1261     ac_prev=sysconfdir ;;
1262   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1263   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1264     sysconfdir=$ac_optarg ;;
1265
1266   -target | --target | --targe | --targ | --tar | --ta | --t)
1267     ac_prev=target_alias ;;
1268   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1269     target_alias=$ac_optarg ;;
1270
1271   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1272     verbose=yes ;;
1273
1274   -version | --version | --versio | --versi | --vers | -V)
1275     ac_init_version=: ;;
1276
1277   -with-* | --with-*)
1278     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1279     # Reject names that are not valid shell variable names.
1280     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1281       { echo "$as_me: error: invalid package name: $ac_package" >&2
1282    { (exit 1); exit 1; }; }
1283     ac_package=`echo $ac_package| sed 's/-/_/g'`
1284     eval with_$ac_package=\$ac_optarg ;;
1285
1286   -without-* | --without-*)
1287     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1288     # Reject names that are not valid shell variable names.
1289     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1290       { echo "$as_me: error: invalid package name: $ac_package" >&2
1291    { (exit 1); exit 1; }; }
1292     ac_package=`echo $ac_package | sed 's/-/_/g'`
1293     eval with_$ac_package=no ;;
1294
1295   --x)
1296     # Obsolete; use --with-x.
1297     with_x=yes ;;
1298
1299   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1300   | --x-incl | --x-inc | --x-in | --x-i)
1301     ac_prev=x_includes ;;
1302   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1303   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1304     x_includes=$ac_optarg ;;
1305
1306   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1307   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1308     ac_prev=x_libraries ;;
1309   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1310   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1311     x_libraries=$ac_optarg ;;
1312
1313   -*) { echo "$as_me: error: unrecognized option: $ac_option
1314 Try \`$0 --help' for more information." >&2
1315    { (exit 1); exit 1; }; }
1316     ;;
1317
1318   *=*)
1319     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1320     # Reject names that are not valid shell variable names.
1321     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1322       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1323    { (exit 1); exit 1; }; }
1324     eval $ac_envvar=\$ac_optarg
1325     export $ac_envvar ;;
1326
1327   *)
1328     # FIXME: should be removed in autoconf 3.0.
1329     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1330     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1331       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1332     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1333     ;;
1334
1335   esac
1336 done
1337
1338 if test -n "$ac_prev"; then
1339   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1340   { echo "$as_me: error: missing argument to $ac_option" >&2
1341    { (exit 1); exit 1; }; }
1342 fi
1343
1344 # Be sure to have absolute directory names.
1345 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1346                 datadir sysconfdir sharedstatedir localstatedir includedir \
1347                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1348                 libdir localedir mandir
1349 do
1350   eval ac_val=\$$ac_var
1351   case $ac_val in
1352     [\\/$]* | ?:[\\/]* )  continue;;
1353     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1354   esac
1355   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1356    { (exit 1); exit 1; }; }
1357 done
1358
1359 # There might be people who depend on the old broken behavior: `$host'
1360 # used to hold the argument of --host etc.
1361 # FIXME: To remove some day.
1362 build=$build_alias
1363 host=$host_alias
1364 target=$target_alias
1365
1366 # FIXME: To remove some day.
1367 if test "x$host_alias" != x; then
1368   if test "x$build_alias" = x; then
1369     cross_compiling=maybe
1370     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1371     If a cross compiler is detected then cross compile mode will be used." >&2
1372   elif test "x$build_alias" != "x$host_alias"; then
1373     cross_compiling=yes
1374   fi
1375 fi
1376
1377 ac_tool_prefix=
1378 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1379
1380 test "$silent" = yes && exec 6>/dev/null
1381
1382
1383 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1384 ac_ls_di=`ls -di .` &&
1385 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1386   { echo "$as_me: error: Working directory cannot be determined" >&2
1387    { (exit 1); exit 1; }; }
1388 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1389   { echo "$as_me: error: pwd does not report name of working directory" >&2
1390    { (exit 1); exit 1; }; }
1391
1392
1393 # Find the source files, if location was not specified.
1394 if test -z "$srcdir"; then
1395   ac_srcdir_defaulted=yes
1396   # Try the directory containing this script, then the parent directory.
1397   ac_confdir=`$as_dirname -- "$0" ||
1398 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1399          X"$0" : 'X\(//\)[^/]' \| \
1400          X"$0" : 'X\(//\)$' \| \
1401          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1402 echo X"$0" |
1403     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1404             s//\1/
1405             q
1406           }
1407           /^X\(\/\/\)[^/].*/{
1408             s//\1/
1409             q
1410           }
1411           /^X\(\/\/\)$/{
1412             s//\1/
1413             q
1414           }
1415           /^X\(\/\).*/{
1416             s//\1/
1417             q
1418           }
1419           s/.*/./; q'`
1420   srcdir=$ac_confdir
1421   if test ! -r "$srcdir/$ac_unique_file"; then
1422     srcdir=..
1423   fi
1424 else
1425   ac_srcdir_defaulted=no
1426 fi
1427 if test ! -r "$srcdir/$ac_unique_file"; then
1428   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1429   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1430    { (exit 1); exit 1; }; }
1431 fi
1432 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1433 ac_abs_confdir=`(
1434         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1435    { (exit 1); exit 1; }; }
1436         pwd)`
1437 # When building in place, set srcdir=.
1438 if test "$ac_abs_confdir" = "$ac_pwd"; then
1439   srcdir=.
1440 fi
1441 # Remove unnecessary trailing slashes from srcdir.
1442 # Double slashes in file names in object file debugging info
1443 # mess up M-x gdb in Emacs.
1444 case $srcdir in
1445 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1446 esac
1447 for ac_var in $ac_precious_vars; do
1448   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1449   eval ac_env_${ac_var}_value=\$${ac_var}
1450   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1451   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1452 done
1453
1454 #
1455 # Report the --help message.
1456 #
1457 if test "$ac_init_help" = "long"; then
1458   # Omit some internal or obsolete options to make the list less imposing.
1459   # This message is too long to be a string in the A/UX 3.1 sh.
1460   cat <<_ACEOF
1461 \`configure' configures llvm 2.6svn to adapt to many kinds of systems.
1462
1463 Usage: $0 [OPTION]... [VAR=VALUE]...
1464
1465 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1466 VAR=VALUE.  See below for descriptions of some of the useful variables.
1467
1468 Defaults for the options are specified in brackets.
1469
1470 Configuration:
1471   -h, --help              display this help and exit
1472       --help=short        display options specific to this package
1473       --help=recursive    display the short help of all the included packages
1474   -V, --version           display version information and exit
1475   -q, --quiet, --silent   do not print \`checking...' messages
1476       --cache-file=FILE   cache test results in FILE [disabled]
1477   -C, --config-cache      alias for \`--cache-file=config.cache'
1478   -n, --no-create         do not create output files
1479       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1480
1481 Installation directories:
1482   --prefix=PREFIX         install architecture-independent files in PREFIX
1483                           [$ac_default_prefix]
1484   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1485                           [PREFIX]
1486
1487 By default, \`make install' will install all the files in
1488 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1489 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1490 for instance \`--prefix=\$HOME'.
1491
1492 For better control, use the options below.
1493
1494 Fine tuning of the installation directories:
1495   --bindir=DIR           user executables [EPREFIX/bin]
1496   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1497   --libexecdir=DIR       program executables [EPREFIX/libexec]
1498   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1499   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1500   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1501   --libdir=DIR           object code libraries [EPREFIX/lib]
1502   --includedir=DIR       C header files [PREFIX/include]
1503   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1504   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1505   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1506   --infodir=DIR          info documentation [DATAROOTDIR/info]
1507   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1508   --mandir=DIR           man documentation [DATAROOTDIR/man]
1509   --docdir=DIR           documentation root [DATAROOTDIR/doc/-llvm-]
1510   --htmldir=DIR          html documentation [DOCDIR]
1511   --dvidir=DIR           dvi documentation [DOCDIR]
1512   --pdfdir=DIR           pdf documentation [DOCDIR]
1513   --psdir=DIR            ps documentation [DOCDIR]
1514 _ACEOF
1515
1516   cat <<\_ACEOF
1517
1518 System types:
1519   --build=BUILD     configure for building on BUILD [guessed]
1520   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1521   --target=TARGET   configure for building compilers for TARGET [HOST]
1522 _ACEOF
1523 fi
1524
1525 if test -n "$ac_init_help"; then
1526   case $ac_init_help in
1527      short | recursive ) echo "Configuration of llvm 2.6svn:";;
1528    esac
1529   cat <<\_ACEOF
1530
1531 Optional Features:
1532   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1533   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1534   --enable-optimized
1535   --enable-profiling
1536   --enable-assertions
1537   --enable-expensive-checks
1538
1539   --enable-debug-runtime
1540   --enable-jit            Enable Just In Time Compiling (default is YES)
1541   --enable-doxygen        Build doxygen documentation (default is NO)
1542   --enable-threads        Use threads if available (default is YES)
1543   --enable-pic            Build LLVM with Position Independent Code (default
1544                           is YES)
1545   --enable-targets        Build specific host targets:
1546                           all,host-only,{target-name} (default=all)
1547   --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1548                           %a (default is YES)
1549   --enable-bindings       Build specific language bindings:
1550                           all,auto,none,{binding-name} (default=auto)
1551   --enable-ltdl-install   install libltdl
1552   --enable-shared[=PKGS]  build shared libraries
1553                           [default=yes]
1554   --enable-static[=PKGS]  build static libraries
1555                           [default=yes]
1556   --enable-fast-install[=PKGS]
1557                           optimize for fast installation
1558                           [default=yes]
1559   --disable-libtool-lock  avoid locking (might break parallel builds)
1560
1561 Optional Packages:
1562   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1563   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1564   --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1565                           searches PATH)
1566   --with-llvmgcc          Specify location of llvm-gcc driver (default
1567                           searches PATH)
1568   --with-llvmgxx          Specify location of llvm-g++ driver (default
1569                           searches PATH)
1570   --with-extra-options    Specify addtional options to compile LLVM with
1571   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1572                           is stdlib)
1573   --with-binutils-include Specify path to binutils/include/ containing
1574                           plugin-api.h file for gold plugin.
1575   --with-tclinclude       directory where tcl headers are
1576   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1577   --with-pic              try to use only PIC/non-PIC objects [default=use
1578                           both]
1579   --with-tags[=TAGS]      include additional configurations [automatic]
1580   --with-udis86=<path>    Use udis86 external x86 disassembler library
1581
1582 Some influential environment variables:
1583   CC          C compiler command
1584   CFLAGS      C compiler flags
1585   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1586               nonstandard directory <lib dir>
1587   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1588               you have headers in a nonstandard directory <include dir>
1589   CPP         C preprocessor
1590   CXX         C++ compiler command
1591   CXXFLAGS    C++ compiler flags
1592   CXXCPP      C++ preprocessor
1593   F77         Fortran 77 compiler command
1594   FFLAGS      Fortran 77 compiler flags
1595
1596 Use these variables to override the choices made by `configure' or to help
1597 it to find libraries and programs with nonstandard names/locations.
1598
1599 Report bugs to <llvmbugs@cs.uiuc.edu>.
1600 _ACEOF
1601 ac_status=$?
1602 fi
1603
1604 if test "$ac_init_help" = "recursive"; then
1605   # If there are subdirs, report their specific --help.
1606   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1607     test -d "$ac_dir" || continue
1608     ac_builddir=.
1609
1610 case "$ac_dir" in
1611 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1612 *)
1613   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1614   # A ".." for each directory in $ac_dir_suffix.
1615   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1616   case $ac_top_builddir_sub in
1617   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1618   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1619   esac ;;
1620 esac
1621 ac_abs_top_builddir=$ac_pwd
1622 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1623 # for backward compatibility:
1624 ac_top_builddir=$ac_top_build_prefix
1625
1626 case $srcdir in
1627   .)  # We are building in place.
1628     ac_srcdir=.
1629     ac_top_srcdir=$ac_top_builddir_sub
1630     ac_abs_top_srcdir=$ac_pwd ;;
1631   [\\/]* | ?:[\\/]* )  # Absolute name.
1632     ac_srcdir=$srcdir$ac_dir_suffix;
1633     ac_top_srcdir=$srcdir
1634     ac_abs_top_srcdir=$srcdir ;;
1635   *) # Relative name.
1636     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1637     ac_top_srcdir=$ac_top_build_prefix$srcdir
1638     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1639 esac
1640 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1641
1642     cd "$ac_dir" || { ac_status=$?; continue; }
1643     # Check for guested configure.
1644     if test -f "$ac_srcdir/configure.gnu"; then
1645       echo &&
1646       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1647     elif test -f "$ac_srcdir/configure"; then
1648       echo &&
1649       $SHELL "$ac_srcdir/configure" --help=recursive
1650     else
1651       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1652     fi || ac_status=$?
1653     cd "$ac_pwd" || { ac_status=$?; break; }
1654   done
1655 fi
1656
1657 test -n "$ac_init_help" && exit $ac_status
1658 if $ac_init_version; then
1659   cat <<\_ACEOF
1660 llvm configure 2.6svn
1661 generated by GNU Autoconf 2.60
1662
1663 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1664 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1665 This configure script is free software; the Free Software Foundation
1666 gives unlimited permission to copy, distribute and modify it.
1667
1668 Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
1669 _ACEOF
1670   exit
1671 fi
1672 cat >config.log <<_ACEOF
1673 This file contains any messages produced by compilers while
1674 running configure, to aid debugging if configure makes a mistake.
1675
1676 It was created by llvm $as_me 2.6svn, which was
1677 generated by GNU Autoconf 2.60.  Invocation command line was
1678
1679   $ $0 $@
1680
1681 _ACEOF
1682 exec 5>>config.log
1683 {
1684 cat <<_ASUNAME
1685 ## --------- ##
1686 ## Platform. ##
1687 ## --------- ##
1688
1689 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1690 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1691 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1692 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1693 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1694
1695 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1696 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1697
1698 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1699 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1700 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1701 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1702 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1703 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1704 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1705
1706 _ASUNAME
1707
1708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1709 for as_dir in $PATH
1710 do
1711   IFS=$as_save_IFS
1712   test -z "$as_dir" && as_dir=.
1713   echo "PATH: $as_dir"
1714 done
1715 IFS=$as_save_IFS
1716
1717 } >&5
1718
1719 cat >&5 <<_ACEOF
1720
1721
1722 ## ----------- ##
1723 ## Core tests. ##
1724 ## ----------- ##
1725
1726 _ACEOF
1727
1728
1729 # Keep a trace of the command line.
1730 # Strip out --no-create and --no-recursion so they do not pile up.
1731 # Strip out --silent because we don't want to record it for future runs.
1732 # Also quote any args containing shell meta-characters.
1733 # Make two passes to allow for proper duplicate-argument suppression.
1734 ac_configure_args=
1735 ac_configure_args0=
1736 ac_configure_args1=
1737 ac_must_keep_next=false
1738 for ac_pass in 1 2
1739 do
1740   for ac_arg
1741   do
1742     case $ac_arg in
1743     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1744     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1745     | -silent | --silent | --silen | --sile | --sil)
1746       continue ;;
1747     *\'*)
1748       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1749     esac
1750     case $ac_pass in
1751     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1752     2)
1753       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1754       if test $ac_must_keep_next = true; then
1755         ac_must_keep_next=false # Got value, back to normal.
1756       else
1757         case $ac_arg in
1758           *=* | --config-cache | -C | -disable-* | --disable-* \
1759           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1760           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1761           | -with-* | --with-* | -without-* | --without-* | --x)
1762             case "$ac_configure_args0 " in
1763               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1764             esac
1765             ;;
1766           -* ) ac_must_keep_next=true ;;
1767         esac
1768       fi
1769       ac_configure_args="$ac_configure_args '$ac_arg'"
1770       ;;
1771     esac
1772   done
1773 done
1774 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1775 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1776
1777 # When interrupted or exit'd, cleanup temporary files, and complete
1778 # config.log.  We remove comments because anyway the quotes in there
1779 # would cause problems or look ugly.
1780 # WARNING: Use '\'' to represent an apostrophe within the trap.
1781 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1782 trap 'exit_status=$?
1783   # Save into config.log some information that might help in debugging.
1784   {
1785     echo
1786
1787     cat <<\_ASBOX
1788 ## ---------------- ##
1789 ## Cache variables. ##
1790 ## ---------------- ##
1791 _ASBOX
1792     echo
1793     # The following way of writing the cache mishandles newlines in values,
1794 (
1795   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1796     eval ac_val=\$$ac_var
1797     case $ac_val in #(
1798     *${as_nl}*)
1799       case $ac_var in #(
1800       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1801 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1802       esac
1803       case $ac_var in #(
1804       _ | IFS | as_nl) ;; #(
1805       *) $as_unset $ac_var ;;
1806       esac ;;
1807     esac
1808   done
1809   (set) 2>&1 |
1810     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1811     *${as_nl}ac_space=\ *)
1812       sed -n \
1813         "s/'\''/'\''\\\\'\'''\''/g;
1814           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1815       ;; #(
1816     *)
1817       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1818       ;;
1819     esac |
1820     sort
1821 )
1822     echo
1823
1824     cat <<\_ASBOX
1825 ## ----------------- ##
1826 ## Output variables. ##
1827 ## ----------------- ##
1828 _ASBOX
1829     echo
1830     for ac_var in $ac_subst_vars
1831     do
1832       eval ac_val=\$$ac_var
1833       case $ac_val in
1834       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1835       esac
1836       echo "$ac_var='\''$ac_val'\''"
1837     done | sort
1838     echo
1839
1840     if test -n "$ac_subst_files"; then
1841       cat <<\_ASBOX
1842 ## ------------------- ##
1843 ## File substitutions. ##
1844 ## ------------------- ##
1845 _ASBOX
1846       echo
1847       for ac_var in $ac_subst_files
1848       do
1849         eval ac_val=\$$ac_var
1850         case $ac_val in
1851         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1852         esac
1853         echo "$ac_var='\''$ac_val'\''"
1854       done | sort
1855       echo
1856     fi
1857
1858     if test -s confdefs.h; then
1859       cat <<\_ASBOX
1860 ## ----------- ##
1861 ## confdefs.h. ##
1862 ## ----------- ##
1863 _ASBOX
1864       echo
1865       cat confdefs.h
1866       echo
1867     fi
1868     test "$ac_signal" != 0 &&
1869       echo "$as_me: caught signal $ac_signal"
1870     echo "$as_me: exit $exit_status"
1871   } >&5
1872   rm -f core *.core core.conftest.* &&
1873     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1874     exit $exit_status
1875 ' 0
1876 for ac_signal in 1 2 13 15; do
1877   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1878 done
1879 ac_signal=0
1880
1881 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1882 rm -f -r conftest* confdefs.h
1883
1884 # Predefined preprocessor variables.
1885
1886 cat >>confdefs.h <<_ACEOF
1887 #define PACKAGE_NAME "$PACKAGE_NAME"
1888 _ACEOF
1889
1890
1891 cat >>confdefs.h <<_ACEOF
1892 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1893 _ACEOF
1894
1895
1896 cat >>confdefs.h <<_ACEOF
1897 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1898 _ACEOF
1899
1900
1901 cat >>confdefs.h <<_ACEOF
1902 #define PACKAGE_STRING "$PACKAGE_STRING"
1903 _ACEOF
1904
1905
1906 cat >>confdefs.h <<_ACEOF
1907 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1908 _ACEOF
1909
1910
1911 # Let the site file select an alternate cache file if it wants to.
1912 # Prefer explicitly selected file to automatically selected ones.
1913 if test -n "$CONFIG_SITE"; then
1914   set x "$CONFIG_SITE"
1915 elif test "x$prefix" != xNONE; then
1916   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1917 else
1918   set x "$ac_default_prefix/share/config.site" \
1919         "$ac_default_prefix/etc/config.site"
1920 fi
1921 shift
1922 for ac_site_file
1923 do
1924   if test -r "$ac_site_file"; then
1925     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1926 echo "$as_me: loading site script $ac_site_file" >&6;}
1927     sed 's/^/| /' "$ac_site_file" >&5
1928     . "$ac_site_file"
1929   fi
1930 done
1931
1932 if test -r "$cache_file"; then
1933   # Some versions of bash will fail to source /dev/null (special
1934   # files actually), so we avoid doing that.
1935   if test -f "$cache_file"; then
1936     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1937 echo "$as_me: loading cache $cache_file" >&6;}
1938     case $cache_file in
1939       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1940       *)                      . "./$cache_file";;
1941     esac
1942   fi
1943 else
1944   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1945 echo "$as_me: creating cache $cache_file" >&6;}
1946   >$cache_file
1947 fi
1948
1949 # Check that the precious variables saved in the cache have kept the same
1950 # value.
1951 ac_cache_corrupted=false
1952 for ac_var in $ac_precious_vars; do
1953   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1954   eval ac_new_set=\$ac_env_${ac_var}_set
1955   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1956   eval ac_new_val=\$ac_env_${ac_var}_value
1957   case $ac_old_set,$ac_new_set in
1958     set,)
1959       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1960 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1961       ac_cache_corrupted=: ;;
1962     ,set)
1963       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1964 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1965       ac_cache_corrupted=: ;;
1966     ,);;
1967     *)
1968       if test "x$ac_old_val" != "x$ac_new_val"; then
1969         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1970 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1971         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1972 echo "$as_me:   former value:  $ac_old_val" >&2;}
1973         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1974 echo "$as_me:   current value: $ac_new_val" >&2;}
1975         ac_cache_corrupted=:
1976       fi;;
1977   esac
1978   # Pass precious variables to config.status.
1979   if test "$ac_new_set" = set; then
1980     case $ac_new_val in
1981     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1982     *) ac_arg=$ac_var=$ac_new_val ;;
1983     esac
1984     case " $ac_configure_args " in
1985       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1986       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1987     esac
1988   fi
1989 done
1990 if $ac_cache_corrupted; then
1991   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1992 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1993   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1994 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1995    { (exit 1); exit 1; }; }
1996 fi
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022 ac_ext=c
2023 ac_cpp='$CPP $CPPFLAGS'
2024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2027
2028
2029
2030 LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
2031
2032
2033
2034
2035
2036
2037
2038 ac_aux_dir=
2039 for ac_dir in autoconf "$srcdir"/autoconf; do
2040   if test -f "$ac_dir/install-sh"; then
2041     ac_aux_dir=$ac_dir
2042     ac_install_sh="$ac_aux_dir/install-sh -c"
2043     break
2044   elif test -f "$ac_dir/install.sh"; then
2045     ac_aux_dir=$ac_dir
2046     ac_install_sh="$ac_aux_dir/install.sh -c"
2047     break
2048   elif test -f "$ac_dir/shtool"; then
2049     ac_aux_dir=$ac_dir
2050     ac_install_sh="$ac_aux_dir/shtool install -c"
2051     break
2052   fi
2053 done
2054 if test -z "$ac_aux_dir"; then
2055   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2056 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2057    { (exit 1); exit 1; }; }
2058 fi
2059
2060 # These three variables are undocumented and unsupported,
2061 # and are intended to be withdrawn in a future Autoconf release.
2062 # They can cause serious problems if a builder's source tree is in a directory
2063 # whose full name contains unusual characters.
2064 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2065 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2066 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2067
2068
2069
2070 if test ${srcdir} != "." ; then
2071   if test -f ${srcdir}/include/llvm/Config/config.h ; then
2072     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2073 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2074    { (exit 1); exit 1; }; }
2075   fi
2076 fi
2077
2078 for i in `ls ${srcdir}/projects`
2079 do
2080   if test -d ${srcdir}/projects/${i} ; then
2081     case ${i} in
2082       CVS) ;;
2083       sample)       subdirs="$subdirs projects/sample"
2084     ;;
2085       privbracket)  subdirs="$subdirs projects/privbracket"
2086  ;;
2087       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2088  ;;
2089       # llvm-test is the old name of the test-suite, kept here for backwards
2090       # compatibility
2091       llvm-test)    subdirs="$subdirs projects/llvm-test"
2092  ;;
2093       test-suite)   subdirs="$subdirs projects/test-suite"
2094  ;;
2095       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
2096 ;;
2097       llvm-gcc)     subdirs="$subdirs projects/llvm-gcc"
2098   ;;
2099       llvm-java)    subdirs="$subdirs projects/llvm-java"
2100  ;;
2101       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
2102    ;;
2103       llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2104  ;;
2105       poolalloc)    subdirs="$subdirs projects/poolalloc"
2106  ;;
2107       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
2108  ;;
2109       *)
2110         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2111 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2112         ;;
2113     esac
2114   fi
2115 done
2116
2117
2118 # Make sure we can run config.sub.
2119 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2120   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2121 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2122    { (exit 1); exit 1; }; }
2123
2124 { echo "$as_me:$LINENO: checking build system type" >&5
2125 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2126 if test "${ac_cv_build+set}" = set; then
2127   echo $ECHO_N "(cached) $ECHO_C" >&6
2128 else
2129   ac_build_alias=$build_alias
2130 test "x$ac_build_alias" = x &&
2131   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2132 test "x$ac_build_alias" = x &&
2133   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2134 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2135    { (exit 1); exit 1; }; }
2136 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2137   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2138 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2139    { (exit 1); exit 1; }; }
2140
2141 fi
2142 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2143 echo "${ECHO_T}$ac_cv_build" >&6; }
2144 case $ac_cv_build in
2145 *-*-*) ;;
2146 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2147 echo "$as_me: error: invalid value of canonical build" >&2;}
2148    { (exit 1); exit 1; }; };;
2149 esac
2150 build=$ac_cv_build
2151 ac_save_IFS=$IFS; IFS='-'
2152 set x $ac_cv_build
2153 shift
2154 build_cpu=$1
2155 build_vendor=$2
2156 shift; shift
2157 # Remember, the first character of IFS is used to create $*,
2158 # except with old shells:
2159 build_os=$*
2160 IFS=$ac_save_IFS
2161 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2162
2163
2164 { echo "$as_me:$LINENO: checking host system type" >&5
2165 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2166 if test "${ac_cv_host+set}" = set; then
2167   echo $ECHO_N "(cached) $ECHO_C" >&6
2168 else
2169   if test "x$host_alias" = x; then
2170   ac_cv_host=$ac_cv_build
2171 else
2172   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2173     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2174 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2175    { (exit 1); exit 1; }; }
2176 fi
2177
2178 fi
2179 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2180 echo "${ECHO_T}$ac_cv_host" >&6; }
2181 case $ac_cv_host in
2182 *-*-*) ;;
2183 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2184 echo "$as_me: error: invalid value of canonical host" >&2;}
2185    { (exit 1); exit 1; }; };;
2186 esac
2187 host=$ac_cv_host
2188 ac_save_IFS=$IFS; IFS='-'
2189 set x $ac_cv_host
2190 shift
2191 host_cpu=$1
2192 host_vendor=$2
2193 shift; shift
2194 # Remember, the first character of IFS is used to create $*,
2195 # except with old shells:
2196 host_os=$*
2197 IFS=$ac_save_IFS
2198 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2199
2200
2201 { echo "$as_me:$LINENO: checking target system type" >&5
2202 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2203 if test "${ac_cv_target+set}" = set; then
2204   echo $ECHO_N "(cached) $ECHO_C" >&6
2205 else
2206   if test "x$target_alias" = x; then
2207   ac_cv_target=$ac_cv_host
2208 else
2209   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2210     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2211 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2212    { (exit 1); exit 1; }; }
2213 fi
2214
2215 fi
2216 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2217 echo "${ECHO_T}$ac_cv_target" >&6; }
2218 case $ac_cv_target in
2219 *-*-*) ;;
2220 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2221 echo "$as_me: error: invalid value of canonical target" >&2;}
2222    { (exit 1); exit 1; }; };;
2223 esac
2224 target=$ac_cv_target
2225 ac_save_IFS=$IFS; IFS='-'
2226 set x $ac_cv_target
2227 shift
2228 target_cpu=$1
2229 target_vendor=$2
2230 shift; shift
2231 # Remember, the first character of IFS is used to create $*,
2232 # except with old shells:
2233 target_os=$*
2234 IFS=$ac_save_IFS
2235 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2236
2237
2238 # The aliases save the names the user supplied, while $host etc.
2239 # will get canonicalized.
2240 test -n "$target_alias" &&
2241   test "$program_prefix$program_suffix$program_transform_name" = \
2242     NONENONEs,x,x, &&
2243   program_prefix=${target_alias}-
2244
2245 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2246 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2247 if test "${llvm_cv_os_type+set}" = set; then
2248   echo $ECHO_N "(cached) $ECHO_C" >&6
2249 else
2250   case $host in
2251   *-*-aix*)
2252     llvm_cv_link_all_option="-Wl,--whole-archive"
2253     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2254     llvm_cv_os_type="AIX"
2255     llvm_cv_platform_type="Unix" ;;
2256   *-*-irix*)
2257     llvm_cv_link_all_option="-Wl,--whole-archive"
2258     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2259     llvm_cv_os_type="IRIX"
2260     llvm_cv_platform_type="Unix" ;;
2261   *-*-cygwin*)
2262     llvm_cv_link_all_option="-Wl,--whole-archive"
2263     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2264     llvm_cv_os_type="Cygwin"
2265     llvm_cv_platform_type="Unix" ;;
2266   *-*-darwin*)
2267     llvm_cv_link_all_option="-Wl,-all_load"
2268     llvm_cv_no_link_all_option="-Wl,-noall_load"
2269     llvm_cv_os_type="Darwin"
2270     llvm_cv_platform_type="Unix" ;;
2271   *-*-freebsd*)
2272     llvm_cv_link_all_option="-Wl,--whole-archive"
2273     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2274     llvm_cv_os_type="FreeBSD"
2275     llvm_cv_platform_type="Unix" ;;
2276   *-*-openbsd*)
2277     llvm_cv_link_all_option="-Wl,--whole-archive"
2278     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2279     llvm_cv_os_type="OpenBSD"
2280     llvm_cv_platform_type="Unix" ;;
2281   *-*-netbsd*)
2282     llvm_cv_link_all_option="-Wl,--whole-archive"
2283     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2284     llvm_cv_os_type="NetBSD"
2285     llvm_cv_platform_type="Unix" ;;
2286   *-*-dragonfly*)
2287     llvm_cv_link_all_option="-Wl,--whole-archive"
2288     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2289     llvm_cv_os_type="DragonFly"
2290     llvm_cv_platform_type="Unix" ;;
2291   *-*-hpux*)
2292     llvm_cv_link_all_option="-Wl,--whole-archive"
2293     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2294     llvm_cv_os_type="HP-UX"
2295     llvm_cv_platform_type="Unix" ;;
2296   *-*-interix*)
2297     llvm_cv_link_all_option="-Wl,--whole-archive"
2298     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2299     llvm_cv_os_type="Interix"
2300     llvm_cv_platform_type="Unix" ;;
2301   *-*-linux*)
2302     llvm_cv_link_all_option="-Wl,--whole-archive"
2303     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2304     llvm_cv_os_type="Linux"
2305     llvm_cv_platform_type="Unix" ;;
2306   *-*-solaris*)
2307     llvm_cv_link_all_option="-Wl,-z,allextract"
2308     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2309     llvm_cv_os_type="SunOS"
2310     llvm_cv_platform_type="Unix" ;;
2311   *-*-win32*)
2312     llvm_cv_link_all_option="-Wl,--whole-archive"
2313     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2314     llvm_cv_os_type="Win32"
2315     llvm_cv_platform_type="Win32" ;;
2316   *-*-mingw*)
2317     llvm_cv_link_all_option="-Wl,--whole-archive"
2318     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2319     llvm_cv_os_type="MingW"
2320     llvm_cv_platform_type="Win32" ;;
2321   *)
2322     llvm_cv_link_all_option=""
2323     llvm_cv_no_link_all_option=""
2324     llvm_cv_os_type="Unknown"
2325     llvm_cv_platform_type="Unknown" ;;
2326 esac
2327 fi
2328 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2329 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2330
2331 if test "$llvm_cv_os_type" = "Unknown" ; then
2332   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2333 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2334    { (exit 1); exit 1; }; }
2335 fi
2336
2337 OS=$llvm_cv_os_type
2338
2339
2340 LINKALL=$llvm_cv_link_all_option
2341
2342 NOLINKALL=$llvm_cv_no_link_all_option
2343
2344
2345 case $llvm_cv_platform_type in
2346   Unix)
2347
2348 cat >>confdefs.h <<\_ACEOF
2349 #define LLVM_ON_UNIX 1
2350 _ACEOF
2351
2352     LLVM_ON_UNIX=1
2353
2354     LLVM_ON_WIN32=0
2355
2356     ;;
2357   Win32)
2358
2359 cat >>confdefs.h <<\_ACEOF
2360 #define LLVM_ON_WIN32 1
2361 _ACEOF
2362
2363     LLVM_ON_UNIX=0
2364
2365     LLVM_ON_WIN32=1
2366
2367     ;;
2368 esac
2369
2370 { echo "$as_me:$LINENO: checking target architecture" >&5
2371 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2372 if test "${llvm_cv_target_arch+set}" = set; then
2373   echo $ECHO_N "(cached) $ECHO_C" >&6
2374 else
2375   case $target in
2376   i?86-*)                 llvm_cv_target_arch="x86" ;;
2377   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
2378   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
2379   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
2380   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
2381   ia64-*)                 llvm_cv_target_arch="IA64" ;;
2382   arm-*)                  llvm_cv_target_arch="ARM" ;;
2383   mips-*)                 llvm_cv_target_arch="Mips" ;;
2384   pic16-*)                llvm_cv_target_arch="PIC16" ;;
2385   xcore-*)                llvm_cv_target_arch="XCore" ;;
2386   *)                      llvm_cv_target_arch="Unknown" ;;
2387 esac
2388 fi
2389 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2390 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2391
2392 if test "$llvm_cv_target_arch" = "Unknown" ; then
2393   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2394 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2395 fi
2396
2397 ARCH=$llvm_cv_target_arch
2398
2399
2400 ac_ext=c
2401 ac_cpp='$CPP $CPPFLAGS'
2402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2405 if test -n "$ac_tool_prefix"; then
2406   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2407 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2408 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2410 if test "${ac_cv_prog_CC+set}" = set; then
2411   echo $ECHO_N "(cached) $ECHO_C" >&6
2412 else
2413   if test -n "$CC"; then
2414   ac_cv_prog_CC="$CC" # Let the user override the test.
2415 else
2416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2417 for as_dir in $PATH
2418 do
2419   IFS=$as_save_IFS
2420   test -z "$as_dir" && as_dir=.
2421   for ac_exec_ext in '' $ac_executable_extensions; do
2422   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2423     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2424     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2425     break 2
2426   fi
2427 done
2428 done
2429 IFS=$as_save_IFS
2430
2431 fi
2432 fi
2433 CC=$ac_cv_prog_CC
2434 if test -n "$CC"; then
2435   { echo "$as_me:$LINENO: result: $CC" >&5
2436 echo "${ECHO_T}$CC" >&6; }
2437 else
2438   { echo "$as_me:$LINENO: result: no" >&5
2439 echo "${ECHO_T}no" >&6; }
2440 fi
2441
2442
2443 fi
2444 if test -z "$ac_cv_prog_CC"; then
2445   ac_ct_CC=$CC
2446   # Extract the first word of "gcc", so it can be a program name with args.
2447 set dummy gcc; ac_word=$2
2448 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2450 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2451   echo $ECHO_N "(cached) $ECHO_C" >&6
2452 else
2453   if test -n "$ac_ct_CC"; then
2454   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2455 else
2456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2457 for as_dir in $PATH
2458 do
2459   IFS=$as_save_IFS
2460   test -z "$as_dir" && as_dir=.
2461   for ac_exec_ext in '' $ac_executable_extensions; do
2462   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2463     ac_cv_prog_ac_ct_CC="gcc"
2464     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2465     break 2
2466   fi
2467 done
2468 done
2469 IFS=$as_save_IFS
2470
2471 fi
2472 fi
2473 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2474 if test -n "$ac_ct_CC"; then
2475   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2476 echo "${ECHO_T}$ac_ct_CC" >&6; }
2477 else
2478   { echo "$as_me:$LINENO: result: no" >&5
2479 echo "${ECHO_T}no" >&6; }
2480 fi
2481
2482   if test "x$ac_ct_CC" = x; then
2483     CC=""
2484   else
2485     case $cross_compiling:$ac_tool_warned in
2486 yes:)
2487 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2488 whose name does not start with the host triplet.  If you think this
2489 configuration is useful to you, please write to autoconf@gnu.org." >&5
2490 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2491 whose name does not start with the host triplet.  If you think this
2492 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2493 ac_tool_warned=yes ;;
2494 esac
2495     CC=$ac_ct_CC
2496   fi
2497 else
2498   CC="$ac_cv_prog_CC"
2499 fi
2500
2501 if test -z "$CC"; then
2502           if test -n "$ac_tool_prefix"; then
2503     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2504 set dummy ${ac_tool_prefix}cc; ac_word=$2
2505 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2507 if test "${ac_cv_prog_CC+set}" = set; then
2508   echo $ECHO_N "(cached) $ECHO_C" >&6
2509 else
2510   if test -n "$CC"; then
2511   ac_cv_prog_CC="$CC" # Let the user override the test.
2512 else
2513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2514 for as_dir in $PATH
2515 do
2516   IFS=$as_save_IFS
2517   test -z "$as_dir" && as_dir=.
2518   for ac_exec_ext in '' $ac_executable_extensions; do
2519   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2520     ac_cv_prog_CC="${ac_tool_prefix}cc"
2521     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2522     break 2
2523   fi
2524 done
2525 done
2526 IFS=$as_save_IFS
2527
2528 fi
2529 fi
2530 CC=$ac_cv_prog_CC
2531 if test -n "$CC"; then
2532   { echo "$as_me:$LINENO: result: $CC" >&5
2533 echo "${ECHO_T}$CC" >&6; }
2534 else
2535   { echo "$as_me:$LINENO: result: no" >&5
2536 echo "${ECHO_T}no" >&6; }
2537 fi
2538
2539
2540   fi
2541 fi
2542 if test -z "$CC"; then
2543   # Extract the first word of "cc", so it can be a program name with args.
2544 set dummy cc; ac_word=$2
2545 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2547 if test "${ac_cv_prog_CC+set}" = set; then
2548   echo $ECHO_N "(cached) $ECHO_C" >&6
2549 else
2550   if test -n "$CC"; then
2551   ac_cv_prog_CC="$CC" # Let the user override the test.
2552 else
2553   ac_prog_rejected=no
2554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2555 for as_dir in $PATH
2556 do
2557   IFS=$as_save_IFS
2558   test -z "$as_dir" && as_dir=.
2559   for ac_exec_ext in '' $ac_executable_extensions; do
2560   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2561     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2562        ac_prog_rejected=yes
2563        continue
2564      fi
2565     ac_cv_prog_CC="cc"
2566     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2567     break 2
2568   fi
2569 done
2570 done
2571 IFS=$as_save_IFS
2572
2573 if test $ac_prog_rejected = yes; then
2574   # We found a bogon in the path, so make sure we never use it.
2575   set dummy $ac_cv_prog_CC
2576   shift
2577   if test $# != 0; then
2578     # We chose a different compiler from the bogus one.
2579     # However, it has the same basename, so the bogon will be chosen
2580     # first if we set CC to just the basename; use the full file name.
2581     shift
2582     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2583   fi
2584 fi
2585 fi
2586 fi
2587 CC=$ac_cv_prog_CC
2588 if test -n "$CC"; then
2589   { echo "$as_me:$LINENO: result: $CC" >&5
2590 echo "${ECHO_T}$CC" >&6; }
2591 else
2592   { echo "$as_me:$LINENO: result: no" >&5
2593 echo "${ECHO_T}no" >&6; }
2594 fi
2595
2596
2597 fi
2598 if test -z "$CC"; then
2599   if test -n "$ac_tool_prefix"; then
2600   for ac_prog in cl.exe
2601   do
2602     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2603 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2604 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2606 if test "${ac_cv_prog_CC+set}" = set; then
2607   echo $ECHO_N "(cached) $ECHO_C" >&6
2608 else
2609   if test -n "$CC"; then
2610   ac_cv_prog_CC="$CC" # Let the user override the test.
2611 else
2612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2613 for as_dir in $PATH
2614 do
2615   IFS=$as_save_IFS
2616   test -z "$as_dir" && as_dir=.
2617   for ac_exec_ext in '' $ac_executable_extensions; do
2618   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2619     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2620     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2621     break 2
2622   fi
2623 done
2624 done
2625 IFS=$as_save_IFS
2626
2627 fi
2628 fi
2629 CC=$ac_cv_prog_CC
2630 if test -n "$CC"; then
2631   { echo "$as_me:$LINENO: result: $CC" >&5
2632 echo "${ECHO_T}$CC" >&6; }
2633 else
2634   { echo "$as_me:$LINENO: result: no" >&5
2635 echo "${ECHO_T}no" >&6; }
2636 fi
2637
2638
2639     test -n "$CC" && break
2640   done
2641 fi
2642 if test -z "$CC"; then
2643   ac_ct_CC=$CC
2644   for ac_prog in cl.exe
2645 do
2646   # Extract the first word of "$ac_prog", so it can be a program name with args.
2647 set dummy $ac_prog; ac_word=$2
2648 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2650 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2651   echo $ECHO_N "(cached) $ECHO_C" >&6
2652 else
2653   if test -n "$ac_ct_CC"; then
2654   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2655 else
2656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2657 for as_dir in $PATH
2658 do
2659   IFS=$as_save_IFS
2660   test -z "$as_dir" && as_dir=.
2661   for ac_exec_ext in '' $ac_executable_extensions; do
2662   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2663     ac_cv_prog_ac_ct_CC="$ac_prog"
2664     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2665     break 2
2666   fi
2667 done
2668 done
2669 IFS=$as_save_IFS
2670
2671 fi
2672 fi
2673 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2674 if test -n "$ac_ct_CC"; then
2675   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2676 echo "${ECHO_T}$ac_ct_CC" >&6; }
2677 else
2678   { echo "$as_me:$LINENO: result: no" >&5
2679 echo "${ECHO_T}no" >&6; }
2680 fi
2681
2682
2683   test -n "$ac_ct_CC" && break
2684 done
2685
2686   if test "x$ac_ct_CC" = x; then
2687     CC=""
2688   else
2689     case $cross_compiling:$ac_tool_warned in
2690 yes:)
2691 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2692 whose name does not start with the host triplet.  If you think this
2693 configuration is useful to you, please write to autoconf@gnu.org." >&5
2694 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2695 whose name does not start with the host triplet.  If you think this
2696 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2697 ac_tool_warned=yes ;;
2698 esac
2699     CC=$ac_ct_CC
2700   fi
2701 fi
2702
2703 fi
2704
2705
2706 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2707 See \`config.log' for more details." >&5
2708 echo "$as_me: error: no acceptable C compiler found in \$PATH
2709 See \`config.log' for more details." >&2;}
2710    { (exit 1); exit 1; }; }
2711
2712 # Provide some information about the compiler.
2713 echo "$as_me:$LINENO: checking for C compiler version" >&5
2714 ac_compiler=`set X $ac_compile; echo $2`
2715 { (ac_try="$ac_compiler --version >&5"
2716 case "(($ac_try" in
2717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2718   *) ac_try_echo=$ac_try;;
2719 esac
2720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2721   (eval "$ac_compiler --version >&5") 2>&5
2722   ac_status=$?
2723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724   (exit $ac_status); }
2725 { (ac_try="$ac_compiler -v >&5"
2726 case "(($ac_try" in
2727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2728   *) ac_try_echo=$ac_try;;
2729 esac
2730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2731   (eval "$ac_compiler -v >&5") 2>&5
2732   ac_status=$?
2733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2734   (exit $ac_status); }
2735 { (ac_try="$ac_compiler -V >&5"
2736 case "(($ac_try" in
2737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2738   *) ac_try_echo=$ac_try;;
2739 esac
2740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2741   (eval "$ac_compiler -V >&5") 2>&5
2742   ac_status=$?
2743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744   (exit $ac_status); }
2745
2746 cat >conftest.$ac_ext <<_ACEOF
2747 /* confdefs.h.  */
2748 _ACEOF
2749 cat confdefs.h >>conftest.$ac_ext
2750 cat >>conftest.$ac_ext <<_ACEOF
2751 /* end confdefs.h.  */
2752
2753 int
2754 main ()
2755 {
2756
2757   ;
2758   return 0;
2759 }
2760 _ACEOF
2761 ac_clean_files_save=$ac_clean_files
2762 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2763 # Try to create an executable without -o first, disregard a.out.
2764 # It will help us diagnose broken compilers, and finding out an intuition
2765 # of exeext.
2766 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2767 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2768 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2769 #
2770 # List of possible output files, starting from the most likely.
2771 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2772 # only as a last resort.  b.out is created by i960 compilers.
2773 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2774 #
2775 # The IRIX 6 linker writes into existing files which may not be
2776 # executable, retaining their permissions.  Remove them first so a
2777 # subsequent execution test works.
2778 ac_rmfiles=
2779 for ac_file in $ac_files
2780 do
2781   case $ac_file in
2782     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2783     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2784   esac
2785 done
2786 rm -f $ac_rmfiles
2787
2788 if { (ac_try="$ac_link_default"
2789 case "(($ac_try" in
2790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2791   *) ac_try_echo=$ac_try;;
2792 esac
2793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2794   (eval "$ac_link_default") 2>&5
2795   ac_status=$?
2796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797   (exit $ac_status); }; then
2798   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2799 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2800 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2801 # so that the user can short-circuit this test for compilers unknown to
2802 # Autoconf.
2803 for ac_file in $ac_files
2804 do
2805   test -f "$ac_file" || continue
2806   case $ac_file in
2807     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2808         ;;
2809     [ab].out )
2810         # We found the default executable, but exeext='' is most
2811         # certainly right.
2812         break;;
2813     *.* )
2814         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2815         then :; else
2816            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2817         fi
2818         # We set ac_cv_exeext here because the later test for it is not
2819         # safe: cross compilers may not add the suffix if given an `-o'
2820         # argument, so we may need to know it at that point already.
2821         # Even if this section looks crufty: it has the advantage of
2822         # actually working.
2823         break;;
2824     * )
2825         break;;
2826   esac
2827 done
2828 test "$ac_cv_exeext" = no && ac_cv_exeext=
2829
2830 else
2831   echo "$as_me: failed program was:" >&5
2832 sed 's/^/| /' conftest.$ac_ext >&5
2833
2834 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2835 See \`config.log' for more details." >&5
2836 echo "$as_me: error: C compiler cannot create executables
2837 See \`config.log' for more details." >&2;}
2838    { (exit 77); exit 77; }; }
2839 fi
2840
2841 ac_exeext=$ac_cv_exeext
2842 { echo "$as_me:$LINENO: result: $ac_file" >&5
2843 echo "${ECHO_T}$ac_file" >&6; }
2844
2845 # Check that the compiler produces executables we can run.  If not, either
2846 # the compiler is broken, or we cross compile.
2847 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2848 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2849 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2850 # If not cross compiling, check that we can run a simple program.
2851 if test "$cross_compiling" != yes; then
2852   if { ac_try='./$ac_file'
2853   { (case "(($ac_try" in
2854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2855   *) ac_try_echo=$ac_try;;
2856 esac
2857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2858   (eval "$ac_try") 2>&5
2859   ac_status=$?
2860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861   (exit $ac_status); }; }; then
2862     cross_compiling=no
2863   else
2864     if test "$cross_compiling" = maybe; then
2865         cross_compiling=yes
2866     else
2867         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2868 If you meant to cross compile, use \`--host'.
2869 See \`config.log' for more details." >&5
2870 echo "$as_me: error: cannot run C compiled programs.
2871 If you meant to cross compile, use \`--host'.
2872 See \`config.log' for more details." >&2;}
2873    { (exit 1); exit 1; }; }
2874     fi
2875   fi
2876 fi
2877 { echo "$as_me:$LINENO: result: yes" >&5
2878 echo "${ECHO_T}yes" >&6; }
2879
2880 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2881 ac_clean_files=$ac_clean_files_save
2882 # Check that the compiler produces executables we can run.  If not, either
2883 # the compiler is broken, or we cross compile.
2884 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2885 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2886 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2887 echo "${ECHO_T}$cross_compiling" >&6; }
2888
2889 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2890 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2891 if { (ac_try="$ac_link"
2892 case "(($ac_try" in
2893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2894   *) ac_try_echo=$ac_try;;
2895 esac
2896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2897   (eval "$ac_link") 2>&5
2898   ac_status=$?
2899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900   (exit $ac_status); }; then
2901   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2902 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2903 # work properly (i.e., refer to `conftest.exe'), while it won't with
2904 # `rm'.
2905 for ac_file in conftest.exe conftest conftest.*; do
2906   test -f "$ac_file" || continue
2907   case $ac_file in
2908     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2909     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2910           break;;
2911     * ) break;;
2912   esac
2913 done
2914 else
2915   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2916 See \`config.log' for more details." >&5
2917 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2918 See \`config.log' for more details." >&2;}
2919    { (exit 1); exit 1; }; }
2920 fi
2921
2922 rm -f conftest$ac_cv_exeext
2923 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2924 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2925
2926 rm -f conftest.$ac_ext
2927 EXEEXT=$ac_cv_exeext
2928 ac_exeext=$EXEEXT
2929 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2930 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2931 if test "${ac_cv_objext+set}" = set; then
2932   echo $ECHO_N "(cached) $ECHO_C" >&6
2933 else
2934   cat >conftest.$ac_ext <<_ACEOF
2935 /* confdefs.h.  */
2936 _ACEOF
2937 cat confdefs.h >>conftest.$ac_ext
2938 cat >>conftest.$ac_ext <<_ACEOF
2939 /* end confdefs.h.  */
2940
2941 int
2942 main ()
2943 {
2944
2945   ;
2946   return 0;
2947 }
2948 _ACEOF
2949 rm -f conftest.o conftest.obj
2950 if { (ac_try="$ac_compile"
2951 case "(($ac_try" in
2952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2953   *) ac_try_echo=$ac_try;;
2954 esac
2955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2956   (eval "$ac_compile") 2>&5
2957   ac_status=$?
2958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959   (exit $ac_status); }; then
2960   for ac_file in conftest.o conftest.obj conftest.*; do
2961   test -f "$ac_file" || continue;
2962   case $ac_file in
2963     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2964     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2965        break;;
2966   esac
2967 done
2968 else
2969   echo "$as_me: failed program was:" >&5
2970 sed 's/^/| /' conftest.$ac_ext >&5
2971
2972 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2973 See \`config.log' for more details." >&5
2974 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2975 See \`config.log' for more details." >&2;}
2976    { (exit 1); exit 1; }; }
2977 fi
2978
2979 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2980 fi
2981 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2982 echo "${ECHO_T}$ac_cv_objext" >&6; }
2983 OBJEXT=$ac_cv_objext
2984 ac_objext=$OBJEXT
2985 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2986 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2987 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2988   echo $ECHO_N "(cached) $ECHO_C" >&6
2989 else
2990   cat >conftest.$ac_ext <<_ACEOF
2991 /* confdefs.h.  */
2992 _ACEOF
2993 cat confdefs.h >>conftest.$ac_ext
2994 cat >>conftest.$ac_ext <<_ACEOF
2995 /* end confdefs.h.  */
2996
2997 int
2998 main ()
2999 {
3000 #ifndef __GNUC__
3001        choke me
3002 #endif
3003
3004   ;
3005   return 0;
3006 }
3007 _ACEOF
3008 rm -f conftest.$ac_objext
3009 if { (ac_try="$ac_compile"
3010 case "(($ac_try" in
3011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3012   *) ac_try_echo=$ac_try;;
3013 esac
3014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3015   (eval "$ac_compile") 2>conftest.er1
3016   ac_status=$?
3017   grep -v '^ *+' conftest.er1 >conftest.err
3018   rm -f conftest.er1
3019   cat conftest.err >&5
3020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021   (exit $ac_status); } &&
3022          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3023   { (case "(($ac_try" in
3024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3025   *) ac_try_echo=$ac_try;;
3026 esac
3027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3028   (eval "$ac_try") 2>&5
3029   ac_status=$?
3030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031   (exit $ac_status); }; } &&
3032          { ac_try='test -s conftest.$ac_objext'
3033   { (case "(($ac_try" in
3034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3035   *) ac_try_echo=$ac_try;;
3036 esac
3037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3038   (eval "$ac_try") 2>&5
3039   ac_status=$?
3040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041   (exit $ac_status); }; }; then
3042   ac_compiler_gnu=yes
3043 else
3044   echo "$as_me: failed program was:" >&5
3045 sed 's/^/| /' conftest.$ac_ext >&5
3046
3047         ac_compiler_gnu=no
3048 fi
3049
3050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3051 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3052
3053 fi
3054 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3055 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3056 GCC=`test $ac_compiler_gnu = yes && echo yes`
3057 ac_test_CFLAGS=${CFLAGS+set}
3058 ac_save_CFLAGS=$CFLAGS
3059 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3060 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3061 if test "${ac_cv_prog_cc_g+set}" = set; then
3062   echo $ECHO_N "(cached) $ECHO_C" >&6
3063 else
3064   ac_save_c_werror_flag=$ac_c_werror_flag
3065    ac_c_werror_flag=yes
3066    ac_cv_prog_cc_g=no
3067    CFLAGS="-g"
3068    cat >conftest.$ac_ext <<_ACEOF
3069 /* confdefs.h.  */
3070 _ACEOF
3071 cat confdefs.h >>conftest.$ac_ext
3072 cat >>conftest.$ac_ext <<_ACEOF
3073 /* end confdefs.h.  */
3074
3075 int
3076 main ()
3077 {
3078
3079   ;
3080   return 0;
3081 }
3082 _ACEOF
3083 rm -f conftest.$ac_objext
3084 if { (ac_try="$ac_compile"
3085 case "(($ac_try" in
3086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087   *) ac_try_echo=$ac_try;;
3088 esac
3089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3090   (eval "$ac_compile") 2>conftest.er1
3091   ac_status=$?
3092   grep -v '^ *+' conftest.er1 >conftest.err
3093   rm -f conftest.er1
3094   cat conftest.err >&5
3095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096   (exit $ac_status); } &&
3097          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3098   { (case "(($ac_try" in
3099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3100   *) ac_try_echo=$ac_try;;
3101 esac
3102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3103   (eval "$ac_try") 2>&5
3104   ac_status=$?
3105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106   (exit $ac_status); }; } &&
3107          { ac_try='test -s conftest.$ac_objext'
3108   { (case "(($ac_try" in
3109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3110   *) ac_try_echo=$ac_try;;
3111 esac
3112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3113   (eval "$ac_try") 2>&5
3114   ac_status=$?
3115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3116   (exit $ac_status); }; }; then
3117   ac_cv_prog_cc_g=yes
3118 else
3119   echo "$as_me: failed program was:" >&5
3120 sed 's/^/| /' conftest.$ac_ext >&5
3121
3122         CFLAGS=""
3123       cat >conftest.$ac_ext <<_ACEOF
3124 /* confdefs.h.  */
3125 _ACEOF
3126 cat confdefs.h >>conftest.$ac_ext
3127 cat >>conftest.$ac_ext <<_ACEOF
3128 /* end confdefs.h.  */
3129
3130 int
3131 main ()
3132 {
3133
3134   ;
3135   return 0;
3136 }
3137 _ACEOF
3138 rm -f conftest.$ac_objext
3139 if { (ac_try="$ac_compile"
3140 case "(($ac_try" in
3141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142   *) ac_try_echo=$ac_try;;
3143 esac
3144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3145   (eval "$ac_compile") 2>conftest.er1
3146   ac_status=$?
3147   grep -v '^ *+' conftest.er1 >conftest.err
3148   rm -f conftest.er1
3149   cat conftest.err >&5
3150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151   (exit $ac_status); } &&
3152          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3153   { (case "(($ac_try" in
3154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3155   *) ac_try_echo=$ac_try;;
3156 esac
3157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3158   (eval "$ac_try") 2>&5
3159   ac_status=$?
3160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161   (exit $ac_status); }; } &&
3162          { ac_try='test -s conftest.$ac_objext'
3163   { (case "(($ac_try" in
3164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3165   *) ac_try_echo=$ac_try;;
3166 esac
3167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3168   (eval "$ac_try") 2>&5
3169   ac_status=$?
3170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171   (exit $ac_status); }; }; then
3172   :
3173 else
3174   echo "$as_me: failed program was:" >&5
3175 sed 's/^/| /' conftest.$ac_ext >&5
3176
3177         ac_c_werror_flag=$ac_save_c_werror_flag
3178          CFLAGS="-g"
3179          cat >conftest.$ac_ext <<_ACEOF
3180 /* confdefs.h.  */
3181 _ACEOF
3182 cat confdefs.h >>conftest.$ac_ext
3183 cat >>conftest.$ac_ext <<_ACEOF
3184 /* end confdefs.h.  */
3185
3186 int
3187 main ()
3188 {
3189
3190   ;
3191   return 0;
3192 }
3193 _ACEOF
3194 rm -f conftest.$ac_objext
3195 if { (ac_try="$ac_compile"
3196 case "(($ac_try" in
3197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3198   *) ac_try_echo=$ac_try;;
3199 esac
3200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3201   (eval "$ac_compile") 2>conftest.er1
3202   ac_status=$?
3203   grep -v '^ *+' conftest.er1 >conftest.err
3204   rm -f conftest.er1
3205   cat conftest.err >&5
3206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207   (exit $ac_status); } &&
3208          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3209   { (case "(($ac_try" in
3210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3211   *) ac_try_echo=$ac_try;;
3212 esac
3213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3214   (eval "$ac_try") 2>&5
3215   ac_status=$?
3216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217   (exit $ac_status); }; } &&
3218          { ac_try='test -s conftest.$ac_objext'
3219   { (case "(($ac_try" in
3220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3221   *) ac_try_echo=$ac_try;;
3222 esac
3223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3224   (eval "$ac_try") 2>&5
3225   ac_status=$?
3226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3227   (exit $ac_status); }; }; then
3228   ac_cv_prog_cc_g=yes
3229 else
3230   echo "$as_me: failed program was:" >&5
3231 sed 's/^/| /' conftest.$ac_ext >&5
3232
3233
3234 fi
3235
3236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3237 fi
3238
3239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3240 fi
3241
3242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3243    ac_c_werror_flag=$ac_save_c_werror_flag
3244 fi
3245 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3246 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3247 if test "$ac_test_CFLAGS" = set; then
3248   CFLAGS=$ac_save_CFLAGS
3249 elif test $ac_cv_prog_cc_g = yes; then
3250   if test "$GCC" = yes; then
3251     CFLAGS="-g -O2"
3252   else
3253     CFLAGS="-g"
3254   fi
3255 else
3256   if test "$GCC" = yes; then
3257     CFLAGS="-O2"
3258   else
3259     CFLAGS=
3260   fi
3261 fi
3262 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3263 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3264 if test "${ac_cv_prog_cc_c89+set}" = set; then
3265   echo $ECHO_N "(cached) $ECHO_C" >&6
3266 else
3267   ac_cv_prog_cc_c89=no
3268 ac_save_CC=$CC
3269 cat >conftest.$ac_ext <<_ACEOF
3270 /* confdefs.h.  */
3271 _ACEOF
3272 cat confdefs.h >>conftest.$ac_ext
3273 cat >>conftest.$ac_ext <<_ACEOF
3274 /* end confdefs.h.  */
3275 #include <stdarg.h>
3276 #include <stdio.h>
3277 #include <sys/types.h>
3278 #include <sys/stat.h>
3279 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3280 struct buf { int x; };
3281 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3282 static char *e (p, i)
3283      char **p;
3284      int i;
3285 {
3286   return p[i];
3287 }
3288 static char *f (char * (*g) (char **, int), char **p, ...)
3289 {
3290   char *s;
3291   va_list v;
3292   va_start (v,p);
3293   s = g (p, va_arg (v,int));
3294   va_end (v);
3295   return s;
3296 }
3297
3298 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3299    function prototypes and stuff, but not '\xHH' hex character constants.
3300    These don't provoke an error unfortunately, instead are silently treated
3301    as 'x'.  The following induces an error, until -std is added to get
3302    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3303    array size at least.  It's necessary to write '\x00'==0 to get something
3304    that's true only with -std.  */
3305 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3306
3307 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3308    inside strings and character constants.  */
3309 #define FOO(x) 'x'
3310 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3311
3312 int test (int i, double x);
3313 struct s1 {int (*f) (int a);};
3314 struct s2 {int (*f) (double a);};
3315 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3316 int argc;
3317 char **argv;
3318 int
3319 main ()
3320 {
3321 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3322   ;
3323   return 0;
3324 }
3325 _ACEOF
3326 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3327         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3328 do
3329   CC="$ac_save_CC $ac_arg"
3330   rm -f conftest.$ac_objext
3331 if { (ac_try="$ac_compile"
3332 case "(($ac_try" in
3333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3334   *) ac_try_echo=$ac_try;;
3335 esac
3336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3337   (eval "$ac_compile") 2>conftest.er1
3338   ac_status=$?
3339   grep -v '^ *+' conftest.er1 >conftest.err
3340   rm -f conftest.er1
3341   cat conftest.err >&5
3342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3343   (exit $ac_status); } &&
3344          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3345   { (case "(($ac_try" in
3346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3347   *) ac_try_echo=$ac_try;;
3348 esac
3349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3350   (eval "$ac_try") 2>&5
3351   ac_status=$?
3352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353   (exit $ac_status); }; } &&
3354          { ac_try='test -s conftest.$ac_objext'
3355   { (case "(($ac_try" in
3356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3357   *) ac_try_echo=$ac_try;;
3358 esac
3359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3360   (eval "$ac_try") 2>&5
3361   ac_status=$?
3362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363   (exit $ac_status); }; }; then
3364   ac_cv_prog_cc_c89=$ac_arg
3365 else
3366   echo "$as_me: failed program was:" >&5
3367 sed 's/^/| /' conftest.$ac_ext >&5
3368
3369
3370 fi
3371
3372 rm -f core conftest.err conftest.$ac_objext
3373   test "x$ac_cv_prog_cc_c89" != "xno" && break
3374 done
3375 rm -f conftest.$ac_ext
3376 CC=$ac_save_CC
3377
3378 fi
3379 # AC_CACHE_VAL
3380 case "x$ac_cv_prog_cc_c89" in
3381   x)
3382     { echo "$as_me:$LINENO: result: none needed" >&5
3383 echo "${ECHO_T}none needed" >&6; } ;;
3384   xno)
3385     { echo "$as_me:$LINENO: result: unsupported" >&5
3386 echo "${ECHO_T}unsupported" >&6; } ;;
3387   *)
3388     CC="$CC $ac_cv_prog_cc_c89"
3389     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3390 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3391 esac
3392
3393
3394 ac_ext=c
3395 ac_cpp='$CPP $CPPFLAGS'
3396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3399
3400
3401 ac_ext=c
3402 ac_cpp='$CPP $CPPFLAGS'
3403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3406 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3407 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3408 # On Suns, sometimes $CPP names a directory.
3409 if test -n "$CPP" && test -d "$CPP"; then
3410   CPP=
3411 fi
3412 if test -z "$CPP"; then
3413   if test "${ac_cv_prog_CPP+set}" = set; then
3414   echo $ECHO_N "(cached) $ECHO_C" >&6
3415 else
3416       # Double quotes because CPP needs to be expanded
3417     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3418     do
3419       ac_preproc_ok=false
3420 for ac_c_preproc_warn_flag in '' yes
3421 do
3422   # Use a header file that comes with gcc, so configuring glibc
3423   # with a fresh cross-compiler works.
3424   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3425   # <limits.h> exists even on freestanding compilers.
3426   # On the NeXT, cc -E runs the code through the compiler's parser,
3427   # not just through cpp. "Syntax error" is here to catch this case.
3428   cat >conftest.$ac_ext <<_ACEOF
3429 /* confdefs.h.  */
3430 _ACEOF
3431 cat confdefs.h >>conftest.$ac_ext
3432 cat >>conftest.$ac_ext <<_ACEOF
3433 /* end confdefs.h.  */
3434 #ifdef __STDC__
3435 # include <limits.h>
3436 #else
3437 # include <assert.h>
3438 #endif
3439                      Syntax error
3440 _ACEOF
3441 if { (ac_try="$ac_cpp conftest.$ac_ext"
3442 case "(($ac_try" in
3443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3444   *) ac_try_echo=$ac_try;;
3445 esac
3446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3447   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3448   ac_status=$?
3449   grep -v '^ *+' conftest.er1 >conftest.err
3450   rm -f conftest.er1
3451   cat conftest.err >&5
3452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453   (exit $ac_status); } >/dev/null; then
3454   if test -s conftest.err; then
3455     ac_cpp_err=$ac_c_preproc_warn_flag
3456     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3457   else
3458     ac_cpp_err=
3459   fi
3460 else
3461   ac_cpp_err=yes
3462 fi
3463 if test -z "$ac_cpp_err"; then
3464   :
3465 else
3466   echo "$as_me: failed program was:" >&5
3467 sed 's/^/| /' conftest.$ac_ext >&5
3468
3469   # Broken: fails on valid input.
3470 continue
3471 fi
3472
3473 rm -f conftest.err conftest.$ac_ext
3474
3475   # OK, works on sane cases.  Now check whether nonexistent headers
3476   # can be detected and how.
3477   cat >conftest.$ac_ext <<_ACEOF
3478 /* confdefs.h.  */
3479 _ACEOF
3480 cat confdefs.h >>conftest.$ac_ext
3481 cat >>conftest.$ac_ext <<_ACEOF
3482 /* end confdefs.h.  */
3483 #include <ac_nonexistent.h>
3484 _ACEOF
3485 if { (ac_try="$ac_cpp conftest.$ac_ext"
3486 case "(($ac_try" in
3487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3488   *) ac_try_echo=$ac_try;;
3489 esac
3490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3491   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3492   ac_status=$?
3493   grep -v '^ *+' conftest.er1 >conftest.err
3494   rm -f conftest.er1
3495   cat conftest.err >&5
3496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3497   (exit $ac_status); } >/dev/null; then
3498   if test -s conftest.err; then
3499     ac_cpp_err=$ac_c_preproc_warn_flag
3500     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3501   else
3502     ac_cpp_err=
3503   fi
3504 else
3505   ac_cpp_err=yes
3506 fi
3507 if test -z "$ac_cpp_err"; then
3508   # Broken: success on invalid input.
3509 continue
3510 else
3511   echo "$as_me: failed program was:" >&5
3512 sed 's/^/| /' conftest.$ac_ext >&5
3513
3514   # Passes both tests.
3515 ac_preproc_ok=:
3516 break
3517 fi
3518
3519 rm -f conftest.err conftest.$ac_ext
3520
3521 done
3522 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3523 rm -f conftest.err conftest.$ac_ext
3524 if $ac_preproc_ok; then
3525   break
3526 fi
3527
3528     done
3529     ac_cv_prog_CPP=$CPP
3530
3531 fi
3532   CPP=$ac_cv_prog_CPP
3533 else
3534   ac_cv_prog_CPP=$CPP
3535 fi
3536 { echo "$as_me:$LINENO: result: $CPP" >&5
3537 echo "${ECHO_T}$CPP" >&6; }
3538 ac_preproc_ok=false
3539 for ac_c_preproc_warn_flag in '' yes
3540 do
3541   # Use a header file that comes with gcc, so configuring glibc
3542   # with a fresh cross-compiler works.
3543   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3544   # <limits.h> exists even on freestanding compilers.
3545   # On the NeXT, cc -E runs the code through the compiler's parser,
3546   # not just through cpp. "Syntax error" is here to catch this case.
3547   cat >conftest.$ac_ext <<_ACEOF
3548 /* confdefs.h.  */
3549 _ACEOF
3550 cat confdefs.h >>conftest.$ac_ext
3551 cat >>conftest.$ac_ext <<_ACEOF
3552 /* end confdefs.h.  */
3553 #ifdef __STDC__
3554 # include <limits.h>
3555 #else
3556 # include <assert.h>
3557 #endif
3558                      Syntax error
3559 _ACEOF
3560 if { (ac_try="$ac_cpp conftest.$ac_ext"
3561 case "(($ac_try" in
3562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3563   *) ac_try_echo=$ac_try;;
3564 esac
3565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3566   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3567   ac_status=$?
3568   grep -v '^ *+' conftest.er1 >conftest.err
3569   rm -f conftest.er1
3570   cat conftest.err >&5
3571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572   (exit $ac_status); } >/dev/null; then
3573   if test -s conftest.err; then
3574     ac_cpp_err=$ac_c_preproc_warn_flag
3575     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3576   else
3577     ac_cpp_err=
3578   fi
3579 else
3580   ac_cpp_err=yes
3581 fi
3582 if test -z "$ac_cpp_err"; then
3583   :
3584 else
3585   echo "$as_me: failed program was:" >&5
3586 sed 's/^/| /' conftest.$ac_ext >&5
3587
3588   # Broken: fails on valid input.
3589 continue
3590 fi
3591
3592 rm -f conftest.err conftest.$ac_ext
3593
3594   # OK, works on sane cases.  Now check whether nonexistent headers
3595   # can be detected and how.
3596   cat >conftest.$ac_ext <<_ACEOF
3597 /* confdefs.h.  */
3598 _ACEOF
3599 cat confdefs.h >>conftest.$ac_ext
3600 cat >>conftest.$ac_ext <<_ACEOF
3601 /* end confdefs.h.  */
3602 #include <ac_nonexistent.h>
3603 _ACEOF
3604 if { (ac_try="$ac_cpp conftest.$ac_ext"
3605 case "(($ac_try" in
3606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3607   *) ac_try_echo=$ac_try;;
3608 esac
3609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3610   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3611   ac_status=$?
3612   grep -v '^ *+' conftest.er1 >conftest.err
3613   rm -f conftest.er1
3614   cat conftest.err >&5
3615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616   (exit $ac_status); } >/dev/null; then
3617   if test -s conftest.err; then
3618     ac_cpp_err=$ac_c_preproc_warn_flag
3619     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3620   else
3621     ac_cpp_err=
3622   fi
3623 else
3624   ac_cpp_err=yes
3625 fi
3626 if test -z "$ac_cpp_err"; then
3627   # Broken: success on invalid input.
3628 continue
3629 else
3630   echo "$as_me: failed program was:" >&5
3631 sed 's/^/| /' conftest.$ac_ext >&5
3632
3633   # Passes both tests.
3634 ac_preproc_ok=:
3635 break
3636 fi
3637
3638 rm -f conftest.err conftest.$ac_ext
3639
3640 done
3641 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3642 rm -f conftest.err conftest.$ac_ext
3643 if $ac_preproc_ok; then
3644   :
3645 else
3646   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3647 See \`config.log' for more details." >&5
3648 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3649 See \`config.log' for more details." >&2;}
3650    { (exit 1); exit 1; }; }
3651 fi
3652
3653 ac_ext=c
3654 ac_cpp='$CPP $CPPFLAGS'
3655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3658
3659
3660 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3661 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3662 if test "${ac_cv_path_GREP+set}" = set; then
3663   echo $ECHO_N "(cached) $ECHO_C" >&6
3664 else
3665   # Extract the first word of "grep ggrep" to use in msg output
3666 if test -z "$GREP"; then
3667 set dummy grep ggrep; ac_prog_name=$2
3668 if test "${ac_cv_path_GREP+set}" = set; then
3669   echo $ECHO_N "(cached) $ECHO_C" >&6
3670 else
3671   ac_path_GREP_found=false
3672 # Loop through the user's path and test for each of PROGNAME-LIST
3673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3674 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3675 do
3676   IFS=$as_save_IFS
3677   test -z "$as_dir" && as_dir=.
3678   for ac_prog in grep ggrep; do
3679   for ac_exec_ext in '' $ac_executable_extensions; do
3680     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3681     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3682     # Check for GNU ac_path_GREP and select it if it is found.
3683   # Check for GNU $ac_path_GREP
3684 case `"$ac_path_GREP" --version 2>&1` in
3685 *GNU*)
3686   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3687 *)
3688   ac_count=0
3689   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3690   while :
3691   do
3692     cat "conftest.in" "conftest.in" >"conftest.tmp"
3693     mv "conftest.tmp" "conftest.in"
3694     cp "conftest.in" "conftest.nl"
3695     echo 'GREP' >> "conftest.nl"
3696     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3697     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3698     ac_count=`expr $ac_count + 1`
3699     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3700       # Best one so far, save it but keep looking for a better one
3701       ac_cv_path_GREP="$ac_path_GREP"
3702       ac_path_GREP_max=$ac_count
3703     fi
3704     # 10*(2^10) chars as input seems more than enough
3705     test $ac_count -gt 10 && break
3706   done
3707   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3708 esac
3709
3710
3711     $ac_path_GREP_found && break 3
3712   done
3713 done
3714
3715 done
3716 IFS=$as_save_IFS
3717
3718
3719 fi
3720
3721 GREP="$ac_cv_path_GREP"
3722 if test -z "$GREP"; then
3723   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3724 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3725    { (exit 1); exit 1; }; }
3726 fi
3727
3728 else
3729   ac_cv_path_GREP=$GREP
3730 fi
3731
3732
3733 fi
3734 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3735 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3736  GREP="$ac_cv_path_GREP"
3737
3738
3739 { echo "$as_me:$LINENO: checking for egrep" >&5
3740 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3741 if test "${ac_cv_path_EGREP+set}" = set; then
3742   echo $ECHO_N "(cached) $ECHO_C" >&6
3743 else
3744   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3745    then ac_cv_path_EGREP="$GREP -E"
3746    else
3747      # Extract the first word of "egrep" to use in msg output
3748 if test -z "$EGREP"; then
3749 set dummy egrep; ac_prog_name=$2
3750 if test "${ac_cv_path_EGREP+set}" = set; then
3751   echo $ECHO_N "(cached) $ECHO_C" >&6
3752 else
3753   ac_path_EGREP_found=false
3754 # Loop through the user's path and test for each of PROGNAME-LIST
3755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3756 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3757 do
3758   IFS=$as_save_IFS
3759   test -z "$as_dir" && as_dir=.
3760   for ac_prog in egrep; do
3761   for ac_exec_ext in '' $ac_executable_extensions; do
3762     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3763     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3764     # Check for GNU ac_path_EGREP and select it if it is found.
3765   # Check for GNU $ac_path_EGREP
3766 case `"$ac_path_EGREP" --version 2>&1` in
3767 *GNU*)
3768   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3769 *)
3770   ac_count=0
3771   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3772   while :
3773   do
3774     cat "conftest.in" "conftest.in" >"conftest.tmp"
3775     mv "conftest.tmp" "conftest.in"
3776     cp "conftest.in" "conftest.nl"
3777     echo 'EGREP' >> "conftest.nl"
3778     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3779     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3780     ac_count=`expr $ac_count + 1`
3781     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3782       # Best one so far, save it but keep looking for a better one
3783       ac_cv_path_EGREP="$ac_path_EGREP"
3784       ac_path_EGREP_max=$ac_count
3785     fi
3786     # 10*(2^10) chars as input seems more than enough
3787     test $ac_count -gt 10 && break
3788   done
3789   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3790 esac
3791
3792
3793     $ac_path_EGREP_found && break 3
3794   done
3795 done
3796
3797 done
3798 IFS=$as_save_IFS
3799
3800
3801 fi
3802
3803 EGREP="$ac_cv_path_EGREP"
3804 if test -z "$EGREP"; then
3805   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3806 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3807    { (exit 1); exit 1; }; }
3808 fi
3809
3810 else
3811   ac_cv_path_EGREP=$EGREP
3812 fi
3813
3814
3815    fi
3816 fi
3817 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3818 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3819  EGREP="$ac_cv_path_EGREP"
3820
3821
3822 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3823 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3824 if test "${ac_cv_header_stdc+set}" = set; then
3825   echo $ECHO_N "(cached) $ECHO_C" >&6
3826 else
3827   cat >conftest.$ac_ext <<_ACEOF
3828 /* confdefs.h.  */
3829 _ACEOF
3830 cat confdefs.h >>conftest.$ac_ext
3831 cat >>conftest.$ac_ext <<_ACEOF
3832 /* end confdefs.h.  */
3833 #include <stdlib.h>
3834 #include <stdarg.h>
3835 #include <string.h>
3836 #include <float.h>
3837
3838 int
3839 main ()
3840 {
3841
3842   ;
3843   return 0;
3844 }
3845 _ACEOF
3846 rm -f conftest.$ac_objext
3847 if { (ac_try="$ac_compile"
3848 case "(($ac_try" in
3849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3850   *) ac_try_echo=$ac_try;;
3851 esac
3852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3853   (eval "$ac_compile") 2>conftest.er1
3854   ac_status=$?
3855   grep -v '^ *+' conftest.er1 >conftest.err
3856   rm -f conftest.er1
3857   cat conftest.err >&5
3858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859   (exit $ac_status); } &&
3860          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3861   { (case "(($ac_try" in
3862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3863   *) ac_try_echo=$ac_try;;
3864 esac
3865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3866   (eval "$ac_try") 2>&5
3867   ac_status=$?
3868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869   (exit $ac_status); }; } &&
3870          { ac_try='test -s conftest.$ac_objext'
3871   { (case "(($ac_try" in
3872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3873   *) ac_try_echo=$ac_try;;
3874 esac
3875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3876   (eval "$ac_try") 2>&5
3877   ac_status=$?
3878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879   (exit $ac_status); }; }; then
3880   ac_cv_header_stdc=yes
3881 else
3882   echo "$as_me: failed program was:" >&5
3883 sed 's/^/| /' conftest.$ac_ext >&5
3884
3885         ac_cv_header_stdc=no
3886 fi
3887
3888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3889
3890 if test $ac_cv_header_stdc = yes; then
3891   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3892   cat >conftest.$ac_ext <<_ACEOF
3893 /* confdefs.h.  */
3894 _ACEOF
3895 cat confdefs.h >>conftest.$ac_ext
3896 cat >>conftest.$ac_ext <<_ACEOF
3897 /* end confdefs.h.  */
3898 #include <string.h>
3899
3900 _ACEOF
3901 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3902   $EGREP "memchr" >/dev/null 2>&1; then
3903   :
3904 else
3905   ac_cv_header_stdc=no
3906 fi
3907 rm -f conftest*
3908
3909 fi
3910
3911 if test $ac_cv_header_stdc = yes; then
3912   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3913   cat >conftest.$ac_ext <<_ACEOF
3914 /* confdefs.h.  */
3915 _ACEOF
3916 cat confdefs.h >>conftest.$ac_ext
3917 cat >>conftest.$ac_ext <<_ACEOF
3918 /* end confdefs.h.  */
3919 #include <stdlib.h>
3920
3921 _ACEOF
3922 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3923   $EGREP "free" >/dev/null 2>&1; then
3924   :
3925 else
3926   ac_cv_header_stdc=no
3927 fi
3928 rm -f conftest*
3929
3930 fi
3931
3932 if test $ac_cv_header_stdc = yes; then
3933   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3934   if test "$cross_compiling" = yes; then
3935   :
3936 else
3937   cat >conftest.$ac_ext <<_ACEOF
3938 /* confdefs.h.  */
3939 _ACEOF
3940 cat confdefs.h >>conftest.$ac_ext
3941 cat >>conftest.$ac_ext <<_ACEOF
3942 /* end confdefs.h.  */
3943 #include <ctype.h>
3944 #include <stdlib.h>
3945 #if ((' ' & 0x0FF) == 0x020)
3946 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3947 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3948 #else
3949 # define ISLOWER(c) \
3950                    (('a' <= (c) && (c) <= 'i') \
3951                      || ('j' <= (c) && (c) <= 'r') \
3952                      || ('s' <= (c) && (c) <= 'z'))
3953 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3954 #endif
3955
3956 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3957 int
3958 main ()
3959 {
3960   int i;
3961   for (i = 0; i < 256; i++)
3962     if (XOR (islower (i), ISLOWER (i))
3963         || toupper (i) != TOUPPER (i))
3964       return 2;
3965   return 0;
3966 }
3967 _ACEOF
3968 rm -f conftest$ac_exeext
3969 if { (ac_try="$ac_link"
3970 case "(($ac_try" in
3971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3972   *) ac_try_echo=$ac_try;;
3973 esac
3974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3975   (eval "$ac_link") 2>&5
3976   ac_status=$?
3977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3978   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3979   { (case "(($ac_try" in
3980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3981   *) ac_try_echo=$ac_try;;
3982 esac
3983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3984   (eval "$ac_try") 2>&5
3985   ac_status=$?
3986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3987   (exit $ac_status); }; }; then
3988   :
3989 else
3990   echo "$as_me: program exited with status $ac_status" >&5
3991 echo "$as_me: failed program was:" >&5
3992 sed 's/^/| /' conftest.$ac_ext >&5
3993
3994 ( exit $ac_status )
3995 ac_cv_header_stdc=no
3996 fi
3997 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3998 fi
3999
4000
4001 fi
4002 fi
4003 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4004 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4005 if test $ac_cv_header_stdc = yes; then
4006
4007 cat >>confdefs.h <<\_ACEOF
4008 #define STDC_HEADERS 1
4009 _ACEOF
4010
4011 fi
4012
4013 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4024                   inttypes.h stdint.h unistd.h
4025 do
4026 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4027 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4028 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4029 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4030   echo $ECHO_N "(cached) $ECHO_C" >&6
4031 else
4032   cat >conftest.$ac_ext <<_ACEOF
4033 /* confdefs.h.  */
4034 _ACEOF
4035 cat confdefs.h >>conftest.$ac_ext
4036 cat >>conftest.$ac_ext <<_ACEOF
4037 /* end confdefs.h.  */
4038 $ac_includes_default
4039
4040 #include <$ac_header>
4041 _ACEOF
4042 rm -f conftest.$ac_objext
4043 if { (ac_try="$ac_compile"
4044 case "(($ac_try" in
4045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4046   *) ac_try_echo=$ac_try;;
4047 esac
4048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4049   (eval "$ac_compile") 2>conftest.er1
4050   ac_status=$?
4051   grep -v '^ *+' conftest.er1 >conftest.err
4052   rm -f conftest.er1
4053   cat conftest.err >&5
4054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4055   (exit $ac_status); } &&
4056          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4057   { (case "(($ac_try" in
4058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4059   *) ac_try_echo=$ac_try;;
4060 esac
4061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4062   (eval "$ac_try") 2>&5
4063   ac_status=$?
4064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065   (exit $ac_status); }; } &&
4066          { ac_try='test -s conftest.$ac_objext'
4067   { (case "(($ac_try" in
4068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4069   *) ac_try_echo=$ac_try;;
4070 esac
4071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4072   (eval "$ac_try") 2>&5
4073   ac_status=$?
4074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075   (exit $ac_status); }; }; then
4076   eval "$as_ac_Header=yes"
4077 else
4078   echo "$as_me: failed program was:" >&5
4079 sed 's/^/| /' conftest.$ac_ext >&5
4080
4081         eval "$as_ac_Header=no"
4082 fi
4083
4084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4085 fi
4086 ac_res=`eval echo '${'$as_ac_Header'}'`
4087                { echo "$as_me:$LINENO: result: $ac_res" >&5
4088 echo "${ECHO_T}$ac_res" >&6; }
4089 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4090   cat >>confdefs.h <<_ACEOF
4091 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4092 _ACEOF
4093
4094 fi
4095
4096 done
4097
4098
4099 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4100 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4101 if test "${ac_cv_c_bigendian+set}" = set; then
4102   echo $ECHO_N "(cached) $ECHO_C" >&6
4103 else
4104   # See if sys/param.h defines the BYTE_ORDER macro.
4105 cat >conftest.$ac_ext <<_ACEOF
4106 /* confdefs.h.  */
4107 _ACEOF
4108 cat confdefs.h >>conftest.$ac_ext
4109 cat >>conftest.$ac_ext <<_ACEOF
4110 /* end confdefs.h.  */
4111 #include <sys/types.h>
4112 #include <sys/param.h>
4113
4114 int
4115 main ()
4116 {
4117 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4118  bogus endian macros
4119 #endif
4120
4121   ;
4122   return 0;
4123 }
4124 _ACEOF
4125 rm -f conftest.$ac_objext
4126 if { (ac_try="$ac_compile"
4127 case "(($ac_try" in
4128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4129   *) ac_try_echo=$ac_try;;
4130 esac
4131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4132   (eval "$ac_compile") 2>conftest.er1
4133   ac_status=$?
4134   grep -v '^ *+' conftest.er1 >conftest.err
4135   rm -f conftest.er1
4136   cat conftest.err >&5
4137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4138   (exit $ac_status); } &&
4139          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4140   { (case "(($ac_try" in
4141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4142   *) ac_try_echo=$ac_try;;
4143 esac
4144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4145   (eval "$ac_try") 2>&5
4146   ac_status=$?
4147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148   (exit $ac_status); }; } &&
4149          { ac_try='test -s conftest.$ac_objext'
4150   { (case "(($ac_try" in
4151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4152   *) ac_try_echo=$ac_try;;
4153 esac
4154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4155   (eval "$ac_try") 2>&5
4156   ac_status=$?
4157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158   (exit $ac_status); }; }; then
4159   # It does; now see whether it defined to BIG_ENDIAN or not.
4160 cat >conftest.$ac_ext <<_ACEOF
4161 /* confdefs.h.  */
4162 _ACEOF
4163 cat confdefs.h >>conftest.$ac_ext
4164 cat >>conftest.$ac_ext <<_ACEOF
4165 /* end confdefs.h.  */
4166 #include <sys/types.h>
4167 #include <sys/param.h>
4168
4169 int
4170 main ()
4171 {
4172 #if BYTE_ORDER != BIG_ENDIAN
4173  not big endian
4174 #endif
4175
4176   ;
4177   return 0;
4178 }
4179 _ACEOF
4180 rm -f conftest.$ac_objext
4181 if { (ac_try="$ac_compile"
4182 case "(($ac_try" in
4183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4184   *) ac_try_echo=$ac_try;;
4185 esac
4186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4187   (eval "$ac_compile") 2>conftest.er1
4188   ac_status=$?
4189   grep -v '^ *+' conftest.er1 >conftest.err
4190   rm -f conftest.er1
4191   cat conftest.err >&5
4192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193   (exit $ac_status); } &&
4194          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4195   { (case "(($ac_try" in
4196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4197   *) ac_try_echo=$ac_try;;
4198 esac
4199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4200   (eval "$ac_try") 2>&5
4201   ac_status=$?
4202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203   (exit $ac_status); }; } &&
4204          { ac_try='test -s conftest.$ac_objext'
4205   { (case "(($ac_try" in
4206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4207   *) ac_try_echo=$ac_try;;
4208 esac
4209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4210   (eval "$ac_try") 2>&5
4211   ac_status=$?
4212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4213   (exit $ac_status); }; }; then
4214   ac_cv_c_bigendian=yes
4215 else
4216   echo "$as_me: failed program was:" >&5
4217 sed 's/^/| /' conftest.$ac_ext >&5
4218
4219         ac_cv_c_bigendian=no
4220 fi
4221
4222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4223 else
4224   echo "$as_me: failed program was:" >&5
4225 sed 's/^/| /' conftest.$ac_ext >&5
4226
4227         # It does not; compile a test program.
4228 if test "$cross_compiling" = yes; then
4229   # try to guess the endianness by grepping values into an object file
4230   ac_cv_c_bigendian=unknown
4231   cat >conftest.$ac_ext <<_ACEOF
4232 /* confdefs.h.  */
4233 _ACEOF
4234 cat confdefs.h >>conftest.$ac_ext
4235 cat >>conftest.$ac_ext <<_ACEOF
4236 /* end confdefs.h.  */
4237 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4238 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4239 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4240 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4241 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4242 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4243 int
4244 main ()
4245 {
4246  _ascii (); _ebcdic ();
4247   ;
4248   return 0;
4249 }
4250 _ACEOF
4251 rm -f conftest.$ac_objext
4252 if { (ac_try="$ac_compile"
4253 case "(($ac_try" in
4254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4255   *) ac_try_echo=$ac_try;;
4256 esac
4257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4258   (eval "$ac_compile") 2>conftest.er1
4259   ac_status=$?
4260   grep -v '^ *+' conftest.er1 >conftest.err
4261   rm -f conftest.er1
4262   cat conftest.err >&5
4263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4264   (exit $ac_status); } &&
4265          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4266   { (case "(($ac_try" in
4267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4268   *) ac_try_echo=$ac_try;;
4269 esac
4270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4271   (eval "$ac_try") 2>&5
4272   ac_status=$?
4273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274   (exit $ac_status); }; } &&
4275          { ac_try='test -s conftest.$ac_objext'
4276   { (case "(($ac_try" in
4277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4278   *) ac_try_echo=$ac_try;;
4279 esac
4280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4281   (eval "$ac_try") 2>&5
4282   ac_status=$?
4283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4284   (exit $ac_status); }; }; then
4285   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4286   ac_cv_c_bigendian=yes
4287 fi
4288 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4289   if test "$ac_cv_c_bigendian" = unknown; then
4290     ac_cv_c_bigendian=no
4291   else
4292     # finding both strings is unlikely to happen, but who knows?
4293     ac_cv_c_bigendian=unknown
4294   fi
4295 fi
4296 else
4297   echo "$as_me: failed program was:" >&5
4298 sed 's/^/| /' conftest.$ac_ext >&5
4299
4300
4301 fi
4302
4303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4304 else
4305   cat >conftest.$ac_ext <<_ACEOF
4306 /* confdefs.h.  */
4307 _ACEOF
4308 cat confdefs.h >>conftest.$ac_ext
4309 cat >>conftest.$ac_ext <<_ACEOF
4310 /* end confdefs.h.  */
4311 $ac_includes_default
4312 int
4313 main ()
4314 {
4315
4316   /* Are we little or big endian?  From Harbison&Steele.  */
4317   union
4318   {
4319     long int l;
4320     char c[sizeof (long int)];
4321   } u;
4322   u.l = 1;
4323   return u.c[sizeof (long int) - 1] == 1;
4324
4325   ;
4326   return 0;
4327 }
4328 _ACEOF
4329 rm -f conftest$ac_exeext
4330 if { (ac_try="$ac_link"
4331 case "(($ac_try" in
4332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4333   *) ac_try_echo=$ac_try;;
4334 esac
4335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4336   (eval "$ac_link") 2>&5
4337   ac_status=$?
4338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4339   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4340   { (case "(($ac_try" in
4341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4342   *) ac_try_echo=$ac_try;;
4343 esac
4344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4345   (eval "$ac_try") 2>&5
4346   ac_status=$?
4347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348   (exit $ac_status); }; }; then
4349   ac_cv_c_bigendian=no
4350 else
4351   echo "$as_me: program exited with status $ac_status" >&5
4352 echo "$as_me: failed program was:" >&5
4353 sed 's/^/| /' conftest.$ac_ext >&5
4354
4355 ( exit $ac_status )
4356 ac_cv_c_bigendian=yes
4357 fi
4358 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4359 fi
4360
4361
4362 fi
4363
4364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4365 fi
4366 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4367 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4368 case $ac_cv_c_bigendian in
4369   yes)
4370     ENDIAN=big
4371  ;;
4372   no)
4373     ENDIAN=little
4374  ;;
4375   *)
4376     { { echo "$as_me:$LINENO: error: unknown endianness
4377 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4378 echo "$as_me: error: unknown endianness
4379 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4380    { (exit 1); exit 1; }; } ;;
4381 esac
4382
4383
4384 if test "$cross_compiling" = yes; then
4385   LLVM_CROSS_COMPILING=1
4386
4387
4388 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4389 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4390 if test "${ac_cv_build_exeext+set}" = set; then
4391   echo $ECHO_N "(cached) $ECHO_C" >&6
4392 else
4393   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4394   ac_cv_build_exeext=.exe
4395 else
4396   ac_build_prefix=${build_alias}-
4397
4398   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4399 set dummy ${ac_build_prefix}gcc; ac_word=$2
4400 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4402 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4403   echo $ECHO_N "(cached) $ECHO_C" >&6
4404 else
4405   if test -n "$BUILD_CC"; then
4406   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4407 else
4408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4409 for as_dir in $PATH
4410 do
4411   IFS=$as_save_IFS
4412   test -z "$as_dir" && as_dir=.
4413   for ac_exec_ext in '' $ac_executable_extensions; do
4414   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4415     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4416     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4417     break 2
4418   fi
4419 done
4420 done
4421 IFS=$as_save_IFS
4422
4423 fi
4424 fi
4425 BUILD_CC=$ac_cv_prog_BUILD_CC
4426 if test -n "$BUILD_CC"; then
4427   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4428 echo "${ECHO_T}$BUILD_CC" >&6; }
4429 else
4430   { echo "$as_me:$LINENO: result: no" >&5
4431 echo "${ECHO_T}no" >&6; }
4432 fi
4433
4434
4435   if test -z "$BUILD_CC"; then
4436      # Extract the first word of "gcc", so it can be a program name with args.
4437 set dummy gcc; ac_word=$2
4438 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4440 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4441   echo $ECHO_N "(cached) $ECHO_C" >&6
4442 else
4443   if test -n "$BUILD_CC"; then
4444   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4445 else
4446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4447 for as_dir in $PATH
4448 do
4449   IFS=$as_save_IFS
4450   test -z "$as_dir" && as_dir=.
4451   for ac_exec_ext in '' $ac_executable_extensions; do
4452   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4453     ac_cv_prog_BUILD_CC="gcc"
4454     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4455     break 2
4456   fi
4457 done
4458 done
4459 IFS=$as_save_IFS
4460
4461 fi
4462 fi
4463 BUILD_CC=$ac_cv_prog_BUILD_CC
4464 if test -n "$BUILD_CC"; then
4465   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4466 echo "${ECHO_T}$BUILD_CC" >&6; }
4467 else
4468   { echo "$as_me:$LINENO: result: no" >&5
4469 echo "${ECHO_T}no" >&6; }
4470 fi
4471
4472
4473      if test -z "$BUILD_CC"; then
4474        # Extract the first word of "cc", so it can be a program name with args.
4475 set dummy cc; ac_word=$2
4476 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4478 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4479   echo $ECHO_N "(cached) $ECHO_C" >&6
4480 else
4481   if test -n "$BUILD_CC"; then
4482   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4483 else
4484   ac_prog_rejected=no
4485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4486 for as_dir in $PATH
4487 do
4488   IFS=$as_save_IFS
4489   test -z "$as_dir" && as_dir=.
4490   for ac_exec_ext in '' $ac_executable_extensions; do
4491   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4492     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4493        ac_prog_rejected=yes
4494        continue
4495      fi
4496     ac_cv_prog_BUILD_CC="cc"
4497     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4498     break 2
4499   fi
4500 done
4501 done
4502 IFS=$as_save_IFS
4503
4504 if test $ac_prog_rejected = yes; then
4505   # We found a bogon in the path, so make sure we never use it.
4506   set dummy $ac_cv_prog_BUILD_CC
4507   shift
4508   if test $# != 0; then
4509     # We chose a different compiler from the bogus one.
4510     # However, it has the same basename, so the bogon will be chosen
4511     # first if we set BUILD_CC to just the basename; use the full file name.
4512     shift
4513     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4514   fi
4515 fi
4516 fi
4517 fi
4518 BUILD_CC=$ac_cv_prog_BUILD_CC
4519 if test -n "$BUILD_CC"; then
4520   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4521 echo "${ECHO_T}$BUILD_CC" >&6; }
4522 else
4523   { echo "$as_me:$LINENO: result: no" >&5
4524 echo "${ECHO_T}no" >&6; }
4525 fi
4526
4527
4528      fi
4529   fi
4530   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4531 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4532    { (exit 1); exit 1; }; }
4533   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4534   rm -f conftest*
4535   echo 'int main () { return 0; }' > conftest.$ac_ext
4536   ac_cv_build_exeext=
4537   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4538   (eval $ac_build_link) 2>&5
4539   ac_status=$?
4540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4541   (exit $ac_status); }; then
4542     for file in conftest.*; do
4543       case $file in
4544       *.c | *.o | *.obj | *.dSYM) ;;
4545       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4546       esac
4547     done
4548   else
4549     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4550 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4551    { (exit 1); exit 1; }; }
4552   fi
4553   rm -f conftest*
4554   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4555 fi
4556 fi
4557
4558 BUILD_EXEEXT=""
4559 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4560 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4561 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4562 ac_build_exeext=$BUILD_EXEEXT
4563
4564   ac_build_prefix=${build_alias}-
4565   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4566 set dummy ${ac_build_prefix}g++; ac_word=$2
4567 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4569 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4570   echo $ECHO_N "(cached) $ECHO_C" >&6
4571 else
4572   if test -n "$BUILD_CXX"; then
4573   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4574 else
4575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4576 for as_dir in $PATH
4577 do
4578   IFS=$as_save_IFS
4579   test -z "$as_dir" && as_dir=.
4580   for ac_exec_ext in '' $ac_executable_extensions; do
4581   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4582     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4583     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4584     break 2
4585   fi
4586 done
4587 done
4588 IFS=$as_save_IFS
4589
4590 fi
4591 fi
4592 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4593 if test -n "$BUILD_CXX"; then
4594   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4595 echo "${ECHO_T}$BUILD_CXX" >&6; }
4596 else
4597   { echo "$as_me:$LINENO: result: no" >&5
4598 echo "${ECHO_T}no" >&6; }
4599 fi
4600
4601
4602   if test -z "$BUILD_CXX"; then
4603      # Extract the first word of "g++", so it can be a program name with args.
4604 set dummy g++; ac_word=$2
4605 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4607 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4608   echo $ECHO_N "(cached) $ECHO_C" >&6
4609 else
4610   if test -n "$BUILD_CXX"; then
4611   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4612 else
4613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4614 for as_dir in $PATH
4615 do
4616   IFS=$as_save_IFS
4617   test -z "$as_dir" && as_dir=.
4618   for ac_exec_ext in '' $ac_executable_extensions; do
4619   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4620     ac_cv_prog_BUILD_CXX="g++"
4621     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4622     break 2
4623   fi
4624 done
4625 done
4626 IFS=$as_save_IFS
4627
4628 fi
4629 fi
4630 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4631 if test -n "$BUILD_CXX"; then
4632   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4633 echo "${ECHO_T}$BUILD_CXX" >&6; }
4634 else
4635   { echo "$as_me:$LINENO: result: no" >&5
4636 echo "${ECHO_T}no" >&6; }
4637 fi
4638
4639
4640      if test -z "$BUILD_CXX"; then
4641        # Extract the first word of "c++", so it can be a program name with args.
4642 set dummy c++; ac_word=$2
4643 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4645 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4646   echo $ECHO_N "(cached) $ECHO_C" >&6
4647 else
4648   if test -n "$BUILD_CXX"; then
4649   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4650 else
4651   ac_prog_rejected=no
4652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4653 for as_dir in $PATH
4654 do
4655   IFS=$as_save_IFS
4656   test -z "$as_dir" && as_dir=.
4657   for ac_exec_ext in '' $ac_executable_extensions; do
4658   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4659     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4660        ac_prog_rejected=yes
4661        continue
4662      fi
4663     ac_cv_prog_BUILD_CXX="c++"
4664     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4665     break 2
4666   fi
4667 done
4668 done
4669 IFS=$as_save_IFS
4670
4671 if test $ac_prog_rejected = yes; then
4672   # We found a bogon in the path, so make sure we never use it.
4673   set dummy $ac_cv_prog_BUILD_CXX
4674   shift
4675   if test $# != 0; then
4676     # We chose a different compiler from the bogus one.
4677     # However, it has the same basename, so the bogon will be chosen
4678     # first if we set BUILD_CXX to just the basename; use the full file name.
4679     shift
4680     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4681   fi
4682 fi
4683 fi
4684 fi
4685 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4686 if test -n "$BUILD_CXX"; then
4687   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4688 echo "${ECHO_T}$BUILD_CXX" >&6; }
4689 else
4690   { echo "$as_me:$LINENO: result: no" >&5
4691 echo "${ECHO_T}no" >&6; }
4692 fi
4693
4694
4695      fi
4696   fi
4697 else
4698   LLVM_CROSS_COMPILING=0
4699
4700 fi
4701
4702 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4703   cvsbuild="yes"
4704   optimize="no"
4705   CVSBUILD=CVSBUILD=1
4706
4707 else
4708   cvsbuild="no"
4709   optimize="yes"
4710 fi
4711
4712
4713 # Check whether --enable-optimized was given.
4714 if test "${enable_optimized+set}" = set; then
4715   enableval=$enable_optimized;
4716 else
4717   enableval=$optimize
4718 fi
4719
4720 if test ${enableval} = "no" ; then
4721   ENABLE_OPTIMIZED=
4722
4723 else
4724   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4725
4726 fi
4727
4728 # Check whether --enable-profiling was given.
4729 if test "${enable_profiling+set}" = set; then
4730   enableval=$enable_profiling;
4731 else
4732   enableval="no"
4733 fi
4734
4735 if test ${enableval} = "no" ; then
4736   ENABLE_PROFILING=
4737
4738 else
4739   ENABLE_PROFILING=ENABLE_PROFILING=1
4740
4741 fi
4742
4743 # Check whether --enable-assertions was given.
4744 if test "${enable_assertions+set}" = set; then
4745   enableval=$enable_assertions;
4746 else
4747   enableval="yes"
4748 fi
4749
4750 if test ${enableval} = "yes" ; then
4751   DISABLE_ASSERTIONS=
4752
4753 else
4754   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4755
4756 fi
4757
4758 # Check whether --enable-expensive-checks was given.
4759 if test "${enable_expensive_checks+set}" = set; then
4760   enableval=$enable_expensive_checks;
4761 else
4762   enableval="no"
4763 fi
4764
4765 if test ${enableval} = "yes" ; then
4766   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4767
4768   EXPENSIVE_CHECKS=yes
4769
4770 else
4771   ENABLE_EXPENSIVE_CHECKS=
4772
4773   EXPENSIVE_CHECKS=no
4774
4775 fi
4776
4777 # Check whether --enable-debug-runtime was given.
4778 if test "${enable_debug_runtime+set}" = set; then
4779   enableval=$enable_debug_runtime;
4780 else
4781   enableval=no
4782 fi
4783
4784 if test ${enableval} = "no" ; then
4785   DEBUG_RUNTIME=
4786
4787 else
4788   DEBUG_RUNTIME=DEBUG_RUNTIME=1
4789
4790 fi
4791
4792 # Check whether --enable-jit was given.
4793 if test "${enable_jit+set}" = set; then
4794   enableval=$enable_jit;
4795 else
4796   enableval=default
4797 fi
4798
4799 if test ${enableval} = "no"
4800 then
4801   JIT=
4802
4803 else
4804   case "$llvm_cv_target_arch" in
4805     x86)     TARGET_HAS_JIT=1
4806  ;;
4807     Sparc)   TARGET_HAS_JIT=0
4808  ;;
4809     PowerPC) TARGET_HAS_JIT=1
4810  ;;
4811     x86_64)  TARGET_HAS_JIT=1
4812  ;;
4813     Alpha)   TARGET_HAS_JIT=1
4814  ;;
4815     IA64)    TARGET_HAS_JIT=0
4816  ;;
4817     ARM)     TARGET_HAS_JIT=0
4818  ;;
4819     Mips)    TARGET_HAS_JIT=0
4820  ;;
4821     PIC16)   TARGET_HAS_JIT=0
4822  ;;
4823     XCore)   TARGET_HAS_JIT=0
4824  ;;
4825     *)       TARGET_HAS_JIT=0
4826  ;;
4827   esac
4828 fi
4829
4830 # Check whether --enable-doxygen was given.
4831 if test "${enable_doxygen+set}" = set; then
4832   enableval=$enable_doxygen;
4833 else
4834   enableval=default
4835 fi
4836
4837 case "$enableval" in
4838   yes) ENABLE_DOXYGEN=1
4839  ;;
4840   no)  ENABLE_DOXYGEN=0
4841  ;;
4842   default) ENABLE_DOXYGEN=0
4843  ;;
4844   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4845 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4846    { (exit 1); exit 1; }; } ;;
4847 esac
4848
4849 # Check whether --enable-threads was given.
4850 if test "${enable_threads+set}" = set; then
4851   enableval=$enable_threads;
4852 else
4853   enableval=default
4854 fi
4855
4856 case "$enableval" in
4857   yes) ENABLE_THREADS=1
4858  ;;
4859   no)  ENABLE_THREADS=0
4860  ;;
4861   default) ENABLE_THREADS=1
4862  ;;
4863   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4864 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4865    { (exit 1); exit 1; }; } ;;
4866 esac
4867
4868 cat >>confdefs.h <<_ACEOF
4869 #define ENABLE_THREADS $ENABLE_THREADS
4870 _ACEOF
4871
4872
4873 # Check whether --enable-pic was given.
4874 if test "${enable_pic+set}" = set; then
4875   enableval=$enable_pic;
4876 else
4877   enableval=default
4878 fi
4879
4880 case "$enableval" in
4881   yes) ENABLE_PIC=1
4882  ;;
4883   no)  ENABLE_PIC=0
4884  ;;
4885   default) ENABLE_PIC=1
4886  ;;
4887   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4888 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4889    { (exit 1); exit 1; }; } ;;
4890 esac
4891
4892 cat >>confdefs.h <<_ACEOF
4893 #define ENABLE_PIC $ENABLE_PIC
4894 _ACEOF
4895
4896
4897 TARGETS_TO_BUILD=""
4898 # Check whether --enable-targets was given.
4899 if test "${enable_targets+set}" = set; then
4900   enableval=$enable_targets;
4901 else
4902   enableval=all
4903 fi
4904
4905 case "$enableval" in
4906   all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU PIC16 XCore CBackend MSIL CppBackend" ;;
4907   host-only)
4908     case "$llvm_cv_target_arch" in
4909       x86)     TARGETS_TO_BUILD="X86" ;;
4910       x86_64)  TARGETS_TO_BUILD="X86" ;;
4911       Sparc)   TARGETS_TO_BUILD="Sparc" ;;
4912       PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4913       Alpha)   TARGETS_TO_BUILD="Alpha" ;;
4914       IA64)    TARGETS_TO_BUILD="IA64" ;;
4915       ARM)     TARGETS_TO_BUILD="ARM" ;;
4916       Mips)    TARGETS_TO_BUILD="Mips" ;;
4917       CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
4918       PIC16)   TARGETS_TO_BUILD="PIC16" ;;
4919       XCore)   TARGETS_TO_BUILD="XCore" ;;
4920       *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4921 echo "$as_me: error: Can not set target to build" >&2;}
4922    { (exit 1); exit 1; }; } ;;
4923     esac
4924     ;;
4925   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4926       case "$a_target" in
4927         x86)     TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4928         x86_64)  TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4929         sparc)   TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4930         powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4931         alpha)   TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4932         ia64)    TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4933         arm)     TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4934         mips)    TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4935         spu)     TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4936         pic16)   TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4937         xcore)   TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4938         cbe)     TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4939         msil)    TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4940         cpp)     TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4941         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4942 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4943    { (exit 1); exit 1; }; } ;;
4944       esac
4945   done
4946   ;;
4947 esac
4948 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4949
4950
4951 # Check whether --enable-cbe-printf-a was given.
4952 if test "${enable_cbe_printf_a+set}" = set; then
4953   enableval=$enable_cbe_printf_a;
4954 else
4955   enableval=default
4956 fi
4957
4958 case "$enableval" in
4959   yes) ENABLE_CBE_PRINTF_A=1
4960  ;;
4961   no)  ENABLE_CBE_PRINTF_A=0
4962  ;;
4963   default)  ENABLE_CBE_PRINTF_A=1
4964  ;;
4965   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4966 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4967    { (exit 1); exit 1; }; } ;;
4968 esac
4969
4970 cat >>confdefs.h <<_ACEOF
4971 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4972 _ACEOF
4973
4974
4975
4976 # Check whether --with-llvmgccdir was given.
4977 if test "${with_llvmgccdir+set}" = set; then
4978   withval=$with_llvmgccdir;
4979 else
4980   withval=default
4981 fi
4982
4983 case "$withval" in
4984   default) WITH_LLVMGCCDIR=default ;;
4985   /* | [A-Za-z]:[\\/]*)      WITH_LLVMGCCDIR=$withval ;;
4986   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4987 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4988    { (exit 1); exit 1; }; } ;;
4989 esac
4990
4991
4992 # Check whether --with-llvmgcc was given.
4993 if test "${with_llvmgcc+set}" = set; then
4994   withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
4995       WITH_LLVMGCCDIR=""
4996 fi
4997
4998
4999
5000 # Check whether --with-llvmgxx was given.
5001 if test "${with_llvmgxx+set}" = set; then
5002   withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5003     WITH_LLVMGCCDIR=""
5004 fi
5005
5006
5007 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5008    { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5009 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5010    { (exit 1); exit 1; }; };
5011 fi
5012
5013 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5014    { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5015 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5016    { (exit 1); exit 1; }; };
5017 fi
5018
5019
5020 # Check whether --with-extra-options was given.
5021 if test "${with_extra_options+set}" = set; then
5022   withval=$with_extra_options;
5023 else
5024   withval=default
5025 fi
5026
5027 case "$withval" in
5028   default) EXTRA_OPTIONS= ;;
5029   *) EXTRA_OPTIONS=$withval ;;
5030 esac
5031 EXTRA_OPTIONS=$EXTRA_OPTIONS
5032
5033
5034 # Check whether --enable-bindings was given.
5035 if test "${enable_bindings+set}" = set; then
5036   enableval=$enable_bindings;
5037 else
5038   enableval=default
5039 fi
5040
5041 BINDINGS_TO_BUILD=""
5042 case "$enableval" in
5043   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5044   all ) BINDINGS_TO_BUILD="ocaml" ;;
5045   none | no) BINDINGS_TO_BUILD="" ;;
5046   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5047       case "$a_binding" in
5048         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5049         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5050 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5051    { (exit 1); exit 1; }; } ;;
5052       esac
5053   done
5054   ;;
5055 esac
5056
5057
5058 # Check whether --with-ocaml-libdir was given.
5059 if test "${with_ocaml_libdir+set}" = set; then
5060   withval=$with_ocaml_libdir;
5061 else
5062   withval=auto
5063 fi
5064
5065 case "$withval" in
5066   auto) with_ocaml_libdir="$withval" ;;
5067   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5068   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5069 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5070    { (exit 1); exit 1; }; } ;;
5071 esac
5072
5073
5074 # Check whether --with-binutils-include was given.
5075 if test "${with_binutils_include+set}" = set; then
5076   withval=$with_binutils_include;
5077 else
5078   withval=default
5079 fi
5080
5081 case "$withval" in
5082   default) WITH_BINUTILS_INCDIR=default ;;
5083   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5084   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5085 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5086    { (exit 1); exit 1; }; } ;;
5087 esac
5088 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5089   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5090
5091   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5092      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5093      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5094 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5095    { (exit 1); exit 1; }; };
5096   fi
5097 fi
5098
5099
5100 ac_ext=c
5101 ac_cpp='$CPP $CPPFLAGS'
5102 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5103 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5104 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5105 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5106 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5107 # On Suns, sometimes $CPP names a directory.
5108 if test -n "$CPP" && test -d "$CPP"; then
5109   CPP=
5110 fi
5111 if test -z "$CPP"; then
5112   if test "${ac_cv_prog_CPP+set}" = set; then
5113   echo $ECHO_N "(cached) $ECHO_C" >&6
5114 else
5115       # Double quotes because CPP needs to be expanded
5116     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5117     do
5118       ac_preproc_ok=false
5119 for ac_c_preproc_warn_flag in '' yes
5120 do
5121   # Use a header file that comes with gcc, so configuring glibc
5122   # with a fresh cross-compiler works.
5123   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5124   # <limits.h> exists even on freestanding compilers.
5125   # On the NeXT, cc -E runs the code through the compiler's parser,
5126   # not just through cpp. "Syntax error" is here to catch this case.
5127   cat >conftest.$ac_ext <<_ACEOF
5128 /* confdefs.h.  */
5129 _ACEOF
5130 cat confdefs.h >>conftest.$ac_ext
5131 cat >>conftest.$ac_ext <<_ACEOF
5132 /* end confdefs.h.  */
5133 #ifdef __STDC__
5134 # include <limits.h>
5135 #else
5136 # include <assert.h>
5137 #endif
5138                      Syntax error
5139 _ACEOF
5140 if { (ac_try="$ac_cpp conftest.$ac_ext"
5141 case "(($ac_try" in
5142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5143   *) ac_try_echo=$ac_try;;
5144 esac
5145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5146   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5147   ac_status=$?
5148   grep -v '^ *+' conftest.er1 >conftest.err
5149   rm -f conftest.er1
5150   cat conftest.err >&5
5151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5152   (exit $ac_status); } >/dev/null; then
5153   if test -s conftest.err; then
5154     ac_cpp_err=$ac_c_preproc_warn_flag
5155     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5156   else
5157     ac_cpp_err=
5158   fi
5159 else
5160   ac_cpp_err=yes
5161 fi
5162 if test -z "$ac_cpp_err"; then
5163   :
5164 else
5165   echo "$as_me: failed program was:" >&5
5166 sed 's/^/| /' conftest.$ac_ext >&5
5167
5168   # Broken: fails on valid input.
5169 continue
5170 fi
5171
5172 rm -f conftest.err conftest.$ac_ext
5173
5174   # OK, works on sane cases.  Now check whether nonexistent headers
5175   # can be detected and how.
5176   cat >conftest.$ac_ext <<_ACEOF
5177 /* confdefs.h.  */
5178 _ACEOF
5179 cat confdefs.h >>conftest.$ac_ext
5180 cat >>conftest.$ac_ext <<_ACEOF
5181 /* end confdefs.h.  */
5182 #include <ac_nonexistent.h>
5183 _ACEOF
5184 if { (ac_try="$ac_cpp conftest.$ac_ext"
5185 case "(($ac_try" in
5186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5187   *) ac_try_echo=$ac_try;;
5188 esac
5189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5190   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5191   ac_status=$?
5192   grep -v '^ *+' conftest.er1 >conftest.err
5193   rm -f conftest.er1
5194   cat conftest.err >&5
5195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5196   (exit $ac_status); } >/dev/null; then
5197   if test -s conftest.err; then
5198     ac_cpp_err=$ac_c_preproc_warn_flag
5199     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5200   else
5201     ac_cpp_err=
5202   fi
5203 else
5204   ac_cpp_err=yes
5205 fi
5206 if test -z "$ac_cpp_err"; then
5207   # Broken: success on invalid input.
5208 continue
5209 else
5210   echo "$as_me: failed program was:" >&5
5211 sed 's/^/| /' conftest.$ac_ext >&5
5212
5213   # Passes both tests.
5214 ac_preproc_ok=:
5215 break
5216 fi
5217
5218 rm -f conftest.err conftest.$ac_ext
5219
5220 done
5221 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5222 rm -f conftest.err conftest.$ac_ext
5223 if $ac_preproc_ok; then
5224   break
5225 fi
5226
5227     done
5228     ac_cv_prog_CPP=$CPP
5229
5230 fi
5231   CPP=$ac_cv_prog_CPP
5232 else
5233   ac_cv_prog_CPP=$CPP
5234 fi
5235 { echo "$as_me:$LINENO: result: $CPP" >&5
5236 echo "${ECHO_T}$CPP" >&6; }
5237 ac_preproc_ok=false
5238 for ac_c_preproc_warn_flag in '' yes
5239 do
5240   # Use a header file that comes with gcc, so configuring glibc
5241   # with a fresh cross-compiler works.
5242   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5243   # <limits.h> exists even on freestanding compilers.
5244   # On the NeXT, cc -E runs the code through the compiler's parser,
5245   # not just through cpp. "Syntax error" is here to catch this case.
5246   cat >conftest.$ac_ext <<_ACEOF
5247 /* confdefs.h.  */
5248 _ACEOF
5249 cat confdefs.h >>conftest.$ac_ext
5250 cat >>conftest.$ac_ext <<_ACEOF
5251 /* end confdefs.h.  */
5252 #ifdef __STDC__
5253 # include <limits.h>
5254 #else
5255 # include <assert.h>
5256 #endif
5257                      Syntax error
5258 _ACEOF
5259 if { (ac_try="$ac_cpp conftest.$ac_ext"
5260 case "(($ac_try" in
5261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5262   *) ac_try_echo=$ac_try;;
5263 esac
5264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5265   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5266   ac_status=$?
5267   grep -v '^ *+' conftest.er1 >conftest.err
5268   rm -f conftest.er1
5269   cat conftest.err >&5
5270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271   (exit $ac_status); } >/dev/null; then
5272   if test -s conftest.err; then
5273     ac_cpp_err=$ac_c_preproc_warn_flag
5274     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5275   else
5276     ac_cpp_err=
5277   fi
5278 else
5279   ac_cpp_err=yes
5280 fi
5281 if test -z "$ac_cpp_err"; then
5282   :
5283 else
5284   echo "$as_me: failed program was:" >&5
5285 sed 's/^/| /' conftest.$ac_ext >&5
5286
5287   # Broken: fails on valid input.
5288 continue
5289 fi
5290
5291 rm -f conftest.err conftest.$ac_ext
5292
5293   # OK, works on sane cases.  Now check whether nonexistent headers
5294   # can be detected and how.
5295   cat >conftest.$ac_ext <<_ACEOF
5296 /* confdefs.h.  */
5297 _ACEOF
5298 cat confdefs.h >>conftest.$ac_ext
5299 cat >>conftest.$ac_ext <<_ACEOF
5300 /* end confdefs.h.  */
5301 #include <ac_nonexistent.h>
5302 _ACEOF
5303 if { (ac_try="$ac_cpp conftest.$ac_ext"
5304 case "(($ac_try" in
5305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5306   *) ac_try_echo=$ac_try;;
5307 esac
5308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5309   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5310   ac_status=$?
5311   grep -v '^ *+' conftest.er1 >conftest.err
5312   rm -f conftest.er1
5313   cat conftest.err >&5
5314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5315   (exit $ac_status); } >/dev/null; then
5316   if test -s conftest.err; then
5317     ac_cpp_err=$ac_c_preproc_warn_flag
5318     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5319   else
5320     ac_cpp_err=
5321   fi
5322 else
5323   ac_cpp_err=yes
5324 fi
5325 if test -z "$ac_cpp_err"; then
5326   # Broken: success on invalid input.
5327 continue
5328 else
5329   echo "$as_me: failed program was:" >&5
5330 sed 's/^/| /' conftest.$ac_ext >&5
5331
5332   # Passes both tests.
5333 ac_preproc_ok=:
5334 break
5335 fi
5336
5337 rm -f conftest.err conftest.$ac_ext
5338
5339 done
5340 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5341 rm -f conftest.err conftest.$ac_ext
5342 if $ac_preproc_ok; then
5343   :
5344 else
5345   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5346 See \`config.log' for more details." >&5
5347 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5348 See \`config.log' for more details." >&2;}
5349    { (exit 1); exit 1; }; }
5350 fi
5351
5352 ac_ext=c
5353 ac_cpp='$CPP $CPPFLAGS'
5354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5356 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5357
5358 ac_ext=c
5359 ac_cpp='$CPP $CPPFLAGS'
5360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5363 if test -n "$ac_tool_prefix"; then
5364   for ac_prog in gcc
5365   do
5366     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5367 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5368 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5369 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5370 if test "${ac_cv_prog_CC+set}" = set; then
5371   echo $ECHO_N "(cached) $ECHO_C" >&6
5372 else
5373   if test -n "$CC"; then
5374   ac_cv_prog_CC="$CC" # Let the user override the test.
5375 else
5376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5377 for as_dir in $PATH
5378 do
5379   IFS=$as_save_IFS
5380   test -z "$as_dir" && as_dir=.
5381   for ac_exec_ext in '' $ac_executable_extensions; do
5382   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5383     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5384     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5385     break 2
5386   fi
5387 done
5388 done
5389 IFS=$as_save_IFS
5390
5391 fi
5392 fi
5393 CC=$ac_cv_prog_CC
5394 if test -n "$CC"; then
5395   { echo "$as_me:$LINENO: result: $CC" >&5
5396 echo "${ECHO_T}$CC" >&6; }
5397 else
5398   { echo "$as_me:$LINENO: result: no" >&5
5399 echo "${ECHO_T}no" >&6; }
5400 fi
5401
5402
5403     test -n "$CC" && break
5404   done
5405 fi
5406 if test -z "$CC"; then
5407   ac_ct_CC=$CC
5408   for ac_prog in gcc
5409 do
5410   # Extract the first word of "$ac_prog", so it can be a program name with args.
5411 set dummy $ac_prog; ac_word=$2
5412 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5414 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5415   echo $ECHO_N "(cached) $ECHO_C" >&6
5416 else
5417   if test -n "$ac_ct_CC"; then
5418   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5419 else
5420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5421 for as_dir in $PATH
5422 do
5423   IFS=$as_save_IFS
5424   test -z "$as_dir" && as_dir=.
5425   for ac_exec_ext in '' $ac_executable_extensions; do
5426   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5427     ac_cv_prog_ac_ct_CC="$ac_prog"
5428     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5429     break 2
5430   fi
5431 done
5432 done
5433 IFS=$as_save_IFS
5434
5435 fi
5436 fi
5437 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5438 if test -n "$ac_ct_CC"; then
5439   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5440 echo "${ECHO_T}$ac_ct_CC" >&6; }
5441 else
5442   { echo "$as_me:$LINENO: result: no" >&5
5443 echo "${ECHO_T}no" >&6; }
5444 fi
5445
5446
5447   test -n "$ac_ct_CC" && break
5448 done
5449
5450   if test "x$ac_ct_CC" = x; then
5451     CC=""
5452   else
5453     case $cross_compiling:$ac_tool_warned in
5454 yes:)
5455 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5456 whose name does not start with the host triplet.  If you think this
5457 configuration is useful to you, please write to autoconf@gnu.org." >&5
5458 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5459 whose name does not start with the host triplet.  If you think this
5460 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5461 ac_tool_warned=yes ;;
5462 esac
5463     CC=$ac_ct_CC
5464   fi
5465 fi
5466
5467
5468 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5469 See \`config.log' for more details." >&5
5470 echo "$as_me: error: no acceptable C compiler found in \$PATH
5471 See \`config.log' for more details." >&2;}
5472    { (exit 1); exit 1; }; }
5473
5474 # Provide some information about the compiler.
5475 echo "$as_me:$LINENO: checking for C compiler version" >&5
5476 ac_compiler=`set X $ac_compile; echo $2`
5477 { (ac_try="$ac_compiler --version >&5"
5478 case "(($ac_try" in
5479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5480   *) ac_try_echo=$ac_try;;
5481 esac
5482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5483   (eval "$ac_compiler --version >&5") 2>&5
5484   ac_status=$?
5485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5486   (exit $ac_status); }
5487 { (ac_try="$ac_compiler -v >&5"
5488 case "(($ac_try" in
5489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5490   *) ac_try_echo=$ac_try;;
5491 esac
5492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5493   (eval "$ac_compiler -v >&5") 2>&5
5494   ac_status=$?
5495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5496   (exit $ac_status); }
5497 { (ac_try="$ac_compiler -V >&5"
5498 case "(($ac_try" in
5499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5500   *) ac_try_echo=$ac_try;;
5501 esac
5502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5503   (eval "$ac_compiler -V >&5") 2>&5
5504   ac_status=$?
5505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5506   (exit $ac_status); }
5507
5508 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5509 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5510 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5511   echo $ECHO_N "(cached) $ECHO_C" >&6
5512 else
5513   cat >conftest.$ac_ext <<_ACEOF
5514 /* confdefs.h.  */
5515 _ACEOF
5516 cat confdefs.h >>conftest.$ac_ext
5517 cat >>conftest.$ac_ext <<_ACEOF
5518 /* end confdefs.h.  */
5519
5520 int
5521 main ()
5522 {
5523 #ifndef __GNUC__
5524        choke me
5525 #endif
5526
5527   ;
5528   return 0;
5529 }
5530 _ACEOF
5531 rm -f conftest.$ac_objext
5532 if { (ac_try="$ac_compile"
5533 case "(($ac_try" in
5534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5535   *) ac_try_echo=$ac_try;;
5536 esac
5537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5538   (eval "$ac_compile") 2>conftest.er1
5539   ac_status=$?
5540   grep -v '^ *+' conftest.er1 >conftest.err
5541   rm -f conftest.er1
5542   cat conftest.err >&5
5543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544   (exit $ac_status); } &&
5545          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5546   { (case "(($ac_try" in
5547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5548   *) ac_try_echo=$ac_try;;
5549 esac
5550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5551   (eval "$ac_try") 2>&5
5552   ac_status=$?
5553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5554   (exit $ac_status); }; } &&
5555          { ac_try='test -s conftest.$ac_objext'
5556   { (case "(($ac_try" in
5557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5558   *) ac_try_echo=$ac_try;;
5559 esac
5560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5561   (eval "$ac_try") 2>&5
5562   ac_status=$?
5563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5564   (exit $ac_status); }; }; then
5565   ac_compiler_gnu=yes
5566 else
5567   echo "$as_me: failed program was:" >&5
5568 sed 's/^/| /' conftest.$ac_ext >&5
5569
5570         ac_compiler_gnu=no
5571 fi
5572
5573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5574 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5575
5576 fi
5577 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5578 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5579 GCC=`test $ac_compiler_gnu = yes && echo yes`
5580 ac_test_CFLAGS=${CFLAGS+set}
5581 ac_save_CFLAGS=$CFLAGS
5582 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5583 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5584 if test "${ac_cv_prog_cc_g+set}" = set; then
5585   echo $ECHO_N "(cached) $ECHO_C" >&6
5586 else
5587   ac_save_c_werror_flag=$ac_c_werror_flag
5588    ac_c_werror_flag=yes
5589    ac_cv_prog_cc_g=no
5590    CFLAGS="-g"
5591    cat >conftest.$ac_ext <<_ACEOF
5592 /* confdefs.h.  */
5593 _ACEOF
5594 cat confdefs.h >>conftest.$ac_ext
5595 cat >>conftest.$ac_ext <<_ACEOF
5596 /* end confdefs.h.  */
5597
5598 int
5599 main ()
5600 {
5601
5602   ;
5603   return 0;
5604 }
5605 _ACEOF
5606 rm -f conftest.$ac_objext
5607 if { (ac_try="$ac_compile"
5608 case "(($ac_try" in
5609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5610   *) ac_try_echo=$ac_try;;
5611 esac
5612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5613   (eval "$ac_compile") 2>conftest.er1
5614   ac_status=$?
5615   grep -v '^ *+' conftest.er1 >conftest.err
5616   rm -f conftest.er1
5617   cat conftest.err >&5
5618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5619   (exit $ac_status); } &&
5620          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5621   { (case "(($ac_try" in
5622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5623   *) ac_try_echo=$ac_try;;
5624 esac
5625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5626   (eval "$ac_try") 2>&5
5627   ac_status=$?
5628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5629   (exit $ac_status); }; } &&
5630          { ac_try='test -s conftest.$ac_objext'
5631   { (case "(($ac_try" in
5632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5633   *) ac_try_echo=$ac_try;;
5634 esac
5635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5636   (eval "$ac_try") 2>&5
5637   ac_status=$?
5638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639   (exit $ac_status); }; }; then
5640   ac_cv_prog_cc_g=yes
5641 else
5642   echo "$as_me: failed program was:" >&5
5643 sed 's/^/| /' conftest.$ac_ext >&5
5644
5645         CFLAGS=""
5646       cat >conftest.$ac_ext <<_ACEOF
5647 /* confdefs.h.  */
5648 _ACEOF
5649 cat confdefs.h >>conftest.$ac_ext
5650 cat >>conftest.$ac_ext <<_ACEOF
5651 /* end confdefs.h.  */
5652
5653 int
5654 main ()
5655 {
5656
5657   ;
5658   return 0;
5659 }
5660 _ACEOF
5661 rm -f conftest.$ac_objext
5662 if { (ac_try="$ac_compile"
5663 case "(($ac_try" in
5664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5665   *) ac_try_echo=$ac_try;;
5666 esac
5667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5668   (eval "$ac_compile") 2>conftest.er1
5669   ac_status=$?
5670   grep -v '^ *+' conftest.er1 >conftest.err
5671   rm -f conftest.er1
5672   cat conftest.err >&5
5673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674   (exit $ac_status); } &&
5675          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5676   { (case "(($ac_try" in
5677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5678   *) ac_try_echo=$ac_try;;
5679 esac
5680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5681   (eval "$ac_try") 2>&5
5682   ac_status=$?
5683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684   (exit $ac_status); }; } &&
5685          { ac_try='test -s conftest.$ac_objext'
5686   { (case "(($ac_try" in
5687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5688   *) ac_try_echo=$ac_try;;
5689 esac
5690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5691   (eval "$ac_try") 2>&5
5692   ac_status=$?
5693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694   (exit $ac_status); }; }; then
5695   :
5696 else
5697   echo "$as_me: failed program was:" >&5
5698 sed 's/^/| /' conftest.$ac_ext >&5
5699
5700         ac_c_werror_flag=$ac_save_c_werror_flag
5701          CFLAGS="-g"
5702          cat >conftest.$ac_ext <<_ACEOF
5703 /* confdefs.h.  */
5704 _ACEOF
5705 cat confdefs.h >>conftest.$ac_ext
5706 cat >>conftest.$ac_ext <<_ACEOF
5707 /* end confdefs.h.  */
5708
5709 int
5710 main ()
5711 {
5712
5713   ;
5714   return 0;
5715 }
5716 _ACEOF
5717 rm -f conftest.$ac_objext
5718 if { (ac_try="$ac_compile"
5719 case "(($ac_try" in
5720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5721   *) ac_try_echo=$ac_try;;
5722 esac
5723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5724   (eval "$ac_compile") 2>conftest.er1
5725   ac_status=$?
5726   grep -v '^ *+' conftest.er1 >conftest.err
5727   rm -f conftest.er1
5728   cat conftest.err >&5
5729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730   (exit $ac_status); } &&
5731          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5732   { (case "(($ac_try" in
5733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5734   *) ac_try_echo=$ac_try;;
5735 esac
5736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5737   (eval "$ac_try") 2>&5
5738   ac_status=$?
5739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5740   (exit $ac_status); }; } &&
5741          { ac_try='test -s conftest.$ac_objext'
5742   { (case "(($ac_try" in
5743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5744   *) ac_try_echo=$ac_try;;
5745 esac
5746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5747   (eval "$ac_try") 2>&5
5748   ac_status=$?
5749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750   (exit $ac_status); }; }; then
5751   ac_cv_prog_cc_g=yes
5752 else
5753   echo "$as_me: failed program was:" >&5
5754 sed 's/^/| /' conftest.$ac_ext >&5
5755
5756
5757 fi
5758
5759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5760 fi
5761
5762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5763 fi
5764
5765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5766    ac_c_werror_flag=$ac_save_c_werror_flag
5767 fi
5768 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5769 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5770 if test "$ac_test_CFLAGS" = set; then
5771   CFLAGS=$ac_save_CFLAGS
5772 elif test $ac_cv_prog_cc_g = yes; then
5773   if test "$GCC" = yes; then
5774     CFLAGS="-g -O2"
5775   else
5776     CFLAGS="-g"
5777   fi
5778 else
5779   if test "$GCC" = yes; then
5780     CFLAGS="-O2"
5781   else
5782     CFLAGS=
5783   fi
5784 fi
5785 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5786 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5787 if test "${ac_cv_prog_cc_c89+set}" = set; then
5788   echo $ECHO_N "(cached) $ECHO_C" >&6
5789 else
5790   ac_cv_prog_cc_c89=no
5791 ac_save_CC=$CC
5792 cat >conftest.$ac_ext <<_ACEOF
5793 /* confdefs.h.  */
5794 _ACEOF
5795 cat confdefs.h >>conftest.$ac_ext
5796 cat >>conftest.$ac_ext <<_ACEOF
5797 /* end confdefs.h.  */
5798 #include <stdarg.h>
5799 #include <stdio.h>
5800 #include <sys/types.h>
5801 #include <sys/stat.h>
5802 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5803 struct buf { int x; };
5804 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5805 static char *e (p, i)
5806      char **p;
5807      int i;
5808 {
5809   return p[i];
5810 }
5811 static char *f (char * (*g) (char **, int), char **p, ...)
5812 {
5813   char *s;
5814   va_list v;
5815   va_start (v,p);
5816   s = g (p, va_arg (v,int));
5817   va_end (v);
5818   return s;
5819 }
5820
5821 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5822    function prototypes and stuff, but not '\xHH' hex character constants.
5823    These don't provoke an error unfortunately, instead are silently treated
5824    as 'x'.  The following induces an error, until -std is added to get
5825    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5826    array size at least.  It's necessary to write '\x00'==0 to get something
5827    that's true only with -std.  */
5828 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5829
5830 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5831    inside strings and character constants.  */
5832 #define FOO(x) 'x'
5833 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5834
5835 int test (int i, double x);
5836 struct s1 {int (*f) (int a);};
5837 struct s2 {int (*f) (double a);};
5838 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5839 int argc;
5840 char **argv;
5841 int
5842 main ()
5843 {
5844 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5845   ;
5846   return 0;
5847 }
5848 _ACEOF
5849 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5850         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5851 do
5852   CC="$ac_save_CC $ac_arg"
5853   rm -f conftest.$ac_objext
5854 if { (ac_try="$ac_compile"
5855 case "(($ac_try" in
5856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5857   *) ac_try_echo=$ac_try;;
5858 esac
5859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5860   (eval "$ac_compile") 2>conftest.er1
5861   ac_status=$?
5862   grep -v '^ *+' conftest.er1 >conftest.err
5863   rm -f conftest.er1
5864   cat conftest.err >&5
5865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5866   (exit $ac_status); } &&
5867          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5868   { (case "(($ac_try" in
5869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5870   *) ac_try_echo=$ac_try;;
5871 esac
5872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5873   (eval "$ac_try") 2>&5
5874   ac_status=$?
5875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876   (exit $ac_status); }; } &&
5877          { ac_try='test -s conftest.$ac_objext'
5878   { (case "(($ac_try" in
5879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5880   *) ac_try_echo=$ac_try;;
5881 esac
5882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5883   (eval "$ac_try") 2>&5
5884   ac_status=$?
5885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5886   (exit $ac_status); }; }; then
5887   ac_cv_prog_cc_c89=$ac_arg
5888 else
5889   echo "$as_me: failed program was:" >&5
5890 sed 's/^/| /' conftest.$ac_ext >&5
5891
5892
5893 fi
5894
5895 rm -f core conftest.err conftest.$ac_objext
5896   test "x$ac_cv_prog_cc_c89" != "xno" && break
5897 done
5898 rm -f conftest.$ac_ext
5899 CC=$ac_save_CC
5900
5901 fi
5902 # AC_CACHE_VAL
5903 case "x$ac_cv_prog_cc_c89" in
5904   x)
5905     { echo "$as_me:$LINENO: result: none needed" >&5
5906 echo "${ECHO_T}none needed" >&6; } ;;
5907   xno)
5908     { echo "$as_me:$LINENO: result: unsupported" >&5
5909 echo "${ECHO_T}unsupported" >&6; } ;;
5910   *)
5911     CC="$CC $ac_cv_prog_cc_c89"
5912     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5913 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5914 esac
5915
5916
5917 ac_ext=c
5918 ac_cpp='$CPP $CPPFLAGS'
5919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5920 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5921 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5922
5923 ac_ext=cpp
5924 ac_cpp='$CXXCPP $CPPFLAGS'
5925 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5926 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5927 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5928 if test -z "$CXX"; then
5929   if test -n "$CCC"; then
5930     CXX=$CCC
5931   else
5932     if test -n "$ac_tool_prefix"; then
5933   for ac_prog in g++
5934   do
5935     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5936 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5937 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5939 if test "${ac_cv_prog_CXX+set}" = set; then
5940   echo $ECHO_N "(cached) $ECHO_C" >&6
5941 else
5942   if test -n "$CXX"; then
5943   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5944 else
5945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5946 for as_dir in $PATH
5947 do
5948   IFS=$as_save_IFS
5949   test -z "$as_dir" && as_dir=.
5950   for ac_exec_ext in '' $ac_executable_extensions; do
5951   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5952     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5953     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5954     break 2
5955   fi
5956 done
5957 done
5958 IFS=$as_save_IFS
5959
5960 fi
5961 fi
5962 CXX=$ac_cv_prog_CXX
5963 if test -n "$CXX"; then
5964   { echo "$as_me:$LINENO: result: $CXX" >&5
5965 echo "${ECHO_T}$CXX" >&6; }
5966 else
5967   { echo "$as_me:$LINENO: result: no" >&5
5968 echo "${ECHO_T}no" >&6; }
5969 fi
5970
5971
5972     test -n "$CXX" && break
5973   done
5974 fi
5975 if test -z "$CXX"; then
5976   ac_ct_CXX=$CXX
5977   for ac_prog in g++
5978 do
5979   # Extract the first word of "$ac_prog", so it can be a program name with args.
5980 set dummy $ac_prog; ac_word=$2
5981 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5983 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5984   echo $ECHO_N "(cached) $ECHO_C" >&6
5985 else
5986   if test -n "$ac_ct_CXX"; then
5987   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5988 else
5989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5990 for as_dir in $PATH
5991 do
5992   IFS=$as_save_IFS
5993   test -z "$as_dir" && as_dir=.
5994   for ac_exec_ext in '' $ac_executable_extensions; do
5995   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5996     ac_cv_prog_ac_ct_CXX="$ac_prog"
5997     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5998     break 2
5999   fi
6000 done
6001 done
6002 IFS=$as_save_IFS
6003
6004 fi
6005 fi
6006 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6007 if test -n "$ac_ct_CXX"; then
6008   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6009 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6010 else
6011   { echo "$as_me:$LINENO: result: no" >&5
6012 echo "${ECHO_T}no" >&6; }
6013 fi
6014
6015
6016   test -n "$ac_ct_CXX" && break
6017 done
6018
6019   if test "x$ac_ct_CXX" = x; then
6020     CXX="g++"
6021   else
6022     case $cross_compiling:$ac_tool_warned in
6023 yes:)
6024 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6025 whose name does not start with the host triplet.  If you think this
6026 configuration is useful to you, please write to autoconf@gnu.org." >&5
6027 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6028 whose name does not start with the host triplet.  If you think this
6029 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6030 ac_tool_warned=yes ;;
6031 esac
6032     CXX=$ac_ct_CXX
6033   fi
6034 fi
6035
6036   fi
6037 fi
6038 # Provide some information about the compiler.
6039 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6040 ac_compiler=`set X $ac_compile; echo $2`
6041 { (ac_try="$ac_compiler --version >&5"
6042 case "(($ac_try" in
6043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6044   *) ac_try_echo=$ac_try;;
6045 esac
6046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6047   (eval "$ac_compiler --version >&5") 2>&5
6048   ac_status=$?
6049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6050   (exit $ac_status); }
6051 { (ac_try="$ac_compiler -v >&5"
6052 case "(($ac_try" in
6053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6054   *) ac_try_echo=$ac_try;;
6055 esac
6056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6057   (eval "$ac_compiler -v >&5") 2>&5
6058   ac_status=$?
6059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6060   (exit $ac_status); }
6061 { (ac_try="$ac_compiler -V >&5"
6062 case "(($ac_try" in
6063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6064   *) ac_try_echo=$ac_try;;
6065 esac
6066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6067   (eval "$ac_compiler -V >&5") 2>&5
6068   ac_status=$?
6069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6070   (exit $ac_status); }
6071
6072 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6073 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6074 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6075   echo $ECHO_N "(cached) $ECHO_C" >&6
6076 else
6077   cat >conftest.$ac_ext <<_ACEOF
6078 /* confdefs.h.  */
6079 _ACEOF
6080 cat confdefs.h >>conftest.$ac_ext
6081 cat >>conftest.$ac_ext <<_ACEOF
6082 /* end confdefs.h.  */
6083
6084 int
6085 main ()
6086 {
6087 #ifndef __GNUC__
6088        choke me
6089 #endif
6090
6091   ;
6092   return 0;
6093 }
6094 _ACEOF
6095 rm -f conftest.$ac_objext
6096 if { (ac_try="$ac_compile"
6097 case "(($ac_try" in
6098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6099   *) ac_try_echo=$ac_try;;
6100 esac
6101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6102   (eval "$ac_compile") 2>conftest.er1
6103   ac_status=$?
6104   grep -v '^ *+' conftest.er1 >conftest.err
6105   rm -f conftest.er1
6106   cat conftest.err >&5
6107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6108   (exit $ac_status); } &&
6109          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6110   { (case "(($ac_try" in
6111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6112   *) ac_try_echo=$ac_try;;
6113 esac
6114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6115   (eval "$ac_try") 2>&5
6116   ac_status=$?
6117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6118   (exit $ac_status); }; } &&
6119          { ac_try='test -s conftest.$ac_objext'
6120   { (case "(($ac_try" in
6121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6122   *) ac_try_echo=$ac_try;;
6123 esac
6124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6125   (eval "$ac_try") 2>&5
6126   ac_status=$?
6127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128   (exit $ac_status); }; }; then
6129   ac_compiler_gnu=yes
6130 else
6131   echo "$as_me: failed program was:" >&5
6132 sed 's/^/| /' conftest.$ac_ext >&5
6133
6134         ac_compiler_gnu=no
6135 fi
6136
6137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6138 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6139
6140 fi
6141 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6142 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6143 GXX=`test $ac_compiler_gnu = yes && echo yes`
6144 ac_test_CXXFLAGS=${CXXFLAGS+set}
6145 ac_save_CXXFLAGS=$CXXFLAGS
6146 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6147 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6148 if test "${ac_cv_prog_cxx_g+set}" = set; then
6149   echo $ECHO_N "(cached) $ECHO_C" >&6
6150 else
6151   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6152    ac_cxx_werror_flag=yes
6153    ac_cv_prog_cxx_g=no
6154    CXXFLAGS="-g"
6155    cat >conftest.$ac_ext <<_ACEOF
6156 /* confdefs.h.  */
6157 _ACEOF
6158 cat confdefs.h >>conftest.$ac_ext
6159 cat >>conftest.$ac_ext <<_ACEOF
6160 /* end confdefs.h.  */
6161
6162 int
6163 main ()
6164 {
6165
6166   ;
6167   return 0;
6168 }
6169 _ACEOF
6170 rm -f conftest.$ac_objext
6171 if { (ac_try="$ac_compile"
6172 case "(($ac_try" in
6173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6174   *) ac_try_echo=$ac_try;;
6175 esac
6176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6177   (eval "$ac_compile") 2>conftest.er1
6178   ac_status=$?
6179   grep -v '^ *+' conftest.er1 >conftest.err
6180   rm -f conftest.er1
6181   cat conftest.err >&5
6182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6183   (exit $ac_status); } &&
6184          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6185   { (case "(($ac_try" in
6186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6187   *) ac_try_echo=$ac_try;;
6188 esac
6189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6190   (eval "$ac_try") 2>&5
6191   ac_status=$?
6192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6193   (exit $ac_status); }; } &&
6194          { ac_try='test -s conftest.$ac_objext'
6195   { (case "(($ac_try" in
6196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6197   *) ac_try_echo=$ac_try;;
6198 esac
6199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6200   (eval "$ac_try") 2>&5
6201   ac_status=$?
6202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203   (exit $ac_status); }; }; then
6204   ac_cv_prog_cxx_g=yes
6205 else
6206   echo "$as_me: failed program was:" >&5
6207 sed 's/^/| /' conftest.$ac_ext >&5
6208
6209         CXXFLAGS=""
6210       cat >conftest.$ac_ext <<_ACEOF
6211 /* confdefs.h.  */
6212 _ACEOF
6213 cat confdefs.h >>conftest.$ac_ext
6214 cat >>conftest.$ac_ext <<_ACEOF
6215 /* end confdefs.h.  */
6216
6217 int
6218 main ()
6219 {
6220
6221   ;
6222   return 0;
6223 }
6224 _ACEOF
6225 rm -f conftest.$ac_objext
6226 if { (ac_try="$ac_compile"
6227 case "(($ac_try" in
6228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6229   *) ac_try_echo=$ac_try;;
6230 esac
6231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6232   (eval "$ac_compile") 2>conftest.er1
6233   ac_status=$?
6234   grep -v '^ *+' conftest.er1 >conftest.err
6235   rm -f conftest.er1
6236   cat conftest.err >&5
6237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6238   (exit $ac_status); } &&
6239          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6240   { (case "(($ac_try" in
6241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6242   *) ac_try_echo=$ac_try;;
6243 esac
6244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6245   (eval "$ac_try") 2>&5
6246   ac_status=$?
6247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6248   (exit $ac_status); }; } &&
6249          { ac_try='test -s conftest.$ac_objext'
6250   { (case "(($ac_try" in
6251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6252   *) ac_try_echo=$ac_try;;
6253 esac
6254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6255   (eval "$ac_try") 2>&5
6256   ac_status=$?
6257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6258   (exit $ac_status); }; }; then
6259   :
6260 else
6261   echo "$as_me: failed program was:" >&5
6262 sed 's/^/| /' conftest.$ac_ext >&5
6263
6264         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6265          CXXFLAGS="-g"
6266          cat >conftest.$ac_ext <<_ACEOF
6267 /* confdefs.h.  */
6268 _ACEOF
6269 cat confdefs.h >>conftest.$ac_ext
6270 cat >>conftest.$ac_ext <<_ACEOF
6271 /* end confdefs.h.  */
6272
6273 int
6274 main ()
6275 {
6276
6277   ;
6278   return 0;
6279 }
6280 _ACEOF
6281 rm -f conftest.$ac_objext
6282 if { (ac_try="$ac_compile"
6283 case "(($ac_try" in
6284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6285   *) ac_try_echo=$ac_try;;
6286 esac
6287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6288   (eval "$ac_compile") 2>conftest.er1
6289   ac_status=$?
6290   grep -v '^ *+' conftest.er1 >conftest.err
6291   rm -f conftest.er1
6292   cat conftest.err >&5
6293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294   (exit $ac_status); } &&
6295          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6296   { (case "(($ac_try" in
6297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6298   *) ac_try_echo=$ac_try;;
6299 esac
6300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6301   (eval "$ac_try") 2>&5
6302   ac_status=$?
6303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6304   (exit $ac_status); }; } &&
6305          { ac_try='test -s conftest.$ac_objext'
6306   { (case "(($ac_try" in
6307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6308   *) ac_try_echo=$ac_try;;
6309 esac
6310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6311   (eval "$ac_try") 2>&5
6312   ac_status=$?
6313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314   (exit $ac_status); }; }; then
6315   ac_cv_prog_cxx_g=yes
6316 else
6317   echo "$as_me: failed program was:" >&5
6318 sed 's/^/| /' conftest.$ac_ext >&5
6319
6320
6321 fi
6322
6323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6324 fi
6325
6326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6327 fi
6328
6329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6330    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6331 fi
6332 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6333 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6334 if test "$ac_test_CXXFLAGS" = set; then
6335   CXXFLAGS=$ac_save_CXXFLAGS
6336 elif test $ac_cv_prog_cxx_g = yes; then
6337   if test "$GXX" = yes; then
6338     CXXFLAGS="-g -O2"
6339   else
6340     CXXFLAGS="-g"
6341   fi
6342 else
6343   if test "$GXX" = yes; then
6344     CXXFLAGS="-O2"
6345   else
6346     CXXFLAGS=
6347   fi
6348 fi
6349 ac_ext=c
6350 ac_cpp='$CPP $CPPFLAGS'
6351 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6352 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6353 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6354
6355
6356 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6357 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6358 if test "${lt_cv_path_NM+set}" = set; then
6359   echo $ECHO_N "(cached) $ECHO_C" >&6
6360 else
6361   if test -n "$NM"; then
6362   # Let the user override the test.
6363   lt_cv_path_NM="$NM"
6364 else
6365   lt_nm_to_check="${ac_tool_prefix}nm"
6366   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6367     lt_nm_to_check="$lt_nm_to_check nm"
6368   fi
6369   for lt_tmp_nm in $lt_nm_to_check; do
6370     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6371     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6372       IFS="$lt_save_ifs"
6373       test -z "$ac_dir" && ac_dir=.
6374       tmp_nm="$ac_dir/$lt_tmp_nm"
6375       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6376         # Check to see if the nm accepts a BSD-compat flag.
6377         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6378         #   nm: unknown option "B" ignored
6379         # Tru64's nm complains that /dev/null is an invalid object file
6380         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6381         */dev/null* | *'Invalid file or object type'*)
6382           lt_cv_path_NM="$tmp_nm -B"
6383           break
6384           ;;
6385         *)
6386           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6387           */dev/null*)
6388             lt_cv_path_NM="$tmp_nm -p"
6389             break
6390             ;;
6391           *)
6392             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6393             continue # so that we can try to find one that supports BSD flags
6394             ;;
6395           esac
6396           ;;
6397         esac
6398       fi
6399     done
6400     IFS="$lt_save_ifs"
6401   done
6402   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6403 fi
6404 fi
6405 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6406 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6407 NM="$lt_cv_path_NM"
6408
6409
6410
6411 { echo "$as_me:$LINENO: checking for GNU make" >&5
6412 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6413 if test "${llvm_cv_gnu_make_command+set}" = set; then
6414   echo $ECHO_N "(cached) $ECHO_C" >&6
6415 else
6416   llvm_cv_gnu_make_command=''
6417  for a in "$MAKE" make gmake gnumake ; do
6418   if test -z "$a" ; then continue ; fi ;
6419   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6420   then
6421    llvm_cv_gnu_make_command=$a ;
6422    break;
6423   fi
6424  done
6425 fi
6426 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6427 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6428  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6429    ifGNUmake='' ;
6430  else
6431    ifGNUmake='#' ;
6432    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6433 echo "${ECHO_T}\"Not found\"" >&6; };
6434  fi
6435
6436
6437 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6438 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6439 LN_S=$as_ln_s
6440 if test "$LN_S" = "ln -s"; then
6441   { echo "$as_me:$LINENO: result: yes" >&5
6442 echo "${ECHO_T}yes" >&6; }
6443 else
6444   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6445 echo "${ECHO_T}no, using $LN_S" >&6; }
6446 fi
6447
6448 # Extract the first word of "cmp", so it can be a program name with args.
6449 set dummy cmp; ac_word=$2
6450 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6452 if test "${ac_cv_path_CMP+set}" = set; then
6453   echo $ECHO_N "(cached) $ECHO_C" >&6
6454 else
6455   case $CMP in
6456   [\\/]* | ?:[\\/]*)
6457   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6458   ;;
6459   *)
6460   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6461 for as_dir in $PATH
6462 do
6463   IFS=$as_save_IFS
6464   test -z "$as_dir" && as_dir=.
6465   for ac_exec_ext in '' $ac_executable_extensions; do
6466   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6467     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6468     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6469     break 2
6470   fi
6471 done
6472 done
6473 IFS=$as_save_IFS
6474
6475   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6476   ;;
6477 esac
6478 fi
6479 CMP=$ac_cv_path_CMP
6480 if test -n "$CMP"; then
6481   { echo "$as_me:$LINENO: result: $CMP" >&5
6482 echo "${ECHO_T}$CMP" >&6; }
6483 else
6484   { echo "$as_me:$LINENO: result: no" >&5
6485 echo "${ECHO_T}no" >&6; }
6486 fi
6487
6488
6489 # Extract the first word of "cp", so it can be a program name with args.
6490 set dummy cp; ac_word=$2
6491 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6493 if test "${ac_cv_path_CP+set}" = set; then
6494   echo $ECHO_N "(cached) $ECHO_C" >&6
6495 else
6496   case $CP in
6497   [\\/]* | ?:[\\/]*)
6498   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6499   ;;
6500   *)
6501   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6502 for as_dir in $PATH
6503 do
6504   IFS=$as_save_IFS
6505   test -z "$as_dir" && as_dir=.
6506   for ac_exec_ext in '' $ac_executable_extensions; do
6507   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6508     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6509     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6510     break 2
6511   fi
6512 done
6513 done
6514 IFS=$as_save_IFS
6515
6516   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6517   ;;
6518 esac
6519 fi
6520 CP=$ac_cv_path_CP
6521 if test -n "$CP"; then
6522   { echo "$as_me:$LINENO: result: $CP" >&5
6523 echo "${ECHO_T}$CP" >&6; }
6524 else
6525   { echo "$as_me:$LINENO: result: no" >&5
6526 echo "${ECHO_T}no" >&6; }
6527 fi
6528
6529
6530 # Extract the first word of "date", so it can be a program name with args.
6531 set dummy date; ac_word=$2
6532 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6534 if test "${ac_cv_path_DATE+set}" = set; then
6535   echo $ECHO_N "(cached) $ECHO_C" >&6
6536 else
6537   case $DATE in
6538   [\\/]* | ?:[\\/]*)
6539   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6540   ;;
6541   *)
6542   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6543 for as_dir in $PATH
6544 do
6545   IFS=$as_save_IFS
6546   test -z "$as_dir" && as_dir=.
6547   for ac_exec_ext in '' $ac_executable_extensions; do
6548   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6549     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6550     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6551     break 2
6552   fi
6553 done
6554 done
6555 IFS=$as_save_IFS
6556
6557   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6558   ;;
6559 esac
6560 fi
6561 DATE=$ac_cv_path_DATE
6562 if test -n "$DATE"; then
6563   { echo "$as_me:$LINENO: result: $DATE" >&5
6564 echo "${ECHO_T}$DATE" >&6; }
6565 else
6566   { echo "$as_me:$LINENO: result: no" >&5
6567 echo "${ECHO_T}no" >&6; }
6568 fi
6569
6570
6571 # Extract the first word of "find", so it can be a program name with args.
6572 set dummy find; ac_word=$2
6573 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6575 if test "${ac_cv_path_FIND+set}" = set; then
6576   echo $ECHO_N "(cached) $ECHO_C" >&6
6577 else
6578   case $FIND in
6579   [\\/]* | ?:[\\/]*)
6580   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6581   ;;
6582   *)
6583   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6584 for as_dir in $PATH
6585 do
6586   IFS=$as_save_IFS
6587   test -z "$as_dir" && as_dir=.
6588   for ac_exec_ext in '' $ac_executable_extensions; do
6589   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6590     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6591     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6592     break 2
6593   fi
6594 done
6595 done
6596 IFS=$as_save_IFS
6597
6598   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6599   ;;
6600 esac
6601 fi
6602 FIND=$ac_cv_path_FIND
6603 if test -n "$FIND"; then
6604   { echo "$as_me:$LINENO: result: $FIND" >&5
6605 echo "${ECHO_T}$FIND" >&6; }
6606 else
6607   { echo "$as_me:$LINENO: result: no" >&5
6608 echo "${ECHO_T}no" >&6; }
6609 fi
6610
6611
6612 # Extract the first word of "grep", so it can be a program name with args.
6613 set dummy grep; ac_word=$2
6614 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6616 if test "${ac_cv_path_GREP+set}" = set; then
6617   echo $ECHO_N "(cached) $ECHO_C" >&6
6618 else
6619   case $GREP in
6620   [\\/]* | ?:[\\/]*)
6621   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6622   ;;
6623   *)
6624   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6625 for as_dir in $PATH
6626 do
6627   IFS=$as_save_IFS
6628   test -z "$as_dir" && as_dir=.
6629   for ac_exec_ext in '' $ac_executable_extensions; do
6630   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6631     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6632     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6633     break 2
6634   fi
6635 done
6636 done
6637 IFS=$as_save_IFS
6638
6639   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6640   ;;
6641 esac
6642 fi
6643 GREP=$ac_cv_path_GREP
6644 if test -n "$GREP"; then
6645   { echo "$as_me:$LINENO: result: $GREP" >&5
6646 echo "${ECHO_T}$GREP" >&6; }
6647 else
6648   { echo "$as_me:$LINENO: result: no" >&5
6649 echo "${ECHO_T}no" >&6; }
6650 fi
6651
6652
6653 # Extract the first word of "mkdir", so it can be a program name with args.
6654 set dummy mkdir; ac_word=$2
6655 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6657 if test "${ac_cv_path_MKDIR+set}" = set; then
6658   echo $ECHO_N "(cached) $ECHO_C" >&6
6659 else
6660   case $MKDIR in
6661   [\\/]* | ?:[\\/]*)
6662   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6663   ;;
6664   *)
6665   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6666 for as_dir in $PATH
6667 do
6668   IFS=$as_save_IFS
6669   test -z "$as_dir" && as_dir=.
6670   for ac_exec_ext in '' $ac_executable_extensions; do
6671   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6672     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6673     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6674     break 2
6675   fi
6676 done
6677 done
6678 IFS=$as_save_IFS
6679
6680   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6681   ;;
6682 esac
6683 fi
6684 MKDIR=$ac_cv_path_MKDIR
6685 if test -n "$MKDIR"; then
6686   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6687 echo "${ECHO_T}$MKDIR" >&6; }
6688 else
6689   { echo "$as_me:$LINENO: result: no" >&5
6690 echo "${ECHO_T}no" >&6; }
6691 fi
6692
6693
6694 # Extract the first word of "mv", so it can be a program name with args.
6695 set dummy mv; ac_word=$2
6696 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6698 if test "${ac_cv_path_MV+set}" = set; then
6699   echo $ECHO_N "(cached) $ECHO_C" >&6
6700 else
6701   case $MV in
6702   [\\/]* | ?:[\\/]*)
6703   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6704   ;;
6705   *)
6706   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6707 for as_dir in $PATH
6708 do
6709   IFS=$as_save_IFS
6710   test -z "$as_dir" && as_dir=.
6711   for ac_exec_ext in '' $ac_executable_extensions; do
6712   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6713     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6714     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6715     break 2
6716   fi
6717 done
6718 done
6719 IFS=$as_save_IFS
6720
6721   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6722   ;;
6723 esac
6724 fi
6725 MV=$ac_cv_path_MV
6726 if test -n "$MV"; then
6727   { echo "$as_me:$LINENO: result: $MV" >&5
6728 echo "${ECHO_T}$MV" >&6; }
6729 else
6730   { echo "$as_me:$LINENO: result: no" >&5
6731 echo "${ECHO_T}no" >&6; }
6732 fi
6733
6734
6735 if test -n "$ac_tool_prefix"; then
6736   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6737 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6738 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6740 if test "${ac_cv_prog_RANLIB+set}" = set; then
6741   echo $ECHO_N "(cached) $ECHO_C" >&6
6742 else
6743   if test -n "$RANLIB"; then
6744   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6745 else
6746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6747 for as_dir in $PATH
6748 do
6749   IFS=$as_save_IFS
6750   test -z "$as_dir" && as_dir=.
6751   for ac_exec_ext in '' $ac_executable_extensions; do
6752   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6753     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6754     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6755     break 2
6756   fi
6757 done
6758 done
6759 IFS=$as_save_IFS
6760
6761 fi
6762 fi
6763 RANLIB=$ac_cv_prog_RANLIB
6764 if test -n "$RANLIB"; then
6765   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6766 echo "${ECHO_T}$RANLIB" >&6; }
6767 else
6768   { echo "$as_me:$LINENO: result: no" >&5
6769 echo "${ECHO_T}no" >&6; }
6770 fi
6771
6772
6773 fi
6774 if test -z "$ac_cv_prog_RANLIB"; then
6775   ac_ct_RANLIB=$RANLIB
6776   # Extract the first word of "ranlib", so it can be a program name with args.
6777 set dummy ranlib; ac_word=$2
6778 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6780 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6781   echo $ECHO_N "(cached) $ECHO_C" >&6
6782 else
6783   if test -n "$ac_ct_RANLIB"; then
6784   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6785 else
6786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6787 for as_dir in $PATH
6788 do
6789   IFS=$as_save_IFS
6790   test -z "$as_dir" && as_dir=.
6791   for ac_exec_ext in '' $ac_executable_extensions; do
6792   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6793     ac_cv_prog_ac_ct_RANLIB="ranlib"
6794     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6795     break 2
6796   fi
6797 done
6798 done
6799 IFS=$as_save_IFS
6800
6801 fi
6802 fi
6803 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6804 if test -n "$ac_ct_RANLIB"; then
6805   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6806 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6807 else
6808   { echo "$as_me:$LINENO: result: no" >&5
6809 echo "${ECHO_T}no" >&6; }
6810 fi
6811
6812   if test "x$ac_ct_RANLIB" = x; then
6813     RANLIB=":"
6814   else
6815     case $cross_compiling:$ac_tool_warned in
6816 yes:)
6817 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6818 whose name does not start with the host triplet.  If you think this
6819 configuration is useful to you, please write to autoconf@gnu.org." >&5
6820 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6821 whose name does not start with the host triplet.  If you think this
6822 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6823 ac_tool_warned=yes ;;
6824 esac
6825     RANLIB=$ac_ct_RANLIB
6826   fi
6827 else
6828   RANLIB="$ac_cv_prog_RANLIB"
6829 fi
6830
6831 # Extract the first word of "rm", so it can be a program name with args.
6832 set dummy rm; ac_word=$2
6833 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6835 if test "${ac_cv_path_RM+set}" = set; then
6836   echo $ECHO_N "(cached) $ECHO_C" >&6
6837 else
6838   case $RM in
6839   [\\/]* | ?:[\\/]*)
6840   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6841   ;;
6842   *)
6843   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6844 for as_dir in $PATH
6845 do
6846   IFS=$as_save_IFS
6847   test -z "$as_dir" && as_dir=.
6848   for ac_exec_ext in '' $ac_executable_extensions; do
6849   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6850     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6851     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6852     break 2
6853   fi
6854 done
6855 done
6856 IFS=$as_save_IFS
6857
6858   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6859   ;;
6860 esac
6861 fi
6862 RM=$ac_cv_path_RM
6863 if test -n "$RM"; then
6864   { echo "$as_me:$LINENO: result: $RM" >&5
6865 echo "${ECHO_T}$RM" >&6; }
6866 else
6867   { echo "$as_me:$LINENO: result: no" >&5
6868 echo "${ECHO_T}no" >&6; }
6869 fi
6870
6871
6872 # Extract the first word of "sed", so it can be a program name with args.
6873 set dummy sed; ac_word=$2
6874 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6876 if test "${ac_cv_path_SED+set}" = set; then
6877   echo $ECHO_N "(cached) $ECHO_C" >&6
6878 else
6879   case $SED in
6880   [\\/]* | ?:[\\/]*)
6881   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6882   ;;
6883   *)
6884   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6885 for as_dir in $PATH
6886 do
6887   IFS=$as_save_IFS
6888   test -z "$as_dir" && as_dir=.
6889   for ac_exec_ext in '' $ac_executable_extensions; do
6890   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6891     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6892     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6893     break 2
6894   fi
6895 done
6896 done
6897 IFS=$as_save_IFS
6898
6899   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6900   ;;
6901 esac
6902 fi
6903 SED=$ac_cv_path_SED
6904 if test -n "$SED"; then
6905   { echo "$as_me:$LINENO: result: $SED" >&5
6906 echo "${ECHO_T}$SED" >&6; }
6907 else
6908   { echo "$as_me:$LINENO: result: no" >&5
6909 echo "${ECHO_T}no" >&6; }
6910 fi
6911
6912
6913 # Extract the first word of "tar", so it can be a program name with args.
6914 set dummy tar; ac_word=$2
6915 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6917 if test "${ac_cv_path_TAR+set}" = set; then
6918   echo $ECHO_N "(cached) $ECHO_C" >&6
6919 else
6920   case $TAR in
6921   [\\/]* | ?:[\\/]*)
6922   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6923   ;;
6924   *)
6925   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6926 for as_dir in $PATH
6927 do
6928   IFS=$as_save_IFS
6929   test -z "$as_dir" && as_dir=.
6930   for ac_exec_ext in '' $ac_executable_extensions; do
6931   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6932     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6933     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6934     break 2
6935   fi
6936 done
6937 done
6938 IFS=$as_save_IFS
6939
6940   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6941   ;;
6942 esac
6943 fi
6944 TAR=$ac_cv_path_TAR
6945 if test -n "$TAR"; then
6946   { echo "$as_me:$LINENO: result: $TAR" >&5
6947 echo "${ECHO_T}$TAR" >&6; }
6948 else
6949   { echo "$as_me:$LINENO: result: no" >&5
6950 echo "${ECHO_T}no" >&6; }
6951 fi
6952
6953
6954 # Extract the first word of "pwd", so it can be a program name with args.
6955 set dummy pwd; ac_word=$2
6956 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6958 if test "${ac_cv_path_BINPWD+set}" = set; then
6959   echo $ECHO_N "(cached) $ECHO_C" >&6
6960 else
6961   case $BINPWD in
6962   [\\/]* | ?:[\\/]*)
6963   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6964   ;;
6965   *)
6966   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6967 for as_dir in $PATH
6968 do
6969   IFS=$as_save_IFS
6970   test -z "$as_dir" && as_dir=.
6971   for ac_exec_ext in '' $ac_executable_extensions; do
6972   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6973     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6974     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6975     break 2
6976   fi
6977 done
6978 done
6979 IFS=$as_save_IFS
6980
6981   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6982   ;;
6983 esac
6984 fi
6985 BINPWD=$ac_cv_path_BINPWD
6986 if test -n "$BINPWD"; then
6987   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6988 echo "${ECHO_T}$BINPWD" >&6; }
6989 else
6990   { echo "$as_me:$LINENO: result: no" >&5
6991 echo "${ECHO_T}no" >&6; }
6992 fi
6993
6994
6995
6996 # Extract the first word of "Graphviz", so it can be a program name with args.
6997 set dummy Graphviz; ac_word=$2
6998 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7000 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7001   echo $ECHO_N "(cached) $ECHO_C" >&6
7002 else
7003   case $GRAPHVIZ in
7004   [\\/]* | ?:[\\/]*)
7005   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7006   ;;
7007   *)
7008   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7009 for as_dir in $PATH
7010 do
7011   IFS=$as_save_IFS
7012   test -z "$as_dir" && as_dir=.
7013   for ac_exec_ext in '' $ac_executable_extensions; do
7014   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7015     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7016     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7017     break 2
7018   fi
7019 done
7020 done
7021 IFS=$as_save_IFS
7022
7023   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7024   ;;
7025 esac
7026 fi
7027 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7028 if test -n "$GRAPHVIZ"; then
7029   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7030 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7031 else
7032   { echo "$as_me:$LINENO: result: no" >&5
7033 echo "${ECHO_T}no" >&6; }
7034 fi
7035
7036
7037 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7038
7039 cat >>confdefs.h <<\_ACEOF
7040 #define HAVE_GRAPHVIZ 1
7041 _ACEOF
7042
7043     if test "$llvm_cv_os_type" = "MingW" ; then
7044     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7045   fi
7046
7047 cat >>confdefs.h <<_ACEOF
7048 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7049 _ACEOF
7050
7051 fi
7052 # Extract the first word of "dot", so it can be a program name with args.
7053 set dummy dot; 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_path_DOT+set}" = set; then
7057   echo $ECHO_N "(cached) $ECHO_C" >&6
7058 else
7059   case $DOT in
7060   [\\/]* | ?:[\\/]*)
7061   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7062   ;;
7063   *)
7064   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7065 for as_dir in $PATH
7066 do
7067   IFS=$as_save_IFS
7068   test -z "$as_dir" && as_dir=.
7069   for ac_exec_ext in '' $ac_executable_extensions; do
7070   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7071     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7072     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7073     break 2
7074   fi
7075 done
7076 done
7077 IFS=$as_save_IFS
7078
7079   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7080   ;;
7081 esac
7082 fi
7083 DOT=$ac_cv_path_DOT
7084 if test -n "$DOT"; then
7085   { echo "$as_me:$LINENO: result: $DOT" >&5
7086 echo "${ECHO_T}$DOT" >&6; }
7087 else
7088   { echo "$as_me:$LINENO: result: no" >&5
7089 echo "${ECHO_T}no" >&6; }
7090 fi
7091
7092
7093 if test "$DOT" != "echo dot" ; then
7094
7095 cat >>confdefs.h <<\_ACEOF
7096 #define HAVE_DOT 1
7097 _ACEOF
7098
7099     if test "$llvm_cv_os_type" = "MingW" ; then
7100     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7101   fi
7102
7103 cat >>confdefs.h <<_ACEOF
7104 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7105 _ACEOF
7106
7107 fi
7108 for ac_prog in gv gsview32
7109 do
7110   # Extract the first word of "$ac_prog", so it can be a program name with args.
7111 set dummy $ac_prog; ac_word=$2
7112 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7114 if test "${ac_cv_path_GV+set}" = set; then
7115   echo $ECHO_N "(cached) $ECHO_C" >&6
7116 else
7117   case $GV in
7118   [\\/]* | ?:[\\/]*)
7119   ac_cv_path_GV="$GV" # Let the user override the test with a path.
7120   ;;
7121   *)
7122   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7123 for as_dir in $PATH
7124 do
7125   IFS=$as_save_IFS
7126   test -z "$as_dir" && as_dir=.
7127   for ac_exec_ext in '' $ac_executable_extensions; do
7128   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7129     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7130     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7131     break 2
7132   fi
7133 done
7134 done
7135 IFS=$as_save_IFS
7136
7137   ;;
7138 esac
7139 fi
7140 GV=$ac_cv_path_GV
7141 if test -n "$GV"; then
7142   { echo "$as_me:$LINENO: result: $GV" >&5
7143 echo "${ECHO_T}$GV" >&6; }
7144 else
7145   { echo "$as_me:$LINENO: result: no" >&5
7146 echo "${ECHO_T}no" >&6; }
7147 fi
7148
7149
7150   test -n "$GV" && break
7151 done
7152 test -n "$GV" || GV="echo gv"
7153
7154 if test "$GV" != "echo gv" ; then
7155
7156 cat >>confdefs.h <<\_ACEOF
7157 #define HAVE_GV 1
7158 _ACEOF
7159
7160     if test "$llvm_cv_os_type" = "MingW" ; then
7161     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7162   fi
7163
7164 cat >>confdefs.h <<_ACEOF
7165 #define LLVM_PATH_GV "$GV${EXEEXT}"
7166 _ACEOF
7167
7168 fi
7169 # Extract the first word of "dotty", so it can be a program name with args.
7170 set dummy dotty; ac_word=$2
7171 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7173 if test "${ac_cv_path_DOTTY+set}" = set; then
7174   echo $ECHO_N "(cached) $ECHO_C" >&6
7175 else
7176   case $DOTTY in
7177   [\\/]* | ?:[\\/]*)
7178   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7179   ;;
7180   *)
7181   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7182 for as_dir in $PATH
7183 do
7184   IFS=$as_save_IFS
7185   test -z "$as_dir" && as_dir=.
7186   for ac_exec_ext in '' $ac_executable_extensions; do
7187   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7188     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7189     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7190     break 2
7191   fi
7192 done
7193 done
7194 IFS=$as_save_IFS
7195
7196   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7197   ;;
7198 esac
7199 fi
7200 DOTTY=$ac_cv_path_DOTTY
7201 if test -n "$DOTTY"; then
7202   { echo "$as_me:$LINENO: result: $DOTTY" >&5
7203 echo "${ECHO_T}$DOTTY" >&6; }
7204 else
7205   { echo "$as_me:$LINENO: result: no" >&5
7206 echo "${ECHO_T}no" >&6; }
7207 fi
7208
7209
7210 if test "$DOTTY" != "echo dotty" ; then
7211
7212 cat >>confdefs.h <<\_ACEOF
7213 #define HAVE_DOTTY 1
7214 _ACEOF
7215
7216     if test "$llvm_cv_os_type" = "MingW" ; then
7217     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7218   fi
7219
7220 cat >>confdefs.h <<_ACEOF
7221 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7222 _ACEOF
7223
7224 fi
7225
7226
7227 # Extract the first word of "perl", so it can be a program name with args.
7228 set dummy perl; ac_word=$2
7229 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7231 if test "${ac_cv_path_PERL+set}" = set; then
7232   echo $ECHO_N "(cached) $ECHO_C" >&6
7233 else
7234   case $PERL in
7235   [\\/]* | ?:[\\/]*)
7236   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7237   ;;
7238   *)
7239   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7240 for as_dir in $PATH
7241 do
7242   IFS=$as_save_IFS
7243   test -z "$as_dir" && as_dir=.
7244   for ac_exec_ext in '' $ac_executable_extensions; do
7245   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7246     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7247     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7248     break 2
7249   fi
7250 done
7251 done
7252 IFS=$as_save_IFS
7253
7254   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7255   ;;
7256 esac
7257 fi
7258 PERL=$ac_cv_path_PERL
7259 if test -n "$PERL"; then
7260   { echo "$as_me:$LINENO: result: $PERL" >&5
7261 echo "${ECHO_T}$PERL" >&6; }
7262 else
7263   { echo "$as_me:$LINENO: result: no" >&5
7264 echo "${ECHO_T}no" >&6; }
7265 fi
7266
7267
7268 if test "$PERL" != "none"; then
7269   { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7270 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7271   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7272     { echo "$as_me:$LINENO: result: yes" >&5
7273 echo "${ECHO_T}yes" >&6; }
7274   else
7275     PERL=none
7276     { echo "$as_me:$LINENO: result: not found" >&5
7277 echo "${ECHO_T}not found" >&6; }
7278   fi
7279 fi
7280
7281
7282 if test x"$PERL" = xnone; then
7283    HAVE_PERL=0
7284
7285    { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7286 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7287    { (exit 1); exit 1; }; }
7288 else
7289    HAVE_PERL=1
7290
7291 fi
7292
7293 # Find a good install program.  We prefer a C program (faster),
7294 # so one script is as good as another.  But avoid the broken or
7295 # incompatible versions:
7296 # SysV /etc/install, /usr/sbin/install
7297 # SunOS /usr/etc/install
7298 # IRIX /sbin/install
7299 # AIX /bin/install
7300 # AmigaOS /C/install, which installs bootblocks on floppy discs
7301 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7302 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7303 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7304 # OS/2's system install, which has a completely different semantic
7305 # ./install, which can be erroneously created by make from ./install.sh.
7306 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7307 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7308 if test -z "$INSTALL"; then
7309 if test "${ac_cv_path_install+set}" = set; then
7310   echo $ECHO_N "(cached) $ECHO_C" >&6
7311 else
7312   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7313 for as_dir in $PATH
7314 do
7315   IFS=$as_save_IFS
7316   test -z "$as_dir" && as_dir=.
7317   # Account for people who put trailing slashes in PATH elements.
7318 case $as_dir/ in
7319   ./ | .// | /cC/* | \
7320   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7321   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7322   /usr/ucb/* ) ;;
7323   *)
7324     # OSF1 and SCO ODT 3.0 have their own names for install.
7325     # Don't use installbsd from OSF since it installs stuff as root
7326     # by default.
7327     for ac_prog in ginstall scoinst install; do
7328       for ac_exec_ext in '' $ac_executable_extensions; do
7329         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7330           if test $ac_prog = install &&
7331             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7332             # AIX install.  It has an incompatible calling convention.
7333             :
7334           elif test $ac_prog = install &&
7335             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7336             # program-specific install script used by HP pwplus--don't use.
7337             :
7338           else
7339             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7340             break 3
7341           fi
7342         fi
7343       done
7344     done
7345     ;;
7346 esac
7347 done
7348 IFS=$as_save_IFS
7349
7350
7351 fi
7352   if test "${ac_cv_path_install+set}" = set; then
7353     INSTALL=$ac_cv_path_install
7354   else
7355     # As a last resort, use the slow shell script.  Don't cache a
7356     # value for INSTALL within a source directory, because that will
7357     # break other packages using the cache if that directory is
7358     # removed, or if the value is a relative name.
7359     INSTALL=$ac_install_sh
7360   fi
7361 fi
7362 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7363 echo "${ECHO_T}$INSTALL" >&6; }
7364
7365 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7366 # It thinks the first close brace ends the variable substitution.
7367 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7368
7369 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7370
7371 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7372
7373
7374 # Extract the first word of "bzip2", so it can be a program name with args.
7375 set dummy bzip2; ac_word=$2
7376 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7378 if test "${ac_cv_path_BZIP2+set}" = set; then
7379   echo $ECHO_N "(cached) $ECHO_C" >&6
7380 else
7381   case $BZIP2 in
7382   [\\/]* | ?:[\\/]*)
7383   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7384   ;;
7385   *)
7386   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7387 for as_dir in $PATH
7388 do
7389   IFS=$as_save_IFS
7390   test -z "$as_dir" && as_dir=.
7391   for ac_exec_ext in '' $ac_executable_extensions; do
7392   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7393     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7394     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7395     break 2
7396   fi
7397 done
7398 done
7399 IFS=$as_save_IFS
7400
7401   ;;
7402 esac
7403 fi
7404 BZIP2=$ac_cv_path_BZIP2
7405 if test -n "$BZIP2"; then
7406   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7407 echo "${ECHO_T}$BZIP2" >&6; }
7408 else
7409   { echo "$as_me:$LINENO: result: no" >&5
7410 echo "${ECHO_T}no" >&6; }
7411 fi
7412
7413
7414 # Extract the first word of "doxygen", so it can be a program name with args.
7415 set dummy doxygen; ac_word=$2
7416 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7418 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7419   echo $ECHO_N "(cached) $ECHO_C" >&6
7420 else
7421   case $DOXYGEN in
7422   [\\/]* | ?:[\\/]*)
7423   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7424   ;;
7425   *)
7426   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7427 for as_dir in $PATH
7428 do
7429   IFS=$as_save_IFS
7430   test -z "$as_dir" && as_dir=.
7431   for ac_exec_ext in '' $ac_executable_extensions; do
7432   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7433     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7434     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7435     break 2
7436   fi
7437 done
7438 done
7439 IFS=$as_save_IFS
7440
7441   ;;
7442 esac
7443 fi
7444 DOXYGEN=$ac_cv_path_DOXYGEN
7445 if test -n "$DOXYGEN"; then
7446   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7447 echo "${ECHO_T}$DOXYGEN" >&6; }
7448 else
7449   { echo "$as_me:$LINENO: result: no" >&5
7450 echo "${ECHO_T}no" >&6; }
7451 fi
7452
7453
7454 # Extract the first word of "groff", so it can be a program name with args.
7455 set dummy groff; ac_word=$2
7456 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7458 if test "${ac_cv_path_GROFF+set}" = set; then
7459   echo $ECHO_N "(cached) $ECHO_C" >&6
7460 else
7461   case $GROFF in
7462   [\\/]* | ?:[\\/]*)
7463   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7464   ;;
7465   *)
7466   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7467 for as_dir in $PATH
7468 do
7469   IFS=$as_save_IFS
7470   test -z "$as_dir" && as_dir=.
7471   for ac_exec_ext in '' $ac_executable_extensions; do
7472   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7473     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7474     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7475     break 2
7476   fi
7477 done
7478 done
7479 IFS=$as_save_IFS
7480
7481   ;;
7482 esac
7483 fi
7484 GROFF=$ac_cv_path_GROFF
7485 if test -n "$GROFF"; then
7486   { echo "$as_me:$LINENO: result: $GROFF" >&5
7487 echo "${ECHO_T}$GROFF" >&6; }
7488 else
7489   { echo "$as_me:$LINENO: result: no" >&5
7490 echo "${ECHO_T}no" >&6; }
7491 fi
7492
7493
7494 # Extract the first word of "gzip", so it can be a program name with args.
7495 set dummy gzip; ac_word=$2
7496 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7498 if test "${ac_cv_path_GZIP+set}" = set; then
7499   echo $ECHO_N "(cached) $ECHO_C" >&6
7500 else
7501   case $GZIP in
7502   [\\/]* | ?:[\\/]*)
7503   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7504   ;;
7505   *)
7506   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7507 for as_dir in $PATH
7508 do
7509   IFS=$as_save_IFS
7510   test -z "$as_dir" && as_dir=.
7511   for ac_exec_ext in '' $ac_executable_extensions; do
7512   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7513     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7514     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7515     break 2
7516   fi
7517 done
7518 done
7519 IFS=$as_save_IFS
7520
7521   ;;
7522 esac
7523 fi
7524 GZIP=$ac_cv_path_GZIP
7525 if test -n "$GZIP"; then
7526   { echo "$as_me:$LINENO: result: $GZIP" >&5
7527 echo "${ECHO_T}$GZIP" >&6; }
7528 else
7529   { echo "$as_me:$LINENO: result: no" >&5
7530 echo "${ECHO_T}no" >&6; }
7531 fi
7532
7533
7534 # Extract the first word of "pod2html", so it can be a program name with args.
7535 set dummy pod2html; ac_word=$2
7536 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7538 if test "${ac_cv_path_POD2HTML+set}" = set; then
7539   echo $ECHO_N "(cached) $ECHO_C" >&6
7540 else
7541   case $POD2HTML in
7542   [\\/]* | ?:[\\/]*)
7543   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7544   ;;
7545   *)
7546   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7547 for as_dir in $PATH
7548 do
7549   IFS=$as_save_IFS
7550   test -z "$as_dir" && as_dir=.
7551   for ac_exec_ext in '' $ac_executable_extensions; do
7552   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7553     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7554     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7555     break 2
7556   fi
7557 done
7558 done
7559 IFS=$as_save_IFS
7560
7561   ;;
7562 esac
7563 fi
7564 POD2HTML=$ac_cv_path_POD2HTML
7565 if test -n "$POD2HTML"; then
7566   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7567 echo "${ECHO_T}$POD2HTML" >&6; }
7568 else
7569   { echo "$as_me:$LINENO: result: no" >&5
7570 echo "${ECHO_T}no" >&6; }
7571 fi
7572
7573
7574 # Extract the first word of "pod2man", so it can be a program name with args.
7575 set dummy pod2man; ac_word=$2
7576 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7578 if test "${ac_cv_path_POD2MAN+set}" = set; then
7579   echo $ECHO_N "(cached) $ECHO_C" >&6
7580 else
7581   case $POD2MAN in
7582   [\\/]* | ?:[\\/]*)
7583   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7584   ;;
7585   *)
7586   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7587 for as_dir in $PATH
7588 do
7589   IFS=$as_save_IFS
7590   test -z "$as_dir" && as_dir=.
7591   for ac_exec_ext in '' $ac_executable_extensions; do
7592   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7593     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7594     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7595     break 2
7596   fi
7597 done
7598 done
7599 IFS=$as_save_IFS
7600
7601   ;;
7602 esac
7603 fi
7604 POD2MAN=$ac_cv_path_POD2MAN
7605 if test -n "$POD2MAN"; then
7606   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7607 echo "${ECHO_T}$POD2MAN" >&6; }
7608 else
7609   { echo "$as_me:$LINENO: result: no" >&5
7610 echo "${ECHO_T}no" >&6; }
7611 fi
7612
7613
7614 # Extract the first word of "runtest", so it can be a program name with args.
7615 set dummy runtest; ac_word=$2
7616 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7618 if test "${ac_cv_path_RUNTEST+set}" = set; then
7619   echo $ECHO_N "(cached) $ECHO_C" >&6
7620 else
7621   case $RUNTEST in
7622   [\\/]* | ?:[\\/]*)
7623   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7624   ;;
7625   *)
7626   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7627 for as_dir in $PATH
7628 do
7629   IFS=$as_save_IFS
7630   test -z "$as_dir" && as_dir=.
7631   for ac_exec_ext in '' $ac_executable_extensions; do
7632   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7633     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7634     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7635     break 2
7636   fi
7637 done
7638 done
7639 IFS=$as_save_IFS
7640
7641   ;;
7642 esac
7643 fi
7644 RUNTEST=$ac_cv_path_RUNTEST
7645 if test -n "$RUNTEST"; then
7646   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7647 echo "${ECHO_T}$RUNTEST" >&6; }
7648 else
7649   { echo "$as_me:$LINENO: result: no" >&5
7650 echo "${ECHO_T}no" >&6; }
7651 fi
7652
7653
7654
7655 no_itcl=true
7656 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7657 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7658
7659 # Check whether --with-tclinclude was given.
7660 if test "${with_tclinclude+set}" = set; then
7661   withval=$with_tclinclude; with_tclinclude=${withval}
7662 else
7663   with_tclinclude=''
7664 fi
7665
7666 if test "${ac_cv_path_tclsh+set}" = set; then
7667   echo $ECHO_N "(cached) $ECHO_C" >&6
7668 else
7669
7670 if test x"${with_tclinclude}" != x ; then
7671   if test -f ${with_tclinclude}/tclsh ; then
7672     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7673   elif test -f ${with_tclinclude}/src/tclsh ; then
7674     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7675   else
7676     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7677 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7678    { (exit 1); exit 1; }; }
7679   fi
7680 fi
7681
7682 if test x"${ac_cv_path_tclsh}" = x ; then
7683   { echo "$as_me:$LINENO: result: none" >&5
7684 echo "${ECHO_T}none" >&6; }
7685   for ac_prog in tclsh8.4 tclsh8.4.8 tclsh8.4.7 tclsh8.4.6 tclsh8.4.5 tclsh8.4.4 tclsh8.4.3 tclsh8.4.2 tclsh8.4.1 tclsh8.4.0 tclsh8.3 tclsh8.3.5 tclsh8.3.4 tclsh8.3.3 tclsh8.3.2 tclsh8.3.1 tclsh8.3.0 tclsh
7686 do
7687   # Extract the first word of "$ac_prog", so it can be a program name with args.
7688 set dummy $ac_prog; ac_word=$2
7689 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7691 if test "${ac_cv_path_TCLSH+set}" = set; then
7692   echo $ECHO_N "(cached) $ECHO_C" >&6
7693 else
7694   case $TCLSH in
7695   [\\/]* | ?:[\\/]*)
7696   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7697   ;;
7698   *)
7699   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7700 for as_dir in $PATH
7701 do
7702   IFS=$as_save_IFS
7703   test -z "$as_dir" && as_dir=.
7704   for ac_exec_ext in '' $ac_executable_extensions; do
7705   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7706     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7707     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7708     break 2
7709   fi
7710 done
7711 done
7712 IFS=$as_save_IFS
7713
7714   ;;
7715 esac
7716 fi
7717 TCLSH=$ac_cv_path_TCLSH
7718 if test -n "$TCLSH"; then
7719   { echo "$as_me:$LINENO: result: $TCLSH" >&5
7720 echo "${ECHO_T}$TCLSH" >&6; }
7721 else
7722   { echo "$as_me:$LINENO: result: no" >&5
7723 echo "${ECHO_T}no" >&6; }
7724 fi
7725
7726
7727   test -n "$TCLSH" && break
7728 done
7729
7730   if test x"${TCLSH}" = x ; then
7731     ac_cv_path_tclsh='';
7732   else
7733     ac_cv_path_tclsh="${TCLSH}";
7734   fi
7735 else
7736   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7737 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7738   TCLSH="${ac_cv_path_tclsh}"
7739
7740 fi
7741
7742 fi
7743
7744 # Extract the first word of "zip", so it can be a program name with args.
7745 set dummy zip; ac_word=$2
7746 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7748 if test "${ac_cv_path_ZIP+set}" = set; then
7749   echo $ECHO_N "(cached) $ECHO_C" >&6
7750 else
7751   case $ZIP in
7752   [\\/]* | ?:[\\/]*)
7753   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7754   ;;
7755   *)
7756   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7757 for as_dir in $PATH
7758 do
7759   IFS=$as_save_IFS
7760   test -z "$as_dir" && as_dir=.
7761   for ac_exec_ext in '' $ac_executable_extensions; do
7762   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7763     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7764     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7765     break 2
7766   fi
7767 done
7768 done
7769 IFS=$as_save_IFS
7770
7771   ;;
7772 esac
7773 fi
7774 ZIP=$ac_cv_path_ZIP
7775 if test -n "$ZIP"; then
7776   { echo "$as_me:$LINENO: result: $ZIP" >&5
7777 echo "${ECHO_T}$ZIP" >&6; }
7778 else
7779   { echo "$as_me:$LINENO: result: no" >&5
7780 echo "${ECHO_T}no" >&6; }
7781 fi
7782
7783
7784 for ac_prog in ocamlc
7785 do
7786   # Extract the first word of "$ac_prog", so it can be a program name with args.
7787 set dummy $ac_prog; ac_word=$2
7788 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7790 if test "${ac_cv_path_OCAMLC+set}" = set; then
7791   echo $ECHO_N "(cached) $ECHO_C" >&6
7792 else
7793   case $OCAMLC in
7794   [\\/]* | ?:[\\/]*)
7795   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7796   ;;
7797   *)
7798   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7799 for as_dir in $PATH
7800 do
7801   IFS=$as_save_IFS
7802   test -z "$as_dir" && as_dir=.
7803   for ac_exec_ext in '' $ac_executable_extensions; do
7804   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7805     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7806     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7807     break 2
7808   fi
7809 done
7810 done
7811 IFS=$as_save_IFS
7812
7813   ;;
7814 esac
7815 fi
7816 OCAMLC=$ac_cv_path_OCAMLC
7817 if test -n "$OCAMLC"; then
7818   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7819 echo "${ECHO_T}$OCAMLC" >&6; }
7820 else
7821   { echo "$as_me:$LINENO: result: no" >&5
7822 echo "${ECHO_T}no" >&6; }
7823 fi
7824
7825
7826   test -n "$OCAMLC" && break
7827 done
7828
7829 for ac_prog in ocamlopt
7830 do
7831   # Extract the first word of "$ac_prog", so it can be a program name with args.
7832 set dummy $ac_prog; ac_word=$2
7833 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7835 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7836   echo $ECHO_N "(cached) $ECHO_C" >&6
7837 else
7838   case $OCAMLOPT in
7839   [\\/]* | ?:[\\/]*)
7840   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7841   ;;
7842   *)
7843   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7844 for as_dir in $PATH
7845 do
7846   IFS=$as_save_IFS
7847   test -z "$as_dir" && as_dir=.
7848   for ac_exec_ext in '' $ac_executable_extensions; do
7849   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7850     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7851     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7852     break 2
7853   fi
7854 done
7855 done
7856 IFS=$as_save_IFS
7857
7858   ;;
7859 esac
7860 fi
7861 OCAMLOPT=$ac_cv_path_OCAMLOPT
7862 if test -n "$OCAMLOPT"; then
7863   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7864 echo "${ECHO_T}$OCAMLOPT" >&6; }
7865 else
7866   { echo "$as_me:$LINENO: result: no" >&5
7867 echo "${ECHO_T}no" >&6; }
7868 fi
7869
7870
7871   test -n "$OCAMLOPT" && break
7872 done
7873
7874 for ac_prog in ocamldep
7875 do
7876   # Extract the first word of "$ac_prog", so it can be a program name with args.
7877 set dummy $ac_prog; ac_word=$2
7878 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7880 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7881   echo $ECHO_N "(cached) $ECHO_C" >&6
7882 else
7883   case $OCAMLDEP in
7884   [\\/]* | ?:[\\/]*)
7885   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7886   ;;
7887   *)
7888   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7889 for as_dir in $PATH
7890 do
7891   IFS=$as_save_IFS
7892   test -z "$as_dir" && as_dir=.
7893   for ac_exec_ext in '' $ac_executable_extensions; do
7894   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7895     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7896     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7897     break 2
7898   fi
7899 done
7900 done
7901 IFS=$as_save_IFS
7902
7903   ;;
7904 esac
7905 fi
7906 OCAMLDEP=$ac_cv_path_OCAMLDEP
7907 if test -n "$OCAMLDEP"; then
7908   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7909 echo "${ECHO_T}$OCAMLDEP" >&6; }
7910 else
7911   { echo "$as_me:$LINENO: result: no" >&5
7912 echo "${ECHO_T}no" >&6; }
7913 fi
7914
7915
7916   test -n "$OCAMLDEP" && break
7917 done
7918
7919 for ac_prog in ocamldoc
7920 do
7921   # Extract the first word of "$ac_prog", so it can be a program name with args.
7922 set dummy $ac_prog; ac_word=$2
7923 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7925 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7926   echo $ECHO_N "(cached) $ECHO_C" >&6
7927 else
7928   case $OCAMLDOC in
7929   [\\/]* | ?:[\\/]*)
7930   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7931   ;;
7932   *)
7933   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7934 for as_dir in $PATH
7935 do
7936   IFS=$as_save_IFS
7937   test -z "$as_dir" && as_dir=.
7938   for ac_exec_ext in '' $ac_executable_extensions; do
7939   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7940     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7941     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7942     break 2
7943   fi
7944 done
7945 done
7946 IFS=$as_save_IFS
7947
7948   ;;
7949 esac
7950 fi
7951 OCAMLDOC=$ac_cv_path_OCAMLDOC
7952 if test -n "$OCAMLDOC"; then
7953   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7954 echo "${ECHO_T}$OCAMLDOC" >&6; }
7955 else
7956   { echo "$as_me:$LINENO: result: no" >&5
7957 echo "${ECHO_T}no" >&6; }
7958 fi
7959
7960
7961   test -n "$OCAMLDOC" && break
7962 done
7963
7964 for ac_prog in gas as
7965 do
7966   # Extract the first word of "$ac_prog", so it can be a program name with args.
7967 set dummy $ac_prog; ac_word=$2
7968 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7970 if test "${ac_cv_path_GAS+set}" = set; then
7971   echo $ECHO_N "(cached) $ECHO_C" >&6
7972 else
7973   case $GAS in
7974   [\\/]* | ?:[\\/]*)
7975   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7976   ;;
7977   *)
7978   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7979 for as_dir in $PATH
7980 do
7981   IFS=$as_save_IFS
7982   test -z "$as_dir" && as_dir=.
7983   for ac_exec_ext in '' $ac_executable_extensions; do
7984   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7985     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7986     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7987     break 2
7988   fi
7989 done
7990 done
7991 IFS=$as_save_IFS
7992
7993   ;;
7994 esac
7995 fi
7996 GAS=$ac_cv_path_GAS
7997 if test -n "$GAS"; then
7998   { echo "$as_me:$LINENO: result: $GAS" >&5
7999 echo "${ECHO_T}$GAS" >&6; }
8000 else
8001   { echo "$as_me:$LINENO: result: no" >&5
8002 echo "${ECHO_T}no" >&6; }
8003 fi
8004
8005
8006   test -n "$GAS" && break
8007 done
8008
8009
8010 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8011 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8012 if test "${llvm_cv_link_use_r+set}" = set; then
8013   echo $ECHO_N "(cached) $ECHO_C" >&6
8014 else
8015    ac_ext=c
8016 ac_cpp='$CPP $CPPFLAGS'
8017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8020
8021   oldcflags="$CFLAGS"
8022   CFLAGS="$CFLAGS -Wl,-R."
8023   cat >conftest.$ac_ext <<_ACEOF
8024 /* confdefs.h.  */
8025 _ACEOF
8026 cat confdefs.h >>conftest.$ac_ext
8027 cat >>conftest.$ac_ext <<_ACEOF
8028 /* end confdefs.h.  */
8029
8030 int
8031 main ()
8032 {
8033 int main() { return 0; }
8034   ;
8035   return 0;
8036 }
8037 _ACEOF
8038 rm -f conftest.$ac_objext conftest$ac_exeext
8039 if { (ac_try="$ac_link"
8040 case "(($ac_try" in
8041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8042   *) ac_try_echo=$ac_try;;
8043 esac
8044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8045   (eval "$ac_link") 2>conftest.er1
8046   ac_status=$?
8047   grep -v '^ *+' conftest.er1 >conftest.err
8048   rm -f conftest.er1
8049   cat conftest.err >&5
8050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051   (exit $ac_status); } &&
8052          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8053   { (case "(($ac_try" in
8054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8055   *) ac_try_echo=$ac_try;;
8056 esac
8057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8058   (eval "$ac_try") 2>&5
8059   ac_status=$?
8060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061   (exit $ac_status); }; } &&
8062          { ac_try='test -s conftest$ac_exeext'
8063   { (case "(($ac_try" in
8064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8065   *) ac_try_echo=$ac_try;;
8066 esac
8067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8068   (eval "$ac_try") 2>&5
8069   ac_status=$?
8070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071   (exit $ac_status); }; }; then
8072   llvm_cv_link_use_r=yes
8073 else
8074   echo "$as_me: failed program was:" >&5
8075 sed 's/^/| /' conftest.$ac_ext >&5
8076
8077         llvm_cv_link_use_r=no
8078 fi
8079
8080 rm -f core conftest.err conftest.$ac_objext \
8081       conftest$ac_exeext conftest.$ac_ext
8082   CFLAGS="$oldcflags"
8083   ac_ext=c
8084 ac_cpp='$CPP $CPPFLAGS'
8085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8088
8089
8090 fi
8091 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8092 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8093 if test "$llvm_cv_link_use_r" = yes ; then
8094
8095 cat >>confdefs.h <<\_ACEOF
8096 #define HAVE_LINK_R 1
8097 _ACEOF
8098
8099   fi
8100
8101
8102 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8103 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8104 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8105   echo $ECHO_N "(cached) $ECHO_C" >&6
8106 else
8107    ac_ext=c
8108 ac_cpp='$CPP $CPPFLAGS'
8109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8112
8113   oldcflags="$CFLAGS"
8114   CFLAGS="$CFLAGS -Wl,-export-dynamic"
8115   cat >conftest.$ac_ext <<_ACEOF
8116 /* confdefs.h.  */
8117 _ACEOF
8118 cat confdefs.h >>conftest.$ac_ext
8119 cat >>conftest.$ac_ext <<_ACEOF
8120 /* end confdefs.h.  */
8121
8122 int
8123 main ()
8124 {
8125 int main() { return 0; }
8126   ;
8127   return 0;
8128 }
8129 _ACEOF
8130 rm -f conftest.$ac_objext conftest$ac_exeext
8131 if { (ac_try="$ac_link"
8132 case "(($ac_try" in
8133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8134   *) ac_try_echo=$ac_try;;
8135 esac
8136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8137   (eval "$ac_link") 2>conftest.er1
8138   ac_status=$?
8139   grep -v '^ *+' conftest.er1 >conftest.err
8140   rm -f conftest.er1
8141   cat conftest.err >&5
8142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8143   (exit $ac_status); } &&
8144          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8145   { (case "(($ac_try" in
8146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8147   *) ac_try_echo=$ac_try;;
8148 esac
8149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8150   (eval "$ac_try") 2>&5
8151   ac_status=$?
8152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8153   (exit $ac_status); }; } &&
8154          { ac_try='test -s conftest$ac_exeext'
8155   { (case "(($ac_try" in
8156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8157   *) ac_try_echo=$ac_try;;
8158 esac
8159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8160   (eval "$ac_try") 2>&5
8161   ac_status=$?
8162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8163   (exit $ac_status); }; }; then
8164   llvm_cv_link_use_export_dynamic=yes
8165 else
8166   echo "$as_me: failed program was:" >&5
8167 sed 's/^/| /' conftest.$ac_ext >&5
8168
8169         llvm_cv_link_use_export_dynamic=no
8170 fi
8171
8172 rm -f core conftest.err conftest.$ac_objext \
8173       conftest$ac_exeext conftest.$ac_ext
8174   CFLAGS="$oldcflags"
8175   ac_ext=c
8176 ac_cpp='$CPP $CPPFLAGS'
8177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8180
8181
8182 fi
8183 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8184 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8185 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8186
8187 cat >>confdefs.h <<\_ACEOF
8188 #define HAVE_LINK_EXPORT_DYNAMIC 1
8189 _ACEOF
8190
8191   fi
8192
8193
8194
8195
8196 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8197 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8198 if test "${ac_cv_c_const+set}" = set; then
8199   echo $ECHO_N "(cached) $ECHO_C" >&6
8200 else
8201   cat >conftest.$ac_ext <<_ACEOF
8202 /* confdefs.h.  */
8203 _ACEOF
8204 cat confdefs.h >>conftest.$ac_ext
8205 cat >>conftest.$ac_ext <<_ACEOF
8206 /* end confdefs.h.  */
8207
8208 int
8209 main ()
8210 {
8211 /* FIXME: Include the comments suggested by Paul. */
8212 #ifndef __cplusplus
8213   /* Ultrix mips cc rejects this.  */
8214   typedef int charset[2];
8215   const charset x;
8216   /* SunOS 4.1.1 cc rejects this.  */
8217   char const *const *ccp;
8218   char **p;
8219   /* NEC SVR4.0.2 mips cc rejects this.  */
8220   struct point {int x, y;};
8221   static struct point const zero = {0,0};
8222   /* AIX XL C 1.02.0.0 rejects this.
8223      It does not let you subtract one const X* pointer from another in
8224      an arm of an if-expression whose if-part is not a constant
8225      expression */
8226   const char *g = "string";
8227   ccp = &g + (g ? g-g : 0);
8228   /* HPUX 7.0 cc rejects these. */
8229   ++ccp;
8230   p = (char**) ccp;
8231   ccp = (char const *const *) p;
8232   { /* SCO 3.2v4 cc rejects this.  */
8233     char *t;
8234     char const *s = 0 ? (char *) 0 : (char const *) 0;
8235
8236     *t++ = 0;
8237     if (s) return 0;
8238   }
8239   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8240     int x[] = {25, 17};
8241     const int *foo = &x[0];
8242     ++foo;
8243   }
8244   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8245     typedef const int *iptr;
8246     iptr p = 0;
8247     ++p;
8248   }
8249   { /* AIX XL C 1.02.0.0 rejects this saying
8250        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8251     struct s { int j; const int *ap[3]; };
8252     struct s *b; b->j = 5;
8253   }
8254   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8255     const int foo = 10;
8256     if (!foo) return 0;
8257   }
8258   return !x[0] && !zero.x;
8259 #endif
8260
8261   ;
8262   return 0;
8263 }
8264 _ACEOF
8265 rm -f conftest.$ac_objext
8266 if { (ac_try="$ac_compile"
8267 case "(($ac_try" in
8268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8269   *) ac_try_echo=$ac_try;;
8270 esac
8271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8272   (eval "$ac_compile") 2>conftest.er1
8273   ac_status=$?
8274   grep -v '^ *+' conftest.er1 >conftest.err
8275   rm -f conftest.er1
8276   cat conftest.err >&5
8277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8278   (exit $ac_status); } &&
8279          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8280   { (case "(($ac_try" in
8281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8282   *) ac_try_echo=$ac_try;;
8283 esac
8284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8285   (eval "$ac_try") 2>&5
8286   ac_status=$?
8287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288   (exit $ac_status); }; } &&
8289          { ac_try='test -s conftest.$ac_objext'
8290   { (case "(($ac_try" in
8291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8292   *) ac_try_echo=$ac_try;;
8293 esac
8294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8295   (eval "$ac_try") 2>&5
8296   ac_status=$?
8297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298   (exit $ac_status); }; }; then
8299   ac_cv_c_const=yes
8300 else
8301   echo "$as_me: failed program was:" >&5
8302 sed 's/^/| /' conftest.$ac_ext >&5
8303
8304         ac_cv_c_const=no
8305 fi
8306
8307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8308 fi
8309 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8310 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8311 if test $ac_cv_c_const = no; then
8312
8313 cat >>confdefs.h <<\_ACEOF
8314 #define const
8315 _ACEOF
8316
8317 fi
8318
8319
8320
8321
8322
8323
8324 ac_header_dirent=no
8325 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8326   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8327 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8328 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8329 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8330   echo $ECHO_N "(cached) $ECHO_C" >&6
8331 else
8332   cat >conftest.$ac_ext <<_ACEOF
8333 /* confdefs.h.  */
8334 _ACEOF
8335 cat confdefs.h >>conftest.$ac_ext
8336 cat >>conftest.$ac_ext <<_ACEOF
8337 /* end confdefs.h.  */
8338 #include <sys/types.h>
8339 #include <$ac_hdr>
8340
8341 int
8342 main ()
8343 {
8344 if ((DIR *) 0)
8345 return 0;
8346   ;
8347   return 0;
8348 }
8349 _ACEOF
8350 rm -f conftest.$ac_objext
8351 if { (ac_try="$ac_compile"
8352 case "(($ac_try" in
8353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8354   *) ac_try_echo=$ac_try;;
8355 esac
8356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8357   (eval "$ac_compile") 2>conftest.er1
8358   ac_status=$?
8359   grep -v '^ *+' conftest.er1 >conftest.err
8360   rm -f conftest.er1
8361   cat conftest.err >&5
8362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8363   (exit $ac_status); } &&
8364          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8365   { (case "(($ac_try" in
8366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8367   *) ac_try_echo=$ac_try;;
8368 esac
8369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8370   (eval "$ac_try") 2>&5
8371   ac_status=$?
8372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373   (exit $ac_status); }; } &&
8374          { ac_try='test -s conftest.$ac_objext'
8375   { (case "(($ac_try" in
8376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8377   *) ac_try_echo=$ac_try;;
8378 esac
8379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8380   (eval "$ac_try") 2>&5
8381   ac_status=$?
8382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8383   (exit $ac_status); }; }; then
8384   eval "$as_ac_Header=yes"
8385 else
8386   echo "$as_me: failed program was:" >&5
8387 sed 's/^/| /' conftest.$ac_ext >&5
8388
8389         eval "$as_ac_Header=no"
8390 fi
8391
8392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8393 fi
8394 ac_res=`eval echo '${'$as_ac_Header'}'`
8395                { echo "$as_me:$LINENO: result: $ac_res" >&5
8396 echo "${ECHO_T}$ac_res" >&6; }
8397 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8398   cat >>confdefs.h <<_ACEOF
8399 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8400 _ACEOF
8401
8402 ac_header_dirent=$ac_hdr; break
8403 fi
8404
8405 done
8406 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8407 if test $ac_header_dirent = dirent.h; then
8408   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8409 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8410 if test "${ac_cv_search_opendir+set}" = set; then
8411   echo $ECHO_N "(cached) $ECHO_C" >&6
8412 else
8413   ac_func_search_save_LIBS=$LIBS
8414 cat >conftest.$ac_ext <<_ACEOF
8415 /* confdefs.h.  */
8416 _ACEOF
8417 cat confdefs.h >>conftest.$ac_ext
8418 cat >>conftest.$ac_ext <<_ACEOF
8419 /* end confdefs.h.  */
8420
8421 /* Override any GCC internal prototype to avoid an error.
8422    Use char because int might match the return type of a GCC
8423    builtin and then its argument prototype would still apply.  */
8424 #ifdef __cplusplus
8425 extern "C"
8426 #endif
8427 char opendir ();
8428 int
8429 main ()
8430 {
8431 return opendir ();
8432   ;
8433   return 0;
8434 }
8435 _ACEOF
8436 for ac_lib in '' dir; do
8437   if test -z "$ac_lib"; then
8438     ac_res="none required"
8439   else
8440     ac_res=-l$ac_lib
8441     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8442   fi
8443   rm -f conftest.$ac_objext conftest$ac_exeext
8444 if { (ac_try="$ac_link"
8445 case "(($ac_try" in
8446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8447   *) ac_try_echo=$ac_try;;
8448 esac
8449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8450   (eval "$ac_link") 2>conftest.er1
8451   ac_status=$?
8452   grep -v '^ *+' conftest.er1 >conftest.err
8453   rm -f conftest.er1
8454   cat conftest.err >&5
8455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8456   (exit $ac_status); } &&
8457          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
8464   ac_status=$?
8465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466   (exit $ac_status); }; } &&
8467          { ac_try='test -s conftest$ac_exeext'
8468   { (case "(($ac_try" in
8469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8470   *) ac_try_echo=$ac_try;;
8471 esac
8472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8473   (eval "$ac_try") 2>&5
8474   ac_status=$?
8475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8476   (exit $ac_status); }; }; then
8477   ac_cv_search_opendir=$ac_res
8478 else
8479   echo "$as_me: failed program was:" >&5
8480 sed 's/^/| /' conftest.$ac_ext >&5
8481
8482
8483 fi
8484
8485 rm -f core conftest.err conftest.$ac_objext \
8486       conftest$ac_exeext
8487   if test "${ac_cv_search_opendir+set}" = set; then
8488   break
8489 fi
8490 done
8491 if test "${ac_cv_search_opendir+set}" = set; then
8492   :
8493 else
8494   ac_cv_search_opendir=no
8495 fi
8496 rm conftest.$ac_ext
8497 LIBS=$ac_func_search_save_LIBS
8498 fi
8499 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8500 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8501 ac_res=$ac_cv_search_opendir
8502 if test "$ac_res" != no; then
8503   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8504
8505 fi
8506
8507 else
8508   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8509 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8510 if test "${ac_cv_search_opendir+set}" = set; then
8511   echo $ECHO_N "(cached) $ECHO_C" >&6
8512 else
8513   ac_func_search_save_LIBS=$LIBS
8514 cat >conftest.$ac_ext <<_ACEOF
8515 /* confdefs.h.  */
8516 _ACEOF
8517 cat confdefs.h >>conftest.$ac_ext
8518 cat >>conftest.$ac_ext <<_ACEOF
8519 /* end confdefs.h.  */
8520
8521 /* Override any GCC internal prototype to avoid an error.
8522    Use char because int might match the return type of a GCC
8523    builtin and then its argument prototype would still apply.  */
8524 #ifdef __cplusplus
8525 extern "C"
8526 #endif
8527 char opendir ();
8528 int
8529 main ()
8530 {
8531 return opendir ();
8532   ;
8533   return 0;
8534 }
8535 _ACEOF
8536 for ac_lib in '' x; do
8537   if test -z "$ac_lib"; then
8538     ac_res="none required"
8539   else
8540     ac_res=-l$ac_lib
8541     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8542   fi
8543   rm -f conftest.$ac_objext conftest$ac_exeext
8544 if { (ac_try="$ac_link"
8545 case "(($ac_try" in
8546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8547   *) ac_try_echo=$ac_try;;
8548 esac
8549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8550   (eval "$ac_link") 2>conftest.er1
8551   ac_status=$?
8552   grep -v '^ *+' conftest.er1 >conftest.err
8553   rm -f conftest.er1
8554   cat conftest.err >&5
8555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8556   (exit $ac_status); } &&
8557          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8558   { (case "(($ac_try" in
8559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8560   *) ac_try_echo=$ac_try;;
8561 esac
8562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8563   (eval "$ac_try") 2>&5
8564   ac_status=$?
8565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566   (exit $ac_status); }; } &&
8567          { ac_try='test -s conftest$ac_exeext'
8568   { (case "(($ac_try" in
8569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8570   *) ac_try_echo=$ac_try;;
8571 esac
8572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8573   (eval "$ac_try") 2>&5
8574   ac_status=$?
8575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8576   (exit $ac_status); }; }; then
8577   ac_cv_search_opendir=$ac_res
8578 else
8579   echo "$as_me: failed program was:" >&5
8580 sed 's/^/| /' conftest.$ac_ext >&5
8581
8582
8583 fi
8584
8585 rm -f core conftest.err conftest.$ac_objext \
8586       conftest$ac_exeext
8587   if test "${ac_cv_search_opendir+set}" = set; then
8588   break
8589 fi
8590 done
8591 if test "${ac_cv_search_opendir+set}" = set; then
8592   :
8593 else
8594   ac_cv_search_opendir=no
8595 fi
8596 rm conftest.$ac_ext
8597 LIBS=$ac_func_search_save_LIBS
8598 fi
8599 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8600 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8601 ac_res=$ac_cv_search_opendir
8602 if test "$ac_res" != no; then
8603   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8604
8605 fi
8606
8607 fi
8608
8609
8610 for ac_header in dlfcn.h
8611 do
8612 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8613 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8614   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8615 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8616 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8617   echo $ECHO_N "(cached) $ECHO_C" >&6
8618 fi
8619 ac_res=`eval echo '${'$as_ac_Header'}'`
8620                { echo "$as_me:$LINENO: result: $ac_res" >&5
8621 echo "${ECHO_T}$ac_res" >&6; }
8622 else
8623   # Is the header compilable?
8624 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8625 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8626 cat >conftest.$ac_ext <<_ACEOF
8627 /* confdefs.h.  */
8628 _ACEOF
8629 cat confdefs.h >>conftest.$ac_ext
8630 cat >>conftest.$ac_ext <<_ACEOF
8631 /* end confdefs.h.  */
8632 $ac_includes_default
8633 #include <$ac_header>
8634 _ACEOF
8635 rm -f conftest.$ac_objext
8636 if { (ac_try="$ac_compile"
8637 case "(($ac_try" in
8638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8639   *) ac_try_echo=$ac_try;;
8640 esac
8641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8642   (eval "$ac_compile") 2>conftest.er1
8643   ac_status=$?
8644   grep -v '^ *+' conftest.er1 >conftest.err
8645   rm -f conftest.er1
8646   cat conftest.err >&5
8647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8648   (exit $ac_status); } &&
8649          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8650   { (case "(($ac_try" in
8651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8652   *) ac_try_echo=$ac_try;;
8653 esac
8654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8655   (eval "$ac_try") 2>&5
8656   ac_status=$?
8657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658   (exit $ac_status); }; } &&
8659          { ac_try='test -s conftest.$ac_objext'
8660   { (case "(($ac_try" in
8661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8662   *) ac_try_echo=$ac_try;;
8663 esac
8664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8665   (eval "$ac_try") 2>&5
8666   ac_status=$?
8667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668   (exit $ac_status); }; }; then
8669   ac_header_compiler=yes
8670 else
8671   echo "$as_me: failed program was:" >&5
8672 sed 's/^/| /' conftest.$ac_ext >&5
8673
8674         ac_header_compiler=no
8675 fi
8676
8677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8678 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8679 echo "${ECHO_T}$ac_header_compiler" >&6; }
8680
8681 # Is the header present?
8682 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8683 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8684 cat >conftest.$ac_ext <<_ACEOF
8685 /* confdefs.h.  */
8686 _ACEOF
8687 cat confdefs.h >>conftest.$ac_ext
8688 cat >>conftest.$ac_ext <<_ACEOF
8689 /* end confdefs.h.  */
8690 #include <$ac_header>
8691 _ACEOF
8692 if { (ac_try="$ac_cpp conftest.$ac_ext"
8693 case "(($ac_try" in
8694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8695   *) ac_try_echo=$ac_try;;
8696 esac
8697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8698   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8699   ac_status=$?
8700   grep -v '^ *+' conftest.er1 >conftest.err
8701   rm -f conftest.er1
8702   cat conftest.err >&5
8703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704   (exit $ac_status); } >/dev/null; then
8705   if test -s conftest.err; then
8706     ac_cpp_err=$ac_c_preproc_warn_flag
8707     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8708   else
8709     ac_cpp_err=
8710   fi
8711 else
8712   ac_cpp_err=yes
8713 fi
8714 if test -z "$ac_cpp_err"; then
8715   ac_header_preproc=yes
8716 else
8717   echo "$as_me: failed program was:" >&5
8718 sed 's/^/| /' conftest.$ac_ext >&5
8719
8720   ac_header_preproc=no
8721 fi
8722
8723 rm -f conftest.err conftest.$ac_ext
8724 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8725 echo "${ECHO_T}$ac_header_preproc" >&6; }
8726
8727 # So?  What about this header?
8728 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8729   yes:no: )
8730     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8731 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8732     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8733 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8734     ac_header_preproc=yes
8735     ;;
8736   no:yes:* )
8737     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8738 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8739     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8740 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8741     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8742 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8743     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8744 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8745     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8746 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8747     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8748 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8749     ( cat <<\_ASBOX
8750 ## ----------------------------------- ##
8751 ## Report this to llvmbugs@cs.uiuc.edu ##
8752 ## ----------------------------------- ##
8753 _ASBOX
8754      ) | sed "s/^/$as_me: WARNING:     /" >&2
8755     ;;
8756 esac
8757 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8758 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8759 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8760   echo $ECHO_N "(cached) $ECHO_C" >&6
8761 else
8762   eval "$as_ac_Header=\$ac_header_preproc"
8763 fi
8764 ac_res=`eval echo '${'$as_ac_Header'}'`
8765                { echo "$as_me:$LINENO: result: $ac_res" >&5
8766 echo "${ECHO_T}$ac_res" >&6; }
8767
8768 fi
8769 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8770   cat >>confdefs.h <<_ACEOF
8771 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8772 _ACEOF
8773
8774 fi
8775
8776 done
8777
8778 # Check whether --enable-ltdl-install was given.
8779 if test "${enable_ltdl_install+set}" = set; then
8780   enableval=$enable_ltdl_install;
8781 fi
8782
8783
8784
8785
8786 if test x"${enable_ltdl_install-no}" != xno; then
8787   INSTALL_LTDL_TRUE=
8788   INSTALL_LTDL_FALSE='#'
8789 else
8790   INSTALL_LTDL_TRUE='#'
8791   INSTALL_LTDL_FALSE=
8792 fi
8793
8794
8795
8796 if test x"${enable_ltdl_convenience-no}" != xno; then
8797   CONVENIENCE_LTDL_TRUE=
8798   CONVENIENCE_LTDL_FALSE='#'
8799 else
8800   CONVENIENCE_LTDL_TRUE='#'
8801   CONVENIENCE_LTDL_FALSE=
8802 fi
8803
8804
8805 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8806 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8807 library_names_spec=
8808 libname_spec='lib$name'
8809 soname_spec=
8810 shrext_cmds=".so"
8811 postinstall_cmds=
8812 postuninstall_cmds=
8813 finish_cmds=
8814 finish_eval=
8815 shlibpath_var=
8816 shlibpath_overrides_runpath=unknown
8817 version_type=none
8818 dynamic_linker="$host_os ld.so"
8819 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8820 if test "$GCC" = yes; then
8821   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8822   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8823     # if the path contains ";" then we assume it to be the separator
8824     # otherwise default to the standard path separator (i.e. ":") - it is
8825     # assumed that no part of a normal pathname contains ";" but that should
8826     # okay in the real world where ";" in dirpaths is itself problematic.
8827     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8828   else
8829     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8830   fi
8831 else
8832   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8833 fi
8834 need_lib_prefix=unknown
8835 hardcode_into_libs=no
8836
8837 # when you set need_version to no, make sure it does not cause -set_version
8838 # flags to be left without arguments
8839 need_version=unknown
8840
8841 case $host_os in
8842 aix3*)
8843   version_type=linux
8844   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8845   shlibpath_var=LIBPATH
8846
8847   # AIX 3 has no versioning support, so we append a major version to the name.
8848   soname_spec='${libname}${release}${shared_ext}$major'
8849   ;;
8850
8851 aix4* | aix5*)
8852   version_type=linux
8853   need_lib_prefix=no
8854   need_version=no
8855   hardcode_into_libs=yes
8856   if test "$host_cpu" = ia64; then
8857     # AIX 5 supports IA64
8858     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8859     shlibpath_var=LD_LIBRARY_PATH
8860   else
8861     # With GCC up to 2.95.x, collect2 would create an import file
8862     # for dependence libraries.  The import file would start with
8863     # the line `#! .'.  This would cause the generated library to
8864     # depend on `.', always an invalid library.  This was fixed in
8865     # development snapshots of GCC prior to 3.0.
8866     case $host_os in
8867       aix4 | aix4.[01] | aix4.[01].*)
8868       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8869            echo ' yes '
8870            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8871         :
8872       else
8873         can_build_shared=no
8874       fi
8875       ;;
8876     esac
8877     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8878     # soname into executable. Probably we can add versioning support to
8879     # collect2, so additional links can be useful in future.
8880     if test "$aix_use_runtimelinking" = yes; then
8881       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8882       # instead of lib<name>.a to let people know that these are not
8883       # typical AIX shared libraries.
8884       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8885     else
8886       # We preserve .a as extension for shared libraries through AIX4.2
8887       # and later when we are not doing run time linking.
8888       library_names_spec='${libname}${release}.a $libname.a'
8889       soname_spec='${libname}${release}${shared_ext}$major'
8890     fi
8891     shlibpath_var=LIBPATH
8892   fi
8893   ;;
8894
8895 amigaos*)
8896   library_names_spec='$libname.ixlibrary $libname.a'
8897   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8898   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'
8899   ;;
8900
8901 beos*)
8902   library_names_spec='${libname}${shared_ext}'
8903   dynamic_linker="$host_os ld.so"
8904   shlibpath_var=LIBRARY_PATH
8905   ;;
8906
8907 bsdi[45]*)
8908   version_type=linux
8909   need_version=no
8910   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8911   soname_spec='${libname}${release}${shared_ext}$major'
8912   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8913   shlibpath_var=LD_LIBRARY_PATH
8914   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8915   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8916   # the default ld.so.conf also contains /usr/contrib/lib and
8917   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8918   # libtool to hard-code these into programs
8919   ;;
8920
8921 cygwin* | mingw* | pw32*)
8922   version_type=windows
8923   shrext_cmds=".dll"
8924   need_version=no
8925   need_lib_prefix=no
8926
8927   case $GCC,$host_os in
8928   yes,cygwin* | yes,mingw* | yes,pw32*)
8929     library_names_spec='$libname.dll.a'
8930     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8931     postinstall_cmds='base_file=`basename \${file}`~
8932       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8933       dldir=$destdir/`dirname \$dlpath`~
8934       test -d \$dldir || mkdir -p \$dldir~
8935       $install_prog $dir/$dlname \$dldir/$dlname~
8936       chmod a+x \$dldir/$dlname'
8937     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8938       dlpath=$dir/\$dldll~
8939        $rm \$dlpath'
8940     shlibpath_overrides_runpath=yes
8941
8942     case $host_os in
8943     cygwin*)
8944       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8945       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8946       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8947       ;;
8948     mingw*)
8949       # MinGW DLLs use traditional 'lib' prefix
8950       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8951       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8952       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8953         # It is most probably a Windows format PATH printed by
8954         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8955         # path with ; separators, and with drive letters. We can handle the
8956         # drive letters (cygwin fileutils understands them), so leave them,
8957         # especially as we might pass files found there to a mingw objdump,
8958         # which wouldn't understand a cygwinified path. Ahh.
8959         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8960       else
8961         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8962       fi
8963       ;;
8964     pw32*)
8965       # pw32 DLLs use 'pw' prefix rather than 'lib'
8966       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8967       ;;
8968     esac
8969     ;;
8970
8971   *)
8972     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8973     ;;
8974   esac
8975   dynamic_linker='Win32 ld.exe'
8976   # FIXME: first we should search . and the directory the executable is in
8977   shlibpath_var=PATH
8978   ;;
8979
8980 darwin* | rhapsody*)
8981   dynamic_linker="$host_os dyld"
8982   version_type=darwin
8983   need_lib_prefix=no
8984   need_version=no
8985   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8986   soname_spec='${libname}${release}${major}$shared_ext'
8987   shlibpath_overrides_runpath=yes
8988   shlibpath_var=DYLD_LIBRARY_PATH
8989   shrext_cmds='.dylib'
8990   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8991   if test "$GCC" = yes; then
8992     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"`
8993   else
8994     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8995   fi
8996   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8997   ;;
8998
8999 dgux*)
9000   version_type=linux
9001   need_lib_prefix=no
9002   need_version=no
9003   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9004   soname_spec='${libname}${release}${shared_ext}$major'
9005   shlibpath_var=LD_LIBRARY_PATH
9006   ;;
9007
9008 freebsd1*)
9009   dynamic_linker=no
9010   ;;
9011
9012 kfreebsd*-gnu)
9013   version_type=linux
9014   need_lib_prefix=no
9015   need_version=no
9016   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9017   soname_spec='${libname}${release}${shared_ext}$major'
9018   shlibpath_var=LD_LIBRARY_PATH
9019   shlibpath_overrides_runpath=no
9020   hardcode_into_libs=yes
9021   dynamic_linker='GNU ld.so'
9022   ;;
9023
9024 freebsd* | dragonfly*)
9025   # DragonFly does not have aout.  When/if they implement a new
9026   # versioning mechanism, adjust this.
9027   if test -x /usr/bin/objformat; then
9028     objformat=`/usr/bin/objformat`
9029   else
9030     case $host_os in
9031     freebsd[123]*) objformat=aout ;;
9032     *) objformat=elf ;;
9033     esac
9034   fi
9035   version_type=freebsd-$objformat
9036   case $version_type in
9037     freebsd-elf*)
9038       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9039       need_version=no
9040       need_lib_prefix=no
9041       ;;
9042     freebsd-*)
9043       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9044       need_version=yes
9045       ;;
9046   esac
9047   shlibpath_var=LD_LIBRARY_PATH
9048   case $host_os in
9049   freebsd2*)
9050     shlibpath_overrides_runpath=yes
9051     ;;
9052   freebsd3.[01]* | freebsdelf3.[01]*)
9053     shlibpath_overrides_runpath=yes
9054     hardcode_into_libs=yes
9055     ;;
9056   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9057   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9058     shlibpath_overrides_runpath=no
9059     hardcode_into_libs=yes
9060     ;;
9061   freebsd*) # from 4.6 on
9062     shlibpath_overrides_runpath=yes
9063     hardcode_into_libs=yes
9064     ;;
9065   esac
9066   ;;
9067
9068 gnu*)
9069   version_type=linux
9070   need_lib_prefix=no
9071   need_version=no
9072   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9073   soname_spec='${libname}${release}${shared_ext}$major'
9074   shlibpath_var=LD_LIBRARY_PATH
9075   hardcode_into_libs=yes
9076   ;;
9077
9078 hpux9* | hpux10* | hpux11*)
9079   # Give a soname corresponding to the major version so that dld.sl refuses to
9080   # link against other versions.
9081   version_type=sunos
9082   need_lib_prefix=no
9083   need_version=no
9084   case $host_cpu in
9085   ia64*)
9086     shrext_cmds='.so'
9087     hardcode_into_libs=yes
9088     dynamic_linker="$host_os dld.so"
9089     shlibpath_var=LD_LIBRARY_PATH
9090     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9091     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9092     soname_spec='${libname}${release}${shared_ext}$major'
9093     if test "X$HPUX_IA64_MODE" = X32; then
9094       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9095     else
9096       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9097     fi
9098     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9099     ;;
9100    hppa*64*)
9101      shrext_cmds='.sl'
9102      hardcode_into_libs=yes
9103      dynamic_linker="$host_os dld.sl"
9104      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9105      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9106      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9107      soname_spec='${libname}${release}${shared_ext}$major'
9108      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9109      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9110      ;;
9111    *)
9112     shrext_cmds='.sl'
9113     dynamic_linker="$host_os dld.sl"
9114     shlibpath_var=SHLIB_PATH
9115     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9116     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9117     soname_spec='${libname}${release}${shared_ext}$major'
9118     ;;
9119   esac
9120   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9121   postinstall_cmds='chmod 555 $lib'
9122   ;;
9123
9124 interix3*)
9125   version_type=linux
9126   need_lib_prefix=no
9127   need_version=no
9128   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9129   soname_spec='${libname}${release}${shared_ext}$major'
9130   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9131   shlibpath_var=LD_LIBRARY_PATH
9132   shlibpath_overrides_runpath=no
9133   hardcode_into_libs=yes
9134   ;;
9135
9136 irix5* | irix6* | nonstopux*)
9137   case $host_os in
9138     nonstopux*) version_type=nonstopux ;;
9139     *)
9140         if test "$lt_cv_prog_gnu_ld" = yes; then
9141                 version_type=linux
9142         else
9143                 version_type=irix
9144         fi ;;
9145   esac
9146   need_lib_prefix=no
9147   need_version=no
9148   soname_spec='${libname}${release}${shared_ext}$major'
9149   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9150   case $host_os in
9151   irix5* | nonstopux*)
9152     libsuff= shlibsuff=
9153     ;;
9154   *)
9155     case $LD in # libtool.m4 will add one of these switches to LD
9156     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9157       libsuff= shlibsuff= libmagic=32-bit;;
9158     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9159       libsuff=32 shlibsuff=N32 libmagic=N32;;
9160     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9161       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9162     *) libsuff= shlibsuff= libmagic=never-match;;
9163     esac
9164     ;;
9165   esac
9166   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9167   shlibpath_overrides_runpath=no
9168   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9169   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9170   hardcode_into_libs=yes
9171   ;;
9172
9173 # No shared lib support for Linux oldld, aout, or coff.
9174 linux*oldld* | linux*aout* | linux*coff*)
9175   dynamic_linker=no
9176   ;;
9177
9178 # This must be Linux ELF.
9179 linux*)
9180   version_type=linux
9181   need_lib_prefix=no
9182   need_version=no
9183   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9184   soname_spec='${libname}${release}${shared_ext}$major'
9185   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9186   shlibpath_var=LD_LIBRARY_PATH
9187   shlibpath_overrides_runpath=no
9188   # This implies no fast_install, which is unacceptable.
9189   # Some rework will be needed to allow for fast_install
9190   # before this can be enabled.
9191   hardcode_into_libs=yes
9192
9193   # Append ld.so.conf contents to the search path
9194   if test -f /etc/ld.so.conf; then
9195     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' ' '`
9196     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9197   fi
9198
9199   # We used to test for /lib/ld.so.1 and disable shared libraries on
9200   # powerpc, because MkLinux only supported shared libraries with the
9201   # GNU dynamic linker.  Since this was broken with cross compilers,
9202   # most powerpc-linux boxes support dynamic linking these days and
9203   # people can always --disable-shared, the test was removed, and we
9204   # assume the GNU/Linux dynamic linker is in use.
9205   dynamic_linker='GNU/Linux ld.so'
9206   ;;
9207
9208 knetbsd*-gnu)
9209   version_type=linux
9210   need_lib_prefix=no
9211   need_version=no
9212   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9213   soname_spec='${libname}${release}${shared_ext}$major'
9214   shlibpath_var=LD_LIBRARY_PATH
9215   shlibpath_overrides_runpath=no
9216   hardcode_into_libs=yes
9217   dynamic_linker='GNU ld.so'
9218   ;;
9219
9220 netbsd*)
9221   version_type=sunos
9222   need_lib_prefix=no
9223   need_version=no
9224   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9225     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9226     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9227     dynamic_linker='NetBSD (a.out) ld.so'
9228   else
9229     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9230     soname_spec='${libname}${release}${shared_ext}$major'
9231     dynamic_linker='NetBSD ld.elf_so'
9232   fi
9233   shlibpath_var=LD_LIBRARY_PATH
9234   shlibpath_overrides_runpath=yes
9235   hardcode_into_libs=yes
9236   ;;
9237
9238 newsos6)
9239   version_type=linux
9240   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9241   shlibpath_var=LD_LIBRARY_PATH
9242   shlibpath_overrides_runpath=yes
9243   ;;
9244
9245 nto-qnx*)
9246   version_type=linux
9247   need_lib_prefix=no
9248   need_version=no
9249   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9250   soname_spec='${libname}${release}${shared_ext}$major'
9251   shlibpath_var=LD_LIBRARY_PATH
9252   shlibpath_overrides_runpath=yes
9253   ;;
9254
9255 openbsd*)
9256   version_type=sunos
9257   sys_lib_dlsearch_path_spec="/usr/lib"
9258   need_lib_prefix=no
9259   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9260   case $host_os in
9261     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9262     *)                         need_version=no  ;;
9263   esac
9264   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9265   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9266   shlibpath_var=LD_LIBRARY_PATH
9267   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9268     case $host_os in
9269       openbsd2.[89] | openbsd2.[89].*)
9270         shlibpath_overrides_runpath=no
9271         ;;
9272       *)
9273         shlibpath_overrides_runpath=yes
9274         ;;
9275       esac
9276   else
9277     shlibpath_overrides_runpath=yes
9278   fi
9279   ;;
9280
9281 os2*)
9282   libname_spec='$name'
9283   shrext_cmds=".dll"
9284   need_lib_prefix=no
9285   library_names_spec='$libname${shared_ext} $libname.a'
9286   dynamic_linker='OS/2 ld.exe'
9287   shlibpath_var=LIBPATH
9288   ;;
9289
9290 osf3* | osf4* | osf5*)
9291   version_type=osf
9292   need_lib_prefix=no
9293   need_version=no
9294   soname_spec='${libname}${release}${shared_ext}$major'
9295   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9296   shlibpath_var=LD_LIBRARY_PATH
9297   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9298   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9299   ;;
9300
9301 solaris*)
9302   version_type=linux
9303   need_lib_prefix=no
9304   need_version=no
9305   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9306   soname_spec='${libname}${release}${shared_ext}$major'
9307   shlibpath_var=LD_LIBRARY_PATH
9308   shlibpath_overrides_runpath=yes
9309   hardcode_into_libs=yes
9310   # ldd complains unless libraries are executable
9311   postinstall_cmds='chmod +x $lib'
9312   ;;
9313
9314 sunos4*)
9315   version_type=sunos
9316   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9317   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9318   shlibpath_var=LD_LIBRARY_PATH
9319   shlibpath_overrides_runpath=yes
9320   if test "$with_gnu_ld" = yes; then
9321     need_lib_prefix=no
9322   fi
9323   need_version=yes
9324   ;;
9325
9326 sysv4 | sysv4.3*)
9327   version_type=linux
9328   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9329   soname_spec='${libname}${release}${shared_ext}$major'
9330   shlibpath_var=LD_LIBRARY_PATH
9331   case $host_vendor in
9332     sni)
9333       shlibpath_overrides_runpath=no
9334       need_lib_prefix=no
9335       export_dynamic_flag_spec='${wl}-Blargedynsym'
9336       runpath_var=LD_RUN_PATH
9337       ;;
9338     siemens)
9339       need_lib_prefix=no
9340       ;;
9341     motorola)
9342       need_lib_prefix=no
9343       need_version=no
9344       shlibpath_overrides_runpath=no
9345       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9346       ;;
9347   esac
9348   ;;
9349
9350 sysv4*MP*)
9351   if test -d /usr/nec ;then
9352     version_type=linux
9353     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9354     soname_spec='$libname${shared_ext}.$major'
9355     shlibpath_var=LD_LIBRARY_PATH
9356   fi
9357   ;;
9358
9359 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9360   version_type=freebsd-elf
9361   need_lib_prefix=no
9362   need_version=no
9363   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9364   soname_spec='${libname}${release}${shared_ext}$major'
9365   shlibpath_var=LD_LIBRARY_PATH
9366   hardcode_into_libs=yes
9367   if test "$with_gnu_ld" = yes; then
9368     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9369     shlibpath_overrides_runpath=no
9370   else
9371     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9372     shlibpath_overrides_runpath=yes
9373     case $host_os in
9374       sco3.2v5*)
9375         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9376         ;;
9377     esac
9378   fi
9379   sys_lib_dlsearch_path_spec='/usr/lib'
9380   ;;
9381
9382 uts4*)
9383   version_type=linux
9384   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9385   soname_spec='${libname}${release}${shared_ext}$major'
9386   shlibpath_var=LD_LIBRARY_PATH
9387   ;;
9388
9389 *)
9390   dynamic_linker=no
9391   ;;
9392 esac
9393 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9394 echo "${ECHO_T}$dynamic_linker" >&6; }
9395 test "$dynamic_linker" = no && can_build_shared=no
9396
9397 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9398 if test "$GCC" = yes; then
9399   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9400 fi
9401
9402
9403 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9404 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9405 if test "${libltdl_cv_shlibext+set}" = set; then
9406   echo $ECHO_N "(cached) $ECHO_C" >&6
9407 else
9408
9409 module=yes
9410 eval libltdl_cv_shlibext=$shrext_cmds
9411
9412 fi
9413 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9414 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9415 if test -n "$libltdl_cv_shlibext"; then
9416
9417 cat >>confdefs.h <<_ACEOF
9418 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9419 _ACEOF
9420
9421 fi
9422
9423
9424 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9425 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9426 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9427   echo $ECHO_N "(cached) $ECHO_C" >&6
9428 else
9429   libltdl_cv_shlibpath_var="$shlibpath_var"
9430 fi
9431 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9432 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9433 if test -n "$libltdl_cv_shlibpath_var"; then
9434
9435 cat >>confdefs.h <<_ACEOF
9436 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9437 _ACEOF
9438
9439 fi
9440
9441
9442 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9443 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9444 if test "${libltdl_cv_sys_search_path+set}" = set; then
9445   echo $ECHO_N "(cached) $ECHO_C" >&6
9446 else
9447   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9448 fi
9449 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9450 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9451 if test -n "$libltdl_cv_sys_search_path"; then
9452   sys_search_path=
9453   for dir in $libltdl_cv_sys_search_path; do
9454     if test -z "$sys_search_path"; then
9455       sys_search_path="$dir"
9456     else
9457       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9458     fi
9459   done
9460
9461 cat >>confdefs.h <<_ACEOF
9462 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9463 _ACEOF
9464
9465 fi
9466
9467 { echo "$as_me:$LINENO: checking for objdir" >&5
9468 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9469 if test "${libltdl_cv_objdir+set}" = set; then
9470   echo $ECHO_N "(cached) $ECHO_C" >&6
9471 else
9472   libltdl_cv_objdir="$objdir"
9473   if test -n "$objdir"; then
9474     :
9475   else
9476     rm -f .libs 2>/dev/null
9477     mkdir .libs 2>/dev/null
9478     if test -d .libs; then
9479       libltdl_cv_objdir=.libs
9480     else
9481       # MS-DOS does not allow filenames that begin with a dot.
9482       libltdl_cv_objdir=_libs
9483     fi
9484   rmdir .libs 2>/dev/null
9485   fi
9486
9487 fi
9488 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9489 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9490
9491 cat >>confdefs.h <<_ACEOF
9492 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9493 _ACEOF
9494
9495
9496
9497
9498
9499
9500 # Check for command to grab the raw symbol name followed by C symbol from nm.
9501 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9502 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9503 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9504   echo $ECHO_N "(cached) $ECHO_C" >&6
9505 else
9506
9507 # These are sane defaults that work on at least a few old systems.
9508 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9509
9510 # Character class describing NM global symbol codes.
9511 symcode='[BCDEGRST]'
9512
9513 # Regexp to match symbols that can be accessed directly from C.
9514 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9515
9516 # Transform an extracted symbol line into a proper C declaration
9517 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9518
9519 # Transform an extracted symbol line into symbol name and symbol address
9520 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'"
9521
9522 # Define system-specific variables.
9523 case $host_os in
9524 aix*)
9525   symcode='[BCDT]'
9526   ;;
9527 cygwin* | mingw* | pw32*)
9528   symcode='[ABCDGISTW]'
9529   ;;
9530 hpux*) # Its linker distinguishes data from code symbols
9531   if test "$host_cpu" = ia64; then
9532     symcode='[ABCDEGRST]'
9533   fi
9534   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9535   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'"
9536   ;;
9537 linux*)
9538   if test "$host_cpu" = ia64; then
9539     symcode='[ABCDGIRSTW]'
9540     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9541     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'"
9542   fi
9543   ;;
9544 irix* | nonstopux*)
9545   symcode='[BCDEGRST]'
9546   ;;
9547 osf*)
9548   symcode='[BCDEGQRST]'
9549   ;;
9550 solaris*)
9551   symcode='[BDRT]'
9552   ;;
9553 sco3.2v5*)
9554   symcode='[DT]'
9555   ;;
9556 sysv4.2uw2*)
9557   symcode='[DT]'
9558   ;;
9559 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9560   symcode='[ABDT]'
9561   ;;
9562 sysv4)
9563   symcode='[DFNSTU]'
9564   ;;
9565 esac
9566
9567 # Handle CRLF in mingw tool chain
9568 opt_cr=
9569 case $build_os in
9570 mingw*)
9571   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9572   ;;
9573 esac
9574
9575 # If we're using GNU nm, then use its standard symbol codes.
9576 case `$NM -V 2>&1` in
9577 *GNU* | *'with BFD'*)
9578   symcode='[ABCDGIRSTW]' ;;
9579 esac
9580
9581 # Try without a prefix undercore, then with it.
9582 for ac_symprfx in "" "_"; do
9583
9584   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9585   symxfrm="\\1 $ac_symprfx\\2 \\2"
9586
9587   # Write the raw and C identifiers.
9588   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9589
9590   # Check to see that the pipe works correctly.
9591   pipe_works=no
9592
9593   rm -f conftest*
9594   cat > conftest.$ac_ext <<EOF
9595 #ifdef __cplusplus
9596 extern "C" {
9597 #endif
9598 char nm_test_var;
9599 void nm_test_func(){}
9600 #ifdef __cplusplus
9601 }
9602 #endif
9603 int main(){nm_test_var='a';nm_test_func();return(0);}
9604 EOF
9605
9606   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9607   (eval $ac_compile) 2>&5
9608   ac_status=$?
9609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9610   (exit $ac_status); }; then
9611     # Now try to grab the symbols.
9612     nlist=conftest.nm
9613     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9614   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9615   ac_status=$?
9616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9617   (exit $ac_status); } && test -s "$nlist"; then
9618       # Try sorting and uniquifying the output.
9619       if sort "$nlist" | uniq > "$nlist"T; then
9620         mv -f "$nlist"T "$nlist"
9621       else
9622         rm -f "$nlist"T
9623       fi
9624
9625       # Make sure that we snagged all the symbols we need.
9626       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9627         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9628           cat <<EOF > conftest.$ac_ext
9629 #ifdef __cplusplus
9630 extern "C" {
9631 #endif
9632
9633 EOF
9634           # Now generate the symbol file.
9635           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9636
9637           cat <<EOF >> conftest.$ac_ext
9638 #if defined (__STDC__) && __STDC__
9639 # define lt_ptr_t void *
9640 #else
9641 # define lt_ptr_t char *
9642 # define const
9643 #endif
9644
9645 /* The mapping between symbol names and symbols. */
9646 const struct {
9647   const char *name;
9648   lt_ptr_t address;
9649 }
9650 lt_preloaded_symbols[] =
9651 {
9652 EOF
9653           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9654           cat <<\EOF >> conftest.$ac_ext
9655   {0, (lt_ptr_t) 0}
9656 };
9657
9658 #ifdef __cplusplus
9659 }
9660 #endif
9661 EOF
9662           # Now try linking the two files.
9663           mv conftest.$ac_objext conftstm.$ac_objext
9664           lt_save_LIBS="$LIBS"
9665           lt_save_CFLAGS="$CFLAGS"
9666           LIBS="conftstm.$ac_objext"
9667           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9668           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9669   (eval $ac_link) 2>&5
9670   ac_status=$?
9671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9672   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9673             pipe_works=yes
9674           fi
9675           LIBS="$lt_save_LIBS"
9676           CFLAGS="$lt_save_CFLAGS"
9677         else
9678           echo "cannot find nm_test_func in $nlist" >&5
9679         fi
9680       else
9681         echo "cannot find nm_test_var in $nlist" >&5
9682       fi
9683     else
9684       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9685     fi
9686   else
9687     echo "$progname: failed program was:" >&5
9688     cat conftest.$ac_ext >&5
9689   fi
9690   rm -f conftest* conftst*
9691
9692   # Do not use the global_symbol_pipe unless it works.
9693   if test "$pipe_works" = yes; then
9694     break
9695   else
9696     lt_cv_sys_global_symbol_pipe=
9697   fi
9698 done
9699
9700 fi
9701
9702 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9703   lt_cv_sys_global_symbol_to_cdecl=
9704 fi
9705 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9706   { echo "$as_me:$LINENO: result: failed" >&5
9707 echo "${ECHO_T}failed" >&6; }
9708 else
9709   { echo "$as_me:$LINENO: result: ok" >&5
9710 echo "${ECHO_T}ok" >&6; }
9711 fi
9712
9713
9714 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9715 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9716 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9717   echo $ECHO_N "(cached) $ECHO_C" >&6
9718 else
9719   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9720     libltdl_cv_preloaded_symbols=yes
9721   else
9722     libltdl_cv_preloaded_symbols=no
9723   fi
9724
9725 fi
9726 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9727 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9728 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9729
9730 cat >>confdefs.h <<\_ACEOF
9731 #define HAVE_PRELOADED_SYMBOLS 1
9732 _ACEOF
9733
9734 fi
9735
9736 LIBADD_DL=
9737
9738 ac_ext=c
9739 ac_cpp='$CPP $CPPFLAGS'
9740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9743
9744
9745 { echo "$as_me:$LINENO: checking for shl_load" >&5
9746 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9747 if test "${ac_cv_func_shl_load+set}" = set; then
9748   echo $ECHO_N "(cached) $ECHO_C" >&6
9749 else
9750   cat >conftest.$ac_ext <<_ACEOF
9751 /* confdefs.h.  */
9752 _ACEOF
9753 cat confdefs.h >>conftest.$ac_ext
9754 cat >>conftest.$ac_ext <<_ACEOF
9755 /* end confdefs.h.  */
9756 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9757    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9758 #define shl_load innocuous_shl_load
9759
9760 /* System header to define __stub macros and hopefully few prototypes,
9761     which can conflict with char shl_load (); below.
9762     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9763     <limits.h> exists even on freestanding compilers.  */
9764
9765 #ifdef __STDC__
9766 # include <limits.h>
9767 #else
9768 # include <assert.h>
9769 #endif
9770
9771 #undef shl_load
9772
9773 /* Override any GCC internal prototype to avoid an error.
9774    Use char because int might match the return type of a GCC
9775    builtin and then its argument prototype would still apply.  */
9776 #ifdef __cplusplus
9777 extern "C"
9778 #endif
9779 char shl_load ();
9780 /* The GNU C library defines this for functions which it implements
9781     to always fail with ENOSYS.  Some functions are actually named
9782     something starting with __ and the normal name is an alias.  */
9783 #if defined __stub_shl_load || defined __stub___shl_load
9784 choke me
9785 #endif
9786
9787 int
9788 main ()
9789 {
9790 return shl_load ();
9791   ;
9792   return 0;
9793 }
9794 _ACEOF
9795 rm -f conftest.$ac_objext conftest$ac_exeext
9796 if { (ac_try="$ac_link"
9797 case "(($ac_try" in
9798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9799   *) ac_try_echo=$ac_try;;
9800 esac
9801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9802   (eval "$ac_link") 2>conftest.er1
9803   ac_status=$?
9804   grep -v '^ *+' conftest.er1 >conftest.err
9805   rm -f conftest.er1
9806   cat conftest.err >&5
9807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9808   (exit $ac_status); } &&
9809          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9810   { (case "(($ac_try" in
9811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9812   *) ac_try_echo=$ac_try;;
9813 esac
9814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9815   (eval "$ac_try") 2>&5
9816   ac_status=$?
9817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818   (exit $ac_status); }; } &&
9819          { ac_try='test -s conftest$ac_exeext'
9820   { (case "(($ac_try" in
9821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9822   *) ac_try_echo=$ac_try;;
9823 esac
9824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9825   (eval "$ac_try") 2>&5
9826   ac_status=$?
9827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828   (exit $ac_status); }; }; then
9829   ac_cv_func_shl_load=yes
9830 else
9831   echo "$as_me: failed program was:" >&5
9832 sed 's/^/| /' conftest.$ac_ext >&5
9833
9834         ac_cv_func_shl_load=no
9835 fi
9836
9837 rm -f core conftest.err conftest.$ac_objext \
9838       conftest$ac_exeext conftest.$ac_ext
9839 fi
9840 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9841 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9842 if test $ac_cv_func_shl_load = yes; then
9843
9844 cat >>confdefs.h <<\_ACEOF
9845 #define HAVE_SHL_LOAD 1
9846 _ACEOF
9847
9848 else
9849   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9850 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9851 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9852   echo $ECHO_N "(cached) $ECHO_C" >&6
9853 else
9854   ac_check_lib_save_LIBS=$LIBS
9855 LIBS="-ldld  $LIBS"
9856 cat >conftest.$ac_ext <<_ACEOF
9857 /* confdefs.h.  */
9858 _ACEOF
9859 cat confdefs.h >>conftest.$ac_ext
9860 cat >>conftest.$ac_ext <<_ACEOF
9861 /* end confdefs.h.  */
9862
9863 /* Override any GCC internal prototype to avoid an error.
9864    Use char because int might match the return type of a GCC
9865    builtin and then its argument prototype would still apply.  */
9866 #ifdef __cplusplus
9867 extern "C"
9868 #endif
9869 char shl_load ();
9870 int
9871 main ()
9872 {
9873 return shl_load ();
9874   ;
9875   return 0;
9876 }
9877 _ACEOF
9878 rm -f conftest.$ac_objext conftest$ac_exeext
9879 if { (ac_try="$ac_link"
9880 case "(($ac_try" in
9881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9882   *) ac_try_echo=$ac_try;;
9883 esac
9884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9885   (eval "$ac_link") 2>conftest.er1
9886   ac_status=$?
9887   grep -v '^ *+' conftest.er1 >conftest.err
9888   rm -f conftest.er1
9889   cat conftest.err >&5
9890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9891   (exit $ac_status); } &&
9892          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9893   { (case "(($ac_try" in
9894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9895   *) ac_try_echo=$ac_try;;
9896 esac
9897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9898   (eval "$ac_try") 2>&5
9899   ac_status=$?
9900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9901   (exit $ac_status); }; } &&
9902          { ac_try='test -s conftest$ac_exeext'
9903   { (case "(($ac_try" in
9904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9905   *) ac_try_echo=$ac_try;;
9906 esac
9907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9908   (eval "$ac_try") 2>&5
9909   ac_status=$?
9910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911   (exit $ac_status); }; }; then
9912   ac_cv_lib_dld_shl_load=yes
9913 else
9914   echo "$as_me: failed program was:" >&5
9915 sed 's/^/| /' conftest.$ac_ext >&5
9916
9917         ac_cv_lib_dld_shl_load=no
9918 fi
9919
9920 rm -f core conftest.err conftest.$ac_objext \
9921       conftest$ac_exeext conftest.$ac_ext
9922 LIBS=$ac_check_lib_save_LIBS
9923 fi
9924 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9925 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9926 if test $ac_cv_lib_dld_shl_load = yes; then
9927
9928 cat >>confdefs.h <<\_ACEOF
9929 #define HAVE_SHL_LOAD 1
9930 _ACEOF
9931
9932         LIBADD_DL="$LIBADD_DL -ldld"
9933 else
9934   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9935 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9936 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9937   echo $ECHO_N "(cached) $ECHO_C" >&6
9938 else
9939   ac_check_lib_save_LIBS=$LIBS
9940 LIBS="-ldl  $LIBS"
9941 cat >conftest.$ac_ext <<_ACEOF
9942 /* confdefs.h.  */
9943 _ACEOF
9944 cat confdefs.h >>conftest.$ac_ext
9945 cat >>conftest.$ac_ext <<_ACEOF
9946 /* end confdefs.h.  */
9947
9948 /* Override any GCC internal prototype to avoid an error.
9949    Use char because int might match the return type of a GCC
9950    builtin and then its argument prototype would still apply.  */
9951 #ifdef __cplusplus
9952 extern "C"
9953 #endif
9954 char dlopen ();
9955 int
9956 main ()
9957 {
9958 return dlopen ();
9959   ;
9960   return 0;
9961 }
9962 _ACEOF
9963 rm -f conftest.$ac_objext conftest$ac_exeext
9964 if { (ac_try="$ac_link"
9965 case "(($ac_try" in
9966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9967   *) ac_try_echo=$ac_try;;
9968 esac
9969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9970   (eval "$ac_link") 2>conftest.er1
9971   ac_status=$?
9972   grep -v '^ *+' conftest.er1 >conftest.err
9973   rm -f conftest.er1
9974   cat conftest.err >&5
9975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9976   (exit $ac_status); } &&
9977          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9978   { (case "(($ac_try" in
9979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9980   *) ac_try_echo=$ac_try;;
9981 esac
9982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9983   (eval "$ac_try") 2>&5
9984   ac_status=$?
9985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9986   (exit $ac_status); }; } &&
9987          { ac_try='test -s conftest$ac_exeext'
9988   { (case "(($ac_try" in
9989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9990   *) ac_try_echo=$ac_try;;
9991 esac
9992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9993   (eval "$ac_try") 2>&5
9994   ac_status=$?
9995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9996   (exit $ac_status); }; }; then
9997   ac_cv_lib_dl_dlopen=yes
9998 else
9999   echo "$as_me: failed program was:" >&5
10000 sed 's/^/| /' conftest.$ac_ext >&5
10001
10002         ac_cv_lib_dl_dlopen=no
10003 fi
10004
10005 rm -f core conftest.err conftest.$ac_objext \
10006       conftest$ac_exeext conftest.$ac_ext
10007 LIBS=$ac_check_lib_save_LIBS
10008 fi
10009 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10010 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10011 if test $ac_cv_lib_dl_dlopen = yes; then
10012
10013 cat >>confdefs.h <<\_ACEOF
10014 #define HAVE_LIBDL 1
10015 _ACEOF
10016
10017                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10018 else
10019   cat >conftest.$ac_ext <<_ACEOF
10020 /* confdefs.h.  */
10021 _ACEOF
10022 cat confdefs.h >>conftest.$ac_ext
10023 cat >>conftest.$ac_ext <<_ACEOF
10024 /* end confdefs.h.  */
10025 #if HAVE_DLFCN_H
10026 #  include <dlfcn.h>
10027 #endif
10028
10029 int
10030 main ()
10031 {
10032 dlopen(0, 0);
10033   ;
10034   return 0;
10035 }
10036 _ACEOF
10037 rm -f conftest.$ac_objext conftest$ac_exeext
10038 if { (ac_try="$ac_link"
10039 case "(($ac_try" in
10040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10041   *) ac_try_echo=$ac_try;;
10042 esac
10043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10044   (eval "$ac_link") 2>conftest.er1
10045   ac_status=$?
10046   grep -v '^ *+' conftest.er1 >conftest.err
10047   rm -f conftest.er1
10048   cat conftest.err >&5
10049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050   (exit $ac_status); } &&
10051          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10052   { (case "(($ac_try" in
10053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10054   *) ac_try_echo=$ac_try;;
10055 esac
10056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10057   (eval "$ac_try") 2>&5
10058   ac_status=$?
10059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060   (exit $ac_status); }; } &&
10061          { ac_try='test -s conftest$ac_exeext'
10062   { (case "(($ac_try" in
10063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10064   *) ac_try_echo=$ac_try;;
10065 esac
10066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10067   (eval "$ac_try") 2>&5
10068   ac_status=$?
10069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070   (exit $ac_status); }; }; then
10071
10072 cat >>confdefs.h <<\_ACEOF
10073 #define HAVE_LIBDL 1
10074 _ACEOF
10075  libltdl_cv_func_dlopen="yes"
10076 else
10077   echo "$as_me: failed program was:" >&5
10078 sed 's/^/| /' conftest.$ac_ext >&5
10079
10080         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10081 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10082 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10083   echo $ECHO_N "(cached) $ECHO_C" >&6
10084 else
10085   ac_check_lib_save_LIBS=$LIBS
10086 LIBS="-lsvld  $LIBS"
10087 cat >conftest.$ac_ext <<_ACEOF
10088 /* confdefs.h.  */
10089 _ACEOF
10090 cat confdefs.h >>conftest.$ac_ext
10091 cat >>conftest.$ac_ext <<_ACEOF
10092 /* end confdefs.h.  */
10093
10094 /* Override any GCC internal prototype to avoid an error.
10095    Use char because int might match the return type of a GCC
10096    builtin and then its argument prototype would still apply.  */
10097 #ifdef __cplusplus
10098 extern "C"
10099 #endif
10100 char dlopen ();
10101 int
10102 main ()
10103 {
10104 return dlopen ();
10105   ;
10106   return 0;
10107 }
10108 _ACEOF
10109 rm -f conftest.$ac_objext conftest$ac_exeext
10110 if { (ac_try="$ac_link"
10111 case "(($ac_try" in
10112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10113   *) ac_try_echo=$ac_try;;
10114 esac
10115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10116   (eval "$ac_link") 2>conftest.er1
10117   ac_status=$?
10118   grep -v '^ *+' conftest.er1 >conftest.err
10119   rm -f conftest.er1
10120   cat conftest.err >&5
10121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122   (exit $ac_status); } &&
10123          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10124   { (case "(($ac_try" in
10125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10126   *) ac_try_echo=$ac_try;;
10127 esac
10128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10129   (eval "$ac_try") 2>&5
10130   ac_status=$?
10131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10132   (exit $ac_status); }; } &&
10133          { ac_try='test -s conftest$ac_exeext'
10134   { (case "(($ac_try" in
10135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10136   *) ac_try_echo=$ac_try;;
10137 esac
10138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10139   (eval "$ac_try") 2>&5
10140   ac_status=$?
10141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10142   (exit $ac_status); }; }; then
10143   ac_cv_lib_svld_dlopen=yes
10144 else
10145   echo "$as_me: failed program was:" >&5
10146 sed 's/^/| /' conftest.$ac_ext >&5
10147
10148         ac_cv_lib_svld_dlopen=no
10149 fi
10150
10151 rm -f core conftest.err conftest.$ac_objext \
10152       conftest$ac_exeext conftest.$ac_ext
10153 LIBS=$ac_check_lib_save_LIBS
10154 fi
10155 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10156 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10157 if test $ac_cv_lib_svld_dlopen = yes; then
10158
10159 cat >>confdefs.h <<\_ACEOF
10160 #define HAVE_LIBDL 1
10161 _ACEOF
10162
10163                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10164 else
10165   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10166 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10167 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10168   echo $ECHO_N "(cached) $ECHO_C" >&6
10169 else
10170   ac_check_lib_save_LIBS=$LIBS
10171 LIBS="-ldld  $LIBS"
10172 cat >conftest.$ac_ext <<_ACEOF
10173 /* confdefs.h.  */
10174 _ACEOF
10175 cat confdefs.h >>conftest.$ac_ext
10176 cat >>conftest.$ac_ext <<_ACEOF
10177 /* end confdefs.h.  */
10178
10179 /* Override any GCC internal prototype to avoid an error.
10180    Use char because int might match the return type of a GCC
10181    builtin and then its argument prototype would still apply.  */
10182 #ifdef __cplusplus
10183 extern "C"
10184 #endif
10185 char dld_link ();
10186 int
10187 main ()
10188 {
10189 return dld_link ();
10190   ;
10191   return 0;
10192 }
10193 _ACEOF
10194 rm -f conftest.$ac_objext conftest$ac_exeext
10195 if { (ac_try="$ac_link"
10196 case "(($ac_try" in
10197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10198   *) ac_try_echo=$ac_try;;
10199 esac
10200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10201   (eval "$ac_link") 2>conftest.er1
10202   ac_status=$?
10203   grep -v '^ *+' conftest.er1 >conftest.err
10204   rm -f conftest.er1
10205   cat conftest.err >&5
10206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207   (exit $ac_status); } &&
10208          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10209   { (case "(($ac_try" in
10210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10211   *) ac_try_echo=$ac_try;;
10212 esac
10213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10214   (eval "$ac_try") 2>&5
10215   ac_status=$?
10216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217   (exit $ac_status); }; } &&
10218          { ac_try='test -s conftest$ac_exeext'
10219   { (case "(($ac_try" in
10220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10221   *) ac_try_echo=$ac_try;;
10222 esac
10223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10224   (eval "$ac_try") 2>&5
10225   ac_status=$?
10226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10227   (exit $ac_status); }; }; then
10228   ac_cv_lib_dld_dld_link=yes
10229 else
10230   echo "$as_me: failed program was:" >&5
10231 sed 's/^/| /' conftest.$ac_ext >&5
10232
10233         ac_cv_lib_dld_dld_link=no
10234 fi
10235
10236 rm -f core conftest.err conftest.$ac_objext \
10237       conftest$ac_exeext conftest.$ac_ext
10238 LIBS=$ac_check_lib_save_LIBS
10239 fi
10240 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10241 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10242 if test $ac_cv_lib_dld_dld_link = yes; then
10243
10244 cat >>confdefs.h <<\_ACEOF
10245 #define HAVE_DLD 1
10246 _ACEOF
10247
10248                 LIBADD_DL="$LIBADD_DL -ldld"
10249 else
10250   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10251 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10252 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10253   echo $ECHO_N "(cached) $ECHO_C" >&6
10254 else
10255   cat >conftest.$ac_ext <<_ACEOF
10256 /* confdefs.h.  */
10257 _ACEOF
10258 cat confdefs.h >>conftest.$ac_ext
10259 cat >>conftest.$ac_ext <<_ACEOF
10260 /* end confdefs.h.  */
10261 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10262    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10263 #define _dyld_func_lookup innocuous__dyld_func_lookup
10264
10265 /* System header to define __stub macros and hopefully few prototypes,
10266     which can conflict with char _dyld_func_lookup (); below.
10267     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10268     <limits.h> exists even on freestanding compilers.  */
10269
10270 #ifdef __STDC__
10271 # include <limits.h>
10272 #else
10273 # include <assert.h>
10274 #endif
10275
10276 #undef _dyld_func_lookup
10277
10278 /* Override any GCC internal prototype to avoid an error.
10279    Use char because int might match the return type of a GCC
10280    builtin and then its argument prototype would still apply.  */
10281 #ifdef __cplusplus
10282 extern "C"
10283 #endif
10284 char _dyld_func_lookup ();
10285 /* The GNU C library defines this for functions which it implements
10286     to always fail with ENOSYS.  Some functions are actually named
10287     something starting with __ and the normal name is an alias.  */
10288 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10289 choke me
10290 #endif
10291
10292 int
10293 main ()
10294 {
10295 return _dyld_func_lookup ();
10296   ;
10297   return 0;
10298 }
10299 _ACEOF
10300 rm -f conftest.$ac_objext conftest$ac_exeext
10301 if { (ac_try="$ac_link"
10302 case "(($ac_try" in
10303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10304   *) ac_try_echo=$ac_try;;
10305 esac
10306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10307   (eval "$ac_link") 2>conftest.er1
10308   ac_status=$?
10309   grep -v '^ *+' conftest.er1 >conftest.err
10310   rm -f conftest.er1
10311   cat conftest.err >&5
10312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10313   (exit $ac_status); } &&
10314          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10315   { (case "(($ac_try" in
10316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10317   *) ac_try_echo=$ac_try;;
10318 esac
10319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10320   (eval "$ac_try") 2>&5
10321   ac_status=$?
10322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10323   (exit $ac_status); }; } &&
10324          { ac_try='test -s conftest$ac_exeext'
10325   { (case "(($ac_try" in
10326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10327   *) ac_try_echo=$ac_try;;
10328 esac
10329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10330   (eval "$ac_try") 2>&5
10331   ac_status=$?
10332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10333   (exit $ac_status); }; }; then
10334   ac_cv_func__dyld_func_lookup=yes
10335 else
10336   echo "$as_me: failed program was:" >&5
10337 sed 's/^/| /' conftest.$ac_ext >&5
10338
10339         ac_cv_func__dyld_func_lookup=no
10340 fi
10341
10342 rm -f core conftest.err conftest.$ac_objext \
10343       conftest$ac_exeext conftest.$ac_ext
10344 fi
10345 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10346 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10347 if test $ac_cv_func__dyld_func_lookup = yes; then
10348
10349 cat >>confdefs.h <<\_ACEOF
10350 #define HAVE_DYLD 1
10351 _ACEOF
10352
10353 fi
10354
10355
10356 fi
10357
10358
10359 fi
10360
10361
10362 fi
10363
10364 rm -f core conftest.err conftest.$ac_objext \
10365       conftest$ac_exeext conftest.$ac_ext
10366
10367 fi
10368
10369
10370 fi
10371
10372
10373 fi
10374
10375
10376 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10377 then
10378   lt_save_LIBS="$LIBS"
10379   LIBS="$LIBS $LIBADD_DL"
10380
10381 for ac_func in dlerror
10382 do
10383 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10384 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10385 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10386 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10387   echo $ECHO_N "(cached) $ECHO_C" >&6
10388 else
10389   cat >conftest.$ac_ext <<_ACEOF
10390 /* confdefs.h.  */
10391 _ACEOF
10392 cat confdefs.h >>conftest.$ac_ext
10393 cat >>conftest.$ac_ext <<_ACEOF
10394 /* end confdefs.h.  */
10395 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10396    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10397 #define $ac_func innocuous_$ac_func
10398
10399 /* System header to define __stub macros and hopefully few prototypes,
10400     which can conflict with char $ac_func (); below.
10401     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10402     <limits.h> exists even on freestanding compilers.  */
10403
10404 #ifdef __STDC__
10405 # include <limits.h>
10406 #else
10407 # include <assert.h>
10408 #endif
10409
10410 #undef $ac_func
10411
10412 /* Override any GCC internal prototype to avoid an error.
10413    Use char because int might match the return type of a GCC
10414    builtin and then its argument prototype would still apply.  */
10415 #ifdef __cplusplus
10416 extern "C"
10417 #endif
10418 char $ac_func ();
10419 /* The GNU C library defines this for functions which it implements
10420     to always fail with ENOSYS.  Some functions are actually named
10421     something starting with __ and the normal name is an alias.  */
10422 #if defined __stub_$ac_func || defined __stub___$ac_func
10423 choke me
10424 #endif
10425
10426 int
10427 main ()
10428 {
10429 return $ac_func ();
10430   ;
10431   return 0;
10432 }
10433 _ACEOF
10434 rm -f conftest.$ac_objext conftest$ac_exeext
10435 if { (ac_try="$ac_link"
10436 case "(($ac_try" in
10437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10438   *) ac_try_echo=$ac_try;;
10439 esac
10440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10441   (eval "$ac_link") 2>conftest.er1
10442   ac_status=$?
10443   grep -v '^ *+' conftest.er1 >conftest.err
10444   rm -f conftest.er1
10445   cat conftest.err >&5
10446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10447   (exit $ac_status); } &&
10448          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10449   { (case "(($ac_try" in
10450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10451   *) ac_try_echo=$ac_try;;
10452 esac
10453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10454   (eval "$ac_try") 2>&5
10455   ac_status=$?
10456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10457   (exit $ac_status); }; } &&
10458          { ac_try='test -s conftest$ac_exeext'
10459   { (case "(($ac_try" in
10460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10461   *) ac_try_echo=$ac_try;;
10462 esac
10463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10464   (eval "$ac_try") 2>&5
10465   ac_status=$?
10466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10467   (exit $ac_status); }; }; then
10468   eval "$as_ac_var=yes"
10469 else
10470   echo "$as_me: failed program was:" >&5
10471 sed 's/^/| /' conftest.$ac_ext >&5
10472
10473         eval "$as_ac_var=no"
10474 fi
10475
10476 rm -f core conftest.err conftest.$ac_objext \
10477       conftest$ac_exeext conftest.$ac_ext
10478 fi
10479 ac_res=`eval echo '${'$as_ac_var'}'`
10480                { echo "$as_me:$LINENO: result: $ac_res" >&5
10481 echo "${ECHO_T}$ac_res" >&6; }
10482 if test `eval echo '${'$as_ac_var'}'` = yes; then
10483   cat >>confdefs.h <<_ACEOF
10484 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10485 _ACEOF
10486
10487 fi
10488 done
10489
10490   LIBS="$lt_save_LIBS"
10491 fi
10492 ac_ext=c
10493 ac_cpp='$CPP $CPPFLAGS'
10494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10497
10498
10499
10500 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10501 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10502 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10503   echo $ECHO_N "(cached) $ECHO_C" >&6
10504 else
10505   ac_cv_sys_symbol_underscore=no
10506   cat > conftest.$ac_ext <<EOF
10507 void nm_test_func(){}
10508 int main(){nm_test_func;return 0;}
10509 EOF
10510   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10511   (eval $ac_compile) 2>&5
10512   ac_status=$?
10513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10514   (exit $ac_status); }; then
10515     # Now try to grab the symbols.
10516     ac_nlist=conftest.nm
10517     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10518   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10519   ac_status=$?
10520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521   (exit $ac_status); } && test -s "$ac_nlist"; then
10522       # See whether the symbols have a leading underscore.
10523       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10524         ac_cv_sys_symbol_underscore=yes
10525       else
10526         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10527           :
10528         else
10529           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10530         fi
10531       fi
10532     else
10533       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10534     fi
10535   else
10536     echo "configure: failed program was:" >&5
10537     cat conftest.c >&5
10538   fi
10539   rm -rf conftest*
10540
10541 fi
10542 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10543 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10544
10545
10546 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10547   if test x"$libltdl_cv_func_dlopen" = xyes ||
10548      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10549         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10550 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10551 if test "${libltdl_cv_need_uscore+set}" = set; then
10552   echo $ECHO_N "(cached) $ECHO_C" >&6
10553 else
10554   libltdl_cv_need_uscore=unknown
10555           save_LIBS="$LIBS"
10556           LIBS="$LIBS $LIBADD_DL"
10557           if test "$cross_compiling" = yes; then :
10558   libltdl_cv_need_uscore=cross
10559 else
10560   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10561   lt_status=$lt_dlunknown
10562   cat > conftest.$ac_ext <<EOF
10563 #line 10563 "configure"
10564 #include "confdefs.h"
10565
10566 #if HAVE_DLFCN_H
10567 #include <dlfcn.h>
10568 #endif
10569
10570 #include <stdio.h>
10571
10572 #ifdef RTLD_GLOBAL
10573 #  define LT_DLGLOBAL           RTLD_GLOBAL
10574 #else
10575 #  ifdef DL_GLOBAL
10576 #    define LT_DLGLOBAL         DL_GLOBAL
10577 #  else
10578 #    define LT_DLGLOBAL         0
10579 #  endif
10580 #endif
10581
10582 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10583    find out it does not work in some platform. */
10584 #ifndef LT_DLLAZY_OR_NOW
10585 #  ifdef RTLD_LAZY
10586 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10587 #  else
10588 #    ifdef DL_LAZY
10589 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10590 #    else
10591 #      ifdef RTLD_NOW
10592 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10593 #      else
10594 #        ifdef DL_NOW
10595 #          define LT_DLLAZY_OR_NOW      DL_NOW
10596 #        else
10597 #          define LT_DLLAZY_OR_NOW      0
10598 #        endif
10599 #      endif
10600 #    endif
10601 #  endif
10602 #endif
10603
10604 #ifdef __cplusplus
10605 extern "C" void exit (int);
10606 #endif
10607
10608 void fnord() { int i=42;}
10609 int main ()
10610 {
10611   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10612   int status = $lt_dlunknown;
10613
10614   if (self)
10615     {
10616       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10617       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10618       /* dlclose (self); */
10619     }
10620   else
10621     puts (dlerror ());
10622
10623     exit (status);
10624 }
10625 EOF
10626   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10627   (eval $ac_link) 2>&5
10628   ac_status=$?
10629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10630   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10631     (./conftest; exit; ) >&5 2>/dev/null
10632     lt_status=$?
10633     case x$lt_status in
10634       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10635       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10636       x$lt_dlunknown|x*)  ;;
10637     esac
10638   else :
10639     # compilation failed
10640
10641   fi
10642 fi
10643 rm -fr conftest*
10644
10645           LIBS="$save_LIBS"
10646
10647 fi
10648 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10649 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10650   fi
10651 fi
10652
10653 if test x"$libltdl_cv_need_uscore" = xyes; then
10654
10655 cat >>confdefs.h <<\_ACEOF
10656 #define NEED_USCORE 1
10657 _ACEOF
10658
10659 fi
10660
10661
10662 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10663 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10664 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10665   echo $ECHO_N "(cached) $ECHO_C" >&6
10666 else
10667   # PORTME does your system automatically load deplibs for dlopen?
10668   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10669   # For now, we just catch OSes we know something about -- in the
10670   # future, we'll try test this programmatically.
10671   libltdl_cv_sys_dlopen_deplibs=unknown
10672   case "$host_os" in
10673   aix3*|aix4.1.*|aix4.2.*)
10674     # Unknown whether this is true for these versions of AIX, but
10675     # we want this `case' here to explicitly catch those versions.
10676     libltdl_cv_sys_dlopen_deplibs=unknown
10677     ;;
10678   aix[45]*)
10679     libltdl_cv_sys_dlopen_deplibs=yes
10680     ;;
10681   darwin*)
10682     # Assuming the user has installed a libdl from somewhere, this is true
10683     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10684     libltdl_cv_sys_dlopen_deplibs=yes
10685     ;;
10686   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10687     # GNU and its variants, using gnu ld.so (Glibc)
10688     libltdl_cv_sys_dlopen_deplibs=yes
10689     ;;
10690   hpux10*|hpux11*)
10691     libltdl_cv_sys_dlopen_deplibs=yes
10692     ;;
10693   interix*)
10694     libltdl_cv_sys_dlopen_deplibs=yes
10695     ;;
10696   irix[12345]*|irix6.[01]*)
10697     # Catch all versions of IRIX before 6.2, and indicate that we don't
10698     # know how it worked for any of those versions.
10699     libltdl_cv_sys_dlopen_deplibs=unknown
10700     ;;
10701   irix*)
10702     # The case above catches anything before 6.2, and it's known that
10703     # at 6.2 and later dlopen does load deplibs.
10704     libltdl_cv_sys_dlopen_deplibs=yes
10705     ;;
10706   netbsd*)
10707     libltdl_cv_sys_dlopen_deplibs=yes
10708     ;;
10709   openbsd*)
10710     libltdl_cv_sys_dlopen_deplibs=yes
10711     ;;
10712   osf[1234]*)
10713     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10714     # it did *not* use an RPATH in a shared library to find objects the
10715     # library depends on, so we explictly say `no'.
10716     libltdl_cv_sys_dlopen_deplibs=no
10717     ;;
10718   osf5.0|osf5.0a|osf5.1)
10719     # dlopen *does* load deplibs and with the right loader patch applied
10720     # it even uses RPATH in a shared library to search for shared objects
10721     # that the library depends on, but there's no easy way to know if that
10722     # patch is installed.  Since this is the case, all we can really
10723     # say is unknown -- it depends on the patch being installed.  If
10724     # it is, this changes to `yes'.  Without it, it would be `no'.
10725     libltdl_cv_sys_dlopen_deplibs=unknown
10726     ;;
10727   osf*)
10728     # the two cases above should catch all versions of osf <= 5.1.  Read
10729     # the comments above for what we know about them.
10730     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10731     # is used to find them so we can finally say `yes'.
10732     libltdl_cv_sys_dlopen_deplibs=yes
10733     ;;
10734   solaris*)
10735     libltdl_cv_sys_dlopen_deplibs=yes
10736     ;;
10737   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10738     libltdl_cv_sys_dlopen_deplibs=yes
10739     ;;
10740   esac
10741
10742 fi
10743 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10744 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10745 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10746
10747 cat >>confdefs.h <<\_ACEOF
10748 #define LTDL_DLOPEN_DEPLIBS 1
10749 _ACEOF
10750
10751 fi
10752
10753
10754 for ac_header in argz.h
10755 do
10756 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10757 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10758   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10759 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10760 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10761   echo $ECHO_N "(cached) $ECHO_C" >&6
10762 fi
10763 ac_res=`eval echo '${'$as_ac_Header'}'`
10764                { echo "$as_me:$LINENO: result: $ac_res" >&5
10765 echo "${ECHO_T}$ac_res" >&6; }
10766 else
10767   # Is the header compilable?
10768 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10769 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10770 cat >conftest.$ac_ext <<_ACEOF
10771 /* confdefs.h.  */
10772 _ACEOF
10773 cat confdefs.h >>conftest.$ac_ext
10774 cat >>conftest.$ac_ext <<_ACEOF
10775 /* end confdefs.h.  */
10776 $ac_includes_default
10777 #include <$ac_header>
10778 _ACEOF
10779 rm -f conftest.$ac_objext
10780 if { (ac_try="$ac_compile"
10781 case "(($ac_try" in
10782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10783   *) ac_try_echo=$ac_try;;
10784 esac
10785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10786   (eval "$ac_compile") 2>conftest.er1
10787   ac_status=$?
10788   grep -v '^ *+' conftest.er1 >conftest.err
10789   rm -f conftest.er1
10790   cat conftest.err >&5
10791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10792   (exit $ac_status); } &&
10793          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10794   { (case "(($ac_try" in
10795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10796   *) ac_try_echo=$ac_try;;
10797 esac
10798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10799   (eval "$ac_try") 2>&5
10800   ac_status=$?
10801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10802   (exit $ac_status); }; } &&
10803          { ac_try='test -s conftest.$ac_objext'
10804   { (case "(($ac_try" in
10805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10806   *) ac_try_echo=$ac_try;;
10807 esac
10808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10809   (eval "$ac_try") 2>&5
10810   ac_status=$?
10811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10812   (exit $ac_status); }; }; then
10813   ac_header_compiler=yes
10814 else
10815   echo "$as_me: failed program was:" >&5
10816 sed 's/^/| /' conftest.$ac_ext >&5
10817
10818         ac_header_compiler=no
10819 fi
10820
10821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10822 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10823 echo "${ECHO_T}$ac_header_compiler" >&6; }
10824
10825 # Is the header present?
10826 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10827 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10828 cat >conftest.$ac_ext <<_ACEOF
10829 /* confdefs.h.  */
10830 _ACEOF
10831 cat confdefs.h >>conftest.$ac_ext
10832 cat >>conftest.$ac_ext <<_ACEOF
10833 /* end confdefs.h.  */
10834 #include <$ac_header>
10835 _ACEOF
10836 if { (ac_try="$ac_cpp conftest.$ac_ext"
10837 case "(($ac_try" in
10838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10839   *) ac_try_echo=$ac_try;;
10840 esac
10841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10842   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10843   ac_status=$?
10844   grep -v '^ *+' conftest.er1 >conftest.err
10845   rm -f conftest.er1
10846   cat conftest.err >&5
10847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10848   (exit $ac_status); } >/dev/null; then
10849   if test -s conftest.err; then
10850     ac_cpp_err=$ac_c_preproc_warn_flag
10851     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10852   else
10853     ac_cpp_err=
10854   fi
10855 else
10856   ac_cpp_err=yes
10857 fi
10858 if test -z "$ac_cpp_err"; then
10859   ac_header_preproc=yes
10860 else
10861   echo "$as_me: failed program was:" >&5
10862 sed 's/^/| /' conftest.$ac_ext >&5
10863
10864   ac_header_preproc=no
10865 fi
10866
10867 rm -f conftest.err conftest.$ac_ext
10868 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10869 echo "${ECHO_T}$ac_header_preproc" >&6; }
10870
10871 # So?  What about this header?
10872 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10873   yes:no: )
10874     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10875 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10876     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10877 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10878     ac_header_preproc=yes
10879     ;;
10880   no:yes:* )
10881     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10882 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10883     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10884 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10885     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10886 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10887     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10888 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10889     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10890 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10891     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10892 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10893     ( cat <<\_ASBOX
10894 ## ----------------------------------- ##
10895 ## Report this to llvmbugs@cs.uiuc.edu ##
10896 ## ----------------------------------- ##
10897 _ASBOX
10898      ) | sed "s/^/$as_me: WARNING:     /" >&2
10899     ;;
10900 esac
10901 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10902 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10903 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10904   echo $ECHO_N "(cached) $ECHO_C" >&6
10905 else
10906   eval "$as_ac_Header=\$ac_header_preproc"
10907 fi
10908 ac_res=`eval echo '${'$as_ac_Header'}'`
10909                { echo "$as_me:$LINENO: result: $ac_res" >&5
10910 echo "${ECHO_T}$ac_res" >&6; }
10911
10912 fi
10913 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10914   cat >>confdefs.h <<_ACEOF
10915 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10916 _ACEOF
10917
10918 fi
10919
10920 done
10921
10922
10923 { echo "$as_me:$LINENO: checking for error_t" >&5
10924 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10925 if test "${ac_cv_type_error_t+set}" = set; then
10926   echo $ECHO_N "(cached) $ECHO_C" >&6
10927 else
10928   cat >conftest.$ac_ext <<_ACEOF
10929 /* confdefs.h.  */
10930 _ACEOF
10931 cat confdefs.h >>conftest.$ac_ext
10932 cat >>conftest.$ac_ext <<_ACEOF
10933 /* end confdefs.h.  */
10934 #if HAVE_ARGZ_H
10935 #  include <argz.h>
10936 #endif
10937
10938 typedef error_t ac__type_new_;
10939 int
10940 main ()
10941 {
10942 if ((ac__type_new_ *) 0)
10943   return 0;
10944 if (sizeof (ac__type_new_))
10945   return 0;
10946   ;
10947   return 0;
10948 }
10949 _ACEOF
10950 rm -f conftest.$ac_objext
10951 if { (ac_try="$ac_compile"
10952 case "(($ac_try" in
10953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10954   *) ac_try_echo=$ac_try;;
10955 esac
10956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10957   (eval "$ac_compile") 2>conftest.er1
10958   ac_status=$?
10959   grep -v '^ *+' conftest.er1 >conftest.err
10960   rm -f conftest.er1
10961   cat conftest.err >&5
10962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10963   (exit $ac_status); } &&
10964          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10965   { (case "(($ac_try" in
10966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10967   *) ac_try_echo=$ac_try;;
10968 esac
10969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10970   (eval "$ac_try") 2>&5
10971   ac_status=$?
10972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10973   (exit $ac_status); }; } &&
10974          { ac_try='test -s conftest.$ac_objext'
10975   { (case "(($ac_try" in
10976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10977   *) ac_try_echo=$ac_try;;
10978 esac
10979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10980   (eval "$ac_try") 2>&5
10981   ac_status=$?
10982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10983   (exit $ac_status); }; }; then
10984   ac_cv_type_error_t=yes
10985 else
10986   echo "$as_me: failed program was:" >&5
10987 sed 's/^/| /' conftest.$ac_ext >&5
10988
10989         ac_cv_type_error_t=no
10990 fi
10991
10992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10993 fi
10994 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10995 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10996 if test $ac_cv_type_error_t = yes; then
10997
10998 cat >>confdefs.h <<_ACEOF
10999 #define HAVE_ERROR_T 1
11000 _ACEOF
11001
11002
11003 else
11004
11005 cat >>confdefs.h <<\_ACEOF
11006 #define error_t int
11007 _ACEOF
11008
11009 fi
11010
11011
11012
11013
11014
11015
11016
11017 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11018 do
11019 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11020 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11021 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11022 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11023   echo $ECHO_N "(cached) $ECHO_C" >&6
11024 else
11025   cat >conftest.$ac_ext <<_ACEOF
11026 /* confdefs.h.  */
11027 _ACEOF
11028 cat confdefs.h >>conftest.$ac_ext
11029 cat >>conftest.$ac_ext <<_ACEOF
11030 /* end confdefs.h.  */
11031 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11032    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11033 #define $ac_func innocuous_$ac_func
11034
11035 /* System header to define __stub macros and hopefully few prototypes,
11036     which can conflict with char $ac_func (); below.
11037     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11038     <limits.h> exists even on freestanding compilers.  */
11039
11040 #ifdef __STDC__
11041 # include <limits.h>
11042 #else
11043 # include <assert.h>
11044 #endif
11045
11046 #undef $ac_func
11047
11048 /* Override any GCC internal prototype to avoid an error.
11049    Use char because int might match the return type of a GCC
11050    builtin and then its argument prototype would still apply.  */
11051 #ifdef __cplusplus
11052 extern "C"
11053 #endif
11054 char $ac_func ();
11055 /* The GNU C library defines this for functions which it implements
11056     to always fail with ENOSYS.  Some functions are actually named
11057     something starting with __ and the normal name is an alias.  */
11058 #if defined __stub_$ac_func || defined __stub___$ac_func
11059 choke me
11060 #endif
11061
11062 int
11063 main ()
11064 {
11065 return $ac_func ();
11066   ;
11067   return 0;
11068 }
11069 _ACEOF
11070 rm -f conftest.$ac_objext conftest$ac_exeext
11071 if { (ac_try="$ac_link"
11072 case "(($ac_try" in
11073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11074   *) ac_try_echo=$ac_try;;
11075 esac
11076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11077   (eval "$ac_link") 2>conftest.er1
11078   ac_status=$?
11079   grep -v '^ *+' conftest.er1 >conftest.err
11080   rm -f conftest.er1
11081   cat conftest.err >&5
11082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11083   (exit $ac_status); } &&
11084          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11085   { (case "(($ac_try" in
11086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11087   *) ac_try_echo=$ac_try;;
11088 esac
11089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11090   (eval "$ac_try") 2>&5
11091   ac_status=$?
11092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093   (exit $ac_status); }; } &&
11094          { ac_try='test -s conftest$ac_exeext'
11095   { (case "(($ac_try" in
11096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11097   *) ac_try_echo=$ac_try;;
11098 esac
11099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11100   (eval "$ac_try") 2>&5
11101   ac_status=$?
11102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103   (exit $ac_status); }; }; then
11104   eval "$as_ac_var=yes"
11105 else
11106   echo "$as_me: failed program was:" >&5
11107 sed 's/^/| /' conftest.$ac_ext >&5
11108
11109         eval "$as_ac_var=no"
11110 fi
11111
11112 rm -f core conftest.err conftest.$ac_objext \
11113       conftest$ac_exeext conftest.$ac_ext
11114 fi
11115 ac_res=`eval echo '${'$as_ac_var'}'`
11116                { echo "$as_me:$LINENO: result: $ac_res" >&5
11117 echo "${ECHO_T}$ac_res" >&6; }
11118 if test `eval echo '${'$as_ac_var'}'` = yes; then
11119   cat >>confdefs.h <<_ACEOF
11120 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11121 _ACEOF
11122
11123 fi
11124 done
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11154                   stdio.h unistd.h
11155 do
11156 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11157 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11158   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11159 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11160 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11161   echo $ECHO_N "(cached) $ECHO_C" >&6
11162 fi
11163 ac_res=`eval echo '${'$as_ac_Header'}'`
11164                { echo "$as_me:$LINENO: result: $ac_res" >&5
11165 echo "${ECHO_T}$ac_res" >&6; }
11166 else
11167   # Is the header compilable?
11168 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11169 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11170 cat >conftest.$ac_ext <<_ACEOF
11171 /* confdefs.h.  */
11172 _ACEOF
11173 cat confdefs.h >>conftest.$ac_ext
11174 cat >>conftest.$ac_ext <<_ACEOF
11175 /* end confdefs.h.  */
11176 $ac_includes_default
11177 #include <$ac_header>
11178 _ACEOF
11179 rm -f conftest.$ac_objext
11180 if { (ac_try="$ac_compile"
11181 case "(($ac_try" in
11182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11183   *) ac_try_echo=$ac_try;;
11184 esac
11185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11186   (eval "$ac_compile") 2>conftest.er1
11187   ac_status=$?
11188   grep -v '^ *+' conftest.er1 >conftest.err
11189   rm -f conftest.er1
11190   cat conftest.err >&5
11191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11192   (exit $ac_status); } &&
11193          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11194   { (case "(($ac_try" in
11195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11196   *) ac_try_echo=$ac_try;;
11197 esac
11198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11199   (eval "$ac_try") 2>&5
11200   ac_status=$?
11201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11202   (exit $ac_status); }; } &&
11203          { ac_try='test -s conftest.$ac_objext'
11204   { (case "(($ac_try" in
11205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11206   *) ac_try_echo=$ac_try;;
11207 esac
11208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11209   (eval "$ac_try") 2>&5
11210   ac_status=$?
11211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11212   (exit $ac_status); }; }; then
11213   ac_header_compiler=yes
11214 else
11215   echo "$as_me: failed program was:" >&5
11216 sed 's/^/| /' conftest.$ac_ext >&5
11217
11218         ac_header_compiler=no
11219 fi
11220
11221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11222 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11223 echo "${ECHO_T}$ac_header_compiler" >&6; }
11224
11225 # Is the header present?
11226 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11227 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11228 cat >conftest.$ac_ext <<_ACEOF
11229 /* confdefs.h.  */
11230 _ACEOF
11231 cat confdefs.h >>conftest.$ac_ext
11232 cat >>conftest.$ac_ext <<_ACEOF
11233 /* end confdefs.h.  */
11234 #include <$ac_header>
11235 _ACEOF
11236 if { (ac_try="$ac_cpp conftest.$ac_ext"
11237 case "(($ac_try" in
11238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11239   *) ac_try_echo=$ac_try;;
11240 esac
11241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11242   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11243   ac_status=$?
11244   grep -v '^ *+' conftest.er1 >conftest.err
11245   rm -f conftest.er1
11246   cat conftest.err >&5
11247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11248   (exit $ac_status); } >/dev/null; then
11249   if test -s conftest.err; then
11250     ac_cpp_err=$ac_c_preproc_warn_flag
11251     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11252   else
11253     ac_cpp_err=
11254   fi
11255 else
11256   ac_cpp_err=yes
11257 fi
11258 if test -z "$ac_cpp_err"; then
11259   ac_header_preproc=yes
11260 else
11261   echo "$as_me: failed program was:" >&5
11262 sed 's/^/| /' conftest.$ac_ext >&5
11263
11264   ac_header_preproc=no
11265 fi
11266
11267 rm -f conftest.err conftest.$ac_ext
11268 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11269 echo "${ECHO_T}$ac_header_preproc" >&6; }
11270
11271 # So?  What about this header?
11272 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11273   yes:no: )
11274     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11275 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11276     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11277 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11278     ac_header_preproc=yes
11279     ;;
11280   no:yes:* )
11281     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11282 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11283     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11284 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11285     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11286 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11287     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11288 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11289     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11290 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11291     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11292 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11293     ( cat <<\_ASBOX
11294 ## ----------------------------------- ##
11295 ## Report this to llvmbugs@cs.uiuc.edu ##
11296 ## ----------------------------------- ##
11297 _ASBOX
11298      ) | sed "s/^/$as_me: WARNING:     /" >&2
11299     ;;
11300 esac
11301 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11302 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11303 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11304   echo $ECHO_N "(cached) $ECHO_C" >&6
11305 else
11306   eval "$as_ac_Header=\$ac_header_preproc"
11307 fi
11308 ac_res=`eval echo '${'$as_ac_Header'}'`
11309                { echo "$as_me:$LINENO: result: $ac_res" >&5
11310 echo "${ECHO_T}$ac_res" >&6; }
11311
11312 fi
11313 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11314   cat >>confdefs.h <<_ACEOF
11315 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11316 _ACEOF
11317
11318 fi
11319
11320 done
11321
11322
11323
11324
11325
11326 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11327 do
11328 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11329 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11330   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11331 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11332 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11333   echo $ECHO_N "(cached) $ECHO_C" >&6
11334 fi
11335 ac_res=`eval echo '${'$as_ac_Header'}'`
11336                { echo "$as_me:$LINENO: result: $ac_res" >&5
11337 echo "${ECHO_T}$ac_res" >&6; }
11338 else
11339   # Is the header compilable?
11340 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11341 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11342 cat >conftest.$ac_ext <<_ACEOF
11343 /* confdefs.h.  */
11344 _ACEOF
11345 cat confdefs.h >>conftest.$ac_ext
11346 cat >>conftest.$ac_ext <<_ACEOF
11347 /* end confdefs.h.  */
11348 $ac_includes_default
11349 #include <$ac_header>
11350 _ACEOF
11351 rm -f conftest.$ac_objext
11352 if { (ac_try="$ac_compile"
11353 case "(($ac_try" in
11354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11355   *) ac_try_echo=$ac_try;;
11356 esac
11357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11358   (eval "$ac_compile") 2>conftest.er1
11359   ac_status=$?
11360   grep -v '^ *+' conftest.er1 >conftest.err
11361   rm -f conftest.er1
11362   cat conftest.err >&5
11363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11364   (exit $ac_status); } &&
11365          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11366   { (case "(($ac_try" in
11367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11368   *) ac_try_echo=$ac_try;;
11369 esac
11370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11371   (eval "$ac_try") 2>&5
11372   ac_status=$?
11373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11374   (exit $ac_status); }; } &&
11375          { ac_try='test -s conftest.$ac_objext'
11376   { (case "(($ac_try" in
11377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11378   *) ac_try_echo=$ac_try;;
11379 esac
11380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11381   (eval "$ac_try") 2>&5
11382   ac_status=$?
11383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11384   (exit $ac_status); }; }; then
11385   ac_header_compiler=yes
11386 else
11387   echo "$as_me: failed program was:" >&5
11388 sed 's/^/| /' conftest.$ac_ext >&5
11389
11390         ac_header_compiler=no
11391 fi
11392
11393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11394 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11395 echo "${ECHO_T}$ac_header_compiler" >&6; }
11396
11397 # Is the header present?
11398 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11399 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11400 cat >conftest.$ac_ext <<_ACEOF
11401 /* confdefs.h.  */
11402 _ACEOF
11403 cat confdefs.h >>conftest.$ac_ext
11404 cat >>conftest.$ac_ext <<_ACEOF
11405 /* end confdefs.h.  */
11406 #include <$ac_header>
11407 _ACEOF
11408 if { (ac_try="$ac_cpp conftest.$ac_ext"
11409 case "(($ac_try" in
11410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11411   *) ac_try_echo=$ac_try;;
11412 esac
11413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11414   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11415   ac_status=$?
11416   grep -v '^ *+' conftest.er1 >conftest.err
11417   rm -f conftest.er1
11418   cat conftest.err >&5
11419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11420   (exit $ac_status); } >/dev/null; then
11421   if test -s conftest.err; then
11422     ac_cpp_err=$ac_c_preproc_warn_flag
11423     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11424   else
11425     ac_cpp_err=
11426   fi
11427 else
11428   ac_cpp_err=yes
11429 fi
11430 if test -z "$ac_cpp_err"; then
11431   ac_header_preproc=yes
11432 else
11433   echo "$as_me: failed program was:" >&5
11434 sed 's/^/| /' conftest.$ac_ext >&5
11435
11436   ac_header_preproc=no
11437 fi
11438
11439 rm -f conftest.err conftest.$ac_ext
11440 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11441 echo "${ECHO_T}$ac_header_preproc" >&6; }
11442
11443 # So?  What about this header?
11444 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11445   yes:no: )
11446     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11447 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11448     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11449 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11450     ac_header_preproc=yes
11451     ;;
11452   no:yes:* )
11453     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11454 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11455     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11456 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11457     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11458 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11459     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11460 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11461     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11462 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11463     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11464 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11465     ( cat <<\_ASBOX
11466 ## ----------------------------------- ##
11467 ## Report this to llvmbugs@cs.uiuc.edu ##
11468 ## ----------------------------------- ##
11469 _ASBOX
11470      ) | sed "s/^/$as_me: WARNING:     /" >&2
11471     ;;
11472 esac
11473 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11474 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11475 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11476   echo $ECHO_N "(cached) $ECHO_C" >&6
11477 else
11478   eval "$as_ac_Header=\$ac_header_preproc"
11479 fi
11480 ac_res=`eval echo '${'$as_ac_Header'}'`
11481                { echo "$as_me:$LINENO: result: $ac_res" >&5
11482 echo "${ECHO_T}$ac_res" >&6; }
11483
11484 fi
11485 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11486   cat >>confdefs.h <<_ACEOF
11487 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11488 _ACEOF
11489
11490 fi
11491
11492 done
11493
11494
11495
11496 for ac_header in string.h strings.h
11497 do
11498 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11499 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11500   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11501 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11502 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11503   echo $ECHO_N "(cached) $ECHO_C" >&6
11504 fi
11505 ac_res=`eval echo '${'$as_ac_Header'}'`
11506                { echo "$as_me:$LINENO: result: $ac_res" >&5
11507 echo "${ECHO_T}$ac_res" >&6; }
11508 else
11509   # Is the header compilable?
11510 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11511 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11512 cat >conftest.$ac_ext <<_ACEOF
11513 /* confdefs.h.  */
11514 _ACEOF
11515 cat confdefs.h >>conftest.$ac_ext
11516 cat >>conftest.$ac_ext <<_ACEOF
11517 /* end confdefs.h.  */
11518 $ac_includes_default
11519 #include <$ac_header>
11520 _ACEOF
11521 rm -f conftest.$ac_objext
11522 if { (ac_try="$ac_compile"
11523 case "(($ac_try" in
11524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11525   *) ac_try_echo=$ac_try;;
11526 esac
11527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11528   (eval "$ac_compile") 2>conftest.er1
11529   ac_status=$?
11530   grep -v '^ *+' conftest.er1 >conftest.err
11531   rm -f conftest.er1
11532   cat conftest.err >&5
11533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11534   (exit $ac_status); } &&
11535          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11536   { (case "(($ac_try" in
11537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11538   *) ac_try_echo=$ac_try;;
11539 esac
11540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11541   (eval "$ac_try") 2>&5
11542   ac_status=$?
11543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11544   (exit $ac_status); }; } &&
11545          { ac_try='test -s conftest.$ac_objext'
11546   { (case "(($ac_try" in
11547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11548   *) ac_try_echo=$ac_try;;
11549 esac
11550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11551   (eval "$ac_try") 2>&5
11552   ac_status=$?
11553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11554   (exit $ac_status); }; }; then
11555   ac_header_compiler=yes
11556 else
11557   echo "$as_me: failed program was:" >&5
11558 sed 's/^/| /' conftest.$ac_ext >&5
11559
11560         ac_header_compiler=no
11561 fi
11562
11563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11564 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11565 echo "${ECHO_T}$ac_header_compiler" >&6; }
11566
11567 # Is the header present?
11568 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11569 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11570 cat >conftest.$ac_ext <<_ACEOF
11571 /* confdefs.h.  */
11572 _ACEOF
11573 cat confdefs.h >>conftest.$ac_ext
11574 cat >>conftest.$ac_ext <<_ACEOF
11575 /* end confdefs.h.  */
11576 #include <$ac_header>
11577 _ACEOF
11578 if { (ac_try="$ac_cpp conftest.$ac_ext"
11579 case "(($ac_try" in
11580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11581   *) ac_try_echo=$ac_try;;
11582 esac
11583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11584   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11585   ac_status=$?
11586   grep -v '^ *+' conftest.er1 >conftest.err
11587   rm -f conftest.er1
11588   cat conftest.err >&5
11589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11590   (exit $ac_status); } >/dev/null; then
11591   if test -s conftest.err; then
11592     ac_cpp_err=$ac_c_preproc_warn_flag
11593     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11594   else
11595     ac_cpp_err=
11596   fi
11597 else
11598   ac_cpp_err=yes
11599 fi
11600 if test -z "$ac_cpp_err"; then
11601   ac_header_preproc=yes
11602 else
11603   echo "$as_me: failed program was:" >&5
11604 sed 's/^/| /' conftest.$ac_ext >&5
11605
11606   ac_header_preproc=no
11607 fi
11608
11609 rm -f conftest.err conftest.$ac_ext
11610 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11611 echo "${ECHO_T}$ac_header_preproc" >&6; }
11612
11613 # So?  What about this header?
11614 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11615   yes:no: )
11616     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11617 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11618     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11619 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11620     ac_header_preproc=yes
11621     ;;
11622   no:yes:* )
11623     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11624 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11625     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11626 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11627     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11628 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11629     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11630 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11631     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11632 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11633     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11634 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11635     ( cat <<\_ASBOX
11636 ## ----------------------------------- ##
11637 ## Report this to llvmbugs@cs.uiuc.edu ##
11638 ## ----------------------------------- ##
11639 _ASBOX
11640      ) | sed "s/^/$as_me: WARNING:     /" >&2
11641     ;;
11642 esac
11643 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11644 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11645 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11646   echo $ECHO_N "(cached) $ECHO_C" >&6
11647 else
11648   eval "$as_ac_Header=\$ac_header_preproc"
11649 fi
11650 ac_res=`eval echo '${'$as_ac_Header'}'`
11651                { echo "$as_me:$LINENO: result: $ac_res" >&5
11652 echo "${ECHO_T}$ac_res" >&6; }
11653
11654 fi
11655 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11656   cat >>confdefs.h <<_ACEOF
11657 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11658 _ACEOF
11659  break
11660 fi
11661
11662 done
11663
11664
11665
11666
11667 for ac_func in strchr index
11668 do
11669 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11670 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11671 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11672 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11673   echo $ECHO_N "(cached) $ECHO_C" >&6
11674 else
11675   cat >conftest.$ac_ext <<_ACEOF
11676 /* confdefs.h.  */
11677 _ACEOF
11678 cat confdefs.h >>conftest.$ac_ext
11679 cat >>conftest.$ac_ext <<_ACEOF
11680 /* end confdefs.h.  */
11681 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11682    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11683 #define $ac_func innocuous_$ac_func
11684
11685 /* System header to define __stub macros and hopefully few prototypes,
11686     which can conflict with char $ac_func (); below.
11687     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11688     <limits.h> exists even on freestanding compilers.  */
11689
11690 #ifdef __STDC__
11691 # include <limits.h>
11692 #else
11693 # include <assert.h>
11694 #endif
11695
11696 #undef $ac_func
11697
11698 /* Override any GCC internal prototype to avoid an error.
11699    Use char because int might match the return type of a GCC
11700    builtin and then its argument prototype would still apply.  */
11701 #ifdef __cplusplus
11702 extern "C"
11703 #endif
11704 char $ac_func ();
11705 /* The GNU C library defines this for functions which it implements
11706     to always fail with ENOSYS.  Some functions are actually named
11707     something starting with __ and the normal name is an alias.  */
11708 #if defined __stub_$ac_func || defined __stub___$ac_func
11709 choke me
11710 #endif
11711
11712 int
11713 main ()
11714 {
11715 return $ac_func ();
11716   ;
11717   return 0;
11718 }
11719 _ACEOF
11720 rm -f conftest.$ac_objext conftest$ac_exeext
11721 if { (ac_try="$ac_link"
11722 case "(($ac_try" in
11723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11724   *) ac_try_echo=$ac_try;;
11725 esac
11726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11727   (eval "$ac_link") 2>conftest.er1
11728   ac_status=$?
11729   grep -v '^ *+' conftest.er1 >conftest.err
11730   rm -f conftest.er1
11731   cat conftest.err >&5
11732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11733   (exit $ac_status); } &&
11734          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11735   { (case "(($ac_try" in
11736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11737   *) ac_try_echo=$ac_try;;
11738 esac
11739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11740   (eval "$ac_try") 2>&5
11741   ac_status=$?
11742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11743   (exit $ac_status); }; } &&
11744          { ac_try='test -s conftest$ac_exeext'
11745   { (case "(($ac_try" in
11746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11747   *) ac_try_echo=$ac_try;;
11748 esac
11749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11750   (eval "$ac_try") 2>&5
11751   ac_status=$?
11752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11753   (exit $ac_status); }; }; then
11754   eval "$as_ac_var=yes"
11755 else
11756   echo "$as_me: failed program was:" >&5
11757 sed 's/^/| /' conftest.$ac_ext >&5
11758
11759         eval "$as_ac_var=no"
11760 fi
11761
11762 rm -f core conftest.err conftest.$ac_objext \
11763       conftest$ac_exeext conftest.$ac_ext
11764 fi
11765 ac_res=`eval echo '${'$as_ac_var'}'`
11766                { echo "$as_me:$LINENO: result: $ac_res" >&5
11767 echo "${ECHO_T}$ac_res" >&6; }
11768 if test `eval echo '${'$as_ac_var'}'` = yes; then
11769   cat >>confdefs.h <<_ACEOF
11770 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11771 _ACEOF
11772  break
11773 fi
11774 done
11775
11776
11777
11778 for ac_func in strrchr rindex
11779 do
11780 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11781 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11782 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11783 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11784   echo $ECHO_N "(cached) $ECHO_C" >&6
11785 else
11786   cat >conftest.$ac_ext <<_ACEOF
11787 /* confdefs.h.  */
11788 _ACEOF
11789 cat confdefs.h >>conftest.$ac_ext
11790 cat >>conftest.$ac_ext <<_ACEOF
11791 /* end confdefs.h.  */
11792 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11793    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11794 #define $ac_func innocuous_$ac_func
11795
11796 /* System header to define __stub macros and hopefully few prototypes,
11797     which can conflict with char $ac_func (); below.
11798     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11799     <limits.h> exists even on freestanding compilers.  */
11800
11801 #ifdef __STDC__
11802 # include <limits.h>
11803 #else
11804 # include <assert.h>
11805 #endif
11806
11807 #undef $ac_func
11808
11809 /* Override any GCC internal prototype to avoid an error.
11810    Use char because int might match the return type of a GCC
11811    builtin and then its argument prototype would still apply.  */
11812 #ifdef __cplusplus
11813 extern "C"
11814 #endif
11815 char $ac_func ();
11816 /* The GNU C library defines this for functions which it implements
11817     to always fail with ENOSYS.  Some functions are actually named
11818     something starting with __ and the normal name is an alias.  */
11819 #if defined __stub_$ac_func || defined __stub___$ac_func
11820 choke me
11821 #endif
11822
11823 int
11824 main ()
11825 {
11826 return $ac_func ();
11827   ;
11828   return 0;
11829 }
11830 _ACEOF
11831 rm -f conftest.$ac_objext conftest$ac_exeext
11832 if { (ac_try="$ac_link"
11833 case "(($ac_try" in
11834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11835   *) ac_try_echo=$ac_try;;
11836 esac
11837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11838   (eval "$ac_link") 2>conftest.er1
11839   ac_status=$?
11840   grep -v '^ *+' conftest.er1 >conftest.err
11841   rm -f conftest.er1
11842   cat conftest.err >&5
11843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11844   (exit $ac_status); } &&
11845          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11846   { (case "(($ac_try" in
11847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11848   *) ac_try_echo=$ac_try;;
11849 esac
11850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11851   (eval "$ac_try") 2>&5
11852   ac_status=$?
11853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11854   (exit $ac_status); }; } &&
11855          { ac_try='test -s conftest$ac_exeext'
11856   { (case "(($ac_try" in
11857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11858   *) ac_try_echo=$ac_try;;
11859 esac
11860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11861   (eval "$ac_try") 2>&5
11862   ac_status=$?
11863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11864   (exit $ac_status); }; }; then
11865   eval "$as_ac_var=yes"
11866 else
11867   echo "$as_me: failed program was:" >&5
11868 sed 's/^/| /' conftest.$ac_ext >&5
11869
11870         eval "$as_ac_var=no"
11871 fi
11872
11873 rm -f core conftest.err conftest.$ac_objext \
11874       conftest$ac_exeext conftest.$ac_ext
11875 fi
11876 ac_res=`eval echo '${'$as_ac_var'}'`
11877                { echo "$as_me:$LINENO: result: $ac_res" >&5
11878 echo "${ECHO_T}$ac_res" >&6; }
11879 if test `eval echo '${'$as_ac_var'}'` = yes; then
11880   cat >>confdefs.h <<_ACEOF
11881 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11882 _ACEOF
11883  break
11884 fi
11885 done
11886
11887
11888
11889 for ac_func in memcpy bcopy
11890 do
11891 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11892 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11893 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11894 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11895   echo $ECHO_N "(cached) $ECHO_C" >&6
11896 else
11897   cat >conftest.$ac_ext <<_ACEOF
11898 /* confdefs.h.  */
11899 _ACEOF
11900 cat confdefs.h >>conftest.$ac_ext
11901 cat >>conftest.$ac_ext <<_ACEOF
11902 /* end confdefs.h.  */
11903 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11904    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11905 #define $ac_func innocuous_$ac_func
11906
11907 /* System header to define __stub macros and hopefully few prototypes,
11908     which can conflict with char $ac_func (); below.
11909     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11910     <limits.h> exists even on freestanding compilers.  */
11911
11912 #ifdef __STDC__
11913 # include <limits.h>
11914 #else
11915 # include <assert.h>
11916 #endif
11917
11918 #undef $ac_func
11919
11920 /* Override any GCC internal prototype to avoid an error.
11921    Use char because int might match the return type of a GCC
11922    builtin and then its argument prototype would still apply.  */
11923 #ifdef __cplusplus
11924 extern "C"
11925 #endif
11926 char $ac_func ();
11927 /* The GNU C library defines this for functions which it implements
11928     to always fail with ENOSYS.  Some functions are actually named
11929     something starting with __ and the normal name is an alias.  */
11930 #if defined __stub_$ac_func || defined __stub___$ac_func
11931 choke me
11932 #endif
11933
11934 int
11935 main ()
11936 {
11937 return $ac_func ();
11938   ;
11939   return 0;
11940 }
11941 _ACEOF
11942 rm -f conftest.$ac_objext conftest$ac_exeext
11943 if { (ac_try="$ac_link"
11944 case "(($ac_try" in
11945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11946   *) ac_try_echo=$ac_try;;
11947 esac
11948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11949   (eval "$ac_link") 2>conftest.er1
11950   ac_status=$?
11951   grep -v '^ *+' conftest.er1 >conftest.err
11952   rm -f conftest.er1
11953   cat conftest.err >&5
11954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11955   (exit $ac_status); } &&
11956          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11957   { (case "(($ac_try" in
11958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11959   *) ac_try_echo=$ac_try;;
11960 esac
11961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11962   (eval "$ac_try") 2>&5
11963   ac_status=$?
11964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11965   (exit $ac_status); }; } &&
11966          { ac_try='test -s conftest$ac_exeext'
11967   { (case "(($ac_try" in
11968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11969   *) ac_try_echo=$ac_try;;
11970 esac
11971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11972   (eval "$ac_try") 2>&5
11973   ac_status=$?
11974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11975   (exit $ac_status); }; }; then
11976   eval "$as_ac_var=yes"
11977 else
11978   echo "$as_me: failed program was:" >&5
11979 sed 's/^/| /' conftest.$ac_ext >&5
11980
11981         eval "$as_ac_var=no"
11982 fi
11983
11984 rm -f core conftest.err conftest.$ac_objext \
11985       conftest$ac_exeext conftest.$ac_ext
11986 fi
11987 ac_res=`eval echo '${'$as_ac_var'}'`
11988                { echo "$as_me:$LINENO: result: $ac_res" >&5
11989 echo "${ECHO_T}$ac_res" >&6; }
11990 if test `eval echo '${'$as_ac_var'}'` = yes; then
11991   cat >>confdefs.h <<_ACEOF
11992 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11993 _ACEOF
11994  break
11995 fi
11996 done
11997
11998
11999
12000 for ac_func in memmove strcmp
12001 do
12002 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12003 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12004 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12005 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12006   echo $ECHO_N "(cached) $ECHO_C" >&6
12007 else
12008   cat >conftest.$ac_ext <<_ACEOF
12009 /* confdefs.h.  */
12010 _ACEOF
12011 cat confdefs.h >>conftest.$ac_ext
12012 cat >>conftest.$ac_ext <<_ACEOF
12013 /* end confdefs.h.  */
12014 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12015    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12016 #define $ac_func innocuous_$ac_func
12017
12018 /* System header to define __stub macros and hopefully few prototypes,
12019     which can conflict with char $ac_func (); below.
12020     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12021     <limits.h> exists even on freestanding compilers.  */
12022
12023 #ifdef __STDC__
12024 # include <limits.h>
12025 #else
12026 # include <assert.h>
12027 #endif
12028
12029 #undef $ac_func
12030
12031 /* Override any GCC internal prototype to avoid an error.
12032    Use char because int might match the return type of a GCC
12033    builtin and then its argument prototype would still apply.  */
12034 #ifdef __cplusplus
12035 extern "C"
12036 #endif
12037 char $ac_func ();
12038 /* The GNU C library defines this for functions which it implements
12039     to always fail with ENOSYS.  Some functions are actually named
12040     something starting with __ and the normal name is an alias.  */
12041 #if defined __stub_$ac_func || defined __stub___$ac_func
12042 choke me
12043 #endif
12044
12045 int
12046 main ()
12047 {
12048 return $ac_func ();
12049   ;
12050   return 0;
12051 }
12052 _ACEOF
12053 rm -f conftest.$ac_objext conftest$ac_exeext
12054 if { (ac_try="$ac_link"
12055 case "(($ac_try" in
12056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12057   *) ac_try_echo=$ac_try;;
12058 esac
12059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12060   (eval "$ac_link") 2>conftest.er1
12061   ac_status=$?
12062   grep -v '^ *+' conftest.er1 >conftest.err
12063   rm -f conftest.er1
12064   cat conftest.err >&5
12065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12066   (exit $ac_status); } &&
12067          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12068   { (case "(($ac_try" in
12069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12070   *) ac_try_echo=$ac_try;;
12071 esac
12072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12073   (eval "$ac_try") 2>&5
12074   ac_status=$?
12075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12076   (exit $ac_status); }; } &&
12077          { ac_try='test -s conftest$ac_exeext'
12078   { (case "(($ac_try" in
12079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12080   *) ac_try_echo=$ac_try;;
12081 esac
12082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12083   (eval "$ac_try") 2>&5
12084   ac_status=$?
12085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12086   (exit $ac_status); }; }; then
12087   eval "$as_ac_var=yes"
12088 else
12089   echo "$as_me: failed program was:" >&5
12090 sed 's/^/| /' conftest.$ac_ext >&5
12091
12092         eval "$as_ac_var=no"
12093 fi
12094
12095 rm -f core conftest.err conftest.$ac_objext \
12096       conftest$ac_exeext conftest.$ac_ext
12097 fi
12098 ac_res=`eval echo '${'$as_ac_var'}'`
12099                { echo "$as_me:$LINENO: result: $ac_res" >&5
12100 echo "${ECHO_T}$ac_res" >&6; }
12101 if test `eval echo '${'$as_ac_var'}'` = yes; then
12102   cat >>confdefs.h <<_ACEOF
12103 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12104 _ACEOF
12105
12106 fi
12107 done
12108
12109
12110
12111
12112 for ac_func in closedir opendir readdir
12113 do
12114 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12115 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12116 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12117 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12118   echo $ECHO_N "(cached) $ECHO_C" >&6
12119 else
12120   cat >conftest.$ac_ext <<_ACEOF
12121 /* confdefs.h.  */
12122 _ACEOF
12123 cat confdefs.h >>conftest.$ac_ext
12124 cat >>conftest.$ac_ext <<_ACEOF
12125 /* end confdefs.h.  */
12126 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12127    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12128 #define $ac_func innocuous_$ac_func
12129
12130 /* System header to define __stub macros and hopefully few prototypes,
12131     which can conflict with char $ac_func (); below.
12132     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12133     <limits.h> exists even on freestanding compilers.  */
12134
12135 #ifdef __STDC__
12136 # include <limits.h>
12137 #else
12138 # include <assert.h>
12139 #endif
12140
12141 #undef $ac_func
12142
12143 /* Override any GCC internal prototype to avoid an error.
12144    Use char because int might match the return type of a GCC
12145    builtin and then its argument prototype would still apply.  */
12146 #ifdef __cplusplus
12147 extern "C"
12148 #endif
12149 char $ac_func ();
12150 /* The GNU C library defines this for functions which it implements
12151     to always fail with ENOSYS.  Some functions are actually named
12152     something starting with __ and the normal name is an alias.  */
12153 #if defined __stub_$ac_func || defined __stub___$ac_func
12154 choke me
12155 #endif
12156
12157 int
12158 main ()
12159 {
12160 return $ac_func ();
12161   ;
12162   return 0;
12163 }
12164 _ACEOF
12165 rm -f conftest.$ac_objext conftest$ac_exeext
12166 if { (ac_try="$ac_link"
12167 case "(($ac_try" in
12168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12169   *) ac_try_echo=$ac_try;;
12170 esac
12171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12172   (eval "$ac_link") 2>conftest.er1
12173   ac_status=$?
12174   grep -v '^ *+' conftest.er1 >conftest.err
12175   rm -f conftest.er1
12176   cat conftest.err >&5
12177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12178   (exit $ac_status); } &&
12179          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12180   { (case "(($ac_try" in
12181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12182   *) ac_try_echo=$ac_try;;
12183 esac
12184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12185   (eval "$ac_try") 2>&5
12186   ac_status=$?
12187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12188   (exit $ac_status); }; } &&
12189          { ac_try='test -s conftest$ac_exeext'
12190   { (case "(($ac_try" in
12191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12192   *) ac_try_echo=$ac_try;;
12193 esac
12194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12195   (eval "$ac_try") 2>&5
12196   ac_status=$?
12197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12198   (exit $ac_status); }; }; then
12199   eval "$as_ac_var=yes"
12200 else
12201   echo "$as_me: failed program was:" >&5
12202 sed 's/^/| /' conftest.$ac_ext >&5
12203
12204         eval "$as_ac_var=no"
12205 fi
12206
12207 rm -f core conftest.err conftest.$ac_objext \
12208       conftest$ac_exeext conftest.$ac_ext
12209 fi
12210 ac_res=`eval echo '${'$as_ac_var'}'`
12211                { echo "$as_me:$LINENO: result: $ac_res" >&5
12212 echo "${ECHO_T}$ac_res" >&6; }
12213 if test `eval echo '${'$as_ac_var'}'` = yes; then
12214   cat >>confdefs.h <<_ACEOF
12215 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12216 _ACEOF
12217
12218 fi
12219 done
12220
12221
12222 # Check whether --enable-shared was given.
12223 if test "${enable_shared+set}" = set; then
12224   enableval=$enable_shared; p=${PACKAGE-default}
12225     case $enableval in
12226     yes) enable_shared=yes ;;
12227     no) enable_shared=no ;;
12228     *)
12229       enable_shared=no
12230       # Look at the argument we got.  We use all the common list separators.
12231       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12232       for pkg in $enableval; do
12233         IFS="$lt_save_ifs"
12234         if test "X$pkg" = "X$p"; then
12235           enable_shared=yes
12236         fi
12237       done
12238       IFS="$lt_save_ifs"
12239       ;;
12240     esac
12241 else
12242   enable_shared=yes
12243 fi
12244
12245
12246 # Check whether --enable-static was given.
12247 if test "${enable_static+set}" = set; then
12248   enableval=$enable_static; p=${PACKAGE-default}
12249     case $enableval in
12250     yes) enable_static=yes ;;
12251     no) enable_static=no ;;
12252     *)
12253      enable_static=no
12254       # Look at the argument we got.  We use all the common list separators.
12255       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12256       for pkg in $enableval; do
12257         IFS="$lt_save_ifs"
12258         if test "X$pkg" = "X$p"; then
12259           enable_static=yes
12260         fi
12261       done
12262       IFS="$lt_save_ifs"
12263       ;;
12264     esac
12265 else
12266   enable_static=yes
12267 fi
12268
12269
12270 # Check whether --enable-fast-install was given.
12271 if test "${enable_fast_install+set}" = set; then
12272   enableval=$enable_fast_install; p=${PACKAGE-default}
12273     case $enableval in
12274     yes) enable_fast_install=yes ;;
12275     no) enable_fast_install=no ;;
12276     *)
12277       enable_fast_install=no
12278       # Look at the argument we got.  We use all the common list separators.
12279       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12280       for pkg in $enableval; do
12281         IFS="$lt_save_ifs"
12282         if test "X$pkg" = "X$p"; then
12283           enable_fast_install=yes
12284         fi
12285       done
12286       IFS="$lt_save_ifs"
12287       ;;
12288     esac
12289 else
12290   enable_fast_install=yes
12291 fi
12292
12293
12294 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12295 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12296 if test "${lt_cv_path_SED+set}" = set; then
12297   echo $ECHO_N "(cached) $ECHO_C" >&6
12298 else
12299   # Loop through the user's path and test for sed and gsed.
12300 # Then use that list of sed's as ones to test for truncation.
12301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12302 for as_dir in $PATH
12303 do
12304   IFS=$as_save_IFS
12305   test -z "$as_dir" && as_dir=.
12306   for lt_ac_prog in sed gsed; do
12307     for ac_exec_ext in '' $ac_executable_extensions; do
12308       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12309         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12310       fi
12311     done
12312   done
12313 done
12314 lt_ac_max=0
12315 lt_ac_count=0
12316 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12317 # along with /bin/sed that truncates output.
12318 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12319   test ! -f $lt_ac_sed && continue
12320   cat /dev/null > conftest.in
12321   lt_ac_count=0
12322   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12323   # Check for GNU sed and select it if it is found.
12324   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12325     lt_cv_path_SED=$lt_ac_sed
12326     break
12327   fi
12328   while true; do
12329     cat conftest.in conftest.in >conftest.tmp
12330     mv conftest.tmp conftest.in
12331     cp conftest.in conftest.nl
12332     echo >>conftest.nl
12333     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12334     cmp -s conftest.out conftest.nl || break
12335     # 10000 chars as input seems more than enough
12336     test $lt_ac_count -gt 10 && break
12337     lt_ac_count=`expr $lt_ac_count + 1`
12338     if test $lt_ac_count -gt $lt_ac_max; then
12339       lt_ac_max=$lt_ac_count
12340       lt_cv_path_SED=$lt_ac_sed
12341     fi
12342   done
12343 done
12344
12345 fi
12346
12347 SED=$lt_cv_path_SED
12348 { echo "$as_me:$LINENO: result: $SED" >&5
12349 echo "${ECHO_T}$SED" >&6; }
12350
12351
12352 # Check whether --with-gnu-ld was given.
12353 if test "${with_gnu_ld+set}" = set; then
12354   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12355 else
12356   with_gnu_ld=no
12357 fi
12358
12359 ac_prog=ld
12360 if test "$GCC" = yes; then
12361   # Check if gcc -print-prog-name=ld gives a path.
12362   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12363 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12364   case $host in
12365   *-*-mingw*)
12366     # gcc leaves a trailing carriage return which upsets mingw
12367     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12368   *)
12369     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12370   esac
12371   case $ac_prog in
12372     # Accept absolute paths.
12373     [\\/]* | ?:[\\/]*)
12374       re_direlt='/[^/][^/]*/\.\./'
12375       # Canonicalize the pathname of ld
12376       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12377       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12378         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12379       done
12380       test -z "$LD" && LD="$ac_prog"
12381       ;;
12382   "")
12383     # If it fails, then pretend we aren't using GCC.
12384     ac_prog=ld
12385     ;;
12386   *)
12387     # If it is relative, then search for the first ld in PATH.
12388     with_gnu_ld=unknown
12389     ;;
12390   esac
12391 elif test "$with_gnu_ld" = yes; then
12392   { echo "$as_me:$LINENO: checking for GNU ld" >&5
12393 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12394 else
12395   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12396 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12397 fi
12398 if test "${lt_cv_path_LD+set}" = set; then
12399   echo $ECHO_N "(cached) $ECHO_C" >&6
12400 else
12401   if test -z "$LD"; then
12402   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12403   for ac_dir in $PATH; do
12404     IFS="$lt_save_ifs"
12405     test -z "$ac_dir" && ac_dir=.
12406     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12407       lt_cv_path_LD="$ac_dir/$ac_prog"
12408       # Check to see if the program is GNU ld.  I'd rather use --version,
12409       # but apparently some variants of GNU ld only accept -v.
12410       # Break only if it was the GNU/non-GNU ld that we prefer.
12411       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12412       *GNU* | *'with BFD'*)
12413         test "$with_gnu_ld" != no && break
12414         ;;
12415       *)
12416         test "$with_gnu_ld" != yes && break
12417         ;;
12418       esac
12419     fi
12420   done
12421   IFS="$lt_save_ifs"
12422 else
12423   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12424 fi
12425 fi
12426
12427 LD="$lt_cv_path_LD"
12428 if test -n "$LD"; then
12429   { echo "$as_me:$LINENO: result: $LD" >&5
12430 echo "${ECHO_T}$LD" >&6; }
12431 else
12432   { echo "$as_me:$LINENO: result: no" >&5
12433 echo "${ECHO_T}no" >&6; }
12434 fi
12435 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12436 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12437    { (exit 1); exit 1; }; }
12438 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12439 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12440 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12441   echo $ECHO_N "(cached) $ECHO_C" >&6
12442 else
12443   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12444 case `$LD -v 2>&1 </dev/null` in
12445 *GNU* | *'with BFD'*)
12446   lt_cv_prog_gnu_ld=yes
12447   ;;
12448 *)
12449   lt_cv_prog_gnu_ld=no
12450   ;;
12451 esac
12452 fi
12453 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12454 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12455 with_gnu_ld=$lt_cv_prog_gnu_ld
12456
12457
12458 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12459 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12460 if test "${lt_cv_ld_reload_flag+set}" = set; then
12461   echo $ECHO_N "(cached) $ECHO_C" >&6
12462 else
12463   lt_cv_ld_reload_flag='-r'
12464 fi
12465 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12466 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12467 reload_flag=$lt_cv_ld_reload_flag
12468 case $reload_flag in
12469 "" | " "*) ;;
12470 *) reload_flag=" $reload_flag" ;;
12471 esac
12472 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12473 case $host_os in
12474   darwin*)
12475     if test "$GCC" = yes; then
12476       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12477     else
12478       reload_cmds='$LD$reload_flag -o $output$reload_objs'
12479     fi
12480     ;;
12481 esac
12482
12483 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12484 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12485 if test "${lt_cv_deplibs_check_method+set}" = set; then
12486   echo $ECHO_N "(cached) $ECHO_C" >&6
12487 else
12488   lt_cv_file_magic_cmd='$MAGIC_CMD'
12489 lt_cv_file_magic_test_file=
12490 lt_cv_deplibs_check_method='unknown'
12491 # Need to set the preceding variable on all platforms that support
12492 # interlibrary dependencies.
12493 # 'none' -- dependencies not supported.
12494 # `unknown' -- same as none, but documents that we really don't know.
12495 # 'pass_all' -- all dependencies passed with no checks.
12496 # 'test_compile' -- check by making test program.
12497 # 'file_magic [[regex]]' -- check by looking for files in library path
12498 # which responds to the $file_magic_cmd with a given extended regex.
12499 # If you have `file' or equivalent on your system and you're not sure
12500 # whether `pass_all' will *always* work, you probably want this one.
12501
12502 case $host_os in
12503 aix4* | aix5*)
12504   lt_cv_deplibs_check_method=pass_all
12505   ;;
12506
12507 beos*)
12508   lt_cv_deplibs_check_method=pass_all
12509   ;;
12510
12511 bsdi[45]*)
12512   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12513   lt_cv_file_magic_cmd='/usr/bin/file -L'
12514   lt_cv_file_magic_test_file=/shlib/libc.so
12515   ;;
12516
12517 cygwin*)
12518   # func_win32_libid is a shell function defined in ltmain.sh
12519   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12520   lt_cv_file_magic_cmd='func_win32_libid'
12521   ;;
12522
12523 mingw* | pw32*)
12524   # Base MSYS/MinGW do not provide the 'file' command needed by
12525   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12526   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12527   lt_cv_file_magic_cmd='$OBJDUMP -f'
12528   ;;
12529
12530 darwin* | rhapsody*)
12531   lt_cv_deplibs_check_method=pass_all
12532   ;;
12533
12534 freebsd* | kfreebsd*-gnu | dragonfly*)
12535   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12536     case $host_cpu in
12537     i*86 )
12538       # Not sure whether the presence of OpenBSD here was a mistake.
12539       # Let's accept both of them until this is cleared up.
12540       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12541       lt_cv_file_magic_cmd=/usr/bin/file
12542       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12543       ;;
12544     esac
12545   else
12546     lt_cv_deplibs_check_method=pass_all
12547   fi
12548   ;;
12549
12550 gnu*)
12551   lt_cv_deplibs_check_method=pass_all
12552   ;;
12553
12554 hpux10.20* | hpux11*)
12555   lt_cv_file_magic_cmd=/usr/bin/file
12556   case $host_cpu in
12557   ia64*)
12558     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12559     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12560     ;;
12561   hppa*64*)
12562     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]'
12563     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12564     ;;
12565   *)
12566     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12567     lt_cv_file_magic_test_file=/usr/lib/libc.sl
12568     ;;
12569   esac
12570   ;;
12571
12572 interix3*)
12573   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12574   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12575   ;;
12576
12577 irix5* | irix6* | nonstopux*)
12578   case $LD in
12579   *-32|*"-32 ") libmagic=32-bit;;
12580   *-n32|*"-n32 ") libmagic=N32;;
12581   *-64|*"-64 ") libmagic=64-bit;;
12582   *) libmagic=never-match;;
12583   esac
12584   lt_cv_deplibs_check_method=pass_all
12585   ;;
12586
12587 # This must be Linux ELF.
12588 linux*)
12589   lt_cv_deplibs_check_method=pass_all
12590   ;;
12591
12592 netbsd*)
12593   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12594     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12595   else
12596     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12597   fi
12598   ;;
12599
12600 newos6*)
12601   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12602   lt_cv_file_magic_cmd=/usr/bin/file
12603   lt_cv_file_magic_test_file=/usr/lib/libnls.so
12604   ;;
12605
12606 nto-qnx*)
12607   lt_cv_deplibs_check_method=unknown
12608   ;;
12609
12610 openbsd*)
12611   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12612     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12613   else
12614     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12615   fi
12616   ;;
12617
12618 osf3* | osf4* | osf5*)
12619   lt_cv_deplibs_check_method=pass_all
12620   ;;
12621
12622 solaris*)
12623   lt_cv_deplibs_check_method=pass_all
12624   ;;
12625
12626 sysv4 | sysv4.3*)
12627   case $host_vendor in
12628   motorola)
12629     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]'
12630     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12631     ;;
12632   ncr)
12633     lt_cv_deplibs_check_method=pass_all
12634     ;;
12635   sequent)
12636     lt_cv_file_magic_cmd='/bin/file'
12637     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12638     ;;
12639   sni)
12640     lt_cv_file_magic_cmd='/bin/file'
12641     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12642     lt_cv_file_magic_test_file=/lib/libc.so
12643     ;;
12644   siemens)
12645     lt_cv_deplibs_check_method=pass_all
12646     ;;
12647   pc)
12648     lt_cv_deplibs_check_method=pass_all
12649     ;;
12650   esac
12651   ;;
12652
12653 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12654   lt_cv_deplibs_check_method=pass_all
12655   ;;
12656 esac
12657
12658 fi
12659 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12660 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12661 file_magic_cmd=$lt_cv_file_magic_cmd
12662 deplibs_check_method=$lt_cv_deplibs_check_method
12663 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12664
12665
12666
12667 # If no C compiler was specified, use CC.
12668 LTCC=${LTCC-"$CC"}
12669
12670 # If no C compiler flags were specified, use CFLAGS.
12671 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12672
12673 # Allow CC to be a program name with arguments.
12674 compiler=$CC
12675
12676 # Check whether --enable-libtool-lock was given.
12677 if test "${enable_libtool_lock+set}" = set; then
12678   enableval=$enable_libtool_lock;
12679 fi
12680
12681 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12682
12683 # Some flags need to be propagated to the compiler or linker for good
12684 # libtool support.
12685 case $host in
12686 ia64-*-hpux*)
12687   # Find out which ABI we are using.
12688   echo 'int i;' > conftest.$ac_ext
12689   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12690   (eval $ac_compile) 2>&5
12691   ac_status=$?
12692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12693   (exit $ac_status); }; then
12694     case `/usr/bin/file conftest.$ac_objext` in
12695     *ELF-32*)
12696       HPUX_IA64_MODE="32"
12697       ;;
12698     *ELF-64*)
12699       HPUX_IA64_MODE="64"
12700       ;;
12701     esac
12702   fi
12703   rm -rf conftest*
12704   ;;
12705 *-*-irix6*)
12706   # Find out which ABI we are using.
12707   echo '#line 12707 "configure"' > conftest.$ac_ext
12708   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12709   (eval $ac_compile) 2>&5
12710   ac_status=$?
12711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12712   (exit $ac_status); }; then
12713    if test "$lt_cv_prog_gnu_ld" = yes; then
12714     case `/usr/bin/file conftest.$ac_objext` in
12715     *32-bit*)
12716       LD="${LD-ld} -melf32bsmip"
12717       ;;
12718     *N32*)
12719       LD="${LD-ld} -melf32bmipn32"
12720       ;;
12721     *64-bit*)
12722       LD="${LD-ld} -melf64bmip"
12723       ;;
12724     esac
12725    else
12726     case `/usr/bin/file conftest.$ac_objext` in
12727     *32-bit*)
12728       LD="${LD-ld} -32"
12729       ;;
12730     *N32*)
12731       LD="${LD-ld} -n32"
12732       ;;
12733     *64-bit*)
12734       LD="${LD-ld} -64"
12735       ;;
12736     esac
12737    fi
12738   fi
12739   rm -rf conftest*
12740   ;;
12741
12742 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12743   # Find out which ABI we are using.
12744   echo 'int i;' > conftest.$ac_ext
12745   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12746   (eval $ac_compile) 2>&5
12747   ac_status=$?
12748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12749   (exit $ac_status); }; then
12750     case `/usr/bin/file conftest.o` in
12751     *32-bit*)
12752       case $host in
12753         x86_64-*linux*)
12754           LD="${LD-ld} -m elf_i386"
12755           ;;
12756         ppc64-*linux*|powerpc64-*linux*)
12757           LD="${LD-ld} -m elf32ppclinux"
12758           ;;
12759         s390x-*linux*)
12760           LD="${LD-ld} -m elf_s390"
12761           ;;
12762         sparc64-*linux*)
12763           LD="${LD-ld} -m elf32_sparc"
12764           ;;
12765       esac
12766       ;;
12767     *64-bit*)
12768       case $host in
12769         x86_64-*linux*)
12770           LD="${LD-ld} -m elf_x86_64"
12771           ;;
12772         ppc*-*linux*|powerpc*-*linux*)
12773           LD="${LD-ld} -m elf64ppc"
12774           ;;
12775         s390*-*linux*)
12776           LD="${LD-ld} -m elf64_s390"
12777           ;;
12778         sparc*-*linux*)
12779           LD="${LD-ld} -m elf64_sparc"
12780           ;;
12781       esac
12782       ;;
12783     esac
12784   fi
12785   rm -rf conftest*
12786   ;;
12787
12788 *-*-sco3.2v5*)
12789   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12790   SAVE_CFLAGS="$CFLAGS"
12791   CFLAGS="$CFLAGS -belf"
12792   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12793 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
12794 if test "${lt_cv_cc_needs_belf+set}" = set; then
12795   echo $ECHO_N "(cached) $ECHO_C" >&6
12796 else
12797   ac_ext=c
12798 ac_cpp='$CPP $CPPFLAGS'
12799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12802
12803      cat >conftest.$ac_ext <<_ACEOF
12804 /* confdefs.h.  */
12805 _ACEOF
12806 cat confdefs.h >>conftest.$ac_ext
12807 cat >>conftest.$ac_ext <<_ACEOF
12808 /* end confdefs.h.  */
12809
12810 int
12811 main ()
12812 {
12813
12814   ;
12815   return 0;
12816 }
12817 _ACEOF
12818 rm -f conftest.$ac_objext conftest$ac_exeext
12819 if { (ac_try="$ac_link"
12820 case "(($ac_try" in
12821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12822   *) ac_try_echo=$ac_try;;
12823 esac
12824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12825   (eval "$ac_link") 2>conftest.er1
12826   ac_status=$?
12827   grep -v '^ *+' conftest.er1 >conftest.err
12828   rm -f conftest.er1
12829   cat conftest.err >&5
12830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12831   (exit $ac_status); } &&
12832          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12833   { (case "(($ac_try" in
12834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12835   *) ac_try_echo=$ac_try;;
12836 esac
12837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12838   (eval "$ac_try") 2>&5
12839   ac_status=$?
12840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12841   (exit $ac_status); }; } &&
12842          { ac_try='test -s conftest$ac_exeext'
12843   { (case "(($ac_try" in
12844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12845   *) ac_try_echo=$ac_try;;
12846 esac
12847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12848   (eval "$ac_try") 2>&5
12849   ac_status=$?
12850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12851   (exit $ac_status); }; }; then
12852   lt_cv_cc_needs_belf=yes
12853 else
12854   echo "$as_me: failed program was:" >&5
12855 sed 's/^/| /' conftest.$ac_ext >&5
12856
12857         lt_cv_cc_needs_belf=no
12858 fi
12859
12860 rm -f core conftest.err conftest.$ac_objext \
12861       conftest$ac_exeext conftest.$ac_ext
12862      ac_ext=c
12863 ac_cpp='$CPP $CPPFLAGS'
12864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12867
12868 fi
12869 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12870 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
12871   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12872     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12873     CFLAGS="$SAVE_CFLAGS"
12874   fi
12875   ;;
12876 sparc*-*solaris*)
12877   # Find out which ABI we are using.
12878   echo 'int i;' > conftest.$ac_ext
12879   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12880   (eval $ac_compile) 2>&5
12881   ac_status=$?
12882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12883   (exit $ac_status); }; then
12884     case `/usr/bin/file conftest.o` in
12885     *64-bit*)
12886       case $lt_cv_prog_gnu_ld in
12887       yes*) LD="${LD-ld} -m elf64_sparc" ;;
12888       *)    LD="${LD-ld} -64" ;;
12889       esac
12890       ;;
12891     esac
12892   fi
12893   rm -rf conftest*
12894   ;;
12895
12896
12897 esac
12898
12899 need_locks="$enable_libtool_lock"
12900
12901
12902
12903
12904 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12905     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12906     (test "X$CXX" != "Xg++"))) ; then
12907   ac_ext=cpp
12908 ac_cpp='$CXXCPP $CPPFLAGS'
12909 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12910 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12911 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12912 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12913 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12914 if test -z "$CXXCPP"; then
12915   if test "${ac_cv_prog_CXXCPP+set}" = set; then
12916   echo $ECHO_N "(cached) $ECHO_C" >&6
12917 else
12918       # Double quotes because CXXCPP needs to be expanded
12919     for CXXCPP in "$CXX -E" "/lib/cpp"
12920     do
12921       ac_preproc_ok=false
12922 for ac_cxx_preproc_warn_flag in '' yes
12923 do
12924   # Use a header file that comes with gcc, so configuring glibc
12925   # with a fresh cross-compiler works.
12926   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12927   # <limits.h> exists even on freestanding compilers.
12928   # On the NeXT, cc -E runs the code through the compiler's parser,
12929   # not just through cpp. "Syntax error" is here to catch this case.
12930   cat >conftest.$ac_ext <<_ACEOF
12931 /* confdefs.h.  */
12932 _ACEOF
12933 cat confdefs.h >>conftest.$ac_ext
12934 cat >>conftest.$ac_ext <<_ACEOF
12935 /* end confdefs.h.  */
12936 #ifdef __STDC__
12937 # include <limits.h>
12938 #else
12939 # include <assert.h>
12940 #endif
12941                      Syntax error
12942 _ACEOF
12943 if { (ac_try="$ac_cpp conftest.$ac_ext"
12944 case "(($ac_try" in
12945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12946   *) ac_try_echo=$ac_try;;
12947 esac
12948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12949   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12950   ac_status=$?
12951   grep -v '^ *+' conftest.er1 >conftest.err
12952   rm -f conftest.er1
12953   cat conftest.err >&5
12954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12955   (exit $ac_status); } >/dev/null; then
12956   if test -s conftest.err; then
12957     ac_cpp_err=$ac_cxx_preproc_warn_flag
12958     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12959   else
12960     ac_cpp_err=
12961   fi
12962 else
12963   ac_cpp_err=yes
12964 fi
12965 if test -z "$ac_cpp_err"; then
12966   :
12967 else
12968   echo "$as_me: failed program was:" >&5
12969 sed 's/^/| /' conftest.$ac_ext >&5
12970
12971   # Broken: fails on valid input.
12972 continue
12973 fi
12974
12975 rm -f conftest.err conftest.$ac_ext
12976
12977   # OK, works on sane cases.  Now check whether nonexistent headers
12978   # can be detected and how.
12979   cat >conftest.$ac_ext <<_ACEOF
12980 /* confdefs.h.  */
12981 _ACEOF
12982 cat confdefs.h >>conftest.$ac_ext
12983 cat >>conftest.$ac_ext <<_ACEOF
12984 /* end confdefs.h.  */
12985 #include <ac_nonexistent.h>
12986 _ACEOF
12987 if { (ac_try="$ac_cpp conftest.$ac_ext"
12988 case "(($ac_try" in
12989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12990   *) ac_try_echo=$ac_try;;
12991 esac
12992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12993   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12994   ac_status=$?
12995   grep -v '^ *+' conftest.er1 >conftest.err
12996   rm -f conftest.er1
12997   cat conftest.err >&5
12998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12999   (exit $ac_status); } >/dev/null; then
13000   if test -s conftest.err; then
13001     ac_cpp_err=$ac_cxx_preproc_warn_flag
13002     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13003   else
13004     ac_cpp_err=
13005   fi
13006 else
13007   ac_cpp_err=yes
13008 fi
13009 if test -z "$ac_cpp_err"; then
13010   # Broken: success on invalid input.
13011 continue
13012 else
13013   echo "$as_me: failed program was:" >&5
13014 sed 's/^/| /' conftest.$ac_ext >&5
13015
13016   # Passes both tests.
13017 ac_preproc_ok=:
13018 break
13019 fi
13020
13021 rm -f conftest.err conftest.$ac_ext
13022
13023 done
13024 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13025 rm -f conftest.err conftest.$ac_ext
13026 if $ac_preproc_ok; then
13027   break
13028 fi
13029
13030     done
13031     ac_cv_prog_CXXCPP=$CXXCPP
13032
13033 fi
13034   CXXCPP=$ac_cv_prog_CXXCPP
13035 else
13036   ac_cv_prog_CXXCPP=$CXXCPP
13037 fi
13038 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
13039 echo "${ECHO_T}$CXXCPP" >&6; }
13040 ac_preproc_ok=false
13041 for ac_cxx_preproc_warn_flag in '' yes
13042 do
13043   # Use a header file that comes with gcc, so configuring glibc
13044   # with a fresh cross-compiler works.
13045   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13046   # <limits.h> exists even on freestanding compilers.
13047   # On the NeXT, cc -E runs the code through the compiler's parser,
13048   # not just through cpp. "Syntax error" is here to catch this case.
13049   cat >conftest.$ac_ext <<_ACEOF
13050 /* confdefs.h.  */
13051 _ACEOF
13052 cat confdefs.h >>conftest.$ac_ext
13053 cat >>conftest.$ac_ext <<_ACEOF
13054 /* end confdefs.h.  */
13055 #ifdef __STDC__
13056 # include <limits.h>
13057 #else
13058 # include <assert.h>
13059 #endif
13060                      Syntax error
13061 _ACEOF
13062 if { (ac_try="$ac_cpp conftest.$ac_ext"
13063 case "(($ac_try" in
13064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13065   *) ac_try_echo=$ac_try;;
13066 esac
13067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13068   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13069   ac_status=$?
13070   grep -v '^ *+' conftest.er1 >conftest.err
13071   rm -f conftest.er1
13072   cat conftest.err >&5
13073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13074   (exit $ac_status); } >/dev/null; then
13075   if test -s conftest.err; then
13076     ac_cpp_err=$ac_cxx_preproc_warn_flag
13077     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13078   else
13079     ac_cpp_err=
13080   fi
13081 else
13082   ac_cpp_err=yes
13083 fi
13084 if test -z "$ac_cpp_err"; then
13085   :
13086 else
13087   echo "$as_me: failed program was:" >&5
13088 sed 's/^/| /' conftest.$ac_ext >&5
13089
13090   # Broken: fails on valid input.
13091 continue
13092 fi
13093
13094 rm -f conftest.err conftest.$ac_ext
13095
13096   # OK, works on sane cases.  Now check whether nonexistent headers
13097   # can be detected and how.
13098   cat >conftest.$ac_ext <<_ACEOF
13099 /* confdefs.h.  */
13100 _ACEOF
13101 cat confdefs.h >>conftest.$ac_ext
13102 cat >>conftest.$ac_ext <<_ACEOF
13103 /* end confdefs.h.  */
13104 #include <ac_nonexistent.h>
13105 _ACEOF
13106 if { (ac_try="$ac_cpp conftest.$ac_ext"
13107 case "(($ac_try" in
13108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13109   *) ac_try_echo=$ac_try;;
13110 esac
13111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13112   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13113   ac_status=$?
13114   grep -v '^ *+' conftest.er1 >conftest.err
13115   rm -f conftest.er1
13116   cat conftest.err >&5
13117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118   (exit $ac_status); } >/dev/null; then
13119   if test -s conftest.err; then
13120     ac_cpp_err=$ac_cxx_preproc_warn_flag
13121     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13122   else
13123     ac_cpp_err=
13124   fi
13125 else
13126   ac_cpp_err=yes
13127 fi
13128 if test -z "$ac_cpp_err"; then
13129   # Broken: success on invalid input.
13130 continue
13131 else
13132   echo "$as_me: failed program was:" >&5
13133 sed 's/^/| /' conftest.$ac_ext >&5
13134
13135   # Passes both tests.
13136 ac_preproc_ok=:
13137 break
13138 fi
13139
13140 rm -f conftest.err conftest.$ac_ext
13141
13142 done
13143 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13144 rm -f conftest.err conftest.$ac_ext
13145 if $ac_preproc_ok; then
13146   :
13147 else
13148   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13149 See \`config.log' for more details." >&5
13150 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13151 See \`config.log' for more details." >&2;}
13152    { (exit 1); exit 1; }; }
13153 fi
13154
13155 ac_ext=cpp
13156 ac_cpp='$CXXCPP $CPPFLAGS'
13157 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13158 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13159 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13160
13161 fi
13162
13163
13164 ac_ext=f
13165 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13166 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13167 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13168 if test -n "$ac_tool_prefix"; then
13169   for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
13170   do
13171     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13172 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13173 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13175 if test "${ac_cv_prog_F77+set}" = set; then
13176   echo $ECHO_N "(cached) $ECHO_C" >&6
13177 else
13178   if test -n "$F77"; then
13179   ac_cv_prog_F77="$F77" # Let the user override the test.
13180 else
13181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13182 for as_dir in $PATH
13183 do
13184   IFS=$as_save_IFS
13185   test -z "$as_dir" && as_dir=.
13186   for ac_exec_ext in '' $ac_executable_extensions; do
13187   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13188     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13189     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13190     break 2
13191   fi
13192 done
13193 done
13194 IFS=$as_save_IFS
13195
13196 fi
13197 fi
13198 F77=$ac_cv_prog_F77
13199 if test -n "$F77"; then
13200   { echo "$as_me:$LINENO: result: $F77" >&5
13201 echo "${ECHO_T}$F77" >&6; }
13202 else
13203   { echo "$as_me:$LINENO: result: no" >&5
13204 echo "${ECHO_T}no" >&6; }
13205 fi
13206
13207
13208     test -n "$F77" && break
13209   done
13210 fi
13211 if test -z "$F77"; then
13212   ac_ct_F77=$F77
13213   for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
13214 do
13215   # Extract the first word of "$ac_prog", so it can be a program name with args.
13216 set dummy $ac_prog; ac_word=$2
13217 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13219 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13220   echo $ECHO_N "(cached) $ECHO_C" >&6
13221 else
13222   if test -n "$ac_ct_F77"; then
13223   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13224 else
13225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13226 for as_dir in $PATH
13227 do
13228   IFS=$as_save_IFS
13229   test -z "$as_dir" && as_dir=.
13230   for ac_exec_ext in '' $ac_executable_extensions; do
13231   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13232     ac_cv_prog_ac_ct_F77="$ac_prog"
13233     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13234     break 2
13235   fi
13236 done
13237 done
13238 IFS=$as_save_IFS
13239
13240 fi
13241 fi
13242 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13243 if test -n "$ac_ct_F77"; then
13244   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13245 echo "${ECHO_T}$ac_ct_F77" >&6; }
13246 else
13247   { echo "$as_me:$LINENO: result: no" >&5
13248 echo "${ECHO_T}no" >&6; }
13249 fi
13250
13251
13252   test -n "$ac_ct_F77" && break
13253 done
13254
13255   if test "x$ac_ct_F77" = x; then
13256     F77=""
13257   else
13258     case $cross_compiling:$ac_tool_warned in
13259 yes:)
13260 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13261 whose name does not start with the host triplet.  If you think this
13262 configuration is useful to you, please write to autoconf@gnu.org." >&5
13263 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13264 whose name does not start with the host triplet.  If you think this
13265 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13266 ac_tool_warned=yes ;;
13267 esac
13268     F77=$ac_ct_F77
13269   fi
13270 fi
13271
13272
13273 # Provide some information about the compiler.
13274 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13275 ac_compiler=`set X $ac_compile; echo $2`
13276 { (ac_try="$ac_compiler --version >&5"
13277 case "(($ac_try" in
13278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13279   *) ac_try_echo=$ac_try;;
13280 esac
13281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13282   (eval "$ac_compiler --version >&5") 2>&5
13283   ac_status=$?
13284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13285   (exit $ac_status); }
13286 { (ac_try="$ac_compiler -v >&5"
13287 case "(($ac_try" in
13288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13289   *) ac_try_echo=$ac_try;;
13290 esac
13291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13292   (eval "$ac_compiler -v >&5") 2>&5
13293   ac_status=$?
13294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13295   (exit $ac_status); }
13296 { (ac_try="$ac_compiler -V >&5"
13297 case "(($ac_try" in
13298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13299   *) ac_try_echo=$ac_try;;
13300 esac
13301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13302   (eval "$ac_compiler -V >&5") 2>&5
13303   ac_status=$?
13304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13305   (exit $ac_status); }
13306 rm -f a.out
13307
13308 # If we don't use `.F' as extension, the preprocessor is not run on the
13309 # input file.  (Note that this only needs to work for GNU compilers.)
13310 ac_save_ext=$ac_ext
13311 ac_ext=F
13312 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13313 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13314 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13315   echo $ECHO_N "(cached) $ECHO_C" >&6
13316 else
13317   cat >conftest.$ac_ext <<_ACEOF
13318       program main
13319 #ifndef __GNUC__
13320        choke me
13321 #endif
13322
13323       end
13324 _ACEOF
13325 rm -f conftest.$ac_objext
13326 if { (ac_try="$ac_compile"
13327 case "(($ac_try" in
13328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13329   *) ac_try_echo=$ac_try;;
13330 esac
13331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13332   (eval "$ac_compile") 2>conftest.er1
13333   ac_status=$?
13334   grep -v '^ *+' conftest.er1 >conftest.err
13335   rm -f conftest.er1
13336   cat conftest.err >&5
13337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13338   (exit $ac_status); } &&
13339          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13340   { (case "(($ac_try" in
13341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13342   *) ac_try_echo=$ac_try;;
13343 esac
13344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13345   (eval "$ac_try") 2>&5
13346   ac_status=$?
13347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13348   (exit $ac_status); }; } &&
13349          { ac_try='test -s conftest.$ac_objext'
13350   { (case "(($ac_try" in
13351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13352   *) ac_try_echo=$ac_try;;
13353 esac
13354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13355   (eval "$ac_try") 2>&5
13356   ac_status=$?
13357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13358   (exit $ac_status); }; }; then
13359   ac_compiler_gnu=yes
13360 else
13361   echo "$as_me: failed program was:" >&5
13362 sed 's/^/| /' conftest.$ac_ext >&5
13363
13364         ac_compiler_gnu=no
13365 fi
13366
13367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13368 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13369
13370 fi
13371 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13372 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13373 ac_ext=$ac_save_ext
13374 ac_test_FFLAGS=${FFLAGS+set}
13375 ac_save_FFLAGS=$FFLAGS
13376 FFLAGS=
13377 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13378 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13379 if test "${ac_cv_prog_f77_g+set}" = set; then
13380   echo $ECHO_N "(cached) $ECHO_C" >&6
13381 else
13382   FFLAGS=-g
13383 cat >conftest.$ac_ext <<_ACEOF
13384       program main
13385
13386       end
13387 _ACEOF
13388 rm -f conftest.$ac_objext
13389 if { (ac_try="$ac_compile"
13390 case "(($ac_try" in
13391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13392   *) ac_try_echo=$ac_try;;
13393 esac
13394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13395   (eval "$ac_compile") 2>conftest.er1
13396   ac_status=$?
13397   grep -v '^ *+' conftest.er1 >conftest.err
13398   rm -f conftest.er1
13399   cat conftest.err >&5
13400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13401   (exit $ac_status); } &&
13402          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13403   { (case "(($ac_try" in
13404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13405   *) ac_try_echo=$ac_try;;
13406 esac
13407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13408   (eval "$ac_try") 2>&5
13409   ac_status=$?
13410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13411   (exit $ac_status); }; } &&
13412          { ac_try='test -s conftest.$ac_objext'
13413   { (case "(($ac_try" in
13414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13415   *) ac_try_echo=$ac_try;;
13416 esac
13417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13418   (eval "$ac_try") 2>&5
13419   ac_status=$?
13420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13421   (exit $ac_status); }; }; then
13422   ac_cv_prog_f77_g=yes
13423 else
13424   echo "$as_me: failed program was:" >&5
13425 sed 's/^/| /' conftest.$ac_ext >&5
13426
13427         ac_cv_prog_f77_g=no
13428 fi
13429
13430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13431
13432 fi
13433 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13434 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13435 if test "$ac_test_FFLAGS" = set; then
13436   FFLAGS=$ac_save_FFLAGS
13437 elif test $ac_cv_prog_f77_g = yes; then
13438   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13439     FFLAGS="-g -O2"
13440   else
13441     FFLAGS="-g"
13442   fi
13443 else
13444   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13445     FFLAGS="-O2"
13446   else
13447     FFLAGS=
13448   fi
13449 fi
13450
13451 G77=`test $ac_compiler_gnu = yes && echo yes`
13452 ac_ext=c
13453 ac_cpp='$CPP $CPPFLAGS'
13454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13457
13458
13459
13460 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13461
13462 # find the maximum length of command line arguments
13463 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13464 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13465 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13466   echo $ECHO_N "(cached) $ECHO_C" >&6
13467 else
13468     i=0
13469   teststring="ABCD"
13470
13471   case $build_os in
13472   msdosdjgpp*)
13473     # On DJGPP, this test can blow up pretty badly due to problems in libc
13474     # (any single argument exceeding 2000 bytes causes a buffer overrun
13475     # during glob expansion).  Even if it were fixed, the result of this
13476     # check would be larger than it should be.
13477     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
13478     ;;
13479
13480   gnu*)
13481     # Under GNU Hurd, this test is not required because there is
13482     # no limit to the length of command line arguments.
13483     # Libtool will interpret -1 as no limit whatsoever
13484     lt_cv_sys_max_cmd_len=-1;
13485     ;;
13486
13487   cygwin* | mingw*)
13488     # On Win9x/ME, this test blows up -- it succeeds, but takes
13489     # about 5 minutes as the teststring grows exponentially.
13490     # Worse, since 9x/ME are not pre-emptively multitasking,
13491     # you end up with a "frozen" computer, even though with patience
13492     # the test eventually succeeds (with a max line length of 256k).
13493     # Instead, let's just punt: use the minimum linelength reported by
13494     # all of the supported platforms: 8192 (on NT/2K/XP).
13495     lt_cv_sys_max_cmd_len=8192;
13496     ;;
13497
13498   amigaos*)
13499     # On AmigaOS with pdksh, this test takes hours, literally.
13500     # So we just punt and use a minimum line length of 8192.
13501     lt_cv_sys_max_cmd_len=8192;
13502     ;;
13503
13504   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13505     # This has been around since 386BSD, at least.  Likely further.
13506     if test -x /sbin/sysctl; then
13507       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13508     elif test -x /usr/sbin/sysctl; then
13509       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13510     else
13511       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
13512     fi
13513     # And add a safety zone
13514     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13515     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13516     ;;
13517
13518   interix*)
13519     # We know the value 262144 and hardcode it with a safety zone (like BSD)
13520     lt_cv_sys_max_cmd_len=196608
13521     ;;
13522
13523   osf*)
13524     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13525     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13526     # nice to cause kernel panics so lets avoid the loop below.
13527     # First set a reasonable default.
13528     lt_cv_sys_max_cmd_len=16384
13529     #
13530     if test -x /sbin/sysconfig; then
13531       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13532         *1*) lt_cv_sys_max_cmd_len=-1 ;;
13533       esac
13534     fi
13535     ;;
13536   sco3.2v5*)
13537     lt_cv_sys_max_cmd_len=102400
13538     ;;
13539   sysv5* | sco5v6* | sysv4.2uw2*)
13540     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13541     if test -n "$kargmax"; then
13542       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
13543     else
13544       lt_cv_sys_max_cmd_len=32768
13545     fi
13546     ;;
13547   *)
13548     # If test is not a shell built-in, we'll probably end up computing a
13549     # maximum length that is only half of the actual maximum length, but
13550     # we can't tell.
13551     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13552     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13553                = "XX$teststring") >/dev/null 2>&1 &&
13554             new_result=`expr "X$teststring" : ".*" 2>&1` &&
13555             lt_cv_sys_max_cmd_len=$new_result &&
13556             test $i != 17 # 1/2 MB should be enough
13557     do
13558       i=`expr $i + 1`
13559       teststring=$teststring$teststring
13560     done
13561     teststring=
13562     # Add a significant safety factor because C++ compilers can tack on massive
13563     # amounts of additional arguments before passing them to the linker.
13564     # It appears as though 1/2 is a usable value.
13565     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13566     ;;
13567   esac
13568
13569 fi
13570
13571 if test -n $lt_cv_sys_max_cmd_len ; then
13572   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13573 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13574 else
13575   { echo "$as_me:$LINENO: result: none" >&5
13576 echo "${ECHO_T}none" >&6; }
13577 fi
13578
13579
13580
13581
13582 # Check for command to grab the raw symbol name followed by C symbol from nm.
13583 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13584 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13585 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13586   echo $ECHO_N "(cached) $ECHO_C" >&6
13587 else
13588
13589 # These are sane defaults that work on at least a few old systems.
13590 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
13591
13592 # Character class describing NM global symbol codes.
13593 symcode='[BCDEGRST]'
13594
13595 # Regexp to match symbols that can be accessed directly from C.
13596 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13597
13598 # Transform an extracted symbol line into a proper C declaration
13599 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13600
13601 # Transform an extracted symbol line into symbol name and symbol address
13602 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'"
13603
13604 # Define system-specific variables.
13605 case $host_os in
13606 aix*)
13607   symcode='[BCDT]'
13608   ;;
13609 cygwin* | mingw* | pw32*)
13610   symcode='[ABCDGISTW]'
13611   ;;
13612 hpux*) # Its linker distinguishes data from code symbols
13613   if test "$host_cpu" = ia64; then
13614     symcode='[ABCDEGRST]'
13615   fi
13616   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13617   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'"
13618   ;;
13619 linux*)
13620   if test "$host_cpu" = ia64; then
13621     symcode='[ABCDGIRSTW]'
13622     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13623     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'"
13624   fi
13625   ;;
13626 irix* | nonstopux*)
13627   symcode='[BCDEGRST]'
13628   ;;
13629 osf*)
13630   symcode='[BCDEGQRST]'
13631   ;;
13632 solaris*)
13633   symcode='[BDRT]'
13634   ;;
13635 sco3.2v5*)
13636   symcode='[DT]'
13637   ;;
13638 sysv4.2uw2*)
13639   symcode='[DT]'
13640   ;;
13641 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13642   symcode='[ABDT]'
13643   ;;
13644 sysv4)
13645   symcode='[DFNSTU]'
13646   ;;
13647 esac
13648
13649 # Handle CRLF in mingw tool chain
13650 opt_cr=
13651 case $build_os in
13652 mingw*)
13653   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13654   ;;
13655 esac
13656
13657 # If we're using GNU nm, then use its standard symbol codes.
13658 case `$NM -V 2>&1` in
13659 *GNU* | *'with BFD'*)
13660   symcode='[ABCDGIRSTW]' ;;
13661 esac
13662
13663 # Try without a prefix undercore, then with it.
13664 for ac_symprfx in "" "_"; do
13665
13666   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13667   symxfrm="\\1 $ac_symprfx\\2 \\2"
13668
13669   # Write the raw and C identifiers.
13670   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13671
13672   # Check to see that the pipe works correctly.
13673   pipe_works=no
13674
13675   rm -f conftest*
13676   cat > conftest.$ac_ext <<EOF
13677 #ifdef __cplusplus
13678 extern "C" {
13679 #endif
13680 char nm_test_var;
13681 void nm_test_func(){}
13682 #ifdef __cplusplus
13683 }
13684 #endif
13685 int main(){nm_test_var='a';nm_test_func();return(0);}
13686 EOF
13687
13688   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13689   (eval $ac_compile) 2>&5
13690   ac_status=$?
13691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13692   (exit $ac_status); }; then
13693     # Now try to grab the symbols.
13694     nlist=conftest.nm
13695     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13696   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13697   ac_status=$?
13698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13699   (exit $ac_status); } && test -s "$nlist"; then
13700       # Try sorting and uniquifying the output.
13701       if sort "$nlist" | uniq > "$nlist"T; then
13702         mv -f "$nlist"T "$nlist"
13703       else
13704         rm -f "$nlist"T
13705       fi
13706
13707       # Make sure that we snagged all the symbols we need.
13708       if grep ' nm_test_var$' "$nlist" >/dev/null; then
13709         if grep ' nm_test_func$' "$nlist" >/dev/null; then
13710           cat <<EOF > conftest.$ac_ext
13711 #ifdef __cplusplus
13712 extern "C" {
13713 #endif
13714
13715 EOF
13716           # Now generate the symbol file.
13717           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13718
13719           cat <<EOF >> conftest.$ac_ext
13720 #if defined (__STDC__) && __STDC__
13721 # define lt_ptr_t void *
13722 #else
13723 # define lt_ptr_t char *
13724 # define const
13725 #endif
13726
13727 /* The mapping between symbol names and symbols. */
13728 const struct {
13729   const char *name;
13730   lt_ptr_t address;
13731 }
13732 lt_preloaded_symbols[] =
13733 {
13734 EOF
13735           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13736           cat <<\EOF >> conftest.$ac_ext
13737   {0, (lt_ptr_t) 0}
13738 };
13739
13740 #ifdef __cplusplus
13741 }
13742 #endif
13743 EOF
13744           # Now try linking the two files.
13745           mv conftest.$ac_objext conftstm.$ac_objext
13746           lt_save_LIBS="$LIBS"
13747           lt_save_CFLAGS="$CFLAGS"
13748           LIBS="conftstm.$ac_objext"
13749           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13750           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13751   (eval $ac_link) 2>&5
13752   ac_status=$?
13753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13754   (exit $ac_status); } && test -s conftest${ac_exeext}; then
13755             pipe_works=yes
13756           fi
13757           LIBS="$lt_save_LIBS"
13758           CFLAGS="$lt_save_CFLAGS"
13759         else
13760           echo "cannot find nm_test_func in $nlist" >&5
13761         fi
13762       else
13763         echo "cannot find nm_test_var in $nlist" >&5
13764       fi
13765     else
13766       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13767     fi
13768   else
13769     echo "$progname: failed program was:" >&5
13770     cat conftest.$ac_ext >&5
13771   fi
13772   rm -f conftest* conftst*
13773
13774   # Do not use the global_symbol_pipe unless it works.
13775   if test "$pipe_works" = yes; then
13776     break
13777   else
13778     lt_cv_sys_global_symbol_pipe=
13779   fi
13780 done
13781
13782 fi
13783
13784 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13785   lt_cv_sys_global_symbol_to_cdecl=
13786 fi
13787 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13788   { echo "$as_me:$LINENO: result: failed" >&5
13789 echo "${ECHO_T}failed" >&6; }
13790 else
13791   { echo "$as_me:$LINENO: result: ok" >&5
13792 echo "${ECHO_T}ok" >&6; }
13793 fi
13794
13795 { echo "$as_me:$LINENO: checking for objdir" >&5
13796 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
13797 if test "${lt_cv_objdir+set}" = set; then
13798   echo $ECHO_N "(cached) $ECHO_C" >&6
13799 else
13800   rm -f .libs 2>/dev/null
13801 mkdir .libs 2>/dev/null
13802 if test -d .libs; then
13803   lt_cv_objdir=.libs
13804 else
13805   # MS-DOS does not allow filenames that begin with a dot.
13806   lt_cv_objdir=_libs
13807 fi
13808 rmdir .libs 2>/dev/null
13809 fi
13810 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13811 echo "${ECHO_T}$lt_cv_objdir" >&6; }
13812 objdir=$lt_cv_objdir
13813
13814
13815
13816
13817
13818 case $host_os in
13819 aix3*)
13820   # AIX sometimes has problems with the GCC collect2 program.  For some
13821   # reason, if we set the COLLECT_NAMES environment variable, the problems
13822   # vanish in a puff of smoke.
13823   if test "X${COLLECT_NAMES+set}" != Xset; then
13824     COLLECT_NAMES=
13825     export COLLECT_NAMES
13826   fi
13827   ;;
13828 esac
13829
13830 # Sed substitution that helps us do robust quoting.  It backslashifies
13831 # metacharacters that are still active within double-quoted strings.
13832 Xsed='sed -e 1s/^X//'
13833 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13834
13835 # Same as above, but do not quote variable references.
13836 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13837
13838 # Sed substitution to delay expansion of an escaped shell variable in a
13839 # double_quote_subst'ed string.
13840 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13841
13842 # Sed substitution to avoid accidental globbing in evaled expressions
13843 no_glob_subst='s/\*/\\\*/g'
13844
13845 # Constants:
13846 rm="rm -f"
13847
13848 # Global variables:
13849 default_ofile=mklib
13850 can_build_shared=yes
13851
13852 # All known linkers require a `.a' archive for static linking (except MSVC,
13853 # which needs '.lib').
13854 libext=a
13855 ltmain="$ac_aux_dir/ltmain.sh"
13856 ofile="$default_ofile"
13857 with_gnu_ld="$lt_cv_prog_gnu_ld"
13858
13859 if test -n "$ac_tool_prefix"; then
13860   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13861 set dummy ${ac_tool_prefix}ar; ac_word=$2
13862 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13864 if test "${ac_cv_prog_AR+set}" = set; then
13865   echo $ECHO_N "(cached) $ECHO_C" >&6
13866 else
13867   if test -n "$AR"; then
13868   ac_cv_prog_AR="$AR" # Let the user override the test.
13869 else
13870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13871 for as_dir in $PATH
13872 do
13873   IFS=$as_save_IFS
13874   test -z "$as_dir" && as_dir=.
13875   for ac_exec_ext in '' $ac_executable_extensions; do
13876   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13877     ac_cv_prog_AR="${ac_tool_prefix}ar"
13878     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13879     break 2
13880   fi
13881 done
13882 done
13883 IFS=$as_save_IFS
13884
13885 fi
13886 fi
13887 AR=$ac_cv_prog_AR
13888 if test -n "$AR"; then
13889   { echo "$as_me:$LINENO: result: $AR" >&5
13890 echo "${ECHO_T}$AR" >&6; }
13891 else
13892   { echo "$as_me:$LINENO: result: no" >&5
13893 echo "${ECHO_T}no" >&6; }
13894 fi
13895
13896
13897 fi
13898 if test -z "$ac_cv_prog_AR"; then
13899   ac_ct_AR=$AR
13900   # Extract the first word of "ar", so it can be a program name with args.
13901 set dummy ar; ac_word=$2
13902 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13904 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13905   echo $ECHO_N "(cached) $ECHO_C" >&6
13906 else
13907   if test -n "$ac_ct_AR"; then
13908   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13909 else
13910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13911 for as_dir in $PATH
13912 do
13913   IFS=$as_save_IFS
13914   test -z "$as_dir" && as_dir=.
13915   for ac_exec_ext in '' $ac_executable_extensions; do
13916   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13917     ac_cv_prog_ac_ct_AR="ar"
13918     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13919     break 2
13920   fi
13921 done
13922 done
13923 IFS=$as_save_IFS
13924
13925 fi
13926 fi
13927 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13928 if test -n "$ac_ct_AR"; then
13929   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13930 echo "${ECHO_T}$ac_ct_AR" >&6; }
13931 else
13932   { echo "$as_me:$LINENO: result: no" >&5
13933 echo "${ECHO_T}no" >&6; }
13934 fi
13935
13936   if test "x$ac_ct_AR" = x; then
13937     AR="false"
13938   else
13939     case $cross_compiling:$ac_tool_warned in
13940 yes:)
13941 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13942 whose name does not start with the host triplet.  If you think this
13943 configuration is useful to you, please write to autoconf@gnu.org." >&5
13944 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13945 whose name does not start with the host triplet.  If you think this
13946 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13947 ac_tool_warned=yes ;;
13948 esac
13949     AR=$ac_ct_AR
13950   fi
13951 else
13952   AR="$ac_cv_prog_AR"
13953 fi
13954
13955 if test -n "$ac_tool_prefix"; then
13956   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13957 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13958 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13960 if test "${ac_cv_prog_RANLIB+set}" = set; then
13961   echo $ECHO_N "(cached) $ECHO_C" >&6
13962 else
13963   if test -n "$RANLIB"; then
13964   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13965 else
13966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13967 for as_dir in $PATH
13968 do
13969   IFS=$as_save_IFS
13970   test -z "$as_dir" && as_dir=.
13971   for ac_exec_ext in '' $ac_executable_extensions; do
13972   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13973     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13974     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13975     break 2
13976   fi
13977 done
13978 done
13979 IFS=$as_save_IFS
13980
13981 fi
13982 fi
13983 RANLIB=$ac_cv_prog_RANLIB
13984 if test -n "$RANLIB"; then
13985   { echo "$as_me:$LINENO: result: $RANLIB" >&5
13986 echo "${ECHO_T}$RANLIB" >&6; }
13987 else
13988   { echo "$as_me:$LINENO: result: no" >&5
13989 echo "${ECHO_T}no" >&6; }
13990 fi
13991
13992
13993 fi
13994 if test -z "$ac_cv_prog_RANLIB"; then
13995   ac_ct_RANLIB=$RANLIB
13996   # Extract the first word of "ranlib", so it can be a program name with args.
13997 set dummy ranlib; ac_word=$2
13998 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14000 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14001   echo $ECHO_N "(cached) $ECHO_C" >&6
14002 else
14003   if test -n "$ac_ct_RANLIB"; then
14004   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14005 else
14006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14007 for as_dir in $PATH
14008 do
14009   IFS=$as_save_IFS
14010   test -z "$as_dir" && as_dir=.
14011   for ac_exec_ext in '' $ac_executable_extensions; do
14012   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14013     ac_cv_prog_ac_ct_RANLIB="ranlib"
14014     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14015     break 2
14016   fi
14017 done
14018 done
14019 IFS=$as_save_IFS
14020
14021 fi
14022 fi
14023 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14024 if test -n "$ac_ct_RANLIB"; then
14025   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14026 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14027 else
14028   { echo "$as_me:$LINENO: result: no" >&5
14029 echo "${ECHO_T}no" >&6; }
14030 fi
14031
14032   if test "x$ac_ct_RANLIB" = x; then
14033     RANLIB=":"
14034   else
14035     case $cross_compiling:$ac_tool_warned in
14036 yes:)
14037 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14038 whose name does not start with the host triplet.  If you think this
14039 configuration is useful to you, please write to autoconf@gnu.org." >&5
14040 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14041 whose name does not start with the host triplet.  If you think this
14042 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14043 ac_tool_warned=yes ;;
14044 esac
14045     RANLIB=$ac_ct_RANLIB
14046   fi
14047 else
14048   RANLIB="$ac_cv_prog_RANLIB"
14049 fi
14050
14051 if test -n "$ac_tool_prefix"; then
14052   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14053 set dummy ${ac_tool_prefix}strip; ac_word=$2
14054 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14056 if test "${ac_cv_prog_STRIP+set}" = set; then
14057   echo $ECHO_N "(cached) $ECHO_C" >&6
14058 else
14059   if test -n "$STRIP"; then
14060   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14061 else
14062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14063 for as_dir in $PATH
14064 do
14065   IFS=$as_save_IFS
14066   test -z "$as_dir" && as_dir=.
14067   for ac_exec_ext in '' $ac_executable_extensions; do
14068   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14069     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14070     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14071     break 2
14072   fi
14073 done
14074 done
14075 IFS=$as_save_IFS
14076
14077 fi
14078 fi
14079 STRIP=$ac_cv_prog_STRIP
14080 if test -n "$STRIP"; then
14081   { echo "$as_me:$LINENO: result: $STRIP" >&5
14082 echo "${ECHO_T}$STRIP" >&6; }
14083 else
14084   { echo "$as_me:$LINENO: result: no" >&5
14085 echo "${ECHO_T}no" >&6; }
14086 fi
14087
14088
14089 fi
14090 if test -z "$ac_cv_prog_STRIP"; then
14091   ac_ct_STRIP=$STRIP
14092   # Extract the first word of "strip", so it can be a program name with args.
14093 set dummy strip; ac_word=$2
14094 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14096 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14097   echo $ECHO_N "(cached) $ECHO_C" >&6
14098 else
14099   if test -n "$ac_ct_STRIP"; then
14100   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14101 else
14102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14103 for as_dir in $PATH
14104 do
14105   IFS=$as_save_IFS
14106   test -z "$as_dir" && as_dir=.
14107   for ac_exec_ext in '' $ac_executable_extensions; do
14108   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14109     ac_cv_prog_ac_ct_STRIP="strip"
14110     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14111     break 2
14112   fi
14113 done
14114 done
14115 IFS=$as_save_IFS
14116
14117 fi
14118 fi
14119 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14120 if test -n "$ac_ct_STRIP"; then
14121   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14122 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14123 else
14124   { echo "$as_me:$LINENO: result: no" >&5
14125 echo "${ECHO_T}no" >&6; }
14126 fi
14127
14128   if test "x$ac_ct_STRIP" = x; then
14129     STRIP=":"
14130   else
14131     case $cross_compiling:$ac_tool_warned in
14132 yes:)
14133 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14134 whose name does not start with the host triplet.  If you think this
14135 configuration is useful to you, please write to autoconf@gnu.org." >&5
14136 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14137 whose name does not start with the host triplet.  If you think this
14138 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14139 ac_tool_warned=yes ;;
14140 esac
14141     STRIP=$ac_ct_STRIP
14142   fi
14143 else
14144   STRIP="$ac_cv_prog_STRIP"
14145 fi
14146
14147
14148 old_CC="$CC"
14149 old_CFLAGS="$CFLAGS"
14150
14151 # Set sane defaults for various variables
14152 test -z "$AR" && AR=ar
14153 test -z "$AR_FLAGS" && AR_FLAGS=cru
14154 test -z "$AS" && AS=as
14155 test -z "$CC" && CC=cc
14156 test -z "$LTCC" && LTCC=$CC
14157 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14158 test -z "$DLLTOOL" && DLLTOOL=dlltool
14159 test -z "$LD" && LD=ld
14160 test -z "$LN_S" && LN_S="ln -s"
14161 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14162 test -z "$NM" && NM=nm
14163 test -z "$SED" && SED=sed
14164 test -z "$OBJDUMP" && OBJDUMP=objdump
14165 test -z "$RANLIB" && RANLIB=:
14166 test -z "$STRIP" && STRIP=:
14167 test -z "$ac_objext" && ac_objext=o
14168
14169 # Determine commands to create old-style static archives.
14170 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14171 old_postinstall_cmds='chmod 644 $oldlib'
14172 old_postuninstall_cmds=
14173
14174 if test -n "$RANLIB"; then
14175   case $host_os in
14176   openbsd*)
14177     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14178     ;;
14179   *)
14180     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14181     ;;
14182   esac
14183   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14184 fi
14185
14186 for cc_temp in $compiler""; do
14187   case $cc_temp in
14188     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14189     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14190     \-*) ;;
14191     *) break;;
14192   esac
14193 done
14194 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14195
14196
14197 # Only perform the check for file, if the check method requires it
14198 case $deplibs_check_method in
14199 file_magic*)
14200   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14201     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14202 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14203 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14204   echo $ECHO_N "(cached) $ECHO_C" >&6
14205 else
14206   case $MAGIC_CMD in
14207 [\\/*] |  ?:[\\/]*)
14208   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14209   ;;
14210 *)
14211   lt_save_MAGIC_CMD="$MAGIC_CMD"
14212   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14213   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14214   for ac_dir in $ac_dummy; do
14215     IFS="$lt_save_ifs"
14216     test -z "$ac_dir" && ac_dir=.
14217     if test -f $ac_dir/${ac_tool_prefix}file; then
14218       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14219       if test -n "$file_magic_test_file"; then
14220         case $deplibs_check_method in
14221         "file_magic "*)
14222           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14223           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14224           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14225             $EGREP "$file_magic_regex" > /dev/null; then
14226             :
14227           else
14228             cat <<EOF 1>&2
14229
14230 *** Warning: the command libtool uses to detect shared libraries,
14231 *** $file_magic_cmd, produces output that libtool cannot recognize.
14232 *** The result is that libtool may fail to recognize shared libraries
14233 *** as such.  This will affect the creation of libtool libraries that
14234 *** depend on shared libraries, but programs linked with such libtool
14235 *** libraries will work regardless of this problem.  Nevertheless, you
14236 *** may want to report the problem to your system manager and/or to
14237 *** bug-libtool@gnu.org
14238
14239 EOF
14240           fi ;;
14241         esac
14242       fi
14243       break
14244     fi
14245   done
14246   IFS="$lt_save_ifs"
14247   MAGIC_CMD="$lt_save_MAGIC_CMD"
14248   ;;
14249 esac
14250 fi
14251
14252 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14253 if test -n "$MAGIC_CMD"; then
14254   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14255 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14256 else
14257   { echo "$as_me:$LINENO: result: no" >&5
14258 echo "${ECHO_T}no" >&6; }
14259 fi
14260
14261 if test -z "$lt_cv_path_MAGIC_CMD"; then
14262   if test -n "$ac_tool_prefix"; then
14263     { echo "$as_me:$LINENO: checking for file" >&5
14264 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14265 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14266   echo $ECHO_N "(cached) $ECHO_C" >&6
14267 else
14268   case $MAGIC_CMD in
14269 [\\/*] |  ?:[\\/]*)
14270   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14271   ;;
14272 *)
14273   lt_save_MAGIC_CMD="$MAGIC_CMD"
14274   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14275   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14276   for ac_dir in $ac_dummy; do
14277     IFS="$lt_save_ifs"
14278     test -z "$ac_dir" && ac_dir=.
14279     if test -f $ac_dir/file; then
14280       lt_cv_path_MAGIC_CMD="$ac_dir/file"
14281       if test -n "$file_magic_test_file"; then
14282         case $deplibs_check_method in
14283         "file_magic "*)
14284           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14285           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14286           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14287             $EGREP "$file_magic_regex" > /dev/null; then
14288             :
14289           else
14290             cat <<EOF 1>&2
14291
14292 *** Warning: the command libtool uses to detect shared libraries,
14293 *** $file_magic_cmd, produces output that libtool cannot recognize.
14294 *** The result is that libtool may fail to recognize shared libraries
14295 *** as such.  This will affect the creation of libtool libraries that
14296 *** depend on shared libraries, but programs linked with such libtool
14297 *** libraries will work regardless of this problem.  Nevertheless, you
14298 *** may want to report the problem to your system manager and/or to
14299 *** bug-libtool@gnu.org
14300
14301 EOF
14302           fi ;;
14303         esac
14304       fi
14305       break
14306     fi
14307   done
14308   IFS="$lt_save_ifs"
14309   MAGIC_CMD="$lt_save_MAGIC_CMD"
14310   ;;
14311 esac
14312 fi
14313
14314 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14315 if test -n "$MAGIC_CMD"; then
14316   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14317 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14318 else
14319   { echo "$as_me:$LINENO: result: no" >&5
14320 echo "${ECHO_T}no" >&6; }
14321 fi
14322
14323   else
14324     MAGIC_CMD=:
14325   fi
14326 fi
14327
14328   fi
14329   ;;
14330 esac
14331
14332 enable_dlopen=yes
14333 enable_win32_dll=no
14334
14335 # Check whether --enable-libtool-lock was given.
14336 if test "${enable_libtool_lock+set}" = set; then
14337   enableval=$enable_libtool_lock;
14338 fi
14339
14340 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14341
14342
14343 # Check whether --with-pic was given.
14344 if test "${with_pic+set}" = set; then
14345   withval=$with_pic; pic_mode="$withval"
14346 else
14347   pic_mode=default
14348 fi
14349
14350 test -z "$pic_mode" && pic_mode=default
14351
14352 # Use C for the default configuration in the libtool script
14353 tagname=
14354 lt_save_CC="$CC"
14355 ac_ext=c
14356 ac_cpp='$CPP $CPPFLAGS'
14357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14360
14361
14362 # Source file extension for C test sources.
14363 ac_ext=c
14364
14365 # Object file extension for compiled C test sources.
14366 objext=o
14367 objext=$objext
14368
14369 # Code to be used in simple compile tests
14370 lt_simple_compile_test_code="int some_variable = 0;\n"
14371
14372 # Code to be used in simple link tests
14373 lt_simple_link_test_code='int main(){return(0);}\n'
14374
14375
14376 # If no C compiler was specified, use CC.
14377 LTCC=${LTCC-"$CC"}
14378
14379 # If no C compiler flags were specified, use CFLAGS.
14380 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14381
14382 # Allow CC to be a program name with arguments.
14383 compiler=$CC
14384
14385
14386 # save warnings/boilerplate of simple test code
14387 ac_outfile=conftest.$ac_objext
14388 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14389 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14390 _lt_compiler_boilerplate=`cat conftest.err`
14391 $rm conftest*
14392
14393 ac_outfile=conftest.$ac_objext
14394 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14395 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14396 _lt_linker_boilerplate=`cat conftest.err`
14397 $rm conftest*
14398
14399
14400
14401 lt_prog_compiler_no_builtin_flag=
14402
14403 if test "$GCC" = yes; then
14404   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14405
14406
14407 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14408 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14409 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14410   echo $ECHO_N "(cached) $ECHO_C" >&6
14411 else
14412   lt_cv_prog_compiler_rtti_exceptions=no
14413   ac_outfile=conftest.$ac_objext
14414    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14415    lt_compiler_flag="-fno-rtti -fno-exceptions"
14416    # Insert the option either (1) after the last *FLAGS variable, or
14417    # (2) before a word containing "conftest.", or (3) at the end.
14418    # Note that $ac_compile itself does not contain backslashes and begins
14419    # with a dollar sign (not a hyphen), so the echo should work correctly.
14420    # The option is referenced via a variable to avoid confusing sed.
14421    lt_compile=`echo "$ac_compile" | $SED \
14422    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14423    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14424    -e 's:$: $lt_compiler_flag:'`
14425    (eval echo "\"\$as_me:14425: $lt_compile\"" >&5)
14426    (eval "$lt_compile" 2>conftest.err)
14427    ac_status=$?
14428    cat conftest.err >&5
14429    echo "$as_me:14429: \$? = $ac_status" >&5
14430    if (exit $ac_status) && test -s "$ac_outfile"; then
14431      # The compiler can only warn and ignore the option if not recognized
14432      # So say no if there are warnings other than the usual output.
14433      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14434      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14435      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14436        lt_cv_prog_compiler_rtti_exceptions=yes
14437      fi
14438    fi
14439    $rm conftest*
14440
14441 fi
14442 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14443 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14444
14445 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14446     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14447 else
14448     :
14449 fi
14450
14451 fi
14452
14453 lt_prog_compiler_wl=
14454 lt_prog_compiler_pic=
14455 lt_prog_compiler_static=
14456
14457 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14458 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14459
14460   if test "$GCC" = yes; then
14461     lt_prog_compiler_wl='-Wl,'
14462     lt_prog_compiler_static='-static'
14463
14464     case $host_os in
14465       aix*)
14466       # All AIX code is PIC.
14467       if test "$host_cpu" = ia64; then
14468         # AIX 5 now supports IA64 processor
14469         lt_prog_compiler_static='-Bstatic'
14470       fi
14471       ;;
14472
14473     amigaos*)
14474       # FIXME: we need at least 68020 code to build shared libraries, but
14475       # adding the `-m68020' flag to GCC prevents building anything better,
14476       # like `-m68040'.
14477       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14478       ;;
14479
14480     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14481       # PIC is the default for these OSes.
14482       ;;
14483
14484     mingw* | pw32* | os2*)
14485       # This hack is so that the source file can tell whether it is being
14486       # built for inclusion in a dll (and should export symbols for example).
14487       lt_prog_compiler_pic='-DDLL_EXPORT'
14488       ;;
14489
14490     darwin* | rhapsody*)
14491       # PIC is the default on this platform
14492       # Common symbols not allowed in MH_DYLIB files
14493       lt_prog_compiler_pic='-fno-common'
14494       ;;
14495
14496     interix3*)
14497       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14498       # Instead, we relocate shared libraries at runtime.
14499       ;;
14500
14501     msdosdjgpp*)
14502       # Just because we use GCC doesn't mean we suddenly get shared libraries
14503       # on systems that don't support them.
14504       lt_prog_compiler_can_build_shared=no
14505       enable_shared=no
14506       ;;
14507
14508     sysv4*MP*)
14509       if test -d /usr/nec; then
14510         lt_prog_compiler_pic=-Kconform_pic
14511       fi
14512       ;;
14513
14514     hpux*)
14515       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14516       # not for PA HP-UX.
14517       case $host_cpu in
14518       hppa*64*|ia64*)
14519         # +Z the default
14520         ;;
14521       *)
14522         lt_prog_compiler_pic='-fPIC'
14523         ;;
14524       esac
14525       ;;
14526
14527     *)
14528       lt_prog_compiler_pic='-fPIC'
14529       ;;
14530     esac
14531   else
14532     # PORTME Check for flag to pass linker flags through the system compiler.
14533     case $host_os in
14534     aix*)
14535       lt_prog_compiler_wl='-Wl,'
14536       if test "$host_cpu" = ia64; then
14537         # AIX 5 now supports IA64 processor
14538         lt_prog_compiler_static='-Bstatic'
14539       else
14540         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14541       fi
14542       ;;
14543       darwin*)
14544         # PIC is the default on this platform
14545         # Common symbols not allowed in MH_DYLIB files
14546        case $cc_basename in
14547          xlc*)
14548          lt_prog_compiler_pic='-qnocommon'
14549          lt_prog_compiler_wl='-Wl,'
14550          ;;
14551        esac
14552        ;;
14553
14554     mingw* | pw32* | os2*)
14555       # This hack is so that the source file can tell whether it is being
14556       # built for inclusion in a dll (and should export symbols for example).
14557       lt_prog_compiler_pic='-DDLL_EXPORT'
14558       ;;
14559
14560     hpux9* | hpux10* | hpux11*)
14561       lt_prog_compiler_wl='-Wl,'
14562       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14563       # not for PA HP-UX.
14564       case $host_cpu in
14565       hppa*64*|ia64*)
14566         # +Z the default
14567         ;;
14568       *)
14569         lt_prog_compiler_pic='+Z'
14570         ;;
14571       esac
14572       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14573       lt_prog_compiler_static='${wl}-a ${wl}archive'
14574       ;;
14575
14576     irix5* | irix6* | nonstopux*)
14577       lt_prog_compiler_wl='-Wl,'
14578       # PIC (with -KPIC) is the default.
14579       lt_prog_compiler_static='-non_shared'
14580       ;;
14581
14582     newsos6)
14583       lt_prog_compiler_pic='-KPIC'
14584       lt_prog_compiler_static='-Bstatic'
14585       ;;
14586
14587     linux*)
14588       case $cc_basename in
14589       icc* | ecc*)
14590         lt_prog_compiler_wl='-Wl,'
14591         lt_prog_compiler_pic='-KPIC'
14592         lt_prog_compiler_static='-static'
14593         ;;
14594       pgcc* | pgf77* | pgf90* | pgf95*)
14595         # Portland Group compilers (*not* the Pentium gcc compiler,
14596         # which looks to be a dead project)
14597         lt_prog_compiler_wl='-Wl,'
14598         lt_prog_compiler_pic='-fpic'
14599         lt_prog_compiler_static='-Bstatic'
14600         ;;
14601       ccc*)
14602         lt_prog_compiler_wl='-Wl,'
14603         # All Alpha code is PIC.
14604         lt_prog_compiler_static='-non_shared'
14605         ;;
14606       esac
14607       ;;
14608
14609     osf3* | osf4* | osf5*)
14610       lt_prog_compiler_wl='-Wl,'
14611       # All OSF/1 code is PIC.
14612       lt_prog_compiler_static='-non_shared'
14613       ;;
14614
14615     solaris*)
14616       lt_prog_compiler_pic='-KPIC'
14617       lt_prog_compiler_static='-Bstatic'
14618       case $cc_basename in
14619       f77* | f90* | f95*)
14620         lt_prog_compiler_wl='-Qoption ld ';;
14621       *)
14622         lt_prog_compiler_wl='-Wl,';;
14623       esac
14624       ;;
14625
14626     sunos4*)
14627       lt_prog_compiler_wl='-Qoption ld '
14628       lt_prog_compiler_pic='-PIC'
14629       lt_prog_compiler_static='-Bstatic'
14630       ;;
14631
14632     sysv4 | sysv4.2uw2* | sysv4.3*)
14633       lt_prog_compiler_wl='-Wl,'
14634       lt_prog_compiler_pic='-KPIC'
14635       lt_prog_compiler_static='-Bstatic'
14636       ;;
14637
14638     sysv4*MP*)
14639       if test -d /usr/nec ;then
14640         lt_prog_compiler_pic='-Kconform_pic'
14641         lt_prog_compiler_static='-Bstatic'
14642       fi
14643       ;;
14644
14645     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14646       lt_prog_compiler_wl='-Wl,'
14647       lt_prog_compiler_pic='-KPIC'
14648       lt_prog_compiler_static='-Bstatic'
14649       ;;
14650
14651     unicos*)
14652       lt_prog_compiler_wl='-Wl,'
14653       lt_prog_compiler_can_build_shared=no
14654       ;;
14655
14656     uts4*)
14657       lt_prog_compiler_pic='-pic'
14658       lt_prog_compiler_static='-Bstatic'
14659       ;;
14660
14661     *)
14662       lt_prog_compiler_can_build_shared=no
14663       ;;
14664     esac
14665   fi
14666
14667 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14668 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14669
14670 #
14671 # Check to make sure the PIC flag actually works.
14672 #
14673 if test -n "$lt_prog_compiler_pic"; then
14674
14675 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14676 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
14677 if test "${lt_prog_compiler_pic_works+set}" = set; then
14678   echo $ECHO_N "(cached) $ECHO_C" >&6
14679 else
14680   lt_prog_compiler_pic_works=no
14681   ac_outfile=conftest.$ac_objext
14682    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14683    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14684    # Insert the option either (1) after the last *FLAGS variable, or
14685    # (2) before a word containing "conftest.", or (3) at the end.
14686    # Note that $ac_compile itself does not contain backslashes and begins
14687    # with a dollar sign (not a hyphen), so the echo should work correctly.
14688    # The option is referenced via a variable to avoid confusing sed.
14689    lt_compile=`echo "$ac_compile" | $SED \
14690    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14691    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14692    -e 's:$: $lt_compiler_flag:'`
14693    (eval echo "\"\$as_me:14693: $lt_compile\"" >&5)
14694    (eval "$lt_compile" 2>conftest.err)
14695    ac_status=$?
14696    cat conftest.err >&5
14697    echo "$as_me:14697: \$? = $ac_status" >&5
14698    if (exit $ac_status) && test -s "$ac_outfile"; then
14699      # The compiler can only warn and ignore the option if not recognized
14700      # So say no if there are warnings other than the usual output.
14701      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14702      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14703      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14704        lt_prog_compiler_pic_works=yes
14705      fi
14706    fi
14707    $rm conftest*
14708
14709 fi
14710 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14711 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
14712
14713 if test x"$lt_prog_compiler_pic_works" = xyes; then
14714     case $lt_prog_compiler_pic in
14715      "" | " "*) ;;
14716      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14717      esac
14718 else
14719     lt_prog_compiler_pic=
14720      lt_prog_compiler_can_build_shared=no
14721 fi
14722
14723 fi
14724 case $host_os in
14725   # For platforms which do not support PIC, -DPIC is meaningless:
14726   *djgpp*)
14727     lt_prog_compiler_pic=
14728     ;;
14729   *)
14730     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14731     ;;
14732 esac
14733
14734 #
14735 # Check to make sure the static flag actually works.
14736 #
14737 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14738 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14739 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14740 if test "${lt_prog_compiler_static_works+set}" = set; then
14741   echo $ECHO_N "(cached) $ECHO_C" >&6
14742 else
14743   lt_prog_compiler_static_works=no
14744    save_LDFLAGS="$LDFLAGS"
14745    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14746    printf "$lt_simple_link_test_code" > conftest.$ac_ext
14747    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14748      # The linker can only warn and ignore the option if not recognized
14749      # So say no if there are warnings
14750      if test -s conftest.err; then
14751        # Append any errors to the config.log.
14752        cat conftest.err 1>&5
14753        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14754        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14755        if diff conftest.exp conftest.er2 >/dev/null; then
14756          lt_prog_compiler_static_works=yes
14757        fi
14758      else
14759        lt_prog_compiler_static_works=yes
14760      fi
14761    fi
14762    $rm conftest*
14763    LDFLAGS="$save_LDFLAGS"
14764
14765 fi
14766 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14767 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14768
14769 if test x"$lt_prog_compiler_static_works" = xyes; then
14770     :
14771 else
14772     lt_prog_compiler_static=
14773 fi
14774
14775
14776 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14777 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14778 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14779   echo $ECHO_N "(cached) $ECHO_C" >&6
14780 else
14781   lt_cv_prog_compiler_c_o=no
14782    $rm -r conftest 2>/dev/null
14783    mkdir conftest
14784    cd conftest
14785    mkdir out
14786    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14787
14788    lt_compiler_flag="-o out/conftest2.$ac_objext"
14789    # Insert the option either (1) after the last *FLAGS variable, or
14790    # (2) before a word containing "conftest.", or (3) at the end.
14791    # Note that $ac_compile itself does not contain backslashes and begins
14792    # with a dollar sign (not a hyphen), so the echo should work correctly.
14793    lt_compile=`echo "$ac_compile" | $SED \
14794    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14795    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14796    -e 's:$: $lt_compiler_flag:'`
14797    (eval echo "\"\$as_me:14797: $lt_compile\"" >&5)
14798    (eval "$lt_compile" 2>out/conftest.err)
14799    ac_status=$?
14800    cat out/conftest.err >&5
14801    echo "$as_me:14801: \$? = $ac_status" >&5
14802    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14803    then
14804      # The compiler can only warn and ignore the option if not recognized
14805      # So say no if there are warnings
14806      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14807      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14808      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14809        lt_cv_prog_compiler_c_o=yes
14810      fi
14811    fi
14812    chmod u+w . 2>&5
14813    $rm conftest*
14814    # SGI C++ compiler will create directory out/ii_files/ for
14815    # template instantiation
14816    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14817    $rm out/* && rmdir out
14818    cd ..
14819    rmdir conftest
14820    $rm conftest*
14821
14822 fi
14823 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14824 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
14825
14826
14827 hard_links="nottested"
14828 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14829   # do not overwrite the value of need_locks provided by the user
14830   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14831 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14832   hard_links=yes
14833   $rm conftest*
14834   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14835   touch conftest.a
14836   ln conftest.a conftest.b 2>&5 || hard_links=no
14837   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14838   { echo "$as_me:$LINENO: result: $hard_links" >&5
14839 echo "${ECHO_T}$hard_links" >&6; }
14840   if test "$hard_links" = no; then
14841     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14842 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14843     need_locks=warn
14844   fi
14845 else
14846   need_locks=no
14847 fi
14848
14849 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14850 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14851
14852   runpath_var=
14853   allow_undefined_flag=
14854   enable_shared_with_static_runtimes=no
14855   archive_cmds=
14856   archive_expsym_cmds=
14857   old_archive_From_new_cmds=
14858   old_archive_from_expsyms_cmds=
14859   export_dynamic_flag_spec=
14860   whole_archive_flag_spec=
14861   thread_safe_flag_spec=
14862   hardcode_libdir_flag_spec=
14863   hardcode_libdir_flag_spec_ld=
14864   hardcode_libdir_separator=
14865   hardcode_direct=no
14866   hardcode_minus_L=no
14867   hardcode_shlibpath_var=unsupported
14868   link_all_deplibs=unknown
14869   hardcode_automatic=no
14870   module_cmds=
14871   module_expsym_cmds=
14872   always_export_symbols=no
14873   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14874   # include_expsyms should be a list of space-separated symbols to be *always*
14875   # included in the symbol list
14876   include_expsyms=
14877   # exclude_expsyms can be an extended regexp of symbols to exclude
14878   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14879   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14880   # as well as any symbol that contains `d'.
14881   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14882   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14883   # platforms (ab)use it in PIC code, but their linkers get confused if
14884   # the symbol is explicitly referenced.  Since portable code cannot
14885   # rely on this symbol name, it's probably fine to never include it in
14886   # preloaded symbol tables.
14887   extract_expsyms_cmds=
14888   # Just being paranoid about ensuring that cc_basename is set.
14889   for cc_temp in $compiler""; do
14890   case $cc_temp in
14891     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14892     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14893     \-*) ;;
14894     *) break;;
14895   esac
14896 done
14897 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14898
14899   case $host_os in
14900   cygwin* | mingw* | pw32*)
14901     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14902     # When not using gcc, we currently assume that we are using
14903     # Microsoft Visual C++.
14904     if test "$GCC" != yes; then
14905       with_gnu_ld=no
14906     fi
14907     ;;
14908   interix*)
14909     # we just hope/assume this is gcc and not c89 (= MSVC++)
14910     with_gnu_ld=yes
14911     ;;
14912   openbsd*)
14913     with_gnu_ld=no
14914     ;;
14915   esac
14916
14917   ld_shlibs=yes
14918   if test "$with_gnu_ld" = yes; then
14919     # If archive_cmds runs LD, not CC, wlarc should be empty
14920     wlarc='${wl}'
14921
14922     # Set some defaults for GNU ld with shared library support. These
14923     # are reset later if shared libraries are not supported. Putting them
14924     # here allows them to be overridden if necessary.
14925     runpath_var=LD_RUN_PATH
14926     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14927     export_dynamic_flag_spec='${wl}--export-dynamic'
14928     # ancient GNU ld didn't support --whole-archive et. al.
14929     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14930         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14931       else
14932         whole_archive_flag_spec=
14933     fi
14934     supports_anon_versioning=no
14935     case `$LD -v 2>/dev/null` in
14936       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14937       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14938       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14939       *\ 2.11.*) ;; # other 2.11 versions
14940       *) supports_anon_versioning=yes ;;
14941     esac
14942
14943     # See if GNU ld supports shared libraries.
14944     case $host_os in
14945     aix3* | aix4* | aix5*)
14946       # On AIX/PPC, the GNU linker is very broken
14947       if test "$host_cpu" != ia64; then
14948         ld_shlibs=no
14949         cat <<EOF 1>&2
14950
14951 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14952 *** to be unable to reliably create shared libraries on AIX.
14953 *** Therefore, libtool is disabling shared libraries support.  If you
14954 *** really care for shared libraries, you may want to modify your PATH
14955 *** so that a non-GNU linker is found, and then restart.
14956
14957 EOF
14958       fi
14959       ;;
14960
14961     amigaos*)
14962       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)'
14963       hardcode_libdir_flag_spec='-L$libdir'
14964       hardcode_minus_L=yes
14965
14966       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14967       # that the semantics of dynamic libraries on AmigaOS, at least up
14968       # to version 4, is to share data among multiple programs linked
14969       # with the same dynamic library.  Since this doesn't match the
14970       # behavior of shared libraries on other platforms, we can't use
14971       # them.
14972       ld_shlibs=no
14973       ;;
14974
14975     beos*)
14976       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14977         allow_undefined_flag=unsupported
14978         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14979         # support --undefined.  This deserves some investigation.  FIXME
14980         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14981       else
14982         ld_shlibs=no
14983       fi
14984       ;;
14985
14986     cygwin* | mingw* | pw32*)
14987       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14988       # as there is no search path for DLLs.
14989       hardcode_libdir_flag_spec='-L$libdir'
14990       allow_undefined_flag=unsupported
14991       always_export_symbols=no
14992       enable_shared_with_static_runtimes=yes
14993       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14994
14995       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14996         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14997         # If the export-symbols file already is a .def file (1st line
14998         # is EXPORTS), use it as is; otherwise, prepend...
14999         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15000           cp $export_symbols $output_objdir/$soname.def;
15001         else
15002           echo EXPORTS > $output_objdir/$soname.def;
15003           cat $export_symbols >> $output_objdir/$soname.def;
15004         fi~
15005         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15006       else
15007         ld_shlibs=no
15008       fi
15009       ;;
15010
15011     interix3*)
15012       hardcode_direct=no
15013       hardcode_shlibpath_var=no
15014       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15015       export_dynamic_flag_spec='${wl}-E'
15016       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15017       # Instead, shared libraries are loaded at an image base (0x10000000 by
15018       # default) and relocated if they conflict, which is a slow very memory
15019       # consuming and fragmenting process.  To avoid this, we pick a random,
15020       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15021       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15022       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15023       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'
15024       ;;
15025
15026     linux*)
15027       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15028         tmp_addflag=
15029         case $cc_basename,$host_cpu in
15030         pgcc*)                          # Portland Group C compiler
15031           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'
15032           tmp_addflag=' $pic_flag'
15033           ;;
15034         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
15035           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'
15036           tmp_addflag=' $pic_flag -Mnomain' ;;
15037         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
15038           tmp_addflag=' -i_dynamic' ;;
15039         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15040           tmp_addflag=' -i_dynamic -nofor_main' ;;
15041         ifc* | ifort*)                  # Intel Fortran compiler
15042           tmp_addflag=' -nofor_main' ;;
15043         esac
15044         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15045
15046         if test $supports_anon_versioning = yes; then
15047           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15048   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15049   $echo "local: *; };" >> $output_objdir/$libname.ver~
15050           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15051         fi
15052       else
15053         ld_shlibs=no
15054       fi
15055       ;;
15056
15057     netbsd*)
15058       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15059         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15060         wlarc=
15061       else
15062         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15063         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15064       fi
15065       ;;
15066
15067     solaris*)
15068       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15069         ld_shlibs=no
15070         cat <<EOF 1>&2
15071
15072 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15073 *** create shared libraries on Solaris systems.  Therefore, libtool
15074 *** is disabling shared libraries support.  We urge you to upgrade GNU
15075 *** binutils to release 2.9.1 or newer.  Another option is to modify
15076 *** your PATH or compiler configuration so that the native linker is
15077 *** used, and then restart.
15078
15079 EOF
15080       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15081         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15082         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15083       else
15084         ld_shlibs=no
15085       fi
15086       ;;
15087
15088     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15089       case `$LD -v 2>&1` in
15090         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15091         ld_shlibs=no
15092         cat <<_LT_EOF 1>&2
15093
15094 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15095 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15096 *** is disabling shared libraries support.  We urge you to upgrade GNU
15097 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15098 *** your PATH or compiler configuration so that the native linker is
15099 *** used, and then restart.
15100
15101 _LT_EOF
15102         ;;
15103         *)
15104           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15105             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15106             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15107             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15108           else
15109             ld_shlibs=no
15110           fi
15111         ;;
15112       esac
15113       ;;
15114
15115     sunos4*)
15116       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15117       wlarc=
15118       hardcode_direct=yes
15119       hardcode_shlibpath_var=no
15120       ;;
15121
15122     *)
15123       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15124         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15125         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15126       else
15127         ld_shlibs=no
15128       fi
15129       ;;
15130     esac
15131
15132     if test "$ld_shlibs" = no; then
15133       runpath_var=
15134       hardcode_libdir_flag_spec=
15135       export_dynamic_flag_spec=
15136       whole_archive_flag_spec=
15137     fi
15138   else
15139     # PORTME fill in a description of your system's linker (not GNU ld)
15140     case $host_os in
15141     aix3*)
15142       allow_undefined_flag=unsupported
15143       always_export_symbols=yes
15144       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'
15145       # Note: this linker hardcodes the directories in LIBPATH if there
15146       # are no directories specified by -L.
15147       hardcode_minus_L=yes
15148       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15149         # Neither direct hardcoding nor static linking is supported with a
15150         # broken collect2.
15151         hardcode_direct=unsupported
15152       fi
15153       ;;
15154
15155     aix4* | aix5*)
15156       if test "$host_cpu" = ia64; then
15157         # On IA64, the linker does run time linking by default, so we don't
15158         # have to do anything special.
15159         aix_use_runtimelinking=no
15160         exp_sym_flag='-Bexport'
15161         no_entry_flag=""
15162       else
15163         # If we're using GNU nm, then we don't want the "-C" option.
15164         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15165         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15166           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'
15167         else
15168           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'
15169         fi
15170         aix_use_runtimelinking=no
15171
15172         # Test if we are trying to use run time linking or normal
15173         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15174         # need to do runtime linking.
15175         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15176           for ld_flag in $LDFLAGS; do
15177           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15178             aix_use_runtimelinking=yes
15179             break
15180           fi
15181           done
15182           ;;
15183         esac
15184
15185         exp_sym_flag='-bexport'
15186         no_entry_flag='-bnoentry'
15187       fi
15188
15189       # When large executables or shared objects are built, AIX ld can
15190       # have problems creating the table of contents.  If linking a library
15191       # or program results in "error TOC overflow" add -mminimal-toc to
15192       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15193       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15194
15195       archive_cmds=''
15196       hardcode_direct=yes
15197       hardcode_libdir_separator=':'
15198       link_all_deplibs=yes
15199
15200       if test "$GCC" = yes; then
15201         case $host_os in aix4.[012]|aix4.[012].*)
15202         # We only want to do this on AIX 4.2 and lower, the check
15203         # below for broken collect2 doesn't work under 4.3+
15204           collect2name=`${CC} -print-prog-name=collect2`
15205           if test -f "$collect2name" && \
15206            strings "$collect2name" | grep resolve_lib_name >/dev/null
15207           then
15208           # We have reworked collect2
15209           hardcode_direct=yes
15210           else
15211           # We have old collect2
15212           hardcode_direct=unsupported
15213           # It fails to find uninstalled libraries when the uninstalled
15214           # path is not listed in the libpath.  Setting hardcode_minus_L
15215           # to unsupported forces relinking
15216           hardcode_minus_L=yes
15217           hardcode_libdir_flag_spec='-L$libdir'
15218           hardcode_libdir_separator=
15219           fi
15220           ;;
15221         esac
15222         shared_flag='-shared'
15223         if test "$aix_use_runtimelinking" = yes; then
15224           shared_flag="$shared_flag "'${wl}-G'
15225         fi
15226       else
15227         # not using gcc
15228         if test "$host_cpu" = ia64; then
15229         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15230         # chokes on -Wl,-G. The following line is correct:
15231           shared_flag='-G'
15232         else
15233           if test "$aix_use_runtimelinking" = yes; then
15234             shared_flag='${wl}-G'
15235           else
15236             shared_flag='${wl}-bM:SRE'
15237           fi
15238         fi
15239       fi
15240
15241       # It seems that -bexpall does not export symbols beginning with
15242       # underscore (_), so it is better to generate a list of symbols to export.
15243       always_export_symbols=yes
15244       if test "$aix_use_runtimelinking" = yes; then
15245         # Warning - without using the other runtime loading flags (-brtl),
15246         # -berok will link without error, but may produce a broken library.
15247         allow_undefined_flag='-berok'
15248        # Determine the default libpath from the value encoded in an empty executable.
15249        cat >conftest.$ac_ext <<_ACEOF
15250 /* confdefs.h.  */
15251 _ACEOF
15252 cat confdefs.h >>conftest.$ac_ext
15253 cat >>conftest.$ac_ext <<_ACEOF
15254 /* end confdefs.h.  */
15255
15256 int
15257 main ()
15258 {
15259
15260   ;
15261   return 0;
15262 }
15263 _ACEOF
15264 rm -f conftest.$ac_objext conftest$ac_exeext
15265 if { (ac_try="$ac_link"
15266 case "(($ac_try" in
15267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15268   *) ac_try_echo=$ac_try;;
15269 esac
15270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15271   (eval "$ac_link") 2>conftest.er1
15272   ac_status=$?
15273   grep -v '^ *+' conftest.er1 >conftest.err
15274   rm -f conftest.er1
15275   cat conftest.err >&5
15276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15277   (exit $ac_status); } &&
15278          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15279   { (case "(($ac_try" in
15280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15281   *) ac_try_echo=$ac_try;;
15282 esac
15283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15284   (eval "$ac_try") 2>&5
15285   ac_status=$?
15286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15287   (exit $ac_status); }; } &&
15288          { ac_try='test -s conftest$ac_exeext'
15289   { (case "(($ac_try" in
15290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15291   *) ac_try_echo=$ac_try;;
15292 esac
15293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15294   (eval "$ac_try") 2>&5
15295   ac_status=$?
15296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15297   (exit $ac_status); }; }; then
15298
15299 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15300 }'`
15301 # Check for a 64-bit object if we didn't find anything.
15302 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; }
15303 }'`; fi
15304 else
15305   echo "$as_me: failed program was:" >&5
15306 sed 's/^/| /' conftest.$ac_ext >&5
15307
15308
15309 fi
15310
15311 rm -f core conftest.err conftest.$ac_objext \
15312       conftest$ac_exeext conftest.$ac_ext
15313 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15314
15315        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15316         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"
15317        else
15318         if test "$host_cpu" = ia64; then
15319           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15320           allow_undefined_flag="-z nodefs"
15321           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"
15322         else
15323          # Determine the default libpath from the value encoded in an empty executable.
15324          cat >conftest.$ac_ext <<_ACEOF
15325 /* confdefs.h.  */
15326 _ACEOF
15327 cat confdefs.h >>conftest.$ac_ext
15328 cat >>conftest.$ac_ext <<_ACEOF
15329 /* end confdefs.h.  */
15330
15331 int
15332 main ()
15333 {
15334
15335   ;
15336   return 0;
15337 }
15338 _ACEOF
15339 rm -f conftest.$ac_objext conftest$ac_exeext
15340 if { (ac_try="$ac_link"
15341 case "(($ac_try" in
15342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15343   *) ac_try_echo=$ac_try;;
15344 esac
15345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15346   (eval "$ac_link") 2>conftest.er1
15347   ac_status=$?
15348   grep -v '^ *+' conftest.er1 >conftest.err
15349   rm -f conftest.er1
15350   cat conftest.err >&5
15351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15352   (exit $ac_status); } &&
15353          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15354   { (case "(($ac_try" in
15355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15356   *) ac_try_echo=$ac_try;;
15357 esac
15358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15359   (eval "$ac_try") 2>&5
15360   ac_status=$?
15361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15362   (exit $ac_status); }; } &&
15363          { ac_try='test -s conftest$ac_exeext'
15364   { (case "(($ac_try" in
15365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15366   *) ac_try_echo=$ac_try;;
15367 esac
15368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15369   (eval "$ac_try") 2>&5
15370   ac_status=$?
15371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15372   (exit $ac_status); }; }; then
15373
15374 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15375 }'`
15376 # Check for a 64-bit object if we didn't find anything.
15377 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; }
15378 }'`; fi
15379 else
15380   echo "$as_me: failed program was:" >&5
15381 sed 's/^/| /' conftest.$ac_ext >&5
15382
15383
15384 fi
15385
15386 rm -f core conftest.err conftest.$ac_objext \
15387       conftest$ac_exeext conftest.$ac_ext
15388 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15389
15390          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15391           # Warning - without using the other run time loading flags,
15392           # -berok will link without error, but may produce a broken library.
15393           no_undefined_flag=' ${wl}-bernotok'
15394           allow_undefined_flag=' ${wl}-berok'
15395           # Exported symbols can be pulled into shared objects from archives
15396           whole_archive_flag_spec='$convenience'
15397           archive_cmds_need_lc=yes
15398           # This is similar to how AIX traditionally builds its shared libraries.
15399           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'
15400         fi
15401       fi
15402       ;;
15403
15404     amigaos*)
15405       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)'
15406       hardcode_libdir_flag_spec='-L$libdir'
15407       hardcode_minus_L=yes
15408       # see comment about different semantics on the GNU ld section
15409       ld_shlibs=no
15410       ;;
15411
15412     bsdi[45]*)
15413       export_dynamic_flag_spec=-rdynamic
15414       ;;
15415
15416     cygwin* | mingw* | pw32*)
15417       # When not using gcc, we currently assume that we are using
15418       # Microsoft Visual C++.
15419       # hardcode_libdir_flag_spec is actually meaningless, as there is
15420       # no search path for DLLs.
15421       hardcode_libdir_flag_spec=' '
15422       allow_undefined_flag=unsupported
15423       # Tell ltmain to make .lib files, not .a files.
15424       libext=lib
15425       # Tell ltmain to make .dll files, not .so files.
15426       shrext_cmds=".dll"
15427       # FIXME: Setting linknames here is a bad hack.
15428       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15429       # The linker will automatically build a .lib file if we build a DLL.
15430       old_archive_From_new_cmds='true'
15431       # FIXME: Should let the user specify the lib program.
15432       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15433       fix_srcfile_path='`cygpath -w "$srcfile"`'
15434       enable_shared_with_static_runtimes=yes
15435       ;;
15436
15437     darwin* | rhapsody*)
15438       case $host_os in
15439         rhapsody* | darwin1.[012])
15440          allow_undefined_flag='${wl}-undefined ${wl}suppress'
15441          ;;
15442        *) # Darwin 1.3 on
15443          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15444            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15445          else
15446            case ${MACOSX_DEPLOYMENT_TARGET} in
15447              10.[012])
15448                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15449                ;;
15450              10.*)
15451                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15452                ;;
15453            esac
15454          fi
15455          ;;
15456       esac
15457       archive_cmds_need_lc=no
15458       hardcode_direct=no
15459       hardcode_automatic=yes
15460       hardcode_shlibpath_var=unsupported
15461       whole_archive_flag_spec=''
15462       link_all_deplibs=yes
15463     if test "$GCC" = yes ; then
15464         output_verbose_link_cmd='echo'
15465         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15466       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15467       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15468       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}'
15469       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}'
15470     else
15471       case $cc_basename in
15472         xlc*)
15473          output_verbose_link_cmd='echo'
15474          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15475          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15476           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15477          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}'
15478           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}'
15479           ;;
15480        *)
15481          ld_shlibs=no
15482           ;;
15483       esac
15484     fi
15485       ;;
15486
15487     dgux*)
15488       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15489       hardcode_libdir_flag_spec='-L$libdir'
15490       hardcode_shlibpath_var=no
15491       ;;
15492
15493     freebsd1*)
15494       ld_shlibs=no
15495       ;;
15496
15497     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15498     # support.  Future versions do this automatically, but an explicit c++rt0.o
15499     # does not break anything, and helps significantly (at the cost of a little
15500     # extra space).
15501     freebsd2.2*)
15502       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15503       hardcode_libdir_flag_spec='-R$libdir'
15504       hardcode_direct=yes
15505       hardcode_shlibpath_var=no
15506       ;;
15507
15508     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15509     freebsd2*)
15510       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15511       hardcode_direct=yes
15512       hardcode_minus_L=yes
15513       hardcode_shlibpath_var=no
15514       ;;
15515
15516     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15517     freebsd* | kfreebsd*-gnu | dragonfly*)
15518       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15519       hardcode_libdir_flag_spec='-R$libdir'
15520       hardcode_direct=yes
15521       hardcode_shlibpath_var=no
15522       ;;
15523
15524     hpux9*)
15525       if test "$GCC" = yes; then
15526         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'
15527       else
15528         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'
15529       fi
15530       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15531       hardcode_libdir_separator=:
15532       hardcode_direct=yes
15533
15534       # hardcode_minus_L: Not really in the search PATH,
15535       # but as the default location of the library.
15536       hardcode_minus_L=yes
15537       export_dynamic_flag_spec='${wl}-E'
15538       ;;
15539
15540     hpux10*)
15541       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15542         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15543       else
15544         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15545       fi
15546       if test "$with_gnu_ld" = no; then
15547         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15548         hardcode_libdir_separator=:
15549
15550         hardcode_direct=yes
15551         export_dynamic_flag_spec='${wl}-E'
15552
15553         # hardcode_minus_L: Not really in the search PATH,
15554         # but as the default location of the library.
15555         hardcode_minus_L=yes
15556       fi
15557       ;;
15558
15559     hpux11*)
15560       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15561         case $host_cpu in
15562         hppa*64*)
15563           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15564           ;;
15565         ia64*)
15566           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15567           ;;
15568         *)
15569           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15570           ;;
15571         esac
15572       else
15573         case $host_cpu in
15574         hppa*64*)
15575           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15576           ;;
15577         ia64*)
15578           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15579           ;;
15580         *)
15581           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15582           ;;
15583         esac
15584       fi
15585       if test "$with_gnu_ld" = no; then
15586         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15587         hardcode_libdir_separator=:
15588
15589         case $host_cpu in
15590         hppa*64*|ia64*)
15591           hardcode_libdir_flag_spec_ld='+b $libdir'
15592           hardcode_direct=no
15593           hardcode_shlibpath_var=no
15594           ;;
15595         *)
15596           hardcode_direct=yes
15597           export_dynamic_flag_spec='${wl}-E'
15598
15599           # hardcode_minus_L: Not really in the search PATH,
15600           # but as the default location of the library.
15601           hardcode_minus_L=yes
15602           ;;
15603         esac
15604       fi
15605       ;;
15606
15607     irix5* | irix6* | nonstopux*)
15608       if test "$GCC" = yes; then
15609         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'
15610       else
15611         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'
15612         hardcode_libdir_flag_spec_ld='-rpath $libdir'
15613       fi
15614       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15615       hardcode_libdir_separator=:
15616       link_all_deplibs=yes
15617       ;;
15618
15619     netbsd*)
15620       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15621         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15622       else
15623         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15624       fi
15625       hardcode_libdir_flag_spec='-R$libdir'
15626       hardcode_direct=yes
15627       hardcode_shlibpath_var=no
15628       ;;
15629
15630     newsos6)
15631       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15632       hardcode_direct=yes
15633       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15634       hardcode_libdir_separator=:
15635       hardcode_shlibpath_var=no
15636       ;;
15637
15638     openbsd*)
15639       hardcode_direct=yes
15640       hardcode_shlibpath_var=no
15641       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15642         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15643         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15644         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15645         export_dynamic_flag_spec='${wl}-E'
15646       else
15647        case $host_os in
15648          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15649            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15650            hardcode_libdir_flag_spec='-R$libdir'
15651            ;;
15652          *)
15653            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15654            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15655            ;;
15656        esac
15657       fi
15658       ;;
15659
15660     os2*)
15661       hardcode_libdir_flag_spec='-L$libdir'
15662       hardcode_minus_L=yes
15663       allow_undefined_flag=unsupported
15664       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'
15665       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15666       ;;
15667
15668     osf3*)
15669       if test "$GCC" = yes; then
15670         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15671         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'
15672       else
15673         allow_undefined_flag=' -expect_unresolved \*'
15674         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'
15675       fi
15676       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15677       hardcode_libdir_separator=:
15678       ;;
15679
15680     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15681       if test "$GCC" = yes; then
15682         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15683         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'
15684         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15685       else
15686         allow_undefined_flag=' -expect_unresolved \*'
15687         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'
15688         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15689         $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'
15690
15691         # Both c and cxx compiler support -rpath directly
15692         hardcode_libdir_flag_spec='-rpath $libdir'
15693       fi
15694       hardcode_libdir_separator=:
15695       ;;
15696
15697     solaris*)
15698       no_undefined_flag=' -z text'
15699       if test "$GCC" = yes; then
15700         wlarc='${wl}'
15701         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15702         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15703           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15704       else
15705         wlarc=''
15706         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15707         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15708         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15709       fi
15710       hardcode_libdir_flag_spec='-R$libdir'
15711       hardcode_shlibpath_var=no
15712       case $host_os in
15713       solaris2.[0-5] | solaris2.[0-5].*) ;;
15714       *)
15715         # The compiler driver will combine linker options so we
15716         # cannot just pass the convience library names through
15717         # without $wl, iff we do not link with $LD.
15718         # Luckily, gcc supports the same syntax we need for Sun Studio.
15719         # Supported since Solaris 2.6 (maybe 2.5.1?)
15720         case $wlarc in
15721         '')
15722           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15723         *)
15724           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' ;;
15725         esac ;;
15726       esac
15727       link_all_deplibs=yes
15728       ;;
15729
15730     sunos4*)
15731       if test "x$host_vendor" = xsequent; then
15732         # Use $CC to link under sequent, because it throws in some extra .o
15733         # files that make .init and .fini sections work.
15734         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15735       else
15736         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15737       fi
15738       hardcode_libdir_flag_spec='-L$libdir'
15739       hardcode_direct=yes
15740       hardcode_minus_L=yes
15741       hardcode_shlibpath_var=no
15742       ;;
15743
15744     sysv4)
15745       case $host_vendor in
15746         sni)
15747           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15748           hardcode_direct=yes # is this really true???
15749         ;;
15750         siemens)
15751           ## LD is ld it makes a PLAMLIB
15752           ## CC just makes a GrossModule.
15753           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15754           reload_cmds='$CC -r -o $output$reload_objs'
15755           hardcode_direct=no
15756         ;;
15757         motorola)
15758           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15759           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15760         ;;
15761       esac
15762       runpath_var='LD_RUN_PATH'
15763       hardcode_shlibpath_var=no
15764       ;;
15765
15766     sysv4.3*)
15767       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15768       hardcode_shlibpath_var=no
15769       export_dynamic_flag_spec='-Bexport'
15770       ;;
15771
15772     sysv4*MP*)
15773       if test -d /usr/nec; then
15774         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15775         hardcode_shlibpath_var=no
15776         runpath_var=LD_RUN_PATH
15777         hardcode_runpath_var=yes
15778         ld_shlibs=yes
15779       fi
15780       ;;
15781
15782     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15783       no_undefined_flag='${wl}-z,text'
15784       archive_cmds_need_lc=no
15785       hardcode_shlibpath_var=no
15786       runpath_var='LD_RUN_PATH'
15787
15788       if test "$GCC" = yes; then
15789         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15790         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15791       else
15792         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15793         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15794       fi
15795       ;;
15796
15797     sysv5* | sco3.2v5* | sco5v6*)
15798       # Note: We can NOT use -z defs as we might desire, because we do not
15799       # link with -lc, and that would cause any symbols used from libc to
15800       # always be unresolved, which means just about no library would
15801       # ever link correctly.  If we're not using GNU ld we use -z text
15802       # though, which does catch some bad symbols but isn't as heavy-handed
15803       # as -z defs.
15804       no_undefined_flag='${wl}-z,text'
15805       allow_undefined_flag='${wl}-z,nodefs'
15806       archive_cmds_need_lc=no
15807       hardcode_shlibpath_var=no
15808       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15809       hardcode_libdir_separator=':'
15810       link_all_deplibs=yes
15811       export_dynamic_flag_spec='${wl}-Bexport'
15812       runpath_var='LD_RUN_PATH'
15813
15814       if test "$GCC" = yes; then
15815         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15816         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15817       else
15818         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15819         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15820       fi
15821       ;;
15822
15823     uts4*)
15824       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15825       hardcode_libdir_flag_spec='-L$libdir'
15826       hardcode_shlibpath_var=no
15827       ;;
15828
15829     *)
15830       ld_shlibs=no
15831       ;;
15832     esac
15833   fi
15834
15835 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15836 echo "${ECHO_T}$ld_shlibs" >&6; }
15837 test "$ld_shlibs" = no && can_build_shared=no
15838
15839 #
15840 # Do we need to explicitly link libc?
15841 #
15842 case "x$archive_cmds_need_lc" in
15843 x|xyes)
15844   # Assume -lc should be added
15845   archive_cmds_need_lc=yes
15846
15847   if test "$enable_shared" = yes && test "$GCC" = yes; then
15848     case $archive_cmds in
15849     *'~'*)
15850       # FIXME: we may have to deal with multi-command sequences.
15851       ;;
15852     '$CC '*)
15853       # Test whether the compiler implicitly links with -lc since on some
15854       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15855       # to ld, don't add -lc before -lgcc.
15856       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15857 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15858       $rm conftest*
15859       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15860
15861       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15862   (eval $ac_compile) 2>&5
15863   ac_status=$?
15864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15865   (exit $ac_status); } 2>conftest.err; then
15866         soname=conftest
15867         lib=conftest
15868         libobjs=conftest.$ac_objext
15869         deplibs=
15870         wl=$lt_prog_compiler_wl
15871         pic_flag=$lt_prog_compiler_pic
15872         compiler_flags=-v
15873         linker_flags=-v
15874         verstring=
15875         output_objdir=.
15876         libname=conftest
15877         lt_save_allow_undefined_flag=$allow_undefined_flag
15878         allow_undefined_flag=
15879         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15880   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15881   ac_status=$?
15882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15883   (exit $ac_status); }
15884         then
15885           archive_cmds_need_lc=no
15886         else
15887           archive_cmds_need_lc=yes
15888         fi
15889         allow_undefined_flag=$lt_save_allow_undefined_flag
15890       else
15891         cat conftest.err 1>&5
15892       fi
15893       $rm conftest*
15894       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15895 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
15896       ;;
15897     esac
15898   fi
15899   ;;
15900 esac
15901
15902 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15903 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15904 library_names_spec=
15905 libname_spec='lib$name'
15906 soname_spec=
15907 shrext_cmds=".so"
15908 postinstall_cmds=
15909 postuninstall_cmds=
15910 finish_cmds=
15911 finish_eval=
15912 shlibpath_var=
15913 shlibpath_overrides_runpath=unknown
15914 version_type=none
15915 dynamic_linker="$host_os ld.so"
15916 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15917 if test "$GCC" = yes; then
15918   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15919   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15920     # if the path contains ";" then we assume it to be the separator
15921     # otherwise default to the standard path separator (i.e. ":") - it is
15922     # assumed that no part of a normal pathname contains ";" but that should
15923     # okay in the real world where ";" in dirpaths is itself problematic.
15924     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15925   else
15926     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15927   fi
15928 else
15929   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15930 fi
15931 need_lib_prefix=unknown
15932 hardcode_into_libs=no
15933
15934 # when you set need_version to no, make sure it does not cause -set_version
15935 # flags to be left without arguments
15936 need_version=unknown
15937
15938 case $host_os in
15939 aix3*)
15940   version_type=linux
15941   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15942   shlibpath_var=LIBPATH
15943
15944   # AIX 3 has no versioning support, so we append a major version to the name.
15945   soname_spec='${libname}${release}${shared_ext}$major'
15946   ;;
15947
15948 aix4* | aix5*)
15949   version_type=linux
15950   need_lib_prefix=no
15951   need_version=no
15952   hardcode_into_libs=yes
15953   if test "$host_cpu" = ia64; then
15954     # AIX 5 supports IA64
15955     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15956     shlibpath_var=LD_LIBRARY_PATH
15957   else
15958     # With GCC up to 2.95.x, collect2 would create an import file
15959     # for dependence libraries.  The import file would start with
15960     # the line `#! .'.  This would cause the generated library to
15961     # depend on `.', always an invalid library.  This was fixed in
15962     # development snapshots of GCC prior to 3.0.
15963     case $host_os in
15964       aix4 | aix4.[01] | aix4.[01].*)
15965       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15966            echo ' yes '
15967            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15968         :
15969       else
15970         can_build_shared=no
15971       fi
15972       ;;
15973     esac
15974     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15975     # soname into executable. Probably we can add versioning support to
15976     # collect2, so additional links can be useful in future.
15977     if test "$aix_use_runtimelinking" = yes; then
15978       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15979       # instead of lib<name>.a to let people know that these are not
15980       # typical AIX shared libraries.
15981       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15982     else
15983       # We preserve .a as extension for shared libraries through AIX4.2
15984       # and later when we are not doing run time linking.
15985       library_names_spec='${libname}${release}.a $libname.a'
15986       soname_spec='${libname}${release}${shared_ext}$major'
15987     fi
15988     shlibpath_var=LIBPATH
15989   fi
15990   ;;
15991
15992 amigaos*)
15993   library_names_spec='$libname.ixlibrary $libname.a'
15994   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15995   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'
15996   ;;
15997
15998 beos*)
15999   library_names_spec='${libname}${shared_ext}'
16000   dynamic_linker="$host_os ld.so"
16001   shlibpath_var=LIBRARY_PATH
16002   ;;
16003
16004 bsdi[45]*)
16005   version_type=linux
16006   need_version=no
16007   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16008   soname_spec='${libname}${release}${shared_ext}$major'
16009   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16010   shlibpath_var=LD_LIBRARY_PATH
16011   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16012   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16013   # the default ld.so.conf also contains /usr/contrib/lib and
16014   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16015   # libtool to hard-code these into programs
16016   ;;
16017
16018 cygwin* | mingw* | pw32*)
16019   version_type=windows
16020   shrext_cmds=".dll"
16021   need_version=no
16022   need_lib_prefix=no
16023
16024   case $GCC,$host_os in
16025   yes,cygwin* | yes,mingw* | yes,pw32*)
16026     library_names_spec='$libname.dll.a'
16027     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16028     postinstall_cmds='base_file=`basename \${file}`~
16029       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16030       dldir=$destdir/`dirname \$dlpath`~
16031       test -d \$dldir || mkdir -p \$dldir~
16032       $install_prog $dir/$dlname \$dldir/$dlname~
16033       chmod a+x \$dldir/$dlname'
16034     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16035       dlpath=$dir/\$dldll~
16036        $rm \$dlpath'
16037     shlibpath_overrides_runpath=yes
16038
16039     case $host_os in
16040     cygwin*)
16041       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16042       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16043       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16044       ;;
16045     mingw*)
16046       # MinGW DLLs use traditional 'lib' prefix
16047       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16048       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16049       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16050         # It is most probably a Windows format PATH printed by
16051         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16052         # path with ; separators, and with drive letters. We can handle the
16053         # drive letters (cygwin fileutils understands them), so leave them,
16054         # especially as we might pass files found there to a mingw objdump,
16055         # which wouldn't understand a cygwinified path. Ahh.
16056         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16057       else
16058         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16059       fi
16060       ;;
16061     pw32*)
16062       # pw32 DLLs use 'pw' prefix rather than 'lib'
16063       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16064       ;;
16065     esac
16066     ;;
16067
16068   *)
16069     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16070     ;;
16071   esac
16072   dynamic_linker='Win32 ld.exe'
16073   # FIXME: first we should search . and the directory the executable is in
16074   shlibpath_var=PATH
16075   ;;
16076
16077 darwin* | rhapsody*)
16078   dynamic_linker="$host_os dyld"
16079   version_type=darwin
16080   need_lib_prefix=no
16081   need_version=no
16082   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16083   soname_spec='${libname}${release}${major}$shared_ext'
16084   shlibpath_overrides_runpath=yes
16085   shlibpath_var=DYLD_LIBRARY_PATH
16086   shrext_cmds='.dylib'
16087   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16088   if test "$GCC" = yes; then
16089     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"`
16090   else
16091     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16092   fi
16093   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16094   ;;
16095
16096 dgux*)
16097   version_type=linux
16098   need_lib_prefix=no
16099   need_version=no
16100   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16101   soname_spec='${libname}${release}${shared_ext}$major'
16102   shlibpath_var=LD_LIBRARY_PATH
16103   ;;
16104
16105 freebsd1*)
16106   dynamic_linker=no
16107   ;;
16108
16109 kfreebsd*-gnu)
16110   version_type=linux
16111   need_lib_prefix=no
16112   need_version=no
16113   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16114   soname_spec='${libname}${release}${shared_ext}$major'
16115   shlibpath_var=LD_LIBRARY_PATH
16116   shlibpath_overrides_runpath=no
16117   hardcode_into_libs=yes
16118   dynamic_linker='GNU ld.so'
16119   ;;
16120
16121 freebsd* | dragonfly*)
16122   # DragonFly does not have aout.  When/if they implement a new
16123   # versioning mechanism, adjust this.
16124   if test -x /usr/bin/objformat; then
16125     objformat=`/usr/bin/objformat`
16126   else
16127     case $host_os in
16128     freebsd[123]*) objformat=aout ;;
16129     *) objformat=elf ;;
16130     esac
16131   fi
16132   version_type=freebsd-$objformat
16133   case $version_type in
16134     freebsd-elf*)
16135       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16136       need_version=no
16137       need_lib_prefix=no
16138       ;;
16139     freebsd-*)
16140       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16141       need_version=yes
16142       ;;
16143   esac
16144   shlibpath_var=LD_LIBRARY_PATH
16145   case $host_os in
16146   freebsd2*)
16147     shlibpath_overrides_runpath=yes
16148     ;;
16149   freebsd3.[01]* | freebsdelf3.[01]*)
16150     shlibpath_overrides_runpath=yes
16151     hardcode_into_libs=yes
16152     ;;
16153   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16154   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16155     shlibpath_overrides_runpath=no
16156     hardcode_into_libs=yes
16157     ;;
16158   freebsd*) # from 4.6 on
16159     shlibpath_overrides_runpath=yes
16160     hardcode_into_libs=yes
16161     ;;
16162   esac
16163   ;;
16164
16165 gnu*)
16166   version_type=linux
16167   need_lib_prefix=no
16168   need_version=no
16169   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16170   soname_spec='${libname}${release}${shared_ext}$major'
16171   shlibpath_var=LD_LIBRARY_PATH
16172   hardcode_into_libs=yes
16173   ;;
16174
16175 hpux9* | hpux10* | hpux11*)
16176   # Give a soname corresponding to the major version so that dld.sl refuses to
16177   # link against other versions.
16178   version_type=sunos
16179   need_lib_prefix=no
16180   need_version=no
16181   case $host_cpu in
16182   ia64*)
16183     shrext_cmds='.so'
16184     hardcode_into_libs=yes
16185     dynamic_linker="$host_os dld.so"
16186     shlibpath_var=LD_LIBRARY_PATH
16187     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16188     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16189     soname_spec='${libname}${release}${shared_ext}$major'
16190     if test "X$HPUX_IA64_MODE" = X32; then
16191       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16192     else
16193       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16194     fi
16195     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16196     ;;
16197    hppa*64*)
16198      shrext_cmds='.sl'
16199      hardcode_into_libs=yes
16200      dynamic_linker="$host_os dld.sl"
16201      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16202      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16203      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16204      soname_spec='${libname}${release}${shared_ext}$major'
16205      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16206      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16207      ;;
16208    *)
16209     shrext_cmds='.sl'
16210     dynamic_linker="$host_os dld.sl"
16211     shlibpath_var=SHLIB_PATH
16212     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16213     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16214     soname_spec='${libname}${release}${shared_ext}$major'
16215     ;;
16216   esac
16217   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16218   postinstall_cmds='chmod 555 $lib'
16219   ;;
16220
16221 interix3*)
16222   version_type=linux
16223   need_lib_prefix=no
16224   need_version=no
16225   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16226   soname_spec='${libname}${release}${shared_ext}$major'
16227   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16228   shlibpath_var=LD_LIBRARY_PATH
16229   shlibpath_overrides_runpath=no
16230   hardcode_into_libs=yes
16231   ;;
16232
16233 irix5* | irix6* | nonstopux*)
16234   case $host_os in
16235     nonstopux*) version_type=nonstopux ;;
16236     *)
16237         if test "$lt_cv_prog_gnu_ld" = yes; then
16238                 version_type=linux
16239         else
16240                 version_type=irix
16241         fi ;;
16242   esac
16243   need_lib_prefix=no
16244   need_version=no
16245   soname_spec='${libname}${release}${shared_ext}$major'
16246   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16247   case $host_os in
16248   irix5* | nonstopux*)
16249     libsuff= shlibsuff=
16250     ;;
16251   *)
16252     case $LD in # libtool.m4 will add one of these switches to LD
16253     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16254       libsuff= shlibsuff= libmagic=32-bit;;
16255     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16256       libsuff=32 shlibsuff=N32 libmagic=N32;;
16257     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16258       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16259     *) libsuff= shlibsuff= libmagic=never-match;;
16260     esac
16261     ;;
16262   esac
16263   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16264   shlibpath_overrides_runpath=no
16265   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16266   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16267   hardcode_into_libs=yes
16268   ;;
16269
16270 # No shared lib support for Linux oldld, aout, or coff.
16271 linux*oldld* | linux*aout* | linux*coff*)
16272   dynamic_linker=no
16273   ;;
16274
16275 # This must be Linux ELF.
16276 linux*)
16277   version_type=linux
16278   need_lib_prefix=no
16279   need_version=no
16280   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16281   soname_spec='${libname}${release}${shared_ext}$major'
16282   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16283   shlibpath_var=LD_LIBRARY_PATH
16284   shlibpath_overrides_runpath=no
16285   # This implies no fast_install, which is unacceptable.
16286   # Some rework will be needed to allow for fast_install
16287   # before this can be enabled.
16288   hardcode_into_libs=yes
16289
16290   # Append ld.so.conf contents to the search path
16291   if test -f /etc/ld.so.conf; then
16292     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' ' '`
16293     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16294   fi
16295
16296   # We used to test for /lib/ld.so.1 and disable shared libraries on
16297   # powerpc, because MkLinux only supported shared libraries with the
16298   # GNU dynamic linker.  Since this was broken with cross compilers,
16299   # most powerpc-linux boxes support dynamic linking these days and
16300   # people can always --disable-shared, the test was removed, and we
16301   # assume the GNU/Linux dynamic linker is in use.
16302   dynamic_linker='GNU/Linux ld.so'
16303   ;;
16304
16305 knetbsd*-gnu)
16306   version_type=linux
16307   need_lib_prefix=no
16308   need_version=no
16309   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16310   soname_spec='${libname}${release}${shared_ext}$major'
16311   shlibpath_var=LD_LIBRARY_PATH
16312   shlibpath_overrides_runpath=no
16313   hardcode_into_libs=yes
16314   dynamic_linker='GNU ld.so'
16315   ;;
16316
16317 netbsd*)
16318   version_type=sunos
16319   need_lib_prefix=no
16320   need_version=no
16321   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16322     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16323     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16324     dynamic_linker='NetBSD (a.out) ld.so'
16325   else
16326     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16327     soname_spec='${libname}${release}${shared_ext}$major'
16328     dynamic_linker='NetBSD ld.elf_so'
16329   fi
16330   shlibpath_var=LD_LIBRARY_PATH
16331   shlibpath_overrides_runpath=yes
16332   hardcode_into_libs=yes
16333   ;;
16334
16335 newsos6)
16336   version_type=linux
16337   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16338   shlibpath_var=LD_LIBRARY_PATH
16339   shlibpath_overrides_runpath=yes
16340   ;;
16341
16342 nto-qnx*)
16343   version_type=linux
16344   need_lib_prefix=no
16345   need_version=no
16346   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16347   soname_spec='${libname}${release}${shared_ext}$major'
16348   shlibpath_var=LD_LIBRARY_PATH
16349   shlibpath_overrides_runpath=yes
16350   ;;
16351
16352 openbsd*)
16353   version_type=sunos
16354   sys_lib_dlsearch_path_spec="/usr/lib"
16355   need_lib_prefix=no
16356   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16357   case $host_os in
16358     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16359     *)                         need_version=no  ;;
16360   esac
16361   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16362   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16363   shlibpath_var=LD_LIBRARY_PATH
16364   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16365     case $host_os in
16366       openbsd2.[89] | openbsd2.[89].*)
16367         shlibpath_overrides_runpath=no
16368         ;;
16369       *)
16370         shlibpath_overrides_runpath=yes
16371         ;;
16372       esac
16373   else
16374     shlibpath_overrides_runpath=yes
16375   fi
16376   ;;
16377
16378 os2*)
16379   libname_spec='$name'
16380   shrext_cmds=".dll"
16381   need_lib_prefix=no
16382   library_names_spec='$libname${shared_ext} $libname.a'
16383   dynamic_linker='OS/2 ld.exe'
16384   shlibpath_var=LIBPATH
16385   ;;
16386
16387 osf3* | osf4* | osf5*)
16388   version_type=osf
16389   need_lib_prefix=no
16390   need_version=no
16391   soname_spec='${libname}${release}${shared_ext}$major'
16392   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16393   shlibpath_var=LD_LIBRARY_PATH
16394   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16395   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16396   ;;
16397
16398 solaris*)
16399   version_type=linux
16400   need_lib_prefix=no
16401   need_version=no
16402   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16403   soname_spec='${libname}${release}${shared_ext}$major'
16404   shlibpath_var=LD_LIBRARY_PATH
16405   shlibpath_overrides_runpath=yes
16406   hardcode_into_libs=yes
16407   # ldd complains unless libraries are executable
16408   postinstall_cmds='chmod +x $lib'
16409   ;;
16410
16411 sunos4*)
16412   version_type=sunos
16413   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16414   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16415   shlibpath_var=LD_LIBRARY_PATH
16416   shlibpath_overrides_runpath=yes
16417   if test "$with_gnu_ld" = yes; then
16418     need_lib_prefix=no
16419   fi
16420   need_version=yes
16421   ;;
16422
16423 sysv4 | sysv4.3*)
16424   version_type=linux
16425   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16426   soname_spec='${libname}${release}${shared_ext}$major'
16427   shlibpath_var=LD_LIBRARY_PATH
16428   case $host_vendor in
16429     sni)
16430       shlibpath_overrides_runpath=no
16431       need_lib_prefix=no
16432       export_dynamic_flag_spec='${wl}-Blargedynsym'
16433       runpath_var=LD_RUN_PATH
16434       ;;
16435     siemens)
16436       need_lib_prefix=no
16437       ;;
16438     motorola)
16439       need_lib_prefix=no
16440       need_version=no
16441       shlibpath_overrides_runpath=no
16442       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16443       ;;
16444   esac
16445   ;;
16446
16447 sysv4*MP*)
16448   if test -d /usr/nec ;then
16449     version_type=linux
16450     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16451     soname_spec='$libname${shared_ext}.$major'
16452     shlibpath_var=LD_LIBRARY_PATH
16453   fi
16454   ;;
16455
16456 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16457   version_type=freebsd-elf
16458   need_lib_prefix=no
16459   need_version=no
16460   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16461   soname_spec='${libname}${release}${shared_ext}$major'
16462   shlibpath_var=LD_LIBRARY_PATH
16463   hardcode_into_libs=yes
16464   if test "$with_gnu_ld" = yes; then
16465     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16466     shlibpath_overrides_runpath=no
16467   else
16468     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16469     shlibpath_overrides_runpath=yes
16470     case $host_os in
16471       sco3.2v5*)
16472         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16473         ;;
16474     esac
16475   fi
16476   sys_lib_dlsearch_path_spec='/usr/lib'
16477   ;;
16478
16479 uts4*)
16480   version_type=linux
16481   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16482   soname_spec='${libname}${release}${shared_ext}$major'
16483   shlibpath_var=LD_LIBRARY_PATH
16484   ;;
16485
16486 *)
16487   dynamic_linker=no
16488   ;;
16489 esac
16490 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16491 echo "${ECHO_T}$dynamic_linker" >&6; }
16492 test "$dynamic_linker" = no && can_build_shared=no
16493
16494 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16495 if test "$GCC" = yes; then
16496   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16497 fi
16498
16499 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16500 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16501 hardcode_action=
16502 if test -n "$hardcode_libdir_flag_spec" || \
16503    test -n "$runpath_var" || \
16504    test "X$hardcode_automatic" = "Xyes" ; then
16505
16506   # We can hardcode non-existant directories.
16507   if test "$hardcode_direct" != no &&
16508      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16509      # have to relink, otherwise we might link with an installed library
16510      # when we should be linking with a yet-to-be-installed one
16511      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16512      test "$hardcode_minus_L" != no; then
16513     # Linking always hardcodes the temporary library directory.
16514     hardcode_action=relink
16515   else
16516     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16517     hardcode_action=immediate
16518   fi
16519 else
16520   # We cannot hardcode anything, or else we can only hardcode existing
16521   # directories.
16522   hardcode_action=unsupported
16523 fi
16524 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16525 echo "${ECHO_T}$hardcode_action" >&6; }
16526
16527 if test "$hardcode_action" = relink; then
16528   # Fast installation is not supported
16529   enable_fast_install=no
16530 elif test "$shlibpath_overrides_runpath" = yes ||
16531      test "$enable_shared" = no; then
16532   # Fast installation is not necessary
16533   enable_fast_install=needless
16534 fi
16535
16536 striplib=
16537 old_striplib=
16538 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16539 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16540 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16541   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16542   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16543   { echo "$as_me:$LINENO: result: yes" >&5
16544 echo "${ECHO_T}yes" >&6; }
16545 else
16546 # FIXME - insert some real tests, host_os isn't really good enough
16547   case $host_os in
16548    darwin*)
16549        if test -n "$STRIP" ; then
16550          striplib="$STRIP -x"
16551          { echo "$as_me:$LINENO: result: yes" >&5
16552 echo "${ECHO_T}yes" >&6; }
16553        else
16554   { echo "$as_me:$LINENO: result: no" >&5
16555 echo "${ECHO_T}no" >&6; }
16556 fi
16557        ;;
16558    *)
16559   { echo "$as_me:$LINENO: result: no" >&5
16560 echo "${ECHO_T}no" >&6; }
16561     ;;
16562   esac
16563 fi
16564
16565 if test "x$enable_dlopen" != xyes; then
16566   enable_dlopen=unknown
16567   enable_dlopen_self=unknown
16568   enable_dlopen_self_static=unknown
16569 else
16570   lt_cv_dlopen=no
16571   lt_cv_dlopen_libs=
16572
16573   case $host_os in
16574   beos*)
16575     lt_cv_dlopen="load_add_on"
16576     lt_cv_dlopen_libs=
16577     lt_cv_dlopen_self=yes
16578     ;;
16579
16580   mingw* | pw32*)
16581     lt_cv_dlopen="LoadLibrary"
16582     lt_cv_dlopen_libs=
16583    ;;
16584
16585   cygwin*)
16586     lt_cv_dlopen="dlopen"
16587     lt_cv_dlopen_libs=
16588    ;;
16589
16590   darwin*)
16591   # if libdl is installed we need to link against it
16592     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16593 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16594 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16595   echo $ECHO_N "(cached) $ECHO_C" >&6
16596 else
16597   ac_check_lib_save_LIBS=$LIBS
16598 LIBS="-ldl  $LIBS"
16599 cat >conftest.$ac_ext <<_ACEOF
16600 /* confdefs.h.  */
16601 _ACEOF
16602 cat confdefs.h >>conftest.$ac_ext
16603 cat >>conftest.$ac_ext <<_ACEOF
16604 /* end confdefs.h.  */
16605
16606 /* Override any GCC internal prototype to avoid an error.
16607    Use char because int might match the return type of a GCC
16608    builtin and then its argument prototype would still apply.  */
16609 #ifdef __cplusplus
16610 extern "C"
16611 #endif
16612 char dlopen ();
16613 int
16614 main ()
16615 {
16616 return dlopen ();
16617   ;
16618   return 0;
16619 }
16620 _ACEOF
16621 rm -f conftest.$ac_objext conftest$ac_exeext
16622 if { (ac_try="$ac_link"
16623 case "(($ac_try" in
16624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16625   *) ac_try_echo=$ac_try;;
16626 esac
16627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16628   (eval "$ac_link") 2>conftest.er1
16629   ac_status=$?
16630   grep -v '^ *+' conftest.er1 >conftest.err
16631   rm -f conftest.er1
16632   cat conftest.err >&5
16633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16634   (exit $ac_status); } &&
16635          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16636   { (case "(($ac_try" in
16637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16638   *) ac_try_echo=$ac_try;;
16639 esac
16640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16641   (eval "$ac_try") 2>&5
16642   ac_status=$?
16643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16644   (exit $ac_status); }; } &&
16645          { ac_try='test -s conftest$ac_exeext'
16646   { (case "(($ac_try" in
16647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16648   *) ac_try_echo=$ac_try;;
16649 esac
16650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16651   (eval "$ac_try") 2>&5
16652   ac_status=$?
16653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16654   (exit $ac_status); }; }; then
16655   ac_cv_lib_dl_dlopen=yes
16656 else
16657   echo "$as_me: failed program was:" >&5
16658 sed 's/^/| /' conftest.$ac_ext >&5
16659
16660         ac_cv_lib_dl_dlopen=no
16661 fi
16662
16663 rm -f core conftest.err conftest.$ac_objext \
16664       conftest$ac_exeext conftest.$ac_ext
16665 LIBS=$ac_check_lib_save_LIBS
16666 fi
16667 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16668 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16669 if test $ac_cv_lib_dl_dlopen = yes; then
16670   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16671 else
16672
16673     lt_cv_dlopen="dyld"
16674     lt_cv_dlopen_libs=
16675     lt_cv_dlopen_self=yes
16676
16677 fi
16678
16679    ;;
16680
16681   *)
16682     { echo "$as_me:$LINENO: checking for shl_load" >&5
16683 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16684 if test "${ac_cv_func_shl_load+set}" = set; then
16685   echo $ECHO_N "(cached) $ECHO_C" >&6
16686 else
16687   cat >conftest.$ac_ext <<_ACEOF
16688 /* confdefs.h.  */
16689 _ACEOF
16690 cat confdefs.h >>conftest.$ac_ext
16691 cat >>conftest.$ac_ext <<_ACEOF
16692 /* end confdefs.h.  */
16693 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16694    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16695 #define shl_load innocuous_shl_load
16696
16697 /* System header to define __stub macros and hopefully few prototypes,
16698     which can conflict with char shl_load (); below.
16699     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16700     <limits.h> exists even on freestanding compilers.  */
16701
16702 #ifdef __STDC__
16703 # include <limits.h>
16704 #else
16705 # include <assert.h>
16706 #endif
16707
16708 #undef shl_load
16709
16710 /* Override any GCC internal prototype to avoid an error.
16711    Use char because int might match the return type of a GCC
16712    builtin and then its argument prototype would still apply.  */
16713 #ifdef __cplusplus
16714 extern "C"
16715 #endif
16716 char shl_load ();
16717 /* The GNU C library defines this for functions which it implements
16718     to always fail with ENOSYS.  Some functions are actually named
16719     something starting with __ and the normal name is an alias.  */
16720 #if defined __stub_shl_load || defined __stub___shl_load
16721 choke me
16722 #endif
16723
16724 int
16725 main ()
16726 {
16727 return shl_load ();
16728   ;
16729   return 0;
16730 }
16731 _ACEOF
16732 rm -f conftest.$ac_objext conftest$ac_exeext
16733 if { (ac_try="$ac_link"
16734 case "(($ac_try" in
16735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16736   *) ac_try_echo=$ac_try;;
16737 esac
16738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16739   (eval "$ac_link") 2>conftest.er1
16740   ac_status=$?
16741   grep -v '^ *+' conftest.er1 >conftest.err
16742   rm -f conftest.er1
16743   cat conftest.err >&5
16744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16745   (exit $ac_status); } &&
16746          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16747   { (case "(($ac_try" in
16748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16749   *) ac_try_echo=$ac_try;;
16750 esac
16751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16752   (eval "$ac_try") 2>&5
16753   ac_status=$?
16754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16755   (exit $ac_status); }; } &&
16756          { ac_try='test -s conftest$ac_exeext'
16757   { (case "(($ac_try" in
16758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16759   *) ac_try_echo=$ac_try;;
16760 esac
16761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16762   (eval "$ac_try") 2>&5
16763   ac_status=$?
16764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16765   (exit $ac_status); }; }; then
16766   ac_cv_func_shl_load=yes
16767 else
16768   echo "$as_me: failed program was:" >&5
16769 sed 's/^/| /' conftest.$ac_ext >&5
16770
16771         ac_cv_func_shl_load=no
16772 fi
16773
16774 rm -f core conftest.err conftest.$ac_objext \
16775       conftest$ac_exeext conftest.$ac_ext
16776 fi
16777 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16778 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
16779 if test $ac_cv_func_shl_load = yes; then
16780   lt_cv_dlopen="shl_load"
16781 else
16782   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16783 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
16784 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16785   echo $ECHO_N "(cached) $ECHO_C" >&6
16786 else
16787   ac_check_lib_save_LIBS=$LIBS
16788 LIBS="-ldld  $LIBS"
16789 cat >conftest.$ac_ext <<_ACEOF
16790 /* confdefs.h.  */
16791 _ACEOF
16792 cat confdefs.h >>conftest.$ac_ext
16793 cat >>conftest.$ac_ext <<_ACEOF
16794 /* end confdefs.h.  */
16795
16796 /* Override any GCC internal prototype to avoid an error.
16797    Use char because int might match the return type of a GCC
16798    builtin and then its argument prototype would still apply.  */
16799 #ifdef __cplusplus
16800 extern "C"
16801 #endif
16802 char shl_load ();
16803 int
16804 main ()
16805 {
16806 return shl_load ();
16807   ;
16808   return 0;
16809 }
16810 _ACEOF
16811 rm -f conftest.$ac_objext conftest$ac_exeext
16812 if { (ac_try="$ac_link"
16813 case "(($ac_try" in
16814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16815   *) ac_try_echo=$ac_try;;
16816 esac
16817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16818   (eval "$ac_link") 2>conftest.er1
16819   ac_status=$?
16820   grep -v '^ *+' conftest.er1 >conftest.err
16821   rm -f conftest.er1
16822   cat conftest.err >&5
16823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16824   (exit $ac_status); } &&
16825          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16826   { (case "(($ac_try" in
16827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16828   *) ac_try_echo=$ac_try;;
16829 esac
16830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16831   (eval "$ac_try") 2>&5
16832   ac_status=$?
16833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834   (exit $ac_status); }; } &&
16835          { ac_try='test -s conftest$ac_exeext'
16836   { (case "(($ac_try" in
16837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16838   *) ac_try_echo=$ac_try;;
16839 esac
16840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16841   (eval "$ac_try") 2>&5
16842   ac_status=$?
16843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16844   (exit $ac_status); }; }; then
16845   ac_cv_lib_dld_shl_load=yes
16846 else
16847   echo "$as_me: failed program was:" >&5
16848 sed 's/^/| /' conftest.$ac_ext >&5
16849
16850         ac_cv_lib_dld_shl_load=no
16851 fi
16852
16853 rm -f core conftest.err conftest.$ac_objext \
16854       conftest$ac_exeext conftest.$ac_ext
16855 LIBS=$ac_check_lib_save_LIBS
16856 fi
16857 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16858 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
16859 if test $ac_cv_lib_dld_shl_load = yes; then
16860   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16861 else
16862   { echo "$as_me:$LINENO: checking for dlopen" >&5
16863 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
16864 if test "${ac_cv_func_dlopen+set}" = set; then
16865   echo $ECHO_N "(cached) $ECHO_C" >&6
16866 else
16867   cat >conftest.$ac_ext <<_ACEOF
16868 /* confdefs.h.  */
16869 _ACEOF
16870 cat confdefs.h >>conftest.$ac_ext
16871 cat >>conftest.$ac_ext <<_ACEOF
16872 /* end confdefs.h.  */
16873 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16874    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16875 #define dlopen innocuous_dlopen
16876
16877 /* System header to define __stub macros and hopefully few prototypes,
16878     which can conflict with char dlopen (); below.
16879     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16880     <limits.h> exists even on freestanding compilers.  */
16881
16882 #ifdef __STDC__
16883 # include <limits.h>
16884 #else
16885 # include <assert.h>
16886 #endif
16887
16888 #undef dlopen
16889
16890 /* Override any GCC internal prototype to avoid an error.
16891    Use char because int might match the return type of a GCC
16892    builtin and then its argument prototype would still apply.  */
16893 #ifdef __cplusplus
16894 extern "C"
16895 #endif
16896 char dlopen ();
16897 /* The GNU C library defines this for functions which it implements
16898     to always fail with ENOSYS.  Some functions are actually named
16899     something starting with __ and the normal name is an alias.  */
16900 #if defined __stub_dlopen || defined __stub___dlopen
16901 choke me
16902 #endif
16903
16904 int
16905 main ()
16906 {
16907 return dlopen ();
16908   ;
16909   return 0;
16910 }
16911 _ACEOF
16912 rm -f conftest.$ac_objext conftest$ac_exeext
16913 if { (ac_try="$ac_link"
16914 case "(($ac_try" in
16915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16916   *) ac_try_echo=$ac_try;;
16917 esac
16918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16919   (eval "$ac_link") 2>conftest.er1
16920   ac_status=$?
16921   grep -v '^ *+' conftest.er1 >conftest.err
16922   rm -f conftest.er1
16923   cat conftest.err >&5
16924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16925   (exit $ac_status); } &&
16926          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16927   { (case "(($ac_try" in
16928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16929   *) ac_try_echo=$ac_try;;
16930 esac
16931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16932   (eval "$ac_try") 2>&5
16933   ac_status=$?
16934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16935   (exit $ac_status); }; } &&
16936          { ac_try='test -s conftest$ac_exeext'
16937   { (case "(($ac_try" in
16938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16939   *) ac_try_echo=$ac_try;;
16940 esac
16941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16942   (eval "$ac_try") 2>&5
16943   ac_status=$?
16944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16945   (exit $ac_status); }; }; then
16946   ac_cv_func_dlopen=yes
16947 else
16948   echo "$as_me: failed program was:" >&5
16949 sed 's/^/| /' conftest.$ac_ext >&5
16950
16951         ac_cv_func_dlopen=no
16952 fi
16953
16954 rm -f core conftest.err conftest.$ac_objext \
16955       conftest$ac_exeext conftest.$ac_ext
16956 fi
16957 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16958 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
16959 if test $ac_cv_func_dlopen = yes; then
16960   lt_cv_dlopen="dlopen"
16961 else
16962   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16963 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16964 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16965   echo $ECHO_N "(cached) $ECHO_C" >&6
16966 else
16967   ac_check_lib_save_LIBS=$LIBS
16968 LIBS="-ldl  $LIBS"
16969 cat >conftest.$ac_ext <<_ACEOF
16970 /* confdefs.h.  */
16971 _ACEOF
16972 cat confdefs.h >>conftest.$ac_ext
16973 cat >>conftest.$ac_ext <<_ACEOF
16974 /* end confdefs.h.  */
16975
16976 /* Override any GCC internal prototype to avoid an error.
16977    Use char because int might match the return type of a GCC
16978    builtin and then its argument prototype would still apply.  */
16979 #ifdef __cplusplus
16980 extern "C"
16981 #endif
16982 char dlopen ();
16983 int
16984 main ()
16985 {
16986 return dlopen ();
16987   ;
16988   return 0;
16989 }
16990 _ACEOF
16991 rm -f conftest.$ac_objext conftest$ac_exeext
16992 if { (ac_try="$ac_link"
16993 case "(($ac_try" in
16994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16995   *) ac_try_echo=$ac_try;;
16996 esac
16997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16998   (eval "$ac_link") 2>conftest.er1
16999   ac_status=$?
17000   grep -v '^ *+' conftest.er1 >conftest.err
17001   rm -f conftest.er1
17002   cat conftest.err >&5
17003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17004   (exit $ac_status); } &&
17005          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17006   { (case "(($ac_try" in
17007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17008   *) ac_try_echo=$ac_try;;
17009 esac
17010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17011   (eval "$ac_try") 2>&5
17012   ac_status=$?
17013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17014   (exit $ac_status); }; } &&
17015          { ac_try='test -s conftest$ac_exeext'
17016   { (case "(($ac_try" in
17017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17018   *) ac_try_echo=$ac_try;;
17019 esac
17020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17021   (eval "$ac_try") 2>&5
17022   ac_status=$?
17023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17024   (exit $ac_status); }; }; then
17025   ac_cv_lib_dl_dlopen=yes
17026 else
17027   echo "$as_me: failed program was:" >&5
17028 sed 's/^/| /' conftest.$ac_ext >&5
17029
17030         ac_cv_lib_dl_dlopen=no
17031 fi
17032
17033 rm -f core conftest.err conftest.$ac_objext \
17034       conftest$ac_exeext conftest.$ac_ext
17035 LIBS=$ac_check_lib_save_LIBS
17036 fi
17037 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17038 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17039 if test $ac_cv_lib_dl_dlopen = yes; then
17040   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17041 else
17042   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17043 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17044 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17045   echo $ECHO_N "(cached) $ECHO_C" >&6
17046 else
17047   ac_check_lib_save_LIBS=$LIBS
17048 LIBS="-lsvld  $LIBS"
17049 cat >conftest.$ac_ext <<_ACEOF
17050 /* confdefs.h.  */
17051 _ACEOF
17052 cat confdefs.h >>conftest.$ac_ext
17053 cat >>conftest.$ac_ext <<_ACEOF
17054 /* end confdefs.h.  */
17055
17056 /* Override any GCC internal prototype to avoid an error.
17057    Use char because int might match the return type of a GCC
17058    builtin and then its argument prototype would still apply.  */
17059 #ifdef __cplusplus
17060 extern "C"
17061 #endif
17062 char dlopen ();
17063 int
17064 main ()
17065 {
17066 return dlopen ();
17067   ;
17068   return 0;
17069 }
17070 _ACEOF
17071 rm -f conftest.$ac_objext conftest$ac_exeext
17072 if { (ac_try="$ac_link"
17073 case "(($ac_try" in
17074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17075   *) ac_try_echo=$ac_try;;
17076 esac
17077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17078   (eval "$ac_link") 2>conftest.er1
17079   ac_status=$?
17080   grep -v '^ *+' conftest.er1 >conftest.err
17081   rm -f conftest.er1
17082   cat conftest.err >&5
17083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17084   (exit $ac_status); } &&
17085          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17086   { (case "(($ac_try" in
17087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17088   *) ac_try_echo=$ac_try;;
17089 esac
17090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17091   (eval "$ac_try") 2>&5
17092   ac_status=$?
17093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17094   (exit $ac_status); }; } &&
17095          { ac_try='test -s conftest$ac_exeext'
17096   { (case "(($ac_try" in
17097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17098   *) ac_try_echo=$ac_try;;
17099 esac
17100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17101   (eval "$ac_try") 2>&5
17102   ac_status=$?
17103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17104   (exit $ac_status); }; }; then
17105   ac_cv_lib_svld_dlopen=yes
17106 else
17107   echo "$as_me: failed program was:" >&5
17108 sed 's/^/| /' conftest.$ac_ext >&5
17109
17110         ac_cv_lib_svld_dlopen=no
17111 fi
17112
17113 rm -f core conftest.err conftest.$ac_objext \
17114       conftest$ac_exeext conftest.$ac_ext
17115 LIBS=$ac_check_lib_save_LIBS
17116 fi
17117 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17118 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17119 if test $ac_cv_lib_svld_dlopen = yes; then
17120   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17121 else
17122   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17123 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17124 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17125   echo $ECHO_N "(cached) $ECHO_C" >&6
17126 else
17127   ac_check_lib_save_LIBS=$LIBS
17128 LIBS="-ldld  $LIBS"
17129 cat >conftest.$ac_ext <<_ACEOF
17130 /* confdefs.h.  */
17131 _ACEOF
17132 cat confdefs.h >>conftest.$ac_ext
17133 cat >>conftest.$ac_ext <<_ACEOF
17134 /* end confdefs.h.  */
17135
17136 /* Override any GCC internal prototype to avoid an error.
17137    Use char because int might match the return type of a GCC
17138    builtin and then its argument prototype would still apply.  */
17139 #ifdef __cplusplus
17140 extern "C"
17141 #endif
17142 char dld_link ();
17143 int
17144 main ()
17145 {
17146 return dld_link ();
17147   ;
17148   return 0;
17149 }
17150 _ACEOF
17151 rm -f conftest.$ac_objext conftest$ac_exeext
17152 if { (ac_try="$ac_link"
17153 case "(($ac_try" in
17154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17155   *) ac_try_echo=$ac_try;;
17156 esac
17157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17158   (eval "$ac_link") 2>conftest.er1
17159   ac_status=$?
17160   grep -v '^ *+' conftest.er1 >conftest.err
17161   rm -f conftest.er1
17162   cat conftest.err >&5
17163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17164   (exit $ac_status); } &&
17165          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17166   { (case "(($ac_try" in
17167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17168   *) ac_try_echo=$ac_try;;
17169 esac
17170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17171   (eval "$ac_try") 2>&5
17172   ac_status=$?
17173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17174   (exit $ac_status); }; } &&
17175          { ac_try='test -s conftest$ac_exeext'
17176   { (case "(($ac_try" in
17177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17178   *) ac_try_echo=$ac_try;;
17179 esac
17180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17181   (eval "$ac_try") 2>&5
17182   ac_status=$?
17183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17184   (exit $ac_status); }; }; then
17185   ac_cv_lib_dld_dld_link=yes
17186 else
17187   echo "$as_me: failed program was:" >&5
17188 sed 's/^/| /' conftest.$ac_ext >&5
17189
17190         ac_cv_lib_dld_dld_link=no
17191 fi
17192
17193 rm -f core conftest.err conftest.$ac_objext \
17194       conftest$ac_exeext conftest.$ac_ext
17195 LIBS=$ac_check_lib_save_LIBS
17196 fi
17197 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17198 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17199 if test $ac_cv_lib_dld_dld_link = yes; then
17200   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17201 fi
17202
17203
17204 fi
17205
17206
17207 fi
17208
17209
17210 fi
17211
17212
17213 fi
17214
17215
17216 fi
17217
17218     ;;
17219   esac
17220
17221   if test "x$lt_cv_dlopen" != xno; then
17222     enable_dlopen=yes
17223   else
17224     enable_dlopen=no
17225   fi
17226
17227   case $lt_cv_dlopen in
17228   dlopen)
17229     save_CPPFLAGS="$CPPFLAGS"
17230     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17231
17232     save_LDFLAGS="$LDFLAGS"
17233     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17234
17235     save_LIBS="$LIBS"
17236     LIBS="$lt_cv_dlopen_libs $LIBS"
17237
17238     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17239 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17240 if test "${lt_cv_dlopen_self+set}" = set; then
17241   echo $ECHO_N "(cached) $ECHO_C" >&6
17242 else
17243           if test "$cross_compiling" = yes; then :
17244   lt_cv_dlopen_self=cross
17245 else
17246   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17247   lt_status=$lt_dlunknown
17248   cat > conftest.$ac_ext <<EOF
17249 #line 17249 "configure"
17250 #include "confdefs.h"
17251
17252 #if HAVE_DLFCN_H
17253 #include <dlfcn.h>
17254 #endif
17255
17256 #include <stdio.h>
17257
17258 #ifdef RTLD_GLOBAL
17259 #  define LT_DLGLOBAL           RTLD_GLOBAL
17260 #else
17261 #  ifdef DL_GLOBAL
17262 #    define LT_DLGLOBAL         DL_GLOBAL
17263 #  else
17264 #    define LT_DLGLOBAL         0
17265 #  endif
17266 #endif
17267
17268 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17269    find out it does not work in some platform. */
17270 #ifndef LT_DLLAZY_OR_NOW
17271 #  ifdef RTLD_LAZY
17272 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17273 #  else
17274 #    ifdef DL_LAZY
17275 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17276 #    else
17277 #      ifdef RTLD_NOW
17278 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17279 #      else
17280 #        ifdef DL_NOW
17281 #          define LT_DLLAZY_OR_NOW      DL_NOW
17282 #        else
17283 #          define LT_DLLAZY_OR_NOW      0
17284 #        endif
17285 #      endif
17286 #    endif
17287 #  endif
17288 #endif
17289
17290 #ifdef __cplusplus
17291 extern "C" void exit (int);
17292 #endif
17293
17294 void fnord() { int i=42;}
17295 int main ()
17296 {
17297   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17298   int status = $lt_dlunknown;
17299
17300   if (self)
17301     {
17302       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17303       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17304       /* dlclose (self); */
17305     }
17306   else
17307     puts (dlerror ());
17308
17309     exit (status);
17310 }
17311 EOF
17312   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17313   (eval $ac_link) 2>&5
17314   ac_status=$?
17315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17316   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17317     (./conftest; exit; ) >&5 2>/dev/null
17318     lt_status=$?
17319     case x$lt_status in
17320       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17321       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17322       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17323     esac
17324   else :
17325     # compilation failed
17326     lt_cv_dlopen_self=no
17327   fi
17328 fi
17329 rm -fr conftest*
17330
17331
17332 fi
17333 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17334 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17335
17336     if test "x$lt_cv_dlopen_self" = xyes; then
17337       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17338       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17339 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17340 if test "${lt_cv_dlopen_self_static+set}" = set; then
17341   echo $ECHO_N "(cached) $ECHO_C" >&6
17342 else
17343           if test "$cross_compiling" = yes; then :
17344   lt_cv_dlopen_self_static=cross
17345 else
17346   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17347   lt_status=$lt_dlunknown
17348   cat > conftest.$ac_ext <<EOF
17349 #line 17349 "configure"
17350 #include "confdefs.h"
17351
17352 #if HAVE_DLFCN_H
17353 #include <dlfcn.h>
17354 #endif
17355
17356 #include <stdio.h>
17357
17358 #ifdef RTLD_GLOBAL
17359 #  define LT_DLGLOBAL           RTLD_GLOBAL
17360 #else
17361 #  ifdef DL_GLOBAL
17362 #    define LT_DLGLOBAL         DL_GLOBAL
17363 #  else
17364 #    define LT_DLGLOBAL         0
17365 #  endif
17366 #endif
17367
17368 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17369    find out it does not work in some platform. */
17370 #ifndef LT_DLLAZY_OR_NOW
17371 #  ifdef RTLD_LAZY
17372 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17373 #  else
17374 #    ifdef DL_LAZY
17375 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17376 #    else
17377 #      ifdef RTLD_NOW
17378 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17379 #      else
17380 #        ifdef DL_NOW
17381 #          define LT_DLLAZY_OR_NOW      DL_NOW
17382 #        else
17383 #          define LT_DLLAZY_OR_NOW      0
17384 #        endif
17385 #      endif
17386 #    endif
17387 #  endif
17388 #endif
17389
17390 #ifdef __cplusplus
17391 extern "C" void exit (int);
17392 #endif
17393
17394 void fnord() { int i=42;}
17395 int main ()
17396 {
17397   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17398   int status = $lt_dlunknown;
17399
17400   if (self)
17401     {
17402       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17403       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17404       /* dlclose (self); */
17405     }
17406   else
17407     puts (dlerror ());
17408
17409     exit (status);
17410 }
17411 EOF
17412   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17413   (eval $ac_link) 2>&5
17414   ac_status=$?
17415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17416   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17417     (./conftest; exit; ) >&5 2>/dev/null
17418     lt_status=$?
17419     case x$lt_status in
17420       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17421       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17422       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17423     esac
17424   else :
17425     # compilation failed
17426     lt_cv_dlopen_self_static=no
17427   fi
17428 fi
17429 rm -fr conftest*
17430
17431
17432 fi
17433 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17434 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17435     fi
17436
17437     CPPFLAGS="$save_CPPFLAGS"
17438     LDFLAGS="$save_LDFLAGS"
17439     LIBS="$save_LIBS"
17440     ;;
17441   esac
17442
17443   case $lt_cv_dlopen_self in
17444   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17445   *) enable_dlopen_self=unknown ;;
17446   esac
17447
17448   case $lt_cv_dlopen_self_static in
17449   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17450   *) enable_dlopen_self_static=unknown ;;
17451   esac
17452 fi
17453
17454
17455 # Report which library types will actually be built
17456 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17457 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17458 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17459 echo "${ECHO_T}$can_build_shared" >&6; }
17460
17461 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17462 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17463 test "$can_build_shared" = "no" && enable_shared=no
17464
17465 # On AIX, shared libraries and static libraries use the same namespace, and
17466 # are all built from PIC.
17467 case $host_os in
17468 aix3*)
17469   test "$enable_shared" = yes && enable_static=no
17470   if test -n "$RANLIB"; then
17471     archive_cmds="$archive_cmds~\$RANLIB \$lib"
17472     postinstall_cmds='$RANLIB $lib'
17473   fi
17474   ;;
17475
17476 aix4* | aix5*)
17477   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17478     test "$enable_shared" = yes && enable_static=no
17479   fi
17480     ;;
17481 esac
17482 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17483 echo "${ECHO_T}$enable_shared" >&6; }
17484
17485 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17486 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17487 # Make sure either enable_shared or enable_static is yes.
17488 test "$enable_shared" = yes || enable_static=yes
17489 { echo "$as_me:$LINENO: result: $enable_static" >&5
17490 echo "${ECHO_T}$enable_static" >&6; }
17491
17492 # The else clause should only fire when bootstrapping the
17493 # libtool distribution, otherwise you forgot to ship ltmain.sh
17494 # with your package, and you will get complaints that there are
17495 # no rules to generate ltmain.sh.
17496 if test -f "$ltmain"; then
17497   # See if we are running on zsh, and set the options which allow our commands through
17498   # without removal of \ escapes.
17499   if test -n "${ZSH_VERSION+set}" ; then
17500     setopt NO_GLOB_SUBST
17501   fi
17502   # Now quote all the things that may contain metacharacters while being
17503   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17504   # variables and quote the copies for generation of the libtool script.
17505   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17506     SED SHELL STRIP \
17507     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17508     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17509     deplibs_check_method reload_flag reload_cmds need_locks \
17510     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17511     lt_cv_sys_global_symbol_to_c_name_address \
17512     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17513     old_postinstall_cmds old_postuninstall_cmds \
17514     compiler \
17515     CC \
17516     LD \
17517     lt_prog_compiler_wl \
17518     lt_prog_compiler_pic \
17519     lt_prog_compiler_static \
17520     lt_prog_compiler_no_builtin_flag \
17521     export_dynamic_flag_spec \
17522     thread_safe_flag_spec \
17523     whole_archive_flag_spec \
17524     enable_shared_with_static_runtimes \
17525     old_archive_cmds \
17526     old_archive_from_new_cmds \
17527     predep_objects \
17528     postdep_objects \
17529     predeps \
17530     postdeps \
17531     compiler_lib_search_path \
17532     archive_cmds \
17533     archive_expsym_cmds \
17534     postinstall_cmds \
17535     postuninstall_cmds \
17536     old_archive_from_expsyms_cmds \
17537     allow_undefined_flag \
17538     no_undefined_flag \
17539     export_symbols_cmds \
17540     hardcode_libdir_flag_spec \
17541     hardcode_libdir_flag_spec_ld \
17542     hardcode_libdir_separator \
17543     hardcode_automatic \
17544     module_cmds \
17545     module_expsym_cmds \
17546     lt_cv_prog_compiler_c_o \
17547     exclude_expsyms \
17548     include_expsyms; do
17549
17550     case $var in
17551     old_archive_cmds | \
17552     old_archive_from_new_cmds | \
17553     archive_cmds | \
17554     archive_expsym_cmds | \
17555     module_cmds | \
17556     module_expsym_cmds | \
17557     old_archive_from_expsyms_cmds | \
17558     export_symbols_cmds | \
17559     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17560     postinstall_cmds | postuninstall_cmds | \
17561     old_postinstall_cmds | old_postuninstall_cmds | \
17562     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17563       # Double-quote double-evaled strings.
17564       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17565       ;;
17566     *)
17567       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17568       ;;
17569     esac
17570   done
17571
17572   case $lt_echo in
17573   *'\$0 --fallback-echo"')
17574     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17575     ;;
17576   esac
17577
17578 cfgfile="${ofile}T"
17579   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17580   $rm -f "$cfgfile"
17581   { echo "$as_me:$LINENO: creating $ofile" >&5
17582 echo "$as_me: creating $ofile" >&6;}
17583
17584   cat <<__EOF__ >> "$cfgfile"
17585 #! $SHELL
17586
17587 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17588 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17589 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17590 #
17591 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17592 # Free Software Foundation, Inc.
17593 #
17594 # This file is part of GNU Libtool:
17595 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17596 #
17597 # This program is free software; you can redistribute it and/or modify
17598 # it under the terms of the GNU General Public License as published by
17599 # the Free Software Foundation; either version 2 of the License, or
17600 # (at your option) any later version.
17601 #
17602 # This program is distributed in the hope that it will be useful, but
17603 # WITHOUT ANY WARRANTY; without even the implied warranty of
17604 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17605 # General Public License for more details.
17606 #
17607 # You should have received a copy of the GNU General Public License
17608 # along with this program; if not, write to the Free Software
17609 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17610 #
17611 # As a special exception to the GNU General Public License, if you
17612 # distribute this file as part of a program that contains a
17613 # configuration script generated by Autoconf, you may include it under
17614 # the same distribution terms that you use for the rest of that program.
17615
17616 # A sed program that does not truncate output.
17617 SED=$lt_SED
17618
17619 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17620 Xsed="$SED -e 1s/^X//"
17621
17622 # The HP-UX ksh and POSIX shell print the target directory to stdout
17623 # if CDPATH is set.
17624 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17625
17626 # The names of the tagged configurations supported by this script.
17627 available_tags=
17628
17629 # ### BEGIN LIBTOOL CONFIG
17630
17631 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17632
17633 # Shell to use when invoking shell scripts.
17634 SHELL=$lt_SHELL
17635
17636 # Whether or not to build shared libraries.
17637 build_libtool_libs=$enable_shared
17638
17639 # Whether or not to build static libraries.
17640 build_old_libs=$enable_static
17641
17642 # Whether or not to add -lc for building shared libraries.
17643 build_libtool_need_lc=$archive_cmds_need_lc
17644
17645 # Whether or not to disallow shared libs when runtime libs are static
17646 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17647
17648 # Whether or not to optimize for fast installation.
17649 fast_install=$enable_fast_install
17650
17651 # The host system.
17652 host_alias=$host_alias
17653 host=$host
17654 host_os=$host_os
17655
17656 # The build system.
17657 build_alias=$build_alias
17658 build=$build
17659 build_os=$build_os
17660
17661 # An echo program that does not interpret backslashes.
17662 echo=$lt_echo
17663
17664 # The archiver.
17665 AR=$lt_AR
17666 AR_FLAGS=$lt_AR_FLAGS
17667
17668 # A C compiler.
17669 LTCC=$lt_LTCC
17670
17671 # LTCC compiler flags.
17672 LTCFLAGS=$lt_LTCFLAGS
17673
17674 # A language-specific compiler.
17675 CC=$lt_compiler
17676
17677 # Is the compiler the GNU C compiler?
17678 with_gcc=$GCC
17679
17680 # An ERE matcher.
17681 EGREP=$lt_EGREP
17682
17683 # The linker used to build libraries.
17684 LD=$lt_LD
17685
17686 # Whether we need hard or soft links.
17687 LN_S=$lt_LN_S
17688
17689 # A BSD-compatible nm program.
17690 NM=$lt_NM
17691
17692 # A symbol stripping program
17693 STRIP=$lt_STRIP
17694
17695 # Used to examine libraries when file_magic_cmd begins "file"
17696 MAGIC_CMD=$MAGIC_CMD
17697
17698 # Used on cygwin: DLL creation program.
17699 DLLTOOL="$DLLTOOL"
17700
17701 # Used on cygwin: object dumper.
17702 OBJDUMP="$OBJDUMP"
17703
17704 # Used on cygwin: assembler.
17705 AS="$AS"
17706
17707 # The name of the directory that contains temporary libtool files.
17708 objdir=$objdir
17709
17710 # How to create reloadable object files.
17711 reload_flag=$lt_reload_flag
17712 reload_cmds=$lt_reload_cmds
17713
17714 # How to pass a linker flag through the compiler.
17715 wl=$lt_lt_prog_compiler_wl
17716
17717 # Object file suffix (normally "o").
17718 objext="$ac_objext"
17719
17720 # Old archive suffix (normally "a").
17721 libext="$libext"
17722
17723 # Shared library suffix (normally ".so").
17724 shrext_cmds='$shrext_cmds'
17725
17726 # Executable file suffix (normally "").
17727 exeext="$exeext"
17728
17729 # Additional compiler flags for building library objects.
17730 pic_flag=$lt_lt_prog_compiler_pic
17731 pic_mode=$pic_mode
17732
17733 # What is the maximum length of a command?
17734 max_cmd_len=$lt_cv_sys_max_cmd_len
17735
17736 # Does compiler simultaneously support -c and -o options?
17737 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17738
17739 # Must we lock files when doing compilation?
17740 need_locks=$lt_need_locks
17741
17742 # Do we need the lib prefix for modules?
17743 need_lib_prefix=$need_lib_prefix
17744
17745 # Do we need a version for libraries?
17746 need_version=$need_version
17747
17748 # Whether dlopen is supported.
17749 dlopen_support=$enable_dlopen
17750
17751 # Whether dlopen of programs is supported.
17752 dlopen_self=$enable_dlopen_self
17753
17754 # Whether dlopen of statically linked programs is supported.
17755 dlopen_self_static=$enable_dlopen_self_static
17756
17757 # Compiler flag to prevent dynamic linking.
17758 link_static_flag=$lt_lt_prog_compiler_static
17759
17760 # Compiler flag to turn off builtin functions.
17761 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17762
17763 # Compiler flag to allow reflexive dlopens.
17764 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17765
17766 # Compiler flag to generate shared objects directly from archives.
17767 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17768
17769 # Compiler flag to generate thread-safe objects.
17770 thread_safe_flag_spec=$lt_thread_safe_flag_spec
17771
17772 # Library versioning type.
17773 version_type=$version_type
17774
17775 # Format of library name prefix.
17776 libname_spec=$lt_libname_spec
17777
17778 # List of archive names.  First name is the real one, the rest are links.
17779 # The last name is the one that the linker finds with -lNAME.
17780 library_names_spec=$lt_library_names_spec
17781
17782 # The coded name of the library, if different from the real name.
17783 soname_spec=$lt_soname_spec
17784
17785 # Commands used to build and install an old-style archive.
17786 RANLIB=$lt_RANLIB
17787 old_archive_cmds=$lt_old_archive_cmds
17788 old_postinstall_cmds=$lt_old_postinstall_cmds
17789 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17790
17791 # Create an old-style archive from a shared archive.
17792 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17793
17794 # Create a temporary old-style archive to link instead of a shared archive.
17795 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17796
17797 # Commands used to build and install a shared archive.
17798 archive_cmds=$lt_archive_cmds
17799 archive_expsym_cmds=$lt_archive_expsym_cmds
17800 postinstall_cmds=$lt_postinstall_cmds
17801 postuninstall_cmds=$lt_postuninstall_cmds
17802
17803 # Commands used to build a loadable module (assumed same as above if empty)
17804 module_cmds=$lt_module_cmds
17805 module_expsym_cmds=$lt_module_expsym_cmds
17806
17807 # Commands to strip libraries.
17808 old_striplib=$lt_old_striplib
17809 striplib=$lt_striplib
17810
17811 # Dependencies to place before the objects being linked to create a
17812 # shared library.
17813 predep_objects=$lt_predep_objects
17814
17815 # Dependencies to place after the objects being linked to create a
17816 # shared library.
17817 postdep_objects=$lt_postdep_objects
17818
17819 # Dependencies to place before the objects being linked to create a
17820 # shared library.
17821 predeps=$lt_predeps
17822
17823 # Dependencies to place after the objects being linked to create a
17824 # shared library.
17825 postdeps=$lt_postdeps
17826
17827 # The library search path used internally by the compiler when linking
17828 # a shared library.
17829 compiler_lib_search_path=$lt_compiler_lib_search_path
17830
17831 # Method to check whether dependent libraries are shared objects.
17832 deplibs_check_method=$lt_deplibs_check_method
17833
17834 # Command to use when deplibs_check_method == file_magic.
17835 file_magic_cmd=$lt_file_magic_cmd
17836
17837 # Flag that allows shared libraries with undefined symbols to be built.
17838 allow_undefined_flag=$lt_allow_undefined_flag
17839
17840 # Flag that forces no undefined symbols.
17841 no_undefined_flag=$lt_no_undefined_flag
17842
17843 # Commands used to finish a libtool library installation in a directory.
17844 finish_cmds=$lt_finish_cmds
17845
17846 # Same as above, but a single script fragment to be evaled but not shown.
17847 finish_eval=$lt_finish_eval
17848
17849 # Take the output of nm and produce a listing of raw symbols and C names.
17850 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17851
17852 # Transform the output of nm in a proper C declaration
17853 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17854
17855 # Transform the output of nm in a C name address pair
17856 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17857
17858 # This is the shared library runtime path variable.
17859 runpath_var=$runpath_var
17860
17861 # This is the shared library path variable.
17862 shlibpath_var=$shlibpath_var
17863
17864 # Is shlibpath searched before the hard-coded library search path?
17865 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17866
17867 # How to hardcode a shared library path into an executable.
17868 hardcode_action=$hardcode_action
17869
17870 # Whether we should hardcode library paths into libraries.
17871 hardcode_into_libs=$hardcode_into_libs
17872
17873 # Flag to hardcode \$libdir into a binary during linking.
17874 # This must work even if \$libdir does not exist.
17875 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17876
17877 # If ld is used when linking, flag to hardcode \$libdir into
17878 # a binary during linking. This must work even if \$libdir does
17879 # not exist.
17880 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17881
17882 # Whether we need a single -rpath flag with a separated argument.
17883 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17884
17885 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17886 # resulting binary.
17887 hardcode_direct=$hardcode_direct
17888
17889 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17890 # resulting binary.
17891 hardcode_minus_L=$hardcode_minus_L
17892
17893 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17894 # the resulting binary.
17895 hardcode_shlibpath_var=$hardcode_shlibpath_var
17896
17897 # Set to yes if building a shared library automatically hardcodes DIR into the library
17898 # and all subsequent libraries and executables linked against it.
17899 hardcode_automatic=$hardcode_automatic
17900
17901 # Variables whose values should be saved in libtool wrapper scripts and
17902 # restored at relink time.
17903 variables_saved_for_relink="$variables_saved_for_relink"
17904
17905 # Whether libtool must link a program against all its dependency libraries.
17906 link_all_deplibs=$link_all_deplibs
17907
17908 # Compile-time system search path for libraries
17909 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17910
17911 # Run-time system search path for libraries
17912 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17913
17914 # Fix the shell variable \$srcfile for the compiler.
17915 fix_srcfile_path="$fix_srcfile_path"
17916
17917 # Set to yes if exported symbols are required.
17918 always_export_symbols=$always_export_symbols
17919
17920 # The commands to list exported symbols.
17921 export_symbols_cmds=$lt_export_symbols_cmds
17922
17923 # The commands to extract the exported symbol list from a shared archive.
17924 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17925
17926 # Symbols that should not be listed in the preloaded symbols.
17927 exclude_expsyms=$lt_exclude_expsyms
17928
17929 # Symbols that must always be exported.
17930 include_expsyms=$lt_include_expsyms
17931
17932 # ### END LIBTOOL CONFIG
17933
17934 __EOF__
17935
17936
17937   case $host_os in
17938   aix3*)
17939     cat <<\EOF >> "$cfgfile"
17940
17941 # AIX sometimes has problems with the GCC collect2 program.  For some
17942 # reason, if we set the COLLECT_NAMES environment variable, the problems
17943 # vanish in a puff of smoke.
17944 if test "X${COLLECT_NAMES+set}" != Xset; then
17945   COLLECT_NAMES=
17946   export COLLECT_NAMES
17947 fi
17948 EOF
17949     ;;
17950   esac
17951
17952   # We use sed instead of cat because bash on DJGPP gets confused if
17953   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17954   # text mode, it properly converts lines to CR/LF.  This bash problem
17955   # is reportedly fixed, but why not run on old versions too?
17956   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
17957
17958   mv -f "$cfgfile" "$ofile" || \
17959     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17960   chmod +x "$ofile"
17961
17962 else
17963   # If there is no Makefile yet, we rely on a make rule to execute
17964   # `config.status --recheck' to rerun these tests and create the
17965   # libtool script then.
17966   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17967   if test -f "$ltmain_in"; then
17968     test -f Makefile && make "$ltmain"
17969   fi
17970 fi
17971
17972
17973 ac_ext=c
17974 ac_cpp='$CPP $CPPFLAGS'
17975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17978
17979 CC="$lt_save_CC"
17980
17981
17982 # Check whether --with-tags was given.
17983 if test "${with_tags+set}" = set; then
17984   withval=$with_tags; tagnames="$withval"
17985 fi
17986
17987
17988 if test -f "$ltmain" && test -n "$tagnames"; then
17989   if test ! -f "${ofile}"; then
17990     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
17991 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
17992   fi
17993
17994   if test -z "$LTCC"; then
17995     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
17996     if test -z "$LTCC"; then
17997       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
17998 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
17999     else
18000       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18001 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18002     fi
18003   fi
18004   if test -z "$LTCFLAGS"; then
18005     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18006   fi
18007
18008   # Extract list of available tagged configurations in $ofile.
18009   # Note that this assumes the entire list is on one line.
18010   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18011
18012   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18013   for tagname in $tagnames; do
18014     IFS="$lt_save_ifs"
18015     # Check whether tagname contains only valid characters
18016     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18017     "") ;;
18018     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18019 echo "$as_me: error: invalid tag name: $tagname" >&2;}
18020    { (exit 1); exit 1; }; }
18021         ;;
18022     esac
18023
18024     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18025     then
18026       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18027 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18028    { (exit 1); exit 1; }; }
18029     fi
18030
18031     # Update the list of available tags.
18032     if test -n "$tagname"; then
18033       echo appending configuration tag \"$tagname\" to $ofile
18034
18035       case $tagname in
18036       CXX)
18037         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18038             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18039             (test "X$CXX" != "Xg++"))) ; then
18040           ac_ext=cpp
18041 ac_cpp='$CXXCPP $CPPFLAGS'
18042 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18043 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18044 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18045
18046
18047
18048
18049 archive_cmds_need_lc_CXX=no
18050 allow_undefined_flag_CXX=
18051 always_export_symbols_CXX=no
18052 archive_expsym_cmds_CXX=
18053 export_dynamic_flag_spec_CXX=
18054 hardcode_direct_CXX=no
18055 hardcode_libdir_flag_spec_CXX=
18056 hardcode_libdir_flag_spec_ld_CXX=
18057 hardcode_libdir_separator_CXX=
18058 hardcode_minus_L_CXX=no
18059 hardcode_shlibpath_var_CXX=unsupported
18060 hardcode_automatic_CXX=no
18061 module_cmds_CXX=
18062 module_expsym_cmds_CXX=
18063 link_all_deplibs_CXX=unknown
18064 old_archive_cmds_CXX=$old_archive_cmds
18065 no_undefined_flag_CXX=
18066 whole_archive_flag_spec_CXX=
18067 enable_shared_with_static_runtimes_CXX=no
18068
18069 # Dependencies to place before and after the object being linked:
18070 predep_objects_CXX=
18071 postdep_objects_CXX=
18072 predeps_CXX=
18073 postdeps_CXX=
18074 compiler_lib_search_path_CXX=
18075
18076 # Source file extension for C++ test sources.
18077 ac_ext=cpp
18078
18079 # Object file extension for compiled C++ test sources.
18080 objext=o
18081 objext_CXX=$objext
18082
18083 # Code to be used in simple compile tests
18084 lt_simple_compile_test_code="int some_variable = 0;\n"
18085
18086 # Code to be used in simple link tests
18087 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18088
18089 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18090
18091 # If no C compiler was specified, use CC.
18092 LTCC=${LTCC-"$CC"}
18093
18094 # If no C compiler flags were specified, use CFLAGS.
18095 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18096
18097 # Allow CC to be a program name with arguments.
18098 compiler=$CC
18099
18100
18101 # save warnings/boilerplate of simple test code
18102 ac_outfile=conftest.$ac_objext
18103 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18104 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18105 _lt_compiler_boilerplate=`cat conftest.err`
18106 $rm conftest*
18107
18108 ac_outfile=conftest.$ac_objext
18109 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18110 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18111 _lt_linker_boilerplate=`cat conftest.err`
18112 $rm conftest*
18113
18114
18115 # Allow CC to be a program name with arguments.
18116 lt_save_CC=$CC
18117 lt_save_LD=$LD
18118 lt_save_GCC=$GCC
18119 GCC=$GXX
18120 lt_save_with_gnu_ld=$with_gnu_ld
18121 lt_save_path_LD=$lt_cv_path_LD
18122 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18123   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18124 else
18125   $as_unset lt_cv_prog_gnu_ld
18126 fi
18127 if test -n "${lt_cv_path_LDCXX+set}"; then
18128   lt_cv_path_LD=$lt_cv_path_LDCXX
18129 else
18130   $as_unset lt_cv_path_LD
18131 fi
18132 test -z "${LDCXX+set}" || LD=$LDCXX
18133 CC=${CXX-"c++"}
18134 compiler=$CC
18135 compiler_CXX=$CC
18136 for cc_temp in $compiler""; do
18137   case $cc_temp in
18138     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18139     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18140     \-*) ;;
18141     *) break;;
18142   esac
18143 done
18144 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18145
18146
18147 # We don't want -fno-exception wen compiling C++ code, so set the
18148 # no_builtin_flag separately
18149 if test "$GXX" = yes; then
18150   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18151 else
18152   lt_prog_compiler_no_builtin_flag_CXX=
18153 fi
18154
18155 if test "$GXX" = yes; then
18156   # Set up default GNU C++ configuration
18157
18158
18159 # Check whether --with-gnu-ld was given.
18160 if test "${with_gnu_ld+set}" = set; then
18161   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18162 else
18163   with_gnu_ld=no
18164 fi
18165
18166 ac_prog=ld
18167 if test "$GCC" = yes; then
18168   # Check if gcc -print-prog-name=ld gives a path.
18169   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18170 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18171   case $host in
18172   *-*-mingw*)
18173     # gcc leaves a trailing carriage return which upsets mingw
18174     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18175   *)
18176     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18177   esac
18178   case $ac_prog in
18179     # Accept absolute paths.
18180     [\\/]* | ?:[\\/]*)
18181       re_direlt='/[^/][^/]*/\.\./'
18182       # Canonicalize the pathname of ld
18183       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18184       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18185         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18186       done
18187       test -z "$LD" && LD="$ac_prog"
18188       ;;
18189   "")
18190     # If it fails, then pretend we aren't using GCC.
18191     ac_prog=ld
18192     ;;
18193   *)
18194     # If it is relative, then search for the first ld in PATH.
18195     with_gnu_ld=unknown
18196     ;;
18197   esac
18198 elif test "$with_gnu_ld" = yes; then
18199   { echo "$as_me:$LINENO: checking for GNU ld" >&5
18200 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18201 else
18202   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18203 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18204 fi
18205 if test "${lt_cv_path_LD+set}" = set; then
18206   echo $ECHO_N "(cached) $ECHO_C" >&6
18207 else
18208   if test -z "$LD"; then
18209   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18210   for ac_dir in $PATH; do
18211     IFS="$lt_save_ifs"
18212     test -z "$ac_dir" && ac_dir=.
18213     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18214       lt_cv_path_LD="$ac_dir/$ac_prog"
18215       # Check to see if the program is GNU ld.  I'd rather use --version,
18216       # but apparently some variants of GNU ld only accept -v.
18217       # Break only if it was the GNU/non-GNU ld that we prefer.
18218       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18219       *GNU* | *'with BFD'*)
18220         test "$with_gnu_ld" != no && break
18221         ;;
18222       *)
18223         test "$with_gnu_ld" != yes && break
18224         ;;
18225       esac
18226     fi
18227   done
18228   IFS="$lt_save_ifs"
18229 else
18230   lt_cv_path_LD="$LD" # Let the user override the test with a path.
18231 fi
18232 fi
18233
18234 LD="$lt_cv_path_LD"
18235 if test -n "$LD"; then
18236   { echo "$as_me:$LINENO: result: $LD" >&5
18237 echo "${ECHO_T}$LD" >&6; }
18238 else
18239   { echo "$as_me:$LINENO: result: no" >&5
18240 echo "${ECHO_T}no" >&6; }
18241 fi
18242 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18243 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18244    { (exit 1); exit 1; }; }
18245 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18246 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18247 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18248   echo $ECHO_N "(cached) $ECHO_C" >&6
18249 else
18250   # I'd rather use --version here, but apparently some GNU lds only accept -v.
18251 case `$LD -v 2>&1 </dev/null` in
18252 *GNU* | *'with BFD'*)
18253   lt_cv_prog_gnu_ld=yes
18254   ;;
18255 *)
18256   lt_cv_prog_gnu_ld=no
18257   ;;
18258 esac
18259 fi
18260 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18261 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18262 with_gnu_ld=$lt_cv_prog_gnu_ld
18263
18264
18265
18266   # Check if GNU C++ uses GNU ld as the underlying linker, since the
18267   # archiving commands below assume that GNU ld is being used.
18268   if test "$with_gnu_ld" = yes; then
18269     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18270     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'
18271
18272     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18273     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18274
18275     # If archive_cmds runs LD, not CC, wlarc should be empty
18276     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18277     #     investigate it a little bit more. (MM)
18278     wlarc='${wl}'
18279
18280     # ancient GNU ld didn't support --whole-archive et. al.
18281     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18282         grep 'no-whole-archive' > /dev/null; then
18283       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18284     else
18285       whole_archive_flag_spec_CXX=
18286     fi
18287   else
18288     with_gnu_ld=no
18289     wlarc=
18290
18291     # A generic and very simple default shared library creation
18292     # command for GNU C++ for the case where it uses the native
18293     # linker, instead of GNU ld.  If possible, this setting should
18294     # overridden to take advantage of the native linker features on
18295     # the platform it is being used on.
18296     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18297   fi
18298
18299   # Commands to make compiler produce verbose output that lists
18300   # what "hidden" libraries, object files and flags are used when
18301   # linking a shared library.
18302   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18303
18304 else
18305   GXX=no
18306   with_gnu_ld=no
18307   wlarc=
18308 fi
18309
18310 # PORTME: fill in a description of your system's C++ link characteristics
18311 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18312 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18313 ld_shlibs_CXX=yes
18314 case $host_os in
18315   aix3*)
18316     # FIXME: insert proper C++ library support
18317     ld_shlibs_CXX=no
18318     ;;
18319   aix4* | aix5*)
18320     if test "$host_cpu" = ia64; then
18321       # On IA64, the linker does run time linking by default, so we don't
18322       # have to do anything special.
18323       aix_use_runtimelinking=no
18324       exp_sym_flag='-Bexport'
18325       no_entry_flag=""
18326     else
18327       aix_use_runtimelinking=no
18328
18329       # Test if we are trying to use run time linking or normal
18330       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18331       # need to do runtime linking.
18332       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18333         for ld_flag in $LDFLAGS; do
18334           case $ld_flag in
18335           *-brtl*)
18336             aix_use_runtimelinking=yes
18337             break
18338             ;;
18339           esac
18340         done
18341         ;;
18342       esac
18343
18344       exp_sym_flag='-bexport'
18345       no_entry_flag='-bnoentry'
18346     fi
18347
18348     # When large executables or shared objects are built, AIX ld can
18349     # have problems creating the table of contents.  If linking a library
18350     # or program results in "error TOC overflow" add -mminimal-toc to
18351     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18352     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18353
18354     archive_cmds_CXX=''
18355     hardcode_direct_CXX=yes
18356     hardcode_libdir_separator_CXX=':'
18357     link_all_deplibs_CXX=yes
18358
18359     if test "$GXX" = yes; then
18360       case $host_os in aix4.[012]|aix4.[012].*)
18361       # We only want to do this on AIX 4.2 and lower, the check
18362       # below for broken collect2 doesn't work under 4.3+
18363         collect2name=`${CC} -print-prog-name=collect2`
18364         if test -f "$collect2name" && \
18365            strings "$collect2name" | grep resolve_lib_name >/dev/null
18366         then
18367           # We have reworked collect2
18368           hardcode_direct_CXX=yes
18369         else
18370           # We have old collect2
18371           hardcode_direct_CXX=unsupported
18372           # It fails to find uninstalled libraries when the uninstalled
18373           # path is not listed in the libpath.  Setting hardcode_minus_L
18374           # to unsupported forces relinking
18375           hardcode_minus_L_CXX=yes
18376           hardcode_libdir_flag_spec_CXX='-L$libdir'
18377           hardcode_libdir_separator_CXX=
18378         fi
18379         ;;
18380       esac
18381       shared_flag='-shared'
18382       if test "$aix_use_runtimelinking" = yes; then
18383         shared_flag="$shared_flag "'${wl}-G'
18384       fi
18385     else
18386       # not using gcc
18387       if test "$host_cpu" = ia64; then
18388         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18389         # chokes on -Wl,-G. The following line is correct:
18390         shared_flag='-G'
18391       else
18392         if test "$aix_use_runtimelinking" = yes; then
18393           shared_flag='${wl}-G'
18394         else
18395           shared_flag='${wl}-bM:SRE'
18396         fi
18397       fi
18398     fi
18399
18400     # It seems that -bexpall does not export symbols beginning with
18401     # underscore (_), so it is better to generate a list of symbols to export.
18402     always_export_symbols_CXX=yes
18403     if test "$aix_use_runtimelinking" = yes; then
18404       # Warning - without using the other runtime loading flags (-brtl),
18405       # -berok will link without error, but may produce a broken library.
18406       allow_undefined_flag_CXX='-berok'
18407       # Determine the default libpath from the value encoded in an empty executable.
18408       cat >conftest.$ac_ext <<_ACEOF
18409 /* confdefs.h.  */
18410 _ACEOF
18411 cat confdefs.h >>conftest.$ac_ext
18412 cat >>conftest.$ac_ext <<_ACEOF
18413 /* end confdefs.h.  */
18414
18415 int
18416 main ()
18417 {
18418
18419   ;
18420   return 0;
18421 }
18422 _ACEOF
18423 rm -f conftest.$ac_objext conftest$ac_exeext
18424 if { (ac_try="$ac_link"
18425 case "(($ac_try" in
18426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18427   *) ac_try_echo=$ac_try;;
18428 esac
18429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18430   (eval "$ac_link") 2>conftest.er1
18431   ac_status=$?
18432   grep -v '^ *+' conftest.er1 >conftest.err
18433   rm -f conftest.er1
18434   cat conftest.err >&5
18435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18436   (exit $ac_status); } &&
18437          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18438   { (case "(($ac_try" in
18439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18440   *) ac_try_echo=$ac_try;;
18441 esac
18442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18443   (eval "$ac_try") 2>&5
18444   ac_status=$?
18445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18446   (exit $ac_status); }; } &&
18447          { ac_try='test -s conftest$ac_exeext'
18448   { (case "(($ac_try" in
18449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18450   *) ac_try_echo=$ac_try;;
18451 esac
18452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18453   (eval "$ac_try") 2>&5
18454   ac_status=$?
18455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18456   (exit $ac_status); }; }; then
18457
18458 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18459 }'`
18460 # Check for a 64-bit object if we didn't find anything.
18461 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; }
18462 }'`; fi
18463 else
18464   echo "$as_me: failed program was:" >&5
18465 sed 's/^/| /' conftest.$ac_ext >&5
18466
18467
18468 fi
18469
18470 rm -f core conftest.err conftest.$ac_objext \
18471       conftest$ac_exeext conftest.$ac_ext
18472 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18473
18474       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18475
18476       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"
18477      else
18478       if test "$host_cpu" = ia64; then
18479         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18480         allow_undefined_flag_CXX="-z nodefs"
18481         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"
18482       else
18483         # Determine the default libpath from the value encoded in an empty executable.
18484         cat >conftest.$ac_ext <<_ACEOF
18485 /* confdefs.h.  */
18486 _ACEOF
18487 cat confdefs.h >>conftest.$ac_ext
18488 cat >>conftest.$ac_ext <<_ACEOF
18489 /* end confdefs.h.  */
18490
18491 int
18492 main ()
18493 {
18494
18495   ;
18496   return 0;
18497 }
18498 _ACEOF
18499 rm -f conftest.$ac_objext conftest$ac_exeext
18500 if { (ac_try="$ac_link"
18501 case "(($ac_try" in
18502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18503   *) ac_try_echo=$ac_try;;
18504 esac
18505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18506   (eval "$ac_link") 2>conftest.er1
18507   ac_status=$?
18508   grep -v '^ *+' conftest.er1 >conftest.err
18509   rm -f conftest.er1
18510   cat conftest.err >&5
18511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18512   (exit $ac_status); } &&
18513          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18514   { (case "(($ac_try" in
18515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18516   *) ac_try_echo=$ac_try;;
18517 esac
18518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18519   (eval "$ac_try") 2>&5
18520   ac_status=$?
18521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18522   (exit $ac_status); }; } &&
18523          { ac_try='test -s conftest$ac_exeext'
18524   { (case "(($ac_try" in
18525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18526   *) ac_try_echo=$ac_try;;
18527 esac
18528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18529   (eval "$ac_try") 2>&5
18530   ac_status=$?
18531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18532   (exit $ac_status); }; }; then
18533
18534 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18535 }'`
18536 # Check for a 64-bit object if we didn't find anything.
18537 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; }
18538 }'`; fi
18539 else
18540   echo "$as_me: failed program was:" >&5
18541 sed 's/^/| /' conftest.$ac_ext >&5
18542
18543
18544 fi
18545
18546 rm -f core conftest.err conftest.$ac_objext \
18547       conftest$ac_exeext conftest.$ac_ext
18548 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18549
18550         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18551         # Warning - without using the other run time loading flags,
18552         # -berok will link without error, but may produce a broken library.
18553         no_undefined_flag_CXX=' ${wl}-bernotok'
18554         allow_undefined_flag_CXX=' ${wl}-berok'
18555         # Exported symbols can be pulled into shared objects from archives
18556         whole_archive_flag_spec_CXX='$convenience'
18557         archive_cmds_need_lc_CXX=yes
18558         # This is similar to how AIX traditionally builds its shared libraries.
18559         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'
18560       fi
18561     fi
18562     ;;
18563
18564   beos*)
18565     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18566       allow_undefined_flag_CXX=unsupported
18567       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18568       # support --undefined.  This deserves some investigation.  FIXME
18569       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18570     else
18571       ld_shlibs_CXX=no
18572     fi
18573     ;;
18574
18575   chorus*)
18576     case $cc_basename in
18577       *)
18578         # FIXME: insert proper C++ library support
18579         ld_shlibs_CXX=no
18580         ;;
18581     esac
18582     ;;
18583
18584   cygwin* | mingw* | pw32*)
18585     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18586     # as there is no search path for DLLs.
18587     hardcode_libdir_flag_spec_CXX='-L$libdir'
18588     allow_undefined_flag_CXX=unsupported
18589     always_export_symbols_CXX=no
18590     enable_shared_with_static_runtimes_CXX=yes
18591
18592     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18593       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'
18594       # If the export-symbols file already is a .def file (1st line
18595       # is EXPORTS), use it as is; otherwise, prepend...
18596       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18597         cp $export_symbols $output_objdir/$soname.def;
18598       else
18599         echo EXPORTS > $output_objdir/$soname.def;
18600         cat $export_symbols >> $output_objdir/$soname.def;
18601       fi~
18602       $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'
18603     else
18604       ld_shlibs_CXX=no
18605     fi
18606   ;;
18607       darwin* | rhapsody*)
18608         case $host_os in
18609         rhapsody* | darwin1.[012])
18610          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18611          ;;
18612        *) # Darwin 1.3 on
18613          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18614            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18615          else
18616            case ${MACOSX_DEPLOYMENT_TARGET} in
18617              10.[012])
18618                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18619                ;;
18620              10.*)
18621                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18622                ;;
18623            esac
18624          fi
18625          ;;
18626         esac
18627       archive_cmds_need_lc_CXX=no
18628       hardcode_direct_CXX=no
18629       hardcode_automatic_CXX=yes
18630       hardcode_shlibpath_var_CXX=unsupported
18631       whole_archive_flag_spec_CXX=''
18632       link_all_deplibs_CXX=yes
18633
18634     if test "$GXX" = yes ; then
18635       lt_int_apple_cc_single_mod=no
18636       output_verbose_link_cmd='echo'
18637       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18638        lt_int_apple_cc_single_mod=yes
18639       fi
18640       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18641        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18642       else
18643           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'
18644         fi
18645         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18646         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18647           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18648             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}'
18649           else
18650             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}'
18651           fi
18652             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}'
18653       else
18654       case $cc_basename in
18655         xlc*)
18656          output_verbose_link_cmd='echo'
18657           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'
18658           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18659           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18660           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}'
18661           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}'
18662           ;;
18663        *)
18664          ld_shlibs_CXX=no
18665           ;;
18666       esac
18667       fi
18668         ;;
18669
18670   dgux*)
18671     case $cc_basename in
18672       ec++*)
18673         # FIXME: insert proper C++ library support
18674         ld_shlibs_CXX=no
18675         ;;
18676       ghcx*)
18677         # Green Hills C++ Compiler
18678         # FIXME: insert proper C++ library support
18679         ld_shlibs_CXX=no
18680         ;;
18681       *)
18682         # FIXME: insert proper C++ library support
18683         ld_shlibs_CXX=no
18684         ;;
18685     esac
18686     ;;
18687   freebsd[12]*)
18688     # C++ shared libraries reported to be fairly broken before switch to ELF
18689     ld_shlibs_CXX=no
18690     ;;
18691   freebsd-elf*)
18692     archive_cmds_need_lc_CXX=no
18693     ;;
18694   freebsd* | kfreebsd*-gnu | dragonfly*)
18695     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18696     # conventions
18697     ld_shlibs_CXX=yes
18698     ;;
18699   gnu*)
18700     ;;
18701   hpux9*)
18702     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18703     hardcode_libdir_separator_CXX=:
18704     export_dynamic_flag_spec_CXX='${wl}-E'
18705     hardcode_direct_CXX=yes
18706     hardcode_minus_L_CXX=yes # Not in the search PATH,
18707                                 # but as the default
18708                                 # location of the library.
18709
18710     case $cc_basename in
18711     CC*)
18712       # FIXME: insert proper C++ library support
18713       ld_shlibs_CXX=no
18714       ;;
18715     aCC*)
18716       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'
18717       # Commands to make compiler produce verbose output that lists
18718       # what "hidden" libraries, object files and flags are used when
18719       # linking a shared library.
18720       #
18721       # There doesn't appear to be a way to prevent this compiler from
18722       # explicitly linking system object files so we need to strip them
18723       # from the output so that they don't get included in the library
18724       # dependencies.
18725       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'
18726       ;;
18727     *)
18728       if test "$GXX" = yes; then
18729         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'
18730       else
18731         # FIXME: insert proper C++ library support
18732         ld_shlibs_CXX=no
18733       fi
18734       ;;
18735     esac
18736     ;;
18737   hpux10*|hpux11*)
18738     if test $with_gnu_ld = no; then
18739       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18740       hardcode_libdir_separator_CXX=:
18741
18742       case $host_cpu in
18743       hppa*64*|ia64*)
18744         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
18745         ;;
18746       *)
18747         export_dynamic_flag_spec_CXX='${wl}-E'
18748         ;;
18749       esac
18750     fi
18751     case $host_cpu in
18752     hppa*64*|ia64*)
18753       hardcode_direct_CXX=no
18754       hardcode_shlibpath_var_CXX=no
18755       ;;
18756     *)
18757       hardcode_direct_CXX=yes
18758       hardcode_minus_L_CXX=yes # Not in the search PATH,
18759                                               # but as the default
18760                                               # location of the library.
18761       ;;
18762     esac
18763
18764     case $cc_basename in
18765       CC*)
18766         # FIXME: insert proper C++ library support
18767         ld_shlibs_CXX=no
18768         ;;
18769       aCC*)
18770         case $host_cpu in
18771         hppa*64*)
18772           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18773           ;;
18774         ia64*)
18775           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18776           ;;
18777         *)
18778           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18779           ;;
18780         esac
18781         # Commands to make compiler produce verbose output that lists
18782         # what "hidden" libraries, object files and flags are used when
18783         # linking a shared library.
18784         #
18785         # There doesn't appear to be a way to prevent this compiler from
18786         # explicitly linking system object files so we need to strip them
18787         # from the output so that they don't get included in the library
18788         # dependencies.
18789         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'
18790         ;;
18791       *)
18792         if test "$GXX" = yes; then
18793           if test $with_gnu_ld = no; then
18794             case $host_cpu in
18795             hppa*64*)
18796               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18797               ;;
18798             ia64*)
18799               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18800               ;;
18801             *)
18802               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'
18803               ;;
18804             esac
18805           fi
18806         else
18807           # FIXME: insert proper C++ library support
18808           ld_shlibs_CXX=no
18809         fi
18810         ;;
18811     esac
18812     ;;
18813   interix3*)
18814     hardcode_direct_CXX=no
18815     hardcode_shlibpath_var_CXX=no
18816     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18817     export_dynamic_flag_spec_CXX='${wl}-E'
18818     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18819     # Instead, shared libraries are loaded at an image base (0x10000000 by
18820     # default) and relocated if they conflict, which is a slow very memory
18821     # consuming and fragmenting process.  To avoid this, we pick a random,
18822     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18823     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18824     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'
18825     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'
18826     ;;
18827   irix5* | irix6*)
18828     case $cc_basename in
18829       CC*)
18830         # SGI C++
18831         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'
18832
18833         # Archives containing C++ object files must be created using
18834         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
18835         # necessary to make sure instantiated templates are included
18836         # in the archive.
18837         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18838         ;;
18839       *)
18840         if test "$GXX" = yes; then
18841           if test "$with_gnu_ld" = no; then
18842             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'
18843           else
18844             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'
18845           fi
18846         fi
18847         link_all_deplibs_CXX=yes
18848         ;;
18849     esac
18850     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18851     hardcode_libdir_separator_CXX=:
18852     ;;
18853   linux*)
18854     case $cc_basename in
18855       KCC*)
18856         # Kuck and Associates, Inc. (KAI) C++ Compiler
18857
18858         # KCC will only create a shared library if the output file
18859         # ends with ".so" (or ".sl" for HP-UX), so rename the library
18860         # to its proper name (with version) after linking.
18861         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'
18862         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'
18863         # Commands to make compiler produce verbose output that lists
18864         # what "hidden" libraries, object files and flags are used when
18865         # linking a shared library.
18866         #
18867         # There doesn't appear to be a way to prevent this compiler from
18868         # explicitly linking system object files so we need to strip them
18869         # from the output so that they don't get included in the library
18870         # dependencies.
18871         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'
18872
18873         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18874         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18875
18876         # Archives containing C++ object files must be created using
18877         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18878         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18879         ;;
18880       icpc*)
18881         # Intel C++
18882         with_gnu_ld=yes
18883         # version 8.0 and above of icpc choke on multiply defined symbols
18884         # if we add $predep_objects and $postdep_objects, however 7.1 and
18885         # earlier do not add the objects themselves.
18886         case `$CC -V 2>&1` in
18887         *"Version 7."*)
18888           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18889           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'
18890           ;;
18891         *)  # Version 8.0 or newer
18892           tmp_idyn=
18893           case $host_cpu in
18894             ia64*) tmp_idyn=' -i_dynamic';;
18895           esac
18896           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18897           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'
18898           ;;
18899         esac
18900         archive_cmds_need_lc_CXX=no
18901         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18902         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18903         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18904         ;;
18905       pgCC*)
18906         # Portland Group C++ compiler
18907         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18908         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'
18909
18910         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18911         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18912         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'
18913         ;;
18914       cxx*)
18915         # Compaq C++
18916         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18917         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'
18918
18919         runpath_var=LD_RUN_PATH
18920         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18921         hardcode_libdir_separator_CXX=:
18922
18923         # Commands to make compiler produce verbose output that lists
18924         # what "hidden" libraries, object files and flags are used when
18925         # linking a shared library.
18926         #
18927         # There doesn't appear to be a way to prevent this compiler from
18928         # explicitly linking system object files so we need to strip them
18929         # from the output so that they don't get included in the library
18930         # dependencies.
18931         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'
18932         ;;
18933     esac
18934     ;;
18935   lynxos*)
18936     # FIXME: insert proper C++ library support
18937     ld_shlibs_CXX=no
18938     ;;
18939   m88k*)
18940     # FIXME: insert proper C++ library support
18941     ld_shlibs_CXX=no
18942     ;;
18943   mvs*)
18944     case $cc_basename in
18945       cxx*)
18946         # FIXME: insert proper C++ library support
18947         ld_shlibs_CXX=no
18948         ;;
18949       *)
18950         # FIXME: insert proper C++ library support
18951         ld_shlibs_CXX=no
18952         ;;
18953     esac
18954     ;;
18955   netbsd*)
18956     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18957       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18958       wlarc=
18959       hardcode_libdir_flag_spec_CXX='-R$libdir'
18960       hardcode_direct_CXX=yes
18961       hardcode_shlibpath_var_CXX=no
18962     fi
18963     # Workaround some broken pre-1.5 toolchains
18964     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18965     ;;
18966   openbsd2*)
18967     # C++ shared libraries are fairly broken
18968     ld_shlibs_CXX=no
18969     ;;
18970   openbsd*)
18971     hardcode_direct_CXX=yes
18972     hardcode_shlibpath_var_CXX=no
18973     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18974     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18975     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18976       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18977       export_dynamic_flag_spec_CXX='${wl}-E'
18978       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18979     fi
18980     output_verbose_link_cmd='echo'
18981     ;;
18982   osf3*)
18983     case $cc_basename in
18984       KCC*)
18985         # Kuck and Associates, Inc. (KAI) C++ Compiler
18986
18987         # KCC will only create a shared library if the output file
18988         # ends with ".so" (or ".sl" for HP-UX), so rename the library
18989         # to its proper name (with version) after linking.
18990         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'
18991
18992         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18993         hardcode_libdir_separator_CXX=:
18994
18995         # Archives containing C++ object files must be created using
18996         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18997         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18998
18999         ;;
19000       RCC*)
19001         # Rational C++ 2.4.1
19002         # FIXME: insert proper C++ library support
19003         ld_shlibs_CXX=no
19004         ;;
19005       cxx*)
19006         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19007         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'
19008
19009         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19010         hardcode_libdir_separator_CXX=:
19011
19012         # Commands to make compiler produce verbose output that lists
19013         # what "hidden" libraries, object files and flags are used when
19014         # linking a shared library.
19015         #
19016         # There doesn't appear to be a way to prevent this compiler from
19017         # explicitly linking system object files so we need to strip them
19018         # from the output so that they don't get included in the library
19019         # dependencies.
19020         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'
19021         ;;
19022       *)
19023         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19024           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19025           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'
19026
19027           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19028           hardcode_libdir_separator_CXX=:
19029
19030           # Commands to make compiler produce verbose output that lists
19031           # what "hidden" libraries, object files and flags are used when
19032           # linking a shared library.
19033           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19034
19035         else
19036           # FIXME: insert proper C++ library support
19037           ld_shlibs_CXX=no
19038         fi
19039         ;;
19040     esac
19041     ;;
19042   osf4* | osf5*)
19043     case $cc_basename in
19044       KCC*)
19045         # Kuck and Associates, Inc. (KAI) C++ Compiler
19046
19047         # KCC will only create a shared library if the output file
19048         # ends with ".so" (or ".sl" for HP-UX), so rename the library
19049         # to its proper name (with version) after linking.
19050         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'
19051
19052         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19053         hardcode_libdir_separator_CXX=:
19054
19055         # Archives containing C++ object files must be created using
19056         # the KAI C++ compiler.
19057         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19058         ;;
19059       RCC*)
19060         # Rational C++ 2.4.1
19061         # FIXME: insert proper C++ library support
19062         ld_shlibs_CXX=no
19063         ;;
19064       cxx*)
19065         allow_undefined_flag_CXX=' -expect_unresolved \*'
19066         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'
19067         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19068           echo "-hidden">> $lib.exp~
19069           $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~
19070           $rm $lib.exp'
19071
19072         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19073         hardcode_libdir_separator_CXX=:
19074
19075         # Commands to make compiler produce verbose output that lists
19076         # what "hidden" libraries, object files and flags are used when
19077         # linking a shared library.
19078         #
19079         # There doesn't appear to be a way to prevent this compiler from
19080         # explicitly linking system object files so we need to strip them
19081         # from the output so that they don't get included in the library
19082         # dependencies.
19083         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'
19084         ;;
19085       *)
19086         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19087           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19088          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'
19089
19090           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19091           hardcode_libdir_separator_CXX=:
19092
19093           # Commands to make compiler produce verbose output that lists
19094           # what "hidden" libraries, object files and flags are used when
19095           # linking a shared library.
19096           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19097
19098         else
19099           # FIXME: insert proper C++ library support
19100           ld_shlibs_CXX=no
19101         fi
19102         ;;
19103     esac
19104     ;;
19105   psos*)
19106     # FIXME: insert proper C++ library support
19107     ld_shlibs_CXX=no
19108     ;;
19109   sunos4*)
19110     case $cc_basename in
19111       CC*)
19112         # Sun C++ 4.x
19113         # FIXME: insert proper C++ library support
19114         ld_shlibs_CXX=no
19115         ;;
19116       lcc*)
19117         # Lucid
19118         # FIXME: insert proper C++ library support
19119         ld_shlibs_CXX=no
19120         ;;
19121       *)
19122         # FIXME: insert proper C++ library support
19123         ld_shlibs_CXX=no
19124         ;;
19125     esac
19126     ;;
19127   solaris*)
19128     case $cc_basename in
19129       CC*)
19130         # Sun C++ 4.2, 5.x and Centerline C++
19131         archive_cmds_need_lc_CXX=yes
19132         no_undefined_flag_CXX=' -zdefs'
19133         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19134         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19135         $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'
19136
19137         hardcode_libdir_flag_spec_CXX='-R$libdir'
19138         hardcode_shlibpath_var_CXX=no
19139         case $host_os in
19140           solaris2.[0-5] | solaris2.[0-5].*) ;;
19141           *)
19142             # The C++ compiler is used as linker so we must use $wl
19143             # flag to pass the commands to the underlying system
19144             # linker. We must also pass each convience library through
19145             # to the system linker between allextract/defaultextract.
19146             # The C++ compiler will combine linker options so we
19147             # cannot just pass the convience library names through
19148             # without $wl.
19149             # Supported since Solaris 2.6 (maybe 2.5.1?)
19150             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'
19151             ;;
19152         esac
19153         link_all_deplibs_CXX=yes
19154
19155         output_verbose_link_cmd='echo'
19156
19157         # Archives containing C++ object files must be created using
19158         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
19159         # necessary to make sure instantiated templates are included
19160         # in the archive.
19161         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19162         ;;
19163       gcx*)
19164         # Green Hills C++ Compiler
19165         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19166
19167         # The C++ compiler must be used to create the archive.
19168         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19169         ;;
19170       *)
19171         # GNU C++ compiler with Solaris linker
19172         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19173           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19174           if $CC --version | grep -v '^2\.7' > /dev/null; then
19175             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19176             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19177                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19178
19179             # Commands to make compiler produce verbose output that lists
19180             # what "hidden" libraries, object files and flags are used when
19181             # linking a shared library.
19182             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19183           else
19184             # g++ 2.7 appears to require `-G' NOT `-shared' on this
19185             # platform.
19186             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19187             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19188                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19189
19190             # Commands to make compiler produce verbose output that lists
19191             # what "hidden" libraries, object files and flags are used when
19192             # linking a shared library.
19193             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19194           fi
19195
19196           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19197         fi
19198         ;;
19199     esac
19200     ;;
19201   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19202     no_undefined_flag_CXX='${wl}-z,text'
19203     archive_cmds_need_lc_CXX=no
19204     hardcode_shlibpath_var_CXX=no
19205     runpath_var='LD_RUN_PATH'
19206
19207     case $cc_basename in
19208       CC*)
19209         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19210         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19211         ;;
19212       *)
19213         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19214         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19215         ;;
19216     esac
19217     ;;
19218   sysv5* | sco3.2v5* | sco5v6*)
19219     # Note: We can NOT use -z defs as we might desire, because we do not
19220     # link with -lc, and that would cause any symbols used from libc to
19221     # always be unresolved, which means just about no library would
19222     # ever link correctly.  If we're not using GNU ld we use -z text
19223     # though, which does catch some bad symbols but isn't as heavy-handed
19224     # as -z defs.
19225     # For security reasons, it is highly recommended that you always
19226     # use absolute paths for naming shared libraries, and exclude the
19227     # DT_RUNPATH tag from executables and libraries.  But doing so
19228     # requires that you compile everything twice, which is a pain.
19229     # So that behaviour is only enabled if SCOABSPATH is set to a
19230     # non-empty value in the environment.  Most likely only useful for
19231     # creating official distributions of packages.
19232     # This is a hack until libtool officially supports absolute path
19233     # names for shared libraries.
19234     no_undefined_flag_CXX='${wl}-z,text'
19235     allow_undefined_flag_CXX='${wl}-z,nodefs'
19236     archive_cmds_need_lc_CXX=no
19237     hardcode_shlibpath_var_CXX=no
19238     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19239     hardcode_libdir_separator_CXX=':'
19240     link_all_deplibs_CXX=yes
19241     export_dynamic_flag_spec_CXX='${wl}-Bexport'
19242     runpath_var='LD_RUN_PATH'
19243
19244     case $cc_basename in
19245       CC*)
19246         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19247         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19248         ;;
19249       *)
19250         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19251         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19252         ;;
19253     esac
19254     ;;
19255   tandem*)
19256     case $cc_basename in
19257       NCC*)
19258         # NonStop-UX NCC 3.20
19259         # FIXME: insert proper C++ library support
19260         ld_shlibs_CXX=no
19261         ;;
19262       *)
19263         # FIXME: insert proper C++ library support
19264         ld_shlibs_CXX=no
19265         ;;
19266     esac
19267     ;;
19268   vxworks*)
19269     # FIXME: insert proper C++ library support
19270     ld_shlibs_CXX=no
19271     ;;
19272   *)
19273     # FIXME: insert proper C++ library support
19274     ld_shlibs_CXX=no
19275     ;;
19276 esac
19277 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19278 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19279 test "$ld_shlibs_CXX" = no && can_build_shared=no
19280
19281 GCC_CXX="$GXX"
19282 LD_CXX="$LD"
19283
19284
19285 cat > conftest.$ac_ext <<EOF
19286 class Foo
19287 {
19288 public:
19289   Foo (void) { a = 0; }
19290 private:
19291   int a;
19292 };
19293 EOF
19294
19295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19296   (eval $ac_compile) 2>&5
19297   ac_status=$?
19298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19299   (exit $ac_status); }; then
19300   # Parse the compiler output and extract the necessary
19301   # objects, libraries and library flags.
19302
19303   # Sentinel used to keep track of whether or not we are before
19304   # the conftest object file.
19305   pre_test_object_deps_done=no
19306
19307   # The `*' in the case matches for architectures that use `case' in
19308   # $output_verbose_cmd can trigger glob expansion during the loop
19309   # eval without this substitution.
19310   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19311
19312   for p in `eval $output_verbose_link_cmd`; do
19313     case $p in
19314
19315     -L* | -R* | -l*)
19316        # Some compilers place space between "-{L,R}" and the path.
19317        # Remove the space.
19318        if test $p = "-L" \
19319           || test $p = "-R"; then
19320          prev=$p
19321          continue
19322        else
19323          prev=
19324        fi
19325
19326        if test "$pre_test_object_deps_done" = no; then
19327          case $p in
19328          -L* | -R*)
19329            # Internal compiler library paths should come after those
19330            # provided the user.  The postdeps already come after the
19331            # user supplied libs so there is no need to process them.
19332            if test -z "$compiler_lib_search_path_CXX"; then
19333              compiler_lib_search_path_CXX="${prev}${p}"
19334            else
19335              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19336            fi
19337            ;;
19338          # The "-l" case would never come before the object being
19339          # linked, so don't bother handling this case.
19340          esac
19341        else
19342          if test -z "$postdeps_CXX"; then
19343            postdeps_CXX="${prev}${p}"
19344          else
19345            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19346          fi
19347        fi
19348        ;;
19349
19350     *.$objext)
19351        # This assumes that the test object file only shows up
19352        # once in the compiler output.
19353        if test "$p" = "conftest.$objext"; then
19354          pre_test_object_deps_done=yes
19355          continue
19356        fi
19357
19358        if test "$pre_test_object_deps_done" = no; then
19359          if test -z "$predep_objects_CXX"; then
19360            predep_objects_CXX="$p"
19361          else
19362            predep_objects_CXX="$predep_objects_CXX $p"
19363          fi
19364        else
19365          if test -z "$postdep_objects_CXX"; then
19366            postdep_objects_CXX="$p"
19367          else
19368            postdep_objects_CXX="$postdep_objects_CXX $p"
19369          fi
19370        fi
19371        ;;
19372
19373     *) ;; # Ignore the rest.
19374
19375     esac
19376   done
19377
19378   # Clean up.
19379   rm -f a.out a.exe
19380 else
19381   echo "libtool.m4: error: problem compiling CXX test program"
19382 fi
19383
19384 $rm -f confest.$objext
19385
19386 # PORTME: override above test on systems where it is broken
19387 case $host_os in
19388 interix3*)
19389   # Interix 3.5 installs completely hosed .la files for C++, so rather than
19390   # hack all around it, let's just trust "g++" to DTRT.
19391   predep_objects_CXX=
19392   postdep_objects_CXX=
19393   postdeps_CXX=
19394   ;;
19395
19396 solaris*)
19397   case $cc_basename in
19398   CC*)
19399     # Adding this requires a known-good setup of shared libraries for
19400     # Sun compiler versions before 5.6, else PIC objects from an old
19401     # archive will be linked into the output, leading to subtle bugs.
19402     postdeps_CXX='-lCstd -lCrun'
19403     ;;
19404   esac
19405   ;;
19406 esac
19407
19408
19409 case " $postdeps_CXX " in
19410 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19411 esac
19412
19413 lt_prog_compiler_wl_CXX=
19414 lt_prog_compiler_pic_CXX=
19415 lt_prog_compiler_static_CXX=
19416
19417 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19418 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19419
19420   # C++ specific cases for pic, static, wl, etc.
19421   if test "$GXX" = yes; then
19422     lt_prog_compiler_wl_CXX='-Wl,'
19423     lt_prog_compiler_static_CXX='-static'
19424
19425     case $host_os in
19426     aix*)
19427       # All AIX code is PIC.
19428       if test "$host_cpu" = ia64; then
19429         # AIX 5 now supports IA64 processor
19430         lt_prog_compiler_static_CXX='-Bstatic'
19431       fi
19432       ;;
19433     amigaos*)
19434       # FIXME: we need at least 68020 code to build shared libraries, but
19435       # adding the `-m68020' flag to GCC prevents building anything better,
19436       # like `-m68040'.
19437       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19438       ;;
19439     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19440       # PIC is the default for these OSes.
19441       ;;
19442     mingw* | os2* | pw32*)
19443       # This hack is so that the source file can tell whether it is being
19444       # built for inclusion in a dll (and should export symbols for example).
19445       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19446       ;;
19447     darwin* | rhapsody*)
19448       # PIC is the default on this platform
19449       # Common symbols not allowed in MH_DYLIB files
19450       lt_prog_compiler_pic_CXX='-fno-common'
19451       ;;
19452     *djgpp*)
19453       # DJGPP does not support shared libraries at all
19454       lt_prog_compiler_pic_CXX=
19455       ;;
19456     interix3*)
19457       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19458       # Instead, we relocate shared libraries at runtime.
19459       ;;
19460     sysv4*MP*)
19461       if test -d /usr/nec; then
19462         lt_prog_compiler_pic_CXX=-Kconform_pic
19463       fi
19464       ;;
19465     hpux*)
19466       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19467       # not for PA HP-UX.
19468       case $host_cpu in
19469       hppa*64*|ia64*)
19470         ;;
19471       *)
19472         lt_prog_compiler_pic_CXX='-fPIC'
19473         ;;
19474       esac
19475       ;;
19476     *)
19477       lt_prog_compiler_pic_CXX='-fPIC'
19478       ;;
19479     esac
19480   else
19481     case $host_os in
19482       aix4* | aix5*)
19483         # All AIX code is PIC.
19484         if test "$host_cpu" = ia64; then
19485           # AIX 5 now supports IA64 processor
19486           lt_prog_compiler_static_CXX='-Bstatic'
19487         else
19488           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19489         fi
19490         ;;
19491       chorus*)
19492         case $cc_basename in
19493         cxch68*)
19494           # Green Hills C++ Compiler
19495           # _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"
19496           ;;
19497         esac
19498         ;;
19499        darwin*)
19500          # PIC is the default on this platform
19501          # Common symbols not allowed in MH_DYLIB files
19502          case $cc_basename in
19503            xlc*)
19504            lt_prog_compiler_pic_CXX='-qnocommon'
19505            lt_prog_compiler_wl_CXX='-Wl,'
19506            ;;
19507          esac
19508        ;;
19509       dgux*)
19510         case $cc_basename in
19511           ec++*)
19512             lt_prog_compiler_pic_CXX='-KPIC'
19513             ;;
19514           ghcx*)
19515             # Green Hills C++ Compiler
19516             lt_prog_compiler_pic_CXX='-pic'
19517             ;;
19518           *)
19519             ;;
19520         esac
19521         ;;
19522       freebsd* | kfreebsd*-gnu | dragonfly*)
19523         # FreeBSD uses GNU C++
19524         ;;
19525       hpux9* | hpux10* | hpux11*)
19526         case $cc_basename in
19527           CC*)
19528             lt_prog_compiler_wl_CXX='-Wl,'
19529             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19530             if test "$host_cpu" != ia64; then
19531               lt_prog_compiler_pic_CXX='+Z'
19532             fi
19533             ;;
19534           aCC*)
19535             lt_prog_compiler_wl_CXX='-Wl,'
19536             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19537             case $host_cpu in
19538             hppa*64*|ia64*)
19539               # +Z the default
19540               ;;
19541             *)
19542               lt_prog_compiler_pic_CXX='+Z'
19543               ;;
19544             esac
19545             ;;
19546           *)
19547             ;;
19548         esac
19549         ;;
19550       interix*)
19551         # This is c89, which is MS Visual C++ (no shared libs)
19552         # Anyone wants to do a port?
19553         ;;
19554       irix5* | irix6* | nonstopux*)
19555         case $cc_basename in
19556           CC*)
19557             lt_prog_compiler_wl_CXX='-Wl,'
19558             lt_prog_compiler_static_CXX='-non_shared'
19559             # CC pic flag -KPIC is the default.
19560             ;;
19561           *)
19562             ;;
19563         esac
19564         ;;
19565       linux*)
19566         case $cc_basename in
19567           KCC*)
19568             # KAI C++ Compiler
19569             lt_prog_compiler_wl_CXX='--backend -Wl,'
19570             lt_prog_compiler_pic_CXX='-fPIC'
19571             ;;
19572           icpc* | ecpc*)
19573             # Intel C++
19574             lt_prog_compiler_wl_CXX='-Wl,'
19575             lt_prog_compiler_pic_CXX='-KPIC'
19576             lt_prog_compiler_static_CXX='-static'
19577             ;;
19578           pgCC*)
19579             # Portland Group C++ compiler.
19580             lt_prog_compiler_wl_CXX='-Wl,'
19581             lt_prog_compiler_pic_CXX='-fpic'
19582             lt_prog_compiler_static_CXX='-Bstatic'
19583             ;;
19584           cxx*)
19585             # Compaq C++
19586             # Make sure the PIC flag is empty.  It appears that all Alpha
19587             # Linux and Compaq Tru64 Unix objects are PIC.
19588             lt_prog_compiler_pic_CXX=
19589             lt_prog_compiler_static_CXX='-non_shared'
19590             ;;
19591           *)
19592             ;;
19593         esac
19594         ;;
19595       lynxos*)
19596         ;;
19597       m88k*)
19598         ;;
19599       mvs*)
19600         case $cc_basename in
19601           cxx*)
19602             lt_prog_compiler_pic_CXX='-W c,exportall'
19603             ;;
19604           *)
19605             ;;
19606         esac
19607         ;;
19608       netbsd*)
19609         ;;
19610       osf3* | osf4* | osf5*)
19611         case $cc_basename in
19612           KCC*)
19613             lt_prog_compiler_wl_CXX='--backend -Wl,'
19614             ;;
19615           RCC*)
19616             # Rational C++ 2.4.1
19617             lt_prog_compiler_pic_CXX='-pic'
19618             ;;
19619           cxx*)
19620             # Digital/Compaq C++
19621             lt_prog_compiler_wl_CXX='-Wl,'
19622             # Make sure the PIC flag is empty.  It appears that all Alpha
19623             # Linux and Compaq Tru64 Unix objects are PIC.
19624             lt_prog_compiler_pic_CXX=
19625             lt_prog_compiler_static_CXX='-non_shared'
19626             ;;
19627           *)
19628             ;;
19629         esac
19630         ;;
19631       psos*)
19632         ;;
19633       solaris*)
19634         case $cc_basename in
19635           CC*)
19636             # Sun C++ 4.2, 5.x and Centerline C++
19637             lt_prog_compiler_pic_CXX='-KPIC'
19638             lt_prog_compiler_static_CXX='-Bstatic'
19639             lt_prog_compiler_wl_CXX='-Qoption ld '
19640             ;;
19641           gcx*)
19642             # Green Hills C++ Compiler
19643             lt_prog_compiler_pic_CXX='-PIC'
19644             ;;
19645           *)
19646             ;;
19647         esac
19648         ;;
19649       sunos4*)
19650         case $cc_basename in
19651           CC*)
19652             # Sun C++ 4.x
19653             lt_prog_compiler_pic_CXX='-pic'
19654             lt_prog_compiler_static_CXX='-Bstatic'
19655             ;;
19656           lcc*)
19657             # Lucid
19658             lt_prog_compiler_pic_CXX='-pic'
19659             ;;
19660           *)
19661             ;;
19662         esac
19663         ;;
19664       tandem*)
19665         case $cc_basename in
19666           NCC*)
19667             # NonStop-UX NCC 3.20
19668             lt_prog_compiler_pic_CXX='-KPIC'
19669             ;;
19670           *)
19671             ;;
19672         esac
19673         ;;
19674       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19675         case $cc_basename in
19676           CC*)
19677             lt_prog_compiler_wl_CXX='-Wl,'
19678             lt_prog_compiler_pic_CXX='-KPIC'
19679             lt_prog_compiler_static_CXX='-Bstatic'
19680             ;;
19681         esac
19682         ;;
19683       vxworks*)
19684         ;;
19685       *)
19686         lt_prog_compiler_can_build_shared_CXX=no
19687         ;;
19688     esac
19689   fi
19690
19691 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19692 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19693
19694 #
19695 # Check to make sure the PIC flag actually works.
19696 #
19697 if test -n "$lt_prog_compiler_pic_CXX"; then
19698
19699 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19700 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19701 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19702   echo $ECHO_N "(cached) $ECHO_C" >&6
19703 else
19704   lt_prog_compiler_pic_works_CXX=no
19705   ac_outfile=conftest.$ac_objext
19706    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19707    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19708    # Insert the option either (1) after the last *FLAGS variable, or
19709    # (2) before a word containing "conftest.", or (3) at the end.
19710    # Note that $ac_compile itself does not contain backslashes and begins
19711    # with a dollar sign (not a hyphen), so the echo should work correctly.
19712    # The option is referenced via a variable to avoid confusing sed.
19713    lt_compile=`echo "$ac_compile" | $SED \
19714    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19715    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19716    -e 's:$: $lt_compiler_flag:'`
19717    (eval echo "\"\$as_me:19717: $lt_compile\"" >&5)
19718    (eval "$lt_compile" 2>conftest.err)
19719    ac_status=$?
19720    cat conftest.err >&5
19721    echo "$as_me:19721: \$? = $ac_status" >&5
19722    if (exit $ac_status) && test -s "$ac_outfile"; then
19723      # The compiler can only warn and ignore the option if not recognized
19724      # So say no if there are warnings other than the usual output.
19725      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19726      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19727      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19728        lt_prog_compiler_pic_works_CXX=yes
19729      fi
19730    fi
19731    $rm conftest*
19732
19733 fi
19734 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19735 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
19736
19737 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19738     case $lt_prog_compiler_pic_CXX in
19739      "" | " "*) ;;
19740      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19741      esac
19742 else
19743     lt_prog_compiler_pic_CXX=
19744      lt_prog_compiler_can_build_shared_CXX=no
19745 fi
19746
19747 fi
19748 case $host_os in
19749   # For platforms which do not support PIC, -DPIC is meaningless:
19750   *djgpp*)
19751     lt_prog_compiler_pic_CXX=
19752     ;;
19753   *)
19754     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19755     ;;
19756 esac
19757
19758 #
19759 # Check to make sure the static flag actually works.
19760 #
19761 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19762 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19763 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19764 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19765   echo $ECHO_N "(cached) $ECHO_C" >&6
19766 else
19767   lt_prog_compiler_static_works_CXX=no
19768    save_LDFLAGS="$LDFLAGS"
19769    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19770    printf "$lt_simple_link_test_code" > conftest.$ac_ext
19771    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19772      # The linker can only warn and ignore the option if not recognized
19773      # So say no if there are warnings
19774      if test -s conftest.err; then
19775        # Append any errors to the config.log.
19776        cat conftest.err 1>&5
19777        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19778        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19779        if diff conftest.exp conftest.er2 >/dev/null; then
19780          lt_prog_compiler_static_works_CXX=yes
19781        fi
19782      else
19783        lt_prog_compiler_static_works_CXX=yes
19784      fi
19785    fi
19786    $rm conftest*
19787    LDFLAGS="$save_LDFLAGS"
19788
19789 fi
19790 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19791 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19792
19793 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19794     :
19795 else
19796     lt_prog_compiler_static_CXX=
19797 fi
19798
19799
19800 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19801 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19802 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19803   echo $ECHO_N "(cached) $ECHO_C" >&6
19804 else
19805   lt_cv_prog_compiler_c_o_CXX=no
19806    $rm -r conftest 2>/dev/null
19807    mkdir conftest
19808    cd conftest
19809    mkdir out
19810    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19811
19812    lt_compiler_flag="-o out/conftest2.$ac_objext"
19813    # Insert the option either (1) after the last *FLAGS variable, or
19814    # (2) before a word containing "conftest.", or (3) at the end.
19815    # Note that $ac_compile itself does not contain backslashes and begins
19816    # with a dollar sign (not a hyphen), so the echo should work correctly.
19817    lt_compile=`echo "$ac_compile" | $SED \
19818    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19819    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19820    -e 's:$: $lt_compiler_flag:'`
19821    (eval echo "\"\$as_me:19821: $lt_compile\"" >&5)
19822    (eval "$lt_compile" 2>out/conftest.err)
19823    ac_status=$?
19824    cat out/conftest.err >&5
19825    echo "$as_me:19825: \$? = $ac_status" >&5
19826    if (exit $ac_status) && test -s out/conftest2.$ac_objext
19827    then
19828      # The compiler can only warn and ignore the option if not recognized
19829      # So say no if there are warnings
19830      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19831      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19832      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19833        lt_cv_prog_compiler_c_o_CXX=yes
19834      fi
19835    fi
19836    chmod u+w . 2>&5
19837    $rm conftest*
19838    # SGI C++ compiler will create directory out/ii_files/ for
19839    # template instantiation
19840    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19841    $rm out/* && rmdir out
19842    cd ..
19843    rmdir conftest
19844    $rm conftest*
19845
19846 fi
19847 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19848 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
19849
19850
19851 hard_links="nottested"
19852 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19853   # do not overwrite the value of need_locks provided by the user
19854   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19855 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19856   hard_links=yes
19857   $rm conftest*
19858   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19859   touch conftest.a
19860   ln conftest.a conftest.b 2>&5 || hard_links=no
19861   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19862   { echo "$as_me:$LINENO: result: $hard_links" >&5
19863 echo "${ECHO_T}$hard_links" >&6; }
19864   if test "$hard_links" = no; then
19865     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19866 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19867     need_locks=warn
19868   fi
19869 else
19870   need_locks=no
19871 fi
19872
19873 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19874 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19875
19876   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19877   case $host_os in
19878   aix4* | aix5*)
19879     # If we're using GNU nm, then we don't want the "-C" option.
19880     # -C means demangle to AIX nm, but means don't demangle with GNU nm
19881     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19882       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'
19883     else
19884       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'
19885     fi
19886     ;;
19887   pw32*)
19888     export_symbols_cmds_CXX="$ltdll_cmds"
19889   ;;
19890   cygwin* | mingw*)
19891     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'
19892   ;;
19893   *)
19894     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19895   ;;
19896   esac
19897
19898 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19899 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19900 test "$ld_shlibs_CXX" = no && can_build_shared=no
19901
19902 #
19903 # Do we need to explicitly link libc?
19904 #
19905 case "x$archive_cmds_need_lc_CXX" in
19906 x|xyes)
19907   # Assume -lc should be added
19908   archive_cmds_need_lc_CXX=yes
19909
19910   if test "$enable_shared" = yes && test "$GCC" = yes; then
19911     case $archive_cmds_CXX in
19912     *'~'*)
19913       # FIXME: we may have to deal with multi-command sequences.
19914       ;;
19915     '$CC '*)
19916       # Test whether the compiler implicitly links with -lc since on some
19917       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19918       # to ld, don't add -lc before -lgcc.
19919       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19920 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19921       $rm conftest*
19922       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19923
19924       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19925   (eval $ac_compile) 2>&5
19926   ac_status=$?
19927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19928   (exit $ac_status); } 2>conftest.err; then
19929         soname=conftest
19930         lib=conftest
19931         libobjs=conftest.$ac_objext
19932         deplibs=
19933         wl=$lt_prog_compiler_wl_CXX
19934         pic_flag=$lt_prog_compiler_pic_CXX
19935         compiler_flags=-v
19936         linker_flags=-v
19937         verstring=
19938         output_objdir=.
19939         libname=conftest
19940         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19941         allow_undefined_flag_CXX=
19942         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19943   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19944   ac_status=$?
19945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19946   (exit $ac_status); }
19947         then
19948           archive_cmds_need_lc_CXX=no
19949         else
19950           archive_cmds_need_lc_CXX=yes
19951         fi
19952         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19953       else
19954         cat conftest.err 1>&5
19955       fi
19956       $rm conftest*
19957       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19958 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
19959       ;;
19960     esac
19961   fi
19962   ;;
19963 esac
19964
19965 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19966 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19967 library_names_spec=
19968 libname_spec='lib$name'
19969 soname_spec=
19970 shrext_cmds=".so"
19971 postinstall_cmds=
19972 postuninstall_cmds=
19973 finish_cmds=
19974 finish_eval=
19975 shlibpath_var=
19976 shlibpath_overrides_runpath=unknown
19977 version_type=none
19978 dynamic_linker="$host_os ld.so"
19979 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19980 if test "$GCC" = yes; then
19981   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19982   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19983     # if the path contains ";" then we assume it to be the separator
19984     # otherwise default to the standard path separator (i.e. ":") - it is
19985     # assumed that no part of a normal pathname contains ";" but that should
19986     # okay in the real world where ";" in dirpaths is itself problematic.
19987     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19988   else
19989     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19990   fi
19991 else
19992   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19993 fi
19994 need_lib_prefix=unknown
19995 hardcode_into_libs=no
19996
19997 # when you set need_version to no, make sure it does not cause -set_version
19998 # flags to be left without arguments
19999 need_version=unknown
20000
20001 case $host_os in
20002 aix3*)
20003   version_type=linux
20004   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20005   shlibpath_var=LIBPATH
20006
20007   # AIX 3 has no versioning support, so we append a major version to the name.
20008   soname_spec='${libname}${release}${shared_ext}$major'
20009   ;;
20010
20011 aix4* | aix5*)
20012   version_type=linux
20013   need_lib_prefix=no
20014   need_version=no
20015   hardcode_into_libs=yes
20016   if test "$host_cpu" = ia64; then
20017     # AIX 5 supports IA64
20018     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20019     shlibpath_var=LD_LIBRARY_PATH
20020   else
20021     # With GCC up to 2.95.x, collect2 would create an import file
20022     # for dependence libraries.  The import file would start with
20023     # the line `#! .'.  This would cause the generated library to
20024     # depend on `.', always an invalid library.  This was fixed in
20025     # development snapshots of GCC prior to 3.0.
20026     case $host_os in
20027       aix4 | aix4.[01] | aix4.[01].*)
20028       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20029            echo ' yes '
20030            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20031         :
20032       else
20033         can_build_shared=no
20034       fi
20035       ;;
20036     esac
20037     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20038     # soname into executable. Probably we can add versioning support to
20039     # collect2, so additional links can be useful in future.
20040     if test "$aix_use_runtimelinking" = yes; then
20041       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20042       # instead of lib<name>.a to let people know that these are not
20043       # typical AIX shared libraries.
20044       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20045     else
20046       # We preserve .a as extension for shared libraries through AIX4.2
20047       # and later when we are not doing run time linking.
20048       library_names_spec='${libname}${release}.a $libname.a'
20049       soname_spec='${libname}${release}${shared_ext}$major'
20050     fi
20051     shlibpath_var=LIBPATH
20052   fi
20053   ;;
20054
20055 amigaos*)
20056   library_names_spec='$libname.ixlibrary $libname.a'
20057   # Create ${libname}_ixlibrary.a entries in /sys/libs.
20058   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'
20059   ;;
20060
20061 beos*)
20062   library_names_spec='${libname}${shared_ext}'
20063   dynamic_linker="$host_os ld.so"
20064   shlibpath_var=LIBRARY_PATH
20065   ;;
20066
20067 bsdi[45]*)
20068   version_type=linux
20069   need_version=no
20070   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20071   soname_spec='${libname}${release}${shared_ext}$major'
20072   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20073   shlibpath_var=LD_LIBRARY_PATH
20074   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20075   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20076   # the default ld.so.conf also contains /usr/contrib/lib and
20077   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20078   # libtool to hard-code these into programs
20079   ;;
20080
20081 cygwin* | mingw* | pw32*)
20082   version_type=windows
20083   shrext_cmds=".dll"
20084   need_version=no
20085   need_lib_prefix=no
20086
20087   case $GCC,$host_os in
20088   yes,cygwin* | yes,mingw* | yes,pw32*)
20089     library_names_spec='$libname.dll.a'
20090     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20091     postinstall_cmds='base_file=`basename \${file}`~
20092       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20093       dldir=$destdir/`dirname \$dlpath`~
20094       test -d \$dldir || mkdir -p \$dldir~
20095       $install_prog $dir/$dlname \$dldir/$dlname~
20096       chmod a+x \$dldir/$dlname'
20097     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20098       dlpath=$dir/\$dldll~
20099        $rm \$dlpath'
20100     shlibpath_overrides_runpath=yes
20101
20102     case $host_os in
20103     cygwin*)
20104       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20105       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20106       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20107       ;;
20108     mingw*)
20109       # MinGW DLLs use traditional 'lib' prefix
20110       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20111       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20112       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20113         # It is most probably a Windows format PATH printed by
20114         # mingw gcc, but we are running on Cygwin. Gcc prints its search
20115         # path with ; separators, and with drive letters. We can handle the
20116         # drive letters (cygwin fileutils understands them), so leave them,
20117         # especially as we might pass files found there to a mingw objdump,
20118         # which wouldn't understand a cygwinified path. Ahh.
20119         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20120       else
20121         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20122       fi
20123       ;;
20124     pw32*)
20125       # pw32 DLLs use 'pw' prefix rather than 'lib'
20126       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20127       ;;
20128     esac
20129     ;;
20130
20131   *)
20132     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20133     ;;
20134   esac
20135   dynamic_linker='Win32 ld.exe'
20136   # FIXME: first we should search . and the directory the executable is in
20137   shlibpath_var=PATH
20138   ;;
20139
20140 darwin* | rhapsody*)
20141   dynamic_linker="$host_os dyld"
20142   version_type=darwin
20143   need_lib_prefix=no
20144   need_version=no
20145   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20146   soname_spec='${libname}${release}${major}$shared_ext'
20147   shlibpath_overrides_runpath=yes
20148   shlibpath_var=DYLD_LIBRARY_PATH
20149   shrext_cmds='.dylib'
20150   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20151   if test "$GCC" = yes; then
20152     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"`
20153   else
20154     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20155   fi
20156   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20157   ;;
20158
20159 dgux*)
20160   version_type=linux
20161   need_lib_prefix=no
20162   need_version=no
20163   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20164   soname_spec='${libname}${release}${shared_ext}$major'
20165   shlibpath_var=LD_LIBRARY_PATH
20166   ;;
20167
20168 freebsd1*)
20169   dynamic_linker=no
20170   ;;
20171
20172 kfreebsd*-gnu)
20173   version_type=linux
20174   need_lib_prefix=no
20175   need_version=no
20176   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20177   soname_spec='${libname}${release}${shared_ext}$major'
20178   shlibpath_var=LD_LIBRARY_PATH
20179   shlibpath_overrides_runpath=no
20180   hardcode_into_libs=yes
20181   dynamic_linker='GNU ld.so'
20182   ;;
20183
20184 freebsd* | dragonfly*)
20185   # DragonFly does not have aout.  When/if they implement a new
20186   # versioning mechanism, adjust this.
20187   if test -x /usr/bin/objformat; then
20188     objformat=`/usr/bin/objformat`
20189   else
20190     case $host_os in
20191     freebsd[123]*) objformat=aout ;;
20192     *) objformat=elf ;;
20193     esac
20194   fi
20195   version_type=freebsd-$objformat
20196   case $version_type in
20197     freebsd-elf*)
20198       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20199       need_version=no
20200       need_lib_prefix=no
20201       ;;
20202     freebsd-*)
20203       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20204       need_version=yes
20205       ;;
20206   esac
20207   shlibpath_var=LD_LIBRARY_PATH
20208   case $host_os in
20209   freebsd2*)
20210     shlibpath_overrides_runpath=yes
20211     ;;
20212   freebsd3.[01]* | freebsdelf3.[01]*)
20213     shlibpath_overrides_runpath=yes
20214     hardcode_into_libs=yes
20215     ;;
20216   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20217   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20218     shlibpath_overrides_runpath=no
20219     hardcode_into_libs=yes
20220     ;;
20221   freebsd*) # from 4.6 on
20222     shlibpath_overrides_runpath=yes
20223     hardcode_into_libs=yes
20224     ;;
20225   esac
20226   ;;
20227
20228 gnu*)
20229   version_type=linux
20230   need_lib_prefix=no
20231   need_version=no
20232   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20233   soname_spec='${libname}${release}${shared_ext}$major'
20234   shlibpath_var=LD_LIBRARY_PATH
20235   hardcode_into_libs=yes
20236   ;;
20237
20238 hpux9* | hpux10* | hpux11*)
20239   # Give a soname corresponding to the major version so that dld.sl refuses to
20240   # link against other versions.
20241   version_type=sunos
20242   need_lib_prefix=no
20243   need_version=no
20244   case $host_cpu in
20245   ia64*)
20246     shrext_cmds='.so'
20247     hardcode_into_libs=yes
20248     dynamic_linker="$host_os dld.so"
20249     shlibpath_var=LD_LIBRARY_PATH
20250     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20251     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20252     soname_spec='${libname}${release}${shared_ext}$major'
20253     if test "X$HPUX_IA64_MODE" = X32; then
20254       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20255     else
20256       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20257     fi
20258     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20259     ;;
20260    hppa*64*)
20261      shrext_cmds='.sl'
20262      hardcode_into_libs=yes
20263      dynamic_linker="$host_os dld.sl"
20264      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20265      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20266      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20267      soname_spec='${libname}${release}${shared_ext}$major'
20268      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20269      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20270      ;;
20271    *)
20272     shrext_cmds='.sl'
20273     dynamic_linker="$host_os dld.sl"
20274     shlibpath_var=SHLIB_PATH
20275     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20276     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20277     soname_spec='${libname}${release}${shared_ext}$major'
20278     ;;
20279   esac
20280   # HP-UX runs *really* slowly unless shared libraries are mode 555.
20281   postinstall_cmds='chmod 555 $lib'
20282   ;;
20283
20284 interix3*)
20285   version_type=linux
20286   need_lib_prefix=no
20287   need_version=no
20288   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20289   soname_spec='${libname}${release}${shared_ext}$major'
20290   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20291   shlibpath_var=LD_LIBRARY_PATH
20292   shlibpath_overrides_runpath=no
20293   hardcode_into_libs=yes
20294   ;;
20295
20296 irix5* | irix6* | nonstopux*)
20297   case $host_os in
20298     nonstopux*) version_type=nonstopux ;;
20299     *)
20300         if test "$lt_cv_prog_gnu_ld" = yes; then
20301                 version_type=linux
20302         else
20303                 version_type=irix
20304         fi ;;
20305   esac
20306   need_lib_prefix=no
20307   need_version=no
20308   soname_spec='${libname}${release}${shared_ext}$major'
20309   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20310   case $host_os in
20311   irix5* | nonstopux*)
20312     libsuff= shlibsuff=
20313     ;;
20314   *)
20315     case $LD in # libtool.m4 will add one of these switches to LD
20316     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20317       libsuff= shlibsuff= libmagic=32-bit;;
20318     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20319       libsuff=32 shlibsuff=N32 libmagic=N32;;
20320     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20321       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20322     *) libsuff= shlibsuff= libmagic=never-match;;
20323     esac
20324     ;;
20325   esac
20326   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20327   shlibpath_overrides_runpath=no
20328   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20329   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20330   hardcode_into_libs=yes
20331   ;;
20332
20333 # No shared lib support for Linux oldld, aout, or coff.
20334 linux*oldld* | linux*aout* | linux*coff*)
20335   dynamic_linker=no
20336   ;;
20337
20338 # This must be Linux ELF.
20339 linux*)
20340   version_type=linux
20341   need_lib_prefix=no
20342   need_version=no
20343   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20344   soname_spec='${libname}${release}${shared_ext}$major'
20345   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20346   shlibpath_var=LD_LIBRARY_PATH
20347   shlibpath_overrides_runpath=no
20348   # This implies no fast_install, which is unacceptable.
20349   # Some rework will be needed to allow for fast_install
20350   # before this can be enabled.
20351   hardcode_into_libs=yes
20352
20353   # Append ld.so.conf contents to the search path
20354   if test -f /etc/ld.so.conf; then
20355     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' ' '`
20356     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20357   fi
20358
20359   # We used to test for /lib/ld.so.1 and disable shared libraries on
20360   # powerpc, because MkLinux only supported shared libraries with the
20361   # GNU dynamic linker.  Since this was broken with cross compilers,
20362   # most powerpc-linux boxes support dynamic linking these days and
20363   # people can always --disable-shared, the test was removed, and we
20364   # assume the GNU/Linux dynamic linker is in use.
20365   dynamic_linker='GNU/Linux ld.so'
20366   ;;
20367
20368 knetbsd*-gnu)
20369   version_type=linux
20370   need_lib_prefix=no
20371   need_version=no
20372   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20373   soname_spec='${libname}${release}${shared_ext}$major'
20374   shlibpath_var=LD_LIBRARY_PATH
20375   shlibpath_overrides_runpath=no
20376   hardcode_into_libs=yes
20377   dynamic_linker='GNU ld.so'
20378   ;;
20379
20380 netbsd*)
20381   version_type=sunos
20382   need_lib_prefix=no
20383   need_version=no
20384   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20385     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20386     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20387     dynamic_linker='NetBSD (a.out) ld.so'
20388   else
20389     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20390     soname_spec='${libname}${release}${shared_ext}$major'
20391     dynamic_linker='NetBSD ld.elf_so'
20392   fi
20393   shlibpath_var=LD_LIBRARY_PATH
20394   shlibpath_overrides_runpath=yes
20395   hardcode_into_libs=yes
20396   ;;
20397
20398 newsos6)
20399   version_type=linux
20400   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20401   shlibpath_var=LD_LIBRARY_PATH
20402   shlibpath_overrides_runpath=yes
20403   ;;
20404
20405 nto-qnx*)
20406   version_type=linux
20407   need_lib_prefix=no
20408   need_version=no
20409   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20410   soname_spec='${libname}${release}${shared_ext}$major'
20411   shlibpath_var=LD_LIBRARY_PATH
20412   shlibpath_overrides_runpath=yes
20413   ;;
20414
20415 openbsd*)
20416   version_type=sunos
20417   sys_lib_dlsearch_path_spec="/usr/lib"
20418   need_lib_prefix=no
20419   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20420   case $host_os in
20421     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20422     *)                         need_version=no  ;;
20423   esac
20424   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20425   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20426   shlibpath_var=LD_LIBRARY_PATH
20427   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20428     case $host_os in
20429       openbsd2.[89] | openbsd2.[89].*)
20430         shlibpath_overrides_runpath=no
20431         ;;
20432       *)
20433         shlibpath_overrides_runpath=yes
20434         ;;
20435       esac
20436   else
20437     shlibpath_overrides_runpath=yes
20438   fi
20439   ;;
20440
20441 os2*)
20442   libname_spec='$name'
20443   shrext_cmds=".dll"
20444   need_lib_prefix=no
20445   library_names_spec='$libname${shared_ext} $libname.a'
20446   dynamic_linker='OS/2 ld.exe'
20447   shlibpath_var=LIBPATH
20448   ;;
20449
20450 osf3* | osf4* | osf5*)
20451   version_type=osf
20452   need_lib_prefix=no
20453   need_version=no
20454   soname_spec='${libname}${release}${shared_ext}$major'
20455   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20456   shlibpath_var=LD_LIBRARY_PATH
20457   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20458   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20459   ;;
20460
20461 solaris*)
20462   version_type=linux
20463   need_lib_prefix=no
20464   need_version=no
20465   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20466   soname_spec='${libname}${release}${shared_ext}$major'
20467   shlibpath_var=LD_LIBRARY_PATH
20468   shlibpath_overrides_runpath=yes
20469   hardcode_into_libs=yes
20470   # ldd complains unless libraries are executable
20471   postinstall_cmds='chmod +x $lib'
20472   ;;
20473
20474 sunos4*)
20475   version_type=sunos
20476   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20477   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20478   shlibpath_var=LD_LIBRARY_PATH
20479   shlibpath_overrides_runpath=yes
20480   if test "$with_gnu_ld" = yes; then
20481     need_lib_prefix=no
20482   fi
20483   need_version=yes
20484   ;;
20485
20486 sysv4 | sysv4.3*)
20487   version_type=linux
20488   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20489   soname_spec='${libname}${release}${shared_ext}$major'
20490   shlibpath_var=LD_LIBRARY_PATH
20491   case $host_vendor in
20492     sni)
20493       shlibpath_overrides_runpath=no
20494       need_lib_prefix=no
20495       export_dynamic_flag_spec='${wl}-Blargedynsym'
20496       runpath_var=LD_RUN_PATH
20497       ;;
20498     siemens)
20499       need_lib_prefix=no
20500       ;;
20501     motorola)
20502       need_lib_prefix=no
20503       need_version=no
20504       shlibpath_overrides_runpath=no
20505       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20506       ;;
20507   esac
20508   ;;
20509
20510 sysv4*MP*)
20511   if test -d /usr/nec ;then
20512     version_type=linux
20513     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20514     soname_spec='$libname${shared_ext}.$major'
20515     shlibpath_var=LD_LIBRARY_PATH
20516   fi
20517   ;;
20518
20519 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20520   version_type=freebsd-elf
20521   need_lib_prefix=no
20522   need_version=no
20523   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20524   soname_spec='${libname}${release}${shared_ext}$major'
20525   shlibpath_var=LD_LIBRARY_PATH
20526   hardcode_into_libs=yes
20527   if test "$with_gnu_ld" = yes; then
20528     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20529     shlibpath_overrides_runpath=no
20530   else
20531     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20532     shlibpath_overrides_runpath=yes
20533     case $host_os in
20534       sco3.2v5*)
20535         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20536         ;;
20537     esac
20538   fi
20539   sys_lib_dlsearch_path_spec='/usr/lib'
20540   ;;
20541
20542 uts4*)
20543   version_type=linux
20544   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20545   soname_spec='${libname}${release}${shared_ext}$major'
20546   shlibpath_var=LD_LIBRARY_PATH
20547   ;;
20548
20549 *)
20550   dynamic_linker=no
20551   ;;
20552 esac
20553 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20554 echo "${ECHO_T}$dynamic_linker" >&6; }
20555 test "$dynamic_linker" = no && can_build_shared=no
20556
20557 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20558 if test "$GCC" = yes; then
20559   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20560 fi
20561
20562 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20563 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20564 hardcode_action_CXX=
20565 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20566    test -n "$runpath_var_CXX" || \
20567    test "X$hardcode_automatic_CXX" = "Xyes" ; then
20568
20569   # We can hardcode non-existant directories.
20570   if test "$hardcode_direct_CXX" != no &&
20571      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20572      # have to relink, otherwise we might link with an installed library
20573      # when we should be linking with a yet-to-be-installed one
20574      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20575      test "$hardcode_minus_L_CXX" != no; then
20576     # Linking always hardcodes the temporary library directory.
20577     hardcode_action_CXX=relink
20578   else
20579     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20580     hardcode_action_CXX=immediate
20581   fi
20582 else
20583   # We cannot hardcode anything, or else we can only hardcode existing
20584   # directories.
20585   hardcode_action_CXX=unsupported
20586 fi
20587 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20588 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20589
20590 if test "$hardcode_action_CXX" = relink; then
20591   # Fast installation is not supported
20592   enable_fast_install=no
20593 elif test "$shlibpath_overrides_runpath" = yes ||
20594      test "$enable_shared" = no; then
20595   # Fast installation is not necessary
20596   enable_fast_install=needless
20597 fi
20598
20599
20600 # The else clause should only fire when bootstrapping the
20601 # libtool distribution, otherwise you forgot to ship ltmain.sh
20602 # with your package, and you will get complaints that there are
20603 # no rules to generate ltmain.sh.
20604 if test -f "$ltmain"; then
20605   # See if we are running on zsh, and set the options which allow our commands through
20606   # without removal of \ escapes.
20607   if test -n "${ZSH_VERSION+set}" ; then
20608     setopt NO_GLOB_SUBST
20609   fi
20610   # Now quote all the things that may contain metacharacters while being
20611   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20612   # variables and quote the copies for generation of the libtool script.
20613   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20614     SED SHELL STRIP \
20615     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20616     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20617     deplibs_check_method reload_flag reload_cmds need_locks \
20618     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20619     lt_cv_sys_global_symbol_to_c_name_address \
20620     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20621     old_postinstall_cmds old_postuninstall_cmds \
20622     compiler_CXX \
20623     CC_CXX \
20624     LD_CXX \
20625     lt_prog_compiler_wl_CXX \
20626     lt_prog_compiler_pic_CXX \
20627     lt_prog_compiler_static_CXX \
20628     lt_prog_compiler_no_builtin_flag_CXX \
20629     export_dynamic_flag_spec_CXX \
20630     thread_safe_flag_spec_CXX \
20631     whole_archive_flag_spec_CXX \
20632     enable_shared_with_static_runtimes_CXX \
20633     old_archive_cmds_CXX \
20634     old_archive_from_new_cmds_CXX \
20635     predep_objects_CXX \
20636     postdep_objects_CXX \
20637     predeps_CXX \
20638     postdeps_CXX \
20639     compiler_lib_search_path_CXX \
20640     archive_cmds_CXX \
20641     archive_expsym_cmds_CXX \
20642     postinstall_cmds_CXX \
20643     postuninstall_cmds_CXX \
20644     old_archive_from_expsyms_cmds_CXX \
20645     allow_undefined_flag_CXX \
20646     no_undefined_flag_CXX \
20647     export_symbols_cmds_CXX \
20648     hardcode_libdir_flag_spec_CXX \
20649     hardcode_libdir_flag_spec_ld_CXX \
20650     hardcode_libdir_separator_CXX \
20651     hardcode_automatic_CXX \
20652     module_cmds_CXX \
20653     module_expsym_cmds_CXX \
20654     lt_cv_prog_compiler_c_o_CXX \
20655     exclude_expsyms_CXX \
20656     include_expsyms_CXX; do
20657
20658     case $var in
20659     old_archive_cmds_CXX | \
20660     old_archive_from_new_cmds_CXX | \
20661     archive_cmds_CXX | \
20662     archive_expsym_cmds_CXX | \
20663     module_cmds_CXX | \
20664     module_expsym_cmds_CXX | \
20665     old_archive_from_expsyms_cmds_CXX | \
20666     export_symbols_cmds_CXX | \
20667     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20668     postinstall_cmds | postuninstall_cmds | \
20669     old_postinstall_cmds | old_postuninstall_cmds | \
20670     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20671       # Double-quote double-evaled strings.
20672       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20673       ;;
20674     *)
20675       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20676       ;;
20677     esac
20678   done
20679
20680   case $lt_echo in
20681   *'\$0 --fallback-echo"')
20682     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20683     ;;
20684   esac
20685
20686 cfgfile="$ofile"
20687
20688   cat <<__EOF__ >> "$cfgfile"
20689 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20690
20691 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20692
20693 # Shell to use when invoking shell scripts.
20694 SHELL=$lt_SHELL
20695
20696 # Whether or not to build shared libraries.
20697 build_libtool_libs=$enable_shared
20698
20699 # Whether or not to build static libraries.
20700 build_old_libs=$enable_static
20701
20702 # Whether or not to add -lc for building shared libraries.
20703 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20704
20705 # Whether or not to disallow shared libs when runtime libs are static
20706 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20707
20708 # Whether or not to optimize for fast installation.
20709 fast_install=$enable_fast_install
20710
20711 # The host system.
20712 host_alias=$host_alias
20713 host=$host
20714 host_os=$host_os
20715
20716 # The build system.
20717 build_alias=$build_alias
20718 build=$build
20719 build_os=$build_os
20720
20721 # An echo program that does not interpret backslashes.
20722 echo=$lt_echo
20723
20724 # The archiver.
20725 AR=$lt_AR
20726 AR_FLAGS=$lt_AR_FLAGS
20727
20728 # A C compiler.
20729 LTCC=$lt_LTCC
20730
20731 # LTCC compiler flags.
20732 LTCFLAGS=$lt_LTCFLAGS
20733
20734 # A language-specific compiler.
20735 CC=$lt_compiler_CXX
20736
20737 # Is the compiler the GNU C compiler?
20738 with_gcc=$GCC_CXX
20739
20740 # An ERE matcher.
20741 EGREP=$lt_EGREP
20742
20743 # The linker used to build libraries.
20744 LD=$lt_LD_CXX
20745
20746 # Whether we need hard or soft links.
20747 LN_S=$lt_LN_S
20748
20749 # A BSD-compatible nm program.
20750 NM=$lt_NM
20751
20752 # A symbol stripping program
20753 STRIP=$lt_STRIP
20754
20755 # Used to examine libraries when file_magic_cmd begins "file"
20756 MAGIC_CMD=$MAGIC_CMD
20757
20758 # Used on cygwin: DLL creation program.
20759 DLLTOOL="$DLLTOOL"
20760
20761 # Used on cygwin: object dumper.
20762 OBJDUMP="$OBJDUMP"
20763
20764 # Used on cygwin: assembler.
20765 AS="$AS"
20766
20767 # The name of the directory that contains temporary libtool files.
20768 objdir=$objdir
20769
20770 # How to create reloadable object files.
20771 reload_flag=$lt_reload_flag
20772 reload_cmds=$lt_reload_cmds
20773
20774 # How to pass a linker flag through the compiler.
20775 wl=$lt_lt_prog_compiler_wl_CXX
20776
20777 # Object file suffix (normally "o").
20778 objext="$ac_objext"
20779
20780 # Old archive suffix (normally "a").
20781 libext="$libext"
20782
20783 # Shared library suffix (normally ".so").
20784 shrext_cmds='$shrext_cmds'
20785
20786 # Executable file suffix (normally "").
20787 exeext="$exeext"
20788
20789 # Additional compiler flags for building library objects.
20790 pic_flag=$lt_lt_prog_compiler_pic_CXX
20791 pic_mode=$pic_mode
20792
20793 # What is the maximum length of a command?
20794 max_cmd_len=$lt_cv_sys_max_cmd_len
20795
20796 # Does compiler simultaneously support -c and -o options?
20797 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20798
20799 # Must we lock files when doing compilation?
20800 need_locks=$lt_need_locks
20801
20802 # Do we need the lib prefix for modules?
20803 need_lib_prefix=$need_lib_prefix
20804
20805 # Do we need a version for libraries?
20806 need_version=$need_version
20807
20808 # Whether dlopen is supported.
20809 dlopen_support=$enable_dlopen
20810
20811 # Whether dlopen of programs is supported.
20812 dlopen_self=$enable_dlopen_self
20813
20814 # Whether dlopen of statically linked programs is supported.
20815 dlopen_self_static=$enable_dlopen_self_static
20816
20817 # Compiler flag to prevent dynamic linking.
20818 link_static_flag=$lt_lt_prog_compiler_static_CXX
20819
20820 # Compiler flag to turn off builtin functions.
20821 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20822
20823 # Compiler flag to allow reflexive dlopens.
20824 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20825
20826 # Compiler flag to generate shared objects directly from archives.
20827 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20828
20829 # Compiler flag to generate thread-safe objects.
20830 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20831
20832 # Library versioning type.
20833 version_type=$version_type
20834
20835 # Format of library name prefix.
20836 libname_spec=$lt_libname_spec
20837
20838 # List of archive names.  First name is the real one, the rest are links.
20839 # The last name is the one that the linker finds with -lNAME.
20840 library_names_spec=$lt_library_names_spec
20841
20842 # The coded name of the library, if different from the real name.
20843 soname_spec=$lt_soname_spec
20844
20845 # Commands used to build and install an old-style archive.
20846 RANLIB=$lt_RANLIB
20847 old_archive_cmds=$lt_old_archive_cmds_CXX
20848 old_postinstall_cmds=$lt_old_postinstall_cmds
20849 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20850
20851 # Create an old-style archive from a shared archive.
20852 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20853
20854 # Create a temporary old-style archive to link instead of a shared archive.
20855 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20856
20857 # Commands used to build and install a shared archive.
20858 archive_cmds=$lt_archive_cmds_CXX
20859 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20860 postinstall_cmds=$lt_postinstall_cmds
20861 postuninstall_cmds=$lt_postuninstall_cmds
20862
20863 # Commands used to build a loadable module (assumed same as above if empty)
20864 module_cmds=$lt_module_cmds_CXX
20865 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20866
20867 # Commands to strip libraries.
20868 old_striplib=$lt_old_striplib
20869 striplib=$lt_striplib
20870
20871 # Dependencies to place before the objects being linked to create a
20872 # shared library.
20873 predep_objects=$lt_predep_objects_CXX
20874
20875 # Dependencies to place after the objects being linked to create a
20876 # shared library.
20877 postdep_objects=$lt_postdep_objects_CXX
20878
20879 # Dependencies to place before the objects being linked to create a
20880 # shared library.
20881 predeps=$lt_predeps_CXX
20882
20883 # Dependencies to place after the objects being linked to create a
20884 # shared library.
20885 postdeps=$lt_postdeps_CXX
20886
20887 # The library search path used internally by the compiler when linking
20888 # a shared library.
20889 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20890
20891 # Method to check whether dependent libraries are shared objects.
20892 deplibs_check_method=$lt_deplibs_check_method
20893
20894 # Command to use when deplibs_check_method == file_magic.
20895 file_magic_cmd=$lt_file_magic_cmd
20896
20897 # Flag that allows shared libraries with undefined symbols to be built.
20898 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20899
20900 # Flag that forces no undefined symbols.
20901 no_undefined_flag=$lt_no_undefined_flag_CXX
20902
20903 # Commands used to finish a libtool library installation in a directory.
20904 finish_cmds=$lt_finish_cmds
20905
20906 # Same as above, but a single script fragment to be evaled but not shown.
20907 finish_eval=$lt_finish_eval
20908
20909 # Take the output of nm and produce a listing of raw symbols and C names.
20910 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20911
20912 # Transform the output of nm in a proper C declaration
20913 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20914
20915 # Transform the output of nm in a C name address pair
20916 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20917
20918 # This is the shared library runtime path variable.
20919 runpath_var=$runpath_var
20920
20921 # This is the shared library path variable.
20922 shlibpath_var=$shlibpath_var
20923
20924 # Is shlibpath searched before the hard-coded library search path?
20925 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20926
20927 # How to hardcode a shared library path into an executable.
20928 hardcode_action=$hardcode_action_CXX
20929
20930 # Whether we should hardcode library paths into libraries.
20931 hardcode_into_libs=$hardcode_into_libs
20932
20933 # Flag to hardcode \$libdir into a binary during linking.
20934 # This must work even if \$libdir does not exist.
20935 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20936
20937 # If ld is used when linking, flag to hardcode \$libdir into
20938 # a binary during linking. This must work even if \$libdir does
20939 # not exist.
20940 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20941
20942 # Whether we need a single -rpath flag with a separated argument.
20943 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20944
20945 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20946 # resulting binary.
20947 hardcode_direct=$hardcode_direct_CXX
20948
20949 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20950 # resulting binary.
20951 hardcode_minus_L=$hardcode_minus_L_CXX
20952
20953 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20954 # the resulting binary.
20955 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20956
20957 # Set to yes if building a shared library automatically hardcodes DIR into the library
20958 # and all subsequent libraries and executables linked against it.
20959 hardcode_automatic=$hardcode_automatic_CXX
20960
20961 # Variables whose values should be saved in libtool wrapper scripts and
20962 # restored at relink time.
20963 variables_saved_for_relink="$variables_saved_for_relink"
20964
20965 # Whether libtool must link a program against all its dependency libraries.
20966 link_all_deplibs=$link_all_deplibs_CXX
20967
20968 # Compile-time system search path for libraries
20969 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20970
20971 # Run-time system search path for libraries
20972 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20973
20974 # Fix the shell variable \$srcfile for the compiler.
20975 fix_srcfile_path="$fix_srcfile_path_CXX"
20976
20977 # Set to yes if exported symbols are required.
20978 always_export_symbols=$always_export_symbols_CXX
20979
20980 # The commands to list exported symbols.
20981 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20982
20983 # The commands to extract the exported symbol list from a shared archive.
20984 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20985
20986 # Symbols that should not be listed in the preloaded symbols.
20987 exclude_expsyms=$lt_exclude_expsyms_CXX
20988
20989 # Symbols that must always be exported.
20990 include_expsyms=$lt_include_expsyms_CXX
20991
20992 # ### END LIBTOOL TAG CONFIG: $tagname
20993
20994 __EOF__
20995
20996
20997 else
20998   # If there is no Makefile yet, we rely on a make rule to execute
20999   # `config.status --recheck' to rerun these tests and create the
21000   # libtool script then.
21001   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21002   if test -f "$ltmain_in"; then
21003     test -f Makefile && make "$ltmain"
21004   fi
21005 fi
21006
21007
21008 ac_ext=c
21009 ac_cpp='$CPP $CPPFLAGS'
21010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21013
21014 CC=$lt_save_CC
21015 LDCXX=$LD
21016 LD=$lt_save_LD
21017 GCC=$lt_save_GCC
21018 with_gnu_ldcxx=$with_gnu_ld
21019 with_gnu_ld=$lt_save_with_gnu_ld
21020 lt_cv_path_LDCXX=$lt_cv_path_LD
21021 lt_cv_path_LD=$lt_save_path_LD
21022 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21023 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21024
21025         else
21026           tagname=""
21027         fi
21028         ;;
21029
21030       F77)
21031         if test -n "$F77" && test "X$F77" != "Xno"; then
21032
21033 ac_ext=f
21034 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21035 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21036 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21037
21038
21039 archive_cmds_need_lc_F77=no
21040 allow_undefined_flag_F77=
21041 always_export_symbols_F77=no
21042 archive_expsym_cmds_F77=
21043 export_dynamic_flag_spec_F77=
21044 hardcode_direct_F77=no
21045 hardcode_libdir_flag_spec_F77=
21046 hardcode_libdir_flag_spec_ld_F77=
21047 hardcode_libdir_separator_F77=
21048 hardcode_minus_L_F77=no
21049 hardcode_automatic_F77=no
21050 module_cmds_F77=
21051 module_expsym_cmds_F77=
21052 link_all_deplibs_F77=unknown
21053 old_archive_cmds_F77=$old_archive_cmds
21054 no_undefined_flag_F77=
21055 whole_archive_flag_spec_F77=
21056 enable_shared_with_static_runtimes_F77=no
21057
21058 # Source file extension for f77 test sources.
21059 ac_ext=f
21060
21061 # Object file extension for compiled f77 test sources.
21062 objext=o
21063 objext_F77=$objext
21064
21065 # Code to be used in simple compile tests
21066 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
21067
21068 # Code to be used in simple link tests
21069 lt_simple_link_test_code="      program t\n      end\n"
21070
21071 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21072
21073 # If no C compiler was specified, use CC.
21074 LTCC=${LTCC-"$CC"}
21075
21076 # If no C compiler flags were specified, use CFLAGS.
21077 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21078
21079 # Allow CC to be a program name with arguments.
21080 compiler=$CC
21081
21082
21083 # save warnings/boilerplate of simple test code
21084 ac_outfile=conftest.$ac_objext
21085 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21086 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21087 _lt_compiler_boilerplate=`cat conftest.err`
21088 $rm conftest*
21089
21090 ac_outfile=conftest.$ac_objext
21091 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21092 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21093 _lt_linker_boilerplate=`cat conftest.err`
21094 $rm conftest*
21095
21096
21097 # Allow CC to be a program name with arguments.
21098 lt_save_CC="$CC"
21099 CC=${F77-"f77"}
21100 compiler=$CC
21101 compiler_F77=$CC
21102 for cc_temp in $compiler""; do
21103   case $cc_temp in
21104     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21105     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21106     \-*) ;;
21107     *) break;;
21108   esac
21109 done
21110 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21111
21112
21113 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21114 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21115 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21116 echo "${ECHO_T}$can_build_shared" >&6; }
21117
21118 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21119 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21120 test "$can_build_shared" = "no" && enable_shared=no
21121
21122 # On AIX, shared libraries and static libraries use the same namespace, and
21123 # are all built from PIC.
21124 case $host_os in
21125 aix3*)
21126   test "$enable_shared" = yes && enable_static=no
21127   if test -n "$RANLIB"; then
21128     archive_cmds="$archive_cmds~\$RANLIB \$lib"
21129     postinstall_cmds='$RANLIB $lib'
21130   fi
21131   ;;
21132 aix4* | aix5*)
21133   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21134     test "$enable_shared" = yes && enable_static=no
21135   fi
21136   ;;
21137 esac
21138 { echo "$as_me:$LINENO: result: $enable_shared" >&5
21139 echo "${ECHO_T}$enable_shared" >&6; }
21140
21141 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21142 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21143 # Make sure either enable_shared or enable_static is yes.
21144 test "$enable_shared" = yes || enable_static=yes
21145 { echo "$as_me:$LINENO: result: $enable_static" >&5
21146 echo "${ECHO_T}$enable_static" >&6; }
21147
21148 GCC_F77="$G77"
21149 LD_F77="$LD"
21150
21151 lt_prog_compiler_wl_F77=
21152 lt_prog_compiler_pic_F77=
21153 lt_prog_compiler_static_F77=
21154
21155 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21156 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21157
21158   if test "$GCC" = yes; then
21159     lt_prog_compiler_wl_F77='-Wl,'
21160     lt_prog_compiler_static_F77='-static'
21161
21162     case $host_os in
21163       aix*)
21164       # All AIX code is PIC.
21165       if test "$host_cpu" = ia64; then
21166         # AIX 5 now supports IA64 processor
21167         lt_prog_compiler_static_F77='-Bstatic'
21168       fi
21169       ;;
21170
21171     amigaos*)
21172       # FIXME: we need at least 68020 code to build shared libraries, but
21173       # adding the `-m68020' flag to GCC prevents building anything better,
21174       # like `-m68040'.
21175       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21176       ;;
21177
21178     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21179       # PIC is the default for these OSes.
21180       ;;
21181
21182     mingw* | pw32* | os2*)
21183       # This hack is so that the source file can tell whether it is being
21184       # built for inclusion in a dll (and should export symbols for example).
21185       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21186       ;;
21187
21188     darwin* | rhapsody*)
21189       # PIC is the default on this platform
21190       # Common symbols not allowed in MH_DYLIB files
21191       lt_prog_compiler_pic_F77='-fno-common'
21192       ;;
21193
21194     interix3*)
21195       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21196       # Instead, we relocate shared libraries at runtime.
21197       ;;
21198
21199     msdosdjgpp*)
21200       # Just because we use GCC doesn't mean we suddenly get shared libraries
21201       # on systems that don't support them.
21202       lt_prog_compiler_can_build_shared_F77=no
21203       enable_shared=no
21204       ;;
21205
21206     sysv4*MP*)
21207       if test -d /usr/nec; then
21208         lt_prog_compiler_pic_F77=-Kconform_pic
21209       fi
21210       ;;
21211
21212     hpux*)
21213       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21214       # not for PA HP-UX.
21215       case $host_cpu in
21216       hppa*64*|ia64*)
21217         # +Z the default
21218         ;;
21219       *)
21220         lt_prog_compiler_pic_F77='-fPIC'
21221         ;;
21222       esac
21223       ;;
21224
21225     *)
21226       lt_prog_compiler_pic_F77='-fPIC'
21227       ;;
21228     esac
21229   else
21230     # PORTME Check for flag to pass linker flags through the system compiler.
21231     case $host_os in
21232     aix*)
21233       lt_prog_compiler_wl_F77='-Wl,'
21234       if test "$host_cpu" = ia64; then
21235         # AIX 5 now supports IA64 processor
21236         lt_prog_compiler_static_F77='-Bstatic'
21237       else
21238         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21239       fi
21240       ;;
21241       darwin*)
21242         # PIC is the default on this platform
21243         # Common symbols not allowed in MH_DYLIB files
21244        case $cc_basename in
21245          xlc*)
21246          lt_prog_compiler_pic_F77='-qnocommon'
21247          lt_prog_compiler_wl_F77='-Wl,'
21248          ;;
21249        esac
21250        ;;
21251
21252     mingw* | pw32* | os2*)
21253       # This hack is so that the source file can tell whether it is being
21254       # built for inclusion in a dll (and should export symbols for example).
21255       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21256       ;;
21257
21258     hpux9* | hpux10* | hpux11*)
21259       lt_prog_compiler_wl_F77='-Wl,'
21260       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21261       # not for PA HP-UX.
21262       case $host_cpu in
21263       hppa*64*|ia64*)
21264         # +Z the default
21265         ;;
21266       *)
21267         lt_prog_compiler_pic_F77='+Z'
21268         ;;
21269       esac
21270       # Is there a better lt_prog_compiler_static that works with the bundled CC?
21271       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21272       ;;
21273
21274     irix5* | irix6* | nonstopux*)
21275       lt_prog_compiler_wl_F77='-Wl,'
21276       # PIC (with -KPIC) is the default.
21277       lt_prog_compiler_static_F77='-non_shared'
21278       ;;
21279
21280     newsos6)
21281       lt_prog_compiler_pic_F77='-KPIC'
21282       lt_prog_compiler_static_F77='-Bstatic'
21283       ;;
21284
21285     linux*)
21286       case $cc_basename in
21287       icc* | ecc*)
21288         lt_prog_compiler_wl_F77='-Wl,'
21289         lt_prog_compiler_pic_F77='-KPIC'
21290         lt_prog_compiler_static_F77='-static'
21291         ;;
21292       pgcc* | pgf77* | pgf90* | pgf95*)
21293         # Portland Group compilers (*not* the Pentium gcc compiler,
21294         # which looks to be a dead project)
21295         lt_prog_compiler_wl_F77='-Wl,'
21296         lt_prog_compiler_pic_F77='-fpic'
21297         lt_prog_compiler_static_F77='-Bstatic'
21298         ;;
21299       ccc*)
21300         lt_prog_compiler_wl_F77='-Wl,'
21301         # All Alpha code is PIC.
21302         lt_prog_compiler_static_F77='-non_shared'
21303         ;;
21304       esac
21305       ;;
21306
21307     osf3* | osf4* | osf5*)
21308       lt_prog_compiler_wl_F77='-Wl,'
21309       # All OSF/1 code is PIC.
21310       lt_prog_compiler_static_F77='-non_shared'
21311       ;;
21312
21313     solaris*)
21314       lt_prog_compiler_pic_F77='-KPIC'
21315       lt_prog_compiler_static_F77='-Bstatic'
21316       case $cc_basename in
21317       f77* | f90* | f95*)
21318         lt_prog_compiler_wl_F77='-Qoption ld ';;
21319       *)
21320         lt_prog_compiler_wl_F77='-Wl,';;
21321       esac
21322       ;;
21323
21324     sunos4*)
21325       lt_prog_compiler_wl_F77='-Qoption ld '
21326       lt_prog_compiler_pic_F77='-PIC'
21327       lt_prog_compiler_static_F77='-Bstatic'
21328       ;;
21329
21330     sysv4 | sysv4.2uw2* | sysv4.3*)
21331       lt_prog_compiler_wl_F77='-Wl,'
21332       lt_prog_compiler_pic_F77='-KPIC'
21333       lt_prog_compiler_static_F77='-Bstatic'
21334       ;;
21335
21336     sysv4*MP*)
21337       if test -d /usr/nec ;then
21338         lt_prog_compiler_pic_F77='-Kconform_pic'
21339         lt_prog_compiler_static_F77='-Bstatic'
21340       fi
21341       ;;
21342
21343     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21344       lt_prog_compiler_wl_F77='-Wl,'
21345       lt_prog_compiler_pic_F77='-KPIC'
21346       lt_prog_compiler_static_F77='-Bstatic'
21347       ;;
21348
21349     unicos*)
21350       lt_prog_compiler_wl_F77='-Wl,'
21351       lt_prog_compiler_can_build_shared_F77=no
21352       ;;
21353
21354     uts4*)
21355       lt_prog_compiler_pic_F77='-pic'
21356       lt_prog_compiler_static_F77='-Bstatic'
21357       ;;
21358
21359     *)
21360       lt_prog_compiler_can_build_shared_F77=no
21361       ;;
21362     esac
21363   fi
21364
21365 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21366 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21367
21368 #
21369 # Check to make sure the PIC flag actually works.
21370 #
21371 if test -n "$lt_prog_compiler_pic_F77"; then
21372
21373 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21374 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21375 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21376   echo $ECHO_N "(cached) $ECHO_C" >&6
21377 else
21378   lt_prog_compiler_pic_works_F77=no
21379   ac_outfile=conftest.$ac_objext
21380    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21381    lt_compiler_flag="$lt_prog_compiler_pic_F77"
21382    # Insert the option either (1) after the last *FLAGS variable, or
21383    # (2) before a word containing "conftest.", or (3) at the end.
21384    # Note that $ac_compile itself does not contain backslashes and begins
21385    # with a dollar sign (not a hyphen), so the echo should work correctly.
21386    # The option is referenced via a variable to avoid confusing sed.
21387    lt_compile=`echo "$ac_compile" | $SED \
21388    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21389    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21390    -e 's:$: $lt_compiler_flag:'`
21391    (eval echo "\"\$as_me:21391: $lt_compile\"" >&5)
21392    (eval "$lt_compile" 2>conftest.err)
21393    ac_status=$?
21394    cat conftest.err >&5
21395    echo "$as_me:21395: \$? = $ac_status" >&5
21396    if (exit $ac_status) && test -s "$ac_outfile"; then
21397      # The compiler can only warn and ignore the option if not recognized
21398      # So say no if there are warnings other than the usual output.
21399      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21400      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21401      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21402        lt_prog_compiler_pic_works_F77=yes
21403      fi
21404    fi
21405    $rm conftest*
21406
21407 fi
21408 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21409 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21410
21411 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21412     case $lt_prog_compiler_pic_F77 in
21413      "" | " "*) ;;
21414      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21415      esac
21416 else
21417     lt_prog_compiler_pic_F77=
21418      lt_prog_compiler_can_build_shared_F77=no
21419 fi
21420
21421 fi
21422 case $host_os in
21423   # For platforms which do not support PIC, -DPIC is meaningless:
21424   *djgpp*)
21425     lt_prog_compiler_pic_F77=
21426     ;;
21427   *)
21428     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21429     ;;
21430 esac
21431
21432 #
21433 # Check to make sure the static flag actually works.
21434 #
21435 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21436 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21437 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21438 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21439   echo $ECHO_N "(cached) $ECHO_C" >&6
21440 else
21441   lt_prog_compiler_static_works_F77=no
21442    save_LDFLAGS="$LDFLAGS"
21443    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21444    printf "$lt_simple_link_test_code" > conftest.$ac_ext
21445    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21446      # The linker can only warn and ignore the option if not recognized
21447      # So say no if there are warnings
21448      if test -s conftest.err; then
21449        # Append any errors to the config.log.
21450        cat conftest.err 1>&5
21451        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21452        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21453        if diff conftest.exp conftest.er2 >/dev/null; then
21454          lt_prog_compiler_static_works_F77=yes
21455        fi
21456      else
21457        lt_prog_compiler_static_works_F77=yes
21458      fi
21459    fi
21460    $rm conftest*
21461    LDFLAGS="$save_LDFLAGS"
21462
21463 fi
21464 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21465 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21466
21467 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21468     :
21469 else
21470     lt_prog_compiler_static_F77=
21471 fi
21472
21473
21474 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21475 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21476 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21477   echo $ECHO_N "(cached) $ECHO_C" >&6
21478 else
21479   lt_cv_prog_compiler_c_o_F77=no
21480    $rm -r conftest 2>/dev/null
21481    mkdir conftest
21482    cd conftest
21483    mkdir out
21484    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21485
21486    lt_compiler_flag="-o out/conftest2.$ac_objext"
21487    # Insert the option either (1) after the last *FLAGS variable, or
21488    # (2) before a word containing "conftest.", or (3) at the end.
21489    # Note that $ac_compile itself does not contain backslashes and begins
21490    # with a dollar sign (not a hyphen), so the echo should work correctly.
21491    lt_compile=`echo "$ac_compile" | $SED \
21492    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21493    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21494    -e 's:$: $lt_compiler_flag:'`
21495    (eval echo "\"\$as_me:21495: $lt_compile\"" >&5)
21496    (eval "$lt_compile" 2>out/conftest.err)
21497    ac_status=$?
21498    cat out/conftest.err >&5
21499    echo "$as_me:21499: \$? = $ac_status" >&5
21500    if (exit $ac_status) && test -s out/conftest2.$ac_objext
21501    then
21502      # The compiler can only warn and ignore the option if not recognized
21503      # So say no if there are warnings
21504      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21505      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21506      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21507        lt_cv_prog_compiler_c_o_F77=yes
21508      fi
21509    fi
21510    chmod u+w . 2>&5
21511    $rm conftest*
21512    # SGI C++ compiler will create directory out/ii_files/ for
21513    # template instantiation
21514    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21515    $rm out/* && rmdir out
21516    cd ..
21517    rmdir conftest
21518    $rm conftest*
21519
21520 fi
21521 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21522 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21523
21524
21525 hard_links="nottested"
21526 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21527   # do not overwrite the value of need_locks provided by the user
21528   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21529 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21530   hard_links=yes
21531   $rm conftest*
21532   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21533   touch conftest.a
21534   ln conftest.a conftest.b 2>&5 || hard_links=no
21535   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21536   { echo "$as_me:$LINENO: result: $hard_links" >&5
21537 echo "${ECHO_T}$hard_links" >&6; }
21538   if test "$hard_links" = no; then
21539     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21540 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21541     need_locks=warn
21542   fi
21543 else
21544   need_locks=no
21545 fi
21546
21547 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21548 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21549
21550   runpath_var=
21551   allow_undefined_flag_F77=
21552   enable_shared_with_static_runtimes_F77=no
21553   archive_cmds_F77=
21554   archive_expsym_cmds_F77=
21555   old_archive_From_new_cmds_F77=
21556   old_archive_from_expsyms_cmds_F77=
21557   export_dynamic_flag_spec_F77=
21558   whole_archive_flag_spec_F77=
21559   thread_safe_flag_spec_F77=
21560   hardcode_libdir_flag_spec_F77=
21561   hardcode_libdir_flag_spec_ld_F77=
21562   hardcode_libdir_separator_F77=
21563   hardcode_direct_F77=no
21564   hardcode_minus_L_F77=no
21565   hardcode_shlibpath_var_F77=unsupported
21566   link_all_deplibs_F77=unknown
21567   hardcode_automatic_F77=no
21568   module_cmds_F77=
21569   module_expsym_cmds_F77=
21570   always_export_symbols_F77=no
21571   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21572   # include_expsyms should be a list of space-separated symbols to be *always*
21573   # included in the symbol list
21574   include_expsyms_F77=
21575   # exclude_expsyms can be an extended regexp of symbols to exclude
21576   # it will be wrapped by ` (' and `)$', so one must not match beginning or
21577   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21578   # as well as any symbol that contains `d'.
21579   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21580   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21581   # platforms (ab)use it in PIC code, but their linkers get confused if
21582   # the symbol is explicitly referenced.  Since portable code cannot
21583   # rely on this symbol name, it's probably fine to never include it in
21584   # preloaded symbol tables.
21585   extract_expsyms_cmds=
21586   # Just being paranoid about ensuring that cc_basename is set.
21587   for cc_temp in $compiler""; do
21588   case $cc_temp in
21589     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21590     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21591     \-*) ;;
21592     *) break;;
21593   esac
21594 done
21595 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21596
21597   case $host_os in
21598   cygwin* | mingw* | pw32*)
21599     # FIXME: the MSVC++ port hasn't been tested in a loooong time
21600     # When not using gcc, we currently assume that we are using
21601     # Microsoft Visual C++.
21602     if test "$GCC" != yes; then
21603       with_gnu_ld=no
21604     fi
21605     ;;
21606   interix*)
21607     # we just hope/assume this is gcc and not c89 (= MSVC++)
21608     with_gnu_ld=yes
21609     ;;
21610   openbsd*)
21611     with_gnu_ld=no
21612     ;;
21613   esac
21614
21615   ld_shlibs_F77=yes
21616   if test "$with_gnu_ld" = yes; then
21617     # If archive_cmds runs LD, not CC, wlarc should be empty
21618     wlarc='${wl}'
21619
21620     # Set some defaults for GNU ld with shared library support. These
21621     # are reset later if shared libraries are not supported. Putting them
21622     # here allows them to be overridden if necessary.
21623     runpath_var=LD_RUN_PATH
21624     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21625     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21626     # ancient GNU ld didn't support --whole-archive et. al.
21627     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21628         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21629       else
21630         whole_archive_flag_spec_F77=
21631     fi
21632     supports_anon_versioning=no
21633     case `$LD -v 2>/dev/null` in
21634       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21635       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21636       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21637       *\ 2.11.*) ;; # other 2.11 versions
21638       *) supports_anon_versioning=yes ;;
21639     esac
21640
21641     # See if GNU ld supports shared libraries.
21642     case $host_os in
21643     aix3* | aix4* | aix5*)
21644       # On AIX/PPC, the GNU linker is very broken
21645       if test "$host_cpu" != ia64; then
21646         ld_shlibs_F77=no
21647         cat <<EOF 1>&2
21648
21649 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21650 *** to be unable to reliably create shared libraries on AIX.
21651 *** Therefore, libtool is disabling shared libraries support.  If you
21652 *** really care for shared libraries, you may want to modify your PATH
21653 *** so that a non-GNU linker is found, and then restart.
21654
21655 EOF
21656       fi
21657       ;;
21658
21659     amigaos*)
21660       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)'
21661       hardcode_libdir_flag_spec_F77='-L$libdir'
21662       hardcode_minus_L_F77=yes
21663
21664       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21665       # that the semantics of dynamic libraries on AmigaOS, at least up
21666       # to version 4, is to share data among multiple programs linked
21667       # with the same dynamic library.  Since this doesn't match the
21668       # behavior of shared libraries on other platforms, we can't use
21669       # them.
21670       ld_shlibs_F77=no
21671       ;;
21672
21673     beos*)
21674       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21675         allow_undefined_flag_F77=unsupported
21676         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21677         # support --undefined.  This deserves some investigation.  FIXME
21678         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21679       else
21680         ld_shlibs_F77=no
21681       fi
21682       ;;
21683
21684     cygwin* | mingw* | pw32*)
21685       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21686       # as there is no search path for DLLs.
21687       hardcode_libdir_flag_spec_F77='-L$libdir'
21688       allow_undefined_flag_F77=unsupported
21689       always_export_symbols_F77=no
21690       enable_shared_with_static_runtimes_F77=yes
21691       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21692
21693       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21694         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21695         # If the export-symbols file already is a .def file (1st line
21696         # is EXPORTS), use it as is; otherwise, prepend...
21697         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21698           cp $export_symbols $output_objdir/$soname.def;
21699         else
21700           echo EXPORTS > $output_objdir/$soname.def;
21701           cat $export_symbols >> $output_objdir/$soname.def;
21702         fi~
21703         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21704       else
21705         ld_shlibs_F77=no
21706       fi
21707       ;;
21708
21709     interix3*)
21710       hardcode_direct_F77=no
21711       hardcode_shlibpath_var_F77=no
21712       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21713       export_dynamic_flag_spec_F77='${wl}-E'
21714       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21715       # Instead, shared libraries are loaded at an image base (0x10000000 by
21716       # default) and relocated if they conflict, which is a slow very memory
21717       # consuming and fragmenting process.  To avoid this, we pick a random,
21718       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21719       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
21720       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'
21721       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'
21722       ;;
21723
21724     linux*)
21725       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21726         tmp_addflag=
21727         case $cc_basename,$host_cpu in
21728         pgcc*)                          # Portland Group C compiler
21729           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'
21730           tmp_addflag=' $pic_flag'
21731           ;;
21732         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
21733           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'
21734           tmp_addflag=' $pic_flag -Mnomain' ;;
21735         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
21736           tmp_addflag=' -i_dynamic' ;;
21737         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
21738           tmp_addflag=' -i_dynamic -nofor_main' ;;
21739         ifc* | ifort*)                  # Intel Fortran compiler
21740           tmp_addflag=' -nofor_main' ;;
21741         esac
21742         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21743
21744         if test $supports_anon_versioning = yes; then
21745           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21746   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21747   $echo "local: *; };" >> $output_objdir/$libname.ver~
21748           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21749         fi
21750       else
21751         ld_shlibs_F77=no
21752       fi
21753       ;;
21754
21755     netbsd*)
21756       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21757         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21758         wlarc=
21759       else
21760         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21761         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21762       fi
21763       ;;
21764
21765     solaris*)
21766       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21767         ld_shlibs_F77=no
21768         cat <<EOF 1>&2
21769
21770 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21771 *** create shared libraries on Solaris systems.  Therefore, libtool
21772 *** is disabling shared libraries support.  We urge you to upgrade GNU
21773 *** binutils to release 2.9.1 or newer.  Another option is to modify
21774 *** your PATH or compiler configuration so that the native linker is
21775 *** used, and then restart.
21776
21777 EOF
21778       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21779         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21780         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21781       else
21782         ld_shlibs_F77=no
21783       fi
21784       ;;
21785
21786     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21787       case `$LD -v 2>&1` in
21788         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21789         ld_shlibs_F77=no
21790         cat <<_LT_EOF 1>&2
21791
21792 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21793 *** reliably create shared libraries on SCO systems.  Therefore, libtool
21794 *** is disabling shared libraries support.  We urge you to upgrade GNU
21795 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
21796 *** your PATH or compiler configuration so that the native linker is
21797 *** used, and then restart.
21798
21799 _LT_EOF
21800         ;;
21801         *)
21802           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21803             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21804             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21805             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21806           else
21807             ld_shlibs_F77=no
21808           fi
21809         ;;
21810       esac
21811       ;;
21812
21813     sunos4*)
21814       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21815       wlarc=
21816       hardcode_direct_F77=yes
21817       hardcode_shlibpath_var_F77=no
21818       ;;
21819
21820     *)
21821       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21822         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21823         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21824       else
21825         ld_shlibs_F77=no
21826       fi
21827       ;;
21828     esac
21829
21830     if test "$ld_shlibs_F77" = no; then
21831       runpath_var=
21832       hardcode_libdir_flag_spec_F77=
21833       export_dynamic_flag_spec_F77=
21834       whole_archive_flag_spec_F77=
21835     fi
21836   else
21837     # PORTME fill in a description of your system's linker (not GNU ld)
21838     case $host_os in
21839     aix3*)
21840       allow_undefined_flag_F77=unsupported
21841       always_export_symbols_F77=yes
21842       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'
21843       # Note: this linker hardcodes the directories in LIBPATH if there
21844       # are no directories specified by -L.
21845       hardcode_minus_L_F77=yes
21846       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
21847         # Neither direct hardcoding nor static linking is supported with a
21848         # broken collect2.
21849         hardcode_direct_F77=unsupported
21850       fi
21851       ;;
21852
21853     aix4* | aix5*)
21854       if test "$host_cpu" = ia64; then
21855         # On IA64, the linker does run time linking by default, so we don't
21856         # have to do anything special.
21857         aix_use_runtimelinking=no
21858         exp_sym_flag='-Bexport'
21859         no_entry_flag=""
21860       else
21861         # If we're using GNU nm, then we don't want the "-C" option.
21862         # -C means demangle to AIX nm, but means don't demangle with GNU nm
21863         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21864           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'
21865         else
21866           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'
21867         fi
21868         aix_use_runtimelinking=no
21869
21870         # Test if we are trying to use run time linking or normal
21871         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21872         # need to do runtime linking.
21873         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21874           for ld_flag in $LDFLAGS; do
21875           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21876             aix_use_runtimelinking=yes
21877             break
21878           fi
21879           done
21880           ;;
21881         esac
21882
21883         exp_sym_flag='-bexport'
21884         no_entry_flag='-bnoentry'
21885       fi
21886
21887       # When large executables or shared objects are built, AIX ld can
21888       # have problems creating the table of contents.  If linking a library
21889       # or program results in "error TOC overflow" add -mminimal-toc to
21890       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
21891       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21892
21893       archive_cmds_F77=''
21894       hardcode_direct_F77=yes
21895       hardcode_libdir_separator_F77=':'
21896       link_all_deplibs_F77=yes
21897
21898       if test "$GCC" = yes; then
21899         case $host_os in aix4.[012]|aix4.[012].*)
21900         # We only want to do this on AIX 4.2 and lower, the check
21901         # below for broken collect2 doesn't work under 4.3+
21902           collect2name=`${CC} -print-prog-name=collect2`
21903           if test -f "$collect2name" && \
21904            strings "$collect2name" | grep resolve_lib_name >/dev/null
21905           then
21906           # We have reworked collect2
21907           hardcode_direct_F77=yes
21908           else
21909           # We have old collect2
21910           hardcode_direct_F77=unsupported
21911           # It fails to find uninstalled libraries when the uninstalled
21912           # path is not listed in the libpath.  Setting hardcode_minus_L
21913           # to unsupported forces relinking
21914           hardcode_minus_L_F77=yes
21915           hardcode_libdir_flag_spec_F77='-L$libdir'
21916           hardcode_libdir_separator_F77=
21917           fi
21918           ;;
21919         esac
21920         shared_flag='-shared'
21921         if test "$aix_use_runtimelinking" = yes; then
21922           shared_flag="$shared_flag "'${wl}-G'
21923         fi
21924       else
21925         # not using gcc
21926         if test "$host_cpu" = ia64; then
21927         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21928         # chokes on -Wl,-G. The following line is correct:
21929           shared_flag='-G'
21930         else
21931           if test "$aix_use_runtimelinking" = yes; then
21932             shared_flag='${wl}-G'
21933           else
21934             shared_flag='${wl}-bM:SRE'
21935           fi
21936         fi
21937       fi
21938
21939       # It seems that -bexpall does not export symbols beginning with
21940       # underscore (_), so it is better to generate a list of symbols to export.
21941       always_export_symbols_F77=yes
21942       if test "$aix_use_runtimelinking" = yes; then
21943         # Warning - without using the other runtime loading flags (-brtl),
21944         # -berok will link without error, but may produce a broken library.
21945         allow_undefined_flag_F77='-berok'
21946        # Determine the default libpath from the value encoded in an empty executable.
21947        cat >conftest.$ac_ext <<_ACEOF
21948       program main
21949
21950       end
21951 _ACEOF
21952 rm -f conftest.$ac_objext conftest$ac_exeext
21953 if { (ac_try="$ac_link"
21954 case "(($ac_try" in
21955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21956   *) ac_try_echo=$ac_try;;
21957 esac
21958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21959   (eval "$ac_link") 2>conftest.er1
21960   ac_status=$?
21961   grep -v '^ *+' conftest.er1 >conftest.err
21962   rm -f conftest.er1
21963   cat conftest.err >&5
21964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21965   (exit $ac_status); } &&
21966          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21967   { (case "(($ac_try" in
21968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21969   *) ac_try_echo=$ac_try;;
21970 esac
21971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21972   (eval "$ac_try") 2>&5
21973   ac_status=$?
21974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21975   (exit $ac_status); }; } &&
21976          { ac_try='test -s conftest$ac_exeext'
21977   { (case "(($ac_try" in
21978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21979   *) ac_try_echo=$ac_try;;
21980 esac
21981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21982   (eval "$ac_try") 2>&5
21983   ac_status=$?
21984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21985   (exit $ac_status); }; }; then
21986
21987 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21988 }'`
21989 # Check for a 64-bit object if we didn't find anything.
21990 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; }
21991 }'`; fi
21992 else
21993   echo "$as_me: failed program was:" >&5
21994 sed 's/^/| /' conftest.$ac_ext >&5
21995
21996
21997 fi
21998
21999 rm -f core conftest.err conftest.$ac_objext \
22000       conftest$ac_exeext conftest.$ac_ext
22001 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22002
22003        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22004         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"
22005        else
22006         if test "$host_cpu" = ia64; then
22007           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22008           allow_undefined_flag_F77="-z nodefs"
22009           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"
22010         else
22011          # Determine the default libpath from the value encoded in an empty executable.
22012          cat >conftest.$ac_ext <<_ACEOF
22013       program main
22014
22015       end
22016 _ACEOF
22017 rm -f conftest.$ac_objext conftest$ac_exeext
22018 if { (ac_try="$ac_link"
22019 case "(($ac_try" in
22020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22021   *) ac_try_echo=$ac_try;;
22022 esac
22023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22024   (eval "$ac_link") 2>conftest.er1
22025   ac_status=$?
22026   grep -v '^ *+' conftest.er1 >conftest.err
22027   rm -f conftest.er1
22028   cat conftest.err >&5
22029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22030   (exit $ac_status); } &&
22031          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22032   { (case "(($ac_try" in
22033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22034   *) ac_try_echo=$ac_try;;
22035 esac
22036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22037   (eval "$ac_try") 2>&5
22038   ac_status=$?
22039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22040   (exit $ac_status); }; } &&
22041          { ac_try='test -s conftest$ac_exeext'
22042   { (case "(($ac_try" in
22043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22044   *) ac_try_echo=$ac_try;;
22045 esac
22046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22047   (eval "$ac_try") 2>&5
22048   ac_status=$?
22049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22050   (exit $ac_status); }; }; then
22051
22052 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22053 }'`
22054 # Check for a 64-bit object if we didn't find anything.
22055 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; }
22056 }'`; fi
22057 else
22058   echo "$as_me: failed program was:" >&5
22059 sed 's/^/| /' conftest.$ac_ext >&5
22060
22061
22062 fi
22063
22064 rm -f core conftest.err conftest.$ac_objext \
22065       conftest$ac_exeext conftest.$ac_ext
22066 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22067
22068          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22069           # Warning - without using the other run time loading flags,
22070           # -berok will link without error, but may produce a broken library.
22071           no_undefined_flag_F77=' ${wl}-bernotok'
22072           allow_undefined_flag_F77=' ${wl}-berok'
22073           # Exported symbols can be pulled into shared objects from archives
22074           whole_archive_flag_spec_F77='$convenience'
22075           archive_cmds_need_lc_F77=yes
22076           # This is similar to how AIX traditionally builds its shared libraries.
22077           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'
22078         fi
22079       fi
22080       ;;
22081
22082     amigaos*)
22083       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)'
22084       hardcode_libdir_flag_spec_F77='-L$libdir'
22085       hardcode_minus_L_F77=yes
22086       # see comment about different semantics on the GNU ld section
22087       ld_shlibs_F77=no
22088       ;;
22089
22090     bsdi[45]*)
22091       export_dynamic_flag_spec_F77=-rdynamic
22092       ;;
22093
22094     cygwin* | mingw* | pw32*)
22095       # When not using gcc, we currently assume that we are using
22096       # Microsoft Visual C++.
22097       # hardcode_libdir_flag_spec is actually meaningless, as there is
22098       # no search path for DLLs.
22099       hardcode_libdir_flag_spec_F77=' '
22100       allow_undefined_flag_F77=unsupported
22101       # Tell ltmain to make .lib files, not .a files.
22102       libext=lib
22103       # Tell ltmain to make .dll files, not .so files.
22104       shrext_cmds=".dll"
22105       # FIXME: Setting linknames here is a bad hack.
22106       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22107       # The linker will automatically build a .lib file if we build a DLL.
22108       old_archive_From_new_cmds_F77='true'
22109       # FIXME: Should let the user specify the lib program.
22110       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22111       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22112       enable_shared_with_static_runtimes_F77=yes
22113       ;;
22114
22115     darwin* | rhapsody*)
22116       case $host_os in
22117         rhapsody* | darwin1.[012])
22118          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22119          ;;
22120        *) # Darwin 1.3 on
22121          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22122            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22123          else
22124            case ${MACOSX_DEPLOYMENT_TARGET} in
22125              10.[012])
22126                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22127                ;;
22128              10.*)
22129                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22130                ;;
22131            esac
22132          fi
22133          ;;
22134       esac
22135       archive_cmds_need_lc_F77=no
22136       hardcode_direct_F77=no
22137       hardcode_automatic_F77=yes
22138       hardcode_shlibpath_var_F77=unsupported
22139       whole_archive_flag_spec_F77=''
22140       link_all_deplibs_F77=yes
22141     if test "$GCC" = yes ; then
22142         output_verbose_link_cmd='echo'
22143         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22144       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22145       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22146       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}'
22147       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}'
22148     else
22149       case $cc_basename in
22150         xlc*)
22151          output_verbose_link_cmd='echo'
22152          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22153          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22154           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22155          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}'
22156           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}'
22157           ;;
22158        *)
22159          ld_shlibs_F77=no
22160           ;;
22161       esac
22162     fi
22163       ;;
22164
22165     dgux*)
22166       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22167       hardcode_libdir_flag_spec_F77='-L$libdir'
22168       hardcode_shlibpath_var_F77=no
22169       ;;
22170
22171     freebsd1*)
22172       ld_shlibs_F77=no
22173       ;;
22174
22175     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22176     # support.  Future versions do this automatically, but an explicit c++rt0.o
22177     # does not break anything, and helps significantly (at the cost of a little
22178     # extra space).
22179     freebsd2.2*)
22180       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22181       hardcode_libdir_flag_spec_F77='-R$libdir'
22182       hardcode_direct_F77=yes
22183       hardcode_shlibpath_var_F77=no
22184       ;;
22185
22186     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22187     freebsd2*)
22188       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22189       hardcode_direct_F77=yes
22190       hardcode_minus_L_F77=yes
22191       hardcode_shlibpath_var_F77=no
22192       ;;
22193
22194     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22195     freebsd* | kfreebsd*-gnu | dragonfly*)
22196       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22197       hardcode_libdir_flag_spec_F77='-R$libdir'
22198       hardcode_direct_F77=yes
22199       hardcode_shlibpath_var_F77=no
22200       ;;
22201
22202     hpux9*)
22203       if test "$GCC" = yes; then
22204         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'
22205       else
22206         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'
22207       fi
22208       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22209       hardcode_libdir_separator_F77=:
22210       hardcode_direct_F77=yes
22211
22212       # hardcode_minus_L: Not really in the search PATH,
22213       # but as the default location of the library.
22214       hardcode_minus_L_F77=yes
22215       export_dynamic_flag_spec_F77='${wl}-E'
22216       ;;
22217
22218     hpux10*)
22219       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22220         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22221       else
22222         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22223       fi
22224       if test "$with_gnu_ld" = no; then
22225         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22226         hardcode_libdir_separator_F77=:
22227
22228         hardcode_direct_F77=yes
22229         export_dynamic_flag_spec_F77='${wl}-E'
22230
22231         # hardcode_minus_L: Not really in the search PATH,
22232         # but as the default location of the library.
22233         hardcode_minus_L_F77=yes
22234       fi
22235       ;;
22236
22237     hpux11*)
22238       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22239         case $host_cpu in
22240         hppa*64*)
22241           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22242           ;;
22243         ia64*)
22244           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22245           ;;
22246         *)
22247           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22248           ;;
22249         esac
22250       else
22251         case $host_cpu in
22252         hppa*64*)
22253           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22254           ;;
22255         ia64*)
22256           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22257           ;;
22258         *)
22259           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22260           ;;
22261         esac
22262       fi
22263       if test "$with_gnu_ld" = no; then
22264         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22265         hardcode_libdir_separator_F77=:
22266
22267         case $host_cpu in
22268         hppa*64*|ia64*)
22269           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22270           hardcode_direct_F77=no
22271           hardcode_shlibpath_var_F77=no
22272           ;;
22273         *)
22274           hardcode_direct_F77=yes
22275           export_dynamic_flag_spec_F77='${wl}-E'
22276
22277           # hardcode_minus_L: Not really in the search PATH,
22278           # but as the default location of the library.
22279           hardcode_minus_L_F77=yes
22280           ;;
22281         esac
22282       fi
22283       ;;
22284
22285     irix5* | irix6* | nonstopux*)
22286       if test "$GCC" = yes; then
22287         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'
22288       else
22289         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'
22290         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22291       fi
22292       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22293       hardcode_libdir_separator_F77=:
22294       link_all_deplibs_F77=yes
22295       ;;
22296
22297     netbsd*)
22298       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22299         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
22300       else
22301         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
22302       fi
22303       hardcode_libdir_flag_spec_F77='-R$libdir'
22304       hardcode_direct_F77=yes
22305       hardcode_shlibpath_var_F77=no
22306       ;;
22307
22308     newsos6)
22309       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22310       hardcode_direct_F77=yes
22311       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22312       hardcode_libdir_separator_F77=:
22313       hardcode_shlibpath_var_F77=no
22314       ;;
22315
22316     openbsd*)
22317       hardcode_direct_F77=yes
22318       hardcode_shlibpath_var_F77=no
22319       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22320         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22321         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22322         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22323         export_dynamic_flag_spec_F77='${wl}-E'
22324       else
22325        case $host_os in
22326          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22327            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22328            hardcode_libdir_flag_spec_F77='-R$libdir'
22329            ;;
22330          *)
22331            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22332            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22333            ;;
22334        esac
22335       fi
22336       ;;
22337
22338     os2*)
22339       hardcode_libdir_flag_spec_F77='-L$libdir'
22340       hardcode_minus_L_F77=yes
22341       allow_undefined_flag_F77=unsupported
22342       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'
22343       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22344       ;;
22345
22346     osf3*)
22347       if test "$GCC" = yes; then
22348         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22349         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'
22350       else
22351         allow_undefined_flag_F77=' -expect_unresolved \*'
22352         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'
22353       fi
22354       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22355       hardcode_libdir_separator_F77=:
22356       ;;
22357
22358     osf4* | osf5*)      # as osf3* with the addition of -msym flag
22359       if test "$GCC" = yes; then
22360         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22361         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'
22362         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22363       else
22364         allow_undefined_flag_F77=' -expect_unresolved \*'
22365         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'
22366         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~
22367         $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'
22368
22369         # Both c and cxx compiler support -rpath directly
22370         hardcode_libdir_flag_spec_F77='-rpath $libdir'
22371       fi
22372       hardcode_libdir_separator_F77=:
22373       ;;
22374
22375     solaris*)
22376       no_undefined_flag_F77=' -z text'
22377       if test "$GCC" = yes; then
22378         wlarc='${wl}'
22379         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22380         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22381           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22382       else
22383         wlarc=''
22384         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22385         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22386         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22387       fi
22388       hardcode_libdir_flag_spec_F77='-R$libdir'
22389       hardcode_shlibpath_var_F77=no
22390       case $host_os in
22391       solaris2.[0-5] | solaris2.[0-5].*) ;;
22392       *)
22393         # The compiler driver will combine linker options so we
22394         # cannot just pass the convience library names through
22395         # without $wl, iff we do not link with $LD.
22396         # Luckily, gcc supports the same syntax we need for Sun Studio.
22397         # Supported since Solaris 2.6 (maybe 2.5.1?)
22398         case $wlarc in
22399         '')
22400           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22401         *)
22402           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' ;;
22403         esac ;;
22404       esac
22405       link_all_deplibs_F77=yes
22406       ;;
22407
22408     sunos4*)
22409       if test "x$host_vendor" = xsequent; then
22410         # Use $CC to link under sequent, because it throws in some extra .o
22411         # files that make .init and .fini sections work.
22412         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22413       else
22414         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22415       fi
22416       hardcode_libdir_flag_spec_F77='-L$libdir'
22417       hardcode_direct_F77=yes
22418       hardcode_minus_L_F77=yes
22419       hardcode_shlibpath_var_F77=no
22420       ;;
22421
22422     sysv4)
22423       case $host_vendor in
22424         sni)
22425           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22426           hardcode_direct_F77=yes # is this really true???
22427         ;;
22428         siemens)
22429           ## LD is ld it makes a PLAMLIB
22430           ## CC just makes a GrossModule.
22431           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22432           reload_cmds_F77='$CC -r -o $output$reload_objs'
22433           hardcode_direct_F77=no
22434         ;;
22435         motorola)
22436           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22437           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22438         ;;
22439       esac
22440       runpath_var='LD_RUN_PATH'
22441       hardcode_shlibpath_var_F77=no
22442       ;;
22443
22444     sysv4.3*)
22445       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22446       hardcode_shlibpath_var_F77=no
22447       export_dynamic_flag_spec_F77='-Bexport'
22448       ;;
22449
22450     sysv4*MP*)
22451       if test -d /usr/nec; then
22452         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22453         hardcode_shlibpath_var_F77=no
22454         runpath_var=LD_RUN_PATH
22455         hardcode_runpath_var=yes
22456         ld_shlibs_F77=yes
22457       fi
22458       ;;
22459
22460     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22461       no_undefined_flag_F77='${wl}-z,text'
22462       archive_cmds_need_lc_F77=no
22463       hardcode_shlibpath_var_F77=no
22464       runpath_var='LD_RUN_PATH'
22465
22466       if test "$GCC" = yes; then
22467         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22468         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22469       else
22470         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22471         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22472       fi
22473       ;;
22474
22475     sysv5* | sco3.2v5* | sco5v6*)
22476       # Note: We can NOT use -z defs as we might desire, because we do not
22477       # link with -lc, and that would cause any symbols used from libc to
22478       # always be unresolved, which means just about no library would
22479       # ever link correctly.  If we're not using GNU ld we use -z text
22480       # though, which does catch some bad symbols but isn't as heavy-handed
22481       # as -z defs.
22482       no_undefined_flag_F77='${wl}-z,text'
22483       allow_undefined_flag_F77='${wl}-z,nodefs'
22484       archive_cmds_need_lc_F77=no
22485       hardcode_shlibpath_var_F77=no
22486       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22487       hardcode_libdir_separator_F77=':'
22488       link_all_deplibs_F77=yes
22489       export_dynamic_flag_spec_F77='${wl}-Bexport'
22490       runpath_var='LD_RUN_PATH'
22491
22492       if test "$GCC" = yes; then
22493         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22494         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22495       else
22496         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22497         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22498       fi
22499       ;;
22500
22501     uts4*)
22502       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22503       hardcode_libdir_flag_spec_F77='-L$libdir'
22504       hardcode_shlibpath_var_F77=no
22505       ;;
22506
22507     *)
22508       ld_shlibs_F77=no
22509       ;;
22510     esac
22511   fi
22512
22513 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22514 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22515 test "$ld_shlibs_F77" = no && can_build_shared=no
22516
22517 #
22518 # Do we need to explicitly link libc?
22519 #
22520 case "x$archive_cmds_need_lc_F77" in
22521 x|xyes)
22522   # Assume -lc should be added
22523   archive_cmds_need_lc_F77=yes
22524
22525   if test "$enable_shared" = yes && test "$GCC" = yes; then
22526     case $archive_cmds_F77 in
22527     *'~'*)
22528       # FIXME: we may have to deal with multi-command sequences.
22529       ;;
22530     '$CC '*)
22531       # Test whether the compiler implicitly links with -lc since on some
22532       # systems, -lgcc has to come before -lc. If gcc already passes -lc
22533       # to ld, don't add -lc before -lgcc.
22534       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22535 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22536       $rm conftest*
22537       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22538
22539       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22540   (eval $ac_compile) 2>&5
22541   ac_status=$?
22542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22543   (exit $ac_status); } 2>conftest.err; then
22544         soname=conftest
22545         lib=conftest
22546         libobjs=conftest.$ac_objext
22547         deplibs=
22548         wl=$lt_prog_compiler_wl_F77
22549         pic_flag=$lt_prog_compiler_pic_F77
22550         compiler_flags=-v
22551         linker_flags=-v
22552         verstring=
22553         output_objdir=.
22554         libname=conftest
22555         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22556         allow_undefined_flag_F77=
22557         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22558   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22559   ac_status=$?
22560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22561   (exit $ac_status); }
22562         then
22563           archive_cmds_need_lc_F77=no
22564         else
22565           archive_cmds_need_lc_F77=yes
22566         fi
22567         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22568       else
22569         cat conftest.err 1>&5
22570       fi
22571       $rm conftest*
22572       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22573 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22574       ;;
22575     esac
22576   fi
22577   ;;
22578 esac
22579
22580 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22581 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22582 library_names_spec=
22583 libname_spec='lib$name'
22584 soname_spec=
22585 shrext_cmds=".so"
22586 postinstall_cmds=
22587 postuninstall_cmds=
22588 finish_cmds=
22589 finish_eval=
22590 shlibpath_var=
22591 shlibpath_overrides_runpath=unknown
22592 version_type=none
22593 dynamic_linker="$host_os ld.so"
22594 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22595 if test "$GCC" = yes; then
22596   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22597   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22598     # if the path contains ";" then we assume it to be the separator
22599     # otherwise default to the standard path separator (i.e. ":") - it is
22600     # assumed that no part of a normal pathname contains ";" but that should
22601     # okay in the real world where ";" in dirpaths is itself problematic.
22602     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22603   else
22604     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22605   fi
22606 else
22607   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22608 fi
22609 need_lib_prefix=unknown
22610 hardcode_into_libs=no
22611
22612 # when you set need_version to no, make sure it does not cause -set_version
22613 # flags to be left without arguments
22614 need_version=unknown
22615
22616 case $host_os in
22617 aix3*)
22618   version_type=linux
22619   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22620   shlibpath_var=LIBPATH
22621
22622   # AIX 3 has no versioning support, so we append a major version to the name.
22623   soname_spec='${libname}${release}${shared_ext}$major'
22624   ;;
22625
22626 aix4* | aix5*)
22627   version_type=linux
22628   need_lib_prefix=no
22629   need_version=no
22630   hardcode_into_libs=yes
22631   if test "$host_cpu" = ia64; then
22632     # AIX 5 supports IA64
22633     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22634     shlibpath_var=LD_LIBRARY_PATH
22635   else
22636     # With GCC up to 2.95.x, collect2 would create an import file
22637     # for dependence libraries.  The import file would start with
22638     # the line `#! .'.  This would cause the generated library to
22639     # depend on `.', always an invalid library.  This was fixed in
22640     # development snapshots of GCC prior to 3.0.
22641     case $host_os in
22642       aix4 | aix4.[01] | aix4.[01].*)
22643       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22644            echo ' yes '
22645            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22646         :
22647       else
22648         can_build_shared=no
22649       fi
22650       ;;
22651     esac
22652     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22653     # soname into executable. Probably we can add versioning support to
22654     # collect2, so additional links can be useful in future.
22655     if test "$aix_use_runtimelinking" = yes; then
22656       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22657       # instead of lib<name>.a to let people know that these are not
22658       # typical AIX shared libraries.
22659       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22660     else
22661       # We preserve .a as extension for shared libraries through AIX4.2
22662       # and later when we are not doing run time linking.
22663       library_names_spec='${libname}${release}.a $libname.a'
22664       soname_spec='${libname}${release}${shared_ext}$major'
22665     fi
22666     shlibpath_var=LIBPATH
22667   fi
22668   ;;
22669
22670 amigaos*)
22671   library_names_spec='$libname.ixlibrary $libname.a'
22672   # Create ${libname}_ixlibrary.a entries in /sys/libs.
22673   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'
22674   ;;
22675
22676 beos*)
22677   library_names_spec='${libname}${shared_ext}'
22678   dynamic_linker="$host_os ld.so"
22679   shlibpath_var=LIBRARY_PATH
22680   ;;
22681
22682 bsdi[45]*)
22683   version_type=linux
22684   need_version=no
22685   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22686   soname_spec='${libname}${release}${shared_ext}$major'
22687   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22688   shlibpath_var=LD_LIBRARY_PATH
22689   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22690   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22691   # the default ld.so.conf also contains /usr/contrib/lib and
22692   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22693   # libtool to hard-code these into programs
22694   ;;
22695
22696 cygwin* | mingw* | pw32*)
22697   version_type=windows
22698   shrext_cmds=".dll"
22699   need_version=no
22700   need_lib_prefix=no
22701
22702   case $GCC,$host_os in
22703   yes,cygwin* | yes,mingw* | yes,pw32*)
22704     library_names_spec='$libname.dll.a'
22705     # DLL is installed to $(libdir)/../bin by postinstall_cmds
22706     postinstall_cmds='base_file=`basename \${file}`~
22707       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22708       dldir=$destdir/`dirname \$dlpath`~
22709       test -d \$dldir || mkdir -p \$dldir~
22710       $install_prog $dir/$dlname \$dldir/$dlname~
22711       chmod a+x \$dldir/$dlname'
22712     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22713       dlpath=$dir/\$dldll~
22714        $rm \$dlpath'
22715     shlibpath_overrides_runpath=yes
22716
22717     case $host_os in
22718     cygwin*)
22719       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22720       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22721       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22722       ;;
22723     mingw*)
22724       # MinGW DLLs use traditional 'lib' prefix
22725       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22726       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22727       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22728         # It is most probably a Windows format PATH printed by
22729         # mingw gcc, but we are running on Cygwin. Gcc prints its search
22730         # path with ; separators, and with drive letters. We can handle the
22731         # drive letters (cygwin fileutils understands them), so leave them,
22732         # especially as we might pass files found there to a mingw objdump,
22733         # which wouldn't understand a cygwinified path. Ahh.
22734         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22735       else
22736         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22737       fi
22738       ;;
22739     pw32*)
22740       # pw32 DLLs use 'pw' prefix rather than 'lib'
22741       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22742       ;;
22743     esac
22744     ;;
22745
22746   *)
22747     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22748     ;;
22749   esac
22750   dynamic_linker='Win32 ld.exe'
22751   # FIXME: first we should search . and the directory the executable is in
22752   shlibpath_var=PATH
22753   ;;
22754
22755 darwin* | rhapsody*)
22756   dynamic_linker="$host_os dyld"
22757   version_type=darwin
22758   need_lib_prefix=no
22759   need_version=no
22760   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22761   soname_spec='${libname}${release}${major}$shared_ext'
22762   shlibpath_overrides_runpath=yes
22763   shlibpath_var=DYLD_LIBRARY_PATH
22764   shrext_cmds='.dylib'
22765   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22766   if test "$GCC" = yes; then
22767     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"`
22768   else
22769     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22770   fi
22771   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22772   ;;
22773
22774 dgux*)
22775   version_type=linux
22776   need_lib_prefix=no
22777   need_version=no
22778   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22779   soname_spec='${libname}${release}${shared_ext}$major'
22780   shlibpath_var=LD_LIBRARY_PATH
22781   ;;
22782
22783 freebsd1*)
22784   dynamic_linker=no
22785   ;;
22786
22787 kfreebsd*-gnu)
22788   version_type=linux
22789   need_lib_prefix=no
22790   need_version=no
22791   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22792   soname_spec='${libname}${release}${shared_ext}$major'
22793   shlibpath_var=LD_LIBRARY_PATH
22794   shlibpath_overrides_runpath=no
22795   hardcode_into_libs=yes
22796   dynamic_linker='GNU ld.so'
22797   ;;
22798
22799 freebsd* | dragonfly*)
22800   # DragonFly does not have aout.  When/if they implement a new
22801   # versioning mechanism, adjust this.
22802   if test -x /usr/bin/objformat; then
22803     objformat=`/usr/bin/objformat`
22804   else
22805     case $host_os in
22806     freebsd[123]*) objformat=aout ;;
22807     *) objformat=elf ;;
22808     esac
22809   fi
22810   version_type=freebsd-$objformat
22811   case $version_type in
22812     freebsd-elf*)
22813       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22814       need_version=no
22815       need_lib_prefix=no
22816       ;;
22817     freebsd-*)
22818       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22819       need_version=yes
22820       ;;
22821   esac
22822   shlibpath_var=LD_LIBRARY_PATH
22823   case $host_os in
22824   freebsd2*)
22825     shlibpath_overrides_runpath=yes
22826     ;;
22827   freebsd3.[01]* | freebsdelf3.[01]*)
22828     shlibpath_overrides_runpath=yes
22829     hardcode_into_libs=yes
22830     ;;
22831   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22832   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22833     shlibpath_overrides_runpath=no
22834     hardcode_into_libs=yes
22835     ;;
22836   freebsd*) # from 4.6 on
22837     shlibpath_overrides_runpath=yes
22838     hardcode_into_libs=yes
22839     ;;
22840   esac
22841   ;;
22842
22843 gnu*)
22844   version_type=linux
22845   need_lib_prefix=no
22846   need_version=no
22847   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22848   soname_spec='${libname}${release}${shared_ext}$major'
22849   shlibpath_var=LD_LIBRARY_PATH
22850   hardcode_into_libs=yes
22851   ;;
22852
22853 hpux9* | hpux10* | hpux11*)
22854   # Give a soname corresponding to the major version so that dld.sl refuses to
22855   # link against other versions.
22856   version_type=sunos
22857   need_lib_prefix=no
22858   need_version=no
22859   case $host_cpu in
22860   ia64*)
22861     shrext_cmds='.so'
22862     hardcode_into_libs=yes
22863     dynamic_linker="$host_os dld.so"
22864     shlibpath_var=LD_LIBRARY_PATH
22865     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22866     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22867     soname_spec='${libname}${release}${shared_ext}$major'
22868     if test "X$HPUX_IA64_MODE" = X32; then
22869       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22870     else
22871       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22872     fi
22873     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22874     ;;
22875    hppa*64*)
22876      shrext_cmds='.sl'
22877      hardcode_into_libs=yes
22878      dynamic_linker="$host_os dld.sl"
22879      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22880      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22881      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22882      soname_spec='${libname}${release}${shared_ext}$major'
22883      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22884      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22885      ;;
22886    *)
22887     shrext_cmds='.sl'
22888     dynamic_linker="$host_os dld.sl"
22889     shlibpath_var=SHLIB_PATH
22890     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22891     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22892     soname_spec='${libname}${release}${shared_ext}$major'
22893     ;;
22894   esac
22895   # HP-UX runs *really* slowly unless shared libraries are mode 555.
22896   postinstall_cmds='chmod 555 $lib'
22897   ;;
22898
22899 interix3*)
22900   version_type=linux
22901   need_lib_prefix=no
22902   need_version=no
22903   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22904   soname_spec='${libname}${release}${shared_ext}$major'
22905   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22906   shlibpath_var=LD_LIBRARY_PATH
22907   shlibpath_overrides_runpath=no
22908   hardcode_into_libs=yes
22909   ;;
22910
22911 irix5* | irix6* | nonstopux*)
22912   case $host_os in
22913     nonstopux*) version_type=nonstopux ;;
22914     *)
22915         if test "$lt_cv_prog_gnu_ld" = yes; then
22916                 version_type=linux
22917         else
22918                 version_type=irix
22919         fi ;;
22920   esac
22921   need_lib_prefix=no
22922   need_version=no
22923   soname_spec='${libname}${release}${shared_ext}$major'
22924   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22925   case $host_os in
22926   irix5* | nonstopux*)
22927     libsuff= shlibsuff=
22928     ;;
22929   *)
22930     case $LD in # libtool.m4 will add one of these switches to LD
22931     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22932       libsuff= shlibsuff= libmagic=32-bit;;
22933     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22934       libsuff=32 shlibsuff=N32 libmagic=N32;;
22935     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22936       libsuff=64 shlibsuff=64 libmagic=64-bit;;
22937     *) libsuff= shlibsuff= libmagic=never-match;;
22938     esac
22939     ;;
22940   esac
22941   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22942   shlibpath_overrides_runpath=no
22943   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22944   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22945   hardcode_into_libs=yes
22946   ;;
22947
22948 # No shared lib support for Linux oldld, aout, or coff.
22949 linux*oldld* | linux*aout* | linux*coff*)
22950   dynamic_linker=no
22951   ;;
22952
22953 # This must be Linux ELF.
22954 linux*)
22955   version_type=linux
22956   need_lib_prefix=no
22957   need_version=no
22958   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22959   soname_spec='${libname}${release}${shared_ext}$major'
22960   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22961   shlibpath_var=LD_LIBRARY_PATH
22962   shlibpath_overrides_runpath=no
22963   # This implies no fast_install, which is unacceptable.
22964   # Some rework will be needed to allow for fast_install
22965   # before this can be enabled.
22966   hardcode_into_libs=yes
22967
22968   # Append ld.so.conf contents to the search path
22969   if test -f /etc/ld.so.conf; then
22970     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' ' '`
22971     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22972   fi
22973
22974   # We used to test for /lib/ld.so.1 and disable shared libraries on
22975   # powerpc, because MkLinux only supported shared libraries with the
22976   # GNU dynamic linker.  Since this was broken with cross compilers,
22977   # most powerpc-linux boxes support dynamic linking these days and
22978   # people can always --disable-shared, the test was removed, and we
22979   # assume the GNU/Linux dynamic linker is in use.
22980   dynamic_linker='GNU/Linux ld.so'
22981   ;;
22982
22983 knetbsd*-gnu)
22984   version_type=linux
22985   need_lib_prefix=no
22986   need_version=no
22987   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22988   soname_spec='${libname}${release}${shared_ext}$major'
22989   shlibpath_var=LD_LIBRARY_PATH
22990   shlibpath_overrides_runpath=no
22991   hardcode_into_libs=yes
22992   dynamic_linker='GNU ld.so'
22993   ;;
22994
22995 netbsd*)
22996   version_type=sunos
22997   need_lib_prefix=no
22998   need_version=no
22999   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23000     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23001     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23002     dynamic_linker='NetBSD (a.out) ld.so'
23003   else
23004     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23005     soname_spec='${libname}${release}${shared_ext}$major'
23006     dynamic_linker='NetBSD ld.elf_so'
23007   fi
23008   shlibpath_var=LD_LIBRARY_PATH
23009   shlibpath_overrides_runpath=yes
23010   hardcode_into_libs=yes
23011   ;;
23012
23013 newsos6)
23014   version_type=linux
23015   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23016   shlibpath_var=LD_LIBRARY_PATH
23017   shlibpath_overrides_runpath=yes
23018   ;;
23019
23020 nto-qnx*)
23021   version_type=linux
23022   need_lib_prefix=no
23023   need_version=no
23024   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23025   soname_spec='${libname}${release}${shared_ext}$major'
23026   shlibpath_var=LD_LIBRARY_PATH
23027   shlibpath_overrides_runpath=yes
23028   ;;
23029
23030 openbsd*)
23031   version_type=sunos
23032   sys_lib_dlsearch_path_spec="/usr/lib"
23033   need_lib_prefix=no
23034   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23035   case $host_os in
23036     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23037     *)                         need_version=no  ;;
23038   esac
23039   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23040   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23041   shlibpath_var=LD_LIBRARY_PATH
23042   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23043     case $host_os in
23044       openbsd2.[89] | openbsd2.[89].*)
23045         shlibpath_overrides_runpath=no
23046         ;;
23047       *)
23048         shlibpath_overrides_runpath=yes
23049         ;;
23050       esac
23051   else
23052     shlibpath_overrides_runpath=yes
23053   fi
23054   ;;
23055
23056 os2*)
23057   libname_spec='$name'
23058   shrext_cmds=".dll"
23059   need_lib_prefix=no
23060   library_names_spec='$libname${shared_ext} $libname.a'
23061   dynamic_linker='OS/2 ld.exe'
23062   shlibpath_var=LIBPATH
23063   ;;
23064
23065 osf3* | osf4* | osf5*)
23066   version_type=osf
23067   need_lib_prefix=no
23068   need_version=no
23069   soname_spec='${libname}${release}${shared_ext}$major'
23070   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23071   shlibpath_var=LD_LIBRARY_PATH
23072   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23073   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23074   ;;
23075
23076 solaris*)
23077   version_type=linux
23078   need_lib_prefix=no
23079   need_version=no
23080   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23081   soname_spec='${libname}${release}${shared_ext}$major'
23082   shlibpath_var=LD_LIBRARY_PATH
23083   shlibpath_overrides_runpath=yes
23084   hardcode_into_libs=yes
23085   # ldd complains unless libraries are executable
23086   postinstall_cmds='chmod +x $lib'
23087   ;;
23088
23089 sunos4*)
23090   version_type=sunos
23091   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23092   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23093   shlibpath_var=LD_LIBRARY_PATH
23094   shlibpath_overrides_runpath=yes
23095   if test "$with_gnu_ld" = yes; then
23096     need_lib_prefix=no
23097   fi
23098   need_version=yes
23099   ;;
23100
23101 sysv4 | sysv4.3*)
23102   version_type=linux
23103   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23104   soname_spec='${libname}${release}${shared_ext}$major'
23105   shlibpath_var=LD_LIBRARY_PATH
23106   case $host_vendor in
23107     sni)
23108       shlibpath_overrides_runpath=no
23109       need_lib_prefix=no
23110       export_dynamic_flag_spec='${wl}-Blargedynsym'
23111       runpath_var=LD_RUN_PATH
23112       ;;
23113     siemens)
23114       need_lib_prefix=no
23115       ;;
23116     motorola)
23117       need_lib_prefix=no
23118       need_version=no
23119       shlibpath_overrides_runpath=no
23120       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23121       ;;
23122   esac
23123   ;;
23124
23125 sysv4*MP*)
23126   if test -d /usr/nec ;then
23127     version_type=linux
23128     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23129     soname_spec='$libname${shared_ext}.$major'
23130     shlibpath_var=LD_LIBRARY_PATH
23131   fi
23132   ;;
23133
23134 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23135   version_type=freebsd-elf
23136   need_lib_prefix=no
23137   need_version=no
23138   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23139   soname_spec='${libname}${release}${shared_ext}$major'
23140   shlibpath_var=LD_LIBRARY_PATH
23141   hardcode_into_libs=yes
23142   if test "$with_gnu_ld" = yes; then
23143     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23144     shlibpath_overrides_runpath=no
23145   else
23146     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23147     shlibpath_overrides_runpath=yes
23148     case $host_os in
23149       sco3.2v5*)
23150         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23151         ;;
23152     esac
23153   fi
23154   sys_lib_dlsearch_path_spec='/usr/lib'
23155   ;;
23156
23157 uts4*)
23158   version_type=linux
23159   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23160   soname_spec='${libname}${release}${shared_ext}$major'
23161   shlibpath_var=LD_LIBRARY_PATH
23162   ;;
23163
23164 *)
23165   dynamic_linker=no
23166   ;;
23167 esac
23168 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23169 echo "${ECHO_T}$dynamic_linker" >&6; }
23170 test "$dynamic_linker" = no && can_build_shared=no
23171
23172 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23173 if test "$GCC" = yes; then
23174   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23175 fi
23176
23177 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23178 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23179 hardcode_action_F77=
23180 if test -n "$hardcode_libdir_flag_spec_F77" || \
23181    test -n "$runpath_var_F77" || \
23182    test "X$hardcode_automatic_F77" = "Xyes" ; then
23183
23184   # We can hardcode non-existant directories.
23185   if test "$hardcode_direct_F77" != no &&
23186      # If the only mechanism to avoid hardcoding is shlibpath_var, we
23187      # have to relink, otherwise we might link with an installed library
23188      # when we should be linking with a yet-to-be-installed one
23189      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23190      test "$hardcode_minus_L_F77" != no; then
23191     # Linking always hardcodes the temporary library directory.
23192     hardcode_action_F77=relink
23193   else
23194     # We can link without hardcoding, and we can hardcode nonexisting dirs.
23195     hardcode_action_F77=immediate
23196   fi
23197 else
23198   # We cannot hardcode anything, or else we can only hardcode existing
23199   # directories.
23200   hardcode_action_F77=unsupported
23201 fi
23202 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23203 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23204
23205 if test "$hardcode_action_F77" = relink; then
23206   # Fast installation is not supported
23207   enable_fast_install=no
23208 elif test "$shlibpath_overrides_runpath" = yes ||
23209      test "$enable_shared" = no; then
23210   # Fast installation is not necessary
23211   enable_fast_install=needless
23212 fi
23213
23214
23215 # The else clause should only fire when bootstrapping the
23216 # libtool distribution, otherwise you forgot to ship ltmain.sh
23217 # with your package, and you will get complaints that there are
23218 # no rules to generate ltmain.sh.
23219 if test -f "$ltmain"; then
23220   # See if we are running on zsh, and set the options which allow our commands through
23221   # without removal of \ escapes.
23222   if test -n "${ZSH_VERSION+set}" ; then
23223     setopt NO_GLOB_SUBST
23224   fi
23225   # Now quote all the things that may contain metacharacters while being
23226   # careful not to overquote the AC_SUBSTed values.  We take copies of the
23227   # variables and quote the copies for generation of the libtool script.
23228   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23229     SED SHELL STRIP \
23230     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23231     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23232     deplibs_check_method reload_flag reload_cmds need_locks \
23233     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23234     lt_cv_sys_global_symbol_to_c_name_address \
23235     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23236     old_postinstall_cmds old_postuninstall_cmds \
23237     compiler_F77 \
23238     CC_F77 \
23239     LD_F77 \
23240     lt_prog_compiler_wl_F77 \
23241     lt_prog_compiler_pic_F77 \
23242     lt_prog_compiler_static_F77 \
23243     lt_prog_compiler_no_builtin_flag_F77 \
23244     export_dynamic_flag_spec_F77 \
23245     thread_safe_flag_spec_F77 \
23246     whole_archive_flag_spec_F77 \
23247     enable_shared_with_static_runtimes_F77 \
23248     old_archive_cmds_F77 \
23249     old_archive_from_new_cmds_F77 \
23250     predep_objects_F77 \
23251     postdep_objects_F77 \
23252     predeps_F77 \
23253     postdeps_F77 \
23254     compiler_lib_search_path_F77 \
23255     archive_cmds_F77 \
23256     archive_expsym_cmds_F77 \
23257     postinstall_cmds_F77 \
23258     postuninstall_cmds_F77 \
23259     old_archive_from_expsyms_cmds_F77 \
23260     allow_undefined_flag_F77 \
23261     no_undefined_flag_F77 \
23262     export_symbols_cmds_F77 \
23263     hardcode_libdir_flag_spec_F77 \
23264     hardcode_libdir_flag_spec_ld_F77 \
23265     hardcode_libdir_separator_F77 \
23266     hardcode_automatic_F77 \
23267     module_cmds_F77 \
23268     module_expsym_cmds_F77 \
23269     lt_cv_prog_compiler_c_o_F77 \
23270     exclude_expsyms_F77 \
23271     include_expsyms_F77; do
23272
23273     case $var in
23274     old_archive_cmds_F77 | \
23275     old_archive_from_new_cmds_F77 | \
23276     archive_cmds_F77 | \
23277     archive_expsym_cmds_F77 | \
23278     module_cmds_F77 | \
23279     module_expsym_cmds_F77 | \
23280     old_archive_from_expsyms_cmds_F77 | \
23281     export_symbols_cmds_F77 | \
23282     extract_expsyms_cmds | reload_cmds | finish_cmds | \
23283     postinstall_cmds | postuninstall_cmds | \
23284     old_postinstall_cmds | old_postuninstall_cmds | \
23285     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23286       # Double-quote double-evaled strings.
23287       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23288       ;;
23289     *)
23290       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23291       ;;
23292     esac
23293   done
23294
23295   case $lt_echo in
23296   *'\$0 --fallback-echo"')
23297     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23298     ;;
23299   esac
23300
23301 cfgfile="$ofile"
23302
23303   cat <<__EOF__ >> "$cfgfile"
23304 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23305
23306 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23307
23308 # Shell to use when invoking shell scripts.
23309 SHELL=$lt_SHELL
23310
23311 # Whether or not to build shared libraries.
23312 build_libtool_libs=$enable_shared
23313
23314 # Whether or not to build static libraries.
23315 build_old_libs=$enable_static
23316
23317 # Whether or not to add -lc for building shared libraries.
23318 build_libtool_need_lc=$archive_cmds_need_lc_F77
23319
23320 # Whether or not to disallow shared libs when runtime libs are static
23321 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23322
23323 # Whether or not to optimize for fast installation.
23324 fast_install=$enable_fast_install
23325
23326 # The host system.
23327 host_alias=$host_alias
23328 host=$host
23329 host_os=$host_os
23330
23331 # The build system.
23332 build_alias=$build_alias
23333 build=$build
23334 build_os=$build_os
23335
23336 # An echo program that does not interpret backslashes.
23337 echo=$lt_echo
23338
23339 # The archiver.
23340 AR=$lt_AR
23341 AR_FLAGS=$lt_AR_FLAGS
23342
23343 # A C compiler.
23344 LTCC=$lt_LTCC
23345
23346 # LTCC compiler flags.
23347 LTCFLAGS=$lt_LTCFLAGS
23348
23349 # A language-specific compiler.
23350 CC=$lt_compiler_F77
23351
23352 # Is the compiler the GNU C compiler?
23353 with_gcc=$GCC_F77
23354
23355 # An ERE matcher.
23356 EGREP=$lt_EGREP
23357
23358 # The linker used to build libraries.
23359 LD=$lt_LD_F77
23360
23361 # Whether we need hard or soft links.
23362 LN_S=$lt_LN_S
23363
23364 # A BSD-compatible nm program.
23365 NM=$lt_NM
23366
23367 # A symbol stripping program
23368 STRIP=$lt_STRIP
23369
23370 # Used to examine libraries when file_magic_cmd begins "file"
23371 MAGIC_CMD=$MAGIC_CMD
23372
23373 # Used on cygwin: DLL creation program.
23374 DLLTOOL="$DLLTOOL"
23375
23376 # Used on cygwin: object dumper.
23377 OBJDUMP="$OBJDUMP"
23378
23379 # Used on cygwin: assembler.
23380 AS="$AS"
23381
23382 # The name of the directory that contains temporary libtool files.
23383 objdir=$objdir
23384
23385 # How to create reloadable object files.
23386 reload_flag=$lt_reload_flag
23387 reload_cmds=$lt_reload_cmds
23388
23389 # How to pass a linker flag through the compiler.
23390 wl=$lt_lt_prog_compiler_wl_F77
23391
23392 # Object file suffix (normally "o").
23393 objext="$ac_objext"
23394
23395 # Old archive suffix (normally "a").
23396 libext="$libext"
23397
23398 # Shared library suffix (normally ".so").
23399 shrext_cmds='$shrext_cmds'
23400
23401 # Executable file suffix (normally "").
23402 exeext="$exeext"
23403
23404 # Additional compiler flags for building library objects.
23405 pic_flag=$lt_lt_prog_compiler_pic_F77
23406 pic_mode=$pic_mode
23407
23408 # What is the maximum length of a command?
23409 max_cmd_len=$lt_cv_sys_max_cmd_len
23410
23411 # Does compiler simultaneously support -c and -o options?
23412 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23413
23414 # Must we lock files when doing compilation?
23415 need_locks=$lt_need_locks
23416
23417 # Do we need the lib prefix for modules?
23418 need_lib_prefix=$need_lib_prefix
23419
23420 # Do we need a version for libraries?
23421 need_version=$need_version
23422
23423 # Whether dlopen is supported.
23424 dlopen_support=$enable_dlopen
23425
23426 # Whether dlopen of programs is supported.
23427 dlopen_self=$enable_dlopen_self
23428
23429 # Whether dlopen of statically linked programs is supported.
23430 dlopen_self_static=$enable_dlopen_self_static
23431
23432 # Compiler flag to prevent dynamic linking.
23433 link_static_flag=$lt_lt_prog_compiler_static_F77
23434
23435 # Compiler flag to turn off builtin functions.
23436 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23437
23438 # Compiler flag to allow reflexive dlopens.
23439 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23440
23441 # Compiler flag to generate shared objects directly from archives.
23442 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23443
23444 # Compiler flag to generate thread-safe objects.
23445 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23446
23447 # Library versioning type.
23448 version_type=$version_type
23449
23450 # Format of library name prefix.
23451 libname_spec=$lt_libname_spec
23452
23453 # List of archive names.  First name is the real one, the rest are links.
23454 # The last name is the one that the linker finds with -lNAME.
23455 library_names_spec=$lt_library_names_spec
23456
23457 # The coded name of the library, if different from the real name.
23458 soname_spec=$lt_soname_spec
23459
23460 # Commands used to build and install an old-style archive.
23461 RANLIB=$lt_RANLIB
23462 old_archive_cmds=$lt_old_archive_cmds_F77
23463 old_postinstall_cmds=$lt_old_postinstall_cmds
23464 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23465
23466 # Create an old-style archive from a shared archive.
23467 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23468
23469 # Create a temporary old-style archive to link instead of a shared archive.
23470 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23471
23472 # Commands used to build and install a shared archive.
23473 archive_cmds=$lt_archive_cmds_F77
23474 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23475 postinstall_cmds=$lt_postinstall_cmds
23476 postuninstall_cmds=$lt_postuninstall_cmds
23477
23478 # Commands used to build a loadable module (assumed same as above if empty)
23479 module_cmds=$lt_module_cmds_F77
23480 module_expsym_cmds=$lt_module_expsym_cmds_F77
23481
23482 # Commands to strip libraries.
23483 old_striplib=$lt_old_striplib
23484 striplib=$lt_striplib
23485
23486 # Dependencies to place before the objects being linked to create a
23487 # shared library.
23488 predep_objects=$lt_predep_objects_F77
23489
23490 # Dependencies to place after the objects being linked to create a
23491 # shared library.
23492 postdep_objects=$lt_postdep_objects_F77
23493
23494 # Dependencies to place before the objects being linked to create a
23495 # shared library.
23496 predeps=$lt_predeps_F77
23497
23498 # Dependencies to place after the objects being linked to create a
23499 # shared library.
23500 postdeps=$lt_postdeps_F77
23501
23502 # The library search path used internally by the compiler when linking
23503 # a shared library.
23504 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23505
23506 # Method to check whether dependent libraries are shared objects.
23507 deplibs_check_method=$lt_deplibs_check_method
23508
23509 # Command to use when deplibs_check_method == file_magic.
23510 file_magic_cmd=$lt_file_magic_cmd
23511
23512 # Flag that allows shared libraries with undefined symbols to be built.
23513 allow_undefined_flag=$lt_allow_undefined_flag_F77
23514
23515 # Flag that forces no undefined symbols.
23516 no_undefined_flag=$lt_no_undefined_flag_F77
23517
23518 # Commands used to finish a libtool library installation in a directory.
23519 finish_cmds=$lt_finish_cmds
23520
23521 # Same as above, but a single script fragment to be evaled but not shown.
23522 finish_eval=$lt_finish_eval
23523
23524 # Take the output of nm and produce a listing of raw symbols and C names.
23525 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23526
23527 # Transform the output of nm in a proper C declaration
23528 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23529
23530 # Transform the output of nm in a C name address pair
23531 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23532
23533 # This is the shared library runtime path variable.
23534 runpath_var=$runpath_var
23535
23536 # This is the shared library path variable.
23537 shlibpath_var=$shlibpath_var
23538
23539 # Is shlibpath searched before the hard-coded library search path?
23540 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23541
23542 # How to hardcode a shared library path into an executable.
23543 hardcode_action=$hardcode_action_F77
23544
23545 # Whether we should hardcode library paths into libraries.
23546 hardcode_into_libs=$hardcode_into_libs
23547
23548 # Flag to hardcode \$libdir into a binary during linking.
23549 # This must work even if \$libdir does not exist.
23550 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23551
23552 # If ld is used when linking, flag to hardcode \$libdir into
23553 # a binary during linking. This must work even if \$libdir does
23554 # not exist.
23555 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23556
23557 # Whether we need a single -rpath flag with a separated argument.
23558 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23559
23560 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23561 # resulting binary.
23562 hardcode_direct=$hardcode_direct_F77
23563
23564 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23565 # resulting binary.
23566 hardcode_minus_L=$hardcode_minus_L_F77
23567
23568 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23569 # the resulting binary.
23570 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23571
23572 # Set to yes if building a shared library automatically hardcodes DIR into the library
23573 # and all subsequent libraries and executables linked against it.
23574 hardcode_automatic=$hardcode_automatic_F77
23575
23576 # Variables whose values should be saved in libtool wrapper scripts and
23577 # restored at relink time.
23578 variables_saved_for_relink="$variables_saved_for_relink"
23579
23580 # Whether libtool must link a program against all its dependency libraries.
23581 link_all_deplibs=$link_all_deplibs_F77
23582
23583 # Compile-time system search path for libraries
23584 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23585
23586 # Run-time system search path for libraries
23587 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23588
23589 # Fix the shell variable \$srcfile for the compiler.
23590 fix_srcfile_path="$fix_srcfile_path_F77"
23591
23592 # Set to yes if exported symbols are required.
23593 always_export_symbols=$always_export_symbols_F77
23594
23595 # The commands to list exported symbols.
23596 export_symbols_cmds=$lt_export_symbols_cmds_F77
23597
23598 # The commands to extract the exported symbol list from a shared archive.
23599 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23600
23601 # Symbols that should not be listed in the preloaded symbols.
23602 exclude_expsyms=$lt_exclude_expsyms_F77
23603
23604 # Symbols that must always be exported.
23605 include_expsyms=$lt_include_expsyms_F77
23606
23607 # ### END LIBTOOL TAG CONFIG: $tagname
23608
23609 __EOF__
23610
23611
23612 else
23613   # If there is no Makefile yet, we rely on a make rule to execute
23614   # `config.status --recheck' to rerun these tests and create the
23615   # libtool script then.
23616   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23617   if test -f "$ltmain_in"; then
23618     test -f Makefile && make "$ltmain"
23619   fi
23620 fi
23621
23622
23623 ac_ext=c
23624 ac_cpp='$CPP $CPPFLAGS'
23625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23628
23629 CC="$lt_save_CC"
23630
23631         else
23632           tagname=""
23633         fi
23634         ;;
23635
23636       GCJ)
23637         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23638           ac_ext=c
23639 ac_cpp='$CPP $CPPFLAGS'
23640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23643
23644
23645 # Source file extension for Java test sources.
23646 ac_ext=java
23647
23648 # Object file extension for compiled Java test sources.
23649 objext=o
23650 objext_GCJ=$objext
23651
23652 # Code to be used in simple compile tests
23653 lt_simple_compile_test_code="class foo {}\n"
23654
23655 # Code to be used in simple link tests
23656 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23657
23658 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23659
23660 # If no C compiler was specified, use CC.
23661 LTCC=${LTCC-"$CC"}
23662
23663 # If no C compiler flags were specified, use CFLAGS.
23664 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23665
23666 # Allow CC to be a program name with arguments.
23667 compiler=$CC
23668
23669
23670 # save warnings/boilerplate of simple test code
23671 ac_outfile=conftest.$ac_objext
23672 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23673 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23674 _lt_compiler_boilerplate=`cat conftest.err`
23675 $rm conftest*
23676
23677 ac_outfile=conftest.$ac_objext
23678 printf "$lt_simple_link_test_code" >conftest.$ac_ext
23679 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23680 _lt_linker_boilerplate=`cat conftest.err`
23681 $rm conftest*
23682
23683
23684 # Allow CC to be a program name with arguments.
23685 lt_save_CC="$CC"
23686 CC=${GCJ-"gcj"}
23687 compiler=$CC
23688 compiler_GCJ=$CC
23689 for cc_temp in $compiler""; do
23690   case $cc_temp in
23691     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23692     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23693     \-*) ;;
23694     *) break;;
23695   esac
23696 done
23697 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23698
23699
23700 # GCJ did not exist at the time GCC didn't implicitly link libc in.
23701 archive_cmds_need_lc_GCJ=no
23702
23703 old_archive_cmds_GCJ=$old_archive_cmds
23704
23705
23706 lt_prog_compiler_no_builtin_flag_GCJ=
23707
23708 if test "$GCC" = yes; then
23709   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23710
23711
23712 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23713 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23714 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23715   echo $ECHO_N "(cached) $ECHO_C" >&6
23716 else
23717   lt_cv_prog_compiler_rtti_exceptions=no
23718   ac_outfile=conftest.$ac_objext
23719    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23720    lt_compiler_flag="-fno-rtti -fno-exceptions"
23721    # Insert the option either (1) after the last *FLAGS variable, or
23722    # (2) before a word containing "conftest.", or (3) at the end.
23723    # Note that $ac_compile itself does not contain backslashes and begins
23724    # with a dollar sign (not a hyphen), so the echo should work correctly.
23725    # The option is referenced via a variable to avoid confusing sed.
23726    lt_compile=`echo "$ac_compile" | $SED \
23727    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23728    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23729    -e 's:$: $lt_compiler_flag:'`
23730    (eval echo "\"\$as_me:23730: $lt_compile\"" >&5)
23731    (eval "$lt_compile" 2>conftest.err)
23732    ac_status=$?
23733    cat conftest.err >&5
23734    echo "$as_me:23734: \$? = $ac_status" >&5
23735    if (exit $ac_status) && test -s "$ac_outfile"; then
23736      # The compiler can only warn and ignore the option if not recognized
23737      # So say no if there are warnings other than the usual output.
23738      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23739      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23740      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23741        lt_cv_prog_compiler_rtti_exceptions=yes
23742      fi
23743    fi
23744    $rm conftest*
23745
23746 fi
23747 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23748 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
23749
23750 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23751     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23752 else
23753     :
23754 fi
23755
23756 fi
23757
23758 lt_prog_compiler_wl_GCJ=
23759 lt_prog_compiler_pic_GCJ=
23760 lt_prog_compiler_static_GCJ=
23761
23762 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23763 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
23764
23765   if test "$GCC" = yes; then
23766     lt_prog_compiler_wl_GCJ='-Wl,'
23767     lt_prog_compiler_static_GCJ='-static'
23768
23769     case $host_os in
23770       aix*)
23771       # All AIX code is PIC.
23772       if test "$host_cpu" = ia64; then
23773         # AIX 5 now supports IA64 processor
23774         lt_prog_compiler_static_GCJ='-Bstatic'
23775       fi
23776       ;;
23777
23778     amigaos*)
23779       # FIXME: we need at least 68020 code to build shared libraries, but
23780       # adding the `-m68020' flag to GCC prevents building anything better,
23781       # like `-m68040'.
23782       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23783       ;;
23784
23785     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23786       # PIC is the default for these OSes.
23787       ;;
23788
23789     mingw* | pw32* | os2*)
23790       # This hack is so that the source file can tell whether it is being
23791       # built for inclusion in a dll (and should export symbols for example).
23792       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23793       ;;
23794
23795     darwin* | rhapsody*)
23796       # PIC is the default on this platform
23797       # Common symbols not allowed in MH_DYLIB files
23798       lt_prog_compiler_pic_GCJ='-fno-common'
23799       ;;
23800
23801     interix3*)
23802       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23803       # Instead, we relocate shared libraries at runtime.
23804       ;;
23805
23806     msdosdjgpp*)
23807       # Just because we use GCC doesn't mean we suddenly get shared libraries
23808       # on systems that don't support them.
23809       lt_prog_compiler_can_build_shared_GCJ=no
23810       enable_shared=no
23811       ;;
23812
23813     sysv4*MP*)
23814       if test -d /usr/nec; then
23815         lt_prog_compiler_pic_GCJ=-Kconform_pic
23816       fi
23817       ;;
23818
23819     hpux*)
23820       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23821       # not for PA HP-UX.
23822       case $host_cpu in
23823       hppa*64*|ia64*)
23824         # +Z the default
23825         ;;
23826       *)
23827         lt_prog_compiler_pic_GCJ='-fPIC'
23828         ;;
23829       esac
23830       ;;
23831
23832     *)
23833       lt_prog_compiler_pic_GCJ='-fPIC'
23834       ;;
23835     esac
23836   else
23837     # PORTME Check for flag to pass linker flags through the system compiler.
23838     case $host_os in
23839     aix*)
23840       lt_prog_compiler_wl_GCJ='-Wl,'
23841       if test "$host_cpu" = ia64; then
23842         # AIX 5 now supports IA64 processor
23843         lt_prog_compiler_static_GCJ='-Bstatic'
23844       else
23845         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23846       fi
23847       ;;
23848       darwin*)
23849         # PIC is the default on this platform
23850         # Common symbols not allowed in MH_DYLIB files
23851        case $cc_basename in
23852          xlc*)
23853          lt_prog_compiler_pic_GCJ='-qnocommon'
23854          lt_prog_compiler_wl_GCJ='-Wl,'
23855          ;;
23856        esac
23857        ;;
23858
23859     mingw* | pw32* | os2*)
23860       # This hack is so that the source file can tell whether it is being
23861       # built for inclusion in a dll (and should export symbols for example).
23862       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23863       ;;
23864
23865     hpux9* | hpux10* | hpux11*)
23866       lt_prog_compiler_wl_GCJ='-Wl,'
23867       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23868       # not for PA HP-UX.
23869       case $host_cpu in
23870       hppa*64*|ia64*)
23871         # +Z the default
23872         ;;
23873       *)
23874         lt_prog_compiler_pic_GCJ='+Z'
23875         ;;
23876       esac
23877       # Is there a better lt_prog_compiler_static that works with the bundled CC?
23878       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23879       ;;
23880
23881     irix5* | irix6* | nonstopux*)
23882       lt_prog_compiler_wl_GCJ='-Wl,'
23883       # PIC (with -KPIC) is the default.
23884       lt_prog_compiler_static_GCJ='-non_shared'
23885       ;;
23886
23887     newsos6)
23888       lt_prog_compiler_pic_GCJ='-KPIC'
23889       lt_prog_compiler_static_GCJ='-Bstatic'
23890       ;;
23891
23892     linux*)
23893       case $cc_basename in
23894       icc* | ecc*)
23895         lt_prog_compiler_wl_GCJ='-Wl,'
23896         lt_prog_compiler_pic_GCJ='-KPIC'
23897         lt_prog_compiler_static_GCJ='-static'
23898         ;;
23899       pgcc* | pgf77* | pgf90* | pgf95*)
23900         # Portland Group compilers (*not* the Pentium gcc compiler,
23901         # which looks to be a dead project)
23902         lt_prog_compiler_wl_GCJ='-Wl,'
23903         lt_prog_compiler_pic_GCJ='-fpic'
23904         lt_prog_compiler_static_GCJ='-Bstatic'
23905         ;;
23906       ccc*)
23907         lt_prog_compiler_wl_GCJ='-Wl,'
23908         # All Alpha code is PIC.
23909         lt_prog_compiler_static_GCJ='-non_shared'
23910         ;;
23911       esac
23912       ;;
23913
23914     osf3* | osf4* | osf5*)
23915       lt_prog_compiler_wl_GCJ='-Wl,'
23916       # All OSF/1 code is PIC.
23917       lt_prog_compiler_static_GCJ='-non_shared'
23918       ;;
23919
23920     solaris*)
23921       lt_prog_compiler_pic_GCJ='-KPIC'
23922       lt_prog_compiler_static_GCJ='-Bstatic'
23923       case $cc_basename in
23924       f77* | f90* | f95*)
23925         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23926       *)
23927         lt_prog_compiler_wl_GCJ='-Wl,';;
23928       esac
23929       ;;
23930
23931     sunos4*)
23932       lt_prog_compiler_wl_GCJ='-Qoption ld '
23933       lt_prog_compiler_pic_GCJ='-PIC'
23934       lt_prog_compiler_static_GCJ='-Bstatic'
23935       ;;
23936
23937     sysv4 | sysv4.2uw2* | sysv4.3*)
23938       lt_prog_compiler_wl_GCJ='-Wl,'
23939       lt_prog_compiler_pic_GCJ='-KPIC'
23940       lt_prog_compiler_static_GCJ='-Bstatic'
23941       ;;
23942
23943     sysv4*MP*)
23944       if test -d /usr/nec ;then
23945         lt_prog_compiler_pic_GCJ='-Kconform_pic'
23946         lt_prog_compiler_static_GCJ='-Bstatic'
23947       fi
23948       ;;
23949
23950     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23951       lt_prog_compiler_wl_GCJ='-Wl,'
23952       lt_prog_compiler_pic_GCJ='-KPIC'
23953       lt_prog_compiler_static_GCJ='-Bstatic'
23954       ;;
23955
23956     unicos*)
23957       lt_prog_compiler_wl_GCJ='-Wl,'
23958       lt_prog_compiler_can_build_shared_GCJ=no
23959       ;;
23960
23961     uts4*)
23962       lt_prog_compiler_pic_GCJ='-pic'
23963       lt_prog_compiler_static_GCJ='-Bstatic'
23964       ;;
23965
23966     *)
23967       lt_prog_compiler_can_build_shared_GCJ=no
23968       ;;
23969     esac
23970   fi
23971
23972 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23973 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
23974
23975 #
23976 # Check to make sure the PIC flag actually works.
23977 #
23978 if test -n "$lt_prog_compiler_pic_GCJ"; then
23979
23980 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
23981 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
23982 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
23983   echo $ECHO_N "(cached) $ECHO_C" >&6
23984 else
23985   lt_prog_compiler_pic_works_GCJ=no
23986   ac_outfile=conftest.$ac_objext
23987    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23988    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
23989    # Insert the option either (1) after the last *FLAGS variable, or
23990    # (2) before a word containing "conftest.", or (3) at the end.
23991    # Note that $ac_compile itself does not contain backslashes and begins
23992    # with a dollar sign (not a hyphen), so the echo should work correctly.
23993    # The option is referenced via a variable to avoid confusing sed.
23994    lt_compile=`echo "$ac_compile" | $SED \
23995    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23996    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23997    -e 's:$: $lt_compiler_flag:'`
23998    (eval echo "\"\$as_me:23998: $lt_compile\"" >&5)
23999    (eval "$lt_compile" 2>conftest.err)
24000    ac_status=$?
24001    cat conftest.err >&5
24002    echo "$as_me:24002: \$? = $ac_status" >&5
24003    if (exit $ac_status) && test -s "$ac_outfile"; then
24004      # The compiler can only warn and ignore the option if not recognized
24005      # So say no if there are warnings other than the usual output.
24006      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24007      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24008      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24009        lt_prog_compiler_pic_works_GCJ=yes
24010      fi
24011    fi
24012    $rm conftest*
24013
24014 fi
24015 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24016 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24017
24018 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24019     case $lt_prog_compiler_pic_GCJ in
24020      "" | " "*) ;;
24021      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24022      esac
24023 else
24024     lt_prog_compiler_pic_GCJ=
24025      lt_prog_compiler_can_build_shared_GCJ=no
24026 fi
24027
24028 fi
24029 case $host_os in
24030   # For platforms which do not support PIC, -DPIC is meaningless:
24031   *djgpp*)
24032     lt_prog_compiler_pic_GCJ=
24033     ;;
24034   *)
24035     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24036     ;;
24037 esac
24038
24039 #
24040 # Check to make sure the static flag actually works.
24041 #
24042 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24043 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24044 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24045 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24046   echo $ECHO_N "(cached) $ECHO_C" >&6
24047 else
24048   lt_prog_compiler_static_works_GCJ=no
24049    save_LDFLAGS="$LDFLAGS"
24050    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24051    printf "$lt_simple_link_test_code" > conftest.$ac_ext
24052    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24053      # The linker can only warn and ignore the option if not recognized
24054      # So say no if there are warnings
24055      if test -s conftest.err; then
24056        # Append any errors to the config.log.
24057        cat conftest.err 1>&5
24058        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24059        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24060        if diff conftest.exp conftest.er2 >/dev/null; then
24061          lt_prog_compiler_static_works_GCJ=yes
24062        fi
24063      else
24064        lt_prog_compiler_static_works_GCJ=yes
24065      fi
24066    fi
24067    $rm conftest*
24068    LDFLAGS="$save_LDFLAGS"
24069
24070 fi
24071 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24072 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24073
24074 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24075     :
24076 else
24077     lt_prog_compiler_static_GCJ=
24078 fi
24079
24080
24081 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24082 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24083 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24084   echo $ECHO_N "(cached) $ECHO_C" >&6
24085 else
24086   lt_cv_prog_compiler_c_o_GCJ=no
24087    $rm -r conftest 2>/dev/null
24088    mkdir conftest
24089    cd conftest
24090    mkdir out
24091    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24092
24093    lt_compiler_flag="-o out/conftest2.$ac_objext"
24094    # Insert the option either (1) after the last *FLAGS variable, or
24095    # (2) before a word containing "conftest.", or (3) at the end.
24096    # Note that $ac_compile itself does not contain backslashes and begins
24097    # with a dollar sign (not a hyphen), so the echo should work correctly.
24098    lt_compile=`echo "$ac_compile" | $SED \
24099    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24100    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24101    -e 's:$: $lt_compiler_flag:'`
24102    (eval echo "\"\$as_me:24102: $lt_compile\"" >&5)
24103    (eval "$lt_compile" 2>out/conftest.err)
24104    ac_status=$?
24105    cat out/conftest.err >&5
24106    echo "$as_me:24106: \$? = $ac_status" >&5
24107    if (exit $ac_status) && test -s out/conftest2.$ac_objext
24108    then
24109      # The compiler can only warn and ignore the option if not recognized
24110      # So say no if there are warnings
24111      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24112      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24113      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24114        lt_cv_prog_compiler_c_o_GCJ=yes
24115      fi
24116    fi
24117    chmod u+w . 2>&5
24118    $rm conftest*
24119    # SGI C++ compiler will create directory out/ii_files/ for
24120    # template instantiation
24121    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24122    $rm out/* && rmdir out
24123    cd ..
24124    rmdir conftest
24125    $rm conftest*
24126
24127 fi
24128 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24129 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24130
24131
24132 hard_links="nottested"
24133 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24134   # do not overwrite the value of need_locks provided by the user
24135   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24136 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24137   hard_links=yes
24138   $rm conftest*
24139   ln conftest.a conftest.b 2>/dev/null && hard_links=no
24140   touch conftest.a
24141   ln conftest.a conftest.b 2>&5 || hard_links=no
24142   ln conftest.a conftest.b 2>/dev/null && hard_links=no
24143   { echo "$as_me:$LINENO: result: $hard_links" >&5
24144 echo "${ECHO_T}$hard_links" >&6; }
24145   if test "$hard_links" = no; then
24146     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24147 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24148     need_locks=warn
24149   fi
24150 else
24151   need_locks=no
24152 fi
24153
24154 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24155 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24156
24157   runpath_var=
24158   allow_undefined_flag_GCJ=
24159   enable_shared_with_static_runtimes_GCJ=no
24160   archive_cmds_GCJ=
24161   archive_expsym_cmds_GCJ=
24162   old_archive_From_new_cmds_GCJ=
24163   old_archive_from_expsyms_cmds_GCJ=
24164   export_dynamic_flag_spec_GCJ=
24165   whole_archive_flag_spec_GCJ=
24166   thread_safe_flag_spec_GCJ=
24167   hardcode_libdir_flag_spec_GCJ=
24168   hardcode_libdir_flag_spec_ld_GCJ=
24169   hardcode_libdir_separator_GCJ=
24170   hardcode_direct_GCJ=no
24171   hardcode_minus_L_GCJ=no
24172   hardcode_shlibpath_var_GCJ=unsupported
24173   link_all_deplibs_GCJ=unknown
24174   hardcode_automatic_GCJ=no
24175   module_cmds_GCJ=
24176   module_expsym_cmds_GCJ=
24177   always_export_symbols_GCJ=no
24178   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24179   # include_expsyms should be a list of space-separated symbols to be *always*
24180   # included in the symbol list
24181   include_expsyms_GCJ=
24182   # exclude_expsyms can be an extended regexp of symbols to exclude
24183   # it will be wrapped by ` (' and `)$', so one must not match beginning or
24184   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24185   # as well as any symbol that contains `d'.
24186   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24187   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24188   # platforms (ab)use it in PIC code, but their linkers get confused if
24189   # the symbol is explicitly referenced.  Since portable code cannot
24190   # rely on this symbol name, it's probably fine to never include it in
24191   # preloaded symbol tables.
24192   extract_expsyms_cmds=
24193   # Just being paranoid about ensuring that cc_basename is set.
24194   for cc_temp in $compiler""; do
24195   case $cc_temp in
24196     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24197     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24198     \-*) ;;
24199     *) break;;
24200   esac
24201 done
24202 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24203
24204   case $host_os in
24205   cygwin* | mingw* | pw32*)
24206     # FIXME: the MSVC++ port hasn't been tested in a loooong time
24207     # When not using gcc, we currently assume that we are using
24208     # Microsoft Visual C++.
24209     if test "$GCC" != yes; then
24210       with_gnu_ld=no
24211     fi
24212     ;;
24213   interix*)
24214     # we just hope/assume this is gcc and not c89 (= MSVC++)
24215     with_gnu_ld=yes
24216     ;;
24217   openbsd*)
24218     with_gnu_ld=no
24219     ;;
24220   esac
24221
24222   ld_shlibs_GCJ=yes
24223   if test "$with_gnu_ld" = yes; then
24224     # If archive_cmds runs LD, not CC, wlarc should be empty
24225     wlarc='${wl}'
24226
24227     # Set some defaults for GNU ld with shared library support. These
24228     # are reset later if shared libraries are not supported. Putting them
24229     # here allows them to be overridden if necessary.
24230     runpath_var=LD_RUN_PATH
24231     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24232     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24233     # ancient GNU ld didn't support --whole-archive et. al.
24234     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24235         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24236       else
24237         whole_archive_flag_spec_GCJ=
24238     fi
24239     supports_anon_versioning=no
24240     case `$LD -v 2>/dev/null` in
24241       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24242       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24243       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24244       *\ 2.11.*) ;; # other 2.11 versions
24245       *) supports_anon_versioning=yes ;;
24246     esac
24247
24248     # See if GNU ld supports shared libraries.
24249     case $host_os in
24250     aix3* | aix4* | aix5*)
24251       # On AIX/PPC, the GNU linker is very broken
24252       if test "$host_cpu" != ia64; then
24253         ld_shlibs_GCJ=no
24254         cat <<EOF 1>&2
24255
24256 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24257 *** to be unable to reliably create shared libraries on AIX.
24258 *** Therefore, libtool is disabling shared libraries support.  If you
24259 *** really care for shared libraries, you may want to modify your PATH
24260 *** so that a non-GNU linker is found, and then restart.
24261
24262 EOF
24263       fi
24264       ;;
24265
24266     amigaos*)
24267       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)'
24268       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24269       hardcode_minus_L_GCJ=yes
24270
24271       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24272       # that the semantics of dynamic libraries on AmigaOS, at least up
24273       # to version 4, is to share data among multiple programs linked
24274       # with the same dynamic library.  Since this doesn't match the
24275       # behavior of shared libraries on other platforms, we can't use
24276       # them.
24277       ld_shlibs_GCJ=no
24278       ;;
24279
24280     beos*)
24281       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24282         allow_undefined_flag_GCJ=unsupported
24283         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24284         # support --undefined.  This deserves some investigation.  FIXME
24285         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24286       else
24287         ld_shlibs_GCJ=no
24288       fi
24289       ;;
24290
24291     cygwin* | mingw* | pw32*)
24292       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24293       # as there is no search path for DLLs.
24294       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24295       allow_undefined_flag_GCJ=unsupported
24296       always_export_symbols_GCJ=no
24297       enable_shared_with_static_runtimes_GCJ=yes
24298       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24299
24300       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24301         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24302         # If the export-symbols file already is a .def file (1st line
24303         # is EXPORTS), use it as is; otherwise, prepend...
24304         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24305           cp $export_symbols $output_objdir/$soname.def;
24306         else
24307           echo EXPORTS > $output_objdir/$soname.def;
24308           cat $export_symbols >> $output_objdir/$soname.def;
24309         fi~
24310         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24311       else
24312         ld_shlibs_GCJ=no
24313       fi
24314       ;;
24315
24316     interix3*)
24317       hardcode_direct_GCJ=no
24318       hardcode_shlibpath_var_GCJ=no
24319       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24320       export_dynamic_flag_spec_GCJ='${wl}-E'
24321       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24322       # Instead, shared libraries are loaded at an image base (0x10000000 by
24323       # default) and relocated if they conflict, which is a slow very memory
24324       # consuming and fragmenting process.  To avoid this, we pick a random,
24325       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24326       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
24327       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'
24328       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'
24329       ;;
24330
24331     linux*)
24332       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24333         tmp_addflag=
24334         case $cc_basename,$host_cpu in
24335         pgcc*)                          # Portland Group C compiler
24336           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'
24337           tmp_addflag=' $pic_flag'
24338           ;;
24339         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
24340           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'
24341           tmp_addflag=' $pic_flag -Mnomain' ;;
24342         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
24343           tmp_addflag=' -i_dynamic' ;;
24344         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
24345           tmp_addflag=' -i_dynamic -nofor_main' ;;
24346         ifc* | ifort*)                  # Intel Fortran compiler
24347           tmp_addflag=' -nofor_main' ;;
24348         esac
24349         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24350
24351         if test $supports_anon_versioning = yes; then
24352           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24353   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24354   $echo "local: *; };" >> $output_objdir/$libname.ver~
24355           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24356         fi
24357       else
24358         ld_shlibs_GCJ=no
24359       fi
24360       ;;
24361
24362     netbsd*)
24363       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24364         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24365         wlarc=
24366       else
24367         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24368         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24369       fi
24370       ;;
24371
24372     solaris*)
24373       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24374         ld_shlibs_GCJ=no
24375         cat <<EOF 1>&2
24376
24377 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24378 *** create shared libraries on Solaris systems.  Therefore, libtool
24379 *** is disabling shared libraries support.  We urge you to upgrade GNU
24380 *** binutils to release 2.9.1 or newer.  Another option is to modify
24381 *** your PATH or compiler configuration so that the native linker is
24382 *** used, and then restart.
24383
24384 EOF
24385       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24386         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24387         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24388       else
24389         ld_shlibs_GCJ=no
24390       fi
24391       ;;
24392
24393     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24394       case `$LD -v 2>&1` in
24395         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24396         ld_shlibs_GCJ=no
24397         cat <<_LT_EOF 1>&2
24398
24399 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24400 *** reliably create shared libraries on SCO systems.  Therefore, libtool
24401 *** is disabling shared libraries support.  We urge you to upgrade GNU
24402 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
24403 *** your PATH or compiler configuration so that the native linker is
24404 *** used, and then restart.
24405
24406 _LT_EOF
24407         ;;
24408         *)
24409           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24410             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24411             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24412             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24413           else
24414             ld_shlibs_GCJ=no
24415           fi
24416         ;;
24417       esac
24418       ;;
24419
24420     sunos4*)
24421       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24422       wlarc=
24423       hardcode_direct_GCJ=yes
24424       hardcode_shlibpath_var_GCJ=no
24425       ;;
24426
24427     *)
24428       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24429         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24430         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24431       else
24432         ld_shlibs_GCJ=no
24433       fi
24434       ;;
24435     esac
24436
24437     if test "$ld_shlibs_GCJ" = no; then
24438       runpath_var=
24439       hardcode_libdir_flag_spec_GCJ=
24440       export_dynamic_flag_spec_GCJ=
24441       whole_archive_flag_spec_GCJ=
24442     fi
24443   else
24444     # PORTME fill in a description of your system's linker (not GNU ld)
24445     case $host_os in
24446     aix3*)
24447       allow_undefined_flag_GCJ=unsupported
24448       always_export_symbols_GCJ=yes
24449       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'
24450       # Note: this linker hardcodes the directories in LIBPATH if there
24451       # are no directories specified by -L.
24452       hardcode_minus_L_GCJ=yes
24453       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24454         # Neither direct hardcoding nor static linking is supported with a
24455         # broken collect2.
24456         hardcode_direct_GCJ=unsupported
24457       fi
24458       ;;
24459
24460     aix4* | aix5*)
24461       if test "$host_cpu" = ia64; then
24462         # On IA64, the linker does run time linking by default, so we don't
24463         # have to do anything special.
24464         aix_use_runtimelinking=no
24465         exp_sym_flag='-Bexport'
24466         no_entry_flag=""
24467       else
24468         # If we're using GNU nm, then we don't want the "-C" option.
24469         # -C means demangle to AIX nm, but means don't demangle with GNU nm
24470         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24471           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'
24472         else
24473           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'
24474         fi
24475         aix_use_runtimelinking=no
24476
24477         # Test if we are trying to use run time linking or normal
24478         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24479         # need to do runtime linking.
24480         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24481           for ld_flag in $LDFLAGS; do
24482           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24483             aix_use_runtimelinking=yes
24484             break
24485           fi
24486           done
24487           ;;
24488         esac
24489
24490         exp_sym_flag='-bexport'
24491         no_entry_flag='-bnoentry'
24492       fi
24493
24494       # When large executables or shared objects are built, AIX ld can
24495       # have problems creating the table of contents.  If linking a library
24496       # or program results in "error TOC overflow" add -mminimal-toc to
24497       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
24498       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24499
24500       archive_cmds_GCJ=''
24501       hardcode_direct_GCJ=yes
24502       hardcode_libdir_separator_GCJ=':'
24503       link_all_deplibs_GCJ=yes
24504
24505       if test "$GCC" = yes; then
24506         case $host_os in aix4.[012]|aix4.[012].*)
24507         # We only want to do this on AIX 4.2 and lower, the check
24508         # below for broken collect2 doesn't work under 4.3+
24509           collect2name=`${CC} -print-prog-name=collect2`
24510           if test -f "$collect2name" && \
24511            strings "$collect2name" | grep resolve_lib_name >/dev/null
24512           then
24513           # We have reworked collect2
24514           hardcode_direct_GCJ=yes
24515           else
24516           # We have old collect2
24517           hardcode_direct_GCJ=unsupported
24518           # It fails to find uninstalled libraries when the uninstalled
24519           # path is not listed in the libpath.  Setting hardcode_minus_L
24520           # to unsupported forces relinking
24521           hardcode_minus_L_GCJ=yes
24522           hardcode_libdir_flag_spec_GCJ='-L$libdir'
24523           hardcode_libdir_separator_GCJ=
24524           fi
24525           ;;
24526         esac
24527         shared_flag='-shared'
24528         if test "$aix_use_runtimelinking" = yes; then
24529           shared_flag="$shared_flag "'${wl}-G'
24530         fi
24531       else
24532         # not using gcc
24533         if test "$host_cpu" = ia64; then
24534         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24535         # chokes on -Wl,-G. The following line is correct:
24536           shared_flag='-G'
24537         else
24538           if test "$aix_use_runtimelinking" = yes; then
24539             shared_flag='${wl}-G'
24540           else
24541             shared_flag='${wl}-bM:SRE'
24542           fi
24543         fi
24544       fi
24545
24546       # It seems that -bexpall does not export symbols beginning with
24547       # underscore (_), so it is better to generate a list of symbols to export.
24548       always_export_symbols_GCJ=yes
24549       if test "$aix_use_runtimelinking" = yes; then
24550         # Warning - without using the other runtime loading flags (-brtl),
24551         # -berok will link without error, but may produce a broken library.
24552         allow_undefined_flag_GCJ='-berok'
24553        # Determine the default libpath from the value encoded in an empty executable.
24554        cat >conftest.$ac_ext <<_ACEOF
24555 /* confdefs.h.  */
24556 _ACEOF
24557 cat confdefs.h >>conftest.$ac_ext
24558 cat >>conftest.$ac_ext <<_ACEOF
24559 /* end confdefs.h.  */
24560
24561 int
24562 main ()
24563 {
24564
24565   ;
24566   return 0;
24567 }
24568 _ACEOF
24569 rm -f conftest.$ac_objext conftest$ac_exeext
24570 if { (ac_try="$ac_link"
24571 case "(($ac_try" in
24572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24573   *) ac_try_echo=$ac_try;;
24574 esac
24575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24576   (eval "$ac_link") 2>conftest.er1
24577   ac_status=$?
24578   grep -v '^ *+' conftest.er1 >conftest.err
24579   rm -f conftest.er1
24580   cat conftest.err >&5
24581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24582   (exit $ac_status); } &&
24583          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24584   { (case "(($ac_try" in
24585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24586   *) ac_try_echo=$ac_try;;
24587 esac
24588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24589   (eval "$ac_try") 2>&5
24590   ac_status=$?
24591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24592   (exit $ac_status); }; } &&
24593          { ac_try='test -s conftest$ac_exeext'
24594   { (case "(($ac_try" in
24595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24596   *) ac_try_echo=$ac_try;;
24597 esac
24598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24599   (eval "$ac_try") 2>&5
24600   ac_status=$?
24601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24602   (exit $ac_status); }; }; then
24603
24604 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24605 }'`
24606 # Check for a 64-bit object if we didn't find anything.
24607 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; }
24608 }'`; fi
24609 else
24610   echo "$as_me: failed program was:" >&5
24611 sed 's/^/| /' conftest.$ac_ext >&5
24612
24613
24614 fi
24615
24616 rm -f core conftest.err conftest.$ac_objext \
24617       conftest$ac_exeext conftest.$ac_ext
24618 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24619
24620        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24621         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"
24622        else
24623         if test "$host_cpu" = ia64; then
24624           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24625           allow_undefined_flag_GCJ="-z nodefs"
24626           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"
24627         else
24628          # Determine the default libpath from the value encoded in an empty executable.
24629          cat >conftest.$ac_ext <<_ACEOF
24630 /* confdefs.h.  */
24631 _ACEOF
24632 cat confdefs.h >>conftest.$ac_ext
24633 cat >>conftest.$ac_ext <<_ACEOF
24634 /* end confdefs.h.  */
24635
24636 int
24637 main ()
24638 {
24639
24640   ;
24641   return 0;
24642 }
24643 _ACEOF
24644 rm -f conftest.$ac_objext conftest$ac_exeext
24645 if { (ac_try="$ac_link"
24646 case "(($ac_try" in
24647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24648   *) ac_try_echo=$ac_try;;
24649 esac
24650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24651   (eval "$ac_link") 2>conftest.er1
24652   ac_status=$?
24653   grep -v '^ *+' conftest.er1 >conftest.err
24654   rm -f conftest.er1
24655   cat conftest.err >&5
24656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24657   (exit $ac_status); } &&
24658          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24659   { (case "(($ac_try" in
24660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24661   *) ac_try_echo=$ac_try;;
24662 esac
24663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24664   (eval "$ac_try") 2>&5
24665   ac_status=$?
24666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24667   (exit $ac_status); }; } &&
24668          { ac_try='test -s conftest$ac_exeext'
24669   { (case "(($ac_try" in
24670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24671   *) ac_try_echo=$ac_try;;
24672 esac
24673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24674   (eval "$ac_try") 2>&5
24675   ac_status=$?
24676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24677   (exit $ac_status); }; }; then
24678
24679 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24680 }'`
24681 # Check for a 64-bit object if we didn't find anything.
24682 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; }
24683 }'`; fi
24684 else
24685   echo "$as_me: failed program was:" >&5
24686 sed 's/^/| /' conftest.$ac_ext >&5
24687
24688
24689 fi
24690
24691 rm -f core conftest.err conftest.$ac_objext \
24692       conftest$ac_exeext conftest.$ac_ext
24693 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24694
24695          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24696           # Warning - without using the other run time loading flags,
24697           # -berok will link without error, but may produce a broken library.
24698           no_undefined_flag_GCJ=' ${wl}-bernotok'
24699           allow_undefined_flag_GCJ=' ${wl}-berok'
24700           # Exported symbols can be pulled into shared objects from archives
24701           whole_archive_flag_spec_GCJ='$convenience'
24702           archive_cmds_need_lc_GCJ=yes
24703           # This is similar to how AIX traditionally builds its shared libraries.
24704           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'
24705         fi
24706       fi
24707       ;;
24708
24709     amigaos*)
24710       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)'
24711       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24712       hardcode_minus_L_GCJ=yes
24713       # see comment about different semantics on the GNU ld section
24714       ld_shlibs_GCJ=no
24715       ;;
24716
24717     bsdi[45]*)
24718       export_dynamic_flag_spec_GCJ=-rdynamic
24719       ;;
24720
24721     cygwin* | mingw* | pw32*)
24722       # When not using gcc, we currently assume that we are using
24723       # Microsoft Visual C++.
24724       # hardcode_libdir_flag_spec is actually meaningless, as there is
24725       # no search path for DLLs.
24726       hardcode_libdir_flag_spec_GCJ=' '
24727       allow_undefined_flag_GCJ=unsupported
24728       # Tell ltmain to make .lib files, not .a files.
24729       libext=lib
24730       # Tell ltmain to make .dll files, not .so files.
24731       shrext_cmds=".dll"
24732       # FIXME: Setting linknames here is a bad hack.
24733       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24734       # The linker will automatically build a .lib file if we build a DLL.
24735       old_archive_From_new_cmds_GCJ='true'
24736       # FIXME: Should let the user specify the lib program.
24737       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
24738       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
24739       enable_shared_with_static_runtimes_GCJ=yes
24740       ;;
24741
24742     darwin* | rhapsody*)
24743       case $host_os in
24744         rhapsody* | darwin1.[012])
24745          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24746          ;;
24747        *) # Darwin 1.3 on
24748          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24749            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24750          else
24751            case ${MACOSX_DEPLOYMENT_TARGET} in
24752              10.[012])
24753                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24754                ;;
24755              10.*)
24756                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24757                ;;
24758            esac
24759          fi
24760          ;;
24761       esac
24762       archive_cmds_need_lc_GCJ=no
24763       hardcode_direct_GCJ=no
24764       hardcode_automatic_GCJ=yes
24765       hardcode_shlibpath_var_GCJ=unsupported
24766       whole_archive_flag_spec_GCJ=''
24767       link_all_deplibs_GCJ=yes
24768     if test "$GCC" = yes ; then
24769         output_verbose_link_cmd='echo'
24770         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24771       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24772       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24773       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}'
24774       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}'
24775     else
24776       case $cc_basename in
24777         xlc*)
24778          output_verbose_link_cmd='echo'
24779          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24780          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24781           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24782          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}'
24783           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}'
24784           ;;
24785        *)
24786          ld_shlibs_GCJ=no
24787           ;;
24788       esac
24789     fi
24790       ;;
24791
24792     dgux*)
24793       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24794       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24795       hardcode_shlibpath_var_GCJ=no
24796       ;;
24797
24798     freebsd1*)
24799       ld_shlibs_GCJ=no
24800       ;;
24801
24802     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24803     # support.  Future versions do this automatically, but an explicit c++rt0.o
24804     # does not break anything, and helps significantly (at the cost of a little
24805     # extra space).
24806     freebsd2.2*)
24807       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24808       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24809       hardcode_direct_GCJ=yes
24810       hardcode_shlibpath_var_GCJ=no
24811       ;;
24812
24813     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24814     freebsd2*)
24815       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24816       hardcode_direct_GCJ=yes
24817       hardcode_minus_L_GCJ=yes
24818       hardcode_shlibpath_var_GCJ=no
24819       ;;
24820
24821     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24822     freebsd* | kfreebsd*-gnu | dragonfly*)
24823       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24824       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24825       hardcode_direct_GCJ=yes
24826       hardcode_shlibpath_var_GCJ=no
24827       ;;
24828
24829     hpux9*)
24830       if test "$GCC" = yes; then
24831         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'
24832       else
24833         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'
24834       fi
24835       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24836       hardcode_libdir_separator_GCJ=:
24837       hardcode_direct_GCJ=yes
24838
24839       # hardcode_minus_L: Not really in the search PATH,
24840       # but as the default location of the library.
24841       hardcode_minus_L_GCJ=yes
24842       export_dynamic_flag_spec_GCJ='${wl}-E'
24843       ;;
24844
24845     hpux10*)
24846       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24847         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24848       else
24849         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24850       fi
24851       if test "$with_gnu_ld" = no; then
24852         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24853         hardcode_libdir_separator_GCJ=:
24854
24855         hardcode_direct_GCJ=yes
24856         export_dynamic_flag_spec_GCJ='${wl}-E'
24857
24858         # hardcode_minus_L: Not really in the search PATH,
24859         # but as the default location of the library.
24860         hardcode_minus_L_GCJ=yes
24861       fi
24862       ;;
24863
24864     hpux11*)
24865       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24866         case $host_cpu in
24867         hppa*64*)
24868           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24869           ;;
24870         ia64*)
24871           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24872           ;;
24873         *)
24874           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24875           ;;
24876         esac
24877       else
24878         case $host_cpu in
24879         hppa*64*)
24880           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24881           ;;
24882         ia64*)
24883           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24884           ;;
24885         *)
24886           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24887           ;;
24888         esac
24889       fi
24890       if test "$with_gnu_ld" = no; then
24891         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24892         hardcode_libdir_separator_GCJ=:
24893
24894         case $host_cpu in
24895         hppa*64*|ia64*)
24896           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24897           hardcode_direct_GCJ=no
24898           hardcode_shlibpath_var_GCJ=no
24899           ;;
24900         *)
24901           hardcode_direct_GCJ=yes
24902           export_dynamic_flag_spec_GCJ='${wl}-E'
24903
24904           # hardcode_minus_L: Not really in the search PATH,
24905           # but as the default location of the library.
24906           hardcode_minus_L_GCJ=yes
24907           ;;
24908         esac
24909       fi
24910       ;;
24911
24912     irix5* | irix6* | nonstopux*)
24913       if test "$GCC" = yes; then
24914         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'
24915       else
24916         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'
24917         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24918       fi
24919       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24920       hardcode_libdir_separator_GCJ=:
24921       link_all_deplibs_GCJ=yes
24922       ;;
24923
24924     netbsd*)
24925       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24926         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
24927       else
24928         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
24929       fi
24930       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24931       hardcode_direct_GCJ=yes
24932       hardcode_shlibpath_var_GCJ=no
24933       ;;
24934
24935     newsos6)
24936       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24937       hardcode_direct_GCJ=yes
24938       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24939       hardcode_libdir_separator_GCJ=:
24940       hardcode_shlibpath_var_GCJ=no
24941       ;;
24942
24943     openbsd*)
24944       hardcode_direct_GCJ=yes
24945       hardcode_shlibpath_var_GCJ=no
24946       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24947         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24948         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
24949         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24950         export_dynamic_flag_spec_GCJ='${wl}-E'
24951       else
24952        case $host_os in
24953          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24954            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24955            hardcode_libdir_flag_spec_GCJ='-R$libdir'
24956            ;;
24957          *)
24958            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24959            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24960            ;;
24961        esac
24962       fi
24963       ;;
24964
24965     os2*)
24966       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24967       hardcode_minus_L_GCJ=yes
24968       allow_undefined_flag_GCJ=unsupported
24969       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'
24970       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24971       ;;
24972
24973     osf3*)
24974       if test "$GCC" = yes; then
24975         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24976         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'
24977       else
24978         allow_undefined_flag_GCJ=' -expect_unresolved \*'
24979         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'
24980       fi
24981       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24982       hardcode_libdir_separator_GCJ=:
24983       ;;
24984
24985     osf4* | osf5*)      # as osf3* with the addition of -msym flag
24986       if test "$GCC" = yes; then
24987         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24988         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'
24989         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24990       else
24991         allow_undefined_flag_GCJ=' -expect_unresolved \*'
24992         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'
24993         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~
24994         $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'
24995
24996         # Both c and cxx compiler support -rpath directly
24997         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
24998       fi
24999       hardcode_libdir_separator_GCJ=:
25000       ;;
25001
25002     solaris*)
25003       no_undefined_flag_GCJ=' -z text'
25004       if test "$GCC" = yes; then
25005         wlarc='${wl}'
25006         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25007         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25008           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25009       else
25010         wlarc=''
25011         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25012         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25013         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25014       fi
25015       hardcode_libdir_flag_spec_GCJ='-R$libdir'
25016       hardcode_shlibpath_var_GCJ=no
25017       case $host_os in
25018       solaris2.[0-5] | solaris2.[0-5].*) ;;
25019       *)
25020         # The compiler driver will combine linker options so we
25021         # cannot just pass the convience library names through
25022         # without $wl, iff we do not link with $LD.
25023         # Luckily, gcc supports the same syntax we need for Sun Studio.
25024         # Supported since Solaris 2.6 (maybe 2.5.1?)
25025         case $wlarc in
25026         '')
25027           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25028         *)
25029           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' ;;
25030         esac ;;
25031       esac
25032       link_all_deplibs_GCJ=yes
25033       ;;
25034
25035     sunos4*)
25036       if test "x$host_vendor" = xsequent; then
25037         # Use $CC to link under sequent, because it throws in some extra .o
25038         # files that make .init and .fini sections work.
25039         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25040       else
25041         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25042       fi
25043       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25044       hardcode_direct_GCJ=yes
25045       hardcode_minus_L_GCJ=yes
25046       hardcode_shlibpath_var_GCJ=no
25047       ;;
25048
25049     sysv4)
25050       case $host_vendor in
25051         sni)
25052           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25053           hardcode_direct_GCJ=yes # is this really true???
25054         ;;
25055         siemens)
25056           ## LD is ld it makes a PLAMLIB
25057           ## CC just makes a GrossModule.
25058           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25059           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25060           hardcode_direct_GCJ=no
25061         ;;
25062         motorola)
25063           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25064           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25065         ;;
25066       esac
25067       runpath_var='LD_RUN_PATH'
25068       hardcode_shlibpath_var_GCJ=no
25069       ;;
25070
25071     sysv4.3*)
25072       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25073       hardcode_shlibpath_var_GCJ=no
25074       export_dynamic_flag_spec_GCJ='-Bexport'
25075       ;;
25076
25077     sysv4*MP*)
25078       if test -d /usr/nec; then
25079         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25080         hardcode_shlibpath_var_GCJ=no
25081         runpath_var=LD_RUN_PATH
25082         hardcode_runpath_var=yes
25083         ld_shlibs_GCJ=yes
25084       fi
25085       ;;
25086
25087     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25088       no_undefined_flag_GCJ='${wl}-z,text'
25089       archive_cmds_need_lc_GCJ=no
25090       hardcode_shlibpath_var_GCJ=no
25091       runpath_var='LD_RUN_PATH'
25092
25093       if test "$GCC" = yes; then
25094         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25095         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25096       else
25097         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25098         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25099       fi
25100       ;;
25101
25102     sysv5* | sco3.2v5* | sco5v6*)
25103       # Note: We can NOT use -z defs as we might desire, because we do not
25104       # link with -lc, and that would cause any symbols used from libc to
25105       # always be unresolved, which means just about no library would
25106       # ever link correctly.  If we're not using GNU ld we use -z text
25107       # though, which does catch some bad symbols but isn't as heavy-handed
25108       # as -z defs.
25109       no_undefined_flag_GCJ='${wl}-z,text'
25110       allow_undefined_flag_GCJ='${wl}-z,nodefs'
25111       archive_cmds_need_lc_GCJ=no
25112       hardcode_shlibpath_var_GCJ=no
25113       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25114       hardcode_libdir_separator_GCJ=':'
25115       link_all_deplibs_GCJ=yes
25116       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25117       runpath_var='LD_RUN_PATH'
25118
25119       if test "$GCC" = yes; then
25120         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25121         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25122       else
25123         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25124         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25125       fi
25126       ;;
25127
25128     uts4*)
25129       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25130       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25131       hardcode_shlibpath_var_GCJ=no
25132       ;;
25133
25134     *)
25135       ld_shlibs_GCJ=no
25136       ;;
25137     esac
25138   fi
25139
25140 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25141 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25142 test "$ld_shlibs_GCJ" = no && can_build_shared=no
25143
25144 #
25145 # Do we need to explicitly link libc?
25146 #
25147 case "x$archive_cmds_need_lc_GCJ" in
25148 x|xyes)
25149   # Assume -lc should be added
25150   archive_cmds_need_lc_GCJ=yes
25151
25152   if test "$enable_shared" = yes && test "$GCC" = yes; then
25153     case $archive_cmds_GCJ in
25154     *'~'*)
25155       # FIXME: we may have to deal with multi-command sequences.
25156       ;;
25157     '$CC '*)
25158       # Test whether the compiler implicitly links with -lc since on some
25159       # systems, -lgcc has to come before -lc. If gcc already passes -lc
25160       # to ld, don't add -lc before -lgcc.
25161       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25162 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25163       $rm conftest*
25164       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25165
25166       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25167   (eval $ac_compile) 2>&5
25168   ac_status=$?
25169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25170   (exit $ac_status); } 2>conftest.err; then
25171         soname=conftest
25172         lib=conftest
25173         libobjs=conftest.$ac_objext
25174         deplibs=
25175         wl=$lt_prog_compiler_wl_GCJ
25176         pic_flag=$lt_prog_compiler_pic_GCJ
25177         compiler_flags=-v
25178         linker_flags=-v
25179         verstring=
25180         output_objdir=.
25181         libname=conftest
25182         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25183         allow_undefined_flag_GCJ=
25184         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25185   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25186   ac_status=$?
25187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25188   (exit $ac_status); }
25189         then
25190           archive_cmds_need_lc_GCJ=no
25191         else
25192           archive_cmds_need_lc_GCJ=yes
25193         fi
25194         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25195       else
25196         cat conftest.err 1>&5
25197       fi
25198       $rm conftest*
25199       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25200 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25201       ;;
25202     esac
25203   fi
25204   ;;
25205 esac
25206
25207 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25208 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25209 library_names_spec=
25210 libname_spec='lib$name'
25211 soname_spec=
25212 shrext_cmds=".so"
25213 postinstall_cmds=
25214 postuninstall_cmds=
25215 finish_cmds=
25216 finish_eval=
25217 shlibpath_var=
25218 shlibpath_overrides_runpath=unknown
25219 version_type=none
25220 dynamic_linker="$host_os ld.so"
25221 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25222 if test "$GCC" = yes; then
25223   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25224   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25225     # if the path contains ";" then we assume it to be the separator
25226     # otherwise default to the standard path separator (i.e. ":") - it is
25227     # assumed that no part of a normal pathname contains ";" but that should
25228     # okay in the real world where ";" in dirpaths is itself problematic.
25229     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25230   else
25231     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25232   fi
25233 else
25234   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25235 fi
25236 need_lib_prefix=unknown
25237 hardcode_into_libs=no
25238
25239 # when you set need_version to no, make sure it does not cause -set_version
25240 # flags to be left without arguments
25241 need_version=unknown
25242
25243 case $host_os in
25244 aix3*)
25245   version_type=linux
25246   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25247   shlibpath_var=LIBPATH
25248
25249   # AIX 3 has no versioning support, so we append a major version to the name.
25250   soname_spec='${libname}${release}${shared_ext}$major'
25251   ;;
25252
25253 aix4* | aix5*)
25254   version_type=linux
25255   need_lib_prefix=no
25256   need_version=no
25257   hardcode_into_libs=yes
25258   if test "$host_cpu" = ia64; then
25259     # AIX 5 supports IA64
25260     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25261     shlibpath_var=LD_LIBRARY_PATH
25262   else
25263     # With GCC up to 2.95.x, collect2 would create an import file
25264     # for dependence libraries.  The import file would start with
25265     # the line `#! .'.  This would cause the generated library to
25266     # depend on `.', always an invalid library.  This was fixed in
25267     # development snapshots of GCC prior to 3.0.
25268     case $host_os in
25269       aix4 | aix4.[01] | aix4.[01].*)
25270       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25271            echo ' yes '
25272            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25273         :
25274       else
25275         can_build_shared=no
25276       fi
25277       ;;
25278     esac
25279     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25280     # soname into executable. Probably we can add versioning support to
25281     # collect2, so additional links can be useful in future.
25282     if test "$aix_use_runtimelinking" = yes; then
25283       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25284       # instead of lib<name>.a to let people know that these are not
25285       # typical AIX shared libraries.
25286       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25287     else
25288       # We preserve .a as extension for shared libraries through AIX4.2
25289       # and later when we are not doing run time linking.
25290       library_names_spec='${libname}${release}.a $libname.a'
25291       soname_spec='${libname}${release}${shared_ext}$major'
25292     fi
25293     shlibpath_var=LIBPATH
25294   fi
25295   ;;
25296
25297 amigaos*)
25298   library_names_spec='$libname.ixlibrary $libname.a'
25299   # Create ${libname}_ixlibrary.a entries in /sys/libs.
25300   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'
25301   ;;
25302
25303 beos*)
25304   library_names_spec='${libname}${shared_ext}'
25305   dynamic_linker="$host_os ld.so"
25306   shlibpath_var=LIBRARY_PATH
25307   ;;
25308
25309 bsdi[45]*)
25310   version_type=linux
25311   need_version=no
25312   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25313   soname_spec='${libname}${release}${shared_ext}$major'
25314   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25315   shlibpath_var=LD_LIBRARY_PATH
25316   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25317   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25318   # the default ld.so.conf also contains /usr/contrib/lib and
25319   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25320   # libtool to hard-code these into programs
25321   ;;
25322
25323 cygwin* | mingw* | pw32*)
25324   version_type=windows
25325   shrext_cmds=".dll"
25326   need_version=no
25327   need_lib_prefix=no
25328
25329   case $GCC,$host_os in
25330   yes,cygwin* | yes,mingw* | yes,pw32*)
25331     library_names_spec='$libname.dll.a'
25332     # DLL is installed to $(libdir)/../bin by postinstall_cmds
25333     postinstall_cmds='base_file=`basename \${file}`~
25334       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25335       dldir=$destdir/`dirname \$dlpath`~
25336       test -d \$dldir || mkdir -p \$dldir~
25337       $install_prog $dir/$dlname \$dldir/$dlname~
25338       chmod a+x \$dldir/$dlname'
25339     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25340       dlpath=$dir/\$dldll~
25341        $rm \$dlpath'
25342     shlibpath_overrides_runpath=yes
25343
25344     case $host_os in
25345     cygwin*)
25346       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25347       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25348       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25349       ;;
25350     mingw*)
25351       # MinGW DLLs use traditional 'lib' prefix
25352       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25353       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25354       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25355         # It is most probably a Windows format PATH printed by
25356         # mingw gcc, but we are running on Cygwin. Gcc prints its search
25357         # path with ; separators, and with drive letters. We can handle the
25358         # drive letters (cygwin fileutils understands them), so leave them,
25359         # especially as we might pass files found there to a mingw objdump,
25360         # which wouldn't understand a cygwinified path. Ahh.
25361         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25362       else
25363         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25364       fi
25365       ;;
25366     pw32*)
25367       # pw32 DLLs use 'pw' prefix rather than 'lib'
25368       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25369       ;;
25370     esac
25371     ;;
25372
25373   *)
25374     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25375     ;;
25376   esac
25377   dynamic_linker='Win32 ld.exe'
25378   # FIXME: first we should search . and the directory the executable is in
25379   shlibpath_var=PATH
25380   ;;
25381
25382 darwin* | rhapsody*)
25383   dynamic_linker="$host_os dyld"
25384   version_type=darwin
25385   need_lib_prefix=no
25386   need_version=no
25387   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25388   soname_spec='${libname}${release}${major}$shared_ext'
25389   shlibpath_overrides_runpath=yes
25390   shlibpath_var=DYLD_LIBRARY_PATH
25391   shrext_cmds='.dylib'
25392   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25393   if test "$GCC" = yes; then
25394     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"`
25395   else
25396     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25397   fi
25398   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25399   ;;
25400
25401 dgux*)
25402   version_type=linux
25403   need_lib_prefix=no
25404   need_version=no
25405   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25406   soname_spec='${libname}${release}${shared_ext}$major'
25407   shlibpath_var=LD_LIBRARY_PATH
25408   ;;
25409
25410 freebsd1*)
25411   dynamic_linker=no
25412   ;;
25413
25414 kfreebsd*-gnu)
25415   version_type=linux
25416   need_lib_prefix=no
25417   need_version=no
25418   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25419   soname_spec='${libname}${release}${shared_ext}$major'
25420   shlibpath_var=LD_LIBRARY_PATH
25421   shlibpath_overrides_runpath=no
25422   hardcode_into_libs=yes
25423   dynamic_linker='GNU ld.so'
25424   ;;
25425
25426 freebsd* | dragonfly*)
25427   # DragonFly does not have aout.  When/if they implement a new
25428   # versioning mechanism, adjust this.
25429   if test -x /usr/bin/objformat; then
25430     objformat=`/usr/bin/objformat`
25431   else
25432     case $host_os in
25433     freebsd[123]*) objformat=aout ;;
25434     *) objformat=elf ;;
25435     esac
25436   fi
25437   version_type=freebsd-$objformat
25438   case $version_type in
25439     freebsd-elf*)
25440       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25441       need_version=no
25442       need_lib_prefix=no
25443       ;;
25444     freebsd-*)
25445       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25446       need_version=yes
25447       ;;
25448   esac
25449   shlibpath_var=LD_LIBRARY_PATH
25450   case $host_os in
25451   freebsd2*)
25452     shlibpath_overrides_runpath=yes
25453     ;;
25454   freebsd3.[01]* | freebsdelf3.[01]*)
25455     shlibpath_overrides_runpath=yes
25456     hardcode_into_libs=yes
25457     ;;
25458   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25459   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25460     shlibpath_overrides_runpath=no
25461     hardcode_into_libs=yes
25462     ;;
25463   freebsd*) # from 4.6 on
25464     shlibpath_overrides_runpath=yes
25465     hardcode_into_libs=yes
25466     ;;
25467   esac
25468   ;;
25469
25470 gnu*)
25471   version_type=linux
25472   need_lib_prefix=no
25473   need_version=no
25474   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25475   soname_spec='${libname}${release}${shared_ext}$major'
25476   shlibpath_var=LD_LIBRARY_PATH
25477   hardcode_into_libs=yes
25478   ;;
25479
25480 hpux9* | hpux10* | hpux11*)
25481   # Give a soname corresponding to the major version so that dld.sl refuses to
25482   # link against other versions.
25483   version_type=sunos
25484   need_lib_prefix=no
25485   need_version=no
25486   case $host_cpu in
25487   ia64*)
25488     shrext_cmds='.so'
25489     hardcode_into_libs=yes
25490     dynamic_linker="$host_os dld.so"
25491     shlibpath_var=LD_LIBRARY_PATH
25492     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25493     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25494     soname_spec='${libname}${release}${shared_ext}$major'
25495     if test "X$HPUX_IA64_MODE" = X32; then
25496       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25497     else
25498       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25499     fi
25500     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25501     ;;
25502    hppa*64*)
25503      shrext_cmds='.sl'
25504      hardcode_into_libs=yes
25505      dynamic_linker="$host_os dld.sl"
25506      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25507      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25508      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25509      soname_spec='${libname}${release}${shared_ext}$major'
25510      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25511      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25512      ;;
25513    *)
25514     shrext_cmds='.sl'
25515     dynamic_linker="$host_os dld.sl"
25516     shlibpath_var=SHLIB_PATH
25517     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25518     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25519     soname_spec='${libname}${release}${shared_ext}$major'
25520     ;;
25521   esac
25522   # HP-UX runs *really* slowly unless shared libraries are mode 555.
25523   postinstall_cmds='chmod 555 $lib'
25524   ;;
25525
25526 interix3*)
25527   version_type=linux
25528   need_lib_prefix=no
25529   need_version=no
25530   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25531   soname_spec='${libname}${release}${shared_ext}$major'
25532   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25533   shlibpath_var=LD_LIBRARY_PATH
25534   shlibpath_overrides_runpath=no
25535   hardcode_into_libs=yes
25536   ;;
25537
25538 irix5* | irix6* | nonstopux*)
25539   case $host_os in
25540     nonstopux*) version_type=nonstopux ;;
25541     *)
25542         if test "$lt_cv_prog_gnu_ld" = yes; then
25543                 version_type=linux
25544         else
25545                 version_type=irix
25546         fi ;;
25547   esac
25548   need_lib_prefix=no
25549   need_version=no
25550   soname_spec='${libname}${release}${shared_ext}$major'
25551   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25552   case $host_os in
25553   irix5* | nonstopux*)
25554     libsuff= shlibsuff=
25555     ;;
25556   *)
25557     case $LD in # libtool.m4 will add one of these switches to LD
25558     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25559       libsuff= shlibsuff= libmagic=32-bit;;
25560     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25561       libsuff=32 shlibsuff=N32 libmagic=N32;;
25562     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25563       libsuff=64 shlibsuff=64 libmagic=64-bit;;
25564     *) libsuff= shlibsuff= libmagic=never-match;;
25565     esac
25566     ;;
25567   esac
25568   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25569   shlibpath_overrides_runpath=no
25570   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25571   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25572   hardcode_into_libs=yes
25573   ;;
25574
25575 # No shared lib support for Linux oldld, aout, or coff.
25576 linux*oldld* | linux*aout* | linux*coff*)
25577   dynamic_linker=no
25578   ;;
25579
25580 # This must be Linux ELF.
25581 linux*)
25582   version_type=linux
25583   need_lib_prefix=no
25584   need_version=no
25585   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25586   soname_spec='${libname}${release}${shared_ext}$major'
25587   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25588   shlibpath_var=LD_LIBRARY_PATH
25589   shlibpath_overrides_runpath=no
25590   # This implies no fast_install, which is unacceptable.
25591   # Some rework will be needed to allow for fast_install
25592   # before this can be enabled.
25593   hardcode_into_libs=yes
25594
25595   # Append ld.so.conf contents to the search path
25596   if test -f /etc/ld.so.conf; then
25597     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' ' '`
25598     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25599   fi
25600
25601   # We used to test for /lib/ld.so.1 and disable shared libraries on
25602   # powerpc, because MkLinux only supported shared libraries with the
25603   # GNU dynamic linker.  Since this was broken with cross compilers,
25604   # most powerpc-linux boxes support dynamic linking these days and
25605   # people can always --disable-shared, the test was removed, and we
25606   # assume the GNU/Linux dynamic linker is in use.
25607   dynamic_linker='GNU/Linux ld.so'
25608   ;;
25609
25610 knetbsd*-gnu)
25611   version_type=linux
25612   need_lib_prefix=no
25613   need_version=no
25614   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25615   soname_spec='${libname}${release}${shared_ext}$major'
25616   shlibpath_var=LD_LIBRARY_PATH
25617   shlibpath_overrides_runpath=no
25618   hardcode_into_libs=yes
25619   dynamic_linker='GNU ld.so'
25620   ;;
25621
25622 netbsd*)
25623   version_type=sunos
25624   need_lib_prefix=no
25625   need_version=no
25626   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25627     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25628     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25629     dynamic_linker='NetBSD (a.out) ld.so'
25630   else
25631     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25632     soname_spec='${libname}${release}${shared_ext}$major'
25633     dynamic_linker='NetBSD ld.elf_so'
25634   fi
25635   shlibpath_var=LD_LIBRARY_PATH
25636   shlibpath_overrides_runpath=yes
25637   hardcode_into_libs=yes
25638   ;;
25639
25640 newsos6)
25641   version_type=linux
25642   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25643   shlibpath_var=LD_LIBRARY_PATH
25644   shlibpath_overrides_runpath=yes
25645   ;;
25646
25647 nto-qnx*)
25648   version_type=linux
25649   need_lib_prefix=no
25650   need_version=no
25651   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25652   soname_spec='${libname}${release}${shared_ext}$major'
25653   shlibpath_var=LD_LIBRARY_PATH
25654   shlibpath_overrides_runpath=yes
25655   ;;
25656
25657 openbsd*)
25658   version_type=sunos
25659   sys_lib_dlsearch_path_spec="/usr/lib"
25660   need_lib_prefix=no
25661   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25662   case $host_os in
25663     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25664     *)                         need_version=no  ;;
25665   esac
25666   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25667   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25668   shlibpath_var=LD_LIBRARY_PATH
25669   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25670     case $host_os in
25671       openbsd2.[89] | openbsd2.[89].*)
25672         shlibpath_overrides_runpath=no
25673         ;;
25674       *)
25675         shlibpath_overrides_runpath=yes
25676         ;;
25677       esac
25678   else
25679     shlibpath_overrides_runpath=yes
25680   fi
25681   ;;
25682
25683 os2*)
25684   libname_spec='$name'
25685   shrext_cmds=".dll"
25686   need_lib_prefix=no
25687   library_names_spec='$libname${shared_ext} $libname.a'
25688   dynamic_linker='OS/2 ld.exe'
25689   shlibpath_var=LIBPATH
25690   ;;
25691
25692 osf3* | osf4* | osf5*)
25693   version_type=osf
25694   need_lib_prefix=no
25695   need_version=no
25696   soname_spec='${libname}${release}${shared_ext}$major'
25697   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25698   shlibpath_var=LD_LIBRARY_PATH
25699   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25700   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25701   ;;
25702
25703 solaris*)
25704   version_type=linux
25705   need_lib_prefix=no
25706   need_version=no
25707   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25708   soname_spec='${libname}${release}${shared_ext}$major'
25709   shlibpath_var=LD_LIBRARY_PATH
25710   shlibpath_overrides_runpath=yes
25711   hardcode_into_libs=yes
25712   # ldd complains unless libraries are executable
25713   postinstall_cmds='chmod +x $lib'
25714   ;;
25715
25716 sunos4*)
25717   version_type=sunos
25718   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25719   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25720   shlibpath_var=LD_LIBRARY_PATH
25721   shlibpath_overrides_runpath=yes
25722   if test "$with_gnu_ld" = yes; then
25723     need_lib_prefix=no
25724   fi
25725   need_version=yes
25726   ;;
25727
25728 sysv4 | sysv4.3*)
25729   version_type=linux
25730   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25731   soname_spec='${libname}${release}${shared_ext}$major'
25732   shlibpath_var=LD_LIBRARY_PATH
25733   case $host_vendor in
25734     sni)
25735       shlibpath_overrides_runpath=no
25736       need_lib_prefix=no
25737       export_dynamic_flag_spec='${wl}-Blargedynsym'
25738       runpath_var=LD_RUN_PATH
25739       ;;
25740     siemens)
25741       need_lib_prefix=no
25742       ;;
25743     motorola)
25744       need_lib_prefix=no
25745       need_version=no
25746       shlibpath_overrides_runpath=no
25747       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25748       ;;
25749   esac
25750   ;;
25751
25752 sysv4*MP*)
25753   if test -d /usr/nec ;then
25754     version_type=linux
25755     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25756     soname_spec='$libname${shared_ext}.$major'
25757     shlibpath_var=LD_LIBRARY_PATH
25758   fi
25759   ;;
25760
25761 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25762   version_type=freebsd-elf
25763   need_lib_prefix=no
25764   need_version=no
25765   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25766   soname_spec='${libname}${release}${shared_ext}$major'
25767   shlibpath_var=LD_LIBRARY_PATH
25768   hardcode_into_libs=yes
25769   if test "$with_gnu_ld" = yes; then
25770     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25771     shlibpath_overrides_runpath=no
25772   else
25773     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25774     shlibpath_overrides_runpath=yes
25775     case $host_os in
25776       sco3.2v5*)
25777         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25778         ;;
25779     esac
25780   fi
25781   sys_lib_dlsearch_path_spec='/usr/lib'
25782   ;;
25783
25784 uts4*)
25785   version_type=linux
25786   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25787   soname_spec='${libname}${release}${shared_ext}$major'
25788   shlibpath_var=LD_LIBRARY_PATH
25789   ;;
25790
25791 *)
25792   dynamic_linker=no
25793   ;;
25794 esac
25795 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25796 echo "${ECHO_T}$dynamic_linker" >&6; }
25797 test "$dynamic_linker" = no && can_build_shared=no
25798
25799 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25800 if test "$GCC" = yes; then
25801   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25802 fi
25803
25804 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25805 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
25806 hardcode_action_GCJ=
25807 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25808    test -n "$runpath_var_GCJ" || \
25809    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25810
25811   # We can hardcode non-existant directories.
25812   if test "$hardcode_direct_GCJ" != no &&
25813      # If the only mechanism to avoid hardcoding is shlibpath_var, we
25814      # have to relink, otherwise we might link with an installed library
25815      # when we should be linking with a yet-to-be-installed one
25816      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25817      test "$hardcode_minus_L_GCJ" != no; then
25818     # Linking always hardcodes the temporary library directory.
25819     hardcode_action_GCJ=relink
25820   else
25821     # We can link without hardcoding, and we can hardcode nonexisting dirs.
25822     hardcode_action_GCJ=immediate
25823   fi
25824 else
25825   # We cannot hardcode anything, or else we can only hardcode existing
25826   # directories.
25827   hardcode_action_GCJ=unsupported
25828 fi
25829 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25830 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
25831
25832 if test "$hardcode_action_GCJ" = relink; then
25833   # Fast installation is not supported
25834   enable_fast_install=no
25835 elif test "$shlibpath_overrides_runpath" = yes ||
25836      test "$enable_shared" = no; then
25837   # Fast installation is not necessary
25838   enable_fast_install=needless
25839 fi
25840
25841
25842 # The else clause should only fire when bootstrapping the
25843 # libtool distribution, otherwise you forgot to ship ltmain.sh
25844 # with your package, and you will get complaints that there are
25845 # no rules to generate ltmain.sh.
25846 if test -f "$ltmain"; then
25847   # See if we are running on zsh, and set the options which allow our commands through
25848   # without removal of \ escapes.
25849   if test -n "${ZSH_VERSION+set}" ; then
25850     setopt NO_GLOB_SUBST
25851   fi
25852   # Now quote all the things that may contain metacharacters while being
25853   # careful not to overquote the AC_SUBSTed values.  We take copies of the
25854   # variables and quote the copies for generation of the libtool script.
25855   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25856     SED SHELL STRIP \
25857     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25858     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25859     deplibs_check_method reload_flag reload_cmds need_locks \
25860     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25861     lt_cv_sys_global_symbol_to_c_name_address \
25862     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25863     old_postinstall_cmds old_postuninstall_cmds \
25864     compiler_GCJ \
25865     CC_GCJ \
25866     LD_GCJ \
25867     lt_prog_compiler_wl_GCJ \
25868     lt_prog_compiler_pic_GCJ \
25869     lt_prog_compiler_static_GCJ \
25870     lt_prog_compiler_no_builtin_flag_GCJ \
25871     export_dynamic_flag_spec_GCJ \
25872     thread_safe_flag_spec_GCJ \
25873     whole_archive_flag_spec_GCJ \
25874     enable_shared_with_static_runtimes_GCJ \
25875     old_archive_cmds_GCJ \
25876     old_archive_from_new_cmds_GCJ \
25877     predep_objects_GCJ \
25878     postdep_objects_GCJ \
25879     predeps_GCJ \
25880     postdeps_GCJ \
25881     compiler_lib_search_path_GCJ \
25882     archive_cmds_GCJ \
25883     archive_expsym_cmds_GCJ \
25884     postinstall_cmds_GCJ \
25885     postuninstall_cmds_GCJ \
25886     old_archive_from_expsyms_cmds_GCJ \
25887     allow_undefined_flag_GCJ \
25888     no_undefined_flag_GCJ \
25889     export_symbols_cmds_GCJ \
25890     hardcode_libdir_flag_spec_GCJ \
25891     hardcode_libdir_flag_spec_ld_GCJ \
25892     hardcode_libdir_separator_GCJ \
25893     hardcode_automatic_GCJ \
25894     module_cmds_GCJ \
25895     module_expsym_cmds_GCJ \
25896     lt_cv_prog_compiler_c_o_GCJ \
25897     exclude_expsyms_GCJ \
25898     include_expsyms_GCJ; do
25899
25900     case $var in
25901     old_archive_cmds_GCJ | \
25902     old_archive_from_new_cmds_GCJ | \
25903     archive_cmds_GCJ | \
25904     archive_expsym_cmds_GCJ | \
25905     module_cmds_GCJ | \
25906     module_expsym_cmds_GCJ | \
25907     old_archive_from_expsyms_cmds_GCJ | \
25908     export_symbols_cmds_GCJ | \
25909     extract_expsyms_cmds | reload_cmds | finish_cmds | \
25910     postinstall_cmds | postuninstall_cmds | \
25911     old_postinstall_cmds | old_postuninstall_cmds | \
25912     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25913       # Double-quote double-evaled strings.
25914       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25915       ;;
25916     *)
25917       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25918       ;;
25919     esac
25920   done
25921
25922   case $lt_echo in
25923   *'\$0 --fallback-echo"')
25924     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25925     ;;
25926   esac
25927
25928 cfgfile="$ofile"
25929
25930   cat <<__EOF__ >> "$cfgfile"
25931 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
25932
25933 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25934
25935 # Shell to use when invoking shell scripts.
25936 SHELL=$lt_SHELL
25937
25938 # Whether or not to build shared libraries.
25939 build_libtool_libs=$enable_shared
25940
25941 # Whether or not to build static libraries.
25942 build_old_libs=$enable_static
25943
25944 # Whether or not to add -lc for building shared libraries.
25945 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25946
25947 # Whether or not to disallow shared libs when runtime libs are static
25948 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25949
25950 # Whether or not to optimize for fast installation.
25951 fast_install=$enable_fast_install
25952
25953 # The host system.
25954 host_alias=$host_alias
25955 host=$host
25956 host_os=$host_os
25957
25958 # The build system.
25959 build_alias=$build_alias
25960 build=$build
25961 build_os=$build_os
25962
25963 # An echo program that does not interpret backslashes.
25964 echo=$lt_echo
25965
25966 # The archiver.
25967 AR=$lt_AR
25968 AR_FLAGS=$lt_AR_FLAGS
25969
25970 # A C compiler.
25971 LTCC=$lt_LTCC
25972
25973 # LTCC compiler flags.
25974 LTCFLAGS=$lt_LTCFLAGS
25975
25976 # A language-specific compiler.
25977 CC=$lt_compiler_GCJ
25978
25979 # Is the compiler the GNU C compiler?
25980 with_gcc=$GCC_GCJ
25981
25982 # An ERE matcher.
25983 EGREP=$lt_EGREP
25984
25985 # The linker used to build libraries.
25986 LD=$lt_LD_GCJ
25987
25988 # Whether we need hard or soft links.
25989 LN_S=$lt_LN_S
25990
25991 # A BSD-compatible nm program.
25992 NM=$lt_NM
25993
25994 # A symbol stripping program
25995 STRIP=$lt_STRIP
25996
25997 # Used to examine libraries when file_magic_cmd begins "file"
25998 MAGIC_CMD=$MAGIC_CMD
25999
26000 # Used on cygwin: DLL creation program.
26001 DLLTOOL="$DLLTOOL"
26002
26003 # Used on cygwin: object dumper.
26004 OBJDUMP="$OBJDUMP"
26005
26006 # Used on cygwin: assembler.
26007 AS="$AS"
26008
26009 # The name of the directory that contains temporary libtool files.
26010 objdir=$objdir
26011
26012 # How to create reloadable object files.
26013 reload_flag=$lt_reload_flag
26014 reload_cmds=$lt_reload_cmds
26015
26016 # How to pass a linker flag through the compiler.
26017 wl=$lt_lt_prog_compiler_wl_GCJ
26018
26019 # Object file suffix (normally "o").
26020 objext="$ac_objext"
26021
26022 # Old archive suffix (normally "a").
26023 libext="$libext"
26024
26025 # Shared library suffix (normally ".so").
26026 shrext_cmds='$shrext_cmds'
26027
26028 # Executable file suffix (normally "").
26029 exeext="$exeext"
26030
26031 # Additional compiler flags for building library objects.
26032 pic_flag=$lt_lt_prog_compiler_pic_GCJ
26033 pic_mode=$pic_mode
26034
26035 # What is the maximum length of a command?
26036 max_cmd_len=$lt_cv_sys_max_cmd_len
26037
26038 # Does compiler simultaneously support -c and -o options?
26039 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26040
26041 # Must we lock files when doing compilation?
26042 need_locks=$lt_need_locks
26043
26044 # Do we need the lib prefix for modules?
26045 need_lib_prefix=$need_lib_prefix
26046
26047 # Do we need a version for libraries?
26048 need_version=$need_version
26049
26050 # Whether dlopen is supported.
26051 dlopen_support=$enable_dlopen
26052
26053 # Whether dlopen of programs is supported.
26054 dlopen_self=$enable_dlopen_self
26055
26056 # Whether dlopen of statically linked programs is supported.
26057 dlopen_self_static=$enable_dlopen_self_static
26058
26059 # Compiler flag to prevent dynamic linking.
26060 link_static_flag=$lt_lt_prog_compiler_static_GCJ
26061
26062 # Compiler flag to turn off builtin functions.
26063 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26064
26065 # Compiler flag to allow reflexive dlopens.
26066 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26067
26068 # Compiler flag to generate shared objects directly from archives.
26069 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26070
26071 # Compiler flag to generate thread-safe objects.
26072 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26073
26074 # Library versioning type.
26075 version_type=$version_type
26076
26077 # Format of library name prefix.
26078 libname_spec=$lt_libname_spec
26079
26080 # List of archive names.  First name is the real one, the rest are links.
26081 # The last name is the one that the linker finds with -lNAME.
26082 library_names_spec=$lt_library_names_spec
26083
26084 # The coded name of the library, if different from the real name.
26085 soname_spec=$lt_soname_spec
26086
26087 # Commands used to build and install an old-style archive.
26088 RANLIB=$lt_RANLIB
26089 old_archive_cmds=$lt_old_archive_cmds_GCJ
26090 old_postinstall_cmds=$lt_old_postinstall_cmds
26091 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26092
26093 # Create an old-style archive from a shared archive.
26094 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26095
26096 # Create a temporary old-style archive to link instead of a shared archive.
26097 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26098
26099 # Commands used to build and install a shared archive.
26100 archive_cmds=$lt_archive_cmds_GCJ
26101 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26102 postinstall_cmds=$lt_postinstall_cmds
26103 postuninstall_cmds=$lt_postuninstall_cmds
26104
26105 # Commands used to build a loadable module (assumed same as above if empty)
26106 module_cmds=$lt_module_cmds_GCJ
26107 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26108
26109 # Commands to strip libraries.
26110 old_striplib=$lt_old_striplib
26111 striplib=$lt_striplib
26112
26113 # Dependencies to place before the objects being linked to create a
26114 # shared library.
26115 predep_objects=$lt_predep_objects_GCJ
26116
26117 # Dependencies to place after the objects being linked to create a
26118 # shared library.
26119 postdep_objects=$lt_postdep_objects_GCJ
26120
26121 # Dependencies to place before the objects being linked to create a
26122 # shared library.
26123 predeps=$lt_predeps_GCJ
26124
26125 # Dependencies to place after the objects being linked to create a
26126 # shared library.
26127 postdeps=$lt_postdeps_GCJ
26128
26129 # The library search path used internally by the compiler when linking
26130 # a shared library.
26131 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26132
26133 # Method to check whether dependent libraries are shared objects.
26134 deplibs_check_method=$lt_deplibs_check_method
26135
26136 # Command to use when deplibs_check_method == file_magic.
26137 file_magic_cmd=$lt_file_magic_cmd
26138
26139 # Flag that allows shared libraries with undefined symbols to be built.
26140 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26141
26142 # Flag that forces no undefined symbols.
26143 no_undefined_flag=$lt_no_undefined_flag_GCJ
26144
26145 # Commands used to finish a libtool library installation in a directory.
26146 finish_cmds=$lt_finish_cmds
26147
26148 # Same as above, but a single script fragment to be evaled but not shown.
26149 finish_eval=$lt_finish_eval
26150
26151 # Take the output of nm and produce a listing of raw symbols and C names.
26152 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26153
26154 # Transform the output of nm in a proper C declaration
26155 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26156
26157 # Transform the output of nm in a C name address pair
26158 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26159
26160 # This is the shared library runtime path variable.
26161 runpath_var=$runpath_var
26162
26163 # This is the shared library path variable.
26164 shlibpath_var=$shlibpath_var
26165
26166 # Is shlibpath searched before the hard-coded library search path?
26167 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26168
26169 # How to hardcode a shared library path into an executable.
26170 hardcode_action=$hardcode_action_GCJ
26171
26172 # Whether we should hardcode library paths into libraries.
26173 hardcode_into_libs=$hardcode_into_libs
26174
26175 # Flag to hardcode \$libdir into a binary during linking.
26176 # This must work even if \$libdir does not exist.
26177 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26178
26179 # If ld is used when linking, flag to hardcode \$libdir into
26180 # a binary during linking. This must work even if \$libdir does
26181 # not exist.
26182 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26183
26184 # Whether we need a single -rpath flag with a separated argument.
26185 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26186
26187 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26188 # resulting binary.
26189 hardcode_direct=$hardcode_direct_GCJ
26190
26191 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26192 # resulting binary.
26193 hardcode_minus_L=$hardcode_minus_L_GCJ
26194
26195 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26196 # the resulting binary.
26197 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26198
26199 # Set to yes if building a shared library automatically hardcodes DIR into the library
26200 # and all subsequent libraries and executables linked against it.
26201 hardcode_automatic=$hardcode_automatic_GCJ
26202
26203 # Variables whose values should be saved in libtool wrapper scripts and
26204 # restored at relink time.
26205 variables_saved_for_relink="$variables_saved_for_relink"
26206
26207 # Whether libtool must link a program against all its dependency libraries.
26208 link_all_deplibs=$link_all_deplibs_GCJ
26209
26210 # Compile-time system search path for libraries
26211 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26212
26213 # Run-time system search path for libraries
26214 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26215
26216 # Fix the shell variable \$srcfile for the compiler.
26217 fix_srcfile_path="$fix_srcfile_path_GCJ"
26218
26219 # Set to yes if exported symbols are required.
26220 always_export_symbols=$always_export_symbols_GCJ
26221
26222 # The commands to list exported symbols.
26223 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26224
26225 # The commands to extract the exported symbol list from a shared archive.
26226 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26227
26228 # Symbols that should not be listed in the preloaded symbols.
26229 exclude_expsyms=$lt_exclude_expsyms_GCJ
26230
26231 # Symbols that must always be exported.
26232 include_expsyms=$lt_include_expsyms_GCJ
26233
26234 # ### END LIBTOOL TAG CONFIG: $tagname
26235
26236 __EOF__
26237
26238
26239 else
26240   # If there is no Makefile yet, we rely on a make rule to execute
26241   # `config.status --recheck' to rerun these tests and create the
26242   # libtool script then.
26243   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26244   if test -f "$ltmain_in"; then
26245     test -f Makefile && make "$ltmain"
26246   fi
26247 fi
26248
26249
26250 ac_ext=c
26251 ac_cpp='$CPP $CPPFLAGS'
26252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26255
26256 CC="$lt_save_CC"
26257
26258         else
26259           tagname=""
26260         fi
26261         ;;
26262
26263       RC)
26264         ac_ext=c
26265 ac_cpp='$CPP $CPPFLAGS'
26266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26269
26270
26271 # Source file extension for RC test sources.
26272 ac_ext=rc
26273
26274 # Object file extension for compiled RC test sources.
26275 objext=o
26276 objext_RC=$objext
26277
26278 # Code to be used in simple compile tests
26279 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26280
26281 # Code to be used in simple link tests
26282 lt_simple_link_test_code="$lt_simple_compile_test_code"
26283
26284 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26285
26286 # If no C compiler was specified, use CC.
26287 LTCC=${LTCC-"$CC"}
26288
26289 # If no C compiler flags were specified, use CFLAGS.
26290 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26291
26292 # Allow CC to be a program name with arguments.
26293 compiler=$CC
26294
26295
26296 # save warnings/boilerplate of simple test code
26297 ac_outfile=conftest.$ac_objext
26298 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26299 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26300 _lt_compiler_boilerplate=`cat conftest.err`
26301 $rm conftest*
26302
26303 ac_outfile=conftest.$ac_objext
26304 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26305 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26306 _lt_linker_boilerplate=`cat conftest.err`
26307 $rm conftest*
26308
26309
26310 # Allow CC to be a program name with arguments.
26311 lt_save_CC="$CC"
26312 CC=${RC-"windres"}
26313 compiler=$CC
26314 compiler_RC=$CC
26315 for cc_temp in $compiler""; do
26316   case $cc_temp in
26317     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26318     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26319     \-*) ;;
26320     *) break;;
26321   esac
26322 done
26323 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26324
26325 lt_cv_prog_compiler_c_o_RC=yes
26326
26327 # The else clause should only fire when bootstrapping the
26328 # libtool distribution, otherwise you forgot to ship ltmain.sh
26329 # with your package, and you will get complaints that there are
26330 # no rules to generate ltmain.sh.
26331 if test -f "$ltmain"; then
26332   # See if we are running on zsh, and set the options which allow our commands through
26333   # without removal of \ escapes.
26334   if test -n "${ZSH_VERSION+set}" ; then
26335     setopt NO_GLOB_SUBST
26336   fi
26337   # Now quote all the things that may contain metacharacters while being
26338   # careful not to overquote the AC_SUBSTed values.  We take copies of the
26339   # variables and quote the copies for generation of the libtool script.
26340   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26341     SED SHELL STRIP \
26342     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26343     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26344     deplibs_check_method reload_flag reload_cmds need_locks \
26345     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26346     lt_cv_sys_global_symbol_to_c_name_address \
26347     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26348     old_postinstall_cmds old_postuninstall_cmds \
26349     compiler_RC \
26350     CC_RC \
26351     LD_RC \
26352     lt_prog_compiler_wl_RC \
26353     lt_prog_compiler_pic_RC \
26354     lt_prog_compiler_static_RC \
26355     lt_prog_compiler_no_builtin_flag_RC \
26356     export_dynamic_flag_spec_RC \
26357     thread_safe_flag_spec_RC \
26358     whole_archive_flag_spec_RC \
26359     enable_shared_with_static_runtimes_RC \
26360     old_archive_cmds_RC \
26361     old_archive_from_new_cmds_RC \
26362     predep_objects_RC \
26363     postdep_objects_RC \
26364     predeps_RC \
26365     postdeps_RC \
26366     compiler_lib_search_path_RC \
26367     archive_cmds_RC \
26368     archive_expsym_cmds_RC \
26369     postinstall_cmds_RC \
26370     postuninstall_cmds_RC \
26371     old_archive_from_expsyms_cmds_RC \
26372     allow_undefined_flag_RC \
26373     no_undefined_flag_RC \
26374     export_symbols_cmds_RC \
26375     hardcode_libdir_flag_spec_RC \
26376     hardcode_libdir_flag_spec_ld_RC \
26377     hardcode_libdir_separator_RC \
26378     hardcode_automatic_RC \
26379     module_cmds_RC \
26380     module_expsym_cmds_RC \
26381     lt_cv_prog_compiler_c_o_RC \
26382     exclude_expsyms_RC \
26383     include_expsyms_RC; do
26384
26385     case $var in
26386     old_archive_cmds_RC | \
26387     old_archive_from_new_cmds_RC | \
26388     archive_cmds_RC | \
26389     archive_expsym_cmds_RC | \
26390     module_cmds_RC | \
26391     module_expsym_cmds_RC | \
26392     old_archive_from_expsyms_cmds_RC | \
26393     export_symbols_cmds_RC | \
26394     extract_expsyms_cmds | reload_cmds | finish_cmds | \
26395     postinstall_cmds | postuninstall_cmds | \
26396     old_postinstall_cmds | old_postuninstall_cmds | \
26397     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26398       # Double-quote double-evaled strings.
26399       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26400       ;;
26401     *)
26402       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26403       ;;
26404     esac
26405   done
26406
26407   case $lt_echo in
26408   *'\$0 --fallback-echo"')
26409     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26410     ;;
26411   esac
26412
26413 cfgfile="$ofile"
26414
26415   cat <<__EOF__ >> "$cfgfile"
26416 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26417
26418 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26419
26420 # Shell to use when invoking shell scripts.
26421 SHELL=$lt_SHELL
26422
26423 # Whether or not to build shared libraries.
26424 build_libtool_libs=$enable_shared
26425
26426 # Whether or not to build static libraries.
26427 build_old_libs=$enable_static
26428
26429 # Whether or not to add -lc for building shared libraries.
26430 build_libtool_need_lc=$archive_cmds_need_lc_RC
26431
26432 # Whether or not to disallow shared libs when runtime libs are static
26433 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26434
26435 # Whether or not to optimize for fast installation.
26436 fast_install=$enable_fast_install
26437
26438 # The host system.
26439 host_alias=$host_alias
26440 host=$host
26441 host_os=$host_os
26442
26443 # The build system.
26444 build_alias=$build_alias
26445 build=$build
26446 build_os=$build_os
26447
26448 # An echo program that does not interpret backslashes.
26449 echo=$lt_echo
26450
26451 # The archiver.
26452 AR=$lt_AR
26453 AR_FLAGS=$lt_AR_FLAGS
26454
26455 # A C compiler.
26456 LTCC=$lt_LTCC
26457
26458 # LTCC compiler flags.
26459 LTCFLAGS=$lt_LTCFLAGS
26460
26461 # A language-specific compiler.
26462 CC=$lt_compiler_RC
26463
26464 # Is the compiler the GNU C compiler?
26465 with_gcc=$GCC_RC
26466
26467 # An ERE matcher.
26468 EGREP=$lt_EGREP
26469
26470 # The linker used to build libraries.
26471 LD=$lt_LD_RC
26472
26473 # Whether we need hard or soft links.
26474 LN_S=$lt_LN_S
26475
26476 # A BSD-compatible nm program.
26477 NM=$lt_NM
26478
26479 # A symbol stripping program
26480 STRIP=$lt_STRIP
26481
26482 # Used to examine libraries when file_magic_cmd begins "file"
26483 MAGIC_CMD=$MAGIC_CMD
26484
26485 # Used on cygwin: DLL creation program.
26486 DLLTOOL="$DLLTOOL"
26487
26488 # Used on cygwin: object dumper.
26489 OBJDUMP="$OBJDUMP"
26490
26491 # Used on cygwin: assembler.
26492 AS="$AS"
26493
26494 # The name of the directory that contains temporary libtool files.
26495 objdir=$objdir
26496
26497 # How to create reloadable object files.
26498 reload_flag=$lt_reload_flag
26499 reload_cmds=$lt_reload_cmds
26500
26501 # How to pass a linker flag through the compiler.
26502 wl=$lt_lt_prog_compiler_wl_RC
26503
26504 # Object file suffix (normally "o").
26505 objext="$ac_objext"
26506
26507 # Old archive suffix (normally "a").
26508 libext="$libext"
26509
26510 # Shared library suffix (normally ".so").
26511 shrext_cmds='$shrext_cmds'
26512
26513 # Executable file suffix (normally "").
26514 exeext="$exeext"
26515
26516 # Additional compiler flags for building library objects.
26517 pic_flag=$lt_lt_prog_compiler_pic_RC
26518 pic_mode=$pic_mode
26519
26520 # What is the maximum length of a command?
26521 max_cmd_len=$lt_cv_sys_max_cmd_len
26522
26523 # Does compiler simultaneously support -c and -o options?
26524 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26525
26526 # Must we lock files when doing compilation?
26527 need_locks=$lt_need_locks
26528
26529 # Do we need the lib prefix for modules?
26530 need_lib_prefix=$need_lib_prefix
26531
26532 # Do we need a version for libraries?
26533 need_version=$need_version
26534
26535 # Whether dlopen is supported.
26536 dlopen_support=$enable_dlopen
26537
26538 # Whether dlopen of programs is supported.
26539 dlopen_self=$enable_dlopen_self
26540
26541 # Whether dlopen of statically linked programs is supported.
26542 dlopen_self_static=$enable_dlopen_self_static
26543
26544 # Compiler flag to prevent dynamic linking.
26545 link_static_flag=$lt_lt_prog_compiler_static_RC
26546
26547 # Compiler flag to turn off builtin functions.
26548 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26549
26550 # Compiler flag to allow reflexive dlopens.
26551 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26552
26553 # Compiler flag to generate shared objects directly from archives.
26554 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26555
26556 # Compiler flag to generate thread-safe objects.
26557 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26558
26559 # Library versioning type.
26560 version_type=$version_type
26561
26562 # Format of library name prefix.
26563 libname_spec=$lt_libname_spec
26564
26565 # List of archive names.  First name is the real one, the rest are links.
26566 # The last name is the one that the linker finds with -lNAME.
26567 library_names_spec=$lt_library_names_spec
26568
26569 # The coded name of the library, if different from the real name.
26570 soname_spec=$lt_soname_spec
26571
26572 # Commands used to build and install an old-style archive.
26573 RANLIB=$lt_RANLIB
26574 old_archive_cmds=$lt_old_archive_cmds_RC
26575 old_postinstall_cmds=$lt_old_postinstall_cmds
26576 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26577
26578 # Create an old-style archive from a shared archive.
26579 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26580
26581 # Create a temporary old-style archive to link instead of a shared archive.
26582 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26583
26584 # Commands used to build and install a shared archive.
26585 archive_cmds=$lt_archive_cmds_RC
26586 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26587 postinstall_cmds=$lt_postinstall_cmds
26588 postuninstall_cmds=$lt_postuninstall_cmds
26589
26590 # Commands used to build a loadable module (assumed same as above if empty)
26591 module_cmds=$lt_module_cmds_RC
26592 module_expsym_cmds=$lt_module_expsym_cmds_RC
26593
26594 # Commands to strip libraries.
26595 old_striplib=$lt_old_striplib
26596 striplib=$lt_striplib
26597
26598 # Dependencies to place before the objects being linked to create a
26599 # shared library.
26600 predep_objects=$lt_predep_objects_RC
26601
26602 # Dependencies to place after the objects being linked to create a
26603 # shared library.
26604 postdep_objects=$lt_postdep_objects_RC
26605
26606 # Dependencies to place before the objects being linked to create a
26607 # shared library.
26608 predeps=$lt_predeps_RC
26609
26610 # Dependencies to place after the objects being linked to create a
26611 # shared library.
26612 postdeps=$lt_postdeps_RC
26613
26614 # The library search path used internally by the compiler when linking
26615 # a shared library.
26616 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26617
26618 # Method to check whether dependent libraries are shared objects.
26619 deplibs_check_method=$lt_deplibs_check_method
26620
26621 # Command to use when deplibs_check_method == file_magic.
26622 file_magic_cmd=$lt_file_magic_cmd
26623
26624 # Flag that allows shared libraries with undefined symbols to be built.
26625 allow_undefined_flag=$lt_allow_undefined_flag_RC
26626
26627 # Flag that forces no undefined symbols.
26628 no_undefined_flag=$lt_no_undefined_flag_RC
26629
26630 # Commands used to finish a libtool library installation in a directory.
26631 finish_cmds=$lt_finish_cmds
26632
26633 # Same as above, but a single script fragment to be evaled but not shown.
26634 finish_eval=$lt_finish_eval
26635
26636 # Take the output of nm and produce a listing of raw symbols and C names.
26637 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26638
26639 # Transform the output of nm in a proper C declaration
26640 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26641
26642 # Transform the output of nm in a C name address pair
26643 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26644
26645 # This is the shared library runtime path variable.
26646 runpath_var=$runpath_var
26647
26648 # This is the shared library path variable.
26649 shlibpath_var=$shlibpath_var
26650
26651 # Is shlibpath searched before the hard-coded library search path?
26652 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26653
26654 # How to hardcode a shared library path into an executable.
26655 hardcode_action=$hardcode_action_RC
26656
26657 # Whether we should hardcode library paths into libraries.
26658 hardcode_into_libs=$hardcode_into_libs
26659
26660 # Flag to hardcode \$libdir into a binary during linking.
26661 # This must work even if \$libdir does not exist.
26662 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26663
26664 # If ld is used when linking, flag to hardcode \$libdir into
26665 # a binary during linking. This must work even if \$libdir does
26666 # not exist.
26667 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26668
26669 # Whether we need a single -rpath flag with a separated argument.
26670 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26671
26672 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26673 # resulting binary.
26674 hardcode_direct=$hardcode_direct_RC
26675
26676 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26677 # resulting binary.
26678 hardcode_minus_L=$hardcode_minus_L_RC
26679
26680 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26681 # the resulting binary.
26682 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26683
26684 # Set to yes if building a shared library automatically hardcodes DIR into the library
26685 # and all subsequent libraries and executables linked against it.
26686 hardcode_automatic=$hardcode_automatic_RC
26687
26688 # Variables whose values should be saved in libtool wrapper scripts and
26689 # restored at relink time.
26690 variables_saved_for_relink="$variables_saved_for_relink"
26691
26692 # Whether libtool must link a program against all its dependency libraries.
26693 link_all_deplibs=$link_all_deplibs_RC
26694
26695 # Compile-time system search path for libraries
26696 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26697
26698 # Run-time system search path for libraries
26699 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26700
26701 # Fix the shell variable \$srcfile for the compiler.
26702 fix_srcfile_path="$fix_srcfile_path_RC"
26703
26704 # Set to yes if exported symbols are required.
26705 always_export_symbols=$always_export_symbols_RC
26706
26707 # The commands to list exported symbols.
26708 export_symbols_cmds=$lt_export_symbols_cmds_RC
26709
26710 # The commands to extract the exported symbol list from a shared archive.
26711 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26712
26713 # Symbols that should not be listed in the preloaded symbols.
26714 exclude_expsyms=$lt_exclude_expsyms_RC
26715
26716 # Symbols that must always be exported.
26717 include_expsyms=$lt_include_expsyms_RC
26718
26719 # ### END LIBTOOL TAG CONFIG: $tagname
26720
26721 __EOF__
26722
26723
26724 else
26725   # If there is no Makefile yet, we rely on a make rule to execute
26726   # `config.status --recheck' to rerun these tests and create the
26727   # libtool script then.
26728   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26729   if test -f "$ltmain_in"; then
26730     test -f Makefile && make "$ltmain"
26731   fi
26732 fi
26733
26734
26735 ac_ext=c
26736 ac_cpp='$CPP $CPPFLAGS'
26737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26740
26741 CC="$lt_save_CC"
26742
26743         ;;
26744
26745       *)
26746         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26747 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26748    { (exit 1); exit 1; }; }
26749         ;;
26750       esac
26751
26752       # Append the new tag name to the list of available tags.
26753       if test -n "$tagname" ; then
26754       available_tags="$available_tags $tagname"
26755     fi
26756     fi
26757   done
26758   IFS="$lt_save_ifs"
26759
26760   # Now substitute the updated list of available tags.
26761   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26762     mv "${ofile}T" "$ofile"
26763     chmod +x "$ofile"
26764   else
26765     rm -f "${ofile}T"
26766     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26767 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26768    { (exit 1); exit 1; }; }
26769   fi
26770 fi
26771
26772
26773
26774 # This can be used to rebuild libtool when needed
26775 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26776
26777 # Always use our own libtool.
26778 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
26779
26780 # Prevent multiple expansion
26781
26782
26783
26784
26785
26786
26787
26788
26789
26790
26791
26792
26793
26794
26795
26796
26797
26798
26799
26800
26801
26802 if test "$lt_cv_dlopen_self" = "yes" ; then
26803
26804 cat >>confdefs.h <<\_ACEOF
26805 #define CAN_DLOPEN_SELF 1
26806 _ACEOF
26807
26808 fi
26809
26810 if test "$WITH_LLVMGCCDIR" = "default" ; then
26811   LLVMGCC="llvm-gcc${EXEEXT}"
26812   LLVMGXX="llvm-g++${EXEEXT}"
26813   # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26814 set dummy $LLVMGCC; ac_word=$2
26815 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26817 if test "${ac_cv_path_LLVMGCC+set}" = set; then
26818   echo $ECHO_N "(cached) $ECHO_C" >&6
26819 else
26820   case $LLVMGCC in
26821   [\\/]* | ?:[\\/]*)
26822   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26823   ;;
26824   *)
26825   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26826 for as_dir in $PATH
26827 do
26828   IFS=$as_save_IFS
26829   test -z "$as_dir" && as_dir=.
26830   for ac_exec_ext in '' $ac_executable_extensions; do
26831   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26832     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26833     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26834     break 2
26835   fi
26836 done
26837 done
26838 IFS=$as_save_IFS
26839
26840   ;;
26841 esac
26842 fi
26843 LLVMGCC=$ac_cv_path_LLVMGCC
26844 if test -n "$LLVMGCC"; then
26845   { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26846 echo "${ECHO_T}$LLVMGCC" >&6; }
26847 else
26848   { echo "$as_me:$LINENO: result: no" >&5
26849 echo "${ECHO_T}no" >&6; }
26850 fi
26851
26852
26853   # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26854 set dummy $LLVMGXX; ac_word=$2
26855 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26857 if test "${ac_cv_path_LLVMGXX+set}" = set; then
26858   echo $ECHO_N "(cached) $ECHO_C" >&6
26859 else
26860   case $LLVMGXX in
26861   [\\/]* | ?:[\\/]*)
26862   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26863   ;;
26864   *)
26865   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26866 for as_dir in $PATH
26867 do
26868   IFS=$as_save_IFS
26869   test -z "$as_dir" && as_dir=.
26870   for ac_exec_ext in '' $ac_executable_extensions; do
26871   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26872     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26873     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26874     break 2
26875   fi
26876 done
26877 done
26878 IFS=$as_save_IFS
26879
26880   ;;
26881 esac
26882 fi
26883 LLVMGXX=$ac_cv_path_LLVMGXX
26884 if test -n "$LLVMGXX"; then
26885   { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26886 echo "${ECHO_T}$LLVMGXX" >&6; }
26887 else
26888   { echo "$as_me:$LINENO: result: no" >&5
26889 echo "${ECHO_T}no" >&6; }
26890 fi
26891
26892
26893 else
26894   if test -z "$LLVMGCC"; then
26895     LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26896   fi
26897   if test -z "$LLVMGXX"; then
26898     LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
26899   fi
26900   LLVMGCC=$LLVMGCC
26901
26902   LLVMGXX=$LLVMGXX
26903
26904 fi
26905
26906 { echo "$as_me:$LINENO: checking tool compatibility" >&5
26907 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
26908
26909 ICC=no
26910 IXX=no
26911 case $CC in
26912   icc*|icpc*)
26913     ICC=yes
26914     IXX=yes
26915     ;;
26916    *)
26917     ;;
26918 esac
26919
26920 if test "$GCC" != "yes" && test "$ICC" != "yes"
26921 then
26922   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26923 echo "$as_me: error: gcc|icc required but not found" >&2;}
26924    { (exit 1); exit 1; }; }
26925 fi
26926
26927 if test "$GXX" != "yes" && test "$IXX" != "yes"
26928 then
26929   { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
26930 echo "$as_me: error: g++|icc required but not found" >&2;}
26931    { (exit 1); exit 1; }; }
26932 fi
26933
26934 if test "$GCC" = "yes"
26935 then
26936   cat >conftest.$ac_ext <<_ACEOF
26937 #if !defined(__GNUC__) || __GNUC__ < 3
26938 #error Unsupported GCC version
26939 #endif
26940
26941 _ACEOF
26942 rm -f conftest.$ac_objext
26943 if { (ac_try="$ac_compile"
26944 case "(($ac_try" in
26945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26946   *) ac_try_echo=$ac_try;;
26947 esac
26948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26949   (eval "$ac_compile") 2>conftest.er1
26950   ac_status=$?
26951   grep -v '^ *+' conftest.er1 >conftest.err
26952   rm -f conftest.er1
26953   cat conftest.err >&5
26954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26955   (exit $ac_status); } &&
26956          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26957   { (case "(($ac_try" in
26958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26959   *) ac_try_echo=$ac_try;;
26960 esac
26961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26962   (eval "$ac_try") 2>&5
26963   ac_status=$?
26964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26965   (exit $ac_status); }; } &&
26966          { ac_try='test -s conftest.$ac_objext'
26967   { (case "(($ac_try" in
26968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26969   *) ac_try_echo=$ac_try;;
26970 esac
26971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26972   (eval "$ac_try") 2>&5
26973   ac_status=$?
26974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26975   (exit $ac_status); }; }; then
26976   :
26977 else
26978   echo "$as_me: failed program was:" >&5
26979 sed 's/^/| /' conftest.$ac_ext >&5
26980
26981         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
26982 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
26983    { (exit 1); exit 1; }; }
26984 fi
26985
26986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26987 fi
26988
26989 if test -z "$llvm_cv_gnu_make_command"
26990 then
26991   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
26992 echo "$as_me: error: GNU Make required but not found" >&2;}
26993    { (exit 1); exit 1; }; }
26994 fi
26995
26996 { echo "$as_me:$LINENO: result: ok" >&5
26997 echo "${ECHO_T}ok" >&6; }
26998
26999
27000
27001 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
27002 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
27003 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
27004   echo $ECHO_N "(cached) $ECHO_C" >&6
27005 else
27006   ac_check_lib_save_LIBS=$LIBS
27007 LIBS="-lelf  $LIBS"
27008 cat >conftest.$ac_ext <<_ACEOF
27009 /* confdefs.h.  */
27010 _ACEOF
27011 cat confdefs.h >>conftest.$ac_ext
27012 cat >>conftest.$ac_ext <<_ACEOF
27013 /* end confdefs.h.  */
27014
27015 /* Override any GCC internal prototype to avoid an error.
27016    Use char because int might match the return type of a GCC
27017    builtin and then its argument prototype would still apply.  */
27018 #ifdef __cplusplus
27019 extern "C"
27020 #endif
27021 char elf_begin ();
27022 int
27023 main ()
27024 {
27025 return elf_begin ();
27026   ;
27027   return 0;
27028 }
27029 _ACEOF
27030 rm -f conftest.$ac_objext conftest$ac_exeext
27031 if { (ac_try="$ac_link"
27032 case "(($ac_try" in
27033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27034   *) ac_try_echo=$ac_try;;
27035 esac
27036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27037   (eval "$ac_link") 2>conftest.er1
27038   ac_status=$?
27039   grep -v '^ *+' conftest.er1 >conftest.err
27040   rm -f conftest.er1
27041   cat conftest.err >&5
27042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27043   (exit $ac_status); } &&
27044          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27045   { (case "(($ac_try" in
27046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27047   *) ac_try_echo=$ac_try;;
27048 esac
27049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27050   (eval "$ac_try") 2>&5
27051   ac_status=$?
27052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27053   (exit $ac_status); }; } &&
27054          { ac_try='test -s conftest$ac_exeext'
27055   { (case "(($ac_try" in
27056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27057   *) ac_try_echo=$ac_try;;
27058 esac
27059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27060   (eval "$ac_try") 2>&5
27061   ac_status=$?
27062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27063   (exit $ac_status); }; }; then
27064   ac_cv_lib_elf_elf_begin=yes
27065 else
27066   echo "$as_me: failed program was:" >&5
27067 sed 's/^/| /' conftest.$ac_ext >&5
27068
27069         ac_cv_lib_elf_elf_begin=no
27070 fi
27071
27072 rm -f core conftest.err conftest.$ac_objext \
27073       conftest$ac_exeext conftest.$ac_ext
27074 LIBS=$ac_check_lib_save_LIBS
27075 fi
27076 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
27077 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
27078 if test $ac_cv_lib_elf_elf_begin = yes; then
27079   cat >>confdefs.h <<_ACEOF
27080 #define HAVE_LIBELF 1
27081 _ACEOF
27082
27083   LIBS="-lelf $LIBS"
27084
27085 fi
27086
27087
27088 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
27089 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
27090 if test "${ac_cv_lib_m_sin+set}" = set; then
27091   echo $ECHO_N "(cached) $ECHO_C" >&6
27092 else
27093   ac_check_lib_save_LIBS=$LIBS
27094 LIBS="-lm  $LIBS"
27095 cat >conftest.$ac_ext <<_ACEOF
27096 /* confdefs.h.  */
27097 _ACEOF
27098 cat confdefs.h >>conftest.$ac_ext
27099 cat >>conftest.$ac_ext <<_ACEOF
27100 /* end confdefs.h.  */
27101
27102 /* Override any GCC internal prototype to avoid an error.
27103    Use char because int might match the return type of a GCC
27104    builtin and then its argument prototype would still apply.  */
27105 #ifdef __cplusplus
27106 extern "C"
27107 #endif
27108 char sin ();
27109 int
27110 main ()
27111 {
27112 return sin ();
27113   ;
27114   return 0;
27115 }
27116 _ACEOF
27117 rm -f conftest.$ac_objext conftest$ac_exeext
27118 if { (ac_try="$ac_link"
27119 case "(($ac_try" in
27120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27121   *) ac_try_echo=$ac_try;;
27122 esac
27123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27124   (eval "$ac_link") 2>conftest.er1
27125   ac_status=$?
27126   grep -v '^ *+' conftest.er1 >conftest.err
27127   rm -f conftest.er1
27128   cat conftest.err >&5
27129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27130   (exit $ac_status); } &&
27131          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27132   { (case "(($ac_try" in
27133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27134   *) ac_try_echo=$ac_try;;
27135 esac
27136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27137   (eval "$ac_try") 2>&5
27138   ac_status=$?
27139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27140   (exit $ac_status); }; } &&
27141          { ac_try='test -s conftest$ac_exeext'
27142   { (case "(($ac_try" in
27143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27144   *) ac_try_echo=$ac_try;;
27145 esac
27146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27147   (eval "$ac_try") 2>&5
27148   ac_status=$?
27149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27150   (exit $ac_status); }; }; then
27151   ac_cv_lib_m_sin=yes
27152 else
27153   echo "$as_me: failed program was:" >&5
27154 sed 's/^/| /' conftest.$ac_ext >&5
27155
27156         ac_cv_lib_m_sin=no
27157 fi
27158
27159 rm -f core conftest.err conftest.$ac_objext \
27160       conftest$ac_exeext conftest.$ac_ext
27161 LIBS=$ac_check_lib_save_LIBS
27162 fi
27163 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27164 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27165 if test $ac_cv_lib_m_sin = yes; then
27166   cat >>confdefs.h <<_ACEOF
27167 #define HAVE_LIBM 1
27168 _ACEOF
27169
27170   LIBS="-lm $LIBS"
27171
27172 fi
27173
27174 if test "$llvm_cv_os_type" = "MingW" ; then
27175
27176 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27177 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27178 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27179   echo $ECHO_N "(cached) $ECHO_C" >&6
27180 else
27181   ac_check_lib_save_LIBS=$LIBS
27182 LIBS="-limagehlp  $LIBS"
27183 cat >conftest.$ac_ext <<_ACEOF
27184 /* confdefs.h.  */
27185 _ACEOF
27186 cat confdefs.h >>conftest.$ac_ext
27187 cat >>conftest.$ac_ext <<_ACEOF
27188 /* end confdefs.h.  */
27189
27190
27191 int
27192 main ()
27193 {
27194 return main ();
27195   ;
27196   return 0;
27197 }
27198 _ACEOF
27199 rm -f conftest.$ac_objext conftest$ac_exeext
27200 if { (ac_try="$ac_link"
27201 case "(($ac_try" in
27202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27203   *) ac_try_echo=$ac_try;;
27204 esac
27205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27206   (eval "$ac_link") 2>conftest.er1
27207   ac_status=$?
27208   grep -v '^ *+' conftest.er1 >conftest.err
27209   rm -f conftest.er1
27210   cat conftest.err >&5
27211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27212   (exit $ac_status); } &&
27213          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27214   { (case "(($ac_try" in
27215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27216   *) ac_try_echo=$ac_try;;
27217 esac
27218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27219   (eval "$ac_try") 2>&5
27220   ac_status=$?
27221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27222   (exit $ac_status); }; } &&
27223          { ac_try='test -s conftest$ac_exeext'
27224   { (case "(($ac_try" in
27225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27226   *) ac_try_echo=$ac_try;;
27227 esac
27228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27229   (eval "$ac_try") 2>&5
27230   ac_status=$?
27231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27232   (exit $ac_status); }; }; then
27233   ac_cv_lib_imagehlp_main=yes
27234 else
27235   echo "$as_me: failed program was:" >&5
27236 sed 's/^/| /' conftest.$ac_ext >&5
27237
27238         ac_cv_lib_imagehlp_main=no
27239 fi
27240
27241 rm -f core conftest.err conftest.$ac_objext \
27242       conftest$ac_exeext conftest.$ac_ext
27243 LIBS=$ac_check_lib_save_LIBS
27244 fi
27245 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27246 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27247 if test $ac_cv_lib_imagehlp_main = yes; then
27248   cat >>confdefs.h <<_ACEOF
27249 #define HAVE_LIBIMAGEHLP 1
27250 _ACEOF
27251
27252   LIBS="-limagehlp $LIBS"
27253
27254 fi
27255
27256
27257 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27258 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27259 if test "${ac_cv_lib_psapi_main+set}" = set; then
27260   echo $ECHO_N "(cached) $ECHO_C" >&6
27261 else
27262   ac_check_lib_save_LIBS=$LIBS
27263 LIBS="-lpsapi  $LIBS"
27264 cat >conftest.$ac_ext <<_ACEOF
27265 /* confdefs.h.  */
27266 _ACEOF
27267 cat confdefs.h >>conftest.$ac_ext
27268 cat >>conftest.$ac_ext <<_ACEOF
27269 /* end confdefs.h.  */
27270
27271
27272 int
27273 main ()
27274 {
27275 return main ();
27276   ;
27277   return 0;
27278 }
27279 _ACEOF
27280 rm -f conftest.$ac_objext conftest$ac_exeext
27281 if { (ac_try="$ac_link"
27282 case "(($ac_try" in
27283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27284   *) ac_try_echo=$ac_try;;
27285 esac
27286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27287   (eval "$ac_link") 2>conftest.er1
27288   ac_status=$?
27289   grep -v '^ *+' conftest.er1 >conftest.err
27290   rm -f conftest.er1
27291   cat conftest.err >&5
27292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27293   (exit $ac_status); } &&
27294          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27295   { (case "(($ac_try" in
27296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27297   *) ac_try_echo=$ac_try;;
27298 esac
27299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27300   (eval "$ac_try") 2>&5
27301   ac_status=$?
27302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27303   (exit $ac_status); }; } &&
27304          { ac_try='test -s conftest$ac_exeext'
27305   { (case "(($ac_try" in
27306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27307   *) ac_try_echo=$ac_try;;
27308 esac
27309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27310   (eval "$ac_try") 2>&5
27311   ac_status=$?
27312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27313   (exit $ac_status); }; }; then
27314   ac_cv_lib_psapi_main=yes
27315 else
27316   echo "$as_me: failed program was:" >&5
27317 sed 's/^/| /' conftest.$ac_ext >&5
27318
27319         ac_cv_lib_psapi_main=no
27320 fi
27321
27322 rm -f core conftest.err conftest.$ac_objext \
27323       conftest$ac_exeext conftest.$ac_ext
27324 LIBS=$ac_check_lib_save_LIBS
27325 fi
27326 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27327 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27328 if test $ac_cv_lib_psapi_main = yes; then
27329   cat >>confdefs.h <<_ACEOF
27330 #define HAVE_LIBPSAPI 1
27331 _ACEOF
27332
27333   LIBS="-lpsapi $LIBS"
27334
27335 fi
27336
27337 fi
27338
27339 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27340 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27341 if test "${ac_cv_search_dlopen+set}" = set; then
27342   echo $ECHO_N "(cached) $ECHO_C" >&6
27343 else
27344   ac_func_search_save_LIBS=$LIBS
27345 cat >conftest.$ac_ext <<_ACEOF
27346 /* confdefs.h.  */
27347 _ACEOF
27348 cat confdefs.h >>conftest.$ac_ext
27349 cat >>conftest.$ac_ext <<_ACEOF
27350 /* end confdefs.h.  */
27351
27352 /* Override any GCC internal prototype to avoid an error.
27353    Use char because int might match the return type of a GCC
27354    builtin and then its argument prototype would still apply.  */
27355 #ifdef __cplusplus
27356 extern "C"
27357 #endif
27358 char dlopen ();
27359 int
27360 main ()
27361 {
27362 return dlopen ();
27363   ;
27364   return 0;
27365 }
27366 _ACEOF
27367 for ac_lib in '' dl; do
27368   if test -z "$ac_lib"; then
27369     ac_res="none required"
27370   else
27371     ac_res=-l$ac_lib
27372     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27373   fi
27374   rm -f conftest.$ac_objext conftest$ac_exeext
27375 if { (ac_try="$ac_link"
27376 case "(($ac_try" in
27377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27378   *) ac_try_echo=$ac_try;;
27379 esac
27380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27381   (eval "$ac_link") 2>conftest.er1
27382   ac_status=$?
27383   grep -v '^ *+' conftest.er1 >conftest.err
27384   rm -f conftest.er1
27385   cat conftest.err >&5
27386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27387   (exit $ac_status); } &&
27388          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27389   { (case "(($ac_try" in
27390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27391   *) ac_try_echo=$ac_try;;
27392 esac
27393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27394   (eval "$ac_try") 2>&5
27395   ac_status=$?
27396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27397   (exit $ac_status); }; } &&
27398          { ac_try='test -s conftest$ac_exeext'
27399   { (case "(($ac_try" in
27400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27401   *) ac_try_echo=$ac_try;;
27402 esac
27403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27404   (eval "$ac_try") 2>&5
27405   ac_status=$?
27406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27407   (exit $ac_status); }; }; then
27408   ac_cv_search_dlopen=$ac_res
27409 else
27410   echo "$as_me: failed program was:" >&5
27411 sed 's/^/| /' conftest.$ac_ext >&5
27412
27413
27414 fi
27415
27416 rm -f core conftest.err conftest.$ac_objext \
27417       conftest$ac_exeext
27418   if test "${ac_cv_search_dlopen+set}" = set; then
27419   break
27420 fi
27421 done
27422 if test "${ac_cv_search_dlopen+set}" = set; then
27423   :
27424 else
27425   ac_cv_search_dlopen=no
27426 fi
27427 rm conftest.$ac_ext
27428 LIBS=$ac_func_search_save_LIBS
27429 fi
27430 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27431 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27432 ac_res=$ac_cv_search_dlopen
27433 if test "$ac_res" != no; then
27434   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27435
27436 cat >>confdefs.h <<\_ACEOF
27437 #define HAVE_DLOPEN 1
27438 _ACEOF
27439
27440 else
27441   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27442 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27443 fi
27444
27445
27446 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
27447 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
27448 if test "${ac_cv_search_ffi_call+set}" = set; then
27449   echo $ECHO_N "(cached) $ECHO_C" >&6
27450 else
27451   ac_func_search_save_LIBS=$LIBS
27452 cat >conftest.$ac_ext <<_ACEOF
27453 /* confdefs.h.  */
27454 _ACEOF
27455 cat confdefs.h >>conftest.$ac_ext
27456 cat >>conftest.$ac_ext <<_ACEOF
27457 /* end confdefs.h.  */
27458
27459 /* Override any GCC internal prototype to avoid an error.
27460    Use char because int might match the return type of a GCC
27461    builtin and then its argument prototype would still apply.  */
27462 #ifdef __cplusplus
27463 extern "C"
27464 #endif
27465 char ffi_call ();
27466 int
27467 main ()
27468 {
27469 return ffi_call ();
27470   ;
27471   return 0;
27472 }
27473 _ACEOF
27474 for ac_lib in '' ffi; do
27475   if test -z "$ac_lib"; then
27476     ac_res="none required"
27477   else
27478     ac_res=-l$ac_lib
27479     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27480   fi
27481   rm -f conftest.$ac_objext conftest$ac_exeext
27482 if { (ac_try="$ac_link"
27483 case "(($ac_try" in
27484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27485   *) ac_try_echo=$ac_try;;
27486 esac
27487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27488   (eval "$ac_link") 2>conftest.er1
27489   ac_status=$?
27490   grep -v '^ *+' conftest.er1 >conftest.err
27491   rm -f conftest.er1
27492   cat conftest.err >&5
27493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27494   (exit $ac_status); } &&
27495          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27496   { (case "(($ac_try" in
27497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27498   *) ac_try_echo=$ac_try;;
27499 esac
27500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27501   (eval "$ac_try") 2>&5
27502   ac_status=$?
27503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27504   (exit $ac_status); }; } &&
27505          { ac_try='test -s conftest$ac_exeext'
27506   { (case "(($ac_try" in
27507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27508   *) ac_try_echo=$ac_try;;
27509 esac
27510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27511   (eval "$ac_try") 2>&5
27512   ac_status=$?
27513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27514   (exit $ac_status); }; }; then
27515   ac_cv_search_ffi_call=$ac_res
27516 else
27517   echo "$as_me: failed program was:" >&5
27518 sed 's/^/| /' conftest.$ac_ext >&5
27519
27520
27521 fi
27522
27523 rm -f core conftest.err conftest.$ac_objext \
27524       conftest$ac_exeext
27525   if test "${ac_cv_search_ffi_call+set}" = set; then
27526   break
27527 fi
27528 done
27529 if test "${ac_cv_search_ffi_call+set}" = set; then
27530   :
27531 else
27532   ac_cv_search_ffi_call=no
27533 fi
27534 rm conftest.$ac_ext
27535 LIBS=$ac_func_search_save_LIBS
27536 fi
27537 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
27538 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
27539 ac_res=$ac_cv_search_ffi_call
27540 if test "$ac_res" != no; then
27541   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27542
27543 cat >>confdefs.h <<\_ACEOF
27544 #define HAVE_FFI_CALL 1
27545 _ACEOF
27546
27547 else
27548   { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
27549 echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
27550 fi
27551
27552
27553 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27554 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27555 if test "${ac_cv_search_mallinfo+set}" = set; then
27556   echo $ECHO_N "(cached) $ECHO_C" >&6
27557 else
27558   ac_func_search_save_LIBS=$LIBS
27559 cat >conftest.$ac_ext <<_ACEOF
27560 /* confdefs.h.  */
27561 _ACEOF
27562 cat confdefs.h >>conftest.$ac_ext
27563 cat >>conftest.$ac_ext <<_ACEOF
27564 /* end confdefs.h.  */
27565
27566 /* Override any GCC internal prototype to avoid an error.
27567    Use char because int might match the return type of a GCC
27568    builtin and then its argument prototype would still apply.  */
27569 #ifdef __cplusplus
27570 extern "C"
27571 #endif
27572 char mallinfo ();
27573 int
27574 main ()
27575 {
27576 return mallinfo ();
27577   ;
27578   return 0;
27579 }
27580 _ACEOF
27581 for ac_lib in '' malloc; do
27582   if test -z "$ac_lib"; then
27583     ac_res="none required"
27584   else
27585     ac_res=-l$ac_lib
27586     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27587   fi
27588   rm -f conftest.$ac_objext conftest$ac_exeext
27589 if { (ac_try="$ac_link"
27590 case "(($ac_try" in
27591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27592   *) ac_try_echo=$ac_try;;
27593 esac
27594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27595   (eval "$ac_link") 2>conftest.er1
27596   ac_status=$?
27597   grep -v '^ *+' conftest.er1 >conftest.err
27598   rm -f conftest.er1
27599   cat conftest.err >&5
27600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27601   (exit $ac_status); } &&
27602          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27603   { (case "(($ac_try" in
27604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27605   *) ac_try_echo=$ac_try;;
27606 esac
27607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27608   (eval "$ac_try") 2>&5
27609   ac_status=$?
27610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27611   (exit $ac_status); }; } &&
27612          { ac_try='test -s conftest$ac_exeext'
27613   { (case "(($ac_try" in
27614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27615   *) ac_try_echo=$ac_try;;
27616 esac
27617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27618   (eval "$ac_try") 2>&5
27619   ac_status=$?
27620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27621   (exit $ac_status); }; }; then
27622   ac_cv_search_mallinfo=$ac_res
27623 else
27624   echo "$as_me: failed program was:" >&5
27625 sed 's/^/| /' conftest.$ac_ext >&5
27626
27627
27628 fi
27629
27630 rm -f core conftest.err conftest.$ac_objext \
27631       conftest$ac_exeext
27632   if test "${ac_cv_search_mallinfo+set}" = set; then
27633   break
27634 fi
27635 done
27636 if test "${ac_cv_search_mallinfo+set}" = set; then
27637   :
27638 else
27639   ac_cv_search_mallinfo=no
27640 fi
27641 rm conftest.$ac_ext
27642 LIBS=$ac_func_search_save_LIBS
27643 fi
27644 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27645 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27646 ac_res=$ac_cv_search_mallinfo
27647 if test "$ac_res" != no; then
27648   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27649
27650 cat >>confdefs.h <<\_ACEOF
27651 #define HAVE_MALLINFO 1
27652 _ACEOF
27653
27654 fi
27655
27656
27657 if test "$ENABLE_THREADS" -eq 1 ; then
27658
27659 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27660 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27661 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27662   echo $ECHO_N "(cached) $ECHO_C" >&6
27663 else
27664   ac_check_lib_save_LIBS=$LIBS
27665 LIBS="-lpthread  $LIBS"
27666 cat >conftest.$ac_ext <<_ACEOF
27667 /* confdefs.h.  */
27668 _ACEOF
27669 cat confdefs.h >>conftest.$ac_ext
27670 cat >>conftest.$ac_ext <<_ACEOF
27671 /* end confdefs.h.  */
27672
27673 /* Override any GCC internal prototype to avoid an error.
27674    Use char because int might match the return type of a GCC
27675    builtin and then its argument prototype would still apply.  */
27676 #ifdef __cplusplus
27677 extern "C"
27678 #endif
27679 char pthread_mutex_init ();
27680 int
27681 main ()
27682 {
27683 return pthread_mutex_init ();
27684   ;
27685   return 0;
27686 }
27687 _ACEOF
27688 rm -f conftest.$ac_objext conftest$ac_exeext
27689 if { (ac_try="$ac_link"
27690 case "(($ac_try" in
27691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27692   *) ac_try_echo=$ac_try;;
27693 esac
27694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27695   (eval "$ac_link") 2>conftest.er1
27696   ac_status=$?
27697   grep -v '^ *+' conftest.er1 >conftest.err
27698   rm -f conftest.er1
27699   cat conftest.err >&5
27700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27701   (exit $ac_status); } &&
27702          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27703   { (case "(($ac_try" in
27704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27705   *) ac_try_echo=$ac_try;;
27706 esac
27707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27708   (eval "$ac_try") 2>&5
27709   ac_status=$?
27710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27711   (exit $ac_status); }; } &&
27712          { ac_try='test -s conftest$ac_exeext'
27713   { (case "(($ac_try" in
27714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27715   *) ac_try_echo=$ac_try;;
27716 esac
27717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27718   (eval "$ac_try") 2>&5
27719   ac_status=$?
27720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27721   (exit $ac_status); }; }; then
27722   ac_cv_lib_pthread_pthread_mutex_init=yes
27723 else
27724   echo "$as_me: failed program was:" >&5
27725 sed 's/^/| /' conftest.$ac_ext >&5
27726
27727         ac_cv_lib_pthread_pthread_mutex_init=no
27728 fi
27729
27730 rm -f core conftest.err conftest.$ac_objext \
27731       conftest$ac_exeext conftest.$ac_ext
27732 LIBS=$ac_check_lib_save_LIBS
27733 fi
27734 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27735 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
27736 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27737   cat >>confdefs.h <<_ACEOF
27738 #define HAVE_LIBPTHREAD 1
27739 _ACEOF
27740
27741   LIBS="-lpthread $LIBS"
27742
27743 fi
27744
27745   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27746 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
27747 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27748   echo $ECHO_N "(cached) $ECHO_C" >&6
27749 else
27750   ac_func_search_save_LIBS=$LIBS
27751 cat >conftest.$ac_ext <<_ACEOF
27752 /* confdefs.h.  */
27753 _ACEOF
27754 cat confdefs.h >>conftest.$ac_ext
27755 cat >>conftest.$ac_ext <<_ACEOF
27756 /* end confdefs.h.  */
27757
27758 /* Override any GCC internal prototype to avoid an error.
27759    Use char because int might match the return type of a GCC
27760    builtin and then its argument prototype would still apply.  */
27761 #ifdef __cplusplus
27762 extern "C"
27763 #endif
27764 char pthread_mutex_lock ();
27765 int
27766 main ()
27767 {
27768 return pthread_mutex_lock ();
27769   ;
27770   return 0;
27771 }
27772 _ACEOF
27773 for ac_lib in '' pthread; do
27774   if test -z "$ac_lib"; then
27775     ac_res="none required"
27776   else
27777     ac_res=-l$ac_lib
27778     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27779   fi
27780   rm -f conftest.$ac_objext conftest$ac_exeext
27781 if { (ac_try="$ac_link"
27782 case "(($ac_try" in
27783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27784   *) ac_try_echo=$ac_try;;
27785 esac
27786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27787   (eval "$ac_link") 2>conftest.er1
27788   ac_status=$?
27789   grep -v '^ *+' conftest.er1 >conftest.err
27790   rm -f conftest.er1
27791   cat conftest.err >&5
27792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27793   (exit $ac_status); } &&
27794          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27795   { (case "(($ac_try" in
27796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27797   *) ac_try_echo=$ac_try;;
27798 esac
27799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27800   (eval "$ac_try") 2>&5
27801   ac_status=$?
27802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27803   (exit $ac_status); }; } &&
27804          { ac_try='test -s conftest$ac_exeext'
27805   { (case "(($ac_try" in
27806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27807   *) ac_try_echo=$ac_try;;
27808 esac
27809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27810   (eval "$ac_try") 2>&5
27811   ac_status=$?
27812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27813   (exit $ac_status); }; }; then
27814   ac_cv_search_pthread_mutex_lock=$ac_res
27815 else
27816   echo "$as_me: failed program was:" >&5
27817 sed 's/^/| /' conftest.$ac_ext >&5
27818
27819
27820 fi
27821
27822 rm -f core conftest.err conftest.$ac_objext \
27823       conftest$ac_exeext
27824   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27825   break
27826 fi
27827 done
27828 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27829   :
27830 else
27831   ac_cv_search_pthread_mutex_lock=no
27832 fi
27833 rm conftest.$ac_ext
27834 LIBS=$ac_func_search_save_LIBS
27835 fi
27836 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27837 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27838 ac_res=$ac_cv_search_pthread_mutex_lock
27839 if test "$ac_res" != no; then
27840   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27841
27842 cat >>confdefs.h <<\_ACEOF
27843 #define HAVE_PTHREAD_MUTEX_LOCK 1
27844 _ACEOF
27845
27846 fi
27847
27848 fi
27849
27850
27851 # Check whether --with-udis86 was given.
27852 if test "${with_udis86+set}" = set; then
27853   withval=$with_udis86;
27854       USE_UDIS86=1
27855
27856       case "$withval" in
27857         /usr/lib|yes) ;;
27858         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
27859       esac
27860
27861 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
27862 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
27863 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
27864   echo $ECHO_N "(cached) $ECHO_C" >&6
27865 else
27866   ac_check_lib_save_LIBS=$LIBS
27867 LIBS="-ludis86  $LIBS"
27868 cat >conftest.$ac_ext <<_ACEOF
27869 /* confdefs.h.  */
27870 _ACEOF
27871 cat confdefs.h >>conftest.$ac_ext
27872 cat >>conftest.$ac_ext <<_ACEOF
27873 /* end confdefs.h.  */
27874
27875 /* Override any GCC internal prototype to avoid an error.
27876    Use char because int might match the return type of a GCC
27877    builtin and then its argument prototype would still apply.  */
27878 #ifdef __cplusplus
27879 extern "C"
27880 #endif
27881 char ud_init ();
27882 int
27883 main ()
27884 {
27885 return ud_init ();
27886   ;
27887   return 0;
27888 }
27889 _ACEOF
27890 rm -f conftest.$ac_objext conftest$ac_exeext
27891 if { (ac_try="$ac_link"
27892 case "(($ac_try" in
27893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27894   *) ac_try_echo=$ac_try;;
27895 esac
27896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27897   (eval "$ac_link") 2>conftest.er1
27898   ac_status=$?
27899   grep -v '^ *+' conftest.er1 >conftest.err
27900   rm -f conftest.er1
27901   cat conftest.err >&5
27902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27903   (exit $ac_status); } &&
27904          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27905   { (case "(($ac_try" in
27906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27907   *) ac_try_echo=$ac_try;;
27908 esac
27909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27910   (eval "$ac_try") 2>&5
27911   ac_status=$?
27912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27913   (exit $ac_status); }; } &&
27914          { ac_try='test -s conftest$ac_exeext'
27915   { (case "(($ac_try" in
27916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27917   *) ac_try_echo=$ac_try;;
27918 esac
27919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27920   (eval "$ac_try") 2>&5
27921   ac_status=$?
27922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27923   (exit $ac_status); }; }; then
27924   ac_cv_lib_udis86_ud_init=yes
27925 else
27926   echo "$as_me: failed program was:" >&5
27927 sed 's/^/| /' conftest.$ac_ext >&5
27928
27929         ac_cv_lib_udis86_ud_init=no
27930 fi
27931
27932 rm -f core conftest.err conftest.$ac_objext \
27933       conftest$ac_exeext conftest.$ac_ext
27934 LIBS=$ac_check_lib_save_LIBS
27935 fi
27936 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
27937 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
27938 if test $ac_cv_lib_udis86_ud_init = yes; then
27939   cat >>confdefs.h <<_ACEOF
27940 #define HAVE_LIBUDIS86 1
27941 _ACEOF
27942
27943   LIBS="-ludis86 $LIBS"
27944
27945 else
27946
27947         echo "Error! You need to have libudis86 around."
27948         exit -1
27949
27950 fi
27951
27952
27953 else
27954   USE_UDIS86=0
27955
27956 fi
27957
27958
27959 cat >>confdefs.h <<_ACEOF
27960 #define USE_UDIS86 $USE_UDIS86
27961 _ACEOF
27962
27963
27964
27965
27966
27967
27968
27969
27970 ac_header_dirent=no
27971 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27972   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
27973 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27974 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
27975 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27976   echo $ECHO_N "(cached) $ECHO_C" >&6
27977 else
27978   cat >conftest.$ac_ext <<_ACEOF
27979 /* confdefs.h.  */
27980 _ACEOF
27981 cat confdefs.h >>conftest.$ac_ext
27982 cat >>conftest.$ac_ext <<_ACEOF
27983 /* end confdefs.h.  */
27984 #include <sys/types.h>
27985 #include <$ac_hdr>
27986
27987 int
27988 main ()
27989 {
27990 if ((DIR *) 0)
27991 return 0;
27992   ;
27993   return 0;
27994 }
27995 _ACEOF
27996 rm -f conftest.$ac_objext
27997 if { (ac_try="$ac_compile"
27998 case "(($ac_try" in
27999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28000   *) ac_try_echo=$ac_try;;
28001 esac
28002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28003   (eval "$ac_compile") 2>conftest.er1
28004   ac_status=$?
28005   grep -v '^ *+' conftest.er1 >conftest.err
28006   rm -f conftest.er1
28007   cat conftest.err >&5
28008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28009   (exit $ac_status); } &&
28010          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28011   { (case "(($ac_try" in
28012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28013   *) ac_try_echo=$ac_try;;
28014 esac
28015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28016   (eval "$ac_try") 2>&5
28017   ac_status=$?
28018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28019   (exit $ac_status); }; } &&
28020          { ac_try='test -s conftest.$ac_objext'
28021   { (case "(($ac_try" in
28022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28023   *) ac_try_echo=$ac_try;;
28024 esac
28025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28026   (eval "$ac_try") 2>&5
28027   ac_status=$?
28028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28029   (exit $ac_status); }; }; then
28030   eval "$as_ac_Header=yes"
28031 else
28032   echo "$as_me: failed program was:" >&5
28033 sed 's/^/| /' conftest.$ac_ext >&5
28034
28035         eval "$as_ac_Header=no"
28036 fi
28037
28038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28039 fi
28040 ac_res=`eval echo '${'$as_ac_Header'}'`
28041                { echo "$as_me:$LINENO: result: $ac_res" >&5
28042 echo "${ECHO_T}$ac_res" >&6; }
28043 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28044   cat >>confdefs.h <<_ACEOF
28045 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
28046 _ACEOF
28047
28048 ac_header_dirent=$ac_hdr; break
28049 fi
28050
28051 done
28052 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
28053 if test $ac_header_dirent = dirent.h; then
28054   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28055 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28056 if test "${ac_cv_search_opendir+set}" = set; then
28057   echo $ECHO_N "(cached) $ECHO_C" >&6
28058 else
28059   ac_func_search_save_LIBS=$LIBS
28060 cat >conftest.$ac_ext <<_ACEOF
28061 /* confdefs.h.  */
28062 _ACEOF
28063 cat confdefs.h >>conftest.$ac_ext
28064 cat >>conftest.$ac_ext <<_ACEOF
28065 /* end confdefs.h.  */
28066
28067 /* Override any GCC internal prototype to avoid an error.
28068    Use char because int might match the return type of a GCC
28069    builtin and then its argument prototype would still apply.  */
28070 #ifdef __cplusplus
28071 extern "C"
28072 #endif
28073 char opendir ();
28074 int
28075 main ()
28076 {
28077 return opendir ();
28078   ;
28079   return 0;
28080 }
28081 _ACEOF
28082 for ac_lib in '' dir; do
28083   if test -z "$ac_lib"; then
28084     ac_res="none required"
28085   else
28086     ac_res=-l$ac_lib
28087     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28088   fi
28089   rm -f conftest.$ac_objext conftest$ac_exeext
28090 if { (ac_try="$ac_link"
28091 case "(($ac_try" in
28092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28093   *) ac_try_echo=$ac_try;;
28094 esac
28095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28096   (eval "$ac_link") 2>conftest.er1
28097   ac_status=$?
28098   grep -v '^ *+' conftest.er1 >conftest.err
28099   rm -f conftest.er1
28100   cat conftest.err >&5
28101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28102   (exit $ac_status); } &&
28103          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28104   { (case "(($ac_try" in
28105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28106   *) ac_try_echo=$ac_try;;
28107 esac
28108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28109   (eval "$ac_try") 2>&5
28110   ac_status=$?
28111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28112   (exit $ac_status); }; } &&
28113          { ac_try='test -s conftest$ac_exeext'
28114   { (case "(($ac_try" in
28115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28116   *) ac_try_echo=$ac_try;;
28117 esac
28118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28119   (eval "$ac_try") 2>&5
28120   ac_status=$?
28121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28122   (exit $ac_status); }; }; then
28123   ac_cv_search_opendir=$ac_res
28124 else
28125   echo "$as_me: failed program was:" >&5
28126 sed 's/^/| /' conftest.$ac_ext >&5
28127
28128
28129 fi
28130
28131 rm -f core conftest.err conftest.$ac_objext \
28132       conftest$ac_exeext
28133   if test "${ac_cv_search_opendir+set}" = set; then
28134   break
28135 fi
28136 done
28137 if test "${ac_cv_search_opendir+set}" = set; then
28138   :
28139 else
28140   ac_cv_search_opendir=no
28141 fi
28142 rm conftest.$ac_ext
28143 LIBS=$ac_func_search_save_LIBS
28144 fi
28145 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28146 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28147 ac_res=$ac_cv_search_opendir
28148 if test "$ac_res" != no; then
28149   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28150
28151 fi
28152
28153 else
28154   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28155 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28156 if test "${ac_cv_search_opendir+set}" = set; then
28157   echo $ECHO_N "(cached) $ECHO_C" >&6
28158 else
28159   ac_func_search_save_LIBS=$LIBS
28160 cat >conftest.$ac_ext <<_ACEOF
28161 /* confdefs.h.  */
28162 _ACEOF
28163 cat confdefs.h >>conftest.$ac_ext
28164 cat >>conftest.$ac_ext <<_ACEOF
28165 /* end confdefs.h.  */
28166
28167 /* Override any GCC internal prototype to avoid an error.
28168    Use char because int might match the return type of a GCC
28169    builtin and then its argument prototype would still apply.  */
28170 #ifdef __cplusplus
28171 extern "C"
28172 #endif
28173 char opendir ();
28174 int
28175 main ()
28176 {
28177 return opendir ();
28178   ;
28179   return 0;
28180 }
28181 _ACEOF
28182 for ac_lib in '' x; do
28183   if test -z "$ac_lib"; then
28184     ac_res="none required"
28185   else
28186     ac_res=-l$ac_lib
28187     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28188   fi
28189   rm -f conftest.$ac_objext conftest$ac_exeext
28190 if { (ac_try="$ac_link"
28191 case "(($ac_try" in
28192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28193   *) ac_try_echo=$ac_try;;
28194 esac
28195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28196   (eval "$ac_link") 2>conftest.er1
28197   ac_status=$?
28198   grep -v '^ *+' conftest.er1 >conftest.err
28199   rm -f conftest.er1
28200   cat conftest.err >&5
28201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28202   (exit $ac_status); } &&
28203          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28204   { (case "(($ac_try" in
28205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28206   *) ac_try_echo=$ac_try;;
28207 esac
28208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28209   (eval "$ac_try") 2>&5
28210   ac_status=$?
28211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28212   (exit $ac_status); }; } &&
28213          { ac_try='test -s conftest$ac_exeext'
28214   { (case "(($ac_try" in
28215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28216   *) ac_try_echo=$ac_try;;
28217 esac
28218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28219   (eval "$ac_try") 2>&5
28220   ac_status=$?
28221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28222   (exit $ac_status); }; }; then
28223   ac_cv_search_opendir=$ac_res
28224 else
28225   echo "$as_me: failed program was:" >&5
28226 sed 's/^/| /' conftest.$ac_ext >&5
28227
28228
28229 fi
28230
28231 rm -f core conftest.err conftest.$ac_objext \
28232       conftest$ac_exeext
28233   if test "${ac_cv_search_opendir+set}" = set; then
28234   break
28235 fi
28236 done
28237 if test "${ac_cv_search_opendir+set}" = set; then
28238   :
28239 else
28240   ac_cv_search_opendir=no
28241 fi
28242 rm conftest.$ac_ext
28243 LIBS=$ac_func_search_save_LIBS
28244 fi
28245 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28246 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28247 ac_res=$ac_cv_search_opendir
28248 if test "$ac_res" != no; then
28249   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28250
28251 fi
28252
28253 fi
28254
28255 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28256 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
28257 if test "${ac_cv_header_mmap_anon+set}" = set; then
28258   echo $ECHO_N "(cached) $ECHO_C" >&6
28259 else
28260    ac_ext=c
28261 ac_cpp='$CPP $CPPFLAGS'
28262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28265
28266   cat >conftest.$ac_ext <<_ACEOF
28267 /* confdefs.h.  */
28268 _ACEOF
28269 cat confdefs.h >>conftest.$ac_ext
28270 cat >>conftest.$ac_ext <<_ACEOF
28271 /* end confdefs.h.  */
28272 #include <sys/mman.h>
28273 #include <unistd.h>
28274 #include <fcntl.h>
28275 int
28276 main ()
28277 {
28278 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28279   ;
28280   return 0;
28281 }
28282 _ACEOF
28283 rm -f conftest.$ac_objext
28284 if { (ac_try="$ac_compile"
28285 case "(($ac_try" in
28286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28287   *) ac_try_echo=$ac_try;;
28288 esac
28289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28290   (eval "$ac_compile") 2>conftest.er1
28291   ac_status=$?
28292   grep -v '^ *+' conftest.er1 >conftest.err
28293   rm -f conftest.er1
28294   cat conftest.err >&5
28295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28296   (exit $ac_status); } &&
28297          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28298   { (case "(($ac_try" in
28299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28300   *) ac_try_echo=$ac_try;;
28301 esac
28302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28303   (eval "$ac_try") 2>&5
28304   ac_status=$?
28305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28306   (exit $ac_status); }; } &&
28307          { ac_try='test -s conftest.$ac_objext'
28308   { (case "(($ac_try" in
28309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28310   *) ac_try_echo=$ac_try;;
28311 esac
28312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28313   (eval "$ac_try") 2>&5
28314   ac_status=$?
28315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28316   (exit $ac_status); }; }; then
28317   ac_cv_header_mmap_anon=yes
28318 else
28319   echo "$as_me: failed program was:" >&5
28320 sed 's/^/| /' conftest.$ac_ext >&5
28321
28322         ac_cv_header_mmap_anon=no
28323 fi
28324
28325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28326   ac_ext=c
28327 ac_cpp='$CPP $CPPFLAGS'
28328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28331
28332
28333 fi
28334 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28335 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
28336 if test "$ac_cv_header_mmap_anon" = yes; then
28337
28338 cat >>confdefs.h <<\_ACEOF
28339 #define HAVE_MMAP_ANONYMOUS 1
28340 _ACEOF
28341
28342 fi
28343
28344 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28345 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
28346 if test "${ac_cv_header_stat_broken+set}" = set; then
28347   echo $ECHO_N "(cached) $ECHO_C" >&6
28348 else
28349   cat >conftest.$ac_ext <<_ACEOF
28350 /* confdefs.h.  */
28351 _ACEOF
28352 cat confdefs.h >>conftest.$ac_ext
28353 cat >>conftest.$ac_ext <<_ACEOF
28354 /* end confdefs.h.  */
28355 #include <sys/types.h>
28356 #include <sys/stat.h>
28357
28358 #if defined S_ISBLK && defined S_IFDIR
28359 # if S_ISBLK (S_IFDIR)
28360 You lose.
28361 # endif
28362 #endif
28363
28364 #if defined S_ISBLK && defined S_IFCHR
28365 # if S_ISBLK (S_IFCHR)
28366 You lose.
28367 # endif
28368 #endif
28369
28370 #if defined S_ISLNK && defined S_IFREG
28371 # if S_ISLNK (S_IFREG)
28372 You lose.
28373 # endif
28374 #endif
28375
28376 #if defined S_ISSOCK && defined S_IFREG
28377 # if S_ISSOCK (S_IFREG)
28378 You lose.
28379 # endif
28380 #endif
28381
28382 _ACEOF
28383 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28384   $EGREP "You lose" >/dev/null 2>&1; then
28385   ac_cv_header_stat_broken=yes
28386 else
28387   ac_cv_header_stat_broken=no
28388 fi
28389 rm -f conftest*
28390
28391 fi
28392 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28393 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
28394 if test $ac_cv_header_stat_broken = yes; then
28395
28396 cat >>confdefs.h <<\_ACEOF
28397 #define STAT_MACROS_BROKEN 1
28398 _ACEOF
28399
28400 fi
28401
28402 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28403 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
28404 if test "${ac_cv_header_stdc+set}" = set; then
28405   echo $ECHO_N "(cached) $ECHO_C" >&6
28406 else
28407   cat >conftest.$ac_ext <<_ACEOF
28408 /* confdefs.h.  */
28409 _ACEOF
28410 cat confdefs.h >>conftest.$ac_ext
28411 cat >>conftest.$ac_ext <<_ACEOF
28412 /* end confdefs.h.  */
28413 #include <stdlib.h>
28414 #include <stdarg.h>
28415 #include <string.h>
28416 #include <float.h>
28417
28418 int
28419 main ()
28420 {
28421
28422   ;
28423   return 0;
28424 }
28425 _ACEOF
28426 rm -f conftest.$ac_objext
28427 if { (ac_try="$ac_compile"
28428 case "(($ac_try" in
28429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28430   *) ac_try_echo=$ac_try;;
28431 esac
28432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28433   (eval "$ac_compile") 2>conftest.er1
28434   ac_status=$?
28435   grep -v '^ *+' conftest.er1 >conftest.err
28436   rm -f conftest.er1
28437   cat conftest.err >&5
28438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28439   (exit $ac_status); } &&
28440          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28441   { (case "(($ac_try" in
28442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28443   *) ac_try_echo=$ac_try;;
28444 esac
28445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28446   (eval "$ac_try") 2>&5
28447   ac_status=$?
28448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28449   (exit $ac_status); }; } &&
28450          { ac_try='test -s conftest.$ac_objext'
28451   { (case "(($ac_try" in
28452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28453   *) ac_try_echo=$ac_try;;
28454 esac
28455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28456   (eval "$ac_try") 2>&5
28457   ac_status=$?
28458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28459   (exit $ac_status); }; }; then
28460   ac_cv_header_stdc=yes
28461 else
28462   echo "$as_me: failed program was:" >&5
28463 sed 's/^/| /' conftest.$ac_ext >&5
28464
28465         ac_cv_header_stdc=no
28466 fi
28467
28468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28469
28470 if test $ac_cv_header_stdc = yes; then
28471   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28472   cat >conftest.$ac_ext <<_ACEOF
28473 /* confdefs.h.  */
28474 _ACEOF
28475 cat confdefs.h >>conftest.$ac_ext
28476 cat >>conftest.$ac_ext <<_ACEOF
28477 /* end confdefs.h.  */
28478 #include <string.h>
28479
28480 _ACEOF
28481 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28482   $EGREP "memchr" >/dev/null 2>&1; then
28483   :
28484 else
28485   ac_cv_header_stdc=no
28486 fi
28487 rm -f conftest*
28488
28489 fi
28490
28491 if test $ac_cv_header_stdc = yes; then
28492   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28493   cat >conftest.$ac_ext <<_ACEOF
28494 /* confdefs.h.  */
28495 _ACEOF
28496 cat confdefs.h >>conftest.$ac_ext
28497 cat >>conftest.$ac_ext <<_ACEOF
28498 /* end confdefs.h.  */
28499 #include <stdlib.h>
28500
28501 _ACEOF
28502 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28503   $EGREP "free" >/dev/null 2>&1; then
28504   :
28505 else
28506   ac_cv_header_stdc=no
28507 fi
28508 rm -f conftest*
28509
28510 fi
28511
28512 if test $ac_cv_header_stdc = yes; then
28513   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28514   if test "$cross_compiling" = yes; then
28515   :
28516 else
28517   cat >conftest.$ac_ext <<_ACEOF
28518 /* confdefs.h.  */
28519 _ACEOF
28520 cat confdefs.h >>conftest.$ac_ext
28521 cat >>conftest.$ac_ext <<_ACEOF
28522 /* end confdefs.h.  */
28523 #include <ctype.h>
28524 #include <stdlib.h>
28525 #if ((' ' & 0x0FF) == 0x020)
28526 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28527 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28528 #else
28529 # define ISLOWER(c) \
28530                    (('a' <= (c) && (c) <= 'i') \
28531                      || ('j' <= (c) && (c) <= 'r') \
28532                      || ('s' <= (c) && (c) <= 'z'))
28533 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28534 #endif
28535
28536 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28537 int
28538 main ()
28539 {
28540   int i;
28541   for (i = 0; i < 256; i++)
28542     if (XOR (islower (i), ISLOWER (i))
28543         || toupper (i) != TOUPPER (i))
28544       return 2;
28545   return 0;
28546 }
28547 _ACEOF
28548 rm -f conftest$ac_exeext
28549 if { (ac_try="$ac_link"
28550 case "(($ac_try" in
28551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28552   *) ac_try_echo=$ac_try;;
28553 esac
28554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28555   (eval "$ac_link") 2>&5
28556   ac_status=$?
28557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28558   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28559   { (case "(($ac_try" in
28560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28561   *) ac_try_echo=$ac_try;;
28562 esac
28563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28564   (eval "$ac_try") 2>&5
28565   ac_status=$?
28566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28567   (exit $ac_status); }; }; then
28568   :
28569 else
28570   echo "$as_me: program exited with status $ac_status" >&5
28571 echo "$as_me: failed program was:" >&5
28572 sed 's/^/| /' conftest.$ac_ext >&5
28573
28574 ( exit $ac_status )
28575 ac_cv_header_stdc=no
28576 fi
28577 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28578 fi
28579
28580
28581 fi
28582 fi
28583 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28584 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
28585 if test $ac_cv_header_stdc = yes; then
28586
28587 cat >>confdefs.h <<\_ACEOF
28588 #define STDC_HEADERS 1
28589 _ACEOF
28590
28591 fi
28592
28593 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28594 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
28595 if test "${ac_cv_header_sys_wait_h+set}" = set; then
28596   echo $ECHO_N "(cached) $ECHO_C" >&6
28597 else
28598   cat >conftest.$ac_ext <<_ACEOF
28599 /* confdefs.h.  */
28600 _ACEOF
28601 cat confdefs.h >>conftest.$ac_ext
28602 cat >>conftest.$ac_ext <<_ACEOF
28603 /* end confdefs.h.  */
28604 #include <sys/types.h>
28605 #include <sys/wait.h>
28606 #ifndef WEXITSTATUS
28607 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
28608 #endif
28609 #ifndef WIFEXITED
28610 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28611 #endif
28612
28613 int
28614 main ()
28615 {
28616   int s;
28617   wait (&s);
28618   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28619   ;
28620   return 0;
28621 }
28622 _ACEOF
28623 rm -f conftest.$ac_objext
28624 if { (ac_try="$ac_compile"
28625 case "(($ac_try" in
28626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28627   *) ac_try_echo=$ac_try;;
28628 esac
28629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28630   (eval "$ac_compile") 2>conftest.er1
28631   ac_status=$?
28632   grep -v '^ *+' conftest.er1 >conftest.err
28633   rm -f conftest.er1
28634   cat conftest.err >&5
28635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28636   (exit $ac_status); } &&
28637          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28638   { (case "(($ac_try" in
28639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28640   *) ac_try_echo=$ac_try;;
28641 esac
28642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28643   (eval "$ac_try") 2>&5
28644   ac_status=$?
28645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28646   (exit $ac_status); }; } &&
28647          { ac_try='test -s conftest.$ac_objext'
28648   { (case "(($ac_try" in
28649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28650   *) ac_try_echo=$ac_try;;
28651 esac
28652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28653   (eval "$ac_try") 2>&5
28654   ac_status=$?
28655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28656   (exit $ac_status); }; }; then
28657   ac_cv_header_sys_wait_h=yes
28658 else
28659   echo "$as_me: failed program was:" >&5
28660 sed 's/^/| /' conftest.$ac_ext >&5
28661
28662         ac_cv_header_sys_wait_h=no
28663 fi
28664
28665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28666 fi
28667 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28668 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
28669 if test $ac_cv_header_sys_wait_h = yes; then
28670
28671 cat >>confdefs.h <<\_ACEOF
28672 #define HAVE_SYS_WAIT_H 1
28673 _ACEOF
28674
28675 fi
28676
28677 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28678 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
28679 if test "${ac_cv_header_time+set}" = set; then
28680   echo $ECHO_N "(cached) $ECHO_C" >&6
28681 else
28682   cat >conftest.$ac_ext <<_ACEOF
28683 /* confdefs.h.  */
28684 _ACEOF
28685 cat confdefs.h >>conftest.$ac_ext
28686 cat >>conftest.$ac_ext <<_ACEOF
28687 /* end confdefs.h.  */
28688 #include <sys/types.h>
28689 #include <sys/time.h>
28690 #include <time.h>
28691
28692 int
28693 main ()
28694 {
28695 if ((struct tm *) 0)
28696 return 0;
28697   ;
28698   return 0;
28699 }
28700 _ACEOF
28701 rm -f conftest.$ac_objext
28702 if { (ac_try="$ac_compile"
28703 case "(($ac_try" in
28704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28705   *) ac_try_echo=$ac_try;;
28706 esac
28707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28708   (eval "$ac_compile") 2>conftest.er1
28709   ac_status=$?
28710   grep -v '^ *+' conftest.er1 >conftest.err
28711   rm -f conftest.er1
28712   cat conftest.err >&5
28713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28714   (exit $ac_status); } &&
28715          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28716   { (case "(($ac_try" in
28717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28718   *) ac_try_echo=$ac_try;;
28719 esac
28720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28721   (eval "$ac_try") 2>&5
28722   ac_status=$?
28723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28724   (exit $ac_status); }; } &&
28725          { ac_try='test -s conftest.$ac_objext'
28726   { (case "(($ac_try" in
28727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28728   *) ac_try_echo=$ac_try;;
28729 esac
28730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28731   (eval "$ac_try") 2>&5
28732   ac_status=$?
28733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28734   (exit $ac_status); }; }; then
28735   ac_cv_header_time=yes
28736 else
28737   echo "$as_me: failed program was:" >&5
28738 sed 's/^/| /' conftest.$ac_ext >&5
28739
28740         ac_cv_header_time=no
28741 fi
28742
28743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28744 fi
28745 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28746 echo "${ECHO_T}$ac_cv_header_time" >&6; }
28747 if test $ac_cv_header_time = yes; then
28748
28749 cat >>confdefs.h <<\_ACEOF
28750 #define TIME_WITH_SYS_TIME 1
28751 _ACEOF
28752
28753 fi
28754
28755
28756
28757
28758
28759
28760
28761
28762 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28763 do
28764 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28765 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28766   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28767 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28768 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28769   echo $ECHO_N "(cached) $ECHO_C" >&6
28770 fi
28771 ac_res=`eval echo '${'$as_ac_Header'}'`
28772                { echo "$as_me:$LINENO: result: $ac_res" >&5
28773 echo "${ECHO_T}$ac_res" >&6; }
28774 else
28775   # Is the header compilable?
28776 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28777 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28778 cat >conftest.$ac_ext <<_ACEOF
28779 /* confdefs.h.  */
28780 _ACEOF
28781 cat confdefs.h >>conftest.$ac_ext
28782 cat >>conftest.$ac_ext <<_ACEOF
28783 /* end confdefs.h.  */
28784 $ac_includes_default
28785 #include <$ac_header>
28786 _ACEOF
28787 rm -f conftest.$ac_objext
28788 if { (ac_try="$ac_compile"
28789 case "(($ac_try" in
28790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28791   *) ac_try_echo=$ac_try;;
28792 esac
28793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28794   (eval "$ac_compile") 2>conftest.er1
28795   ac_status=$?
28796   grep -v '^ *+' conftest.er1 >conftest.err
28797   rm -f conftest.er1
28798   cat conftest.err >&5
28799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28800   (exit $ac_status); } &&
28801          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28802   { (case "(($ac_try" in
28803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28804   *) ac_try_echo=$ac_try;;
28805 esac
28806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28807   (eval "$ac_try") 2>&5
28808   ac_status=$?
28809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28810   (exit $ac_status); }; } &&
28811          { ac_try='test -s conftest.$ac_objext'
28812   { (case "(($ac_try" in
28813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28814   *) ac_try_echo=$ac_try;;
28815 esac
28816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28817   (eval "$ac_try") 2>&5
28818   ac_status=$?
28819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28820   (exit $ac_status); }; }; then
28821   ac_header_compiler=yes
28822 else
28823   echo "$as_me: failed program was:" >&5
28824 sed 's/^/| /' conftest.$ac_ext >&5
28825
28826         ac_header_compiler=no
28827 fi
28828
28829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28830 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28831 echo "${ECHO_T}$ac_header_compiler" >&6; }
28832
28833 # Is the header present?
28834 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28835 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28836 cat >conftest.$ac_ext <<_ACEOF
28837 /* confdefs.h.  */
28838 _ACEOF
28839 cat confdefs.h >>conftest.$ac_ext
28840 cat >>conftest.$ac_ext <<_ACEOF
28841 /* end confdefs.h.  */
28842 #include <$ac_header>
28843 _ACEOF
28844 if { (ac_try="$ac_cpp conftest.$ac_ext"
28845 case "(($ac_try" in
28846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28847   *) ac_try_echo=$ac_try;;
28848 esac
28849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28850   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28851   ac_status=$?
28852   grep -v '^ *+' conftest.er1 >conftest.err
28853   rm -f conftest.er1
28854   cat conftest.err >&5
28855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28856   (exit $ac_status); } >/dev/null; then
28857   if test -s conftest.err; then
28858     ac_cpp_err=$ac_c_preproc_warn_flag
28859     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28860   else
28861     ac_cpp_err=
28862   fi
28863 else
28864   ac_cpp_err=yes
28865 fi
28866 if test -z "$ac_cpp_err"; then
28867   ac_header_preproc=yes
28868 else
28869   echo "$as_me: failed program was:" >&5
28870 sed 's/^/| /' conftest.$ac_ext >&5
28871
28872   ac_header_preproc=no
28873 fi
28874
28875 rm -f conftest.err conftest.$ac_ext
28876 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28877 echo "${ECHO_T}$ac_header_preproc" >&6; }
28878
28879 # So?  What about this header?
28880 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28881   yes:no: )
28882     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28883 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28884     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28885 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28886     ac_header_preproc=yes
28887     ;;
28888   no:yes:* )
28889     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28890 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28891     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28892 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28893     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28894 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28895     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28896 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28897     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28898 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28899     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28900 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28901     ( cat <<\_ASBOX
28902 ## ----------------------------------- ##
28903 ## Report this to llvmbugs@cs.uiuc.edu ##
28904 ## ----------------------------------- ##
28905 _ASBOX
28906      ) | sed "s/^/$as_me: WARNING:     /" >&2
28907     ;;
28908 esac
28909 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28911 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28912   echo $ECHO_N "(cached) $ECHO_C" >&6
28913 else
28914   eval "$as_ac_Header=\$ac_header_preproc"
28915 fi
28916 ac_res=`eval echo '${'$as_ac_Header'}'`
28917                { echo "$as_me:$LINENO: result: $ac_res" >&5
28918 echo "${ECHO_T}$ac_res" >&6; }
28919
28920 fi
28921 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28922   cat >>confdefs.h <<_ACEOF
28923 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28924 _ACEOF
28925
28926 fi
28927
28928 done
28929
28930
28931
28932
28933
28934
28935
28936 for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
28937 do
28938 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28939 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28940   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28941 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28942 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28943   echo $ECHO_N "(cached) $ECHO_C" >&6
28944 fi
28945 ac_res=`eval echo '${'$as_ac_Header'}'`
28946                { echo "$as_me:$LINENO: result: $ac_res" >&5
28947 echo "${ECHO_T}$ac_res" >&6; }
28948 else
28949   # Is the header compilable?
28950 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28951 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28952 cat >conftest.$ac_ext <<_ACEOF
28953 /* confdefs.h.  */
28954 _ACEOF
28955 cat confdefs.h >>conftest.$ac_ext
28956 cat >>conftest.$ac_ext <<_ACEOF
28957 /* end confdefs.h.  */
28958 $ac_includes_default
28959 #include <$ac_header>
28960 _ACEOF
28961 rm -f conftest.$ac_objext
28962 if { (ac_try="$ac_compile"
28963 case "(($ac_try" in
28964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28965   *) ac_try_echo=$ac_try;;
28966 esac
28967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28968   (eval "$ac_compile") 2>conftest.er1
28969   ac_status=$?
28970   grep -v '^ *+' conftest.er1 >conftest.err
28971   rm -f conftest.er1
28972   cat conftest.err >&5
28973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28974   (exit $ac_status); } &&
28975          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28976   { (case "(($ac_try" in
28977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28978   *) ac_try_echo=$ac_try;;
28979 esac
28980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28981   (eval "$ac_try") 2>&5
28982   ac_status=$?
28983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28984   (exit $ac_status); }; } &&
28985          { ac_try='test -s conftest.$ac_objext'
28986   { (case "(($ac_try" in
28987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28988   *) ac_try_echo=$ac_try;;
28989 esac
28990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28991   (eval "$ac_try") 2>&5
28992   ac_status=$?
28993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28994   (exit $ac_status); }; }; then
28995   ac_header_compiler=yes
28996 else
28997   echo "$as_me: failed program was:" >&5
28998 sed 's/^/| /' conftest.$ac_ext >&5
28999
29000         ac_header_compiler=no
29001 fi
29002
29003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29004 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29005 echo "${ECHO_T}$ac_header_compiler" >&6; }
29006
29007 # Is the header present?
29008 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29009 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29010 cat >conftest.$ac_ext <<_ACEOF
29011 /* confdefs.h.  */
29012 _ACEOF
29013 cat confdefs.h >>conftest.$ac_ext
29014 cat >>conftest.$ac_ext <<_ACEOF
29015 /* end confdefs.h.  */
29016 #include <$ac_header>
29017 _ACEOF
29018 if { (ac_try="$ac_cpp conftest.$ac_ext"
29019 case "(($ac_try" in
29020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29021   *) ac_try_echo=$ac_try;;
29022 esac
29023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29024   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29025   ac_status=$?
29026   grep -v '^ *+' conftest.er1 >conftest.err
29027   rm -f conftest.er1
29028   cat conftest.err >&5
29029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29030   (exit $ac_status); } >/dev/null; then
29031   if test -s conftest.err; then
29032     ac_cpp_err=$ac_c_preproc_warn_flag
29033     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29034   else
29035     ac_cpp_err=
29036   fi
29037 else
29038   ac_cpp_err=yes
29039 fi
29040 if test -z "$ac_cpp_err"; then
29041   ac_header_preproc=yes
29042 else
29043   echo "$as_me: failed program was:" >&5
29044 sed 's/^/| /' conftest.$ac_ext >&5
29045
29046   ac_header_preproc=no
29047 fi
29048
29049 rm -f conftest.err conftest.$ac_ext
29050 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29051 echo "${ECHO_T}$ac_header_preproc" >&6; }
29052
29053 # So?  What about this header?
29054 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29055   yes:no: )
29056     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29057 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29058     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29059 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29060     ac_header_preproc=yes
29061     ;;
29062   no:yes:* )
29063     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29064 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29065     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29066 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29067     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29068 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29069     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29070 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29071     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29072 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29073     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29074 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29075     ( cat <<\_ASBOX
29076 ## ----------------------------------- ##
29077 ## Report this to llvmbugs@cs.uiuc.edu ##
29078 ## ----------------------------------- ##
29079 _ASBOX
29080      ) | sed "s/^/$as_me: WARNING:     /" >&2
29081     ;;
29082 esac
29083 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29084 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29085 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29086   echo $ECHO_N "(cached) $ECHO_C" >&6
29087 else
29088   eval "$as_ac_Header=\$ac_header_preproc"
29089 fi
29090 ac_res=`eval echo '${'$as_ac_Header'}'`
29091                { echo "$as_me:$LINENO: result: $ac_res" >&5
29092 echo "${ECHO_T}$ac_res" >&6; }
29093
29094 fi
29095 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29096   cat >>confdefs.h <<_ACEOF
29097 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29098 _ACEOF
29099
29100 fi
29101
29102 done
29103
29104
29105 for ac_header in windows.h
29106 do
29107 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29108 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29109   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29110 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29111 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29112   echo $ECHO_N "(cached) $ECHO_C" >&6
29113 fi
29114 ac_res=`eval echo '${'$as_ac_Header'}'`
29115                { echo "$as_me:$LINENO: result: $ac_res" >&5
29116 echo "${ECHO_T}$ac_res" >&6; }
29117 else
29118   # Is the header compilable?
29119 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29120 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29121 cat >conftest.$ac_ext <<_ACEOF
29122 /* confdefs.h.  */
29123 _ACEOF
29124 cat confdefs.h >>conftest.$ac_ext
29125 cat >>conftest.$ac_ext <<_ACEOF
29126 /* end confdefs.h.  */
29127 $ac_includes_default
29128 #include <$ac_header>
29129 _ACEOF
29130 rm -f conftest.$ac_objext
29131 if { (ac_try="$ac_compile"
29132 case "(($ac_try" in
29133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29134   *) ac_try_echo=$ac_try;;
29135 esac
29136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29137   (eval "$ac_compile") 2>conftest.er1
29138   ac_status=$?
29139   grep -v '^ *+' conftest.er1 >conftest.err
29140   rm -f conftest.er1
29141   cat conftest.err >&5
29142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29143   (exit $ac_status); } &&
29144          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29145   { (case "(($ac_try" in
29146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29147   *) ac_try_echo=$ac_try;;
29148 esac
29149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29150   (eval "$ac_try") 2>&5
29151   ac_status=$?
29152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29153   (exit $ac_status); }; } &&
29154          { ac_try='test -s conftest.$ac_objext'
29155   { (case "(($ac_try" in
29156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29157   *) ac_try_echo=$ac_try;;
29158 esac
29159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29160   (eval "$ac_try") 2>&5
29161   ac_status=$?
29162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29163   (exit $ac_status); }; }; then
29164   ac_header_compiler=yes
29165 else
29166   echo "$as_me: failed program was:" >&5
29167 sed 's/^/| /' conftest.$ac_ext >&5
29168
29169         ac_header_compiler=no
29170 fi
29171
29172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29173 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29174 echo "${ECHO_T}$ac_header_compiler" >&6; }
29175
29176 # Is the header present?
29177 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29178 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29179 cat >conftest.$ac_ext <<_ACEOF
29180 /* confdefs.h.  */
29181 _ACEOF
29182 cat confdefs.h >>conftest.$ac_ext
29183 cat >>conftest.$ac_ext <<_ACEOF
29184 /* end confdefs.h.  */
29185 #include <$ac_header>
29186 _ACEOF
29187 if { (ac_try="$ac_cpp conftest.$ac_ext"
29188 case "(($ac_try" in
29189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29190   *) ac_try_echo=$ac_try;;
29191 esac
29192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29193   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29194   ac_status=$?
29195   grep -v '^ *+' conftest.er1 >conftest.err
29196   rm -f conftest.er1
29197   cat conftest.err >&5
29198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29199   (exit $ac_status); } >/dev/null; then
29200   if test -s conftest.err; then
29201     ac_cpp_err=$ac_c_preproc_warn_flag
29202     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29203   else
29204     ac_cpp_err=
29205   fi
29206 else
29207   ac_cpp_err=yes
29208 fi
29209 if test -z "$ac_cpp_err"; then
29210   ac_header_preproc=yes
29211 else
29212   echo "$as_me: failed program was:" >&5
29213 sed 's/^/| /' conftest.$ac_ext >&5
29214
29215   ac_header_preproc=no
29216 fi
29217
29218 rm -f conftest.err conftest.$ac_ext
29219 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29220 echo "${ECHO_T}$ac_header_preproc" >&6; }
29221
29222 # So?  What about this header?
29223 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29224   yes:no: )
29225     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29226 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29227     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29228 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29229     ac_header_preproc=yes
29230     ;;
29231   no:yes:* )
29232     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29233 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29234     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29235 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29236     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29237 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29238     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29239 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29240     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29241 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29242     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29243 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29244     ( cat <<\_ASBOX
29245 ## ----------------------------------- ##
29246 ## Report this to llvmbugs@cs.uiuc.edu ##
29247 ## ----------------------------------- ##
29248 _ASBOX
29249      ) | sed "s/^/$as_me: WARNING:     /" >&2
29250     ;;
29251 esac
29252 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29253 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29254 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29255   echo $ECHO_N "(cached) $ECHO_C" >&6
29256 else
29257   eval "$as_ac_Header=\$ac_header_preproc"
29258 fi
29259 ac_res=`eval echo '${'$as_ac_Header'}'`
29260                { echo "$as_me:$LINENO: result: $ac_res" >&5
29261 echo "${ECHO_T}$ac_res" >&6; }
29262
29263 fi
29264 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29265   cat >>confdefs.h <<_ACEOF
29266 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29267 _ACEOF
29268
29269 fi
29270
29271 done
29272
29273
29274
29275
29276
29277 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
29278 do
29279 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29280 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29281   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29282 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29283 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29284   echo $ECHO_N "(cached) $ECHO_C" >&6
29285 fi
29286 ac_res=`eval echo '${'$as_ac_Header'}'`
29287                { echo "$as_me:$LINENO: result: $ac_res" >&5
29288 echo "${ECHO_T}$ac_res" >&6; }
29289 else
29290   # Is the header compilable?
29291 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29292 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29293 cat >conftest.$ac_ext <<_ACEOF
29294 /* confdefs.h.  */
29295 _ACEOF
29296 cat confdefs.h >>conftest.$ac_ext
29297 cat >>conftest.$ac_ext <<_ACEOF
29298 /* end confdefs.h.  */
29299 $ac_includes_default
29300 #include <$ac_header>
29301 _ACEOF
29302 rm -f conftest.$ac_objext
29303 if { (ac_try="$ac_compile"
29304 case "(($ac_try" in
29305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29306   *) ac_try_echo=$ac_try;;
29307 esac
29308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29309   (eval "$ac_compile") 2>conftest.er1
29310   ac_status=$?
29311   grep -v '^ *+' conftest.er1 >conftest.err
29312   rm -f conftest.er1
29313   cat conftest.err >&5
29314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29315   (exit $ac_status); } &&
29316          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29317   { (case "(($ac_try" in
29318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29319   *) ac_try_echo=$ac_try;;
29320 esac
29321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29322   (eval "$ac_try") 2>&5
29323   ac_status=$?
29324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29325   (exit $ac_status); }; } &&
29326          { ac_try='test -s conftest.$ac_objext'
29327   { (case "(($ac_try" in
29328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29329   *) ac_try_echo=$ac_try;;
29330 esac
29331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29332   (eval "$ac_try") 2>&5
29333   ac_status=$?
29334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29335   (exit $ac_status); }; }; then
29336   ac_header_compiler=yes
29337 else
29338   echo "$as_me: failed program was:" >&5
29339 sed 's/^/| /' conftest.$ac_ext >&5
29340
29341         ac_header_compiler=no
29342 fi
29343
29344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29345 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29346 echo "${ECHO_T}$ac_header_compiler" >&6; }
29347
29348 # Is the header present?
29349 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29350 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29351 cat >conftest.$ac_ext <<_ACEOF
29352 /* confdefs.h.  */
29353 _ACEOF
29354 cat confdefs.h >>conftest.$ac_ext
29355 cat >>conftest.$ac_ext <<_ACEOF
29356 /* end confdefs.h.  */
29357 #include <$ac_header>
29358 _ACEOF
29359 if { (ac_try="$ac_cpp conftest.$ac_ext"
29360 case "(($ac_try" in
29361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29362   *) ac_try_echo=$ac_try;;
29363 esac
29364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29365   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29366   ac_status=$?
29367   grep -v '^ *+' conftest.er1 >conftest.err
29368   rm -f conftest.er1
29369   cat conftest.err >&5
29370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29371   (exit $ac_status); } >/dev/null; then
29372   if test -s conftest.err; then
29373     ac_cpp_err=$ac_c_preproc_warn_flag
29374     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29375   else
29376     ac_cpp_err=
29377   fi
29378 else
29379   ac_cpp_err=yes
29380 fi
29381 if test -z "$ac_cpp_err"; then
29382   ac_header_preproc=yes
29383 else
29384   echo "$as_me: failed program was:" >&5
29385 sed 's/^/| /' conftest.$ac_ext >&5
29386
29387   ac_header_preproc=no
29388 fi
29389
29390 rm -f conftest.err conftest.$ac_ext
29391 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29392 echo "${ECHO_T}$ac_header_preproc" >&6; }
29393
29394 # So?  What about this header?
29395 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29396   yes:no: )
29397     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29398 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29399     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29400 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29401     ac_header_preproc=yes
29402     ;;
29403   no:yes:* )
29404     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29405 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29406     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29407 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29408     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29409 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29410     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29411 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29412     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29413 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29414     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29415 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29416     ( cat <<\_ASBOX
29417 ## ----------------------------------- ##
29418 ## Report this to llvmbugs@cs.uiuc.edu ##
29419 ## ----------------------------------- ##
29420 _ASBOX
29421      ) | sed "s/^/$as_me: WARNING:     /" >&2
29422     ;;
29423 esac
29424 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29425 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29426 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29427   echo $ECHO_N "(cached) $ECHO_C" >&6
29428 else
29429   eval "$as_ac_Header=\$ac_header_preproc"
29430 fi
29431 ac_res=`eval echo '${'$as_ac_Header'}'`
29432                { echo "$as_me:$LINENO: result: $ac_res" >&5
29433 echo "${ECHO_T}$ac_res" >&6; }
29434
29435 fi
29436 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29437   cat >>confdefs.h <<_ACEOF
29438 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29439 _ACEOF
29440
29441 fi
29442
29443 done
29444
29445
29446
29447
29448 for ac_header in sys/types.h malloc/malloc.h mach/mach.h
29449 do
29450 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29451 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29452   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29453 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29454 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29455   echo $ECHO_N "(cached) $ECHO_C" >&6
29456 fi
29457 ac_res=`eval echo '${'$as_ac_Header'}'`
29458                { echo "$as_me:$LINENO: result: $ac_res" >&5
29459 echo "${ECHO_T}$ac_res" >&6; }
29460 else
29461   # Is the header compilable?
29462 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29463 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29464 cat >conftest.$ac_ext <<_ACEOF
29465 /* confdefs.h.  */
29466 _ACEOF
29467 cat confdefs.h >>conftest.$ac_ext
29468 cat >>conftest.$ac_ext <<_ACEOF
29469 /* end confdefs.h.  */
29470 $ac_includes_default
29471 #include <$ac_header>
29472 _ACEOF
29473 rm -f conftest.$ac_objext
29474 if { (ac_try="$ac_compile"
29475 case "(($ac_try" in
29476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29477   *) ac_try_echo=$ac_try;;
29478 esac
29479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29480   (eval "$ac_compile") 2>conftest.er1
29481   ac_status=$?
29482   grep -v '^ *+' conftest.er1 >conftest.err
29483   rm -f conftest.er1
29484   cat conftest.err >&5
29485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29486   (exit $ac_status); } &&
29487          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29488   { (case "(($ac_try" in
29489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29490   *) ac_try_echo=$ac_try;;
29491 esac
29492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29493   (eval "$ac_try") 2>&5
29494   ac_status=$?
29495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29496   (exit $ac_status); }; } &&
29497          { ac_try='test -s conftest.$ac_objext'
29498   { (case "(($ac_try" in
29499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29500   *) ac_try_echo=$ac_try;;
29501 esac
29502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29503   (eval "$ac_try") 2>&5
29504   ac_status=$?
29505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29506   (exit $ac_status); }; }; then
29507   ac_header_compiler=yes
29508 else
29509   echo "$as_me: failed program was:" >&5
29510 sed 's/^/| /' conftest.$ac_ext >&5
29511
29512         ac_header_compiler=no
29513 fi
29514
29515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29516 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29517 echo "${ECHO_T}$ac_header_compiler" >&6; }
29518
29519 # Is the header present?
29520 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29521 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29522 cat >conftest.$ac_ext <<_ACEOF
29523 /* confdefs.h.  */
29524 _ACEOF
29525 cat confdefs.h >>conftest.$ac_ext
29526 cat >>conftest.$ac_ext <<_ACEOF
29527 /* end confdefs.h.  */
29528 #include <$ac_header>
29529 _ACEOF
29530 if { (ac_try="$ac_cpp conftest.$ac_ext"
29531 case "(($ac_try" in
29532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29533   *) ac_try_echo=$ac_try;;
29534 esac
29535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29536   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29537   ac_status=$?
29538   grep -v '^ *+' conftest.er1 >conftest.err
29539   rm -f conftest.er1
29540   cat conftest.err >&5
29541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29542   (exit $ac_status); } >/dev/null; then
29543   if test -s conftest.err; then
29544     ac_cpp_err=$ac_c_preproc_warn_flag
29545     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29546   else
29547     ac_cpp_err=
29548   fi
29549 else
29550   ac_cpp_err=yes
29551 fi
29552 if test -z "$ac_cpp_err"; then
29553   ac_header_preproc=yes
29554 else
29555   echo "$as_me: failed program was:" >&5
29556 sed 's/^/| /' conftest.$ac_ext >&5
29557
29558   ac_header_preproc=no
29559 fi
29560
29561 rm -f conftest.err conftest.$ac_ext
29562 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29563 echo "${ECHO_T}$ac_header_preproc" >&6; }
29564
29565 # So?  What about this header?
29566 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29567   yes:no: )
29568     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29569 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29570     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29571 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29572     ac_header_preproc=yes
29573     ;;
29574   no:yes:* )
29575     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29576 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29577     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29578 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29579     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29580 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29581     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29582 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29583     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29584 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29585     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29586 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29587     ( cat <<\_ASBOX
29588 ## ----------------------------------- ##
29589 ## Report this to llvmbugs@cs.uiuc.edu ##
29590 ## ----------------------------------- ##
29591 _ASBOX
29592      ) | sed "s/^/$as_me: WARNING:     /" >&2
29593     ;;
29594 esac
29595 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29596 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29597 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29598   echo $ECHO_N "(cached) $ECHO_C" >&6
29599 else
29600   eval "$as_ac_Header=\$ac_header_preproc"
29601 fi
29602 ac_res=`eval echo '${'$as_ac_Header'}'`
29603                { echo "$as_me:$LINENO: result: $ac_res" >&5
29604 echo "${ECHO_T}$ac_res" >&6; }
29605
29606 fi
29607 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29608   cat >>confdefs.h <<_ACEOF
29609 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29610 _ACEOF
29611
29612 fi
29613
29614 done
29615
29616 if test "$ENABLE_THREADS" -eq 1 ; then
29617
29618 for ac_header in pthread.h
29619 do
29620 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29621 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29622   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29623 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29624 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29625   echo $ECHO_N "(cached) $ECHO_C" >&6
29626 fi
29627 ac_res=`eval echo '${'$as_ac_Header'}'`
29628                { echo "$as_me:$LINENO: result: $ac_res" >&5
29629 echo "${ECHO_T}$ac_res" >&6; }
29630 else
29631   # Is the header compilable?
29632 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29633 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29634 cat >conftest.$ac_ext <<_ACEOF
29635 /* confdefs.h.  */
29636 _ACEOF
29637 cat confdefs.h >>conftest.$ac_ext
29638 cat >>conftest.$ac_ext <<_ACEOF
29639 /* end confdefs.h.  */
29640 $ac_includes_default
29641 #include <$ac_header>
29642 _ACEOF
29643 rm -f conftest.$ac_objext
29644 if { (ac_try="$ac_compile"
29645 case "(($ac_try" in
29646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29647   *) ac_try_echo=$ac_try;;
29648 esac
29649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29650   (eval "$ac_compile") 2>conftest.er1
29651   ac_status=$?
29652   grep -v '^ *+' conftest.er1 >conftest.err
29653   rm -f conftest.er1
29654   cat conftest.err >&5
29655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29656   (exit $ac_status); } &&
29657          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29658   { (case "(($ac_try" in
29659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29660   *) ac_try_echo=$ac_try;;
29661 esac
29662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29663   (eval "$ac_try") 2>&5
29664   ac_status=$?
29665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29666   (exit $ac_status); }; } &&
29667          { ac_try='test -s conftest.$ac_objext'
29668   { (case "(($ac_try" in
29669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29670   *) ac_try_echo=$ac_try;;
29671 esac
29672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29673   (eval "$ac_try") 2>&5
29674   ac_status=$?
29675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29676   (exit $ac_status); }; }; then
29677   ac_header_compiler=yes
29678 else
29679   echo "$as_me: failed program was:" >&5
29680 sed 's/^/| /' conftest.$ac_ext >&5
29681
29682         ac_header_compiler=no
29683 fi
29684
29685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29686 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29687 echo "${ECHO_T}$ac_header_compiler" >&6; }
29688
29689 # Is the header present?
29690 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29691 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29692 cat >conftest.$ac_ext <<_ACEOF
29693 /* confdefs.h.  */
29694 _ACEOF
29695 cat confdefs.h >>conftest.$ac_ext
29696 cat >>conftest.$ac_ext <<_ACEOF
29697 /* end confdefs.h.  */
29698 #include <$ac_header>
29699 _ACEOF
29700 if { (ac_try="$ac_cpp conftest.$ac_ext"
29701 case "(($ac_try" in
29702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29703   *) ac_try_echo=$ac_try;;
29704 esac
29705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29706   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29707   ac_status=$?
29708   grep -v '^ *+' conftest.er1 >conftest.err
29709   rm -f conftest.er1
29710   cat conftest.err >&5
29711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29712   (exit $ac_status); } >/dev/null; then
29713   if test -s conftest.err; then
29714     ac_cpp_err=$ac_c_preproc_warn_flag
29715     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29716   else
29717     ac_cpp_err=
29718   fi
29719 else
29720   ac_cpp_err=yes
29721 fi
29722 if test -z "$ac_cpp_err"; then
29723   ac_header_preproc=yes
29724 else
29725   echo "$as_me: failed program was:" >&5
29726 sed 's/^/| /' conftest.$ac_ext >&5
29727
29728   ac_header_preproc=no
29729 fi
29730
29731 rm -f conftest.err conftest.$ac_ext
29732 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29733 echo "${ECHO_T}$ac_header_preproc" >&6; }
29734
29735 # So?  What about this header?
29736 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29737   yes:no: )
29738     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29739 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29740     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29741 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29742     ac_header_preproc=yes
29743     ;;
29744   no:yes:* )
29745     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29746 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29747     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29748 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29749     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29750 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29751     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29752 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29753     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29754 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29755     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29756 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29757     ( cat <<\_ASBOX
29758 ## ----------------------------------- ##
29759 ## Report this to llvmbugs@cs.uiuc.edu ##
29760 ## ----------------------------------- ##
29761 _ASBOX
29762      ) | sed "s/^/$as_me: WARNING:     /" >&2
29763     ;;
29764 esac
29765 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29766 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29767 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29768   echo $ECHO_N "(cached) $ECHO_C" >&6
29769 else
29770   eval "$as_ac_Header=\$ac_header_preproc"
29771 fi
29772 ac_res=`eval echo '${'$as_ac_Header'}'`
29773                { echo "$as_me:$LINENO: result: $ac_res" >&5
29774 echo "${ECHO_T}$ac_res" >&6; }
29775
29776 fi
29777 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29778   cat >>confdefs.h <<_ACEOF
29779 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29780 _ACEOF
29781  HAVE_PTHREAD=1
29782
29783 else
29784   HAVE_PTHREAD=0
29785
29786 fi
29787
29788 done
29789
29790 else
29791   HAVE_PTHREAD=0
29792
29793 fi
29794
29795
29796
29797 for ac_header in ffi.h ffi/ffi.h
29798 do
29799 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29800 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29801   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29802 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29803 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29804   echo $ECHO_N "(cached) $ECHO_C" >&6
29805 fi
29806 ac_res=`eval echo '${'$as_ac_Header'}'`
29807                { echo "$as_me:$LINENO: result: $ac_res" >&5
29808 echo "${ECHO_T}$ac_res" >&6; }
29809 else
29810   # Is the header compilable?
29811 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29812 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29813 cat >conftest.$ac_ext <<_ACEOF
29814 /* confdefs.h.  */
29815 _ACEOF
29816 cat confdefs.h >>conftest.$ac_ext
29817 cat >>conftest.$ac_ext <<_ACEOF
29818 /* end confdefs.h.  */
29819 $ac_includes_default
29820 #include <$ac_header>
29821 _ACEOF
29822 rm -f conftest.$ac_objext
29823 if { (ac_try="$ac_compile"
29824 case "(($ac_try" in
29825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29826   *) ac_try_echo=$ac_try;;
29827 esac
29828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29829   (eval "$ac_compile") 2>conftest.er1
29830   ac_status=$?
29831   grep -v '^ *+' conftest.er1 >conftest.err
29832   rm -f conftest.er1
29833   cat conftest.err >&5
29834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29835   (exit $ac_status); } &&
29836          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29837   { (case "(($ac_try" in
29838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29839   *) ac_try_echo=$ac_try;;
29840 esac
29841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29842   (eval "$ac_try") 2>&5
29843   ac_status=$?
29844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29845   (exit $ac_status); }; } &&
29846          { ac_try='test -s conftest.$ac_objext'
29847   { (case "(($ac_try" in
29848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29849   *) ac_try_echo=$ac_try;;
29850 esac
29851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29852   (eval "$ac_try") 2>&5
29853   ac_status=$?
29854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29855   (exit $ac_status); }; }; then
29856   ac_header_compiler=yes
29857 else
29858   echo "$as_me: failed program was:" >&5
29859 sed 's/^/| /' conftest.$ac_ext >&5
29860
29861         ac_header_compiler=no
29862 fi
29863
29864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29865 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29866 echo "${ECHO_T}$ac_header_compiler" >&6; }
29867
29868 # Is the header present?
29869 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29870 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29871 cat >conftest.$ac_ext <<_ACEOF
29872 /* confdefs.h.  */
29873 _ACEOF
29874 cat confdefs.h >>conftest.$ac_ext
29875 cat >>conftest.$ac_ext <<_ACEOF
29876 /* end confdefs.h.  */
29877 #include <$ac_header>
29878 _ACEOF
29879 if { (ac_try="$ac_cpp conftest.$ac_ext"
29880 case "(($ac_try" in
29881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29882   *) ac_try_echo=$ac_try;;
29883 esac
29884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29885   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29886   ac_status=$?
29887   grep -v '^ *+' conftest.er1 >conftest.err
29888   rm -f conftest.er1
29889   cat conftest.err >&5
29890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29891   (exit $ac_status); } >/dev/null; then
29892   if test -s conftest.err; then
29893     ac_cpp_err=$ac_c_preproc_warn_flag
29894     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29895   else
29896     ac_cpp_err=
29897   fi
29898 else
29899   ac_cpp_err=yes
29900 fi
29901 if test -z "$ac_cpp_err"; then
29902   ac_header_preproc=yes
29903 else
29904   echo "$as_me: failed program was:" >&5
29905 sed 's/^/| /' conftest.$ac_ext >&5
29906
29907   ac_header_preproc=no
29908 fi
29909
29910 rm -f conftest.err conftest.$ac_ext
29911 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29912 echo "${ECHO_T}$ac_header_preproc" >&6; }
29913
29914 # So?  What about this header?
29915 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29916   yes:no: )
29917     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29918 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29919     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29920 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29921     ac_header_preproc=yes
29922     ;;
29923   no:yes:* )
29924     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29925 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29926     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29927 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29928     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29929 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29930     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29931 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29932     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29933 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29934     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29935 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29936     ( cat <<\_ASBOX
29937 ## ----------------------------------- ##
29938 ## Report this to llvmbugs@cs.uiuc.edu ##
29939 ## ----------------------------------- ##
29940 _ASBOX
29941      ) | sed "s/^/$as_me: WARNING:     /" >&2
29942     ;;
29943 esac
29944 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29945 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29946 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29947   echo $ECHO_N "(cached) $ECHO_C" >&6
29948 else
29949   eval "$as_ac_Header=\$ac_header_preproc"
29950 fi
29951 ac_res=`eval echo '${'$as_ac_Header'}'`
29952                { echo "$as_me:$LINENO: result: $ac_res" >&5
29953 echo "${ECHO_T}$ac_res" >&6; }
29954
29955 fi
29956 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29957   cat >>confdefs.h <<_ACEOF
29958 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29959 _ACEOF
29960
29961 fi
29962
29963 done
29964
29965
29966
29967
29968   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29969 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29970 if test "${ac_cv_huge_val_sanity+set}" = set; then
29971   echo $ECHO_N "(cached) $ECHO_C" >&6
29972 else
29973
29974     ac_ext=cpp
29975 ac_cpp='$CXXCPP $CPPFLAGS'
29976 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29977 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29978 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29979
29980     CXXFLAGS=-pedantic
29981     if test "$cross_compiling" = yes; then
29982   ac_cv_huge_val_sanity=yes
29983 else
29984   cat >conftest.$ac_ext <<_ACEOF
29985 /* confdefs.h.  */
29986 _ACEOF
29987 cat confdefs.h >>conftest.$ac_ext
29988 cat >>conftest.$ac_ext <<_ACEOF
29989 /* end confdefs.h.  */
29990 #include <math.h>
29991 int
29992 main ()
29993 {
29994 double x = HUGE_VAL; return x != x;
29995   ;
29996   return 0;
29997 }
29998 _ACEOF
29999 rm -f conftest$ac_exeext
30000 if { (ac_try="$ac_link"
30001 case "(($ac_try" in
30002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30003   *) ac_try_echo=$ac_try;;
30004 esac
30005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30006   (eval "$ac_link") 2>&5
30007   ac_status=$?
30008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30009   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30010   { (case "(($ac_try" in
30011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30012   *) ac_try_echo=$ac_try;;
30013 esac
30014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30015   (eval "$ac_try") 2>&5
30016   ac_status=$?
30017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30018   (exit $ac_status); }; }; then
30019   ac_cv_huge_val_sanity=yes
30020 else
30021   echo "$as_me: program exited with status $ac_status" >&5
30022 echo "$as_me: failed program was:" >&5
30023 sed 's/^/| /' conftest.$ac_ext >&5
30024
30025 ( exit $ac_status )
30026 ac_cv_huge_val_sanity=no
30027 fi
30028 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30029 fi
30030
30031
30032     ac_ext=c
30033 ac_cpp='$CPP $CPPFLAGS'
30034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30037
30038
30039 fi
30040 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
30041 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
30042   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
30043
30044
30045 { echo "$as_me:$LINENO: checking for pid_t" >&5
30046 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
30047 if test "${ac_cv_type_pid_t+set}" = set; then
30048   echo $ECHO_N "(cached) $ECHO_C" >&6
30049 else
30050   cat >conftest.$ac_ext <<_ACEOF
30051 /* confdefs.h.  */
30052 _ACEOF
30053 cat confdefs.h >>conftest.$ac_ext
30054 cat >>conftest.$ac_ext <<_ACEOF
30055 /* end confdefs.h.  */
30056 $ac_includes_default
30057 typedef pid_t ac__type_new_;
30058 int
30059 main ()
30060 {
30061 if ((ac__type_new_ *) 0)
30062   return 0;
30063 if (sizeof (ac__type_new_))
30064   return 0;
30065   ;
30066   return 0;
30067 }
30068 _ACEOF
30069 rm -f conftest.$ac_objext
30070 if { (ac_try="$ac_compile"
30071 case "(($ac_try" in
30072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30073   *) ac_try_echo=$ac_try;;
30074 esac
30075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30076   (eval "$ac_compile") 2>conftest.er1
30077   ac_status=$?
30078   grep -v '^ *+' conftest.er1 >conftest.err
30079   rm -f conftest.er1
30080   cat conftest.err >&5
30081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30082   (exit $ac_status); } &&
30083          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30084   { (case "(($ac_try" in
30085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30086   *) ac_try_echo=$ac_try;;
30087 esac
30088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30089   (eval "$ac_try") 2>&5
30090   ac_status=$?
30091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30092   (exit $ac_status); }; } &&
30093          { ac_try='test -s conftest.$ac_objext'
30094   { (case "(($ac_try" in
30095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30096   *) ac_try_echo=$ac_try;;
30097 esac
30098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30099   (eval "$ac_try") 2>&5
30100   ac_status=$?
30101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30102   (exit $ac_status); }; }; then
30103   ac_cv_type_pid_t=yes
30104 else
30105   echo "$as_me: failed program was:" >&5
30106 sed 's/^/| /' conftest.$ac_ext >&5
30107
30108         ac_cv_type_pid_t=no
30109 fi
30110
30111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30112 fi
30113 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
30114 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
30115 if test $ac_cv_type_pid_t = yes; then
30116   :
30117 else
30118
30119 cat >>confdefs.h <<_ACEOF
30120 #define pid_t int
30121 _ACEOF
30122
30123 fi
30124
30125 { echo "$as_me:$LINENO: checking for size_t" >&5
30126 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
30127 if test "${ac_cv_type_size_t+set}" = set; then
30128   echo $ECHO_N "(cached) $ECHO_C" >&6
30129 else
30130   cat >conftest.$ac_ext <<_ACEOF
30131 /* confdefs.h.  */
30132 _ACEOF
30133 cat confdefs.h >>conftest.$ac_ext
30134 cat >>conftest.$ac_ext <<_ACEOF
30135 /* end confdefs.h.  */
30136 $ac_includes_default
30137 typedef size_t ac__type_new_;
30138 int
30139 main ()
30140 {
30141 if ((ac__type_new_ *) 0)
30142   return 0;
30143 if (sizeof (ac__type_new_))
30144   return 0;
30145   ;
30146   return 0;
30147 }
30148 _ACEOF
30149 rm -f conftest.$ac_objext
30150 if { (ac_try="$ac_compile"
30151 case "(($ac_try" in
30152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30153   *) ac_try_echo=$ac_try;;
30154 esac
30155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30156   (eval "$ac_compile") 2>conftest.er1
30157   ac_status=$?
30158   grep -v '^ *+' conftest.er1 >conftest.err
30159   rm -f conftest.er1
30160   cat conftest.err >&5
30161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30162   (exit $ac_status); } &&
30163          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30164   { (case "(($ac_try" in
30165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30166   *) ac_try_echo=$ac_try;;
30167 esac
30168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30169   (eval "$ac_try") 2>&5
30170   ac_status=$?
30171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30172   (exit $ac_status); }; } &&
30173          { ac_try='test -s conftest.$ac_objext'
30174   { (case "(($ac_try" in
30175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30176   *) ac_try_echo=$ac_try;;
30177 esac
30178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30179   (eval "$ac_try") 2>&5
30180   ac_status=$?
30181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30182   (exit $ac_status); }; }; then
30183   ac_cv_type_size_t=yes
30184 else
30185   echo "$as_me: failed program was:" >&5
30186 sed 's/^/| /' conftest.$ac_ext >&5
30187
30188         ac_cv_type_size_t=no
30189 fi
30190
30191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30192 fi
30193 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
30194 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
30195 if test $ac_cv_type_size_t = yes; then
30196   :
30197 else
30198
30199 cat >>confdefs.h <<_ACEOF
30200 #define size_t unsigned int
30201 _ACEOF
30202
30203 fi
30204
30205 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
30206 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
30207 if test "${ac_cv_type_signal+set}" = set; then
30208   echo $ECHO_N "(cached) $ECHO_C" >&6
30209 else
30210   cat >conftest.$ac_ext <<_ACEOF
30211 /* confdefs.h.  */
30212 _ACEOF
30213 cat confdefs.h >>conftest.$ac_ext
30214 cat >>conftest.$ac_ext <<_ACEOF
30215 /* end confdefs.h.  */
30216 #include <sys/types.h>
30217 #include <signal.h>
30218
30219 int
30220 main ()
30221 {
30222 return *(signal (0, 0)) (0) == 1;
30223   ;
30224   return 0;
30225 }
30226 _ACEOF
30227 rm -f conftest.$ac_objext
30228 if { (ac_try="$ac_compile"
30229 case "(($ac_try" in
30230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30231   *) ac_try_echo=$ac_try;;
30232 esac
30233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30234   (eval "$ac_compile") 2>conftest.er1
30235   ac_status=$?
30236   grep -v '^ *+' conftest.er1 >conftest.err
30237   rm -f conftest.er1
30238   cat conftest.err >&5
30239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30240   (exit $ac_status); } &&
30241          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30242   { (case "(($ac_try" in
30243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30244   *) ac_try_echo=$ac_try;;
30245 esac
30246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30247   (eval "$ac_try") 2>&5
30248   ac_status=$?
30249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30250   (exit $ac_status); }; } &&
30251          { ac_try='test -s conftest.$ac_objext'
30252   { (case "(($ac_try" in
30253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30254   *) ac_try_echo=$ac_try;;
30255 esac
30256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30257   (eval "$ac_try") 2>&5
30258   ac_status=$?
30259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30260   (exit $ac_status); }; }; then
30261   ac_cv_type_signal=int
30262 else
30263   echo "$as_me: failed program was:" >&5
30264 sed 's/^/| /' conftest.$ac_ext >&5
30265
30266         ac_cv_type_signal=void
30267 fi
30268
30269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30270 fi
30271 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30272 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
30273
30274 cat >>confdefs.h <<_ACEOF
30275 #define RETSIGTYPE $ac_cv_type_signal
30276 _ACEOF
30277
30278
30279 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30280 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
30281 if test "${ac_cv_struct_tm+set}" = set; then
30282   echo $ECHO_N "(cached) $ECHO_C" >&6
30283 else
30284   cat >conftest.$ac_ext <<_ACEOF
30285 /* confdefs.h.  */
30286 _ACEOF
30287 cat confdefs.h >>conftest.$ac_ext
30288 cat >>conftest.$ac_ext <<_ACEOF
30289 /* end confdefs.h.  */
30290 #include <sys/types.h>
30291 #include <time.h>
30292
30293 int
30294 main ()
30295 {
30296 struct tm *tp; tp->tm_sec;
30297   ;
30298   return 0;
30299 }
30300 _ACEOF
30301 rm -f conftest.$ac_objext
30302 if { (ac_try="$ac_compile"
30303 case "(($ac_try" in
30304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30305   *) ac_try_echo=$ac_try;;
30306 esac
30307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30308   (eval "$ac_compile") 2>conftest.er1
30309   ac_status=$?
30310   grep -v '^ *+' conftest.er1 >conftest.err
30311   rm -f conftest.er1
30312   cat conftest.err >&5
30313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30314   (exit $ac_status); } &&
30315          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30316   { (case "(($ac_try" in
30317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30318   *) ac_try_echo=$ac_try;;
30319 esac
30320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30321   (eval "$ac_try") 2>&5
30322   ac_status=$?
30323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30324   (exit $ac_status); }; } &&
30325          { ac_try='test -s conftest.$ac_objext'
30326   { (case "(($ac_try" in
30327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30328   *) ac_try_echo=$ac_try;;
30329 esac
30330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30331   (eval "$ac_try") 2>&5
30332   ac_status=$?
30333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30334   (exit $ac_status); }; }; then
30335   ac_cv_struct_tm=time.h
30336 else
30337   echo "$as_me: failed program was:" >&5
30338 sed 's/^/| /' conftest.$ac_ext >&5
30339
30340         ac_cv_struct_tm=sys/time.h
30341 fi
30342
30343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30344 fi
30345 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30346 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
30347 if test $ac_cv_struct_tm = sys/time.h; then
30348
30349 cat >>confdefs.h <<\_ACEOF
30350 #define TM_IN_SYS_TIME 1
30351 _ACEOF
30352
30353 fi
30354
30355 { echo "$as_me:$LINENO: checking for int64_t" >&5
30356 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
30357 if test "${ac_cv_type_int64_t+set}" = set; then
30358   echo $ECHO_N "(cached) $ECHO_C" >&6
30359 else
30360   cat >conftest.$ac_ext <<_ACEOF
30361 /* confdefs.h.  */
30362 _ACEOF
30363 cat confdefs.h >>conftest.$ac_ext
30364 cat >>conftest.$ac_ext <<_ACEOF
30365 /* end confdefs.h.  */
30366 $ac_includes_default
30367 typedef int64_t ac__type_new_;
30368 int
30369 main ()
30370 {
30371 if ((ac__type_new_ *) 0)
30372   return 0;
30373 if (sizeof (ac__type_new_))
30374   return 0;
30375   ;
30376   return 0;
30377 }
30378 _ACEOF
30379 rm -f conftest.$ac_objext
30380 if { (ac_try="$ac_compile"
30381 case "(($ac_try" in
30382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30383   *) ac_try_echo=$ac_try;;
30384 esac
30385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30386   (eval "$ac_compile") 2>conftest.er1
30387   ac_status=$?
30388   grep -v '^ *+' conftest.er1 >conftest.err
30389   rm -f conftest.er1
30390   cat conftest.err >&5
30391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30392   (exit $ac_status); } &&
30393          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30394   { (case "(($ac_try" in
30395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30396   *) ac_try_echo=$ac_try;;
30397 esac
30398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30399   (eval "$ac_try") 2>&5
30400   ac_status=$?
30401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30402   (exit $ac_status); }; } &&
30403          { ac_try='test -s conftest.$ac_objext'
30404   { (case "(($ac_try" in
30405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30406   *) ac_try_echo=$ac_try;;
30407 esac
30408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30409   (eval "$ac_try") 2>&5
30410   ac_status=$?
30411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30412   (exit $ac_status); }; }; then
30413   ac_cv_type_int64_t=yes
30414 else
30415   echo "$as_me: failed program was:" >&5
30416 sed 's/^/| /' conftest.$ac_ext >&5
30417
30418         ac_cv_type_int64_t=no
30419 fi
30420
30421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30422 fi
30423 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30424 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
30425 if test $ac_cv_type_int64_t = yes; then
30426
30427 cat >>confdefs.h <<_ACEOF
30428 #define HAVE_INT64_T 1
30429 _ACEOF
30430
30431
30432 else
30433   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30434 echo "$as_me: error: Type int64_t required but not found" >&2;}
30435    { (exit 1); exit 1; }; }
30436 fi
30437
30438 { echo "$as_me:$LINENO: checking for uint64_t" >&5
30439 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
30440 if test "${ac_cv_type_uint64_t+set}" = set; then
30441   echo $ECHO_N "(cached) $ECHO_C" >&6
30442 else
30443   cat >conftest.$ac_ext <<_ACEOF
30444 /* confdefs.h.  */
30445 _ACEOF
30446 cat confdefs.h >>conftest.$ac_ext
30447 cat >>conftest.$ac_ext <<_ACEOF
30448 /* end confdefs.h.  */
30449 $ac_includes_default
30450 typedef uint64_t ac__type_new_;
30451 int
30452 main ()
30453 {
30454 if ((ac__type_new_ *) 0)
30455   return 0;
30456 if (sizeof (ac__type_new_))
30457   return 0;
30458   ;
30459   return 0;
30460 }
30461 _ACEOF
30462 rm -f conftest.$ac_objext
30463 if { (ac_try="$ac_compile"
30464 case "(($ac_try" in
30465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30466   *) ac_try_echo=$ac_try;;
30467 esac
30468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30469   (eval "$ac_compile") 2>conftest.er1
30470   ac_status=$?
30471   grep -v '^ *+' conftest.er1 >conftest.err
30472   rm -f conftest.er1
30473   cat conftest.err >&5
30474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30475   (exit $ac_status); } &&
30476          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30477   { (case "(($ac_try" in
30478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30479   *) ac_try_echo=$ac_try;;
30480 esac
30481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30482   (eval "$ac_try") 2>&5
30483   ac_status=$?
30484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30485   (exit $ac_status); }; } &&
30486          { ac_try='test -s conftest.$ac_objext'
30487   { (case "(($ac_try" in
30488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30489   *) ac_try_echo=$ac_try;;
30490 esac
30491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30492   (eval "$ac_try") 2>&5
30493   ac_status=$?
30494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30495   (exit $ac_status); }; }; then
30496   ac_cv_type_uint64_t=yes
30497 else
30498   echo "$as_me: failed program was:" >&5
30499 sed 's/^/| /' conftest.$ac_ext >&5
30500
30501         ac_cv_type_uint64_t=no
30502 fi
30503
30504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30505 fi
30506 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30507 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
30508 if test $ac_cv_type_uint64_t = yes; then
30509
30510 cat >>confdefs.h <<_ACEOF
30511 #define HAVE_UINT64_T 1
30512 _ACEOF
30513
30514
30515 else
30516   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30517 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
30518 if test "${ac_cv_type_u_int64_t+set}" = set; then
30519   echo $ECHO_N "(cached) $ECHO_C" >&6
30520 else
30521   cat >conftest.$ac_ext <<_ACEOF
30522 /* confdefs.h.  */
30523 _ACEOF
30524 cat confdefs.h >>conftest.$ac_ext
30525 cat >>conftest.$ac_ext <<_ACEOF
30526 /* end confdefs.h.  */
30527 $ac_includes_default
30528 typedef u_int64_t ac__type_new_;
30529 int
30530 main ()
30531 {
30532 if ((ac__type_new_ *) 0)
30533   return 0;
30534 if (sizeof (ac__type_new_))
30535   return 0;
30536   ;
30537   return 0;
30538 }
30539 _ACEOF
30540 rm -f conftest.$ac_objext
30541 if { (ac_try="$ac_compile"
30542 case "(($ac_try" in
30543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30544   *) ac_try_echo=$ac_try;;
30545 esac
30546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30547   (eval "$ac_compile") 2>conftest.er1
30548   ac_status=$?
30549   grep -v '^ *+' conftest.er1 >conftest.err
30550   rm -f conftest.er1
30551   cat conftest.err >&5
30552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30553   (exit $ac_status); } &&
30554          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30555   { (case "(($ac_try" in
30556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30557   *) ac_try_echo=$ac_try;;
30558 esac
30559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30560   (eval "$ac_try") 2>&5
30561   ac_status=$?
30562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30563   (exit $ac_status); }; } &&
30564          { ac_try='test -s conftest.$ac_objext'
30565   { (case "(($ac_try" in
30566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30567   *) ac_try_echo=$ac_try;;
30568 esac
30569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30570   (eval "$ac_try") 2>&5
30571   ac_status=$?
30572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30573   (exit $ac_status); }; }; then
30574   ac_cv_type_u_int64_t=yes
30575 else
30576   echo "$as_me: failed program was:" >&5
30577 sed 's/^/| /' conftest.$ac_ext >&5
30578
30579         ac_cv_type_u_int64_t=no
30580 fi
30581
30582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30583 fi
30584 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30585 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
30586 if test $ac_cv_type_u_int64_t = yes; then
30587
30588 cat >>confdefs.h <<_ACEOF
30589 #define HAVE_U_INT64_T 1
30590 _ACEOF
30591
30592
30593 else
30594   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30595 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30596    { (exit 1); exit 1; }; }
30597 fi
30598
30599 fi
30600
30601
30602
30603
30604
30605
30606
30607
30608
30609
30610 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
30611 do
30612 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30613 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30614 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30615 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30616   echo $ECHO_N "(cached) $ECHO_C" >&6
30617 else
30618   cat >conftest.$ac_ext <<_ACEOF
30619 /* confdefs.h.  */
30620 _ACEOF
30621 cat confdefs.h >>conftest.$ac_ext
30622 cat >>conftest.$ac_ext <<_ACEOF
30623 /* end confdefs.h.  */
30624 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30625    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30626 #define $ac_func innocuous_$ac_func
30627
30628 /* System header to define __stub macros and hopefully few prototypes,
30629     which can conflict with char $ac_func (); below.
30630     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30631     <limits.h> exists even on freestanding compilers.  */
30632
30633 #ifdef __STDC__
30634 # include <limits.h>
30635 #else
30636 # include <assert.h>
30637 #endif
30638
30639 #undef $ac_func
30640
30641 /* Override any GCC internal prototype to avoid an error.
30642    Use char because int might match the return type of a GCC
30643    builtin and then its argument prototype would still apply.  */
30644 #ifdef __cplusplus
30645 extern "C"
30646 #endif
30647 char $ac_func ();
30648 /* The GNU C library defines this for functions which it implements
30649     to always fail with ENOSYS.  Some functions are actually named
30650     something starting with __ and the normal name is an alias.  */
30651 #if defined __stub_$ac_func || defined __stub___$ac_func
30652 choke me
30653 #endif
30654
30655 int
30656 main ()
30657 {
30658 return $ac_func ();
30659   ;
30660   return 0;
30661 }
30662 _ACEOF
30663 rm -f conftest.$ac_objext conftest$ac_exeext
30664 if { (ac_try="$ac_link"
30665 case "(($ac_try" in
30666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30667   *) ac_try_echo=$ac_try;;
30668 esac
30669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30670   (eval "$ac_link") 2>conftest.er1
30671   ac_status=$?
30672   grep -v '^ *+' conftest.er1 >conftest.err
30673   rm -f conftest.er1
30674   cat conftest.err >&5
30675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30676   (exit $ac_status); } &&
30677          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30678   { (case "(($ac_try" in
30679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30680   *) ac_try_echo=$ac_try;;
30681 esac
30682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30683   (eval "$ac_try") 2>&5
30684   ac_status=$?
30685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30686   (exit $ac_status); }; } &&
30687          { ac_try='test -s conftest$ac_exeext'
30688   { (case "(($ac_try" in
30689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30690   *) ac_try_echo=$ac_try;;
30691 esac
30692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30693   (eval "$ac_try") 2>&5
30694   ac_status=$?
30695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30696   (exit $ac_status); }; }; then
30697   eval "$as_ac_var=yes"
30698 else
30699   echo "$as_me: failed program was:" >&5
30700 sed 's/^/| /' conftest.$ac_ext >&5
30701
30702         eval "$as_ac_var=no"
30703 fi
30704
30705 rm -f core conftest.err conftest.$ac_objext \
30706       conftest$ac_exeext conftest.$ac_ext
30707 fi
30708 ac_res=`eval echo '${'$as_ac_var'}'`
30709                { echo "$as_me:$LINENO: result: $ac_res" >&5
30710 echo "${ECHO_T}$ac_res" >&6; }
30711 if test `eval echo '${'$as_ac_var'}'` = yes; then
30712   cat >>confdefs.h <<_ACEOF
30713 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30714 _ACEOF
30715
30716 fi
30717 done
30718
30719
30720
30721
30722
30723 for ac_func in powf fmodf strtof round
30724 do
30725 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30726 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30727 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30728 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30729   echo $ECHO_N "(cached) $ECHO_C" >&6
30730 else
30731   cat >conftest.$ac_ext <<_ACEOF
30732 /* confdefs.h.  */
30733 _ACEOF
30734 cat confdefs.h >>conftest.$ac_ext
30735 cat >>conftest.$ac_ext <<_ACEOF
30736 /* end confdefs.h.  */
30737 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30738    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30739 #define $ac_func innocuous_$ac_func
30740
30741 /* System header to define __stub macros and hopefully few prototypes,
30742     which can conflict with char $ac_func (); below.
30743     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30744     <limits.h> exists even on freestanding compilers.  */
30745
30746 #ifdef __STDC__
30747 # include <limits.h>
30748 #else
30749 # include <assert.h>
30750 #endif
30751
30752 #undef $ac_func
30753
30754 /* Override any GCC internal prototype to avoid an error.
30755    Use char because int might match the return type of a GCC
30756    builtin and then its argument prototype would still apply.  */
30757 #ifdef __cplusplus
30758 extern "C"
30759 #endif
30760 char $ac_func ();
30761 /* The GNU C library defines this for functions which it implements
30762     to always fail with ENOSYS.  Some functions are actually named
30763     something starting with __ and the normal name is an alias.  */
30764 #if defined __stub_$ac_func || defined __stub___$ac_func
30765 choke me
30766 #endif
30767
30768 int
30769 main ()
30770 {
30771 return $ac_func ();
30772   ;
30773   return 0;
30774 }
30775 _ACEOF
30776 rm -f conftest.$ac_objext conftest$ac_exeext
30777 if { (ac_try="$ac_link"
30778 case "(($ac_try" in
30779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30780   *) ac_try_echo=$ac_try;;
30781 esac
30782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30783   (eval "$ac_link") 2>conftest.er1
30784   ac_status=$?
30785   grep -v '^ *+' conftest.er1 >conftest.err
30786   rm -f conftest.er1
30787   cat conftest.err >&5
30788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30789   (exit $ac_status); } &&
30790          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30791   { (case "(($ac_try" in
30792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30793   *) ac_try_echo=$ac_try;;
30794 esac
30795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30796   (eval "$ac_try") 2>&5
30797   ac_status=$?
30798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30799   (exit $ac_status); }; } &&
30800          { ac_try='test -s conftest$ac_exeext'
30801   { (case "(($ac_try" in
30802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30803   *) ac_try_echo=$ac_try;;
30804 esac
30805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30806   (eval "$ac_try") 2>&5
30807   ac_status=$?
30808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30809   (exit $ac_status); }; }; then
30810   eval "$as_ac_var=yes"
30811 else
30812   echo "$as_me: failed program was:" >&5
30813 sed 's/^/| /' conftest.$ac_ext >&5
30814
30815         eval "$as_ac_var=no"
30816 fi
30817
30818 rm -f core conftest.err conftest.$ac_objext \
30819       conftest$ac_exeext conftest.$ac_ext
30820 fi
30821 ac_res=`eval echo '${'$as_ac_var'}'`
30822                { echo "$as_me:$LINENO: result: $ac_res" >&5
30823 echo "${ECHO_T}$ac_res" >&6; }
30824 if test `eval echo '${'$as_ac_var'}'` = yes; then
30825   cat >>confdefs.h <<_ACEOF
30826 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30827 _ACEOF
30828
30829 fi
30830 done
30831
30832
30833
30834
30835
30836
30837 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
30838 do
30839 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30840 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30841 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30842 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30843   echo $ECHO_N "(cached) $ECHO_C" >&6
30844 else
30845   cat >conftest.$ac_ext <<_ACEOF
30846 /* confdefs.h.  */
30847 _ACEOF
30848 cat confdefs.h >>conftest.$ac_ext
30849 cat >>conftest.$ac_ext <<_ACEOF
30850 /* end confdefs.h.  */
30851 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30852    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30853 #define $ac_func innocuous_$ac_func
30854
30855 /* System header to define __stub macros and hopefully few prototypes,
30856     which can conflict with char $ac_func (); below.
30857     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30858     <limits.h> exists even on freestanding compilers.  */
30859
30860 #ifdef __STDC__
30861 # include <limits.h>
30862 #else
30863 # include <assert.h>
30864 #endif
30865
30866 #undef $ac_func
30867
30868 /* Override any GCC internal prototype to avoid an error.
30869    Use char because int might match the return type of a GCC
30870    builtin and then its argument prototype would still apply.  */
30871 #ifdef __cplusplus
30872 extern "C"
30873 #endif
30874 char $ac_func ();
30875 /* The GNU C library defines this for functions which it implements
30876     to always fail with ENOSYS.  Some functions are actually named
30877     something starting with __ and the normal name is an alias.  */
30878 #if defined __stub_$ac_func || defined __stub___$ac_func
30879 choke me
30880 #endif
30881
30882 int
30883 main ()
30884 {
30885 return $ac_func ();
30886   ;
30887   return 0;
30888 }
30889 _ACEOF
30890 rm -f conftest.$ac_objext conftest$ac_exeext
30891 if { (ac_try="$ac_link"
30892 case "(($ac_try" in
30893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30894   *) ac_try_echo=$ac_try;;
30895 esac
30896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30897   (eval "$ac_link") 2>conftest.er1
30898   ac_status=$?
30899   grep -v '^ *+' conftest.er1 >conftest.err
30900   rm -f conftest.er1
30901   cat conftest.err >&5
30902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30903   (exit $ac_status); } &&
30904          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30905   { (case "(($ac_try" in
30906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30907   *) ac_try_echo=$ac_try;;
30908 esac
30909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30910   (eval "$ac_try") 2>&5
30911   ac_status=$?
30912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30913   (exit $ac_status); }; } &&
30914          { ac_try='test -s conftest$ac_exeext'
30915   { (case "(($ac_try" in
30916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30917   *) ac_try_echo=$ac_try;;
30918 esac
30919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30920   (eval "$ac_try") 2>&5
30921   ac_status=$?
30922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30923   (exit $ac_status); }; }; then
30924   eval "$as_ac_var=yes"
30925 else
30926   echo "$as_me: failed program was:" >&5
30927 sed 's/^/| /' conftest.$ac_ext >&5
30928
30929         eval "$as_ac_var=no"
30930 fi
30931
30932 rm -f core conftest.err conftest.$ac_objext \
30933       conftest$ac_exeext conftest.$ac_ext
30934 fi
30935 ac_res=`eval echo '${'$as_ac_var'}'`
30936                { echo "$as_me:$LINENO: result: $ac_res" >&5
30937 echo "${ECHO_T}$ac_res" >&6; }
30938 if test `eval echo '${'$as_ac_var'}'` = yes; then
30939   cat >>confdefs.h <<_ACEOF
30940 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30941 _ACEOF
30942
30943 fi
30944 done
30945
30946
30947
30948
30949 for ac_func in isatty mkdtemp mkstemp
30950 do
30951 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30952 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30953 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30954 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30955   echo $ECHO_N "(cached) $ECHO_C" >&6
30956 else
30957   cat >conftest.$ac_ext <<_ACEOF
30958 /* confdefs.h.  */
30959 _ACEOF
30960 cat confdefs.h >>conftest.$ac_ext
30961 cat >>conftest.$ac_ext <<_ACEOF
30962 /* end confdefs.h.  */
30963 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30964    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30965 #define $ac_func innocuous_$ac_func
30966
30967 /* System header to define __stub macros and hopefully few prototypes,
30968     which can conflict with char $ac_func (); below.
30969     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30970     <limits.h> exists even on freestanding compilers.  */
30971
30972 #ifdef __STDC__
30973 # include <limits.h>
30974 #else
30975 # include <assert.h>
30976 #endif
30977
30978 #undef $ac_func
30979
30980 /* Override any GCC internal prototype to avoid an error.
30981    Use char because int might match the return type of a GCC
30982    builtin and then its argument prototype would still apply.  */
30983 #ifdef __cplusplus
30984 extern "C"
30985 #endif
30986 char $ac_func ();
30987 /* The GNU C library defines this for functions which it implements
30988     to always fail with ENOSYS.  Some functions are actually named
30989     something starting with __ and the normal name is an alias.  */
30990 #if defined __stub_$ac_func || defined __stub___$ac_func
30991 choke me
30992 #endif
30993
30994 int
30995 main ()
30996 {
30997 return $ac_func ();
30998   ;
30999   return 0;
31000 }
31001 _ACEOF
31002 rm -f conftest.$ac_objext conftest$ac_exeext
31003 if { (ac_try="$ac_link"
31004 case "(($ac_try" in
31005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31006   *) ac_try_echo=$ac_try;;
31007 esac
31008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31009   (eval "$ac_link") 2>conftest.er1
31010   ac_status=$?
31011   grep -v '^ *+' conftest.er1 >conftest.err
31012   rm -f conftest.er1
31013   cat conftest.err >&5
31014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31015   (exit $ac_status); } &&
31016          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31017   { (case "(($ac_try" in
31018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31019   *) ac_try_echo=$ac_try;;
31020 esac
31021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31022   (eval "$ac_try") 2>&5
31023   ac_status=$?
31024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31025   (exit $ac_status); }; } &&
31026          { ac_try='test -s conftest$ac_exeext'
31027   { (case "(($ac_try" in
31028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31029   *) ac_try_echo=$ac_try;;
31030 esac
31031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31032   (eval "$ac_try") 2>&5
31033   ac_status=$?
31034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31035   (exit $ac_status); }; }; then
31036   eval "$as_ac_var=yes"
31037 else
31038   echo "$as_me: failed program was:" >&5
31039 sed 's/^/| /' conftest.$ac_ext >&5
31040
31041         eval "$as_ac_var=no"
31042 fi
31043
31044 rm -f core conftest.err conftest.$ac_objext \
31045       conftest$ac_exeext conftest.$ac_ext
31046 fi
31047 ac_res=`eval echo '${'$as_ac_var'}'`
31048                { echo "$as_me:$LINENO: result: $ac_res" >&5
31049 echo "${ECHO_T}$ac_res" >&6; }
31050 if test `eval echo '${'$as_ac_var'}'` = yes; then
31051   cat >>confdefs.h <<_ACEOF
31052 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31053 _ACEOF
31054
31055 fi
31056 done
31057
31058
31059
31060
31061
31062
31063
31064
31065 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
31066 do
31067 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31068 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31069 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31070 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31071   echo $ECHO_N "(cached) $ECHO_C" >&6
31072 else
31073   cat >conftest.$ac_ext <<_ACEOF
31074 /* confdefs.h.  */
31075 _ACEOF
31076 cat confdefs.h >>conftest.$ac_ext
31077 cat >>conftest.$ac_ext <<_ACEOF
31078 /* end confdefs.h.  */
31079 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31080    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31081 #define $ac_func innocuous_$ac_func
31082
31083 /* System header to define __stub macros and hopefully few prototypes,
31084     which can conflict with char $ac_func (); below.
31085     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31086     <limits.h> exists even on freestanding compilers.  */
31087
31088 #ifdef __STDC__
31089 # include <limits.h>
31090 #else
31091 # include <assert.h>
31092 #endif
31093
31094 #undef $ac_func
31095
31096 /* Override any GCC internal prototype to avoid an error.
31097    Use char because int might match the return type of a GCC
31098    builtin and then its argument prototype would still apply.  */
31099 #ifdef __cplusplus
31100 extern "C"
31101 #endif
31102 char $ac_func ();
31103 /* The GNU C library defines this for functions which it implements
31104     to always fail with ENOSYS.  Some functions are actually named
31105     something starting with __ and the normal name is an alias.  */
31106 #if defined __stub_$ac_func || defined __stub___$ac_func
31107 choke me
31108 #endif
31109
31110 int
31111 main ()
31112 {
31113 return $ac_func ();
31114   ;
31115   return 0;
31116 }
31117 _ACEOF
31118 rm -f conftest.$ac_objext conftest$ac_exeext
31119 if { (ac_try="$ac_link"
31120 case "(($ac_try" in
31121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31122   *) ac_try_echo=$ac_try;;
31123 esac
31124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31125   (eval "$ac_link") 2>conftest.er1
31126   ac_status=$?
31127   grep -v '^ *+' conftest.er1 >conftest.err
31128   rm -f conftest.er1
31129   cat conftest.err >&5
31130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31131   (exit $ac_status); } &&
31132          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31133   { (case "(($ac_try" in
31134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31135   *) ac_try_echo=$ac_try;;
31136 esac
31137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31138   (eval "$ac_try") 2>&5
31139   ac_status=$?
31140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31141   (exit $ac_status); }; } &&
31142          { ac_try='test -s conftest$ac_exeext'
31143   { (case "(($ac_try" in
31144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31145   *) ac_try_echo=$ac_try;;
31146 esac
31147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31148   (eval "$ac_try") 2>&5
31149   ac_status=$?
31150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31151   (exit $ac_status); }; }; then
31152   eval "$as_ac_var=yes"
31153 else
31154   echo "$as_me: failed program was:" >&5
31155 sed 's/^/| /' conftest.$ac_ext >&5
31156
31157         eval "$as_ac_var=no"
31158 fi
31159
31160 rm -f core conftest.err conftest.$ac_objext \
31161       conftest$ac_exeext conftest.$ac_ext
31162 fi
31163 ac_res=`eval echo '${'$as_ac_var'}'`
31164                { echo "$as_me:$LINENO: result: $ac_res" >&5
31165 echo "${ECHO_T}$ac_res" >&6; }
31166 if test `eval echo '${'$as_ac_var'}'` = yes; then
31167   cat >>confdefs.h <<_ACEOF
31168 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31169 _ACEOF
31170
31171 fi
31172 done
31173
31174
31175
31176
31177
31178 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
31179 do
31180 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31181 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31182 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31183 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31184   echo $ECHO_N "(cached) $ECHO_C" >&6
31185 else
31186   cat >conftest.$ac_ext <<_ACEOF
31187 /* confdefs.h.  */
31188 _ACEOF
31189 cat confdefs.h >>conftest.$ac_ext
31190 cat >>conftest.$ac_ext <<_ACEOF
31191 /* end confdefs.h.  */
31192 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31193    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31194 #define $ac_func innocuous_$ac_func
31195
31196 /* System header to define __stub macros and hopefully few prototypes,
31197     which can conflict with char $ac_func (); below.
31198     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31199     <limits.h> exists even on freestanding compilers.  */
31200
31201 #ifdef __STDC__
31202 # include <limits.h>
31203 #else
31204 # include <assert.h>
31205 #endif
31206
31207 #undef $ac_func
31208
31209 /* Override any GCC internal prototype to avoid an error.
31210    Use char because int might match the return type of a GCC
31211    builtin and then its argument prototype would still apply.  */
31212 #ifdef __cplusplus
31213 extern "C"
31214 #endif
31215 char $ac_func ();
31216 /* The GNU C library defines this for functions which it implements
31217     to always fail with ENOSYS.  Some functions are actually named
31218     something starting with __ and the normal name is an alias.  */
31219 #if defined __stub_$ac_func || defined __stub___$ac_func
31220 choke me
31221 #endif
31222
31223 int
31224 main ()
31225 {
31226 return $ac_func ();
31227   ;
31228   return 0;
31229 }
31230 _ACEOF
31231 rm -f conftest.$ac_objext conftest$ac_exeext
31232 if { (ac_try="$ac_link"
31233 case "(($ac_try" in
31234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31235   *) ac_try_echo=$ac_try;;
31236 esac
31237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31238   (eval "$ac_link") 2>conftest.er1
31239   ac_status=$?
31240   grep -v '^ *+' conftest.er1 >conftest.err
31241   rm -f conftest.er1
31242   cat conftest.err >&5
31243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31244   (exit $ac_status); } &&
31245          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31246   { (case "(($ac_try" in
31247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31248   *) ac_try_echo=$ac_try;;
31249 esac
31250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31251   (eval "$ac_try") 2>&5
31252   ac_status=$?
31253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31254   (exit $ac_status); }; } &&
31255          { ac_try='test -s conftest$ac_exeext'
31256   { (case "(($ac_try" in
31257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31258   *) ac_try_echo=$ac_try;;
31259 esac
31260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31261   (eval "$ac_try") 2>&5
31262   ac_status=$?
31263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31264   (exit $ac_status); }; }; then
31265   eval "$as_ac_var=yes"
31266 else
31267   echo "$as_me: failed program was:" >&5
31268 sed 's/^/| /' conftest.$ac_ext >&5
31269
31270         eval "$as_ac_var=no"
31271 fi
31272
31273 rm -f core conftest.err conftest.$ac_objext \
31274       conftest$ac_exeext conftest.$ac_ext
31275 fi
31276 ac_res=`eval echo '${'$as_ac_var'}'`
31277                { echo "$as_me:$LINENO: result: $ac_res" >&5
31278 echo "${ECHO_T}$ac_res" >&6; }
31279 if test `eval echo '${'$as_ac_var'}'` = yes; then
31280   cat >>confdefs.h <<_ACEOF
31281 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31282 _ACEOF
31283
31284 fi
31285 done
31286
31287
31288
31289
31290
31291 for ac_func in setjmp longjmp sigsetjmp siglongjmp
31292 do
31293 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31294 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31295 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31296 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31297   echo $ECHO_N "(cached) $ECHO_C" >&6
31298 else
31299   cat >conftest.$ac_ext <<_ACEOF
31300 /* confdefs.h.  */
31301 _ACEOF
31302 cat confdefs.h >>conftest.$ac_ext
31303 cat >>conftest.$ac_ext <<_ACEOF
31304 /* end confdefs.h.  */
31305 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31306    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31307 #define $ac_func innocuous_$ac_func
31308
31309 /* System header to define __stub macros and hopefully few prototypes,
31310     which can conflict with char $ac_func (); below.
31311     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31312     <limits.h> exists even on freestanding compilers.  */
31313
31314 #ifdef __STDC__
31315 # include <limits.h>
31316 #else
31317 # include <assert.h>
31318 #endif
31319
31320 #undef $ac_func
31321
31322 /* Override any GCC internal prototype to avoid an error.
31323    Use char because int might match the return type of a GCC
31324    builtin and then its argument prototype would still apply.  */
31325 #ifdef __cplusplus
31326 extern "C"
31327 #endif
31328 char $ac_func ();
31329 /* The GNU C library defines this for functions which it implements
31330     to always fail with ENOSYS.  Some functions are actually named
31331     something starting with __ and the normal name is an alias.  */
31332 #if defined __stub_$ac_func || defined __stub___$ac_func
31333 choke me
31334 #endif
31335
31336 int
31337 main ()
31338 {
31339 return $ac_func ();
31340   ;
31341   return 0;
31342 }
31343 _ACEOF
31344 rm -f conftest.$ac_objext conftest$ac_exeext
31345 if { (ac_try="$ac_link"
31346 case "(($ac_try" in
31347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31348   *) ac_try_echo=$ac_try;;
31349 esac
31350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31351   (eval "$ac_link") 2>conftest.er1
31352   ac_status=$?
31353   grep -v '^ *+' conftest.er1 >conftest.err
31354   rm -f conftest.er1
31355   cat conftest.err >&5
31356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31357   (exit $ac_status); } &&
31358          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31359   { (case "(($ac_try" in
31360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31361   *) ac_try_echo=$ac_try;;
31362 esac
31363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31364   (eval "$ac_try") 2>&5
31365   ac_status=$?
31366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31367   (exit $ac_status); }; } &&
31368          { ac_try='test -s conftest$ac_exeext'
31369   { (case "(($ac_try" in
31370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31371   *) ac_try_echo=$ac_try;;
31372 esac
31373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31374   (eval "$ac_try") 2>&5
31375   ac_status=$?
31376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31377   (exit $ac_status); }; }; then
31378   eval "$as_ac_var=yes"
31379 else
31380   echo "$as_me: failed program was:" >&5
31381 sed 's/^/| /' conftest.$ac_ext >&5
31382
31383         eval "$as_ac_var=no"
31384 fi
31385
31386 rm -f core conftest.err conftest.$ac_objext \
31387       conftest$ac_exeext conftest.$ac_ext
31388 fi
31389 ac_res=`eval echo '${'$as_ac_var'}'`
31390                { echo "$as_me:$LINENO: result: $ac_res" >&5
31391 echo "${ECHO_T}$ac_res" >&6; }
31392 if test `eval echo '${'$as_ac_var'}'` = yes; then
31393   cat >>confdefs.h <<_ACEOF
31394 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31395 _ACEOF
31396
31397 fi
31398 done
31399
31400 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31401 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
31402 if test "${llvm_cv_c_printf_a+set}" = set; then
31403   echo $ECHO_N "(cached) $ECHO_C" >&6
31404 else
31405   ac_ext=c
31406 ac_cpp='$CPP $CPPFLAGS'
31407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31410
31411  if test "$cross_compiling" = yes; then
31412   llvmac_cv_c_printf_a=no
31413 else
31414   cat >conftest.$ac_ext <<_ACEOF
31415
31416   /* confdefs.h.  */
31417 _ACEOF
31418 cat confdefs.h >>conftest.$ac_ext
31419 cat >>conftest.$ac_ext <<_ACEOF
31420 /* end confdefs.h.  */
31421
31422 #include <stdio.h>
31423 #include <stdlib.h>
31424
31425 int
31426 main ()
31427 {
31428
31429 volatile double A, B;
31430 char Buffer[100];
31431 A = 1;
31432 A /= 10.0;
31433 sprintf(Buffer, "%a", A);
31434 B = atof(Buffer);
31435 if (A != B)
31436   return (1);
31437 if (A != 0x1.999999999999ap-4)
31438   return (1);
31439 return (0);
31440   ;
31441   return 0;
31442 }
31443 _ACEOF
31444 rm -f conftest$ac_exeext
31445 if { (ac_try="$ac_link"
31446 case "(($ac_try" in
31447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31448   *) ac_try_echo=$ac_try;;
31449 esac
31450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31451   (eval "$ac_link") 2>&5
31452   ac_status=$?
31453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31454   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31455   { (case "(($ac_try" in
31456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31457   *) ac_try_echo=$ac_try;;
31458 esac
31459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31460   (eval "$ac_try") 2>&5
31461   ac_status=$?
31462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31463   (exit $ac_status); }; }; then
31464   llvm_cv_c_printf_a=yes
31465 else
31466   echo "$as_me: program exited with status $ac_status" >&5
31467 echo "$as_me: failed program was:" >&5
31468 sed 's/^/| /' conftest.$ac_ext >&5
31469
31470 ( exit $ac_status )
31471 llvmac_cv_c_printf_a=no
31472 fi
31473 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31474 fi
31475
31476
31477  ac_ext=c
31478 ac_cpp='$CPP $CPPFLAGS'
31479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31482
31483 fi
31484 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31485 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
31486  if test "$llvm_cv_c_printf_a" = "yes"; then
31487
31488 cat >>confdefs.h <<\_ACEOF
31489 #define HAVE_PRINTF_A 1
31490 _ACEOF
31491
31492  fi
31493
31494 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31495 # for constant arguments.  Useless!
31496 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
31497 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
31498 if test "${ac_cv_working_alloca_h+set}" = set; then
31499   echo $ECHO_N "(cached) $ECHO_C" >&6
31500 else
31501   cat >conftest.$ac_ext <<_ACEOF
31502 /* confdefs.h.  */
31503 _ACEOF
31504 cat confdefs.h >>conftest.$ac_ext
31505 cat >>conftest.$ac_ext <<_ACEOF
31506 /* end confdefs.h.  */
31507 #include <alloca.h>
31508 int
31509 main ()
31510 {
31511 char *p = (char *) alloca (2 * sizeof (int));
31512                           if (p) return 0;
31513   ;
31514   return 0;
31515 }
31516 _ACEOF
31517 rm -f conftest.$ac_objext conftest$ac_exeext
31518 if { (ac_try="$ac_link"
31519 case "(($ac_try" in
31520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31521   *) ac_try_echo=$ac_try;;
31522 esac
31523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31524   (eval "$ac_link") 2>conftest.er1
31525   ac_status=$?
31526   grep -v '^ *+' conftest.er1 >conftest.err
31527   rm -f conftest.er1
31528   cat conftest.err >&5
31529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31530   (exit $ac_status); } &&
31531          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31532   { (case "(($ac_try" in
31533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31534   *) ac_try_echo=$ac_try;;
31535 esac
31536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31537   (eval "$ac_try") 2>&5
31538   ac_status=$?
31539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31540   (exit $ac_status); }; } &&
31541          { ac_try='test -s conftest$ac_exeext'
31542   { (case "(($ac_try" in
31543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31544   *) ac_try_echo=$ac_try;;
31545 esac
31546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31547   (eval "$ac_try") 2>&5
31548   ac_status=$?
31549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31550   (exit $ac_status); }; }; then
31551   ac_cv_working_alloca_h=yes
31552 else
31553   echo "$as_me: failed program was:" >&5
31554 sed 's/^/| /' conftest.$ac_ext >&5
31555
31556         ac_cv_working_alloca_h=no
31557 fi
31558
31559 rm -f core conftest.err conftest.$ac_objext \
31560       conftest$ac_exeext conftest.$ac_ext
31561 fi
31562 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31563 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
31564 if test $ac_cv_working_alloca_h = yes; then
31565
31566 cat >>confdefs.h <<\_ACEOF
31567 #define HAVE_ALLOCA_H 1
31568 _ACEOF
31569
31570 fi
31571
31572 { echo "$as_me:$LINENO: checking for alloca" >&5
31573 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
31574 if test "${ac_cv_func_alloca_works+set}" = set; then
31575   echo $ECHO_N "(cached) $ECHO_C" >&6
31576 else
31577   cat >conftest.$ac_ext <<_ACEOF
31578 /* confdefs.h.  */
31579 _ACEOF
31580 cat confdefs.h >>conftest.$ac_ext
31581 cat >>conftest.$ac_ext <<_ACEOF
31582 /* end confdefs.h.  */
31583 #ifdef __GNUC__
31584 # define alloca __builtin_alloca
31585 #else
31586 # ifdef _MSC_VER
31587 #  include <malloc.h>
31588 #  define alloca _alloca
31589 # else
31590 #  if HAVE_ALLOCA_H
31591 #   include <alloca.h>
31592 #  else
31593 #   ifdef _AIX
31594  #pragma alloca
31595 #   else
31596 #    ifndef alloca /* predefined by HP cc +Olibcalls */
31597 char *alloca ();
31598 #    endif
31599 #   endif
31600 #  endif
31601 # endif
31602 #endif
31603
31604 int
31605 main ()
31606 {
31607 char *p = (char *) alloca (1);
31608                                     if (p) return 0;
31609   ;
31610   return 0;
31611 }
31612 _ACEOF
31613 rm -f conftest.$ac_objext conftest$ac_exeext
31614 if { (ac_try="$ac_link"
31615 case "(($ac_try" in
31616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31617   *) ac_try_echo=$ac_try;;
31618 esac
31619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31620   (eval "$ac_link") 2>conftest.er1
31621   ac_status=$?
31622   grep -v '^ *+' conftest.er1 >conftest.err
31623   rm -f conftest.er1
31624   cat conftest.err >&5
31625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31626   (exit $ac_status); } &&
31627          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31628   { (case "(($ac_try" in
31629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31630   *) ac_try_echo=$ac_try;;
31631 esac
31632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31633   (eval "$ac_try") 2>&5
31634   ac_status=$?
31635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31636   (exit $ac_status); }; } &&
31637          { ac_try='test -s conftest$ac_exeext'
31638   { (case "(($ac_try" in
31639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31640   *) ac_try_echo=$ac_try;;
31641 esac
31642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31643   (eval "$ac_try") 2>&5
31644   ac_status=$?
31645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31646   (exit $ac_status); }; }; then
31647   ac_cv_func_alloca_works=yes
31648 else
31649   echo "$as_me: failed program was:" >&5
31650 sed 's/^/| /' conftest.$ac_ext >&5
31651
31652         ac_cv_func_alloca_works=no
31653 fi
31654
31655 rm -f core conftest.err conftest.$ac_objext \
31656       conftest$ac_exeext conftest.$ac_ext
31657 fi
31658 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31659 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
31660
31661 if test $ac_cv_func_alloca_works = yes; then
31662
31663 cat >>confdefs.h <<\_ACEOF
31664 #define HAVE_ALLOCA 1
31665 _ACEOF
31666
31667 else
31668   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31669 # that cause trouble.  Some versions do not even contain alloca or
31670 # contain a buggy version.  If you still want to use their alloca,
31671 # use ar to extract alloca.o from them instead of compiling alloca.c.
31672
31673 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
31674
31675 cat >>confdefs.h <<\_ACEOF
31676 #define C_ALLOCA 1
31677 _ACEOF
31678
31679
31680 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31681 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
31682 if test "${ac_cv_os_cray+set}" = set; then
31683   echo $ECHO_N "(cached) $ECHO_C" >&6
31684 else
31685   cat >conftest.$ac_ext <<_ACEOF
31686 /* confdefs.h.  */
31687 _ACEOF
31688 cat confdefs.h >>conftest.$ac_ext
31689 cat >>conftest.$ac_ext <<_ACEOF
31690 /* end confdefs.h.  */
31691 #if defined CRAY && ! defined CRAY2
31692 webecray
31693 #else
31694 wenotbecray
31695 #endif
31696
31697 _ACEOF
31698 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31699   $EGREP "webecray" >/dev/null 2>&1; then
31700   ac_cv_os_cray=yes
31701 else
31702   ac_cv_os_cray=no
31703 fi
31704 rm -f conftest*
31705
31706 fi
31707 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31708 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
31709 if test $ac_cv_os_cray = yes; then
31710   for ac_func in _getb67 GETB67 getb67; do
31711     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31712 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31713 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31714 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31715   echo $ECHO_N "(cached) $ECHO_C" >&6
31716 else
31717   cat >conftest.$ac_ext <<_ACEOF
31718 /* confdefs.h.  */
31719 _ACEOF
31720 cat confdefs.h >>conftest.$ac_ext
31721 cat >>conftest.$ac_ext <<_ACEOF
31722 /* end confdefs.h.  */
31723 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31724    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31725 #define $ac_func innocuous_$ac_func
31726
31727 /* System header to define __stub macros and hopefully few prototypes,
31728     which can conflict with char $ac_func (); below.
31729     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31730     <limits.h> exists even on freestanding compilers.  */
31731
31732 #ifdef __STDC__
31733 # include <limits.h>
31734 #else
31735 # include <assert.h>
31736 #endif
31737
31738 #undef $ac_func
31739
31740 /* Override any GCC internal prototype to avoid an error.
31741    Use char because int might match the return type of a GCC
31742    builtin and then its argument prototype would still apply.  */
31743 #ifdef __cplusplus
31744 extern "C"
31745 #endif
31746 char $ac_func ();
31747 /* The GNU C library defines this for functions which it implements
31748     to always fail with ENOSYS.  Some functions are actually named
31749     something starting with __ and the normal name is an alias.  */
31750 #if defined __stub_$ac_func || defined __stub___$ac_func
31751 choke me
31752 #endif
31753
31754 int
31755 main ()
31756 {
31757 return $ac_func ();
31758   ;
31759   return 0;
31760 }
31761 _ACEOF
31762 rm -f conftest.$ac_objext conftest$ac_exeext
31763 if { (ac_try="$ac_link"
31764 case "(($ac_try" in
31765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31766   *) ac_try_echo=$ac_try;;
31767 esac
31768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31769   (eval "$ac_link") 2>conftest.er1
31770   ac_status=$?
31771   grep -v '^ *+' conftest.er1 >conftest.err
31772   rm -f conftest.er1
31773   cat conftest.err >&5
31774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31775   (exit $ac_status); } &&
31776          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31777   { (case "(($ac_try" in
31778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31779   *) ac_try_echo=$ac_try;;
31780 esac
31781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31782   (eval "$ac_try") 2>&5
31783   ac_status=$?
31784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31785   (exit $ac_status); }; } &&
31786          { ac_try='test -s conftest$ac_exeext'
31787   { (case "(($ac_try" in
31788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31789   *) ac_try_echo=$ac_try;;
31790 esac
31791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31792   (eval "$ac_try") 2>&5
31793   ac_status=$?
31794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31795   (exit $ac_status); }; }; then
31796   eval "$as_ac_var=yes"
31797 else
31798   echo "$as_me: failed program was:" >&5
31799 sed 's/^/| /' conftest.$ac_ext >&5
31800
31801         eval "$as_ac_var=no"
31802 fi
31803
31804 rm -f core conftest.err conftest.$ac_objext \
31805       conftest$ac_exeext conftest.$ac_ext
31806 fi
31807 ac_res=`eval echo '${'$as_ac_var'}'`
31808                { echo "$as_me:$LINENO: result: $ac_res" >&5
31809 echo "${ECHO_T}$ac_res" >&6; }
31810 if test `eval echo '${'$as_ac_var'}'` = yes; then
31811
31812 cat >>confdefs.h <<_ACEOF
31813 #define CRAY_STACKSEG_END $ac_func
31814 _ACEOF
31815
31816     break
31817 fi
31818
31819   done
31820 fi
31821
31822 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31823 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
31824 if test "${ac_cv_c_stack_direction+set}" = set; then
31825   echo $ECHO_N "(cached) $ECHO_C" >&6
31826 else
31827   if test "$cross_compiling" = yes; then
31828   ac_cv_c_stack_direction=0
31829 else
31830   cat >conftest.$ac_ext <<_ACEOF
31831 /* confdefs.h.  */
31832 _ACEOF
31833 cat confdefs.h >>conftest.$ac_ext
31834 cat >>conftest.$ac_ext <<_ACEOF
31835 /* end confdefs.h.  */
31836 $ac_includes_default
31837 int
31838 find_stack_direction ()
31839 {
31840   static char *addr = 0;
31841   auto char dummy;
31842   if (addr == 0)
31843     {
31844       addr = &dummy;
31845       return find_stack_direction ();
31846     }
31847   else
31848     return (&dummy > addr) ? 1 : -1;
31849 }
31850
31851 int
31852 main ()
31853 {
31854   return find_stack_direction () < 0;
31855 }
31856 _ACEOF
31857 rm -f conftest$ac_exeext
31858 if { (ac_try="$ac_link"
31859 case "(($ac_try" in
31860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31861   *) ac_try_echo=$ac_try;;
31862 esac
31863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31864   (eval "$ac_link") 2>&5
31865   ac_status=$?
31866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31867   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31868   { (case "(($ac_try" in
31869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31870   *) ac_try_echo=$ac_try;;
31871 esac
31872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31873   (eval "$ac_try") 2>&5
31874   ac_status=$?
31875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31876   (exit $ac_status); }; }; then
31877   ac_cv_c_stack_direction=1
31878 else
31879   echo "$as_me: program exited with status $ac_status" >&5
31880 echo "$as_me: failed program was:" >&5
31881 sed 's/^/| /' conftest.$ac_ext >&5
31882
31883 ( exit $ac_status )
31884 ac_cv_c_stack_direction=-1
31885 fi
31886 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31887 fi
31888
31889
31890 fi
31891 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31892 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
31893
31894 cat >>confdefs.h <<_ACEOF
31895 #define STACK_DIRECTION $ac_cv_c_stack_direction
31896 _ACEOF
31897
31898
31899 fi
31900
31901
31902 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
31903 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
31904 if test "${ac_cv_func_rand48+set}" = set; then
31905   echo $ECHO_N "(cached) $ECHO_C" >&6
31906 else
31907   ac_ext=cpp
31908 ac_cpp='$CXXCPP $CPPFLAGS'
31909 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31910 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31911 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31912
31913    cat >conftest.$ac_ext <<_ACEOF
31914 /* confdefs.h.  */
31915 _ACEOF
31916 cat confdefs.h >>conftest.$ac_ext
31917 cat >>conftest.$ac_ext <<_ACEOF
31918 /* end confdefs.h.  */
31919 #include <stdlib.h>
31920 int
31921 main ()
31922 {
31923 srand48(0);lrand48();drand48();
31924   ;
31925   return 0;
31926 }
31927 _ACEOF
31928 rm -f conftest.$ac_objext
31929 if { (ac_try="$ac_compile"
31930 case "(($ac_try" in
31931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31932   *) ac_try_echo=$ac_try;;
31933 esac
31934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31935   (eval "$ac_compile") 2>conftest.er1
31936   ac_status=$?
31937   grep -v '^ *+' conftest.er1 >conftest.err
31938   rm -f conftest.er1
31939   cat conftest.err >&5
31940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31941   (exit $ac_status); } &&
31942          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31943   { (case "(($ac_try" in
31944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31945   *) ac_try_echo=$ac_try;;
31946 esac
31947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31948   (eval "$ac_try") 2>&5
31949   ac_status=$?
31950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31951   (exit $ac_status); }; } &&
31952          { ac_try='test -s conftest.$ac_objext'
31953   { (case "(($ac_try" in
31954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31955   *) ac_try_echo=$ac_try;;
31956 esac
31957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31958   (eval "$ac_try") 2>&5
31959   ac_status=$?
31960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31961   (exit $ac_status); }; }; then
31962   ac_cv_func_rand48=yes
31963 else
31964   echo "$as_me: failed program was:" >&5
31965 sed 's/^/| /' conftest.$ac_ext >&5
31966
31967         ac_cv_func_rand48=no
31968 fi
31969
31970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31971   ac_ext=c
31972 ac_cpp='$CPP $CPPFLAGS'
31973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31976
31977 fi
31978 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
31979 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
31980
31981 if test "$ac_cv_func_rand48" = "yes" ; then
31982
31983 cat >>confdefs.h <<\_ACEOF
31984 #define HAVE_RAND48 1
31985 _ACEOF
31986
31987 fi
31988
31989
31990 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31991 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
31992 if test "${ac_cv_cxx_namespaces+set}" = set; then
31993   echo $ECHO_N "(cached) $ECHO_C" >&6
31994 else
31995   ac_ext=cpp
31996 ac_cpp='$CXXCPP $CPPFLAGS'
31997 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31998 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31999 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32000
32001  cat >conftest.$ac_ext <<_ACEOF
32002 /* confdefs.h.  */
32003 _ACEOF
32004 cat confdefs.h >>conftest.$ac_ext
32005 cat >>conftest.$ac_ext <<_ACEOF
32006 /* end confdefs.h.  */
32007 namespace Outer { namespace Inner { int i = 0; }}
32008 int
32009 main ()
32010 {
32011 using namespace Outer::Inner; return i;
32012   ;
32013   return 0;
32014 }
32015 _ACEOF
32016 rm -f conftest.$ac_objext
32017 if { (ac_try="$ac_compile"
32018 case "(($ac_try" in
32019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32020   *) ac_try_echo=$ac_try;;
32021 esac
32022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32023   (eval "$ac_compile") 2>conftest.er1
32024   ac_status=$?
32025   grep -v '^ *+' conftest.er1 >conftest.err
32026   rm -f conftest.er1
32027   cat conftest.err >&5
32028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32029   (exit $ac_status); } &&
32030          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32031   { (case "(($ac_try" in
32032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32033   *) ac_try_echo=$ac_try;;
32034 esac
32035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32036   (eval "$ac_try") 2>&5
32037   ac_status=$?
32038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32039   (exit $ac_status); }; } &&
32040          { ac_try='test -s conftest.$ac_objext'
32041   { (case "(($ac_try" in
32042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32043   *) ac_try_echo=$ac_try;;
32044 esac
32045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32046   (eval "$ac_try") 2>&5
32047   ac_status=$?
32048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32049   (exit $ac_status); }; }; then
32050   ac_cv_cxx_namespaces=yes
32051 else
32052   echo "$as_me: failed program was:" >&5
32053 sed 's/^/| /' conftest.$ac_ext >&5
32054
32055         ac_cv_cxx_namespaces=no
32056 fi
32057
32058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32059  ac_ext=c
32060 ac_cpp='$CPP $CPPFLAGS'
32061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32064
32065
32066 fi
32067 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
32068 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
32069 if test "$ac_cv_cxx_namespaces" = yes; then
32070
32071 cat >>confdefs.h <<\_ACEOF
32072 #define HAVE_NAMESPACES
32073 _ACEOF
32074
32075 fi
32076
32077 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32078 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
32079 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32080   echo $ECHO_N "(cached) $ECHO_C" >&6
32081 else
32082
32083   ac_ext=cpp
32084 ac_cpp='$CXXCPP $CPPFLAGS'
32085 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32086 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32087 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32088
32089   cat >conftest.$ac_ext <<_ACEOF
32090 /* confdefs.h.  */
32091 _ACEOF
32092 cat confdefs.h >>conftest.$ac_ext
32093 cat >>conftest.$ac_ext <<_ACEOF
32094 /* end confdefs.h.  */
32095 #include <iterator>
32096 #ifdef HAVE_NAMESPACES
32097 using namespace std;
32098 #endif
32099 int
32100 main ()
32101 {
32102 iterator<int,int,int> t; return 0;
32103   ;
32104   return 0;
32105 }
32106 _ACEOF
32107 rm -f conftest.$ac_objext
32108 if { (ac_try="$ac_compile"
32109 case "(($ac_try" in
32110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32111   *) ac_try_echo=$ac_try;;
32112 esac
32113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32114   (eval "$ac_compile") 2>conftest.er1
32115   ac_status=$?
32116   grep -v '^ *+' conftest.er1 >conftest.err
32117   rm -f conftest.er1
32118   cat conftest.err >&5
32119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32120   (exit $ac_status); } &&
32121          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32122   { (case "(($ac_try" in
32123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32124   *) ac_try_echo=$ac_try;;
32125 esac
32126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32127   (eval "$ac_try") 2>&5
32128   ac_status=$?
32129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32130   (exit $ac_status); }; } &&
32131          { ac_try='test -s conftest.$ac_objext'
32132   { (case "(($ac_try" in
32133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32134   *) ac_try_echo=$ac_try;;
32135 esac
32136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32137   (eval "$ac_try") 2>&5
32138   ac_status=$?
32139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32140   (exit $ac_status); }; }; then
32141   ac_cv_cxx_have_std_iterator=yes
32142 else
32143   echo "$as_me: failed program was:" >&5
32144 sed 's/^/| /' conftest.$ac_ext >&5
32145
32146         ac_cv_cxx_have_std_iterator=no
32147 fi
32148
32149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32150   ac_ext=c
32151 ac_cpp='$CPP $CPPFLAGS'
32152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32155
32156
32157 fi
32158 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32159 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
32160 if test "$ac_cv_cxx_have_std_iterator" = yes
32161 then
32162
32163 cat >>confdefs.h <<\_ACEOF
32164 #define HAVE_STD_ITERATOR 1
32165 _ACEOF
32166
32167 else
32168
32169 cat >>confdefs.h <<\_ACEOF
32170 #define HAVE_STD_ITERATOR 0
32171 _ACEOF
32172
32173 fi
32174
32175 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32176 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
32177 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32178   echo $ECHO_N "(cached) $ECHO_C" >&6
32179 else
32180
32181   ac_ext=cpp
32182 ac_cpp='$CXXCPP $CPPFLAGS'
32183 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32184 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32185 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32186
32187   cat >conftest.$ac_ext <<_ACEOF
32188 /* confdefs.h.  */
32189 _ACEOF
32190 cat confdefs.h >>conftest.$ac_ext
32191 cat >>conftest.$ac_ext <<_ACEOF
32192 /* end confdefs.h.  */
32193 #include <iterator>
32194 #ifdef HAVE_NAMESPACES
32195 using namespace std;
32196 #endif
32197 int
32198 main ()
32199 {
32200 bidirectional_iterator<int,int> t; return 0;
32201   ;
32202   return 0;
32203 }
32204 _ACEOF
32205 rm -f conftest.$ac_objext
32206 if { (ac_try="$ac_compile"
32207 case "(($ac_try" in
32208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32209   *) ac_try_echo=$ac_try;;
32210 esac
32211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32212   (eval "$ac_compile") 2>conftest.er1
32213   ac_status=$?
32214   grep -v '^ *+' conftest.er1 >conftest.err
32215   rm -f conftest.er1
32216   cat conftest.err >&5
32217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32218   (exit $ac_status); } &&
32219          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32220   { (case "(($ac_try" in
32221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32222   *) ac_try_echo=$ac_try;;
32223 esac
32224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32225   (eval "$ac_try") 2>&5
32226   ac_status=$?
32227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32228   (exit $ac_status); }; } &&
32229          { ac_try='test -s conftest.$ac_objext'
32230   { (case "(($ac_try" in
32231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32232   *) ac_try_echo=$ac_try;;
32233 esac
32234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32235   (eval "$ac_try") 2>&5
32236   ac_status=$?
32237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32238   (exit $ac_status); }; }; then
32239   ac_cv_cxx_have_bi_iterator=yes
32240 else
32241   echo "$as_me: failed program was:" >&5
32242 sed 's/^/| /' conftest.$ac_ext >&5
32243
32244         ac_cv_cxx_have_bi_iterator=no
32245 fi
32246
32247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32248   ac_ext=c
32249 ac_cpp='$CPP $CPPFLAGS'
32250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32253
32254
32255 fi
32256 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32257 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
32258 if test "$ac_cv_cxx_have_bi_iterator" = yes
32259 then
32260
32261 cat >>confdefs.h <<\_ACEOF
32262 #define HAVE_BI_ITERATOR 1
32263 _ACEOF
32264
32265 else
32266
32267 cat >>confdefs.h <<\_ACEOF
32268 #define HAVE_BI_ITERATOR 0
32269 _ACEOF
32270
32271 fi
32272
32273 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32274 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
32275 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32276   echo $ECHO_N "(cached) $ECHO_C" >&6
32277 else
32278
32279   ac_ext=cpp
32280 ac_cpp='$CXXCPP $CPPFLAGS'
32281 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32282 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32283 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32284
32285   cat >conftest.$ac_ext <<_ACEOF
32286 /* confdefs.h.  */
32287 _ACEOF
32288 cat confdefs.h >>conftest.$ac_ext
32289 cat >>conftest.$ac_ext <<_ACEOF
32290 /* end confdefs.h.  */
32291 #include <iterator>
32292 #ifdef HAVE_NAMESPACES
32293 using namespace std;
32294 #endif
32295 int
32296 main ()
32297 {
32298 forward_iterator<int,int> t; return 0;
32299   ;
32300   return 0;
32301 }
32302 _ACEOF
32303 rm -f conftest.$ac_objext
32304 if { (ac_try="$ac_compile"
32305 case "(($ac_try" in
32306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32307   *) ac_try_echo=$ac_try;;
32308 esac
32309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32310   (eval "$ac_compile") 2>conftest.er1
32311   ac_status=$?
32312   grep -v '^ *+' conftest.er1 >conftest.err
32313   rm -f conftest.er1
32314   cat conftest.err >&5
32315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32316   (exit $ac_status); } &&
32317          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32318   { (case "(($ac_try" in
32319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32320   *) ac_try_echo=$ac_try;;
32321 esac
32322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32323   (eval "$ac_try") 2>&5
32324   ac_status=$?
32325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32326   (exit $ac_status); }; } &&
32327          { ac_try='test -s conftest.$ac_objext'
32328   { (case "(($ac_try" in
32329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32330   *) ac_try_echo=$ac_try;;
32331 esac
32332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32333   (eval "$ac_try") 2>&5
32334   ac_status=$?
32335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32336   (exit $ac_status); }; }; then
32337   ac_cv_cxx_have_fwd_iterator=yes
32338 else
32339   echo "$as_me: failed program was:" >&5
32340 sed 's/^/| /' conftest.$ac_ext >&5
32341
32342         ac_cv_cxx_have_fwd_iterator=no
32343 fi
32344
32345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32346   ac_ext=c
32347 ac_cpp='$CPP $CPPFLAGS'
32348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32351
32352
32353 fi
32354 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32355 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
32356 if test "$ac_cv_cxx_have_fwd_iterator" = yes
32357 then
32358
32359 cat >>confdefs.h <<\_ACEOF
32360 #define HAVE_FWD_ITERATOR 1
32361 _ACEOF
32362
32363 else
32364
32365 cat >>confdefs.h <<\_ACEOF
32366 #define HAVE_FWD_ITERATOR 0
32367 _ACEOF
32368
32369 fi
32370
32371
32372 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32373 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
32374 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32375   echo $ECHO_N "(cached) $ECHO_C" >&6
32376 else
32377   ac_ext=cpp
32378 ac_cpp='$CXXCPP $CPPFLAGS'
32379 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32380 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32381 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32382
32383    cat >conftest.$ac_ext <<_ACEOF
32384 /* confdefs.h.  */
32385 _ACEOF
32386 cat confdefs.h >>conftest.$ac_ext
32387 cat >>conftest.$ac_ext <<_ACEOF
32388 /* end confdefs.h.  */
32389 #include <math.h>
32390 int
32391 main ()
32392 {
32393 float f; isnan(f);
32394   ;
32395   return 0;
32396 }
32397 _ACEOF
32398 rm -f conftest.$ac_objext
32399 if { (ac_try="$ac_compile"
32400 case "(($ac_try" in
32401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32402   *) ac_try_echo=$ac_try;;
32403 esac
32404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32405   (eval "$ac_compile") 2>conftest.er1
32406   ac_status=$?
32407   grep -v '^ *+' conftest.er1 >conftest.err
32408   rm -f conftest.er1
32409   cat conftest.err >&5
32410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32411   (exit $ac_status); } &&
32412          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32413   { (case "(($ac_try" in
32414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32415   *) ac_try_echo=$ac_try;;
32416 esac
32417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32418   (eval "$ac_try") 2>&5
32419   ac_status=$?
32420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32421   (exit $ac_status); }; } &&
32422          { ac_try='test -s conftest.$ac_objext'
32423   { (case "(($ac_try" in
32424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32425   *) ac_try_echo=$ac_try;;
32426 esac
32427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32428   (eval "$ac_try") 2>&5
32429   ac_status=$?
32430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32431   (exit $ac_status); }; }; then
32432   ac_cv_func_isnan_in_math_h=yes
32433 else
32434   echo "$as_me: failed program was:" >&5
32435 sed 's/^/| /' conftest.$ac_ext >&5
32436
32437         ac_cv_func_isnan_in_math_h=no
32438 fi
32439
32440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32441   ac_ext=c
32442 ac_cpp='$CPP $CPPFLAGS'
32443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32446
32447 fi
32448 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32449 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
32450
32451
32452 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
32453
32454 cat >>confdefs.h <<\_ACEOF
32455 #define HAVE_ISNAN_IN_MATH_H 1
32456 _ACEOF
32457
32458 fi
32459
32460 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32461 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
32462 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32463   echo $ECHO_N "(cached) $ECHO_C" >&6
32464 else
32465   ac_ext=cpp
32466 ac_cpp='$CXXCPP $CPPFLAGS'
32467 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32468 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32469 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32470
32471    cat >conftest.$ac_ext <<_ACEOF
32472 /* confdefs.h.  */
32473 _ACEOF
32474 cat confdefs.h >>conftest.$ac_ext
32475 cat >>conftest.$ac_ext <<_ACEOF
32476 /* end confdefs.h.  */
32477 #include <cmath>
32478 int
32479 main ()
32480 {
32481 float f; isnan(f);
32482   ;
32483   return 0;
32484 }
32485 _ACEOF
32486 rm -f conftest.$ac_objext
32487 if { (ac_try="$ac_compile"
32488 case "(($ac_try" in
32489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32490   *) ac_try_echo=$ac_try;;
32491 esac
32492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32493   (eval "$ac_compile") 2>conftest.er1
32494   ac_status=$?
32495   grep -v '^ *+' conftest.er1 >conftest.err
32496   rm -f conftest.er1
32497   cat conftest.err >&5
32498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32499   (exit $ac_status); } &&
32500          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32501   { (case "(($ac_try" in
32502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32503   *) ac_try_echo=$ac_try;;
32504 esac
32505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32506   (eval "$ac_try") 2>&5
32507   ac_status=$?
32508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32509   (exit $ac_status); }; } &&
32510          { ac_try='test -s conftest.$ac_objext'
32511   { (case "(($ac_try" in
32512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32513   *) ac_try_echo=$ac_try;;
32514 esac
32515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32516   (eval "$ac_try") 2>&5
32517   ac_status=$?
32518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32519   (exit $ac_status); }; }; then
32520   ac_cv_func_isnan_in_cmath=yes
32521 else
32522   echo "$as_me: failed program was:" >&5
32523 sed 's/^/| /' conftest.$ac_ext >&5
32524
32525         ac_cv_func_isnan_in_cmath=no
32526 fi
32527
32528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32529   ac_ext=c
32530 ac_cpp='$CPP $CPPFLAGS'
32531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32534
32535 fi
32536 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32537 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
32538
32539 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
32540
32541 cat >>confdefs.h <<\_ACEOF
32542 #define HAVE_ISNAN_IN_CMATH 1
32543 _ACEOF
32544
32545 fi
32546
32547 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32548 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
32549 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32550   echo $ECHO_N "(cached) $ECHO_C" >&6
32551 else
32552   ac_ext=cpp
32553 ac_cpp='$CXXCPP $CPPFLAGS'
32554 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32555 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32556 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32557
32558    cat >conftest.$ac_ext <<_ACEOF
32559 /* confdefs.h.  */
32560 _ACEOF
32561 cat confdefs.h >>conftest.$ac_ext
32562 cat >>conftest.$ac_ext <<_ACEOF
32563 /* end confdefs.h.  */
32564 #include <cmath>
32565 int
32566 main ()
32567 {
32568 float f; std::isnan(f);
32569   ;
32570   return 0;
32571 }
32572 _ACEOF
32573 rm -f conftest.$ac_objext
32574 if { (ac_try="$ac_compile"
32575 case "(($ac_try" in
32576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32577   *) ac_try_echo=$ac_try;;
32578 esac
32579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32580   (eval "$ac_compile") 2>conftest.er1
32581   ac_status=$?
32582   grep -v '^ *+' conftest.er1 >conftest.err
32583   rm -f conftest.er1
32584   cat conftest.err >&5
32585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32586   (exit $ac_status); } &&
32587          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32588   { (case "(($ac_try" in
32589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32590   *) ac_try_echo=$ac_try;;
32591 esac
32592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32593   (eval "$ac_try") 2>&5
32594   ac_status=$?
32595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32596   (exit $ac_status); }; } &&
32597          { ac_try='test -s conftest.$ac_objext'
32598   { (case "(($ac_try" in
32599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32600   *) ac_try_echo=$ac_try;;
32601 esac
32602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32603   (eval "$ac_try") 2>&5
32604   ac_status=$?
32605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32606   (exit $ac_status); }; }; then
32607   ac_cv_func_std_isnan_in_cmath=yes
32608 else
32609   echo "$as_me: failed program was:" >&5
32610 sed 's/^/| /' conftest.$ac_ext >&5
32611
32612         ac_cv_func_std_isnan_in_cmath=no
32613 fi
32614
32615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32616   ac_ext=c
32617 ac_cpp='$CPP $CPPFLAGS'
32618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32621
32622 fi
32623 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
32624 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
32625
32626 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
32627
32628 cat >>confdefs.h <<\_ACEOF
32629 #define HAVE_STD_ISNAN_IN_CMATH 1
32630 _ACEOF
32631
32632 fi
32633
32634
32635 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
32636 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
32637 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
32638   echo $ECHO_N "(cached) $ECHO_C" >&6
32639 else
32640   ac_ext=cpp
32641 ac_cpp='$CXXCPP $CPPFLAGS'
32642 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32643 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32644 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32645
32646    cat >conftest.$ac_ext <<_ACEOF
32647 /* confdefs.h.  */
32648 _ACEOF
32649 cat confdefs.h >>conftest.$ac_ext
32650 cat >>conftest.$ac_ext <<_ACEOF
32651 /* end confdefs.h.  */
32652 #include <math.h>
32653 int
32654 main ()
32655 {
32656 float f; isinf(f);
32657   ;
32658   return 0;
32659 }
32660 _ACEOF
32661 rm -f conftest.$ac_objext
32662 if { (ac_try="$ac_compile"
32663 case "(($ac_try" in
32664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32665   *) ac_try_echo=$ac_try;;
32666 esac
32667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32668   (eval "$ac_compile") 2>conftest.er1
32669   ac_status=$?
32670   grep -v '^ *+' conftest.er1 >conftest.err
32671   rm -f conftest.er1
32672   cat conftest.err >&5
32673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32674   (exit $ac_status); } &&
32675          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32676   { (case "(($ac_try" in
32677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32678   *) ac_try_echo=$ac_try;;
32679 esac
32680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32681   (eval "$ac_try") 2>&5
32682   ac_status=$?
32683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32684   (exit $ac_status); }; } &&
32685          { ac_try='test -s conftest.$ac_objext'
32686   { (case "(($ac_try" in
32687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32688   *) ac_try_echo=$ac_try;;
32689 esac
32690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32691   (eval "$ac_try") 2>&5
32692   ac_status=$?
32693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32694   (exit $ac_status); }; }; then
32695   ac_cv_func_isinf_in_math_h=yes
32696 else
32697   echo "$as_me: failed program was:" >&5
32698 sed 's/^/| /' conftest.$ac_ext >&5
32699
32700         ac_cv_func_isinf_in_math_h=no
32701 fi
32702
32703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32704   ac_ext=c
32705 ac_cpp='$CPP $CPPFLAGS'
32706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32709
32710 fi
32711 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
32712 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
32713
32714 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
32715
32716 cat >>confdefs.h <<\_ACEOF
32717 #define HAVE_ISINF_IN_MATH_H 1
32718 _ACEOF
32719
32720 fi
32721
32722 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
32723 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
32724 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
32725   echo $ECHO_N "(cached) $ECHO_C" >&6
32726 else
32727   ac_ext=cpp
32728 ac_cpp='$CXXCPP $CPPFLAGS'
32729 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32730 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32731 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32732
32733    cat >conftest.$ac_ext <<_ACEOF
32734 /* confdefs.h.  */
32735 _ACEOF
32736 cat confdefs.h >>conftest.$ac_ext
32737 cat >>conftest.$ac_ext <<_ACEOF
32738 /* end confdefs.h.  */
32739 #include <cmath>
32740 int
32741 main ()
32742 {
32743 float f; isinf(f);
32744   ;
32745   return 0;
32746 }
32747 _ACEOF
32748 rm -f conftest.$ac_objext
32749 if { (ac_try="$ac_compile"
32750 case "(($ac_try" in
32751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32752   *) ac_try_echo=$ac_try;;
32753 esac
32754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32755   (eval "$ac_compile") 2>conftest.er1
32756   ac_status=$?
32757   grep -v '^ *+' conftest.er1 >conftest.err
32758   rm -f conftest.er1
32759   cat conftest.err >&5
32760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32761   (exit $ac_status); } &&
32762          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32763   { (case "(($ac_try" in
32764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32765   *) ac_try_echo=$ac_try;;
32766 esac
32767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32768   (eval "$ac_try") 2>&5
32769   ac_status=$?
32770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32771   (exit $ac_status); }; } &&
32772          { ac_try='test -s conftest.$ac_objext'
32773   { (case "(($ac_try" in
32774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32775   *) ac_try_echo=$ac_try;;
32776 esac
32777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32778   (eval "$ac_try") 2>&5
32779   ac_status=$?
32780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32781   (exit $ac_status); }; }; then
32782   ac_cv_func_isinf_in_cmath=yes
32783 else
32784   echo "$as_me: failed program was:" >&5
32785 sed 's/^/| /' conftest.$ac_ext >&5
32786
32787         ac_cv_func_isinf_in_cmath=no
32788 fi
32789
32790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32791   ac_ext=c
32792 ac_cpp='$CPP $CPPFLAGS'
32793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32796
32797 fi
32798 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
32799 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
32800
32801 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
32802
32803 cat >>confdefs.h <<\_ACEOF
32804 #define HAVE_ISINF_IN_CMATH 1
32805 _ACEOF
32806
32807 fi
32808
32809 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
32810 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
32811 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
32812   echo $ECHO_N "(cached) $ECHO_C" >&6
32813 else
32814   ac_ext=cpp
32815 ac_cpp='$CXXCPP $CPPFLAGS'
32816 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32817 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32818 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32819
32820    cat >conftest.$ac_ext <<_ACEOF
32821 /* confdefs.h.  */
32822 _ACEOF
32823 cat confdefs.h >>conftest.$ac_ext
32824 cat >>conftest.$ac_ext <<_ACEOF
32825 /* end confdefs.h.  */
32826 #include <cmath>
32827 int
32828 main ()
32829 {
32830 float f; std::isinf(f)}
32831   ;
32832   return 0;
32833 }
32834 _ACEOF
32835 rm -f conftest.$ac_objext
32836 if { (ac_try="$ac_compile"
32837 case "(($ac_try" in
32838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32839   *) ac_try_echo=$ac_try;;
32840 esac
32841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32842   (eval "$ac_compile") 2>conftest.er1
32843   ac_status=$?
32844   grep -v '^ *+' conftest.er1 >conftest.err
32845   rm -f conftest.er1
32846   cat conftest.err >&5
32847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32848   (exit $ac_status); } &&
32849          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32850   { (case "(($ac_try" in
32851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32852   *) ac_try_echo=$ac_try;;
32853 esac
32854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32855   (eval "$ac_try") 2>&5
32856   ac_status=$?
32857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32858   (exit $ac_status); }; } &&
32859          { ac_try='test -s conftest.$ac_objext'
32860   { (case "(($ac_try" in
32861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32862   *) ac_try_echo=$ac_try;;
32863 esac
32864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32865   (eval "$ac_try") 2>&5
32866   ac_status=$?
32867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32868   (exit $ac_status); }; }; then
32869   ac_cv_func_std_isinf_in_cmath=yes
32870 else
32871   echo "$as_me: failed program was:" >&5
32872 sed 's/^/| /' conftest.$ac_ext >&5
32873
32874         ac_cv_func_std_isinf_in_cmath=no
32875 fi
32876
32877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32878   ac_ext=c
32879 ac_cpp='$CPP $CPPFLAGS'
32880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32883
32884 fi
32885 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
32886 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
32887
32888 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
32889
32890 cat >>confdefs.h <<\_ACEOF
32891 #define HAVE_STD_ISINF_IN_CMATH 1
32892 _ACEOF
32893
32894 fi
32895
32896 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
32897 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
32898 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
32899   echo $ECHO_N "(cached) $ECHO_C" >&6
32900 else
32901   ac_ext=cpp
32902 ac_cpp='$CXXCPP $CPPFLAGS'
32903 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32904 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32905 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32906
32907    cat >conftest.$ac_ext <<_ACEOF
32908 /* confdefs.h.  */
32909 _ACEOF
32910 cat confdefs.h >>conftest.$ac_ext
32911 cat >>conftest.$ac_ext <<_ACEOF
32912 /* end confdefs.h.  */
32913 #include <ieeefp.h>
32914 int
32915 main ()
32916 {
32917 float f; finite(f);
32918   ;
32919   return 0;
32920 }
32921 _ACEOF
32922 rm -f conftest.$ac_objext
32923 if { (ac_try="$ac_compile"
32924 case "(($ac_try" in
32925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32926   *) ac_try_echo=$ac_try;;
32927 esac
32928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32929   (eval "$ac_compile") 2>conftest.er1
32930   ac_status=$?
32931   grep -v '^ *+' conftest.er1 >conftest.err
32932   rm -f conftest.er1
32933   cat conftest.err >&5
32934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32935   (exit $ac_status); } &&
32936          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32937   { (case "(($ac_try" in
32938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32939   *) ac_try_echo=$ac_try;;
32940 esac
32941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32942   (eval "$ac_try") 2>&5
32943   ac_status=$?
32944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32945   (exit $ac_status); }; } &&
32946          { ac_try='test -s conftest.$ac_objext'
32947   { (case "(($ac_try" in
32948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32949   *) ac_try_echo=$ac_try;;
32950 esac
32951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32952   (eval "$ac_try") 2>&5
32953   ac_status=$?
32954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32955   (exit $ac_status); }; }; then
32956   ac_cv_func_finite_in_ieeefp_h=yes
32957 else
32958   echo "$as_me: failed program was:" >&5
32959 sed 's/^/| /' conftest.$ac_ext >&5
32960
32961         ac_cv_func_finite_in_ieeefp_h=no
32962 fi
32963
32964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32965   ac_ext=c
32966 ac_cpp='$CPP $CPPFLAGS'
32967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32970
32971 fi
32972 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
32973 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
32974
32975 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
32976
32977 cat >>confdefs.h <<\_ACEOF
32978 #define HAVE_FINITE_IN_IEEEFP_H 1
32979 _ACEOF
32980
32981 fi
32982
32983
32984
32985 if test "$llvm_cv_platform_type" = "Unix" ; then
32986
32987
32988 for ac_header in stdlib.h unistd.h
32989 do
32990 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32991 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32992   { echo "$as_me:$LINENO: checking for $ac_header" >&5
32993 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32994 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32995   echo $ECHO_N "(cached) $ECHO_C" >&6
32996 fi
32997 ac_res=`eval echo '${'$as_ac_Header'}'`
32998                { echo "$as_me:$LINENO: result: $ac_res" >&5
32999 echo "${ECHO_T}$ac_res" >&6; }
33000 else
33001   # Is the header compilable?
33002 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
33003 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33004 cat >conftest.$ac_ext <<_ACEOF
33005 /* confdefs.h.  */
33006 _ACEOF
33007 cat confdefs.h >>conftest.$ac_ext
33008 cat >>conftest.$ac_ext <<_ACEOF
33009 /* end confdefs.h.  */
33010 $ac_includes_default
33011 #include <$ac_header>
33012 _ACEOF
33013 rm -f conftest.$ac_objext
33014 if { (ac_try="$ac_compile"
33015 case "(($ac_try" in
33016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33017   *) ac_try_echo=$ac_try;;
33018 esac
33019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33020   (eval "$ac_compile") 2>conftest.er1
33021   ac_status=$?
33022   grep -v '^ *+' conftest.er1 >conftest.err
33023   rm -f conftest.er1
33024   cat conftest.err >&5
33025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33026   (exit $ac_status); } &&
33027          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33028   { (case "(($ac_try" in
33029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33030   *) ac_try_echo=$ac_try;;
33031 esac
33032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33033   (eval "$ac_try") 2>&5
33034   ac_status=$?
33035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33036   (exit $ac_status); }; } &&
33037          { ac_try='test -s conftest.$ac_objext'
33038   { (case "(($ac_try" in
33039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33040   *) ac_try_echo=$ac_try;;
33041 esac
33042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33043   (eval "$ac_try") 2>&5
33044   ac_status=$?
33045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33046   (exit $ac_status); }; }; then
33047   ac_header_compiler=yes
33048 else
33049   echo "$as_me: failed program was:" >&5
33050 sed 's/^/| /' conftest.$ac_ext >&5
33051
33052         ac_header_compiler=no
33053 fi
33054
33055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33056 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33057 echo "${ECHO_T}$ac_header_compiler" >&6; }
33058
33059 # Is the header present?
33060 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
33061 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33062 cat >conftest.$ac_ext <<_ACEOF
33063 /* confdefs.h.  */
33064 _ACEOF
33065 cat confdefs.h >>conftest.$ac_ext
33066 cat >>conftest.$ac_ext <<_ACEOF
33067 /* end confdefs.h.  */
33068 #include <$ac_header>
33069 _ACEOF
33070 if { (ac_try="$ac_cpp conftest.$ac_ext"
33071 case "(($ac_try" in
33072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33073   *) ac_try_echo=$ac_try;;
33074 esac
33075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33076   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33077   ac_status=$?
33078   grep -v '^ *+' conftest.er1 >conftest.err
33079   rm -f conftest.er1
33080   cat conftest.err >&5
33081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33082   (exit $ac_status); } >/dev/null; then
33083   if test -s conftest.err; then
33084     ac_cpp_err=$ac_c_preproc_warn_flag
33085     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33086   else
33087     ac_cpp_err=
33088   fi
33089 else
33090   ac_cpp_err=yes
33091 fi
33092 if test -z "$ac_cpp_err"; then
33093   ac_header_preproc=yes
33094 else
33095   echo "$as_me: failed program was:" >&5
33096 sed 's/^/| /' conftest.$ac_ext >&5
33097
33098   ac_header_preproc=no
33099 fi
33100
33101 rm -f conftest.err conftest.$ac_ext
33102 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33103 echo "${ECHO_T}$ac_header_preproc" >&6; }
33104
33105 # So?  What about this header?
33106 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33107   yes:no: )
33108     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33109 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33110     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33111 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33112     ac_header_preproc=yes
33113     ;;
33114   no:yes:* )
33115     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33116 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33117     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33118 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33119     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33120 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33121     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33122 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33123     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33124 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33125     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33126 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33127     ( cat <<\_ASBOX
33128 ## ----------------------------------- ##
33129 ## Report this to llvmbugs@cs.uiuc.edu ##
33130 ## ----------------------------------- ##
33131 _ASBOX
33132      ) | sed "s/^/$as_me: WARNING:     /" >&2
33133     ;;
33134 esac
33135 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33136 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33137 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33138   echo $ECHO_N "(cached) $ECHO_C" >&6
33139 else
33140   eval "$as_ac_Header=\$ac_header_preproc"
33141 fi
33142 ac_res=`eval echo '${'$as_ac_Header'}'`
33143                { echo "$as_me:$LINENO: result: $ac_res" >&5
33144 echo "${ECHO_T}$ac_res" >&6; }
33145
33146 fi
33147 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33148   cat >>confdefs.h <<_ACEOF
33149 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33150 _ACEOF
33151
33152 fi
33153
33154 done
33155
33156
33157 for ac_func in getpagesize
33158 do
33159 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33160 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33161 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33162 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33163   echo $ECHO_N "(cached) $ECHO_C" >&6
33164 else
33165   cat >conftest.$ac_ext <<_ACEOF
33166 /* confdefs.h.  */
33167 _ACEOF
33168 cat confdefs.h >>conftest.$ac_ext
33169 cat >>conftest.$ac_ext <<_ACEOF
33170 /* end confdefs.h.  */
33171 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33172    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33173 #define $ac_func innocuous_$ac_func
33174
33175 /* System header to define __stub macros and hopefully few prototypes,
33176     which can conflict with char $ac_func (); below.
33177     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33178     <limits.h> exists even on freestanding compilers.  */
33179
33180 #ifdef __STDC__
33181 # include <limits.h>
33182 #else
33183 # include <assert.h>
33184 #endif
33185
33186 #undef $ac_func
33187
33188 /* Override any GCC internal prototype to avoid an error.
33189    Use char because int might match the return type of a GCC
33190    builtin and then its argument prototype would still apply.  */
33191 #ifdef __cplusplus
33192 extern "C"
33193 #endif
33194 char $ac_func ();
33195 /* The GNU C library defines this for functions which it implements
33196     to always fail with ENOSYS.  Some functions are actually named
33197     something starting with __ and the normal name is an alias.  */
33198 #if defined __stub_$ac_func || defined __stub___$ac_func
33199 choke me
33200 #endif
33201
33202 int
33203 main ()
33204 {
33205 return $ac_func ();
33206   ;
33207   return 0;
33208 }
33209 _ACEOF
33210 rm -f conftest.$ac_objext conftest$ac_exeext
33211 if { (ac_try="$ac_link"
33212 case "(($ac_try" in
33213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33214   *) ac_try_echo=$ac_try;;
33215 esac
33216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33217   (eval "$ac_link") 2>conftest.er1
33218   ac_status=$?
33219   grep -v '^ *+' conftest.er1 >conftest.err
33220   rm -f conftest.er1
33221   cat conftest.err >&5
33222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33223   (exit $ac_status); } &&
33224          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33225   { (case "(($ac_try" in
33226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33227   *) ac_try_echo=$ac_try;;
33228 esac
33229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33230   (eval "$ac_try") 2>&5
33231   ac_status=$?
33232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33233   (exit $ac_status); }; } &&
33234          { ac_try='test -s conftest$ac_exeext'
33235   { (case "(($ac_try" in
33236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33237   *) ac_try_echo=$ac_try;;
33238 esac
33239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33240   (eval "$ac_try") 2>&5
33241   ac_status=$?
33242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33243   (exit $ac_status); }; }; then
33244   eval "$as_ac_var=yes"
33245 else
33246   echo "$as_me: failed program was:" >&5
33247 sed 's/^/| /' conftest.$ac_ext >&5
33248
33249         eval "$as_ac_var=no"
33250 fi
33251
33252 rm -f core conftest.err conftest.$ac_objext \
33253       conftest$ac_exeext conftest.$ac_ext
33254 fi
33255 ac_res=`eval echo '${'$as_ac_var'}'`
33256                { echo "$as_me:$LINENO: result: $ac_res" >&5
33257 echo "${ECHO_T}$ac_res" >&6; }
33258 if test `eval echo '${'$as_ac_var'}'` = yes; then
33259   cat >>confdefs.h <<_ACEOF
33260 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33261 _ACEOF
33262
33263 fi
33264 done
33265
33266 { echo "$as_me:$LINENO: checking for working mmap" >&5
33267 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
33268 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33269   echo $ECHO_N "(cached) $ECHO_C" >&6
33270 else
33271   if test "$cross_compiling" = yes; then
33272   ac_cv_func_mmap_fixed_mapped=no
33273 else
33274   cat >conftest.$ac_ext <<_ACEOF
33275 /* confdefs.h.  */
33276 _ACEOF
33277 cat confdefs.h >>conftest.$ac_ext
33278 cat >>conftest.$ac_ext <<_ACEOF
33279 /* end confdefs.h.  */
33280 $ac_includes_default
33281 /* malloc might have been renamed as rpl_malloc. */
33282 #undef malloc
33283
33284 /* Thanks to Mike Haertel and Jim Avera for this test.
33285    Here is a matrix of mmap possibilities:
33286         mmap private not fixed
33287         mmap private fixed at somewhere currently unmapped
33288         mmap private fixed at somewhere already mapped
33289         mmap shared not fixed
33290         mmap shared fixed at somewhere currently unmapped
33291         mmap shared fixed at somewhere already mapped
33292    For private mappings, we should verify that changes cannot be read()
33293    back from the file, nor mmap's back from the file at a different
33294    address.  (There have been systems where private was not correctly
33295    implemented like the infamous i386 svr4.0, and systems where the
33296    VM page cache was not coherent with the file system buffer cache
33297    like early versions of FreeBSD and possibly contemporary NetBSD.)
33298    For shared mappings, we should conversely verify that changes get
33299    propagated back to all the places they're supposed to be.
33300
33301    Grep wants private fixed already mapped.
33302    The main things grep needs to know about mmap are:
33303    * does it exist and is it safe to write into the mmap'd area
33304    * how to use it (BSD variants)  */
33305
33306 #include <fcntl.h>
33307 #include <sys/mman.h>
33308
33309 #if !STDC_HEADERS && !HAVE_STDLIB_H
33310 char *malloc ();
33311 #endif
33312
33313 /* This mess was copied from the GNU getpagesize.h.  */
33314 #if !HAVE_GETPAGESIZE
33315 /* Assume that all systems that can run configure have sys/param.h.  */
33316 # if !HAVE_SYS_PARAM_H
33317 #  define HAVE_SYS_PARAM_H 1
33318 # endif
33319
33320 # ifdef _SC_PAGESIZE
33321 #  define getpagesize() sysconf(_SC_PAGESIZE)
33322 # else /* no _SC_PAGESIZE */
33323 #  if HAVE_SYS_PARAM_H
33324 #   include <sys/param.h>
33325 #   ifdef EXEC_PAGESIZE
33326 #    define getpagesize() EXEC_PAGESIZE
33327 #   else /* no EXEC_PAGESIZE */
33328 #    ifdef NBPG
33329 #     define getpagesize() NBPG * CLSIZE
33330 #     ifndef CLSIZE
33331 #      define CLSIZE 1
33332 #     endif /* no CLSIZE */
33333 #    else /* no NBPG */
33334 #     ifdef NBPC
33335 #      define getpagesize() NBPC
33336 #     else /* no NBPC */
33337 #      ifdef PAGESIZE
33338 #       define getpagesize() PAGESIZE
33339 #      endif /* PAGESIZE */
33340 #     endif /* no NBPC */
33341 #    endif /* no NBPG */
33342 #   endif /* no EXEC_PAGESIZE */
33343 #  else /* no HAVE_SYS_PARAM_H */
33344 #   define getpagesize() 8192   /* punt totally */
33345 #  endif /* no HAVE_SYS_PARAM_H */
33346 # endif /* no _SC_PAGESIZE */
33347
33348 #endif /* no HAVE_GETPAGESIZE */
33349
33350 int
33351 main ()
33352 {
33353   char *data, *data2, *data3;
33354   int i, pagesize;
33355   int fd;
33356
33357   pagesize = getpagesize ();
33358
33359   /* First, make a file with some known garbage in it. */
33360   data = (char *) malloc (pagesize);
33361   if (!data)
33362     return 1;
33363   for (i = 0; i < pagesize; ++i)
33364     *(data + i) = rand ();
33365   umask (0);
33366   fd = creat ("conftest.mmap", 0600);
33367   if (fd < 0)
33368     return 1;
33369   if (write (fd, data, pagesize) != pagesize)
33370     return 1;
33371   close (fd);
33372
33373   /* Next, try to mmap the file at a fixed address which already has
33374      something else allocated at it.  If we can, also make sure that
33375      we see the same garbage.  */
33376   fd = open ("conftest.mmap", O_RDWR);
33377   if (fd < 0)
33378     return 1;
33379   data2 = (char *) malloc (2 * pagesize);
33380   if (!data2)
33381     return 1;
33382   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
33383   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
33384                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
33385     return 1;
33386   for (i = 0; i < pagesize; ++i)
33387     if (*(data + i) != *(data2 + i))
33388       return 1;
33389
33390   /* Finally, make sure that changes to the mapped area do not
33391      percolate back to the file as seen by read().  (This is a bug on
33392      some variants of i386 svr4.0.)  */
33393   for (i = 0; i < pagesize; ++i)
33394     *(data2 + i) = *(data2 + i) + 1;
33395   data3 = (char *) malloc (pagesize);
33396   if (!data3)
33397     return 1;
33398   if (read (fd, data3, pagesize) != pagesize)
33399     return 1;
33400   for (i = 0; i < pagesize; ++i)
33401     if (*(data + i) != *(data3 + i))
33402       return 1;
33403   close (fd);
33404   return 0;
33405 }
33406 _ACEOF
33407 rm -f conftest$ac_exeext
33408 if { (ac_try="$ac_link"
33409 case "(($ac_try" in
33410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33411   *) ac_try_echo=$ac_try;;
33412 esac
33413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33414   (eval "$ac_link") 2>&5
33415   ac_status=$?
33416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33417   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33418   { (case "(($ac_try" in
33419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33420   *) ac_try_echo=$ac_try;;
33421 esac
33422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33423   (eval "$ac_try") 2>&5
33424   ac_status=$?
33425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33426   (exit $ac_status); }; }; then
33427   ac_cv_func_mmap_fixed_mapped=yes
33428 else
33429   echo "$as_me: program exited with status $ac_status" >&5
33430 echo "$as_me: failed program was:" >&5
33431 sed 's/^/| /' conftest.$ac_ext >&5
33432
33433 ( exit $ac_status )
33434 ac_cv_func_mmap_fixed_mapped=no
33435 fi
33436 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33437 fi
33438
33439
33440 fi
33441 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33442 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
33443 if test $ac_cv_func_mmap_fixed_mapped = yes; then
33444
33445 cat >>confdefs.h <<\_ACEOF
33446 #define HAVE_MMAP 1
33447 _ACEOF
33448
33449 fi
33450 rm -f conftest.mmap
33451
33452   { echo "$as_me:$LINENO: checking for mmap of files" >&5
33453 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
33454 if test "${ac_cv_func_mmap_file+set}" = set; then
33455   echo $ECHO_N "(cached) $ECHO_C" >&6
33456 else
33457    ac_ext=c
33458 ac_cpp='$CPP $CPPFLAGS'
33459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33462
33463   if test "$cross_compiling" = yes; then
33464   ac_cv_func_mmap_file=no
33465 else
33466   cat >conftest.$ac_ext <<_ACEOF
33467
33468     /* confdefs.h.  */
33469 _ACEOF
33470 cat confdefs.h >>conftest.$ac_ext
33471 cat >>conftest.$ac_ext <<_ACEOF
33472 /* end confdefs.h.  */
33473
33474 #include <sys/types.h>
33475 #include <sys/mman.h>
33476 #include <fcntl.h>
33477
33478 int
33479 main ()
33480 {
33481
33482   int fd;
33483   fd = creat ("foo",0777);
33484   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33485   unlink ("foo");
33486   return (fd != (int) MAP_FAILED);
33487   ;
33488   return 0;
33489 }
33490 _ACEOF
33491 rm -f conftest$ac_exeext
33492 if { (ac_try="$ac_link"
33493 case "(($ac_try" in
33494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33495   *) ac_try_echo=$ac_try;;
33496 esac
33497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33498   (eval "$ac_link") 2>&5
33499   ac_status=$?
33500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33501   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33502   { (case "(($ac_try" in
33503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33504   *) ac_try_echo=$ac_try;;
33505 esac
33506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33507   (eval "$ac_try") 2>&5
33508   ac_status=$?
33509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33510   (exit $ac_status); }; }; then
33511   ac_cv_func_mmap_file=yes
33512 else
33513   echo "$as_me: program exited with status $ac_status" >&5
33514 echo "$as_me: failed program was:" >&5
33515 sed 's/^/| /' conftest.$ac_ext >&5
33516
33517 ( exit $ac_status )
33518 ac_cv_func_mmap_file=no
33519 fi
33520 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33521 fi
33522
33523
33524   ac_ext=c
33525 ac_cpp='$CPP $CPPFLAGS'
33526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33529
33530
33531 fi
33532 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33533 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
33534 if test "$ac_cv_func_mmap_file" = yes; then
33535
33536 cat >>confdefs.h <<\_ACEOF
33537 #define HAVE_MMAP_FILE
33538 _ACEOF
33539
33540    MMAP_FILE=yes
33541
33542 fi
33543
33544   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
33545 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
33546 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33547   echo $ECHO_N "(cached) $ECHO_C" >&6
33548 else
33549   if test "$llvm_cv_os_type" = "Interix" ; then
33550    ac_cv_need_dev_zero_for_mmap=yes
33551  else
33552    ac_cv_need_dev_zero_for_mmap=no
33553  fi
33554
33555 fi
33556 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33557 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
33558 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33559
33560 cat >>confdefs.h <<\_ACEOF
33561 #define NEED_DEV_ZERO_FOR_MMAP 1
33562 _ACEOF
33563
33564 fi
33565
33566   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33567   then
33568     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
33569 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
33570   fi
33571   if test "$ac_cv_func_mmap_file" = "no"
33572   then
33573     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
33574 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
33575   fi
33576 fi
33577
33578
33579
33580 for ac_func in __dso_handle
33581 do
33582 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33583 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33584 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33585 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33586   echo $ECHO_N "(cached) $ECHO_C" >&6
33587 else
33588   cat >conftest.$ac_ext <<_ACEOF
33589 /* confdefs.h.  */
33590 _ACEOF
33591 cat confdefs.h >>conftest.$ac_ext
33592 cat >>conftest.$ac_ext <<_ACEOF
33593 /* end confdefs.h.  */
33594 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33595    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33596 #define $ac_func innocuous_$ac_func
33597
33598 /* System header to define __stub macros and hopefully few prototypes,
33599     which can conflict with char $ac_func (); below.
33600     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33601     <limits.h> exists even on freestanding compilers.  */
33602
33603 #ifdef __STDC__
33604 # include <limits.h>
33605 #else
33606 # include <assert.h>
33607 #endif
33608
33609 #undef $ac_func
33610
33611 /* Override any GCC internal prototype to avoid an error.
33612    Use char because int might match the return type of a GCC
33613    builtin and then its argument prototype would still apply.  */
33614 #ifdef __cplusplus
33615 extern "C"
33616 #endif
33617 char $ac_func ();
33618 /* The GNU C library defines this for functions which it implements
33619     to always fail with ENOSYS.  Some functions are actually named
33620     something starting with __ and the normal name is an alias.  */
33621 #if defined __stub_$ac_func || defined __stub___$ac_func
33622 choke me
33623 #endif
33624
33625 int
33626 main ()
33627 {
33628 return $ac_func ();
33629   ;
33630   return 0;
33631 }
33632 _ACEOF
33633 rm -f conftest.$ac_objext conftest$ac_exeext
33634 if { (ac_try="$ac_link"
33635 case "(($ac_try" in
33636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33637   *) ac_try_echo=$ac_try;;
33638 esac
33639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33640   (eval "$ac_link") 2>conftest.er1
33641   ac_status=$?
33642   grep -v '^ *+' conftest.er1 >conftest.err
33643   rm -f conftest.er1
33644   cat conftest.err >&5
33645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33646   (exit $ac_status); } &&
33647          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33648   { (case "(($ac_try" in
33649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33650   *) ac_try_echo=$ac_try;;
33651 esac
33652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33653   (eval "$ac_try") 2>&5
33654   ac_status=$?
33655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33656   (exit $ac_status); }; } &&
33657          { ac_try='test -s conftest$ac_exeext'
33658   { (case "(($ac_try" in
33659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33660   *) ac_try_echo=$ac_try;;
33661 esac
33662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33663   (eval "$ac_try") 2>&5
33664   ac_status=$?
33665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33666   (exit $ac_status); }; }; then
33667   eval "$as_ac_var=yes"
33668 else
33669   echo "$as_me: failed program was:" >&5
33670 sed 's/^/| /' conftest.$ac_ext >&5
33671
33672         eval "$as_ac_var=no"
33673 fi
33674
33675 rm -f core conftest.err conftest.$ac_objext \
33676       conftest$ac_exeext conftest.$ac_ext
33677 fi
33678 ac_res=`eval echo '${'$as_ac_var'}'`
33679                { echo "$as_me:$LINENO: result: $ac_res" >&5
33680 echo "${ECHO_T}$ac_res" >&6; }
33681 if test `eval echo '${'$as_ac_var'}'` = yes; then
33682   cat >>confdefs.h <<_ACEOF
33683 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33684 _ACEOF
33685
33686 fi
33687 done
33688
33689
33690 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
33691 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
33692 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
33693   echo $ECHO_N "(cached) $ECHO_C" >&6
33694 else
33695   llvm_cv_llvmgcc_sanity="no"
33696 if test -x "$LLVMGCC" ; then
33697   cp /dev/null conftest.c
33698   "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
33699       grep 'target datalayout =' > /dev/null 2>&1
33700   if test $? -eq 0 ; then
33701     llvm_cv_llvmgcc_sanity="yes"
33702   fi
33703   rm conftest.c
33704 fi
33705 fi
33706 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
33707 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
33708
33709 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
33710   { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
33711 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
33712   llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
33713   LLVMCC1=$llvmcc1path
33714
33715   llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
33716   LLVMCC1PLUS=$llvmcc1pluspath
33717
33718   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
33719   LLVMGCCDIR=$llvmgccdir
33720
33721   llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
33722   LLVMGCCLIBEXEC=$llvmgcclibexec
33723
33724   llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
33725   llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
33726   LLVMGCC_VERSION=$llvmgccversion
33727
33728   LLVMGCC_MAJVERS=$llvmgccmajvers
33729
33730   llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
33731   LLVMGCC_LANGS=$llvmgcclangs
33732
33733   { echo "$as_me:$LINENO: result: ok" >&5
33734 echo "${ECHO_T}ok" >&6; }
33735 fi
33736
33737 SHLIBEXT=$libltdl_cv_shlibext
33738
33739
33740 # Translate the various configuration directories and other basic
33741 # information into substitutions that will end up in Makefile.config.in
33742 # that these configured values can be used by the makefiles
33743 if test "${prefix}" = "NONE" ; then
33744   prefix="/usr/local"
33745 fi
33746 eval LLVM_PREFIX="${prefix}";
33747 eval LLVM_BINDIR="${prefix}/bin";
33748 eval LLVM_LIBDIR="${prefix}/lib";
33749 eval LLVM_DATADIR="${prefix}/share/llvm";
33750 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
33751 eval LLVM_ETCDIR="${prefix}/etc/llvm";
33752 eval LLVM_INCLUDEDIR="${prefix}/include";
33753 eval LLVM_INFODIR="${prefix}/info";
33754 eval LLVM_MANDIR="${prefix}/man";
33755 LLVM_CONFIGTIME=`date`
33756
33757
33758
33759
33760
33761
33762
33763
33764
33765
33766
33767 # Place the various directores into the config.h file as #defines so that we
33768 # can know about the installation paths within LLVM.
33769
33770 cat >>confdefs.h <<_ACEOF
33771 #define LLVM_PREFIX "$LLVM_PREFIX"
33772 _ACEOF
33773
33774
33775 cat >>confdefs.h <<_ACEOF
33776 #define LLVM_BINDIR "$LLVM_BINDIR"
33777 _ACEOF
33778
33779
33780 cat >>confdefs.h <<_ACEOF
33781 #define LLVM_LIBDIR "$LLVM_LIBDIR"
33782 _ACEOF
33783
33784
33785 cat >>confdefs.h <<_ACEOF
33786 #define LLVM_DATADIR "$LLVM_DATADIR"
33787 _ACEOF
33788
33789
33790 cat >>confdefs.h <<_ACEOF
33791 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
33792 _ACEOF
33793
33794
33795 cat >>confdefs.h <<_ACEOF
33796 #define LLVM_ETCDIR "$LLVM_ETCDIR"
33797 _ACEOF
33798
33799
33800 cat >>confdefs.h <<_ACEOF
33801 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
33802 _ACEOF
33803
33804
33805 cat >>confdefs.h <<_ACEOF
33806 #define LLVM_INFODIR "$LLVM_INFODIR"
33807 _ACEOF
33808
33809
33810 cat >>confdefs.h <<_ACEOF
33811 #define LLVM_MANDIR "$LLVM_MANDIR"
33812 _ACEOF
33813
33814
33815 cat >>confdefs.h <<_ACEOF
33816 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
33817 _ACEOF
33818
33819
33820 cat >>confdefs.h <<_ACEOF
33821 #define LLVM_HOSTTRIPLE "$host"
33822 _ACEOF
33823
33824
33825 # Determine which bindings to build.
33826 if test "$BINDINGS_TO_BUILD" = auto ; then
33827   BINDINGS_TO_BUILD=""
33828   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
33829     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
33830   fi
33831 fi
33832 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
33833
33834
33835 # This isn't really configurey, but it avoids having to repeat the list in
33836 # other files.
33837 ALL_BINDINGS=ocaml
33838
33839
33840 # Do any work necessary to ensure that bindings have what they need.
33841 binding_prereqs_failed=0
33842 for a_binding in $BINDINGS_TO_BUILD ; do
33843   case "$a_binding" in
33844   ocaml)
33845     if test "x$OCAMLC" = x ; then
33846       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
33847 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
33848       binding_prereqs_failed=1
33849     fi
33850     if test "x$OCAMLDEP" = x ; then
33851       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
33852 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
33853       binding_prereqs_failed=1
33854     fi
33855     if test "x$OCAMLOPT" = x ; then
33856       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
33857 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
33858           fi
33859     if test "x$with_ocaml_libdir" != xauto ; then
33860       OCAML_LIBDIR=$with_ocaml_libdir
33861
33862     else
33863       ocaml_stdlib="`"$OCAMLC" -where`"
33864       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
33865       then
33866         # ocaml stdlib is beneath our prefix; use stdlib
33867         OCAML_LIBDIR=$ocaml_stdlib
33868
33869       else
33870         # ocaml stdlib is outside our prefix; use libdir/ocaml
33871         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
33872
33873       fi
33874     fi
33875     ;;
33876   esac
33877 done
33878 if test "$binding_prereqs_failed" = 1 ; then
33879   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
33880 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
33881    { (exit 1); exit 1; }; }
33882 fi
33883
33884 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
33885 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
33886 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
33887   echo $ECHO_N "(cached) $ECHO_C" >&6
33888 else
33889    ac_ext=cpp
33890 ac_cpp='$CXXCPP $CPPFLAGS'
33891 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33892 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33893 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33894
33895   oldcxxflags="$CXXFLAGS"
33896   CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
33897   cat >conftest.$ac_ext <<_ACEOF
33898 /* confdefs.h.  */
33899 _ACEOF
33900 cat confdefs.h >>conftest.$ac_ext
33901 cat >>conftest.$ac_ext <<_ACEOF
33902 /* end confdefs.h.  */
33903
33904 int
33905 main ()
33906 {
33907
33908   ;
33909   return 0;
33910 }
33911 _ACEOF
33912 rm -f conftest.$ac_objext
33913 if { (ac_try="$ac_compile"
33914 case "(($ac_try" in
33915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33916   *) ac_try_echo=$ac_try;;
33917 esac
33918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33919   (eval "$ac_compile") 2>conftest.er1
33920   ac_status=$?
33921   grep -v '^ *+' conftest.er1 >conftest.err
33922   rm -f conftest.er1
33923   cat conftest.err >&5
33924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33925   (exit $ac_status); } &&
33926          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33927   { (case "(($ac_try" in
33928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33929   *) ac_try_echo=$ac_try;;
33930 esac
33931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33932   (eval "$ac_try") 2>&5
33933   ac_status=$?
33934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33935   (exit $ac_status); }; } &&
33936          { ac_try='test -s conftest.$ac_objext'
33937   { (case "(($ac_try" in
33938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33939   *) ac_try_echo=$ac_try;;
33940 esac
33941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33942   (eval "$ac_try") 2>&5
33943   ac_status=$?
33944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33945   (exit $ac_status); }; }; then
33946   llvm_cv_cxx_visibility_inlines_hidden=yes
33947 else
33948   echo "$as_me: failed program was:" >&5
33949 sed 's/^/| /' conftest.$ac_ext >&5
33950
33951         llvm_cv_cxx_visibility_inlines_hidden=no
33952 fi
33953
33954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33955   CXXFLAGS="$oldcxxflags"
33956   ac_ext=c
33957 ac_cpp='$CPP $CPPFLAGS'
33958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33961
33962
33963 fi
33964 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
33965 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
33966 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
33967   ENABLE_VISIBILITY_INLINES_HIDDEN=1
33968
33969 else
33970   ENABLE_VISIBILITY_INLINES_HIDDEN=0
33971
33972 fi
33973
33974
33975 if test "$llvm_cv_link_use_r" = "yes" ; then
33976   RPATH="-Wl,-R"
33977 else
33978   RPATH="-Wl,-rpath"
33979 fi
33980
33981
33982 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
33983   RDYNAMIC="-Wl,-export-dynamic"
33984 else
33985   RDYNAMIC=""
33986 fi
33987
33988
33989
33990 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
33991
33992 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
33993
33994 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h"
33995
33996
33997 ac_config_files="$ac_config_files Makefile.config"
33998
33999
34000 ac_config_files="$ac_config_files llvm.spec"
34001
34002
34003 ac_config_files="$ac_config_files docs/doxygen.cfg"
34004
34005
34006 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
34007
34008
34009 ac_config_commands="$ac_config_commands setup"
34010
34011 ac_config_commands="$ac_config_commands Makefile"
34012
34013
34014 ac_config_commands="$ac_config_commands Makefile.common"
34015
34016
34017 ac_config_commands="$ac_config_commands examples/Makefile"
34018
34019
34020 ac_config_commands="$ac_config_commands lib/Makefile"
34021
34022
34023 ac_config_commands="$ac_config_commands runtime/Makefile"
34024
34025
34026 ac_config_commands="$ac_config_commands test/Makefile"
34027
34028
34029 ac_config_commands="$ac_config_commands test/Makefile.tests"
34030
34031
34032 ac_config_commands="$ac_config_commands unittests/Makefile"
34033
34034
34035 ac_config_commands="$ac_config_commands tools/Makefile"
34036
34037
34038 ac_config_commands="$ac_config_commands utils/Makefile"
34039
34040
34041 ac_config_commands="$ac_config_commands projects/Makefile"
34042
34043
34044 ac_config_commands="$ac_config_commands bindings/Makefile"
34045
34046
34047 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
34048
34049
34050
34051 cat >confcache <<\_ACEOF
34052 # This file is a shell script that caches the results of configure
34053 # tests run on this system so they can be shared between configure
34054 # scripts and configure runs, see configure's option --config-cache.
34055 # It is not useful on other systems.  If it contains results you don't
34056 # want to keep, you may remove or edit it.
34057 #
34058 # config.status only pays attention to the cache file if you give it
34059 # the --recheck option to rerun configure.
34060 #
34061 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34062 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34063 # following values.
34064
34065 _ACEOF
34066
34067 # The following way of writing the cache mishandles newlines in values,
34068 # but we know of no workaround that is simple, portable, and efficient.
34069 # So, we kill variables containing newlines.
34070 # Ultrix sh set writes to stderr and can't be redirected directly,
34071 # and sets the high bit in the cache file unless we assign to the vars.
34072 (
34073   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34074     eval ac_val=\$$ac_var
34075     case $ac_val in #(
34076     *${as_nl}*)
34077       case $ac_var in #(
34078       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34079 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34080       esac
34081       case $ac_var in #(
34082       _ | IFS | as_nl) ;; #(
34083       *) $as_unset $ac_var ;;
34084       esac ;;
34085     esac
34086   done
34087
34088   (set) 2>&1 |
34089     case $as_nl`(ac_space=' '; set) 2>&1` in #(
34090     *${as_nl}ac_space=\ *)
34091       # `set' does not quote correctly, so add quotes (double-quote
34092       # substitution turns \\\\ into \\, and sed turns \\ into \).
34093       sed -n \
34094         "s/'/'\\\\''/g;
34095           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34096       ;; #(
34097     *)
34098       # `set' quotes correctly as required by POSIX, so do not add quotes.
34099       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34100       ;;
34101     esac |
34102     sort
34103 ) |
34104   sed '
34105      /^ac_cv_env_/b end
34106      t clear
34107      :clear
34108      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34109      t end
34110      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34111      :end' >>confcache
34112 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34113   if test -w "$cache_file"; then
34114     test "x$cache_file" != "x/dev/null" &&
34115       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34116 echo "$as_me: updating cache $cache_file" >&6;}
34117     cat confcache >$cache_file
34118   else
34119     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34120 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34121   fi
34122 fi
34123 rm -f confcache
34124
34125 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34126 # Let make expand exec_prefix.
34127 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34128
34129 DEFS=-DHAVE_CONFIG_H
34130
34131 ac_libobjs=
34132 ac_ltlibobjs=
34133 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34134   # 1. Remove the extension, and $U if already installed.
34135   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34136   ac_i=`echo "$ac_i" | sed "$ac_script"`
34137   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
34138   #    will be set to the directory where LIBOBJS objects are built.
34139   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34140   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34141 done
34142 LIBOBJS=$ac_libobjs
34143
34144 LTLIBOBJS=$ac_ltlibobjs
34145
34146
34147 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34148   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34149 Usually this means the macro was only invoked conditionally." >&5
34150 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34151 Usually this means the macro was only invoked conditionally." >&2;}
34152    { (exit 1); exit 1; }; }
34153 fi
34154 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34155   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34156 Usually this means the macro was only invoked conditionally." >&5
34157 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34158 Usually this means the macro was only invoked conditionally." >&2;}
34159    { (exit 1); exit 1; }; }
34160 fi
34161
34162 : ${CONFIG_STATUS=./config.status}
34163 ac_clean_files_save=$ac_clean_files
34164 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34165 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34166 echo "$as_me: creating $CONFIG_STATUS" >&6;}
34167 cat >$CONFIG_STATUS <<_ACEOF
34168 #! $SHELL
34169 # Generated by $as_me.
34170 # Run this file to recreate the current configuration.
34171 # Compiler output produced by configure, useful for debugging
34172 # configure, is in config.log if it exists.
34173
34174 debug=false
34175 ac_cs_recheck=false
34176 ac_cs_silent=false
34177 SHELL=\${CONFIG_SHELL-$SHELL}
34178 _ACEOF
34179
34180 cat >>$CONFIG_STATUS <<\_ACEOF
34181 ## --------------------- ##
34182 ## M4sh Initialization.  ##
34183 ## --------------------- ##
34184
34185 # Be Bourne compatible
34186 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34187   emulate sh
34188   NULLCMD=:
34189   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34190   # is contrary to our usage.  Disable this feature.
34191   alias -g '${1+"$@"}'='"$@"'
34192   setopt NO_GLOB_SUBST
34193 else
34194   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
34195 fi
34196 BIN_SH=xpg4; export BIN_SH # for Tru64
34197 DUALCASE=1; export DUALCASE # for MKS sh
34198
34199
34200 # PATH needs CR
34201 # Avoid depending upon Character Ranges.
34202 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34203 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34204 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34205 as_cr_digits='0123456789'
34206 as_cr_alnum=$as_cr_Letters$as_cr_digits
34207
34208 # The user is always right.
34209 if test "${PATH_SEPARATOR+set}" != set; then
34210   echo "#! /bin/sh" >conf$$.sh
34211   echo  "exit 0"   >>conf$$.sh
34212   chmod +x conf$$.sh
34213   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34214     PATH_SEPARATOR=';'
34215   else
34216     PATH_SEPARATOR=:
34217   fi
34218   rm -f conf$$.sh
34219 fi
34220
34221 # Support unset when possible.
34222 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34223   as_unset=unset
34224 else
34225   as_unset=false
34226 fi
34227
34228
34229 # IFS
34230 # We need space, tab and new line, in precisely that order.  Quoting is
34231 # there to prevent editors from complaining about space-tab.
34232 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34233 # splitting by setting IFS to empty value.)
34234 as_nl='
34235 '
34236 IFS=" ""        $as_nl"
34237
34238 # Find who we are.  Look in the path if we contain no directory separator.
34239 case $0 in
34240   *[\\/]* ) as_myself=$0 ;;
34241   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34242 for as_dir in $PATH
34243 do
34244   IFS=$as_save_IFS
34245   test -z "$as_dir" && as_dir=.
34246   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34247 done
34248 IFS=$as_save_IFS
34249
34250      ;;
34251 esac
34252 # We did not find ourselves, most probably we were run as `sh COMMAND'
34253 # in which case we are not to be found in the path.
34254 if test "x$as_myself" = x; then
34255   as_myself=$0
34256 fi
34257 if test ! -f "$as_myself"; then
34258   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34259   { (exit 1); exit 1; }
34260 fi
34261
34262 # Work around bugs in pre-3.0 UWIN ksh.
34263 for as_var in ENV MAIL MAILPATH
34264 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34265 done
34266 PS1='$ '
34267 PS2='> '
34268 PS4='+ '
34269
34270 # NLS nuisances.
34271 for as_var in \
34272   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34273   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34274   LC_TELEPHONE LC_TIME
34275 do
34276   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34277     eval $as_var=C; export $as_var
34278   else
34279     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34280   fi
34281 done
34282
34283 # Required to use basename.
34284 if expr a : '\(a\)' >/dev/null 2>&1 &&
34285    test "X`expr 00001 : '.*\(...\)'`" = X001; then
34286   as_expr=expr
34287 else
34288   as_expr=false
34289 fi
34290
34291 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34292   as_basename=basename
34293 else
34294   as_basename=false
34295 fi
34296
34297
34298 # Name of the executable.
34299 as_me=`$as_basename -- "$0" ||
34300 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34301          X"$0" : 'X\(//\)$' \| \
34302          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34303 echo X/"$0" |
34304     sed '/^.*\/\([^/][^/]*\)\/*$/{
34305             s//\1/
34306             q
34307           }
34308           /^X\/\(\/\/\)$/{
34309             s//\1/
34310             q
34311           }
34312           /^X\/\(\/\).*/{
34313             s//\1/
34314             q
34315           }
34316           s/.*/./; q'`
34317
34318 # CDPATH.
34319 $as_unset CDPATH
34320
34321
34322
34323   as_lineno_1=$LINENO
34324   as_lineno_2=$LINENO
34325   test "x$as_lineno_1" != "x$as_lineno_2" &&
34326   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
34327
34328   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34329   # uniformly replaced by the line number.  The first 'sed' inserts a
34330   # line-number line after each line using $LINENO; the second 'sed'
34331   # does the real work.  The second script uses 'N' to pair each
34332   # line-number line with the line containing $LINENO, and appends
34333   # trailing '-' during substitution so that $LINENO is not a special
34334   # case at line end.
34335   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34336   # scripts with optimization help from Paolo Bonzini.  Blame Lee
34337   # E. McMahon (1931-1989) for sed's syntax.  :-)
34338   sed -n '
34339     p
34340     /[$]LINENO/=
34341   ' <$as_myself |
34342     sed '
34343       s/[$]LINENO.*/&-/
34344       t lineno
34345       b
34346       :lineno
34347       N
34348       :loop
34349       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34350       t loop
34351       s/-\n.*//
34352     ' >$as_me.lineno &&
34353   chmod +x "$as_me.lineno" ||
34354     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34355    { (exit 1); exit 1; }; }
34356
34357   # Don't try to exec as it changes $[0], causing all sort of problems
34358   # (the dirname of $[0] is not the place where we might find the
34359   # original and so on.  Autoconf is especially sensitive to this).
34360   . "./$as_me.lineno"
34361   # Exit status is that of the last command.
34362   exit
34363 }
34364
34365
34366 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34367   as_dirname=dirname
34368 else
34369   as_dirname=false
34370 fi
34371
34372 ECHO_C= ECHO_N= ECHO_T=
34373 case `echo -n x` in
34374 -n*)
34375   case `echo 'x\c'` in
34376   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
34377   *)   ECHO_C='\c';;
34378   esac;;
34379 *)
34380   ECHO_N='-n';;
34381 esac
34382
34383 if expr a : '\(a\)' >/dev/null 2>&1 &&
34384    test "X`expr 00001 : '.*\(...\)'`" = X001; then
34385   as_expr=expr
34386 else
34387   as_expr=false
34388 fi
34389
34390 rm -f conf$$ conf$$.exe conf$$.file
34391 if test -d conf$$.dir; then
34392   rm -f conf$$.dir/conf$$.file
34393 else
34394   rm -f conf$$.dir
34395   mkdir conf$$.dir
34396 fi
34397 echo >conf$$.file
34398 if ln -s conf$$.file conf$$ 2>/dev/null; then
34399   as_ln_s='ln -s'
34400   # ... but there are two gotchas:
34401   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34402   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34403   # In both cases, we have to default to `cp -p'.
34404   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34405     as_ln_s='cp -p'
34406 elif ln conf$$.file conf$$ 2>/dev/null; then
34407   as_ln_s=ln
34408 else
34409   as_ln_s='cp -p'
34410 fi
34411 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34412 rmdir conf$$.dir 2>/dev/null
34413
34414 if mkdir -p . 2>/dev/null; then
34415   as_mkdir_p=:
34416 else
34417   test -d ./-p && rmdir ./-p
34418   as_mkdir_p=false
34419 fi
34420
34421 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
34422 # systems may use methods other than mode bits to determine executability.
34423 cat >conf$$.file <<_ASEOF
34424 #! /bin/sh
34425 exit 0
34426 _ASEOF
34427 chmod +x conf$$.file
34428 if test -x conf$$.file >/dev/null 2>&1; then
34429   as_executable_p="test -x"
34430 else
34431   as_executable_p=:
34432 fi
34433 rm -f conf$$.file
34434
34435 # Sed expression to map a string onto a valid CPP name.
34436 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34437
34438 # Sed expression to map a string onto a valid variable name.
34439 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34440
34441
34442 exec 6>&1
34443
34444 # Save the log message, to keep $[0] and so on meaningful, and to
34445 # report actual input values of CONFIG_FILES etc. instead of their
34446 # values after options handling.
34447 ac_log="
34448 This file was extended by llvm $as_me 2.6svn, which was
34449 generated by GNU Autoconf 2.60.  Invocation command line was
34450
34451   CONFIG_FILES    = $CONFIG_FILES
34452   CONFIG_HEADERS  = $CONFIG_HEADERS
34453   CONFIG_LINKS    = $CONFIG_LINKS
34454   CONFIG_COMMANDS = $CONFIG_COMMANDS
34455   $ $0 $@
34456
34457 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34458 "
34459
34460 _ACEOF
34461
34462 cat >>$CONFIG_STATUS <<_ACEOF
34463 # Files that config.status was made for.
34464 config_files="$ac_config_files"
34465 config_headers="$ac_config_headers"
34466 config_commands="$ac_config_commands"
34467
34468 _ACEOF
34469
34470 cat >>$CONFIG_STATUS <<\_ACEOF
34471 ac_cs_usage="\
34472 \`$as_me' instantiates files from templates according to the
34473 current configuration.
34474
34475 Usage: $0 [OPTIONS] [FILE]...
34476
34477   -h, --help       print this help, then exit
34478   -V, --version    print version number, then exit
34479   -q, --quiet      do not print progress messages
34480   -d, --debug      don't remove temporary files
34481       --recheck    update $as_me by reconfiguring in the same conditions
34482   --file=FILE[:TEMPLATE]
34483                    instantiate the configuration file FILE
34484   --header=FILE[:TEMPLATE]
34485                    instantiate the configuration header FILE
34486
34487 Configuration files:
34488 $config_files
34489
34490 Configuration headers:
34491 $config_headers
34492
34493 Configuration commands:
34494 $config_commands
34495
34496 Report bugs to <bug-autoconf@gnu.org>."
34497
34498 _ACEOF
34499 cat >>$CONFIG_STATUS <<_ACEOF
34500 ac_cs_version="\\
34501 llvm config.status 2.6svn
34502 configured by $0, generated by GNU Autoconf 2.60,
34503   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
34504
34505 Copyright (C) 2006 Free Software Foundation, Inc.
34506 This config.status script is free software; the Free Software Foundation
34507 gives unlimited permission to copy, distribute and modify it."
34508
34509 ac_pwd='$ac_pwd'
34510 srcdir='$srcdir'
34511 INSTALL='$INSTALL'
34512 _ACEOF
34513
34514 cat >>$CONFIG_STATUS <<\_ACEOF
34515 # If no file are specified by the user, then we need to provide default
34516 # value.  By we need to know if files were specified by the user.
34517 ac_need_defaults=:
34518 while test $# != 0
34519 do
34520   case $1 in
34521   --*=*)
34522     ac_option=`expr "X$1" : 'X\([^=]*\)='`
34523     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34524     ac_shift=:
34525     ;;
34526   *)
34527     ac_option=$1
34528     ac_optarg=$2
34529     ac_shift=shift
34530     ;;
34531   esac
34532
34533   case $ac_option in
34534   # Handling of the options.
34535   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34536     ac_cs_recheck=: ;;
34537   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34538     echo "$ac_cs_version"; exit ;;
34539   --debug | --debu | --deb | --de | --d | -d )
34540     debug=: ;;
34541   --file | --fil | --fi | --f )
34542     $ac_shift
34543     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
34544     ac_need_defaults=false;;
34545   --header | --heade | --head | --hea )
34546     $ac_shift
34547     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
34548     ac_need_defaults=false;;
34549   --he | --h)
34550     # Conflict between --help and --header
34551     { echo "$as_me: error: ambiguous option: $1
34552 Try \`$0 --help' for more information." >&2
34553    { (exit 1); exit 1; }; };;
34554   --help | --hel | -h )
34555     echo "$ac_cs_usage"; exit ;;
34556   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34557   | -silent | --silent | --silen | --sile | --sil | --si | --s)
34558     ac_cs_silent=: ;;
34559
34560   # This is an error.
34561   -*) { echo "$as_me: error: unrecognized option: $1
34562 Try \`$0 --help' for more information." >&2
34563    { (exit 1); exit 1; }; } ;;
34564
34565   *) ac_config_targets="$ac_config_targets $1"
34566      ac_need_defaults=false ;;
34567
34568   esac
34569   shift
34570 done
34571
34572 ac_configure_extra_args=
34573
34574 if $ac_cs_silent; then
34575   exec 6>/dev/null
34576   ac_configure_extra_args="$ac_configure_extra_args --silent"
34577 fi
34578
34579 _ACEOF
34580 cat >>$CONFIG_STATUS <<_ACEOF
34581 if \$ac_cs_recheck; then
34582   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34583   CONFIG_SHELL=$SHELL
34584   export CONFIG_SHELL
34585   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34586 fi
34587
34588 _ACEOF
34589 cat >>$CONFIG_STATUS <<\_ACEOF
34590 exec 5>>config.log
34591 {
34592   echo
34593   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34594 ## Running $as_me. ##
34595 _ASBOX
34596   echo "$ac_log"
34597 } >&5
34598
34599 _ACEOF
34600 cat >>$CONFIG_STATUS <<_ACEOF
34601 #
34602 # INIT-COMMANDS
34603 #
34604 llvm_src="${srcdir}"
34605
34606 _ACEOF
34607
34608 cat >>$CONFIG_STATUS <<\_ACEOF
34609
34610 # Handling of arguments.
34611 for ac_config_target in $ac_config_targets
34612 do
34613   case $ac_config_target in
34614     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34615     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
34616     "include/llvm/ADT/iterator.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
34617     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
34618     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
34619     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
34620     "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34621     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34622     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34623     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34624     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34625     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
34626     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
34627     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34628     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
34629     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
34630     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34631     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34632     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
34633     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
34634     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
34635
34636   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34637 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34638    { (exit 1); exit 1; }; };;
34639   esac
34640 done
34641
34642
34643 # If the user did not use the arguments to specify the items to instantiate,
34644 # then the envvar interface is used.  Set only those that are not.
34645 # We use the long form for the default assignment because of an extremely
34646 # bizarre bug on SunOS 4.1.3.
34647 if $ac_need_defaults; then
34648   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34649   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34650   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34651 fi
34652
34653 # Have a temporary directory for convenience.  Make it in the build tree
34654 # simply because there is no reason against having it here, and in addition,
34655 # creating and moving files from /tmp can sometimes cause problems.
34656 # Hook for its removal unless debugging.
34657 # Note that there is a small window in which the directory will not be cleaned:
34658 # after its creation but before its name has been assigned to `$tmp'.
34659 $debug ||
34660 {
34661   tmp=
34662   trap 'exit_status=$?
34663   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34664 ' 0
34665   trap '{ (exit 1); exit 1; }' 1 2 13 15
34666 }
34667 # Create a (secure) tmp directory for tmp files.
34668
34669 {
34670   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34671   test -n "$tmp" && test -d "$tmp"
34672 }  ||
34673 {
34674   tmp=./conf$$-$RANDOM
34675   (umask 077 && mkdir "$tmp")
34676 } ||
34677 {
34678    echo "$me: cannot create a temporary directory in ." >&2
34679    { (exit 1); exit 1; }
34680 }
34681
34682 #
34683 # Set up the sed scripts for CONFIG_FILES section.
34684 #
34685
34686 # No need to generate the scripts if there are no CONFIG_FILES.
34687 # This happens for instance when ./config.status config.h
34688 if test -n "$CONFIG_FILES"; then
34689
34690 _ACEOF
34691
34692
34693
34694 ac_delim='%!_!# '
34695 for ac_last_try in false false false false false :; do
34696   cat >conf$$subs.sed <<_ACEOF
34697 SHELL!$SHELL$ac_delim
34698 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34699 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34700 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34701 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34702 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34703 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34704 exec_prefix!$exec_prefix$ac_delim
34705 prefix!$prefix$ac_delim
34706 program_transform_name!$program_transform_name$ac_delim
34707 bindir!$bindir$ac_delim
34708 sbindir!$sbindir$ac_delim
34709 libexecdir!$libexecdir$ac_delim
34710 datarootdir!$datarootdir$ac_delim
34711 datadir!$datadir$ac_delim
34712 sysconfdir!$sysconfdir$ac_delim
34713 sharedstatedir!$sharedstatedir$ac_delim
34714 localstatedir!$localstatedir$ac_delim
34715 includedir!$includedir$ac_delim
34716 oldincludedir!$oldincludedir$ac_delim
34717 docdir!$docdir$ac_delim
34718 infodir!$infodir$ac_delim
34719 htmldir!$htmldir$ac_delim
34720 dvidir!$dvidir$ac_delim
34721 pdfdir!$pdfdir$ac_delim
34722 psdir!$psdir$ac_delim
34723 libdir!$libdir$ac_delim
34724 localedir!$localedir$ac_delim
34725 mandir!$mandir$ac_delim
34726 DEFS!$DEFS$ac_delim
34727 ECHO_C!$ECHO_C$ac_delim
34728 ECHO_N!$ECHO_N$ac_delim
34729 ECHO_T!$ECHO_T$ac_delim
34730 LIBS!$LIBS$ac_delim
34731 build_alias!$build_alias$ac_delim
34732 host_alias!$host_alias$ac_delim
34733 target_alias!$target_alias$ac_delim
34734 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
34735 subdirs!$subdirs$ac_delim
34736 build!$build$ac_delim
34737 build_cpu!$build_cpu$ac_delim
34738 build_vendor!$build_vendor$ac_delim
34739 build_os!$build_os$ac_delim
34740 host!$host$ac_delim
34741 host_cpu!$host_cpu$ac_delim
34742 host_vendor!$host_vendor$ac_delim
34743 host_os!$host_os$ac_delim
34744 target!$target$ac_delim
34745 target_cpu!$target_cpu$ac_delim
34746 target_vendor!$target_vendor$ac_delim
34747 target_os!$target_os$ac_delim
34748 OS!$OS$ac_delim
34749 LINKALL!$LINKALL$ac_delim
34750 NOLINKALL!$NOLINKALL$ac_delim
34751 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
34752 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
34753 ARCH!$ARCH$ac_delim
34754 ENDIAN!$ENDIAN$ac_delim
34755 CC!$CC$ac_delim
34756 CFLAGS!$CFLAGS$ac_delim
34757 LDFLAGS!$LDFLAGS$ac_delim
34758 CPPFLAGS!$CPPFLAGS$ac_delim
34759 ac_ct_CC!$ac_ct_CC$ac_delim
34760 EXEEXT!$EXEEXT$ac_delim
34761 OBJEXT!$OBJEXT$ac_delim
34762 CPP!$CPP$ac_delim
34763 GREP!$GREP$ac_delim
34764 EGREP!$EGREP$ac_delim
34765 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
34766 BUILD_CC!$BUILD_CC$ac_delim
34767 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
34768 BUILD_CXX!$BUILD_CXX$ac_delim
34769 CVSBUILD!$CVSBUILD$ac_delim
34770 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
34771 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
34772 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
34773 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
34774 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
34775 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
34776 JIT!$JIT$ac_delim
34777 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
34778 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
34779 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
34780 ENABLE_PIC!$ENABLE_PIC$ac_delim
34781 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
34782 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
34783 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
34784 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
34785 CXX!$CXX$ac_delim
34786 CXXFLAGS!$CXXFLAGS$ac_delim
34787 ac_ct_CXX!$ac_ct_CXX$ac_delim
34788 NM!$NM$ac_delim
34789 ifGNUmake!$ifGNUmake$ac_delim
34790 LN_S!$LN_S$ac_delim
34791 CMP!$CMP$ac_delim
34792 CP!$CP$ac_delim
34793 DATE!$DATE$ac_delim
34794 _ACEOF
34795
34796   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34797     break
34798   elif $ac_last_try; then
34799     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34800 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34801    { (exit 1); exit 1; }; }
34802   else
34803     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34804   fi
34805 done
34806
34807 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34808 if test -n "$ac_eof"; then
34809   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34810   ac_eof=`expr $ac_eof + 1`
34811 fi
34812
34813 cat >>$CONFIG_STATUS <<_ACEOF
34814 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
34815 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34816 _ACEOF
34817 sed '
34818 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34819 s/^/s,@/; s/!/@,|#_!!_#|/
34820 :n
34821 t n
34822 s/'"$ac_delim"'$/,g/; t
34823 s/$/\\/; p
34824 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34825 ' >>$CONFIG_STATUS <conf$$subs.sed
34826 rm -f conf$$subs.sed
34827 cat >>$CONFIG_STATUS <<_ACEOF
34828 CEOF$ac_eof
34829 _ACEOF
34830
34831
34832 ac_delim='%!_!# '
34833 for ac_last_try in false false false false false :; do
34834   cat >conf$$subs.sed <<_ACEOF
34835 FIND!$FIND$ac_delim
34836 MKDIR!$MKDIR$ac_delim
34837 MV!$MV$ac_delim
34838 RANLIB!$RANLIB$ac_delim
34839 RM!$RM$ac_delim
34840 SED!$SED$ac_delim
34841 TAR!$TAR$ac_delim
34842 BINPWD!$BINPWD$ac_delim
34843 GRAPHVIZ!$GRAPHVIZ$ac_delim
34844 DOT!$DOT$ac_delim
34845 GV!$GV$ac_delim
34846 DOTTY!$DOTTY$ac_delim
34847 PERL!$PERL$ac_delim
34848 HAVE_PERL!$HAVE_PERL$ac_delim
34849 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
34850 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
34851 INSTALL_DATA!$INSTALL_DATA$ac_delim
34852 BZIP2!$BZIP2$ac_delim
34853 DOXYGEN!$DOXYGEN$ac_delim
34854 GROFF!$GROFF$ac_delim
34855 GZIP!$GZIP$ac_delim
34856 POD2HTML!$POD2HTML$ac_delim
34857 POD2MAN!$POD2MAN$ac_delim
34858 RUNTEST!$RUNTEST$ac_delim
34859 TCLSH!$TCLSH$ac_delim
34860 ZIP!$ZIP$ac_delim
34861 OCAMLC!$OCAMLC$ac_delim
34862 OCAMLOPT!$OCAMLOPT$ac_delim
34863 OCAMLDEP!$OCAMLDEP$ac_delim
34864 OCAMLDOC!$OCAMLDOC$ac_delim
34865 GAS!$GAS$ac_delim
34866 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
34867 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
34868 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
34869 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
34870 LIBADD_DL!$LIBADD_DL$ac_delim
34871 ECHO!$ECHO$ac_delim
34872 AR!$AR$ac_delim
34873 STRIP!$STRIP$ac_delim
34874 CXXCPP!$CXXCPP$ac_delim
34875 F77!$F77$ac_delim
34876 FFLAGS!$FFLAGS$ac_delim
34877 ac_ct_F77!$ac_ct_F77$ac_delim
34878 LIBTOOL!$LIBTOOL$ac_delim
34879 LLVMGCC!$LLVMGCC$ac_delim
34880 LLVMGXX!$LLVMGXX$ac_delim
34881 USE_UDIS86!$USE_UDIS86$ac_delim
34882 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
34883 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
34884 ALLOCA!$ALLOCA$ac_delim
34885 MMAP_FILE!$MMAP_FILE$ac_delim
34886 LLVMCC1!$LLVMCC1$ac_delim
34887 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
34888 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
34889 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
34890 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
34891 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
34892 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
34893 SHLIBEXT!$SHLIBEXT$ac_delim
34894 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
34895 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
34896 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
34897 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
34898 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
34899 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
34900 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
34901 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
34902 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
34903 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
34904 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
34905 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
34906 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
34907 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
34908 RPATH!$RPATH$ac_delim
34909 RDYNAMIC!$RDYNAMIC$ac_delim
34910 LIBOBJS!$LIBOBJS$ac_delim
34911 LTLIBOBJS!$LTLIBOBJS$ac_delim
34912 _ACEOF
34913
34914   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 77; then
34915     break
34916   elif $ac_last_try; then
34917     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34918 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34919    { (exit 1); exit 1; }; }
34920   else
34921     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34922   fi
34923 done
34924
34925 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34926 if test -n "$ac_eof"; then
34927   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34928   ac_eof=`expr $ac_eof + 1`
34929 fi
34930
34931 cat >>$CONFIG_STATUS <<_ACEOF
34932 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
34933 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
34934 _ACEOF
34935 sed '
34936 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34937 s/^/s,@/; s/!/@,|#_!!_#|/
34938 :n
34939 t n
34940 s/'"$ac_delim"'$/,g/; t
34941 s/$/\\/; p
34942 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34943 ' >>$CONFIG_STATUS <conf$$subs.sed
34944 rm -f conf$$subs.sed
34945 cat >>$CONFIG_STATUS <<_ACEOF
34946 :end
34947 s/|#_!!_#|//g
34948 CEOF$ac_eof
34949 _ACEOF
34950
34951
34952 # VPATH may cause trouble with some makes, so we remove $(srcdir),
34953 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
34954 # trailing colons and then remove the whole line if VPATH becomes empty
34955 # (actually we leave an empty line to preserve line numbers).
34956 if test "x$srcdir" = x.; then
34957   ac_vpsub='/^[  ]*VPATH[        ]*=/{
34958 s/:*\$(srcdir):*/:/
34959 s/:*\${srcdir}:*/:/
34960 s/:*@srcdir@:*/:/
34961 s/^\([^=]*=[     ]*\):*/\1/
34962 s/:*$//
34963 s/^[^=]*=[       ]*$//
34964 }'
34965 fi
34966
34967 cat >>$CONFIG_STATUS <<\_ACEOF
34968 fi # test -n "$CONFIG_FILES"
34969
34970
34971 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
34972 do
34973   case $ac_tag in
34974   :[FHLC]) ac_mode=$ac_tag; continue;;
34975   esac
34976   case $ac_mode$ac_tag in
34977   :[FHL]*:*);;
34978   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
34979 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
34980    { (exit 1); exit 1; }; };;
34981   :[FH]-) ac_tag=-:-;;
34982   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34983   esac
34984   ac_save_IFS=$IFS
34985   IFS=:
34986   set x $ac_tag
34987   IFS=$ac_save_IFS
34988   shift
34989   ac_file=$1
34990   shift
34991
34992   case $ac_mode in
34993   :L) ac_source=$1;;
34994   :[FH])
34995     ac_file_inputs=
34996     for ac_f
34997     do
34998       case $ac_f in
34999       -) ac_f="$tmp/stdin";;
35000       *) # Look for the file first in the build tree, then in the source tree
35001          # (if the path is not absolute).  The absolute path cannot be DOS-style,
35002          # because $ac_f cannot contain `:'.
35003          test -f "$ac_f" ||
35004            case $ac_f in
35005            [\\/$]*) false;;
35006            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35007            esac ||
35008            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35009 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35010    { (exit 1); exit 1; }; };;
35011       esac
35012       ac_file_inputs="$ac_file_inputs $ac_f"
35013     done
35014
35015     # Let's still pretend it is `configure' which instantiates (i.e., don't
35016     # use $as_me), people would be surprised to read:
35017     #    /* config.h.  Generated by config.status.  */
35018     configure_input="Generated from "`IFS=:
35019           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35020     if test x"$ac_file" != x-; then
35021       configure_input="$ac_file.  $configure_input"
35022       { echo "$as_me:$LINENO: creating $ac_file" >&5
35023 echo "$as_me: creating $ac_file" >&6;}
35024     fi
35025
35026     case $ac_tag in
35027     *:-:* | *:-) cat >"$tmp/stdin";;
35028     esac
35029     ;;
35030   esac
35031
35032   ac_dir=`$as_dirname -- "$ac_file" ||
35033 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35034          X"$ac_file" : 'X\(//\)[^/]' \| \
35035          X"$ac_file" : 'X\(//\)$' \| \
35036          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35037 echo X"$ac_file" |
35038     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35039             s//\1/
35040             q
35041           }
35042           /^X\(\/\/\)[^/].*/{
35043             s//\1/
35044             q
35045           }
35046           /^X\(\/\/\)$/{
35047             s//\1/
35048             q
35049           }
35050           /^X\(\/\).*/{
35051             s//\1/
35052             q
35053           }
35054           s/.*/./; q'`
35055   { as_dir="$ac_dir"
35056   case $as_dir in #(
35057   -*) as_dir=./$as_dir;;
35058   esac
35059   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35060     as_dirs=
35061     while :; do
35062       case $as_dir in #(
35063       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35064       *) as_qdir=$as_dir;;
35065       esac
35066       as_dirs="'$as_qdir' $as_dirs"
35067       as_dir=`$as_dirname -- "$as_dir" ||
35068 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35069          X"$as_dir" : 'X\(//\)[^/]' \| \
35070          X"$as_dir" : 'X\(//\)$' \| \
35071          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35072 echo X"$as_dir" |
35073     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35074             s//\1/
35075             q
35076           }
35077           /^X\(\/\/\)[^/].*/{
35078             s//\1/
35079             q
35080           }
35081           /^X\(\/\/\)$/{
35082             s//\1/
35083             q
35084           }
35085           /^X\(\/\).*/{
35086             s//\1/
35087             q
35088           }
35089           s/.*/./; q'`
35090       test -d "$as_dir" && break
35091     done
35092     test -z "$as_dirs" || eval "mkdir $as_dirs"
35093   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35094 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35095    { (exit 1); exit 1; }; }; }
35096   ac_builddir=.
35097
35098 case "$ac_dir" in
35099 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35100 *)
35101   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35102   # A ".." for each directory in $ac_dir_suffix.
35103   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35104   case $ac_top_builddir_sub in
35105   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35106   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35107   esac ;;
35108 esac
35109 ac_abs_top_builddir=$ac_pwd
35110 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35111 # for backward compatibility:
35112 ac_top_builddir=$ac_top_build_prefix
35113
35114 case $srcdir in
35115   .)  # We are building in place.
35116     ac_srcdir=.
35117     ac_top_srcdir=$ac_top_builddir_sub
35118     ac_abs_top_srcdir=$ac_pwd ;;
35119   [\\/]* | ?:[\\/]* )  # Absolute name.
35120     ac_srcdir=$srcdir$ac_dir_suffix;
35121     ac_top_srcdir=$srcdir
35122     ac_abs_top_srcdir=$srcdir ;;
35123   *) # Relative name.
35124     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35125     ac_top_srcdir=$ac_top_build_prefix$srcdir
35126     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35127 esac
35128 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35129
35130
35131   case $ac_mode in
35132   :F)
35133   #
35134   # CONFIG_FILE
35135   #
35136
35137   case $INSTALL in
35138   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35139   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35140   esac
35141 _ACEOF
35142
35143 cat >>$CONFIG_STATUS <<\_ACEOF
35144 # If the template does not know about datarootdir, expand it.
35145 # FIXME: This hack should be removed a few years after 2.60.
35146 ac_datarootdir_hack=; ac_datarootdir_seen=
35147
35148 case `sed -n '/datarootdir/ {
35149   p
35150   q
35151 }
35152 /@datadir@/p
35153 /@docdir@/p
35154 /@infodir@/p
35155 /@localedir@/p
35156 /@mandir@/p
35157 ' $ac_file_inputs` in
35158 *datarootdir*) ac_datarootdir_seen=yes;;
35159 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35160   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35161 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35162 _ACEOF
35163 cat >>$CONFIG_STATUS <<_ACEOF
35164   ac_datarootdir_hack='
35165   s&@datadir@&$datadir&g
35166   s&@docdir@&$docdir&g
35167   s&@infodir@&$infodir&g
35168   s&@localedir@&$localedir&g
35169   s&@mandir@&$mandir&g
35170     s&\\\${datarootdir}&$datarootdir&g' ;;
35171 esac
35172 _ACEOF
35173
35174 # Neutralize VPATH when `$srcdir' = `.'.
35175 # Shell code in configure.ac might set extrasub.
35176 # FIXME: do we really want to maintain this feature?
35177 cat >>$CONFIG_STATUS <<_ACEOF
35178   sed "$ac_vpsub
35179 $extrasub
35180 _ACEOF
35181 cat >>$CONFIG_STATUS <<\_ACEOF
35182 :t
35183 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35184 s&@configure_input@&$configure_input&;t t
35185 s&@top_builddir@&$ac_top_builddir_sub&;t t
35186 s&@srcdir@&$ac_srcdir&;t t
35187 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35188 s&@top_srcdir@&$ac_top_srcdir&;t t
35189 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35190 s&@builddir@&$ac_builddir&;t t
35191 s&@abs_builddir@&$ac_abs_builddir&;t t
35192 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35193 s&@INSTALL@&$ac_INSTALL&;t t
35194 $ac_datarootdir_hack
35195 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
35196
35197 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35198   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35199   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35200   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35201 which seems to be undefined.  Please make sure it is defined." >&5
35202 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35203 which seems to be undefined.  Please make sure it is defined." >&2;}
35204
35205   rm -f "$tmp/stdin"
35206   case $ac_file in
35207   -) cat "$tmp/out"; rm -f "$tmp/out";;
35208   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35209   esac
35210  ;;
35211   :H)
35212   #
35213   # CONFIG_HEADER
35214   #
35215 _ACEOF
35216
35217 # Transform confdefs.h into a sed script `conftest.defines', that
35218 # substitutes the proper values into config.h.in to produce config.h.
35219 rm -f conftest.defines conftest.tail
35220 # First, append a space to every undef/define line, to ease matching.
35221 echo 's/$/ /' >conftest.defines
35222 # Then, protect against being on the right side of a sed subst, or in
35223 # an unquoted here document, in config.status.  If some macros were
35224 # called several times there might be several #defines for the same
35225 # symbol, which is useless.  But do not sort them, since the last
35226 # AC_DEFINE must be honored.
35227 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35228 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35229 # NAME is the cpp macro being defined, VALUE is the value it is being given.
35230 # PARAMS is the parameter list in the macro definition--in most cases, it's
35231 # just an empty string.
35232 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
35233 ac_dB='\\)[      (].*,\\1define\\2'
35234 ac_dC=' '
35235 ac_dD=' ,'
35236
35237 uniq confdefs.h |
35238   sed -n '
35239         t rset
35240         :rset
35241         s/^[     ]*#[    ]*define[       ][      ]*//
35242         t ok
35243         d
35244         :ok
35245         s/[\\&,]/\\&/g
35246         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35247         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35248   ' >>conftest.defines
35249
35250 # Remove the space that was appended to ease matching.
35251 # Then replace #undef with comments.  This is necessary, for
35252 # example, in the case of _POSIX_SOURCE, which is predefined and required
35253 # on some systems where configure will not decide to define it.
35254 # (The regexp can be short, since the line contains either #define or #undef.)
35255 echo 's/ $//
35256 s,^[     #]*u.*,/* & */,' >>conftest.defines
35257
35258 # Break up conftest.defines:
35259 ac_max_sed_lines=50
35260
35261 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35262 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35263 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35264 # et cetera.
35265 ac_in='$ac_file_inputs'
35266 ac_out='"$tmp/out1"'
35267 ac_nxt='"$tmp/out2"'
35268
35269 while :
35270 do
35271   # Write a here document:
35272     cat >>$CONFIG_STATUS <<_ACEOF
35273     # First, check the format of the line:
35274     cat >"\$tmp/defines.sed" <<\\CEOF
35275 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
35276 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
35277 b
35278 :def
35279 _ACEOF
35280   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
35281   echo 'CEOF
35282     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35283   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35284   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35285   grep . conftest.tail >/dev/null || break
35286   rm -f conftest.defines
35287   mv conftest.tail conftest.defines
35288 done
35289 rm -f conftest.defines conftest.tail
35290
35291 echo "ac_result=$ac_in" >>$CONFIG_STATUS
35292 cat >>$CONFIG_STATUS <<\_ACEOF
35293   if test x"$ac_file" != x-; then
35294     echo "/* $configure_input  */" >"$tmp/config.h"
35295     cat "$ac_result" >>"$tmp/config.h"
35296     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
35297       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35298 echo "$as_me: $ac_file is unchanged" >&6;}
35299     else
35300       rm -f $ac_file
35301       mv "$tmp/config.h" $ac_file
35302     fi
35303   else
35304     echo "/* $configure_input  */"
35305     cat "$ac_result"
35306   fi
35307   rm -f "$tmp/out12"
35308  ;;
35309
35310   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35311 echo "$as_me: executing $ac_file commands" >&6;}
35312  ;;
35313   esac
35314
35315
35316   case $ac_file$ac_mode in
35317     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
35318    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
35319     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
35320    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
35321     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
35322    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
35323     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
35324    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
35325     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
35326    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
35327     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
35328    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
35329     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
35330    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
35331     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
35332    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
35333     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
35334    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
35335     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
35336    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
35337     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
35338    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
35339     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
35340    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
35341     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
35342    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
35343
35344   esac
35345 done # for ac_tag
35346
35347
35348 { (exit 0); exit 0; }
35349 _ACEOF
35350 chmod +x $CONFIG_STATUS
35351 ac_clean_files=$ac_clean_files_save
35352
35353
35354 # configure is writing to config.log, and then calls config.status.
35355 # config.status does its own redirection, appending to config.log.
35356 # Unfortunately, on DOS this fails, as config.log is still kept open
35357 # by configure, so config.status won't be able to write to it; its
35358 # output is simply discarded.  So we exec the FD to /dev/null,
35359 # effectively closing config.log, so it can be properly (re)opened and
35360 # appended to by config.status.  When coming back to configure, we
35361 # need to make the FD available again.
35362 if test "$no_create" != yes; then
35363   ac_cs_success=:
35364   ac_config_status_args=
35365   test "$silent" = yes &&
35366     ac_config_status_args="$ac_config_status_args --quiet"
35367   exec 5>/dev/null
35368   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35369   exec 5>>config.log
35370   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35371   # would make configure fail if this is the last instruction.
35372   $ac_cs_success || { (exit 1); exit 1; }
35373 fi
35374
35375 #
35376 # CONFIG_SUBDIRS section.
35377 #
35378 if test "$no_recursion" != yes; then
35379
35380   # Remove --cache-file and --srcdir arguments so they do not pile up.
35381   ac_sub_configure_args=
35382   ac_prev=
35383   eval "set x $ac_configure_args"
35384   shift
35385   for ac_arg
35386   do
35387     if test -n "$ac_prev"; then
35388       ac_prev=
35389       continue
35390     fi
35391     case $ac_arg in
35392     -cache-file | --cache-file | --cache-fil | --cache-fi \
35393     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35394       ac_prev=cache_file ;;
35395     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35396     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35397     | --c=*)
35398       ;;
35399     --config-cache | -C)
35400       ;;
35401     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35402       ac_prev=srcdir ;;
35403     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35404       ;;
35405     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35406       ac_prev=prefix ;;
35407     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35408       ;;
35409     *)
35410       case $ac_arg in
35411       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35412       esac
35413       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
35414     esac
35415   done
35416
35417   # Always prepend --prefix to ensure using the same prefix
35418   # in subdir configurations.
35419   ac_arg="--prefix=$prefix"
35420   case $ac_arg in
35421   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35422   esac
35423   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
35424
35425   ac_popdir=`pwd`
35426   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35427
35428     # Do not complain, so a configure script can configure whichever
35429     # parts of a large source tree are present.
35430     test -d "$srcdir/$ac_dir" || continue
35431
35432     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35433     echo "$as_me:$LINENO: $ac_msg" >&5
35434     echo "$ac_msg" >&6
35435     { as_dir="$ac_dir"
35436   case $as_dir in #(
35437   -*) as_dir=./$as_dir;;
35438   esac
35439   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35440     as_dirs=
35441     while :; do
35442       case $as_dir in #(
35443       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35444       *) as_qdir=$as_dir;;
35445       esac
35446       as_dirs="'$as_qdir' $as_dirs"
35447       as_dir=`$as_dirname -- "$as_dir" ||
35448 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35449          X"$as_dir" : 'X\(//\)[^/]' \| \
35450          X"$as_dir" : 'X\(//\)$' \| \
35451          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35452 echo X"$as_dir" |
35453     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35454             s//\1/
35455             q
35456           }
35457           /^X\(\/\/\)[^/].*/{
35458             s//\1/
35459             q
35460           }
35461           /^X\(\/\/\)$/{
35462             s//\1/
35463             q
35464           }
35465           /^X\(\/\).*/{
35466             s//\1/
35467             q
35468           }
35469           s/.*/./; q'`
35470       test -d "$as_dir" && break
35471     done
35472     test -z "$as_dirs" || eval "mkdir $as_dirs"
35473   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35474 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35475    { (exit 1); exit 1; }; }; }
35476     ac_builddir=.
35477
35478 case "$ac_dir" in
35479 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35480 *)
35481   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35482   # A ".." for each directory in $ac_dir_suffix.
35483   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35484   case $ac_top_builddir_sub in
35485   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35486   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35487   esac ;;
35488 esac
35489 ac_abs_top_builddir=$ac_pwd
35490 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35491 # for backward compatibility:
35492 ac_top_builddir=$ac_top_build_prefix
35493
35494 case $srcdir in
35495   .)  # We are building in place.
35496     ac_srcdir=.
35497     ac_top_srcdir=$ac_top_builddir_sub
35498     ac_abs_top_srcdir=$ac_pwd ;;
35499   [\\/]* | ?:[\\/]* )  # Absolute name.
35500     ac_srcdir=$srcdir$ac_dir_suffix;
35501     ac_top_srcdir=$srcdir
35502     ac_abs_top_srcdir=$srcdir ;;
35503   *) # Relative name.
35504     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35505     ac_top_srcdir=$ac_top_build_prefix$srcdir
35506     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35507 esac
35508 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35509
35510
35511     cd "$ac_dir"
35512
35513     # Check for guested configure; otherwise get Cygnus style configure.
35514     if test -f "$ac_srcdir/configure.gnu"; then
35515       ac_sub_configure=$ac_srcdir/configure.gnu
35516     elif test -f "$ac_srcdir/configure"; then
35517       ac_sub_configure=$ac_srcdir/configure
35518     elif test -f "$ac_srcdir/configure.in"; then
35519       # This should be Cygnus configure.
35520       ac_sub_configure=$ac_aux_dir/configure
35521     else
35522       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
35523 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
35524       ac_sub_configure=
35525     fi
35526
35527     # The recursion is here.
35528     if test -n "$ac_sub_configure"; then
35529       # Make the cache file name correct relative to the subdirectory.
35530       case $cache_file in
35531       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
35532       *) # Relative name.
35533         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
35534       esac
35535
35536       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
35537 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
35538       # The eval makes quoting arguments work.
35539       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
35540            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
35541         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
35542 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
35543    { (exit 1); exit 1; }; }
35544     fi
35545
35546     cd "$ac_popdir"
35547   done
35548 fi
35549