7b213bba6cd46ac59011bceabee7dfcd026ee305
[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.2svn.
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-2007 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.2svn'
719 PACKAGE_STRING='llvm 2.2svn'
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 CVSBUILD
831 ENABLE_OPTIMIZED
832 DISABLE_ASSERTIONS
833 ENABLE_EXPENSIVE_CHECKS
834 EXPENSIVE_CHECKS
835 DEBUG_RUNTIME
836 JIT
837 TARGET_HAS_JIT
838 ENABLE_DOXYGEN
839 ENABLE_THREADS
840 ENABLE_PIC
841 TARGETS_TO_BUILD
842 ENABLE_CBE_PRINTF_A
843 EXTRA_OPTIONS
844 CXX
845 CXXFLAGS
846 ac_ct_CXX
847 LEX
848 LEXLIB
849 LEX_OUTPUT_ROOT
850 FLEX
851 YACC
852 YFLAGS
853 BISON
854 NM
855 ifGNUmake
856 LN_S
857 CMP
858 CP
859 DATE
860 FIND
861 MKDIR
862 MV
863 RANLIB
864 RM
865 SED
866 TAR
867 BINPWD
868 GRAPHVIZ
869 DOT
870 GV
871 DOTTY
872 PERL
873 HAVE_PERL
874 INSTALL_PROGRAM
875 INSTALL_SCRIPT
876 INSTALL_DATA
877 BZIP2
878 DOXYGEN
879 GROFF
880 GZIP
881 POD2HTML
882 POD2MAN
883 RUNTEST
884 TCLSH
885 ZIP
886 OCAMLC
887 OCAMLOPT
888 OCAMLDEP
889 INSTALL_LTDL_TRUE
890 INSTALL_LTDL_FALSE
891 CONVENIENCE_LTDL_TRUE
892 CONVENIENCE_LTDL_FALSE
893 LIBADD_DL
894 ECHO
895 AR
896 STRIP
897 CXXCPP
898 F77
899 FFLAGS
900 ac_ct_F77
901 LIBTOOL
902 LLVMGCC
903 LLVMGXX
904 USE_UDIS86
905 HAVE_PTHREAD
906 HUGE_VAL_SANITY
907 ALLOCA
908 MMAP_FILE
909 LLVMCC1
910 LLVMCC1PLUS
911 LLVMGCCDIR
912 LLVMGCCLIBEXEC
913 LLVMGCC_VERSION
914 LLVMGCC_MAJVERS
915 LLVMGCC_LANGS
916 SHLIBEXT
917 LLVM_PREFIX
918 LLVM_BINDIR
919 LLVM_LIBDIR
920 LLVM_DATADIR
921 LLVM_DOCSDIR
922 LLVM_ETCDIR
923 LLVM_INCLUDEDIR
924 LLVM_INFODIR
925 LLVM_MANDIR
926 LLVM_CONFIGTIME
927 BINDINGS_TO_BUILD
928 ALL_BINDINGS
929 OCAML_LIBDIR
930 LIBOBJS
931 LTLIBOBJS'
932 ac_subst_files=''
933       ac_precious_vars='build_alias
934 host_alias
935 target_alias
936 CC
937 CFLAGS
938 LDFLAGS
939 CPPFLAGS
940 CPP
941 CXX
942 CXXFLAGS
943 CCC
944 YACC
945 YFLAGS
946 CXXCPP
947 F77
948 FFLAGS'
949 ac_subdirs_all='projects/sample
950 projects/privbracket
951 projects/llvm-stacker
952 projects/llvm-test
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.2svn 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.2svn:";;
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-assertions
1536   --enable-expensive-checks
1537
1538   --enable-debug-runtime
1539   --enable-jit            Enable Just In Time Compiling (default is YES)
1540   --enable-doxygen        Build doxygen documentation (default is NO)
1541   --enable-threads        Use threads if available (default is YES)
1542   --enable-pic            Build LLVM with Position Independent Code (default
1543                           is NO)
1544   --enable-targets        Build specific host targets:
1545                           all,host-only,{target-name} (default=all)
1546   --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1547                           %a (default is YES)
1548   --enable-bindings       Build specific language bindings:
1549                           all,auto,none,{binding-name} (default=auto)
1550   --enable-ltdl-install   install libltdl
1551   --enable-shared[=PKGS]  build shared libraries
1552                           [default=yes]
1553   --enable-static[=PKGS]  build static libraries
1554                           [default=yes]
1555   --enable-fast-install[=PKGS]
1556                           optimize for fast installation
1557                           [default=yes]
1558   --disable-libtool-lock  avoid locking (might break parallel builds)
1559
1560 Optional Packages:
1561   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1562   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1563   --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1564                           searches PATH)
1565   --with-llvmgcc          Specify location of llvm-gcc driver (default
1566                           searches PATH)
1567   --with-llvmgxx          Specify location of llvm-g++ driver (default
1568                           searches PATH)
1569   --with-extra-options    Specify addtional options to compile LLVM with
1570   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1571                           is stdlib)
1572   --with-tclinclude       directory where tcl headers are
1573   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1574   --with-pic              try to use only PIC/non-PIC objects [default=use
1575                           both]
1576   --with-tags[=TAGS]      include additional configurations [automatic]
1577   --with-udis86=<path>    Use udis86 external x86 disassembler library
1578
1579 Some influential environment variables:
1580   CC          C compiler command
1581   CFLAGS      C compiler flags
1582   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1583               nonstandard directory <lib dir>
1584   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1585               you have headers in a nonstandard directory <include dir>
1586   CPP         C preprocessor
1587   CXX         C++ compiler command
1588   CXXFLAGS    C++ compiler flags
1589   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1590               the first program found out of: `bison -y', `byacc', `yacc'.
1591   YFLAGS      The list of arguments that will be passed by default to $YACC.
1592               This script will default YFLAGS to the empty string to avoid a
1593               default value of `-d' given by some make applications.
1594   CXXCPP      C++ preprocessor
1595   F77         Fortran 77 compiler command
1596   FFLAGS      Fortran 77 compiler flags
1597
1598 Use these variables to override the choices made by `configure' or to help
1599 it to find libraries and programs with nonstandard names/locations.
1600
1601 Report bugs to <llvmbugs@cs.uiuc.edu>.
1602 _ACEOF
1603 ac_status=$?
1604 fi
1605
1606 if test "$ac_init_help" = "recursive"; then
1607   # If there are subdirs, report their specific --help.
1608   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1609     test -d "$ac_dir" || continue
1610     ac_builddir=.
1611
1612 case "$ac_dir" in
1613 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1614 *)
1615   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1616   # A ".." for each directory in $ac_dir_suffix.
1617   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1618   case $ac_top_builddir_sub in
1619   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1620   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1621   esac ;;
1622 esac
1623 ac_abs_top_builddir=$ac_pwd
1624 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1625 # for backward compatibility:
1626 ac_top_builddir=$ac_top_build_prefix
1627
1628 case $srcdir in
1629   .)  # We are building in place.
1630     ac_srcdir=.
1631     ac_top_srcdir=$ac_top_builddir_sub
1632     ac_abs_top_srcdir=$ac_pwd ;;
1633   [\\/]* | ?:[\\/]* )  # Absolute name.
1634     ac_srcdir=$srcdir$ac_dir_suffix;
1635     ac_top_srcdir=$srcdir
1636     ac_abs_top_srcdir=$srcdir ;;
1637   *) # Relative name.
1638     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1639     ac_top_srcdir=$ac_top_build_prefix$srcdir
1640     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1641 esac
1642 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1643
1644     cd "$ac_dir" || { ac_status=$?; continue; }
1645     # Check for guested configure.
1646     if test -f "$ac_srcdir/configure.gnu"; then
1647       echo &&
1648       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1649     elif test -f "$ac_srcdir/configure"; then
1650       echo &&
1651       $SHELL "$ac_srcdir/configure" --help=recursive
1652     else
1653       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1654     fi || ac_status=$?
1655     cd "$ac_pwd" || { ac_status=$?; break; }
1656   done
1657 fi
1658
1659 test -n "$ac_init_help" && exit $ac_status
1660 if $ac_init_version; then
1661   cat <<\_ACEOF
1662 llvm configure 2.2svn
1663 generated by GNU Autoconf 2.60
1664
1665 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1666 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1667 This configure script is free software; the Free Software Foundation
1668 gives unlimited permission to copy, distribute and modify it.
1669
1670 Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign.
1671 _ACEOF
1672   exit
1673 fi
1674 cat >config.log <<_ACEOF
1675 This file contains any messages produced by compilers while
1676 running configure, to aid debugging if configure makes a mistake.
1677
1678 It was created by llvm $as_me 2.2svn, which was
1679 generated by GNU Autoconf 2.60.  Invocation command line was
1680
1681   $ $0 $@
1682
1683 _ACEOF
1684 exec 5>>config.log
1685 {
1686 cat <<_ASUNAME
1687 ## --------- ##
1688 ## Platform. ##
1689 ## --------- ##
1690
1691 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1692 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1693 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1694 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1695 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1696
1697 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1698 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1699
1700 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1701 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1702 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1703 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1704 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1705 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1706 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1707
1708 _ASUNAME
1709
1710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1711 for as_dir in $PATH
1712 do
1713   IFS=$as_save_IFS
1714   test -z "$as_dir" && as_dir=.
1715   echo "PATH: $as_dir"
1716 done
1717 IFS=$as_save_IFS
1718
1719 } >&5
1720
1721 cat >&5 <<_ACEOF
1722
1723
1724 ## ----------- ##
1725 ## Core tests. ##
1726 ## ----------- ##
1727
1728 _ACEOF
1729
1730
1731 # Keep a trace of the command line.
1732 # Strip out --no-create and --no-recursion so they do not pile up.
1733 # Strip out --silent because we don't want to record it for future runs.
1734 # Also quote any args containing shell meta-characters.
1735 # Make two passes to allow for proper duplicate-argument suppression.
1736 ac_configure_args=
1737 ac_configure_args0=
1738 ac_configure_args1=
1739 ac_must_keep_next=false
1740 for ac_pass in 1 2
1741 do
1742   for ac_arg
1743   do
1744     case $ac_arg in
1745     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1746     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1747     | -silent | --silent | --silen | --sile | --sil)
1748       continue ;;
1749     *\'*)
1750       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1751     esac
1752     case $ac_pass in
1753     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1754     2)
1755       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1756       if test $ac_must_keep_next = true; then
1757         ac_must_keep_next=false # Got value, back to normal.
1758       else
1759         case $ac_arg in
1760           *=* | --config-cache | -C | -disable-* | --disable-* \
1761           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1762           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1763           | -with-* | --with-* | -without-* | --without-* | --x)
1764             case "$ac_configure_args0 " in
1765               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1766             esac
1767             ;;
1768           -* ) ac_must_keep_next=true ;;
1769         esac
1770       fi
1771       ac_configure_args="$ac_configure_args '$ac_arg'"
1772       ;;
1773     esac
1774   done
1775 done
1776 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1777 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1778
1779 # When interrupted or exit'd, cleanup temporary files, and complete
1780 # config.log.  We remove comments because anyway the quotes in there
1781 # would cause problems or look ugly.
1782 # WARNING: Use '\'' to represent an apostrophe within the trap.
1783 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1784 trap 'exit_status=$?
1785   # Save into config.log some information that might help in debugging.
1786   {
1787     echo
1788
1789     cat <<\_ASBOX
1790 ## ---------------- ##
1791 ## Cache variables. ##
1792 ## ---------------- ##
1793 _ASBOX
1794     echo
1795     # The following way of writing the cache mishandles newlines in values,
1796 (
1797   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1798     eval ac_val=\$$ac_var
1799     case $ac_val in #(
1800     *${as_nl}*)
1801       case $ac_var in #(
1802       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1803 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1804       esac
1805       case $ac_var in #(
1806       _ | IFS | as_nl) ;; #(
1807       *) $as_unset $ac_var ;;
1808       esac ;;
1809     esac
1810   done
1811   (set) 2>&1 |
1812     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1813     *${as_nl}ac_space=\ *)
1814       sed -n \
1815         "s/'\''/'\''\\\\'\'''\''/g;
1816           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1817       ;; #(
1818     *)
1819       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1820       ;;
1821     esac |
1822     sort
1823 )
1824     echo
1825
1826     cat <<\_ASBOX
1827 ## ----------------- ##
1828 ## Output variables. ##
1829 ## ----------------- ##
1830 _ASBOX
1831     echo
1832     for ac_var in $ac_subst_vars
1833     do
1834       eval ac_val=\$$ac_var
1835       case $ac_val in
1836       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1837       esac
1838       echo "$ac_var='\''$ac_val'\''"
1839     done | sort
1840     echo
1841
1842     if test -n "$ac_subst_files"; then
1843       cat <<\_ASBOX
1844 ## ------------------- ##
1845 ## File substitutions. ##
1846 ## ------------------- ##
1847 _ASBOX
1848       echo
1849       for ac_var in $ac_subst_files
1850       do
1851         eval ac_val=\$$ac_var
1852         case $ac_val in
1853         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1854         esac
1855         echo "$ac_var='\''$ac_val'\''"
1856       done | sort
1857       echo
1858     fi
1859
1860     if test -s confdefs.h; then
1861       cat <<\_ASBOX
1862 ## ----------- ##
1863 ## confdefs.h. ##
1864 ## ----------- ##
1865 _ASBOX
1866       echo
1867       cat confdefs.h
1868       echo
1869     fi
1870     test "$ac_signal" != 0 &&
1871       echo "$as_me: caught signal $ac_signal"
1872     echo "$as_me: exit $exit_status"
1873   } >&5
1874   rm -f core *.core core.conftest.* &&
1875     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1876     exit $exit_status
1877 ' 0
1878 for ac_signal in 1 2 13 15; do
1879   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1880 done
1881 ac_signal=0
1882
1883 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1884 rm -f -r conftest* confdefs.h
1885
1886 # Predefined preprocessor variables.
1887
1888 cat >>confdefs.h <<_ACEOF
1889 #define PACKAGE_NAME "$PACKAGE_NAME"
1890 _ACEOF
1891
1892
1893 cat >>confdefs.h <<_ACEOF
1894 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1895 _ACEOF
1896
1897
1898 cat >>confdefs.h <<_ACEOF
1899 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1900 _ACEOF
1901
1902
1903 cat >>confdefs.h <<_ACEOF
1904 #define PACKAGE_STRING "$PACKAGE_STRING"
1905 _ACEOF
1906
1907
1908 cat >>confdefs.h <<_ACEOF
1909 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1910 _ACEOF
1911
1912
1913 # Let the site file select an alternate cache file if it wants to.
1914 # Prefer explicitly selected file to automatically selected ones.
1915 if test -n "$CONFIG_SITE"; then
1916   set x "$CONFIG_SITE"
1917 elif test "x$prefix" != xNONE; then
1918   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1919 else
1920   set x "$ac_default_prefix/share/config.site" \
1921         "$ac_default_prefix/etc/config.site"
1922 fi
1923 shift
1924 for ac_site_file
1925 do
1926   if test -r "$ac_site_file"; then
1927     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1928 echo "$as_me: loading site script $ac_site_file" >&6;}
1929     sed 's/^/| /' "$ac_site_file" >&5
1930     . "$ac_site_file"
1931   fi
1932 done
1933
1934 if test -r "$cache_file"; then
1935   # Some versions of bash will fail to source /dev/null (special
1936   # files actually), so we avoid doing that.
1937   if test -f "$cache_file"; then
1938     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1939 echo "$as_me: loading cache $cache_file" >&6;}
1940     case $cache_file in
1941       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1942       *)                      . "./$cache_file";;
1943     esac
1944   fi
1945 else
1946   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1947 echo "$as_me: creating cache $cache_file" >&6;}
1948   >$cache_file
1949 fi
1950
1951 # Check that the precious variables saved in the cache have kept the same
1952 # value.
1953 ac_cache_corrupted=false
1954 for ac_var in $ac_precious_vars; do
1955   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1956   eval ac_new_set=\$ac_env_${ac_var}_set
1957   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1958   eval ac_new_val=\$ac_env_${ac_var}_value
1959   case $ac_old_set,$ac_new_set in
1960     set,)
1961       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1962 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1963       ac_cache_corrupted=: ;;
1964     ,set)
1965       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1966 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1967       ac_cache_corrupted=: ;;
1968     ,);;
1969     *)
1970       if test "x$ac_old_val" != "x$ac_new_val"; then
1971         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1972 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1973         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1974 echo "$as_me:   former value:  $ac_old_val" >&2;}
1975         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1976 echo "$as_me:   current value: $ac_new_val" >&2;}
1977         ac_cache_corrupted=:
1978       fi;;
1979   esac
1980   # Pass precious variables to config.status.
1981   if test "$ac_new_set" = set; then
1982     case $ac_new_val in
1983     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1984     *) ac_arg=$ac_var=$ac_new_val ;;
1985     esac
1986     case " $ac_configure_args " in
1987       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1988       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1989     esac
1990   fi
1991 done
1992 if $ac_cache_corrupted; then
1993   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1994 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1995   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1996 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1997    { (exit 1); exit 1; }; }
1998 fi
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024 ac_ext=c
2025 ac_cpp='$CPP $CPPFLAGS'
2026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2029
2030
2031
2032 LLVM_COPYRIGHT="Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign."
2033
2034
2035
2036
2037
2038
2039
2040 ac_aux_dir=
2041 for ac_dir in autoconf "$srcdir"/autoconf; do
2042   if test -f "$ac_dir/install-sh"; then
2043     ac_aux_dir=$ac_dir
2044     ac_install_sh="$ac_aux_dir/install-sh -c"
2045     break
2046   elif test -f "$ac_dir/install.sh"; then
2047     ac_aux_dir=$ac_dir
2048     ac_install_sh="$ac_aux_dir/install.sh -c"
2049     break
2050   elif test -f "$ac_dir/shtool"; then
2051     ac_aux_dir=$ac_dir
2052     ac_install_sh="$ac_aux_dir/shtool install -c"
2053     break
2054   fi
2055 done
2056 if test -z "$ac_aux_dir"; then
2057   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2058 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2059    { (exit 1); exit 1; }; }
2060 fi
2061
2062 # These three variables are undocumented and unsupported,
2063 # and are intended to be withdrawn in a future Autoconf release.
2064 # They can cause serious problems if a builder's source tree is in a directory
2065 # whose full name contains unusual characters.
2066 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2067 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2068 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2069
2070
2071
2072 if test ${srcdir} != "." ; then
2073   if test -f ${srcdir}/include/llvm/Config/config.h ; then
2074     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2075 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2076    { (exit 1); exit 1; }; }
2077   fi
2078 fi
2079
2080 for i in `ls ${srcdir}/projects`
2081 do
2082   if test -d ${srcdir}/projects/${i} ; then
2083     case ${i} in
2084       CVS) ;;
2085       sample)       subdirs="$subdirs projects/sample"
2086     ;;
2087       privbracket)  subdirs="$subdirs projects/privbracket"
2088  ;;
2089       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2090  ;;
2091       llvm-test)    subdirs="$subdirs projects/llvm-test"
2092  ;;
2093       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
2094 ;;
2095       llvm-gcc)     subdirs="$subdirs projects/llvm-gcc"
2096   ;;
2097       llvm-java)    subdirs="$subdirs projects/llvm-java"
2098  ;;
2099       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
2100    ;;
2101       llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2102  ;;
2103       poolalloc)    subdirs="$subdirs projects/poolalloc"
2104  ;;
2105       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
2106  ;;
2107       *)
2108         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2109 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2110         ;;
2111     esac
2112   fi
2113 done
2114
2115
2116 # Make sure we can run config.sub.
2117 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2118   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2119 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2120    { (exit 1); exit 1; }; }
2121
2122 { echo "$as_me:$LINENO: checking build system type" >&5
2123 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2124 if test "${ac_cv_build+set}" = set; then
2125   echo $ECHO_N "(cached) $ECHO_C" >&6
2126 else
2127   ac_build_alias=$build_alias
2128 test "x$ac_build_alias" = x &&
2129   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2130 test "x$ac_build_alias" = x &&
2131   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2132 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2133    { (exit 1); exit 1; }; }
2134 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2135   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2136 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2137    { (exit 1); exit 1; }; }
2138
2139 fi
2140 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2141 echo "${ECHO_T}$ac_cv_build" >&6; }
2142 case $ac_cv_build in
2143 *-*-*) ;;
2144 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2145 echo "$as_me: error: invalid value of canonical build" >&2;}
2146    { (exit 1); exit 1; }; };;
2147 esac
2148 build=$ac_cv_build
2149 ac_save_IFS=$IFS; IFS='-'
2150 set x $ac_cv_build
2151 shift
2152 build_cpu=$1
2153 build_vendor=$2
2154 shift; shift
2155 # Remember, the first character of IFS is used to create $*,
2156 # except with old shells:
2157 build_os=$*
2158 IFS=$ac_save_IFS
2159 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2160
2161
2162 { echo "$as_me:$LINENO: checking host system type" >&5
2163 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2164 if test "${ac_cv_host+set}" = set; then
2165   echo $ECHO_N "(cached) $ECHO_C" >&6
2166 else
2167   if test "x$host_alias" = x; then
2168   ac_cv_host=$ac_cv_build
2169 else
2170   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2171     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2172 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2173    { (exit 1); exit 1; }; }
2174 fi
2175
2176 fi
2177 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2178 echo "${ECHO_T}$ac_cv_host" >&6; }
2179 case $ac_cv_host in
2180 *-*-*) ;;
2181 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2182 echo "$as_me: error: invalid value of canonical host" >&2;}
2183    { (exit 1); exit 1; }; };;
2184 esac
2185 host=$ac_cv_host
2186 ac_save_IFS=$IFS; IFS='-'
2187 set x $ac_cv_host
2188 shift
2189 host_cpu=$1
2190 host_vendor=$2
2191 shift; shift
2192 # Remember, the first character of IFS is used to create $*,
2193 # except with old shells:
2194 host_os=$*
2195 IFS=$ac_save_IFS
2196 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2197
2198
2199 { echo "$as_me:$LINENO: checking target system type" >&5
2200 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2201 if test "${ac_cv_target+set}" = set; then
2202   echo $ECHO_N "(cached) $ECHO_C" >&6
2203 else
2204   if test "x$target_alias" = x; then
2205   ac_cv_target=$ac_cv_host
2206 else
2207   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2208     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2209 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2210    { (exit 1); exit 1; }; }
2211 fi
2212
2213 fi
2214 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2215 echo "${ECHO_T}$ac_cv_target" >&6; }
2216 case $ac_cv_target in
2217 *-*-*) ;;
2218 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2219 echo "$as_me: error: invalid value of canonical target" >&2;}
2220    { (exit 1); exit 1; }; };;
2221 esac
2222 target=$ac_cv_target
2223 ac_save_IFS=$IFS; IFS='-'
2224 set x $ac_cv_target
2225 shift
2226 target_cpu=$1
2227 target_vendor=$2
2228 shift; shift
2229 # Remember, the first character of IFS is used to create $*,
2230 # except with old shells:
2231 target_os=$*
2232 IFS=$ac_save_IFS
2233 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2234
2235
2236 # The aliases save the names the user supplied, while $host etc.
2237 # will get canonicalized.
2238 test -n "$target_alias" &&
2239   test "$program_prefix$program_suffix$program_transform_name" = \
2240     NONENONEs,x,x, &&
2241   program_prefix=${target_alias}-
2242
2243 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2244 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2245 if test "${llvm_cv_os_type+set}" = set; then
2246   echo $ECHO_N "(cached) $ECHO_C" >&6
2247 else
2248   case $host in
2249   *-*-aix*)
2250     llvm_cv_link_all_option="-Wl,--whole-archive"
2251     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2252     llvm_cv_os_type="AIX"
2253     llvm_cv_platform_type="Unix" ;;
2254   *-*-irix*)
2255     llvm_cv_link_all_option="-Wl,--whole-archive"
2256     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2257     llvm_cv_os_type="IRIX"
2258     llvm_cv_platform_type="Unix" ;;
2259   *-*-cygwin*)
2260     llvm_cv_link_all_option="-Wl,--whole-archive"
2261     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2262     llvm_cv_os_type="Cygwin"
2263     llvm_cv_platform_type="Unix" ;;
2264   *-*-darwin*)
2265     llvm_cv_link_all_option="-Wl,-all_load"
2266     llvm_cv_link_all_option="-Wl,-noall_load"
2267     llvm_cv_os_type="Darwin"
2268     llvm_cv_platform_type="Unix" ;;
2269   *-*-freebsd*)
2270     llvm_cv_link_all_option="-Wl,--whole-archive"
2271     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2272     llvm_cv_os_type="FreeBSD"
2273     llvm_cv_platform_type="Unix" ;;
2274   *-*-openbsd*)
2275     llvm_cv_link_all_option="-Wl,--whole-archive"
2276     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2277     llvm_cv_os_type="OpenBSD"
2278     llvm_cv_platform_type="Unix" ;;
2279   *-*-netbsd*)
2280     llvm_cv_link_all_option="-Wl,--whole-archive"
2281     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2282     llvm_cv_os_type="NetBSD"
2283     llvm_cv_platform_type="Unix" ;;
2284   *-*-hpux*)
2285     llvm_cv_link_all_option="-Wl,--whole-archive"
2286     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2287     llvm_cv_os_type="HP-UX"
2288     llvm_cv_platform_type="Unix" ;;
2289   *-*-interix*)
2290     llvm_cv_link_all_option="-Wl,--whole-archive"
2291     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2292     llvm_cv_os_type="Interix"
2293     llvm_cv_platform_type="Unix" ;;
2294   *-*-linux*)
2295     llvm_cv_link_all_option="-Wl,--whole-archive"
2296     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2297     llvm_cv_os_type="Linux"
2298     llvm_cv_platform_type="Unix" ;;
2299   *-*-solaris*)
2300     llvm_cv_link_all_option="-Wl,-z,allextract"
2301     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2302     llvm_cv_os_type="SunOS"
2303     llvm_cv_platform_type="Unix" ;;
2304   *-*-win32*)
2305     llvm_cv_link_all_option="-Wl,--whole-archive"
2306     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2307     llvm_cv_os_type="Win32"
2308     llvm_cv_platform_type="Win32" ;;
2309   *-*-mingw*)
2310     llvm_cv_link_all_option="-Wl,--whole-archive"
2311     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2312     llvm_cv_os_type="MingW"
2313     llvm_cv_platform_type="Win32" ;;
2314   *)
2315     llvm_cv_link_all_option=""
2316     llvm_cv_no_link_all_option=""
2317     llvm_cv_os_type="Unknown"
2318     llvm_cv_platform_type="Unknown" ;;
2319 esac
2320 fi
2321 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2322 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2323
2324 if test "$llvm_cv_os_type" = "Unknown" ; then
2325   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2326 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2327    { (exit 1); exit 1; }; }
2328 fi
2329
2330 OS=$llvm_cv_os_type
2331
2332
2333 LINKALL=$llvm_cv_link_all_option
2334
2335 NOLINKALL=$llvm_cv_no_link_all_option
2336
2337
2338 case $llvm_cv_platform_type in
2339   Unix)
2340
2341 cat >>confdefs.h <<\_ACEOF
2342 #define LLVM_ON_UNIX 1
2343 _ACEOF
2344
2345     LLVM_ON_UNIX=1
2346
2347     LLVM_ON_WIN32=0
2348
2349     ;;
2350   Win32)
2351
2352 cat >>confdefs.h <<\_ACEOF
2353 #define LLVM_ON_WIN32 1
2354 _ACEOF
2355
2356     LLVM_ON_UNIX=0
2357
2358     LLVM_ON_WIN32=1
2359
2360     ;;
2361 esac
2362
2363 { echo "$as_me:$LINENO: checking target architecture" >&5
2364 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2365 if test "${llvm_cv_target_arch+set}" = set; then
2366   echo $ECHO_N "(cached) $ECHO_C" >&6
2367 else
2368   case $target in
2369   i?86-*)                 llvm_cv_target_arch="x86" ;;
2370   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
2371   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
2372   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
2373   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
2374   ia64-*)                 llvm_cv_target_arch="IA64" ;;
2375   arm-*)                  llvm_cv_target_arch="ARM" ;;
2376   mips-*)                 llvm_cv_target_arch="Mips" ;;
2377   *)                      llvm_cv_target_arch="Unknown" ;;
2378 esac
2379 fi
2380 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2381 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2382
2383 if test "$llvm_cv_target_arch" = "Unknown" ; then
2384   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2385 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2386 fi
2387
2388 ARCH=$llvm_cv_target_arch
2389
2390
2391 ac_ext=c
2392 ac_cpp='$CPP $CPPFLAGS'
2393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2396 if test -n "$ac_tool_prefix"; then
2397   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2398 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2399 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2401 if test "${ac_cv_prog_CC+set}" = set; then
2402   echo $ECHO_N "(cached) $ECHO_C" >&6
2403 else
2404   if test -n "$CC"; then
2405   ac_cv_prog_CC="$CC" # Let the user override the test.
2406 else
2407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2408 for as_dir in $PATH
2409 do
2410   IFS=$as_save_IFS
2411   test -z "$as_dir" && as_dir=.
2412   for ac_exec_ext in '' $ac_executable_extensions; do
2413   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2414     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2415     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2416     break 2
2417   fi
2418 done
2419 done
2420 IFS=$as_save_IFS
2421
2422 fi
2423 fi
2424 CC=$ac_cv_prog_CC
2425 if test -n "$CC"; then
2426   { echo "$as_me:$LINENO: result: $CC" >&5
2427 echo "${ECHO_T}$CC" >&6; }
2428 else
2429   { echo "$as_me:$LINENO: result: no" >&5
2430 echo "${ECHO_T}no" >&6; }
2431 fi
2432
2433
2434 fi
2435 if test -z "$ac_cv_prog_CC"; then
2436   ac_ct_CC=$CC
2437   # Extract the first word of "gcc", so it can be a program name with args.
2438 set dummy gcc; ac_word=$2
2439 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2441 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2442   echo $ECHO_N "(cached) $ECHO_C" >&6
2443 else
2444   if test -n "$ac_ct_CC"; then
2445   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2446 else
2447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2448 for as_dir in $PATH
2449 do
2450   IFS=$as_save_IFS
2451   test -z "$as_dir" && as_dir=.
2452   for ac_exec_ext in '' $ac_executable_extensions; do
2453   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2454     ac_cv_prog_ac_ct_CC="gcc"
2455     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2456     break 2
2457   fi
2458 done
2459 done
2460 IFS=$as_save_IFS
2461
2462 fi
2463 fi
2464 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2465 if test -n "$ac_ct_CC"; then
2466   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2467 echo "${ECHO_T}$ac_ct_CC" >&6; }
2468 else
2469   { echo "$as_me:$LINENO: result: no" >&5
2470 echo "${ECHO_T}no" >&6; }
2471 fi
2472
2473   if test "x$ac_ct_CC" = x; then
2474     CC=""
2475   else
2476     case $cross_compiling:$ac_tool_warned in
2477 yes:)
2478 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2479 whose name does not start with the host triplet.  If you think this
2480 configuration is useful to you, please write to autoconf@gnu.org." >&5
2481 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2482 whose name does not start with the host triplet.  If you think this
2483 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2484 ac_tool_warned=yes ;;
2485 esac
2486     CC=$ac_ct_CC
2487   fi
2488 else
2489   CC="$ac_cv_prog_CC"
2490 fi
2491
2492 if test -z "$CC"; then
2493           if test -n "$ac_tool_prefix"; then
2494     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2495 set dummy ${ac_tool_prefix}cc; ac_word=$2
2496 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2498 if test "${ac_cv_prog_CC+set}" = set; then
2499   echo $ECHO_N "(cached) $ECHO_C" >&6
2500 else
2501   if test -n "$CC"; then
2502   ac_cv_prog_CC="$CC" # Let the user override the test.
2503 else
2504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2505 for as_dir in $PATH
2506 do
2507   IFS=$as_save_IFS
2508   test -z "$as_dir" && as_dir=.
2509   for ac_exec_ext in '' $ac_executable_extensions; do
2510   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2511     ac_cv_prog_CC="${ac_tool_prefix}cc"
2512     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2513     break 2
2514   fi
2515 done
2516 done
2517 IFS=$as_save_IFS
2518
2519 fi
2520 fi
2521 CC=$ac_cv_prog_CC
2522 if test -n "$CC"; then
2523   { echo "$as_me:$LINENO: result: $CC" >&5
2524 echo "${ECHO_T}$CC" >&6; }
2525 else
2526   { echo "$as_me:$LINENO: result: no" >&5
2527 echo "${ECHO_T}no" >&6; }
2528 fi
2529
2530
2531   fi
2532 fi
2533 if test -z "$CC"; then
2534   # Extract the first word of "cc", so it can be a program name with args.
2535 set dummy cc; ac_word=$2
2536 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2538 if test "${ac_cv_prog_CC+set}" = set; then
2539   echo $ECHO_N "(cached) $ECHO_C" >&6
2540 else
2541   if test -n "$CC"; then
2542   ac_cv_prog_CC="$CC" # Let the user override the test.
2543 else
2544   ac_prog_rejected=no
2545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2546 for as_dir in $PATH
2547 do
2548   IFS=$as_save_IFS
2549   test -z "$as_dir" && as_dir=.
2550   for ac_exec_ext in '' $ac_executable_extensions; do
2551   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2552     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2553        ac_prog_rejected=yes
2554        continue
2555      fi
2556     ac_cv_prog_CC="cc"
2557     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2558     break 2
2559   fi
2560 done
2561 done
2562 IFS=$as_save_IFS
2563
2564 if test $ac_prog_rejected = yes; then
2565   # We found a bogon in the path, so make sure we never use it.
2566   set dummy $ac_cv_prog_CC
2567   shift
2568   if test $# != 0; then
2569     # We chose a different compiler from the bogus one.
2570     # However, it has the same basename, so the bogon will be chosen
2571     # first if we set CC to just the basename; use the full file name.
2572     shift
2573     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2574   fi
2575 fi
2576 fi
2577 fi
2578 CC=$ac_cv_prog_CC
2579 if test -n "$CC"; then
2580   { echo "$as_me:$LINENO: result: $CC" >&5
2581 echo "${ECHO_T}$CC" >&6; }
2582 else
2583   { echo "$as_me:$LINENO: result: no" >&5
2584 echo "${ECHO_T}no" >&6; }
2585 fi
2586
2587
2588 fi
2589 if test -z "$CC"; then
2590   if test -n "$ac_tool_prefix"; then
2591   for ac_prog in cl.exe
2592   do
2593     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2594 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2595 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2597 if test "${ac_cv_prog_CC+set}" = set; then
2598   echo $ECHO_N "(cached) $ECHO_C" >&6
2599 else
2600   if test -n "$CC"; then
2601   ac_cv_prog_CC="$CC" # Let the user override the test.
2602 else
2603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2604 for as_dir in $PATH
2605 do
2606   IFS=$as_save_IFS
2607   test -z "$as_dir" && as_dir=.
2608   for ac_exec_ext in '' $ac_executable_extensions; do
2609   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2610     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2611     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2612     break 2
2613   fi
2614 done
2615 done
2616 IFS=$as_save_IFS
2617
2618 fi
2619 fi
2620 CC=$ac_cv_prog_CC
2621 if test -n "$CC"; then
2622   { echo "$as_me:$LINENO: result: $CC" >&5
2623 echo "${ECHO_T}$CC" >&6; }
2624 else
2625   { echo "$as_me:$LINENO: result: no" >&5
2626 echo "${ECHO_T}no" >&6; }
2627 fi
2628
2629
2630     test -n "$CC" && break
2631   done
2632 fi
2633 if test -z "$CC"; then
2634   ac_ct_CC=$CC
2635   for ac_prog in cl.exe
2636 do
2637   # Extract the first word of "$ac_prog", so it can be a program name with args.
2638 set dummy $ac_prog; ac_word=$2
2639 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2641 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2642   echo $ECHO_N "(cached) $ECHO_C" >&6
2643 else
2644   if test -n "$ac_ct_CC"; then
2645   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2646 else
2647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2648 for as_dir in $PATH
2649 do
2650   IFS=$as_save_IFS
2651   test -z "$as_dir" && as_dir=.
2652   for ac_exec_ext in '' $ac_executable_extensions; do
2653   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2654     ac_cv_prog_ac_ct_CC="$ac_prog"
2655     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2656     break 2
2657   fi
2658 done
2659 done
2660 IFS=$as_save_IFS
2661
2662 fi
2663 fi
2664 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2665 if test -n "$ac_ct_CC"; then
2666   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2667 echo "${ECHO_T}$ac_ct_CC" >&6; }
2668 else
2669   { echo "$as_me:$LINENO: result: no" >&5
2670 echo "${ECHO_T}no" >&6; }
2671 fi
2672
2673
2674   test -n "$ac_ct_CC" && break
2675 done
2676
2677   if test "x$ac_ct_CC" = x; then
2678     CC=""
2679   else
2680     case $cross_compiling:$ac_tool_warned in
2681 yes:)
2682 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2683 whose name does not start with the host triplet.  If you think this
2684 configuration is useful to you, please write to autoconf@gnu.org." >&5
2685 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2686 whose name does not start with the host triplet.  If you think this
2687 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2688 ac_tool_warned=yes ;;
2689 esac
2690     CC=$ac_ct_CC
2691   fi
2692 fi
2693
2694 fi
2695
2696
2697 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2698 See \`config.log' for more details." >&5
2699 echo "$as_me: error: no acceptable C compiler found in \$PATH
2700 See \`config.log' for more details." >&2;}
2701    { (exit 1); exit 1; }; }
2702
2703 # Provide some information about the compiler.
2704 echo "$as_me:$LINENO: checking for C compiler version" >&5
2705 ac_compiler=`set X $ac_compile; echo $2`
2706 { (ac_try="$ac_compiler --version >&5"
2707 case "(($ac_try" in
2708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2709   *) ac_try_echo=$ac_try;;
2710 esac
2711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2712   (eval "$ac_compiler --version >&5") 2>&5
2713   ac_status=$?
2714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715   (exit $ac_status); }
2716 { (ac_try="$ac_compiler -v >&5"
2717 case "(($ac_try" in
2718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2719   *) ac_try_echo=$ac_try;;
2720 esac
2721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2722   (eval "$ac_compiler -v >&5") 2>&5
2723   ac_status=$?
2724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725   (exit $ac_status); }
2726 { (ac_try="$ac_compiler -V >&5"
2727 case "(($ac_try" in
2728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2729   *) ac_try_echo=$ac_try;;
2730 esac
2731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2732   (eval "$ac_compiler -V >&5") 2>&5
2733   ac_status=$?
2734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735   (exit $ac_status); }
2736
2737 cat >conftest.$ac_ext <<_ACEOF
2738 /* confdefs.h.  */
2739 _ACEOF
2740 cat confdefs.h >>conftest.$ac_ext
2741 cat >>conftest.$ac_ext <<_ACEOF
2742 /* end confdefs.h.  */
2743
2744 int
2745 main ()
2746 {
2747
2748   ;
2749   return 0;
2750 }
2751 _ACEOF
2752 ac_clean_files_save=$ac_clean_files
2753 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2754 # Try to create an executable without -o first, disregard a.out.
2755 # It will help us diagnose broken compilers, and finding out an intuition
2756 # of exeext.
2757 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2758 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2759 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2760 #
2761 # List of possible output files, starting from the most likely.
2762 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2763 # only as a last resort.  b.out is created by i960 compilers.
2764 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2765 #
2766 # The IRIX 6 linker writes into existing files which may not be
2767 # executable, retaining their permissions.  Remove them first so a
2768 # subsequent execution test works.
2769 ac_rmfiles=
2770 for ac_file in $ac_files
2771 do
2772   case $ac_file in
2773     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2774     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2775   esac
2776 done
2777 rm -f $ac_rmfiles
2778
2779 if { (ac_try="$ac_link_default"
2780 case "(($ac_try" in
2781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2782   *) ac_try_echo=$ac_try;;
2783 esac
2784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2785   (eval "$ac_link_default") 2>&5
2786   ac_status=$?
2787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788   (exit $ac_status); }; then
2789   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2790 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2791 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2792 # so that the user can short-circuit this test for compilers unknown to
2793 # Autoconf.
2794 for ac_file in $ac_files
2795 do
2796   test -f "$ac_file" || continue
2797   case $ac_file in
2798     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2799         ;;
2800     [ab].out )
2801         # We found the default executable, but exeext='' is most
2802         # certainly right.
2803         break;;
2804     *.* )
2805         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2806         then :; else
2807            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2808         fi
2809         # We set ac_cv_exeext here because the later test for it is not
2810         # safe: cross compilers may not add the suffix if given an `-o'
2811         # argument, so we may need to know it at that point already.
2812         # Even if this section looks crufty: it has the advantage of
2813         # actually working.
2814         break;;
2815     * )
2816         break;;
2817   esac
2818 done
2819 test "$ac_cv_exeext" = no && ac_cv_exeext=
2820
2821 else
2822   echo "$as_me: failed program was:" >&5
2823 sed 's/^/| /' conftest.$ac_ext >&5
2824
2825 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2826 See \`config.log' for more details." >&5
2827 echo "$as_me: error: C compiler cannot create executables
2828 See \`config.log' for more details." >&2;}
2829    { (exit 77); exit 77; }; }
2830 fi
2831
2832 ac_exeext=$ac_cv_exeext
2833 { echo "$as_me:$LINENO: result: $ac_file" >&5
2834 echo "${ECHO_T}$ac_file" >&6; }
2835
2836 # Check that the compiler produces executables we can run.  If not, either
2837 # the compiler is broken, or we cross compile.
2838 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2839 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2840 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2841 # If not cross compiling, check that we can run a simple program.
2842 if test "$cross_compiling" != yes; then
2843   if { ac_try='./$ac_file'
2844   { (case "(($ac_try" in
2845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2846   *) ac_try_echo=$ac_try;;
2847 esac
2848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2849   (eval "$ac_try") 2>&5
2850   ac_status=$?
2851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852   (exit $ac_status); }; }; then
2853     cross_compiling=no
2854   else
2855     if test "$cross_compiling" = maybe; then
2856         cross_compiling=yes
2857     else
2858         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2859 If you meant to cross compile, use \`--host'.
2860 See \`config.log' for more details." >&5
2861 echo "$as_me: error: cannot run C compiled programs.
2862 If you meant to cross compile, use \`--host'.
2863 See \`config.log' for more details." >&2;}
2864    { (exit 1); exit 1; }; }
2865     fi
2866   fi
2867 fi
2868 { echo "$as_me:$LINENO: result: yes" >&5
2869 echo "${ECHO_T}yes" >&6; }
2870
2871 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2872 ac_clean_files=$ac_clean_files_save
2873 # Check that the compiler produces executables we can run.  If not, either
2874 # the compiler is broken, or we cross compile.
2875 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2876 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2877 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2878 echo "${ECHO_T}$cross_compiling" >&6; }
2879
2880 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2881 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2882 if { (ac_try="$ac_link"
2883 case "(($ac_try" in
2884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2885   *) ac_try_echo=$ac_try;;
2886 esac
2887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2888   (eval "$ac_link") 2>&5
2889   ac_status=$?
2890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891   (exit $ac_status); }; then
2892   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2893 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2894 # work properly (i.e., refer to `conftest.exe'), while it won't with
2895 # `rm'.
2896 for ac_file in conftest.exe conftest conftest.*; do
2897   test -f "$ac_file" || continue
2898   case $ac_file in
2899     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2900     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2901           break;;
2902     * ) break;;
2903   esac
2904 done
2905 else
2906   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2907 See \`config.log' for more details." >&5
2908 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2909 See \`config.log' for more details." >&2;}
2910    { (exit 1); exit 1; }; }
2911 fi
2912
2913 rm -f conftest$ac_cv_exeext
2914 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2915 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2916
2917 rm -f conftest.$ac_ext
2918 EXEEXT=$ac_cv_exeext
2919 ac_exeext=$EXEEXT
2920 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2921 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2922 if test "${ac_cv_objext+set}" = set; then
2923   echo $ECHO_N "(cached) $ECHO_C" >&6
2924 else
2925   cat >conftest.$ac_ext <<_ACEOF
2926 /* confdefs.h.  */
2927 _ACEOF
2928 cat confdefs.h >>conftest.$ac_ext
2929 cat >>conftest.$ac_ext <<_ACEOF
2930 /* end confdefs.h.  */
2931
2932 int
2933 main ()
2934 {
2935
2936   ;
2937   return 0;
2938 }
2939 _ACEOF
2940 rm -f conftest.o conftest.obj
2941 if { (ac_try="$ac_compile"
2942 case "(($ac_try" in
2943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2944   *) ac_try_echo=$ac_try;;
2945 esac
2946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2947   (eval "$ac_compile") 2>&5
2948   ac_status=$?
2949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950   (exit $ac_status); }; then
2951   for ac_file in conftest.o conftest.obj conftest.*; do
2952   test -f "$ac_file" || continue;
2953   case $ac_file in
2954     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2955     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2956        break;;
2957   esac
2958 done
2959 else
2960   echo "$as_me: failed program was:" >&5
2961 sed 's/^/| /' conftest.$ac_ext >&5
2962
2963 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2964 See \`config.log' for more details." >&5
2965 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2966 See \`config.log' for more details." >&2;}
2967    { (exit 1); exit 1; }; }
2968 fi
2969
2970 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2971 fi
2972 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2973 echo "${ECHO_T}$ac_cv_objext" >&6; }
2974 OBJEXT=$ac_cv_objext
2975 ac_objext=$OBJEXT
2976 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2977 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2978 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2979   echo $ECHO_N "(cached) $ECHO_C" >&6
2980 else
2981   cat >conftest.$ac_ext <<_ACEOF
2982 /* confdefs.h.  */
2983 _ACEOF
2984 cat confdefs.h >>conftest.$ac_ext
2985 cat >>conftest.$ac_ext <<_ACEOF
2986 /* end confdefs.h.  */
2987
2988 int
2989 main ()
2990 {
2991 #ifndef __GNUC__
2992        choke me
2993 #endif
2994
2995   ;
2996   return 0;
2997 }
2998 _ACEOF
2999 rm -f conftest.$ac_objext
3000 if { (ac_try="$ac_compile"
3001 case "(($ac_try" in
3002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3003   *) ac_try_echo=$ac_try;;
3004 esac
3005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3006   (eval "$ac_compile") 2>conftest.er1
3007   ac_status=$?
3008   grep -v '^ *+' conftest.er1 >conftest.err
3009   rm -f conftest.er1
3010   cat conftest.err >&5
3011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012   (exit $ac_status); } &&
3013          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3014   { (case "(($ac_try" in
3015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3016   *) ac_try_echo=$ac_try;;
3017 esac
3018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3019   (eval "$ac_try") 2>&5
3020   ac_status=$?
3021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3022   (exit $ac_status); }; } &&
3023          { ac_try='test -s conftest.$ac_objext'
3024   { (case "(($ac_try" in
3025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3026   *) ac_try_echo=$ac_try;;
3027 esac
3028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3029   (eval "$ac_try") 2>&5
3030   ac_status=$?
3031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032   (exit $ac_status); }; }; then
3033   ac_compiler_gnu=yes
3034 else
3035   echo "$as_me: failed program was:" >&5
3036 sed 's/^/| /' conftest.$ac_ext >&5
3037
3038         ac_compiler_gnu=no
3039 fi
3040
3041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3042 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3043
3044 fi
3045 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3046 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3047 GCC=`test $ac_compiler_gnu = yes && echo yes`
3048 ac_test_CFLAGS=${CFLAGS+set}
3049 ac_save_CFLAGS=$CFLAGS
3050 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3051 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3052 if test "${ac_cv_prog_cc_g+set}" = set; then
3053   echo $ECHO_N "(cached) $ECHO_C" >&6
3054 else
3055   ac_save_c_werror_flag=$ac_c_werror_flag
3056    ac_c_werror_flag=yes
3057    ac_cv_prog_cc_g=no
3058    CFLAGS="-g"
3059    cat >conftest.$ac_ext <<_ACEOF
3060 /* confdefs.h.  */
3061 _ACEOF
3062 cat confdefs.h >>conftest.$ac_ext
3063 cat >>conftest.$ac_ext <<_ACEOF
3064 /* end confdefs.h.  */
3065
3066 int
3067 main ()
3068 {
3069
3070   ;
3071   return 0;
3072 }
3073 _ACEOF
3074 rm -f conftest.$ac_objext
3075 if { (ac_try="$ac_compile"
3076 case "(($ac_try" in
3077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3078   *) ac_try_echo=$ac_try;;
3079 esac
3080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3081   (eval "$ac_compile") 2>conftest.er1
3082   ac_status=$?
3083   grep -v '^ *+' conftest.er1 >conftest.err
3084   rm -f conftest.er1
3085   cat conftest.err >&5
3086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087   (exit $ac_status); } &&
3088          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3089   { (case "(($ac_try" in
3090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3091   *) ac_try_echo=$ac_try;;
3092 esac
3093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3094   (eval "$ac_try") 2>&5
3095   ac_status=$?
3096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097   (exit $ac_status); }; } &&
3098          { ac_try='test -s conftest.$ac_objext'
3099   { (case "(($ac_try" in
3100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3101   *) ac_try_echo=$ac_try;;
3102 esac
3103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3104   (eval "$ac_try") 2>&5
3105   ac_status=$?
3106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107   (exit $ac_status); }; }; then
3108   ac_cv_prog_cc_g=yes
3109 else
3110   echo "$as_me: failed program was:" >&5
3111 sed 's/^/| /' conftest.$ac_ext >&5
3112
3113         CFLAGS=""
3114       cat >conftest.$ac_ext <<_ACEOF
3115 /* confdefs.h.  */
3116 _ACEOF
3117 cat confdefs.h >>conftest.$ac_ext
3118 cat >>conftest.$ac_ext <<_ACEOF
3119 /* end confdefs.h.  */
3120
3121 int
3122 main ()
3123 {
3124
3125   ;
3126   return 0;
3127 }
3128 _ACEOF
3129 rm -f conftest.$ac_objext
3130 if { (ac_try="$ac_compile"
3131 case "(($ac_try" in
3132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133   *) ac_try_echo=$ac_try;;
3134 esac
3135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3136   (eval "$ac_compile") 2>conftest.er1
3137   ac_status=$?
3138   grep -v '^ *+' conftest.er1 >conftest.err
3139   rm -f conftest.er1
3140   cat conftest.err >&5
3141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142   (exit $ac_status); } &&
3143          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3144   { (case "(($ac_try" in
3145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3146   *) ac_try_echo=$ac_try;;
3147 esac
3148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3149   (eval "$ac_try") 2>&5
3150   ac_status=$?
3151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152   (exit $ac_status); }; } &&
3153          { ac_try='test -s conftest.$ac_objext'
3154   { (case "(($ac_try" in
3155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3156   *) ac_try_echo=$ac_try;;
3157 esac
3158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3159   (eval "$ac_try") 2>&5
3160   ac_status=$?
3161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3162   (exit $ac_status); }; }; then
3163   :
3164 else
3165   echo "$as_me: failed program was:" >&5
3166 sed 's/^/| /' conftest.$ac_ext >&5
3167
3168         ac_c_werror_flag=$ac_save_c_werror_flag
3169          CFLAGS="-g"
3170          cat >conftest.$ac_ext <<_ACEOF
3171 /* confdefs.h.  */
3172 _ACEOF
3173 cat confdefs.h >>conftest.$ac_ext
3174 cat >>conftest.$ac_ext <<_ACEOF
3175 /* end confdefs.h.  */
3176
3177 int
3178 main ()
3179 {
3180
3181   ;
3182   return 0;
3183 }
3184 _ACEOF
3185 rm -f conftest.$ac_objext
3186 if { (ac_try="$ac_compile"
3187 case "(($ac_try" in
3188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3189   *) ac_try_echo=$ac_try;;
3190 esac
3191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3192   (eval "$ac_compile") 2>conftest.er1
3193   ac_status=$?
3194   grep -v '^ *+' conftest.er1 >conftest.err
3195   rm -f conftest.er1
3196   cat conftest.err >&5
3197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198   (exit $ac_status); } &&
3199          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3200   { (case "(($ac_try" in
3201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3202   *) ac_try_echo=$ac_try;;
3203 esac
3204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3205   (eval "$ac_try") 2>&5
3206   ac_status=$?
3207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208   (exit $ac_status); }; } &&
3209          { ac_try='test -s conftest.$ac_objext'
3210   { (case "(($ac_try" in
3211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3212   *) ac_try_echo=$ac_try;;
3213 esac
3214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3215   (eval "$ac_try") 2>&5
3216   ac_status=$?
3217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218   (exit $ac_status); }; }; then
3219   ac_cv_prog_cc_g=yes
3220 else
3221   echo "$as_me: failed program was:" >&5
3222 sed 's/^/| /' conftest.$ac_ext >&5
3223
3224
3225 fi
3226
3227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3228 fi
3229
3230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3231 fi
3232
3233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3234    ac_c_werror_flag=$ac_save_c_werror_flag
3235 fi
3236 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3237 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3238 if test "$ac_test_CFLAGS" = set; then
3239   CFLAGS=$ac_save_CFLAGS
3240 elif test $ac_cv_prog_cc_g = yes; then
3241   if test "$GCC" = yes; then
3242     CFLAGS="-g -O2"
3243   else
3244     CFLAGS="-g"
3245   fi
3246 else
3247   if test "$GCC" = yes; then
3248     CFLAGS="-O2"
3249   else
3250     CFLAGS=
3251   fi
3252 fi
3253 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3254 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3255 if test "${ac_cv_prog_cc_c89+set}" = set; then
3256   echo $ECHO_N "(cached) $ECHO_C" >&6
3257 else
3258   ac_cv_prog_cc_c89=no
3259 ac_save_CC=$CC
3260 cat >conftest.$ac_ext <<_ACEOF
3261 /* confdefs.h.  */
3262 _ACEOF
3263 cat confdefs.h >>conftest.$ac_ext
3264 cat >>conftest.$ac_ext <<_ACEOF
3265 /* end confdefs.h.  */
3266 #include <stdarg.h>
3267 #include <stdio.h>
3268 #include <sys/types.h>
3269 #include <sys/stat.h>
3270 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3271 struct buf { int x; };
3272 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3273 static char *e (p, i)
3274      char **p;
3275      int i;
3276 {
3277   return p[i];
3278 }
3279 static char *f (char * (*g) (char **, int), char **p, ...)
3280 {
3281   char *s;
3282   va_list v;
3283   va_start (v,p);
3284   s = g (p, va_arg (v,int));
3285   va_end (v);
3286   return s;
3287 }
3288
3289 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3290    function prototypes and stuff, but not '\xHH' hex character constants.
3291    These don't provoke an error unfortunately, instead are silently treated
3292    as 'x'.  The following induces an error, until -std is added to get
3293    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3294    array size at least.  It's necessary to write '\x00'==0 to get something
3295    that's true only with -std.  */
3296 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3297
3298 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3299    inside strings and character constants.  */
3300 #define FOO(x) 'x'
3301 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3302
3303 int test (int i, double x);
3304 struct s1 {int (*f) (int a);};
3305 struct s2 {int (*f) (double a);};
3306 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3307 int argc;
3308 char **argv;
3309 int
3310 main ()
3311 {
3312 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3313   ;
3314   return 0;
3315 }
3316 _ACEOF
3317 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3318         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3319 do
3320   CC="$ac_save_CC $ac_arg"
3321   rm -f conftest.$ac_objext
3322 if { (ac_try="$ac_compile"
3323 case "(($ac_try" in
3324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3325   *) ac_try_echo=$ac_try;;
3326 esac
3327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3328   (eval "$ac_compile") 2>conftest.er1
3329   ac_status=$?
3330   grep -v '^ *+' conftest.er1 >conftest.err
3331   rm -f conftest.er1
3332   cat conftest.err >&5
3333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3334   (exit $ac_status); } &&
3335          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3336   { (case "(($ac_try" in
3337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3338   *) ac_try_echo=$ac_try;;
3339 esac
3340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3341   (eval "$ac_try") 2>&5
3342   ac_status=$?
3343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344   (exit $ac_status); }; } &&
3345          { ac_try='test -s conftest.$ac_objext'
3346   { (case "(($ac_try" in
3347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3348   *) ac_try_echo=$ac_try;;
3349 esac
3350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3351   (eval "$ac_try") 2>&5
3352   ac_status=$?
3353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3354   (exit $ac_status); }; }; then
3355   ac_cv_prog_cc_c89=$ac_arg
3356 else
3357   echo "$as_me: failed program was:" >&5
3358 sed 's/^/| /' conftest.$ac_ext >&5
3359
3360
3361 fi
3362
3363 rm -f core conftest.err conftest.$ac_objext
3364   test "x$ac_cv_prog_cc_c89" != "xno" && break
3365 done
3366 rm -f conftest.$ac_ext
3367 CC=$ac_save_CC
3368
3369 fi
3370 # AC_CACHE_VAL
3371 case "x$ac_cv_prog_cc_c89" in
3372   x)
3373     { echo "$as_me:$LINENO: result: none needed" >&5
3374 echo "${ECHO_T}none needed" >&6; } ;;
3375   xno)
3376     { echo "$as_me:$LINENO: result: unsupported" >&5
3377 echo "${ECHO_T}unsupported" >&6; } ;;
3378   *)
3379     CC="$CC $ac_cv_prog_cc_c89"
3380     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3381 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3382 esac
3383
3384
3385 ac_ext=c
3386 ac_cpp='$CPP $CPPFLAGS'
3387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3390
3391
3392 ac_ext=c
3393 ac_cpp='$CPP $CPPFLAGS'
3394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3397 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3398 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3399 # On Suns, sometimes $CPP names a directory.
3400 if test -n "$CPP" && test -d "$CPP"; then
3401   CPP=
3402 fi
3403 if test -z "$CPP"; then
3404   if test "${ac_cv_prog_CPP+set}" = set; then
3405   echo $ECHO_N "(cached) $ECHO_C" >&6
3406 else
3407       # Double quotes because CPP needs to be expanded
3408     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3409     do
3410       ac_preproc_ok=false
3411 for ac_c_preproc_warn_flag in '' yes
3412 do
3413   # Use a header file that comes with gcc, so configuring glibc
3414   # with a fresh cross-compiler works.
3415   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3416   # <limits.h> exists even on freestanding compilers.
3417   # On the NeXT, cc -E runs the code through the compiler's parser,
3418   # not just through cpp. "Syntax error" is here to catch this case.
3419   cat >conftest.$ac_ext <<_ACEOF
3420 /* confdefs.h.  */
3421 _ACEOF
3422 cat confdefs.h >>conftest.$ac_ext
3423 cat >>conftest.$ac_ext <<_ACEOF
3424 /* end confdefs.h.  */
3425 #ifdef __STDC__
3426 # include <limits.h>
3427 #else
3428 # include <assert.h>
3429 #endif
3430                      Syntax error
3431 _ACEOF
3432 if { (ac_try="$ac_cpp conftest.$ac_ext"
3433 case "(($ac_try" in
3434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3435   *) ac_try_echo=$ac_try;;
3436 esac
3437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3438   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3439   ac_status=$?
3440   grep -v '^ *+' conftest.er1 >conftest.err
3441   rm -f conftest.er1
3442   cat conftest.err >&5
3443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444   (exit $ac_status); } >/dev/null; then
3445   if test -s conftest.err; then
3446     ac_cpp_err=$ac_c_preproc_warn_flag
3447     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3448   else
3449     ac_cpp_err=
3450   fi
3451 else
3452   ac_cpp_err=yes
3453 fi
3454 if test -z "$ac_cpp_err"; then
3455   :
3456 else
3457   echo "$as_me: failed program was:" >&5
3458 sed 's/^/| /' conftest.$ac_ext >&5
3459
3460   # Broken: fails on valid input.
3461 continue
3462 fi
3463
3464 rm -f conftest.err conftest.$ac_ext
3465
3466   # OK, works on sane cases.  Now check whether nonexistent headers
3467   # can be detected and how.
3468   cat >conftest.$ac_ext <<_ACEOF
3469 /* confdefs.h.  */
3470 _ACEOF
3471 cat confdefs.h >>conftest.$ac_ext
3472 cat >>conftest.$ac_ext <<_ACEOF
3473 /* end confdefs.h.  */
3474 #include <ac_nonexistent.h>
3475 _ACEOF
3476 if { (ac_try="$ac_cpp conftest.$ac_ext"
3477 case "(($ac_try" in
3478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3479   *) ac_try_echo=$ac_try;;
3480 esac
3481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3482   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3483   ac_status=$?
3484   grep -v '^ *+' conftest.er1 >conftest.err
3485   rm -f conftest.er1
3486   cat conftest.err >&5
3487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488   (exit $ac_status); } >/dev/null; then
3489   if test -s conftest.err; then
3490     ac_cpp_err=$ac_c_preproc_warn_flag
3491     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3492   else
3493     ac_cpp_err=
3494   fi
3495 else
3496   ac_cpp_err=yes
3497 fi
3498 if test -z "$ac_cpp_err"; then
3499   # Broken: success on invalid input.
3500 continue
3501 else
3502   echo "$as_me: failed program was:" >&5
3503 sed 's/^/| /' conftest.$ac_ext >&5
3504
3505   # Passes both tests.
3506 ac_preproc_ok=:
3507 break
3508 fi
3509
3510 rm -f conftest.err conftest.$ac_ext
3511
3512 done
3513 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3514 rm -f conftest.err conftest.$ac_ext
3515 if $ac_preproc_ok; then
3516   break
3517 fi
3518
3519     done
3520     ac_cv_prog_CPP=$CPP
3521
3522 fi
3523   CPP=$ac_cv_prog_CPP
3524 else
3525   ac_cv_prog_CPP=$CPP
3526 fi
3527 { echo "$as_me:$LINENO: result: $CPP" >&5
3528 echo "${ECHO_T}$CPP" >&6; }
3529 ac_preproc_ok=false
3530 for ac_c_preproc_warn_flag in '' yes
3531 do
3532   # Use a header file that comes with gcc, so configuring glibc
3533   # with a fresh cross-compiler works.
3534   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3535   # <limits.h> exists even on freestanding compilers.
3536   # On the NeXT, cc -E runs the code through the compiler's parser,
3537   # not just through cpp. "Syntax error" is here to catch this case.
3538   cat >conftest.$ac_ext <<_ACEOF
3539 /* confdefs.h.  */
3540 _ACEOF
3541 cat confdefs.h >>conftest.$ac_ext
3542 cat >>conftest.$ac_ext <<_ACEOF
3543 /* end confdefs.h.  */
3544 #ifdef __STDC__
3545 # include <limits.h>
3546 #else
3547 # include <assert.h>
3548 #endif
3549                      Syntax error
3550 _ACEOF
3551 if { (ac_try="$ac_cpp conftest.$ac_ext"
3552 case "(($ac_try" in
3553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3554   *) ac_try_echo=$ac_try;;
3555 esac
3556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3557   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3558   ac_status=$?
3559   grep -v '^ *+' conftest.er1 >conftest.err
3560   rm -f conftest.er1
3561   cat conftest.err >&5
3562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563   (exit $ac_status); } >/dev/null; then
3564   if test -s conftest.err; then
3565     ac_cpp_err=$ac_c_preproc_warn_flag
3566     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3567   else
3568     ac_cpp_err=
3569   fi
3570 else
3571   ac_cpp_err=yes
3572 fi
3573 if test -z "$ac_cpp_err"; then
3574   :
3575 else
3576   echo "$as_me: failed program was:" >&5
3577 sed 's/^/| /' conftest.$ac_ext >&5
3578
3579   # Broken: fails on valid input.
3580 continue
3581 fi
3582
3583 rm -f conftest.err conftest.$ac_ext
3584
3585   # OK, works on sane cases.  Now check whether nonexistent headers
3586   # can be detected and how.
3587   cat >conftest.$ac_ext <<_ACEOF
3588 /* confdefs.h.  */
3589 _ACEOF
3590 cat confdefs.h >>conftest.$ac_ext
3591 cat >>conftest.$ac_ext <<_ACEOF
3592 /* end confdefs.h.  */
3593 #include <ac_nonexistent.h>
3594 _ACEOF
3595 if { (ac_try="$ac_cpp conftest.$ac_ext"
3596 case "(($ac_try" in
3597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3598   *) ac_try_echo=$ac_try;;
3599 esac
3600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3601   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3602   ac_status=$?
3603   grep -v '^ *+' conftest.er1 >conftest.err
3604   rm -f conftest.er1
3605   cat conftest.err >&5
3606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607   (exit $ac_status); } >/dev/null; then
3608   if test -s conftest.err; then
3609     ac_cpp_err=$ac_c_preproc_warn_flag
3610     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3611   else
3612     ac_cpp_err=
3613   fi
3614 else
3615   ac_cpp_err=yes
3616 fi
3617 if test -z "$ac_cpp_err"; then
3618   # Broken: success on invalid input.
3619 continue
3620 else
3621   echo "$as_me: failed program was:" >&5
3622 sed 's/^/| /' conftest.$ac_ext >&5
3623
3624   # Passes both tests.
3625 ac_preproc_ok=:
3626 break
3627 fi
3628
3629 rm -f conftest.err conftest.$ac_ext
3630
3631 done
3632 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3633 rm -f conftest.err conftest.$ac_ext
3634 if $ac_preproc_ok; then
3635   :
3636 else
3637   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3638 See \`config.log' for more details." >&5
3639 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3640 See \`config.log' for more details." >&2;}
3641    { (exit 1); exit 1; }; }
3642 fi
3643
3644 ac_ext=c
3645 ac_cpp='$CPP $CPPFLAGS'
3646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3649
3650
3651 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3652 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3653 if test "${ac_cv_path_GREP+set}" = set; then
3654   echo $ECHO_N "(cached) $ECHO_C" >&6
3655 else
3656   # Extract the first word of "grep ggrep" to use in msg output
3657 if test -z "$GREP"; then
3658 set dummy grep ggrep; ac_prog_name=$2
3659 if test "${ac_cv_path_GREP+set}" = set; then
3660   echo $ECHO_N "(cached) $ECHO_C" >&6
3661 else
3662   ac_path_GREP_found=false
3663 # Loop through the user's path and test for each of PROGNAME-LIST
3664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3665 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3666 do
3667   IFS=$as_save_IFS
3668   test -z "$as_dir" && as_dir=.
3669   for ac_prog in grep ggrep; do
3670   for ac_exec_ext in '' $ac_executable_extensions; do
3671     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3672     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3673     # Check for GNU ac_path_GREP and select it if it is found.
3674   # Check for GNU $ac_path_GREP
3675 case `"$ac_path_GREP" --version 2>&1` in
3676 *GNU*)
3677   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3678 *)
3679   ac_count=0
3680   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3681   while :
3682   do
3683     cat "conftest.in" "conftest.in" >"conftest.tmp"
3684     mv "conftest.tmp" "conftest.in"
3685     cp "conftest.in" "conftest.nl"
3686     echo 'GREP' >> "conftest.nl"
3687     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3688     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3689     ac_count=`expr $ac_count + 1`
3690     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3691       # Best one so far, save it but keep looking for a better one
3692       ac_cv_path_GREP="$ac_path_GREP"
3693       ac_path_GREP_max=$ac_count
3694     fi
3695     # 10*(2^10) chars as input seems more than enough
3696     test $ac_count -gt 10 && break
3697   done
3698   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3699 esac
3700
3701
3702     $ac_path_GREP_found && break 3
3703   done
3704 done
3705
3706 done
3707 IFS=$as_save_IFS
3708
3709
3710 fi
3711
3712 GREP="$ac_cv_path_GREP"
3713 if test -z "$GREP"; then
3714   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3715 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3716    { (exit 1); exit 1; }; }
3717 fi
3718
3719 else
3720   ac_cv_path_GREP=$GREP
3721 fi
3722
3723
3724 fi
3725 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3726 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3727  GREP="$ac_cv_path_GREP"
3728
3729
3730 { echo "$as_me:$LINENO: checking for egrep" >&5
3731 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3732 if test "${ac_cv_path_EGREP+set}" = set; then
3733   echo $ECHO_N "(cached) $ECHO_C" >&6
3734 else
3735   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3736    then ac_cv_path_EGREP="$GREP -E"
3737    else
3738      # Extract the first word of "egrep" to use in msg output
3739 if test -z "$EGREP"; then
3740 set dummy egrep; ac_prog_name=$2
3741 if test "${ac_cv_path_EGREP+set}" = set; then
3742   echo $ECHO_N "(cached) $ECHO_C" >&6
3743 else
3744   ac_path_EGREP_found=false
3745 # Loop through the user's path and test for each of PROGNAME-LIST
3746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3747 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3748 do
3749   IFS=$as_save_IFS
3750   test -z "$as_dir" && as_dir=.
3751   for ac_prog in egrep; do
3752   for ac_exec_ext in '' $ac_executable_extensions; do
3753     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3754     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3755     # Check for GNU ac_path_EGREP and select it if it is found.
3756   # Check for GNU $ac_path_EGREP
3757 case `"$ac_path_EGREP" --version 2>&1` in
3758 *GNU*)
3759   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3760 *)
3761   ac_count=0
3762   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3763   while :
3764   do
3765     cat "conftest.in" "conftest.in" >"conftest.tmp"
3766     mv "conftest.tmp" "conftest.in"
3767     cp "conftest.in" "conftest.nl"
3768     echo 'EGREP' >> "conftest.nl"
3769     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3770     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3771     ac_count=`expr $ac_count + 1`
3772     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3773       # Best one so far, save it but keep looking for a better one
3774       ac_cv_path_EGREP="$ac_path_EGREP"
3775       ac_path_EGREP_max=$ac_count
3776     fi
3777     # 10*(2^10) chars as input seems more than enough
3778     test $ac_count -gt 10 && break
3779   done
3780   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3781 esac
3782
3783
3784     $ac_path_EGREP_found && break 3
3785   done
3786 done
3787
3788 done
3789 IFS=$as_save_IFS
3790
3791
3792 fi
3793
3794 EGREP="$ac_cv_path_EGREP"
3795 if test -z "$EGREP"; then
3796   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3797 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3798    { (exit 1); exit 1; }; }
3799 fi
3800
3801 else
3802   ac_cv_path_EGREP=$EGREP
3803 fi
3804
3805
3806    fi
3807 fi
3808 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3809 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3810  EGREP="$ac_cv_path_EGREP"
3811
3812
3813 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3814 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3815 if test "${ac_cv_header_stdc+set}" = set; then
3816   echo $ECHO_N "(cached) $ECHO_C" >&6
3817 else
3818   cat >conftest.$ac_ext <<_ACEOF
3819 /* confdefs.h.  */
3820 _ACEOF
3821 cat confdefs.h >>conftest.$ac_ext
3822 cat >>conftest.$ac_ext <<_ACEOF
3823 /* end confdefs.h.  */
3824 #include <stdlib.h>
3825 #include <stdarg.h>
3826 #include <string.h>
3827 #include <float.h>
3828
3829 int
3830 main ()
3831 {
3832
3833   ;
3834   return 0;
3835 }
3836 _ACEOF
3837 rm -f conftest.$ac_objext
3838 if { (ac_try="$ac_compile"
3839 case "(($ac_try" in
3840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3841   *) ac_try_echo=$ac_try;;
3842 esac
3843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3844   (eval "$ac_compile") 2>conftest.er1
3845   ac_status=$?
3846   grep -v '^ *+' conftest.er1 >conftest.err
3847   rm -f conftest.er1
3848   cat conftest.err >&5
3849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850   (exit $ac_status); } &&
3851          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3852   { (case "(($ac_try" in
3853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3854   *) ac_try_echo=$ac_try;;
3855 esac
3856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3857   (eval "$ac_try") 2>&5
3858   ac_status=$?
3859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860   (exit $ac_status); }; } &&
3861          { ac_try='test -s conftest.$ac_objext'
3862   { (case "(($ac_try" in
3863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3864   *) ac_try_echo=$ac_try;;
3865 esac
3866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3867   (eval "$ac_try") 2>&5
3868   ac_status=$?
3869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870   (exit $ac_status); }; }; then
3871   ac_cv_header_stdc=yes
3872 else
3873   echo "$as_me: failed program was:" >&5
3874 sed 's/^/| /' conftest.$ac_ext >&5
3875
3876         ac_cv_header_stdc=no
3877 fi
3878
3879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3880
3881 if test $ac_cv_header_stdc = yes; then
3882   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3883   cat >conftest.$ac_ext <<_ACEOF
3884 /* confdefs.h.  */
3885 _ACEOF
3886 cat confdefs.h >>conftest.$ac_ext
3887 cat >>conftest.$ac_ext <<_ACEOF
3888 /* end confdefs.h.  */
3889 #include <string.h>
3890
3891 _ACEOF
3892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3893   $EGREP "memchr" >/dev/null 2>&1; then
3894   :
3895 else
3896   ac_cv_header_stdc=no
3897 fi
3898 rm -f conftest*
3899
3900 fi
3901
3902 if test $ac_cv_header_stdc = yes; then
3903   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3904   cat >conftest.$ac_ext <<_ACEOF
3905 /* confdefs.h.  */
3906 _ACEOF
3907 cat confdefs.h >>conftest.$ac_ext
3908 cat >>conftest.$ac_ext <<_ACEOF
3909 /* end confdefs.h.  */
3910 #include <stdlib.h>
3911
3912 _ACEOF
3913 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3914   $EGREP "free" >/dev/null 2>&1; then
3915   :
3916 else
3917   ac_cv_header_stdc=no
3918 fi
3919 rm -f conftest*
3920
3921 fi
3922
3923 if test $ac_cv_header_stdc = yes; then
3924   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3925   if test "$cross_compiling" = yes; then
3926   :
3927 else
3928   cat >conftest.$ac_ext <<_ACEOF
3929 /* confdefs.h.  */
3930 _ACEOF
3931 cat confdefs.h >>conftest.$ac_ext
3932 cat >>conftest.$ac_ext <<_ACEOF
3933 /* end confdefs.h.  */
3934 #include <ctype.h>
3935 #include <stdlib.h>
3936 #if ((' ' & 0x0FF) == 0x020)
3937 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3938 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3939 #else
3940 # define ISLOWER(c) \
3941                    (('a' <= (c) && (c) <= 'i') \
3942                      || ('j' <= (c) && (c) <= 'r') \
3943                      || ('s' <= (c) && (c) <= 'z'))
3944 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3945 #endif
3946
3947 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3948 int
3949 main ()
3950 {
3951   int i;
3952   for (i = 0; i < 256; i++)
3953     if (XOR (islower (i), ISLOWER (i))
3954         || toupper (i) != TOUPPER (i))
3955       return 2;
3956   return 0;
3957 }
3958 _ACEOF
3959 rm -f conftest$ac_exeext
3960 if { (ac_try="$ac_link"
3961 case "(($ac_try" in
3962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3963   *) ac_try_echo=$ac_try;;
3964 esac
3965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3966   (eval "$ac_link") 2>&5
3967   ac_status=$?
3968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
3976   ac_status=$?
3977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3978   (exit $ac_status); }; }; then
3979   :
3980 else
3981   echo "$as_me: program exited with status $ac_status" >&5
3982 echo "$as_me: failed program was:" >&5
3983 sed 's/^/| /' conftest.$ac_ext >&5
3984
3985 ( exit $ac_status )
3986 ac_cv_header_stdc=no
3987 fi
3988 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3989 fi
3990
3991
3992 fi
3993 fi
3994 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3995 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3996 if test $ac_cv_header_stdc = yes; then
3997
3998 cat >>confdefs.h <<\_ACEOF
3999 #define STDC_HEADERS 1
4000 _ACEOF
4001
4002 fi
4003
4004 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4015                   inttypes.h stdint.h unistd.h
4016 do
4017 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4018 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4019 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4020 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4021   echo $ECHO_N "(cached) $ECHO_C" >&6
4022 else
4023   cat >conftest.$ac_ext <<_ACEOF
4024 /* confdefs.h.  */
4025 _ACEOF
4026 cat confdefs.h >>conftest.$ac_ext
4027 cat >>conftest.$ac_ext <<_ACEOF
4028 /* end confdefs.h.  */
4029 $ac_includes_default
4030
4031 #include <$ac_header>
4032 _ACEOF
4033 rm -f conftest.$ac_objext
4034 if { (ac_try="$ac_compile"
4035 case "(($ac_try" in
4036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4037   *) ac_try_echo=$ac_try;;
4038 esac
4039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4040   (eval "$ac_compile") 2>conftest.er1
4041   ac_status=$?
4042   grep -v '^ *+' conftest.er1 >conftest.err
4043   rm -f conftest.er1
4044   cat conftest.err >&5
4045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4046   (exit $ac_status); } &&
4047          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4048   { (case "(($ac_try" in
4049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4050   *) ac_try_echo=$ac_try;;
4051 esac
4052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4053   (eval "$ac_try") 2>&5
4054   ac_status=$?
4055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4056   (exit $ac_status); }; } &&
4057          { ac_try='test -s conftest.$ac_objext'
4058   { (case "(($ac_try" in
4059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4060   *) ac_try_echo=$ac_try;;
4061 esac
4062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4063   (eval "$ac_try") 2>&5
4064   ac_status=$?
4065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066   (exit $ac_status); }; }; then
4067   eval "$as_ac_Header=yes"
4068 else
4069   echo "$as_me: failed program was:" >&5
4070 sed 's/^/| /' conftest.$ac_ext >&5
4071
4072         eval "$as_ac_Header=no"
4073 fi
4074
4075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4076 fi
4077 ac_res=`eval echo '${'$as_ac_Header'}'`
4078                { echo "$as_me:$LINENO: result: $ac_res" >&5
4079 echo "${ECHO_T}$ac_res" >&6; }
4080 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4081   cat >>confdefs.h <<_ACEOF
4082 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4083 _ACEOF
4084
4085 fi
4086
4087 done
4088
4089
4090 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4091 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4092 if test "${ac_cv_c_bigendian+set}" = set; then
4093   echo $ECHO_N "(cached) $ECHO_C" >&6
4094 else
4095   # See if sys/param.h defines the BYTE_ORDER macro.
4096 cat >conftest.$ac_ext <<_ACEOF
4097 /* confdefs.h.  */
4098 _ACEOF
4099 cat confdefs.h >>conftest.$ac_ext
4100 cat >>conftest.$ac_ext <<_ACEOF
4101 /* end confdefs.h.  */
4102 #include <sys/types.h>
4103 #include <sys/param.h>
4104
4105 int
4106 main ()
4107 {
4108 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4109  bogus endian macros
4110 #endif
4111
4112   ;
4113   return 0;
4114 }
4115 _ACEOF
4116 rm -f conftest.$ac_objext
4117 if { (ac_try="$ac_compile"
4118 case "(($ac_try" in
4119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4120   *) ac_try_echo=$ac_try;;
4121 esac
4122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4123   (eval "$ac_compile") 2>conftest.er1
4124   ac_status=$?
4125   grep -v '^ *+' conftest.er1 >conftest.err
4126   rm -f conftest.er1
4127   cat conftest.err >&5
4128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129   (exit $ac_status); } &&
4130          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4131   { (case "(($ac_try" in
4132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4133   *) ac_try_echo=$ac_try;;
4134 esac
4135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4136   (eval "$ac_try") 2>&5
4137   ac_status=$?
4138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4139   (exit $ac_status); }; } &&
4140          { ac_try='test -s conftest.$ac_objext'
4141   { (case "(($ac_try" in
4142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4143   *) ac_try_echo=$ac_try;;
4144 esac
4145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4146   (eval "$ac_try") 2>&5
4147   ac_status=$?
4148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149   (exit $ac_status); }; }; then
4150   # It does; now see whether it defined to BIG_ENDIAN or not.
4151 cat >conftest.$ac_ext <<_ACEOF
4152 /* confdefs.h.  */
4153 _ACEOF
4154 cat confdefs.h >>conftest.$ac_ext
4155 cat >>conftest.$ac_ext <<_ACEOF
4156 /* end confdefs.h.  */
4157 #include <sys/types.h>
4158 #include <sys/param.h>
4159
4160 int
4161 main ()
4162 {
4163 #if BYTE_ORDER != BIG_ENDIAN
4164  not big endian
4165 #endif
4166
4167   ;
4168   return 0;
4169 }
4170 _ACEOF
4171 rm -f conftest.$ac_objext
4172 if { (ac_try="$ac_compile"
4173 case "(($ac_try" in
4174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4175   *) ac_try_echo=$ac_try;;
4176 esac
4177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4178   (eval "$ac_compile") 2>conftest.er1
4179   ac_status=$?
4180   grep -v '^ *+' conftest.er1 >conftest.err
4181   rm -f conftest.er1
4182   cat conftest.err >&5
4183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4184   (exit $ac_status); } &&
4185          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4186   { (case "(($ac_try" in
4187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4188   *) ac_try_echo=$ac_try;;
4189 esac
4190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4191   (eval "$ac_try") 2>&5
4192   ac_status=$?
4193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194   (exit $ac_status); }; } &&
4195          { ac_try='test -s conftest.$ac_objext'
4196   { (case "(($ac_try" in
4197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4198   *) ac_try_echo=$ac_try;;
4199 esac
4200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4201   (eval "$ac_try") 2>&5
4202   ac_status=$?
4203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4204   (exit $ac_status); }; }; then
4205   ac_cv_c_bigendian=yes
4206 else
4207   echo "$as_me: failed program was:" >&5
4208 sed 's/^/| /' conftest.$ac_ext >&5
4209
4210         ac_cv_c_bigendian=no
4211 fi
4212
4213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4214 else
4215   echo "$as_me: failed program was:" >&5
4216 sed 's/^/| /' conftest.$ac_ext >&5
4217
4218         # It does not; compile a test program.
4219 if test "$cross_compiling" = yes; then
4220   # try to guess the endianness by grepping values into an object file
4221   ac_cv_c_bigendian=unknown
4222   cat >conftest.$ac_ext <<_ACEOF
4223 /* confdefs.h.  */
4224 _ACEOF
4225 cat confdefs.h >>conftest.$ac_ext
4226 cat >>conftest.$ac_ext <<_ACEOF
4227 /* end confdefs.h.  */
4228 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4229 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4230 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4231 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4232 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4233 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4234 int
4235 main ()
4236 {
4237  _ascii (); _ebcdic ();
4238   ;
4239   return 0;
4240 }
4241 _ACEOF
4242 rm -f conftest.$ac_objext
4243 if { (ac_try="$ac_compile"
4244 case "(($ac_try" in
4245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4246   *) ac_try_echo=$ac_try;;
4247 esac
4248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4249   (eval "$ac_compile") 2>conftest.er1
4250   ac_status=$?
4251   grep -v '^ *+' conftest.er1 >conftest.err
4252   rm -f conftest.er1
4253   cat conftest.err >&5
4254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255   (exit $ac_status); } &&
4256          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4257   { (case "(($ac_try" in
4258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4259   *) ac_try_echo=$ac_try;;
4260 esac
4261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4262   (eval "$ac_try") 2>&5
4263   ac_status=$?
4264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4265   (exit $ac_status); }; } &&
4266          { ac_try='test -s conftest.$ac_objext'
4267   { (case "(($ac_try" in
4268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4269   *) ac_try_echo=$ac_try;;
4270 esac
4271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4272   (eval "$ac_try") 2>&5
4273   ac_status=$?
4274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275   (exit $ac_status); }; }; then
4276   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4277   ac_cv_c_bigendian=yes
4278 fi
4279 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4280   if test "$ac_cv_c_bigendian" = unknown; then
4281     ac_cv_c_bigendian=no
4282   else
4283     # finding both strings is unlikely to happen, but who knows?
4284     ac_cv_c_bigendian=unknown
4285   fi
4286 fi
4287 else
4288   echo "$as_me: failed program was:" >&5
4289 sed 's/^/| /' conftest.$ac_ext >&5
4290
4291
4292 fi
4293
4294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4295 else
4296   cat >conftest.$ac_ext <<_ACEOF
4297 /* confdefs.h.  */
4298 _ACEOF
4299 cat confdefs.h >>conftest.$ac_ext
4300 cat >>conftest.$ac_ext <<_ACEOF
4301 /* end confdefs.h.  */
4302 $ac_includes_default
4303 int
4304 main ()
4305 {
4306
4307   /* Are we little or big endian?  From Harbison&Steele.  */
4308   union
4309   {
4310     long int l;
4311     char c[sizeof (long int)];
4312   } u;
4313   u.l = 1;
4314   return u.c[sizeof (long int) - 1] == 1;
4315
4316   ;
4317   return 0;
4318 }
4319 _ACEOF
4320 rm -f conftest$ac_exeext
4321 if { (ac_try="$ac_link"
4322 case "(($ac_try" in
4323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4324   *) ac_try_echo=$ac_try;;
4325 esac
4326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4327   (eval "$ac_link") 2>&5
4328   ac_status=$?
4329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
4337   ac_status=$?
4338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4339   (exit $ac_status); }; }; then
4340   ac_cv_c_bigendian=no
4341 else
4342   echo "$as_me: program exited with status $ac_status" >&5
4343 echo "$as_me: failed program was:" >&5
4344 sed 's/^/| /' conftest.$ac_ext >&5
4345
4346 ( exit $ac_status )
4347 ac_cv_c_bigendian=yes
4348 fi
4349 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4350 fi
4351
4352
4353 fi
4354
4355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4356 fi
4357 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4358 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4359 case $ac_cv_c_bigendian in
4360   yes)
4361     ENDIAN=big
4362  ;;
4363   no)
4364     ENDIAN=little
4365  ;;
4366   *)
4367     { { echo "$as_me:$LINENO: error: unknown endianness
4368 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4369 echo "$as_me: error: unknown endianness
4370 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4371    { (exit 1); exit 1; }; } ;;
4372 esac
4373
4374
4375 if test "$cross_compiling" = yes; then
4376   LLVM_CROSS_COMPILING=1
4377
4378
4379 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4380 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4381 if test "${ac_cv_build_exeext+set}" = set; then
4382   echo $ECHO_N "(cached) $ECHO_C" >&6
4383 else
4384   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4385   ac_cv_build_exeext=.exe
4386 else
4387   ac_build_prefix=${build_alias}-
4388
4389   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4390 set dummy ${ac_build_prefix}gcc; ac_word=$2
4391 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4393 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4394   echo $ECHO_N "(cached) $ECHO_C" >&6
4395 else
4396   if test -n "$BUILD_CC"; then
4397   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4398 else
4399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4400 for as_dir in $PATH
4401 do
4402   IFS=$as_save_IFS
4403   test -z "$as_dir" && as_dir=.
4404   for ac_exec_ext in '' $ac_executable_extensions; do
4405   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4406     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4407     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4408     break 2
4409   fi
4410 done
4411 done
4412 IFS=$as_save_IFS
4413
4414 fi
4415 fi
4416 BUILD_CC=$ac_cv_prog_BUILD_CC
4417 if test -n "$BUILD_CC"; then
4418   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4419 echo "${ECHO_T}$BUILD_CC" >&6; }
4420 else
4421   { echo "$as_me:$LINENO: result: no" >&5
4422 echo "${ECHO_T}no" >&6; }
4423 fi
4424
4425
4426   if test -z "$BUILD_CC"; then
4427      # Extract the first word of "gcc", so it can be a program name with args.
4428 set dummy gcc; ac_word=$2
4429 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4431 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4432   echo $ECHO_N "(cached) $ECHO_C" >&6
4433 else
4434   if test -n "$BUILD_CC"; then
4435   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4436 else
4437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4438 for as_dir in $PATH
4439 do
4440   IFS=$as_save_IFS
4441   test -z "$as_dir" && as_dir=.
4442   for ac_exec_ext in '' $ac_executable_extensions; do
4443   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4444     ac_cv_prog_BUILD_CC="gcc"
4445     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4446     break 2
4447   fi
4448 done
4449 done
4450 IFS=$as_save_IFS
4451
4452 fi
4453 fi
4454 BUILD_CC=$ac_cv_prog_BUILD_CC
4455 if test -n "$BUILD_CC"; then
4456   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4457 echo "${ECHO_T}$BUILD_CC" >&6; }
4458 else
4459   { echo "$as_me:$LINENO: result: no" >&5
4460 echo "${ECHO_T}no" >&6; }
4461 fi
4462
4463
4464      if test -z "$BUILD_CC"; then
4465        # Extract the first word of "cc", so it can be a program name with args.
4466 set dummy cc; ac_word=$2
4467 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4469 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4470   echo $ECHO_N "(cached) $ECHO_C" >&6
4471 else
4472   if test -n "$BUILD_CC"; then
4473   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4474 else
4475   ac_prog_rejected=no
4476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4477 for as_dir in $PATH
4478 do
4479   IFS=$as_save_IFS
4480   test -z "$as_dir" && as_dir=.
4481   for ac_exec_ext in '' $ac_executable_extensions; do
4482   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4483     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4484        ac_prog_rejected=yes
4485        continue
4486      fi
4487     ac_cv_prog_BUILD_CC="cc"
4488     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4489     break 2
4490   fi
4491 done
4492 done
4493 IFS=$as_save_IFS
4494
4495 if test $ac_prog_rejected = yes; then
4496   # We found a bogon in the path, so make sure we never use it.
4497   set dummy $ac_cv_prog_BUILD_CC
4498   shift
4499   if test $# != 0; then
4500     # We chose a different compiler from the bogus one.
4501     # However, it has the same basename, so the bogon will be chosen
4502     # first if we set BUILD_CC to just the basename; use the full file name.
4503     shift
4504     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4505   fi
4506 fi
4507 fi
4508 fi
4509 BUILD_CC=$ac_cv_prog_BUILD_CC
4510 if test -n "$BUILD_CC"; then
4511   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4512 echo "${ECHO_T}$BUILD_CC" >&6; }
4513 else
4514   { echo "$as_me:$LINENO: result: no" >&5
4515 echo "${ECHO_T}no" >&6; }
4516 fi
4517
4518
4519      fi
4520   fi
4521   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4522 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4523    { (exit 1); exit 1; }; }
4524   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4525   rm -f conftest*
4526   echo 'int main () { return 0; }' > conftest.$ac_ext
4527   ac_cv_build_exeext=
4528   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4529   (eval $ac_build_link) 2>&5
4530   ac_status=$?
4531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532   (exit $ac_status); }; then
4533     for file in conftest.*; do
4534       case $file in
4535       *.c | *.o | *.obj) ;;
4536       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4537       esac
4538     done
4539   else
4540     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4541 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4542    { (exit 1); exit 1; }; }
4543   fi
4544   rm -f conftest*
4545   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4546 fi
4547 fi
4548
4549 BUILD_EXEEXT=""
4550 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4551 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4552 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4553 ac_build_exeext=$BUILD_EXEEXT
4554
4555 else
4556   LLVM_CROSS_COMPILING=0
4557
4558 fi
4559
4560 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then
4561   cvsbuild="yes"
4562   optimize="no"
4563   CVSBUILD=CVSBUILD=1
4564
4565 else
4566   cvsbuild="no"
4567   optimize="yes"
4568 fi
4569
4570
4571 # Check whether --enable-optimized was given.
4572 if test "${enable_optimized+set}" = set; then
4573   enableval=$enable_optimized;
4574 else
4575   enableval=$optimize
4576 fi
4577
4578 if test ${enableval} = "no" ; then
4579   ENABLE_OPTIMIZED=
4580
4581 else
4582   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4583
4584 fi
4585
4586 # Check whether --enable-assertions was given.
4587 if test "${enable_assertions+set}" = set; then
4588   enableval=$enable_assertions;
4589 else
4590   enableval="yes"
4591 fi
4592
4593 if test ${enableval} = "yes" ; then
4594   DISABLE_ASSERTIONS=
4595
4596 else
4597   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4598
4599 fi
4600
4601 # Check whether --enable-expensive-checks was given.
4602 if test "${enable_expensive_checks+set}" = set; then
4603   enableval=$enable_expensive_checks;
4604 else
4605   enableval="no"
4606 fi
4607
4608 if test ${enableval} = "yes" ; then
4609   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4610
4611   EXPENSIVE_CHECKS=yes
4612
4613 else
4614   ENABLE_EXPENSIVE_CHECKS=
4615
4616   EXPENSIVE_CHECKS=no
4617
4618 fi
4619
4620 # Check whether --enable-debug-runtime was given.
4621 if test "${enable_debug_runtime+set}" = set; then
4622   enableval=$enable_debug_runtime;
4623 else
4624   enableval=no
4625 fi
4626
4627 if test ${enableval} = "no" ; then
4628   DEBUG_RUNTIME=
4629
4630 else
4631   DEBUG_RUNTIME=DEBUG_RUNTIME=1
4632
4633 fi
4634
4635 # Check whether --enable-jit was given.
4636 if test "${enable_jit+set}" = set; then
4637   enableval=$enable_jit;
4638 else
4639   enableval=default
4640 fi
4641
4642 if test ${enableval} = "no"
4643 then
4644   JIT=
4645
4646 else
4647   case "$llvm_cv_target_arch" in
4648     x86)     TARGET_HAS_JIT=1
4649  ;;
4650     Sparc)   TARGET_HAS_JIT=0
4651  ;;
4652     PowerPC) TARGET_HAS_JIT=1
4653  ;;
4654     x86_64)  TARGET_HAS_JIT=1
4655  ;;
4656     Alpha)   TARGET_HAS_JIT=1
4657  ;;
4658     IA64)    TARGET_HAS_JIT=0
4659  ;;
4660     ARM)     TARGET_HAS_JIT=0
4661  ;;
4662     Mips)    TARGET_HAS_JIT=0
4663  ;;
4664     *)       TARGET_HAS_JIT=0
4665  ;;
4666   esac
4667 fi
4668
4669 # Check whether --enable-doxygen was given.
4670 if test "${enable_doxygen+set}" = set; then
4671   enableval=$enable_doxygen;
4672 else
4673   enableval=default
4674 fi
4675
4676 case "$enableval" in
4677   yes) ENABLE_DOXYGEN=1
4678  ;;
4679   no)  ENABLE_DOXYGEN=0
4680  ;;
4681   default) ENABLE_DOXYGEN=0
4682  ;;
4683   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4684 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4685    { (exit 1); exit 1; }; } ;;
4686 esac
4687
4688 # Check whether --enable-threads was given.
4689 if test "${enable_threads+set}" = set; then
4690   enableval=$enable_threads;
4691 else
4692   enableval=default
4693 fi
4694
4695 case "$enableval" in
4696   yes) ENABLE_THREADS=1
4697  ;;
4698   no)  ENABLE_THREADS=0
4699  ;;
4700   default) ENABLE_THREADS=1
4701  ;;
4702   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4703 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4704    { (exit 1); exit 1; }; } ;;
4705 esac
4706
4707 cat >>confdefs.h <<_ACEOF
4708 #define ENABLE_THREADS $ENABLE_THREADS
4709 _ACEOF
4710
4711
4712 # Check whether --enable-pic was given.
4713 if test "${enable_pic+set}" = set; then
4714   enableval=$enable_pic;
4715 else
4716   enableval=default
4717 fi
4718
4719 case "$enableval" in
4720   yes) ENABLE_PIC=1
4721  ;;
4722   no)  ENABLE_PIC=0
4723  ;;
4724   default) ENABLE_PIC=0
4725  ;;
4726   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4727 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4728    { (exit 1); exit 1; }; } ;;
4729 esac
4730
4731 cat >>confdefs.h <<_ACEOF
4732 #define ENABLE_PIC $ENABLE_PIC
4733 _ACEOF
4734
4735
4736 TARGETS_TO_BUILD=""
4737 # Check whether --enable-targets was given.
4738 if test "${enable_targets+set}" = set; then
4739   enableval=$enable_targets;
4740 else
4741   enableval=all
4742 fi
4743
4744 case "$enableval" in
4745   all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips" ;;
4746   host-only)
4747     case "$llvm_cv_target_arch" in
4748       x86)     TARGETS_TO_BUILD="X86" ;;
4749       x86_64)  TARGETS_TO_BUILD="X86" ;;
4750       Sparc)   TARGETS_TO_BUILD="Sparc" ;;
4751       PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4752       Alpha)   TARGETS_TO_BUILD="Alpha" ;;
4753       IA64)    TARGETS_TO_BUILD="IA64" ;;
4754       ARM)     TARGETS_TO_BUILD="ARM" ;;
4755       Mips)    TARGETS_TO_BUILD="Mips" ;;
4756       *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4757 echo "$as_me: error: Can not set target to build" >&2;}
4758    { (exit 1); exit 1; }; } ;;
4759     esac
4760     ;;
4761   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4762       case "$a_target" in
4763         x86)     TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4764         x86_64)  TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4765         sparc)   TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4766         powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4767         alpha)   TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4768         ia64)    TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4769         arm)     TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4770         mips)    TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4771         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4772 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4773    { (exit 1); exit 1; }; } ;;
4774       esac
4775   done
4776   ;;
4777 esac
4778 TARGETS_TO_BUILD="CBackend MSIL $TARGETS_TO_BUILD"
4779 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4780
4781
4782 # Check whether --enable-cbe-printf-a was given.
4783 if test "${enable_cbe_printf_a+set}" = set; then
4784   enableval=$enable_cbe_printf_a;
4785 else
4786   enableval=default
4787 fi
4788
4789 case "$enableval" in
4790   yes) ENABLE_CBE_PRINTF_A=1
4791  ;;
4792   no)  ENABLE_CBE_PRINTF_A=0
4793  ;;
4794   default)  ENABLE_CBE_PRINTF_A=1
4795  ;;
4796   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4797 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4798    { (exit 1); exit 1; }; } ;;
4799 esac
4800
4801 cat >>confdefs.h <<_ACEOF
4802 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4803 _ACEOF
4804
4805
4806
4807 # Check whether --with-llvmgccdir was given.
4808 if test "${with_llvmgccdir+set}" = set; then
4809   withval=$with_llvmgccdir;
4810 else
4811   withval=default
4812 fi
4813
4814 case "$withval" in
4815   default) WITH_LLVMGCCDIR=default ;;
4816   /* | [A-Za-z]:[\\/]*)      WITH_LLVMGCCDIR=$withval ;;
4817   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4818 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4819    { (exit 1); exit 1; }; } ;;
4820 esac
4821
4822
4823 # Check whether --with-llvmgcc was given.
4824 if test "${with_llvmgcc+set}" = set; then
4825   withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
4826       WITH_LLVMGCCDIR=""
4827 fi
4828
4829
4830
4831 # Check whether --with-llvmgxx was given.
4832 if test "${with_llvmgxx+set}" = set; then
4833   withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
4834     WITH_LLVMGCCDIR=""
4835 fi
4836
4837
4838 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
4839    { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
4840 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
4841    { (exit 1); exit 1; }; };
4842 fi
4843
4844 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
4845    { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
4846 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
4847    { (exit 1); exit 1; }; };
4848 fi
4849
4850
4851 # Check whether --with-extra-options was given.
4852 if test "${with_extra_options+set}" = set; then
4853   withval=$with_extra_options;
4854 else
4855   withval=default
4856 fi
4857
4858 case "$withval" in
4859   default) EXTRA_OPTIONS= ;;
4860   *) EXTRA_OPTIONS=$withval ;;
4861 esac
4862 EXTRA_OPTIONS=$EXTRA_OPTIONS
4863
4864
4865 # Check whether --enable-bindings was given.
4866 if test "${enable_bindings+set}" = set; then
4867   enableval=$enable_bindings;
4868 else
4869   enableval=default
4870 fi
4871
4872 BINDINGS_TO_BUILD=""
4873 case "$enableval" in
4874   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
4875   all ) BINDINGS_TO_BUILD="ocaml" ;;
4876   none | no) BINDINGS_TO_BUILD="" ;;
4877   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
4878       case "$a_binding" in
4879         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
4880         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
4881 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
4882    { (exit 1); exit 1; }; } ;;
4883       esac
4884   done
4885   ;;
4886 esac
4887
4888
4889 # Check whether --with-ocaml-libdir was given.
4890 if test "${with_ocaml_libdir+set}" = set; then
4891   withval=$with_ocaml_libdir;
4892 else
4893   withval=auto
4894 fi
4895
4896 case "$withval" in
4897   auto) with_ocaml_libdir="$withval" ;;
4898   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
4899   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
4900 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
4901    { (exit 1); exit 1; }; } ;;
4902 esac
4903
4904
4905 ac_ext=c
4906 ac_cpp='$CPP $CPPFLAGS'
4907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4910 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4911 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4912 # On Suns, sometimes $CPP names a directory.
4913 if test -n "$CPP" && test -d "$CPP"; then
4914   CPP=
4915 fi
4916 if test -z "$CPP"; then
4917   if test "${ac_cv_prog_CPP+set}" = set; then
4918   echo $ECHO_N "(cached) $ECHO_C" >&6
4919 else
4920       # Double quotes because CPP needs to be expanded
4921     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4922     do
4923       ac_preproc_ok=false
4924 for ac_c_preproc_warn_flag in '' yes
4925 do
4926   # Use a header file that comes with gcc, so configuring glibc
4927   # with a fresh cross-compiler works.
4928   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4929   # <limits.h> exists even on freestanding compilers.
4930   # On the NeXT, cc -E runs the code through the compiler's parser,
4931   # not just through cpp. "Syntax error" is here to catch this case.
4932   cat >conftest.$ac_ext <<_ACEOF
4933 /* confdefs.h.  */
4934 _ACEOF
4935 cat confdefs.h >>conftest.$ac_ext
4936 cat >>conftest.$ac_ext <<_ACEOF
4937 /* end confdefs.h.  */
4938 #ifdef __STDC__
4939 # include <limits.h>
4940 #else
4941 # include <assert.h>
4942 #endif
4943                      Syntax error
4944 _ACEOF
4945 if { (ac_try="$ac_cpp conftest.$ac_ext"
4946 case "(($ac_try" in
4947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4948   *) ac_try_echo=$ac_try;;
4949 esac
4950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4951   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4952   ac_status=$?
4953   grep -v '^ *+' conftest.er1 >conftest.err
4954   rm -f conftest.er1
4955   cat conftest.err >&5
4956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4957   (exit $ac_status); } >/dev/null; then
4958   if test -s conftest.err; then
4959     ac_cpp_err=$ac_c_preproc_warn_flag
4960     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4961   else
4962     ac_cpp_err=
4963   fi
4964 else
4965   ac_cpp_err=yes
4966 fi
4967 if test -z "$ac_cpp_err"; then
4968   :
4969 else
4970   echo "$as_me: failed program was:" >&5
4971 sed 's/^/| /' conftest.$ac_ext >&5
4972
4973   # Broken: fails on valid input.
4974 continue
4975 fi
4976
4977 rm -f conftest.err conftest.$ac_ext
4978
4979   # OK, works on sane cases.  Now check whether nonexistent headers
4980   # can be detected and how.
4981   cat >conftest.$ac_ext <<_ACEOF
4982 /* confdefs.h.  */
4983 _ACEOF
4984 cat confdefs.h >>conftest.$ac_ext
4985 cat >>conftest.$ac_ext <<_ACEOF
4986 /* end confdefs.h.  */
4987 #include <ac_nonexistent.h>
4988 _ACEOF
4989 if { (ac_try="$ac_cpp conftest.$ac_ext"
4990 case "(($ac_try" in
4991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4992   *) ac_try_echo=$ac_try;;
4993 esac
4994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4995   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4996   ac_status=$?
4997   grep -v '^ *+' conftest.er1 >conftest.err
4998   rm -f conftest.er1
4999   cat conftest.err >&5
5000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5001   (exit $ac_status); } >/dev/null; then
5002   if test -s conftest.err; then
5003     ac_cpp_err=$ac_c_preproc_warn_flag
5004     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5005   else
5006     ac_cpp_err=
5007   fi
5008 else
5009   ac_cpp_err=yes
5010 fi
5011 if test -z "$ac_cpp_err"; then
5012   # Broken: success on invalid input.
5013 continue
5014 else
5015   echo "$as_me: failed program was:" >&5
5016 sed 's/^/| /' conftest.$ac_ext >&5
5017
5018   # Passes both tests.
5019 ac_preproc_ok=:
5020 break
5021 fi
5022
5023 rm -f conftest.err conftest.$ac_ext
5024
5025 done
5026 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5027 rm -f conftest.err conftest.$ac_ext
5028 if $ac_preproc_ok; then
5029   break
5030 fi
5031
5032     done
5033     ac_cv_prog_CPP=$CPP
5034
5035 fi
5036   CPP=$ac_cv_prog_CPP
5037 else
5038   ac_cv_prog_CPP=$CPP
5039 fi
5040 { echo "$as_me:$LINENO: result: $CPP" >&5
5041 echo "${ECHO_T}$CPP" >&6; }
5042 ac_preproc_ok=false
5043 for ac_c_preproc_warn_flag in '' yes
5044 do
5045   # Use a header file that comes with gcc, so configuring glibc
5046   # with a fresh cross-compiler works.
5047   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5048   # <limits.h> exists even on freestanding compilers.
5049   # On the NeXT, cc -E runs the code through the compiler's parser,
5050   # not just through cpp. "Syntax error" is here to catch this case.
5051   cat >conftest.$ac_ext <<_ACEOF
5052 /* confdefs.h.  */
5053 _ACEOF
5054 cat confdefs.h >>conftest.$ac_ext
5055 cat >>conftest.$ac_ext <<_ACEOF
5056 /* end confdefs.h.  */
5057 #ifdef __STDC__
5058 # include <limits.h>
5059 #else
5060 # include <assert.h>
5061 #endif
5062                      Syntax error
5063 _ACEOF
5064 if { (ac_try="$ac_cpp conftest.$ac_ext"
5065 case "(($ac_try" in
5066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5067   *) ac_try_echo=$ac_try;;
5068 esac
5069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5070   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5071   ac_status=$?
5072   grep -v '^ *+' conftest.er1 >conftest.err
5073   rm -f conftest.er1
5074   cat conftest.err >&5
5075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5076   (exit $ac_status); } >/dev/null; then
5077   if test -s conftest.err; then
5078     ac_cpp_err=$ac_c_preproc_warn_flag
5079     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5080   else
5081     ac_cpp_err=
5082   fi
5083 else
5084   ac_cpp_err=yes
5085 fi
5086 if test -z "$ac_cpp_err"; then
5087   :
5088 else
5089   echo "$as_me: failed program was:" >&5
5090 sed 's/^/| /' conftest.$ac_ext >&5
5091
5092   # Broken: fails on valid input.
5093 continue
5094 fi
5095
5096 rm -f conftest.err conftest.$ac_ext
5097
5098   # OK, works on sane cases.  Now check whether nonexistent headers
5099   # can be detected and how.
5100   cat >conftest.$ac_ext <<_ACEOF
5101 /* confdefs.h.  */
5102 _ACEOF
5103 cat confdefs.h >>conftest.$ac_ext
5104 cat >>conftest.$ac_ext <<_ACEOF
5105 /* end confdefs.h.  */
5106 #include <ac_nonexistent.h>
5107 _ACEOF
5108 if { (ac_try="$ac_cpp conftest.$ac_ext"
5109 case "(($ac_try" in
5110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5111   *) ac_try_echo=$ac_try;;
5112 esac
5113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5114   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5115   ac_status=$?
5116   grep -v '^ *+' conftest.er1 >conftest.err
5117   rm -f conftest.er1
5118   cat conftest.err >&5
5119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5120   (exit $ac_status); } >/dev/null; then
5121   if test -s conftest.err; then
5122     ac_cpp_err=$ac_c_preproc_warn_flag
5123     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5124   else
5125     ac_cpp_err=
5126   fi
5127 else
5128   ac_cpp_err=yes
5129 fi
5130 if test -z "$ac_cpp_err"; then
5131   # Broken: success on invalid input.
5132 continue
5133 else
5134   echo "$as_me: failed program was:" >&5
5135 sed 's/^/| /' conftest.$ac_ext >&5
5136
5137   # Passes both tests.
5138 ac_preproc_ok=:
5139 break
5140 fi
5141
5142 rm -f conftest.err conftest.$ac_ext
5143
5144 done
5145 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5146 rm -f conftest.err conftest.$ac_ext
5147 if $ac_preproc_ok; then
5148   :
5149 else
5150   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5151 See \`config.log' for more details." >&5
5152 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5153 See \`config.log' for more details." >&2;}
5154    { (exit 1); exit 1; }; }
5155 fi
5156
5157 ac_ext=c
5158 ac_cpp='$CPP $CPPFLAGS'
5159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5162
5163 ac_ext=c
5164 ac_cpp='$CPP $CPPFLAGS'
5165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5168 if test -n "$ac_tool_prefix"; then
5169   for ac_prog in gcc
5170   do
5171     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5172 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5173 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5175 if test "${ac_cv_prog_CC+set}" = set; then
5176   echo $ECHO_N "(cached) $ECHO_C" >&6
5177 else
5178   if test -n "$CC"; then
5179   ac_cv_prog_CC="$CC" # Let the user override the test.
5180 else
5181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5182 for as_dir in $PATH
5183 do
5184   IFS=$as_save_IFS
5185   test -z "$as_dir" && as_dir=.
5186   for ac_exec_ext in '' $ac_executable_extensions; do
5187   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5188     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5189     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5190     break 2
5191   fi
5192 done
5193 done
5194 IFS=$as_save_IFS
5195
5196 fi
5197 fi
5198 CC=$ac_cv_prog_CC
5199 if test -n "$CC"; then
5200   { echo "$as_me:$LINENO: result: $CC" >&5
5201 echo "${ECHO_T}$CC" >&6; }
5202 else
5203   { echo "$as_me:$LINENO: result: no" >&5
5204 echo "${ECHO_T}no" >&6; }
5205 fi
5206
5207
5208     test -n "$CC" && break
5209   done
5210 fi
5211 if test -z "$CC"; then
5212   ac_ct_CC=$CC
5213   for ac_prog in gcc
5214 do
5215   # Extract the first word of "$ac_prog", so it can be a program name with args.
5216 set dummy $ac_prog; ac_word=$2
5217 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5219 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5220   echo $ECHO_N "(cached) $ECHO_C" >&6
5221 else
5222   if test -n "$ac_ct_CC"; then
5223   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5224 else
5225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5226 for as_dir in $PATH
5227 do
5228   IFS=$as_save_IFS
5229   test -z "$as_dir" && as_dir=.
5230   for ac_exec_ext in '' $ac_executable_extensions; do
5231   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5232     ac_cv_prog_ac_ct_CC="$ac_prog"
5233     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5234     break 2
5235   fi
5236 done
5237 done
5238 IFS=$as_save_IFS
5239
5240 fi
5241 fi
5242 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5243 if test -n "$ac_ct_CC"; then
5244   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5245 echo "${ECHO_T}$ac_ct_CC" >&6; }
5246 else
5247   { echo "$as_me:$LINENO: result: no" >&5
5248 echo "${ECHO_T}no" >&6; }
5249 fi
5250
5251
5252   test -n "$ac_ct_CC" && break
5253 done
5254
5255   if test "x$ac_ct_CC" = x; then
5256     CC=""
5257   else
5258     case $cross_compiling:$ac_tool_warned in
5259 yes:)
5260 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5261 whose name does not start with the host triplet.  If you think this
5262 configuration is useful to you, please write to autoconf@gnu.org." >&5
5263 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5264 whose name does not start with the host triplet.  If you think this
5265 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5266 ac_tool_warned=yes ;;
5267 esac
5268     CC=$ac_ct_CC
5269   fi
5270 fi
5271
5272
5273 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5274 See \`config.log' for more details." >&5
5275 echo "$as_me: error: no acceptable C compiler found in \$PATH
5276 See \`config.log' for more details." >&2;}
5277    { (exit 1); exit 1; }; }
5278
5279 # Provide some information about the compiler.
5280 echo "$as_me:$LINENO: checking for C compiler version" >&5
5281 ac_compiler=`set X $ac_compile; echo $2`
5282 { (ac_try="$ac_compiler --version >&5"
5283 case "(($ac_try" in
5284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5285   *) ac_try_echo=$ac_try;;
5286 esac
5287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5288   (eval "$ac_compiler --version >&5") 2>&5
5289   ac_status=$?
5290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5291   (exit $ac_status); }
5292 { (ac_try="$ac_compiler -v >&5"
5293 case "(($ac_try" in
5294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5295   *) ac_try_echo=$ac_try;;
5296 esac
5297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5298   (eval "$ac_compiler -v >&5") 2>&5
5299   ac_status=$?
5300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5301   (exit $ac_status); }
5302 { (ac_try="$ac_compiler -V >&5"
5303 case "(($ac_try" in
5304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5305   *) ac_try_echo=$ac_try;;
5306 esac
5307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5308   (eval "$ac_compiler -V >&5") 2>&5
5309   ac_status=$?
5310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5311   (exit $ac_status); }
5312
5313 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5314 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5315 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5316   echo $ECHO_N "(cached) $ECHO_C" >&6
5317 else
5318   cat >conftest.$ac_ext <<_ACEOF
5319 /* confdefs.h.  */
5320 _ACEOF
5321 cat confdefs.h >>conftest.$ac_ext
5322 cat >>conftest.$ac_ext <<_ACEOF
5323 /* end confdefs.h.  */
5324
5325 int
5326 main ()
5327 {
5328 #ifndef __GNUC__
5329        choke me
5330 #endif
5331
5332   ;
5333   return 0;
5334 }
5335 _ACEOF
5336 rm -f conftest.$ac_objext
5337 if { (ac_try="$ac_compile"
5338 case "(($ac_try" in
5339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5340   *) ac_try_echo=$ac_try;;
5341 esac
5342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5343   (eval "$ac_compile") 2>conftest.er1
5344   ac_status=$?
5345   grep -v '^ *+' conftest.er1 >conftest.err
5346   rm -f conftest.er1
5347   cat conftest.err >&5
5348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349   (exit $ac_status); } &&
5350          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5351   { (case "(($ac_try" in
5352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5353   *) ac_try_echo=$ac_try;;
5354 esac
5355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5356   (eval "$ac_try") 2>&5
5357   ac_status=$?
5358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359   (exit $ac_status); }; } &&
5360          { ac_try='test -s conftest.$ac_objext'
5361   { (case "(($ac_try" in
5362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5363   *) ac_try_echo=$ac_try;;
5364 esac
5365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5366   (eval "$ac_try") 2>&5
5367   ac_status=$?
5368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369   (exit $ac_status); }; }; then
5370   ac_compiler_gnu=yes
5371 else
5372   echo "$as_me: failed program was:" >&5
5373 sed 's/^/| /' conftest.$ac_ext >&5
5374
5375         ac_compiler_gnu=no
5376 fi
5377
5378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5379 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5380
5381 fi
5382 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5383 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5384 GCC=`test $ac_compiler_gnu = yes && echo yes`
5385 ac_test_CFLAGS=${CFLAGS+set}
5386 ac_save_CFLAGS=$CFLAGS
5387 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5388 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5389 if test "${ac_cv_prog_cc_g+set}" = set; then
5390   echo $ECHO_N "(cached) $ECHO_C" >&6
5391 else
5392   ac_save_c_werror_flag=$ac_c_werror_flag
5393    ac_c_werror_flag=yes
5394    ac_cv_prog_cc_g=no
5395    CFLAGS="-g"
5396    cat >conftest.$ac_ext <<_ACEOF
5397 /* confdefs.h.  */
5398 _ACEOF
5399 cat confdefs.h >>conftest.$ac_ext
5400 cat >>conftest.$ac_ext <<_ACEOF
5401 /* end confdefs.h.  */
5402
5403 int
5404 main ()
5405 {
5406
5407   ;
5408   return 0;
5409 }
5410 _ACEOF
5411 rm -f conftest.$ac_objext
5412 if { (ac_try="$ac_compile"
5413 case "(($ac_try" in
5414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5415   *) ac_try_echo=$ac_try;;
5416 esac
5417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5418   (eval "$ac_compile") 2>conftest.er1
5419   ac_status=$?
5420   grep -v '^ *+' conftest.er1 >conftest.err
5421   rm -f conftest.er1
5422   cat conftest.err >&5
5423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5424   (exit $ac_status); } &&
5425          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5426   { (case "(($ac_try" in
5427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5428   *) ac_try_echo=$ac_try;;
5429 esac
5430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5431   (eval "$ac_try") 2>&5
5432   ac_status=$?
5433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5434   (exit $ac_status); }; } &&
5435          { ac_try='test -s conftest.$ac_objext'
5436   { (case "(($ac_try" in
5437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5438   *) ac_try_echo=$ac_try;;
5439 esac
5440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5441   (eval "$ac_try") 2>&5
5442   ac_status=$?
5443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444   (exit $ac_status); }; }; then
5445   ac_cv_prog_cc_g=yes
5446 else
5447   echo "$as_me: failed program was:" >&5
5448 sed 's/^/| /' conftest.$ac_ext >&5
5449
5450         CFLAGS=""
5451       cat >conftest.$ac_ext <<_ACEOF
5452 /* confdefs.h.  */
5453 _ACEOF
5454 cat confdefs.h >>conftest.$ac_ext
5455 cat >>conftest.$ac_ext <<_ACEOF
5456 /* end confdefs.h.  */
5457
5458 int
5459 main ()
5460 {
5461
5462   ;
5463   return 0;
5464 }
5465 _ACEOF
5466 rm -f conftest.$ac_objext
5467 if { (ac_try="$ac_compile"
5468 case "(($ac_try" in
5469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5470   *) ac_try_echo=$ac_try;;
5471 esac
5472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5473   (eval "$ac_compile") 2>conftest.er1
5474   ac_status=$?
5475   grep -v '^ *+' conftest.er1 >conftest.err
5476   rm -f conftest.er1
5477   cat conftest.err >&5
5478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5479   (exit $ac_status); } &&
5480          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5481   { (case "(($ac_try" in
5482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5483   *) ac_try_echo=$ac_try;;
5484 esac
5485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5486   (eval "$ac_try") 2>&5
5487   ac_status=$?
5488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5489   (exit $ac_status); }; } &&
5490          { ac_try='test -s conftest.$ac_objext'
5491   { (case "(($ac_try" in
5492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5493   *) ac_try_echo=$ac_try;;
5494 esac
5495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5496   (eval "$ac_try") 2>&5
5497   ac_status=$?
5498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5499   (exit $ac_status); }; }; then
5500   :
5501 else
5502   echo "$as_me: failed program was:" >&5
5503 sed 's/^/| /' conftest.$ac_ext >&5
5504
5505         ac_c_werror_flag=$ac_save_c_werror_flag
5506          CFLAGS="-g"
5507          cat >conftest.$ac_ext <<_ACEOF
5508 /* confdefs.h.  */
5509 _ACEOF
5510 cat confdefs.h >>conftest.$ac_ext
5511 cat >>conftest.$ac_ext <<_ACEOF
5512 /* end confdefs.h.  */
5513
5514 int
5515 main ()
5516 {
5517
5518   ;
5519   return 0;
5520 }
5521 _ACEOF
5522 rm -f conftest.$ac_objext
5523 if { (ac_try="$ac_compile"
5524 case "(($ac_try" in
5525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5526   *) ac_try_echo=$ac_try;;
5527 esac
5528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5529   (eval "$ac_compile") 2>conftest.er1
5530   ac_status=$?
5531   grep -v '^ *+' conftest.er1 >conftest.err
5532   rm -f conftest.er1
5533   cat conftest.err >&5
5534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5535   (exit $ac_status); } &&
5536          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5537   { (case "(($ac_try" in
5538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5539   *) ac_try_echo=$ac_try;;
5540 esac
5541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5542   (eval "$ac_try") 2>&5
5543   ac_status=$?
5544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5545   (exit $ac_status); }; } &&
5546          { ac_try='test -s conftest.$ac_objext'
5547   { (case "(($ac_try" in
5548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5549   *) ac_try_echo=$ac_try;;
5550 esac
5551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5552   (eval "$ac_try") 2>&5
5553   ac_status=$?
5554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555   (exit $ac_status); }; }; then
5556   ac_cv_prog_cc_g=yes
5557 else
5558   echo "$as_me: failed program was:" >&5
5559 sed 's/^/| /' conftest.$ac_ext >&5
5560
5561
5562 fi
5563
5564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5565 fi
5566
5567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5568 fi
5569
5570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5571    ac_c_werror_flag=$ac_save_c_werror_flag
5572 fi
5573 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5574 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5575 if test "$ac_test_CFLAGS" = set; then
5576   CFLAGS=$ac_save_CFLAGS
5577 elif test $ac_cv_prog_cc_g = yes; then
5578   if test "$GCC" = yes; then
5579     CFLAGS="-g -O2"
5580   else
5581     CFLAGS="-g"
5582   fi
5583 else
5584   if test "$GCC" = yes; then
5585     CFLAGS="-O2"
5586   else
5587     CFLAGS=
5588   fi
5589 fi
5590 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5591 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5592 if test "${ac_cv_prog_cc_c89+set}" = set; then
5593   echo $ECHO_N "(cached) $ECHO_C" >&6
5594 else
5595   ac_cv_prog_cc_c89=no
5596 ac_save_CC=$CC
5597 cat >conftest.$ac_ext <<_ACEOF
5598 /* confdefs.h.  */
5599 _ACEOF
5600 cat confdefs.h >>conftest.$ac_ext
5601 cat >>conftest.$ac_ext <<_ACEOF
5602 /* end confdefs.h.  */
5603 #include <stdarg.h>
5604 #include <stdio.h>
5605 #include <sys/types.h>
5606 #include <sys/stat.h>
5607 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5608 struct buf { int x; };
5609 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5610 static char *e (p, i)
5611      char **p;
5612      int i;
5613 {
5614   return p[i];
5615 }
5616 static char *f (char * (*g) (char **, int), char **p, ...)
5617 {
5618   char *s;
5619   va_list v;
5620   va_start (v,p);
5621   s = g (p, va_arg (v,int));
5622   va_end (v);
5623   return s;
5624 }
5625
5626 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5627    function prototypes and stuff, but not '\xHH' hex character constants.
5628    These don't provoke an error unfortunately, instead are silently treated
5629    as 'x'.  The following induces an error, until -std is added to get
5630    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5631    array size at least.  It's necessary to write '\x00'==0 to get something
5632    that's true only with -std.  */
5633 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5634
5635 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5636    inside strings and character constants.  */
5637 #define FOO(x) 'x'
5638 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5639
5640 int test (int i, double x);
5641 struct s1 {int (*f) (int a);};
5642 struct s2 {int (*f) (double a);};
5643 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5644 int argc;
5645 char **argv;
5646 int
5647 main ()
5648 {
5649 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5650   ;
5651   return 0;
5652 }
5653 _ACEOF
5654 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5655         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5656 do
5657   CC="$ac_save_CC $ac_arg"
5658   rm -f conftest.$ac_objext
5659 if { (ac_try="$ac_compile"
5660 case "(($ac_try" in
5661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5662   *) ac_try_echo=$ac_try;;
5663 esac
5664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5665   (eval "$ac_compile") 2>conftest.er1
5666   ac_status=$?
5667   grep -v '^ *+' conftest.er1 >conftest.err
5668   rm -f conftest.er1
5669   cat conftest.err >&5
5670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5671   (exit $ac_status); } &&
5672          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5673   { (case "(($ac_try" in
5674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5675   *) ac_try_echo=$ac_try;;
5676 esac
5677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5678   (eval "$ac_try") 2>&5
5679   ac_status=$?
5680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5681   (exit $ac_status); }; } &&
5682          { ac_try='test -s conftest.$ac_objext'
5683   { (case "(($ac_try" in
5684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5685   *) ac_try_echo=$ac_try;;
5686 esac
5687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5688   (eval "$ac_try") 2>&5
5689   ac_status=$?
5690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691   (exit $ac_status); }; }; then
5692   ac_cv_prog_cc_c89=$ac_arg
5693 else
5694   echo "$as_me: failed program was:" >&5
5695 sed 's/^/| /' conftest.$ac_ext >&5
5696
5697
5698 fi
5699
5700 rm -f core conftest.err conftest.$ac_objext
5701   test "x$ac_cv_prog_cc_c89" != "xno" && break
5702 done
5703 rm -f conftest.$ac_ext
5704 CC=$ac_save_CC
5705
5706 fi
5707 # AC_CACHE_VAL
5708 case "x$ac_cv_prog_cc_c89" in
5709   x)
5710     { echo "$as_me:$LINENO: result: none needed" >&5
5711 echo "${ECHO_T}none needed" >&6; } ;;
5712   xno)
5713     { echo "$as_me:$LINENO: result: unsupported" >&5
5714 echo "${ECHO_T}unsupported" >&6; } ;;
5715   *)
5716     CC="$CC $ac_cv_prog_cc_c89"
5717     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5718 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5719 esac
5720
5721
5722 ac_ext=c
5723 ac_cpp='$CPP $CPPFLAGS'
5724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5727
5728 ac_ext=cpp
5729 ac_cpp='$CXXCPP $CPPFLAGS'
5730 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5731 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5732 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5733 if test -z "$CXX"; then
5734   if test -n "$CCC"; then
5735     CXX=$CCC
5736   else
5737     if test -n "$ac_tool_prefix"; then
5738   for ac_prog in g++
5739   do
5740     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5741 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5742 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5744 if test "${ac_cv_prog_CXX+set}" = set; then
5745   echo $ECHO_N "(cached) $ECHO_C" >&6
5746 else
5747   if test -n "$CXX"; then
5748   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5749 else
5750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5751 for as_dir in $PATH
5752 do
5753   IFS=$as_save_IFS
5754   test -z "$as_dir" && as_dir=.
5755   for ac_exec_ext in '' $ac_executable_extensions; do
5756   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5757     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5758     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5759     break 2
5760   fi
5761 done
5762 done
5763 IFS=$as_save_IFS
5764
5765 fi
5766 fi
5767 CXX=$ac_cv_prog_CXX
5768 if test -n "$CXX"; then
5769   { echo "$as_me:$LINENO: result: $CXX" >&5
5770 echo "${ECHO_T}$CXX" >&6; }
5771 else
5772   { echo "$as_me:$LINENO: result: no" >&5
5773 echo "${ECHO_T}no" >&6; }
5774 fi
5775
5776
5777     test -n "$CXX" && break
5778   done
5779 fi
5780 if test -z "$CXX"; then
5781   ac_ct_CXX=$CXX
5782   for ac_prog in g++
5783 do
5784   # Extract the first word of "$ac_prog", so it can be a program name with args.
5785 set dummy $ac_prog; ac_word=$2
5786 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5788 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5789   echo $ECHO_N "(cached) $ECHO_C" >&6
5790 else
5791   if test -n "$ac_ct_CXX"; then
5792   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5793 else
5794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5795 for as_dir in $PATH
5796 do
5797   IFS=$as_save_IFS
5798   test -z "$as_dir" && as_dir=.
5799   for ac_exec_ext in '' $ac_executable_extensions; do
5800   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5801     ac_cv_prog_ac_ct_CXX="$ac_prog"
5802     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5803     break 2
5804   fi
5805 done
5806 done
5807 IFS=$as_save_IFS
5808
5809 fi
5810 fi
5811 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5812 if test -n "$ac_ct_CXX"; then
5813   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5814 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5815 else
5816   { echo "$as_me:$LINENO: result: no" >&5
5817 echo "${ECHO_T}no" >&6; }
5818 fi
5819
5820
5821   test -n "$ac_ct_CXX" && break
5822 done
5823
5824   if test "x$ac_ct_CXX" = x; then
5825     CXX="g++"
5826   else
5827     case $cross_compiling:$ac_tool_warned in
5828 yes:)
5829 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5830 whose name does not start with the host triplet.  If you think this
5831 configuration is useful to you, please write to autoconf@gnu.org." >&5
5832 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5833 whose name does not start with the host triplet.  If you think this
5834 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5835 ac_tool_warned=yes ;;
5836 esac
5837     CXX=$ac_ct_CXX
5838   fi
5839 fi
5840
5841   fi
5842 fi
5843 # Provide some information about the compiler.
5844 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5845 ac_compiler=`set X $ac_compile; echo $2`
5846 { (ac_try="$ac_compiler --version >&5"
5847 case "(($ac_try" in
5848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5849   *) ac_try_echo=$ac_try;;
5850 esac
5851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5852   (eval "$ac_compiler --version >&5") 2>&5
5853   ac_status=$?
5854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855   (exit $ac_status); }
5856 { (ac_try="$ac_compiler -v >&5"
5857 case "(($ac_try" in
5858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5859   *) ac_try_echo=$ac_try;;
5860 esac
5861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5862   (eval "$ac_compiler -v >&5") 2>&5
5863   ac_status=$?
5864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5865   (exit $ac_status); }
5866 { (ac_try="$ac_compiler -V >&5"
5867 case "(($ac_try" in
5868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5869   *) ac_try_echo=$ac_try;;
5870 esac
5871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5872   (eval "$ac_compiler -V >&5") 2>&5
5873   ac_status=$?
5874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5875   (exit $ac_status); }
5876
5877 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5878 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5879 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5880   echo $ECHO_N "(cached) $ECHO_C" >&6
5881 else
5882   cat >conftest.$ac_ext <<_ACEOF
5883 /* confdefs.h.  */
5884 _ACEOF
5885 cat confdefs.h >>conftest.$ac_ext
5886 cat >>conftest.$ac_ext <<_ACEOF
5887 /* end confdefs.h.  */
5888
5889 int
5890 main ()
5891 {
5892 #ifndef __GNUC__
5893        choke me
5894 #endif
5895
5896   ;
5897   return 0;
5898 }
5899 _ACEOF
5900 rm -f conftest.$ac_objext
5901 if { (ac_try="$ac_compile"
5902 case "(($ac_try" in
5903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5904   *) ac_try_echo=$ac_try;;
5905 esac
5906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5907   (eval "$ac_compile") 2>conftest.er1
5908   ac_status=$?
5909   grep -v '^ *+' conftest.er1 >conftest.err
5910   rm -f conftest.er1
5911   cat conftest.err >&5
5912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913   (exit $ac_status); } &&
5914          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5915   { (case "(($ac_try" in
5916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5917   *) ac_try_echo=$ac_try;;
5918 esac
5919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5920   (eval "$ac_try") 2>&5
5921   ac_status=$?
5922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5923   (exit $ac_status); }; } &&
5924          { ac_try='test -s conftest.$ac_objext'
5925   { (case "(($ac_try" in
5926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5927   *) ac_try_echo=$ac_try;;
5928 esac
5929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5930   (eval "$ac_try") 2>&5
5931   ac_status=$?
5932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933   (exit $ac_status); }; }; then
5934   ac_compiler_gnu=yes
5935 else
5936   echo "$as_me: failed program was:" >&5
5937 sed 's/^/| /' conftest.$ac_ext >&5
5938
5939         ac_compiler_gnu=no
5940 fi
5941
5942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5943 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5944
5945 fi
5946 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5947 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5948 GXX=`test $ac_compiler_gnu = yes && echo yes`
5949 ac_test_CXXFLAGS=${CXXFLAGS+set}
5950 ac_save_CXXFLAGS=$CXXFLAGS
5951 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5952 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5953 if test "${ac_cv_prog_cxx_g+set}" = set; then
5954   echo $ECHO_N "(cached) $ECHO_C" >&6
5955 else
5956   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5957    ac_cxx_werror_flag=yes
5958    ac_cv_prog_cxx_g=no
5959    CXXFLAGS="-g"
5960    cat >conftest.$ac_ext <<_ACEOF
5961 /* confdefs.h.  */
5962 _ACEOF
5963 cat confdefs.h >>conftest.$ac_ext
5964 cat >>conftest.$ac_ext <<_ACEOF
5965 /* end confdefs.h.  */
5966
5967 int
5968 main ()
5969 {
5970
5971   ;
5972   return 0;
5973 }
5974 _ACEOF
5975 rm -f conftest.$ac_objext
5976 if { (ac_try="$ac_compile"
5977 case "(($ac_try" in
5978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5979   *) ac_try_echo=$ac_try;;
5980 esac
5981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5982   (eval "$ac_compile") 2>conftest.er1
5983   ac_status=$?
5984   grep -v '^ *+' conftest.er1 >conftest.err
5985   rm -f conftest.er1
5986   cat conftest.err >&5
5987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988   (exit $ac_status); } &&
5989          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5990   { (case "(($ac_try" in
5991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5992   *) ac_try_echo=$ac_try;;
5993 esac
5994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5995   (eval "$ac_try") 2>&5
5996   ac_status=$?
5997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998   (exit $ac_status); }; } &&
5999          { ac_try='test -s conftest.$ac_objext'
6000   { (case "(($ac_try" in
6001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6002   *) ac_try_echo=$ac_try;;
6003 esac
6004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6005   (eval "$ac_try") 2>&5
6006   ac_status=$?
6007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008   (exit $ac_status); }; }; then
6009   ac_cv_prog_cxx_g=yes
6010 else
6011   echo "$as_me: failed program was:" >&5
6012 sed 's/^/| /' conftest.$ac_ext >&5
6013
6014         CXXFLAGS=""
6015       cat >conftest.$ac_ext <<_ACEOF
6016 /* confdefs.h.  */
6017 _ACEOF
6018 cat confdefs.h >>conftest.$ac_ext
6019 cat >>conftest.$ac_ext <<_ACEOF
6020 /* end confdefs.h.  */
6021
6022 int
6023 main ()
6024 {
6025
6026   ;
6027   return 0;
6028 }
6029 _ACEOF
6030 rm -f conftest.$ac_objext
6031 if { (ac_try="$ac_compile"
6032 case "(($ac_try" in
6033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6034   *) ac_try_echo=$ac_try;;
6035 esac
6036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6037   (eval "$ac_compile") 2>conftest.er1
6038   ac_status=$?
6039   grep -v '^ *+' conftest.er1 >conftest.err
6040   rm -f conftest.er1
6041   cat conftest.err >&5
6042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043   (exit $ac_status); } &&
6044          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6045   { (case "(($ac_try" in
6046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6047   *) ac_try_echo=$ac_try;;
6048 esac
6049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6050   (eval "$ac_try") 2>&5
6051   ac_status=$?
6052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053   (exit $ac_status); }; } &&
6054          { ac_try='test -s conftest.$ac_objext'
6055   { (case "(($ac_try" in
6056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6057   *) ac_try_echo=$ac_try;;
6058 esac
6059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6060   (eval "$ac_try") 2>&5
6061   ac_status=$?
6062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6063   (exit $ac_status); }; }; then
6064   :
6065 else
6066   echo "$as_me: failed program was:" >&5
6067 sed 's/^/| /' conftest.$ac_ext >&5
6068
6069         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6070          CXXFLAGS="-g"
6071          cat >conftest.$ac_ext <<_ACEOF
6072 /* confdefs.h.  */
6073 _ACEOF
6074 cat confdefs.h >>conftest.$ac_ext
6075 cat >>conftest.$ac_ext <<_ACEOF
6076 /* end confdefs.h.  */
6077
6078 int
6079 main ()
6080 {
6081
6082   ;
6083   return 0;
6084 }
6085 _ACEOF
6086 rm -f conftest.$ac_objext
6087 if { (ac_try="$ac_compile"
6088 case "(($ac_try" in
6089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6090   *) ac_try_echo=$ac_try;;
6091 esac
6092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6093   (eval "$ac_compile") 2>conftest.er1
6094   ac_status=$?
6095   grep -v '^ *+' conftest.er1 >conftest.err
6096   rm -f conftest.er1
6097   cat conftest.err >&5
6098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099   (exit $ac_status); } &&
6100          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6101   { (case "(($ac_try" in
6102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6103   *) ac_try_echo=$ac_try;;
6104 esac
6105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6106   (eval "$ac_try") 2>&5
6107   ac_status=$?
6108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109   (exit $ac_status); }; } &&
6110          { ac_try='test -s conftest.$ac_objext'
6111   { (case "(($ac_try" in
6112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6113   *) ac_try_echo=$ac_try;;
6114 esac
6115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6116   (eval "$ac_try") 2>&5
6117   ac_status=$?
6118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119   (exit $ac_status); }; }; then
6120   ac_cv_prog_cxx_g=yes
6121 else
6122   echo "$as_me: failed program was:" >&5
6123 sed 's/^/| /' conftest.$ac_ext >&5
6124
6125
6126 fi
6127
6128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6129 fi
6130
6131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6132 fi
6133
6134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6135    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6136 fi
6137 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6138 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6139 if test "$ac_test_CXXFLAGS" = set; then
6140   CXXFLAGS=$ac_save_CXXFLAGS
6141 elif test $ac_cv_prog_cxx_g = yes; then
6142   if test "$GXX" = yes; then
6143     CXXFLAGS="-g -O2"
6144   else
6145     CXXFLAGS="-g"
6146   fi
6147 else
6148   if test "$GXX" = yes; then
6149     CXXFLAGS="-O2"
6150   else
6151     CXXFLAGS=
6152   fi
6153 fi
6154 ac_ext=c
6155 ac_cpp='$CPP $CPPFLAGS'
6156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6159
6160 { echo "$as_me:$LINENO: checking " >&5
6161 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6162 if test "${ac_cv_has_flex+set}" = set; then
6163   echo $ECHO_N "(cached) $ECHO_C" >&6
6164 else
6165   for ac_prog in flex lex
6166 do
6167   # Extract the first word of "$ac_prog", so it can be a program name with args.
6168 set dummy $ac_prog; ac_word=$2
6169 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6171 if test "${ac_cv_prog_LEX+set}" = set; then
6172   echo $ECHO_N "(cached) $ECHO_C" >&6
6173 else
6174   if test -n "$LEX"; then
6175   ac_cv_prog_LEX="$LEX" # Let the user override the test.
6176 else
6177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6178 for as_dir in $PATH
6179 do
6180   IFS=$as_save_IFS
6181   test -z "$as_dir" && as_dir=.
6182   for ac_exec_ext in '' $ac_executable_extensions; do
6183   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6184     ac_cv_prog_LEX="$ac_prog"
6185     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6186     break 2
6187   fi
6188 done
6189 done
6190 IFS=$as_save_IFS
6191
6192 fi
6193 fi
6194 LEX=$ac_cv_prog_LEX
6195 if test -n "$LEX"; then
6196   { echo "$as_me:$LINENO: result: $LEX" >&5
6197 echo "${ECHO_T}$LEX" >&6; }
6198 else
6199   { echo "$as_me:$LINENO: result: no" >&5
6200 echo "${ECHO_T}no" >&6; }
6201 fi
6202
6203
6204   test -n "$LEX" && break
6205 done
6206 test -n "$LEX" || LEX=":"
6207
6208 if test -z "$LEXLIB"
6209 then
6210   { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6211 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6212 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6213   echo $ECHO_N "(cached) $ECHO_C" >&6
6214 else
6215   ac_check_lib_save_LIBS=$LIBS
6216 LIBS="-lfl  $LIBS"
6217 cat >conftest.$ac_ext <<_ACEOF
6218 /* confdefs.h.  */
6219 _ACEOF
6220 cat confdefs.h >>conftest.$ac_ext
6221 cat >>conftest.$ac_ext <<_ACEOF
6222 /* end confdefs.h.  */
6223
6224 /* Override any GCC internal prototype to avoid an error.
6225    Use char because int might match the return type of a GCC
6226    builtin and then its argument prototype would still apply.  */
6227 #ifdef __cplusplus
6228 extern "C"
6229 #endif
6230 char yywrap ();
6231 int
6232 main ()
6233 {
6234 return yywrap ();
6235   ;
6236   return 0;
6237 }
6238 _ACEOF
6239 rm -f conftest.$ac_objext conftest$ac_exeext
6240 if { (ac_try="$ac_link"
6241 case "(($ac_try" in
6242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6243   *) ac_try_echo=$ac_try;;
6244 esac
6245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6246   (eval "$ac_link") 2>conftest.er1
6247   ac_status=$?
6248   grep -v '^ *+' conftest.er1 >conftest.err
6249   rm -f conftest.er1
6250   cat conftest.err >&5
6251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6252   (exit $ac_status); } &&
6253          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6254   { (case "(($ac_try" in
6255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6256   *) ac_try_echo=$ac_try;;
6257 esac
6258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6259   (eval "$ac_try") 2>&5
6260   ac_status=$?
6261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6262   (exit $ac_status); }; } &&
6263          { ac_try='test -s conftest$ac_exeext'
6264   { (case "(($ac_try" in
6265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6266   *) ac_try_echo=$ac_try;;
6267 esac
6268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6269   (eval "$ac_try") 2>&5
6270   ac_status=$?
6271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6272   (exit $ac_status); }; }; then
6273   ac_cv_lib_fl_yywrap=yes
6274 else
6275   echo "$as_me: failed program was:" >&5
6276 sed 's/^/| /' conftest.$ac_ext >&5
6277
6278         ac_cv_lib_fl_yywrap=no
6279 fi
6280
6281 rm -f core conftest.err conftest.$ac_objext \
6282       conftest$ac_exeext conftest.$ac_ext
6283 LIBS=$ac_check_lib_save_LIBS
6284 fi
6285 { echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6286 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6287 if test $ac_cv_lib_fl_yywrap = yes; then
6288   LEXLIB="-lfl"
6289 else
6290   { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6291 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6292 if test "${ac_cv_lib_l_yywrap+set}" = set; then
6293   echo $ECHO_N "(cached) $ECHO_C" >&6
6294 else
6295   ac_check_lib_save_LIBS=$LIBS
6296 LIBS="-ll  $LIBS"
6297 cat >conftest.$ac_ext <<_ACEOF
6298 /* confdefs.h.  */
6299 _ACEOF
6300 cat confdefs.h >>conftest.$ac_ext
6301 cat >>conftest.$ac_ext <<_ACEOF
6302 /* end confdefs.h.  */
6303
6304 /* Override any GCC internal prototype to avoid an error.
6305    Use char because int might match the return type of a GCC
6306    builtin and then its argument prototype would still apply.  */
6307 #ifdef __cplusplus
6308 extern "C"
6309 #endif
6310 char yywrap ();
6311 int
6312 main ()
6313 {
6314 return yywrap ();
6315   ;
6316   return 0;
6317 }
6318 _ACEOF
6319 rm -f conftest.$ac_objext conftest$ac_exeext
6320 if { (ac_try="$ac_link"
6321 case "(($ac_try" in
6322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6323   *) ac_try_echo=$ac_try;;
6324 esac
6325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6326   (eval "$ac_link") 2>conftest.er1
6327   ac_status=$?
6328   grep -v '^ *+' conftest.er1 >conftest.err
6329   rm -f conftest.er1
6330   cat conftest.err >&5
6331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6332   (exit $ac_status); } &&
6333          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6334   { (case "(($ac_try" in
6335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6336   *) ac_try_echo=$ac_try;;
6337 esac
6338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6339   (eval "$ac_try") 2>&5
6340   ac_status=$?
6341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6342   (exit $ac_status); }; } &&
6343          { ac_try='test -s conftest$ac_exeext'
6344   { (case "(($ac_try" in
6345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6346   *) ac_try_echo=$ac_try;;
6347 esac
6348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6349   (eval "$ac_try") 2>&5
6350   ac_status=$?
6351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6352   (exit $ac_status); }; }; then
6353   ac_cv_lib_l_yywrap=yes
6354 else
6355   echo "$as_me: failed program was:" >&5
6356 sed 's/^/| /' conftest.$ac_ext >&5
6357
6358         ac_cv_lib_l_yywrap=no
6359 fi
6360
6361 rm -f core conftest.err conftest.$ac_objext \
6362       conftest$ac_exeext conftest.$ac_ext
6363 LIBS=$ac_check_lib_save_LIBS
6364 fi
6365 { echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6366 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6367 if test $ac_cv_lib_l_yywrap = yes; then
6368   LEXLIB="-ll"
6369 fi
6370
6371 fi
6372
6373 fi
6374
6375 if test "x$LEX" != "x:"; then
6376   { echo "$as_me:$LINENO: checking lex output file root" >&5
6377 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6378 if test "${ac_cv_prog_lex_root+set}" = set; then
6379   echo $ECHO_N "(cached) $ECHO_C" >&6
6380 else
6381   # The minimal lex program is just a single line: %%.  But some broken lexes
6382 # (Solaris, I think it was) want two %% lines, so accommodate them.
6383 cat >conftest.l <<_ACEOF
6384 %%
6385 %%
6386 _ACEOF
6387 { (ac_try="$LEX conftest.l"
6388 case "(($ac_try" in
6389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6390   *) ac_try_echo=$ac_try;;
6391 esac
6392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6393   (eval "$LEX conftest.l") 2>&5
6394   ac_status=$?
6395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6396   (exit $ac_status); }
6397 if test -f lex.yy.c; then
6398   ac_cv_prog_lex_root=lex.yy
6399 elif test -f lexyy.c; then
6400   ac_cv_prog_lex_root=lexyy
6401 else
6402   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6403 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6404    { (exit 1); exit 1; }; }
6405 fi
6406 fi
6407 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6408 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
6409 rm -f conftest.l
6410 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6411
6412 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6413 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6414 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6415   echo $ECHO_N "(cached) $ECHO_C" >&6
6416 else
6417   # POSIX says lex can declare yytext either as a pointer or an array; the
6418 # default is implementation-dependent. Figure out which it is, since
6419 # not all implementations provide the %pointer and %array declarations.
6420 ac_cv_prog_lex_yytext_pointer=no
6421 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6422 ac_save_LIBS=$LIBS
6423 LIBS="$LIBS $LEXLIB"
6424 cat >conftest.$ac_ext <<_ACEOF
6425 `cat $LEX_OUTPUT_ROOT.c`
6426 _ACEOF
6427 rm -f conftest.$ac_objext conftest$ac_exeext
6428 if { (ac_try="$ac_link"
6429 case "(($ac_try" in
6430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6431   *) ac_try_echo=$ac_try;;
6432 esac
6433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6434   (eval "$ac_link") 2>conftest.er1
6435   ac_status=$?
6436   grep -v '^ *+' conftest.er1 >conftest.err
6437   rm -f conftest.er1
6438   cat conftest.err >&5
6439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440   (exit $ac_status); } &&
6441          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6442   { (case "(($ac_try" in
6443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6444   *) ac_try_echo=$ac_try;;
6445 esac
6446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6447   (eval "$ac_try") 2>&5
6448   ac_status=$?
6449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6450   (exit $ac_status); }; } &&
6451          { ac_try='test -s conftest$ac_exeext'
6452   { (case "(($ac_try" in
6453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6454   *) ac_try_echo=$ac_try;;
6455 esac
6456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6457   (eval "$ac_try") 2>&5
6458   ac_status=$?
6459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6460   (exit $ac_status); }; }; then
6461   ac_cv_prog_lex_yytext_pointer=yes
6462 else
6463   echo "$as_me: failed program was:" >&5
6464 sed 's/^/| /' conftest.$ac_ext >&5
6465
6466
6467 fi
6468
6469 rm -f core conftest.err conftest.$ac_objext \
6470       conftest$ac_exeext conftest.$ac_ext
6471 LIBS=$ac_save_LIBS
6472 rm -f "${LEX_OUTPUT_ROOT}.c"
6473
6474 fi
6475 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6476 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6477 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6478
6479 cat >>confdefs.h <<\_ACEOF
6480 #define YYTEXT_POINTER 1
6481 _ACEOF
6482
6483 fi
6484
6485 fi
6486
6487 fi
6488 { echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6489 echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6490 if test "$LEX" != "flex"; then
6491   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6492 echo "$as_me: error: flex not found but required" >&2;}
6493    { (exit 1); exit 1; }; }
6494 else
6495   FLEX=flex
6496
6497 fi
6498
6499 { echo "$as_me:$LINENO: checking " >&5
6500 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6501 if test "${llvm_cv_has_bison+set}" = set; then
6502   echo $ECHO_N "(cached) $ECHO_C" >&6
6503 else
6504   for ac_prog in 'bison -y' byacc
6505 do
6506   # Extract the first word of "$ac_prog", so it can be a program name with args.
6507 set dummy $ac_prog; ac_word=$2
6508 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6510 if test "${ac_cv_prog_YACC+set}" = set; then
6511   echo $ECHO_N "(cached) $ECHO_C" >&6
6512 else
6513   if test -n "$YACC"; then
6514   ac_cv_prog_YACC="$YACC" # Let the user override the test.
6515 else
6516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6517 for as_dir in $PATH
6518 do
6519   IFS=$as_save_IFS
6520   test -z "$as_dir" && as_dir=.
6521   for ac_exec_ext in '' $ac_executable_extensions; do
6522   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6523     ac_cv_prog_YACC="$ac_prog"
6524     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6525     break 2
6526   fi
6527 done
6528 done
6529 IFS=$as_save_IFS
6530
6531 fi
6532 fi
6533 YACC=$ac_cv_prog_YACC
6534 if test -n "$YACC"; then
6535   { echo "$as_me:$LINENO: result: $YACC" >&5
6536 echo "${ECHO_T}$YACC" >&6; }
6537 else
6538   { echo "$as_me:$LINENO: result: no" >&5
6539 echo "${ECHO_T}no" >&6; }
6540 fi
6541
6542
6543   test -n "$YACC" && break
6544 done
6545 test -n "$YACC" || YACC="yacc"
6546
6547 fi
6548 { echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6549 echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6550 if test "$YACC" != "bison -y"; then
6551
6552   { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6553 echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
6554 else
6555   BISON=bison
6556
6557 fi
6558
6559 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6560 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6561 if test "${lt_cv_path_NM+set}" = set; then
6562   echo $ECHO_N "(cached) $ECHO_C" >&6
6563 else
6564   if test -n "$NM"; then
6565   # Let the user override the test.
6566   lt_cv_path_NM="$NM"
6567 else
6568   lt_nm_to_check="${ac_tool_prefix}nm"
6569   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6570     lt_nm_to_check="$lt_nm_to_check nm"
6571   fi
6572   for lt_tmp_nm in $lt_nm_to_check; do
6573     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6574     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6575       IFS="$lt_save_ifs"
6576       test -z "$ac_dir" && ac_dir=.
6577       tmp_nm="$ac_dir/$lt_tmp_nm"
6578       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6579         # Check to see if the nm accepts a BSD-compat flag.
6580         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6581         #   nm: unknown option "B" ignored
6582         # Tru64's nm complains that /dev/null is an invalid object file
6583         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6584         */dev/null* | *'Invalid file or object type'*)
6585           lt_cv_path_NM="$tmp_nm -B"
6586           break
6587           ;;
6588         *)
6589           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6590           */dev/null*)
6591             lt_cv_path_NM="$tmp_nm -p"
6592             break
6593             ;;
6594           *)
6595             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6596             continue # so that we can try to find one that supports BSD flags
6597             ;;
6598           esac
6599           ;;
6600         esac
6601       fi
6602     done
6603     IFS="$lt_save_ifs"
6604   done
6605   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6606 fi
6607 fi
6608 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6609 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6610 NM="$lt_cv_path_NM"
6611
6612
6613
6614 { echo "$as_me:$LINENO: checking for GNU make" >&5
6615 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6616 if test "${llvm_cv_gnu_make_command+set}" = set; then
6617   echo $ECHO_N "(cached) $ECHO_C" >&6
6618 else
6619   llvm_cv_gnu_make_command=''
6620  for a in "$MAKE" make gmake gnumake ; do
6621   if test -z "$a" ; then continue ; fi ;
6622   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6623   then
6624    llvm_cv_gnu_make_command=$a ;
6625    break;
6626   fi
6627  done
6628 fi
6629 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6630 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6631  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6632    ifGNUmake='' ;
6633  else
6634    ifGNUmake='#' ;
6635    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6636 echo "${ECHO_T}\"Not found\"" >&6; };
6637  fi
6638
6639
6640 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6641 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6642 LN_S=$as_ln_s
6643 if test "$LN_S" = "ln -s"; then
6644   { echo "$as_me:$LINENO: result: yes" >&5
6645 echo "${ECHO_T}yes" >&6; }
6646 else
6647   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6648 echo "${ECHO_T}no, using $LN_S" >&6; }
6649 fi
6650
6651 # Extract the first word of "cmp", so it can be a program name with args.
6652 set dummy cmp; ac_word=$2
6653 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6655 if test "${ac_cv_path_CMP+set}" = set; then
6656   echo $ECHO_N "(cached) $ECHO_C" >&6
6657 else
6658   case $CMP in
6659   [\\/]* | ?:[\\/]*)
6660   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6661   ;;
6662   *)
6663   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6664 for as_dir in $PATH
6665 do
6666   IFS=$as_save_IFS
6667   test -z "$as_dir" && as_dir=.
6668   for ac_exec_ext in '' $ac_executable_extensions; do
6669   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6670     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6671     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6672     break 2
6673   fi
6674 done
6675 done
6676 IFS=$as_save_IFS
6677
6678   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6679   ;;
6680 esac
6681 fi
6682 CMP=$ac_cv_path_CMP
6683 if test -n "$CMP"; then
6684   { echo "$as_me:$LINENO: result: $CMP" >&5
6685 echo "${ECHO_T}$CMP" >&6; }
6686 else
6687   { echo "$as_me:$LINENO: result: no" >&5
6688 echo "${ECHO_T}no" >&6; }
6689 fi
6690
6691
6692 # Extract the first word of "cp", so it can be a program name with args.
6693 set dummy cp; ac_word=$2
6694 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6696 if test "${ac_cv_path_CP+set}" = set; then
6697   echo $ECHO_N "(cached) $ECHO_C" >&6
6698 else
6699   case $CP in
6700   [\\/]* | ?:[\\/]*)
6701   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6702   ;;
6703   *)
6704   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6705 for as_dir in $PATH
6706 do
6707   IFS=$as_save_IFS
6708   test -z "$as_dir" && as_dir=.
6709   for ac_exec_ext in '' $ac_executable_extensions; do
6710   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6711     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6712     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6713     break 2
6714   fi
6715 done
6716 done
6717 IFS=$as_save_IFS
6718
6719   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6720   ;;
6721 esac
6722 fi
6723 CP=$ac_cv_path_CP
6724 if test -n "$CP"; then
6725   { echo "$as_me:$LINENO: result: $CP" >&5
6726 echo "${ECHO_T}$CP" >&6; }
6727 else
6728   { echo "$as_me:$LINENO: result: no" >&5
6729 echo "${ECHO_T}no" >&6; }
6730 fi
6731
6732
6733 # Extract the first word of "date", so it can be a program name with args.
6734 set dummy date; ac_word=$2
6735 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6737 if test "${ac_cv_path_DATE+set}" = set; then
6738   echo $ECHO_N "(cached) $ECHO_C" >&6
6739 else
6740   case $DATE in
6741   [\\/]* | ?:[\\/]*)
6742   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6743   ;;
6744   *)
6745   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6746 for as_dir in $PATH
6747 do
6748   IFS=$as_save_IFS
6749   test -z "$as_dir" && as_dir=.
6750   for ac_exec_ext in '' $ac_executable_extensions; do
6751   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6752     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6753     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6754     break 2
6755   fi
6756 done
6757 done
6758 IFS=$as_save_IFS
6759
6760   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6761   ;;
6762 esac
6763 fi
6764 DATE=$ac_cv_path_DATE
6765 if test -n "$DATE"; then
6766   { echo "$as_me:$LINENO: result: $DATE" >&5
6767 echo "${ECHO_T}$DATE" >&6; }
6768 else
6769   { echo "$as_me:$LINENO: result: no" >&5
6770 echo "${ECHO_T}no" >&6; }
6771 fi
6772
6773
6774 # Extract the first word of "find", so it can be a program name with args.
6775 set dummy find; ac_word=$2
6776 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6778 if test "${ac_cv_path_FIND+set}" = set; then
6779   echo $ECHO_N "(cached) $ECHO_C" >&6
6780 else
6781   case $FIND in
6782   [\\/]* | ?:[\\/]*)
6783   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6784   ;;
6785   *)
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_path_FIND="$as_dir/$ac_word$ac_exec_ext"
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   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6802   ;;
6803 esac
6804 fi
6805 FIND=$ac_cv_path_FIND
6806 if test -n "$FIND"; then
6807   { echo "$as_me:$LINENO: result: $FIND" >&5
6808 echo "${ECHO_T}$FIND" >&6; }
6809 else
6810   { echo "$as_me:$LINENO: result: no" >&5
6811 echo "${ECHO_T}no" >&6; }
6812 fi
6813
6814
6815 # Extract the first word of "grep", so it can be a program name with args.
6816 set dummy grep; ac_word=$2
6817 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6819 if test "${ac_cv_path_GREP+set}" = set; then
6820   echo $ECHO_N "(cached) $ECHO_C" >&6
6821 else
6822   case $GREP in
6823   [\\/]* | ?:[\\/]*)
6824   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6825   ;;
6826   *)
6827   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6828 for as_dir in $PATH
6829 do
6830   IFS=$as_save_IFS
6831   test -z "$as_dir" && as_dir=.
6832   for ac_exec_ext in '' $ac_executable_extensions; do
6833   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6834     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6835     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6836     break 2
6837   fi
6838 done
6839 done
6840 IFS=$as_save_IFS
6841
6842   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6843   ;;
6844 esac
6845 fi
6846 GREP=$ac_cv_path_GREP
6847 if test -n "$GREP"; then
6848   { echo "$as_me:$LINENO: result: $GREP" >&5
6849 echo "${ECHO_T}$GREP" >&6; }
6850 else
6851   { echo "$as_me:$LINENO: result: no" >&5
6852 echo "${ECHO_T}no" >&6; }
6853 fi
6854
6855
6856 # Extract the first word of "mkdir", so it can be a program name with args.
6857 set dummy mkdir; ac_word=$2
6858 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6859 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6860 if test "${ac_cv_path_MKDIR+set}" = set; then
6861   echo $ECHO_N "(cached) $ECHO_C" >&6
6862 else
6863   case $MKDIR in
6864   [\\/]* | ?:[\\/]*)
6865   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6866   ;;
6867   *)
6868   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6869 for as_dir in $PATH
6870 do
6871   IFS=$as_save_IFS
6872   test -z "$as_dir" && as_dir=.
6873   for ac_exec_ext in '' $ac_executable_extensions; do
6874   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6875     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6876     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6877     break 2
6878   fi
6879 done
6880 done
6881 IFS=$as_save_IFS
6882
6883   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6884   ;;
6885 esac
6886 fi
6887 MKDIR=$ac_cv_path_MKDIR
6888 if test -n "$MKDIR"; then
6889   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6890 echo "${ECHO_T}$MKDIR" >&6; }
6891 else
6892   { echo "$as_me:$LINENO: result: no" >&5
6893 echo "${ECHO_T}no" >&6; }
6894 fi
6895
6896
6897 # Extract the first word of "mv", so it can be a program name with args.
6898 set dummy mv; ac_word=$2
6899 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6901 if test "${ac_cv_path_MV+set}" = set; then
6902   echo $ECHO_N "(cached) $ECHO_C" >&6
6903 else
6904   case $MV in
6905   [\\/]* | ?:[\\/]*)
6906   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6907   ;;
6908   *)
6909   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6910 for as_dir in $PATH
6911 do
6912   IFS=$as_save_IFS
6913   test -z "$as_dir" && as_dir=.
6914   for ac_exec_ext in '' $ac_executable_extensions; do
6915   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6916     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6917     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6918     break 2
6919   fi
6920 done
6921 done
6922 IFS=$as_save_IFS
6923
6924   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6925   ;;
6926 esac
6927 fi
6928 MV=$ac_cv_path_MV
6929 if test -n "$MV"; then
6930   { echo "$as_me:$LINENO: result: $MV" >&5
6931 echo "${ECHO_T}$MV" >&6; }
6932 else
6933   { echo "$as_me:$LINENO: result: no" >&5
6934 echo "${ECHO_T}no" >&6; }
6935 fi
6936
6937
6938 if test -n "$ac_tool_prefix"; then
6939   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6940 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6941 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6943 if test "${ac_cv_prog_RANLIB+set}" = set; then
6944   echo $ECHO_N "(cached) $ECHO_C" >&6
6945 else
6946   if test -n "$RANLIB"; then
6947   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6948 else
6949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6950 for as_dir in $PATH
6951 do
6952   IFS=$as_save_IFS
6953   test -z "$as_dir" && as_dir=.
6954   for ac_exec_ext in '' $ac_executable_extensions; do
6955   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6956     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6957     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6958     break 2
6959   fi
6960 done
6961 done
6962 IFS=$as_save_IFS
6963
6964 fi
6965 fi
6966 RANLIB=$ac_cv_prog_RANLIB
6967 if test -n "$RANLIB"; then
6968   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6969 echo "${ECHO_T}$RANLIB" >&6; }
6970 else
6971   { echo "$as_me:$LINENO: result: no" >&5
6972 echo "${ECHO_T}no" >&6; }
6973 fi
6974
6975
6976 fi
6977 if test -z "$ac_cv_prog_RANLIB"; then
6978   ac_ct_RANLIB=$RANLIB
6979   # Extract the first word of "ranlib", so it can be a program name with args.
6980 set dummy ranlib; ac_word=$2
6981 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6983 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6984   echo $ECHO_N "(cached) $ECHO_C" >&6
6985 else
6986   if test -n "$ac_ct_RANLIB"; then
6987   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6988 else
6989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6990 for as_dir in $PATH
6991 do
6992   IFS=$as_save_IFS
6993   test -z "$as_dir" && as_dir=.
6994   for ac_exec_ext in '' $ac_executable_extensions; do
6995   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6996     ac_cv_prog_ac_ct_RANLIB="ranlib"
6997     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6998     break 2
6999   fi
7000 done
7001 done
7002 IFS=$as_save_IFS
7003
7004 fi
7005 fi
7006 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7007 if test -n "$ac_ct_RANLIB"; then
7008   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7009 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7010 else
7011   { echo "$as_me:$LINENO: result: no" >&5
7012 echo "${ECHO_T}no" >&6; }
7013 fi
7014
7015   if test "x$ac_ct_RANLIB" = x; then
7016     RANLIB=":"
7017   else
7018     case $cross_compiling:$ac_tool_warned in
7019 yes:)
7020 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7021 whose name does not start with the host triplet.  If you think this
7022 configuration is useful to you, please write to autoconf@gnu.org." >&5
7023 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7024 whose name does not start with the host triplet.  If you think this
7025 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7026 ac_tool_warned=yes ;;
7027 esac
7028     RANLIB=$ac_ct_RANLIB
7029   fi
7030 else
7031   RANLIB="$ac_cv_prog_RANLIB"
7032 fi
7033
7034 # Extract the first word of "rm", so it can be a program name with args.
7035 set dummy rm; ac_word=$2
7036 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7038 if test "${ac_cv_path_RM+set}" = set; then
7039   echo $ECHO_N "(cached) $ECHO_C" >&6
7040 else
7041   case $RM in
7042   [\\/]* | ?:[\\/]*)
7043   ac_cv_path_RM="$RM" # Let the user override the test with a path.
7044   ;;
7045   *)
7046   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7047 for as_dir in $PATH
7048 do
7049   IFS=$as_save_IFS
7050   test -z "$as_dir" && as_dir=.
7051   for ac_exec_ext in '' $ac_executable_extensions; do
7052   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7053     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7054     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7055     break 2
7056   fi
7057 done
7058 done
7059 IFS=$as_save_IFS
7060
7061   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7062   ;;
7063 esac
7064 fi
7065 RM=$ac_cv_path_RM
7066 if test -n "$RM"; then
7067   { echo "$as_me:$LINENO: result: $RM" >&5
7068 echo "${ECHO_T}$RM" >&6; }
7069 else
7070   { echo "$as_me:$LINENO: result: no" >&5
7071 echo "${ECHO_T}no" >&6; }
7072 fi
7073
7074
7075 # Extract the first word of "sed", so it can be a program name with args.
7076 set dummy sed; ac_word=$2
7077 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7079 if test "${ac_cv_path_SED+set}" = set; then
7080   echo $ECHO_N "(cached) $ECHO_C" >&6
7081 else
7082   case $SED in
7083   [\\/]* | ?:[\\/]*)
7084   ac_cv_path_SED="$SED" # Let the user override the test with a path.
7085   ;;
7086   *)
7087   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7088 for as_dir in $PATH
7089 do
7090   IFS=$as_save_IFS
7091   test -z "$as_dir" && as_dir=.
7092   for ac_exec_ext in '' $ac_executable_extensions; do
7093   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7094     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7095     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7096     break 2
7097   fi
7098 done
7099 done
7100 IFS=$as_save_IFS
7101
7102   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7103   ;;
7104 esac
7105 fi
7106 SED=$ac_cv_path_SED
7107 if test -n "$SED"; then
7108   { echo "$as_me:$LINENO: result: $SED" >&5
7109 echo "${ECHO_T}$SED" >&6; }
7110 else
7111   { echo "$as_me:$LINENO: result: no" >&5
7112 echo "${ECHO_T}no" >&6; }
7113 fi
7114
7115
7116 # Extract the first word of "tar", so it can be a program name with args.
7117 set dummy tar; ac_word=$2
7118 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7120 if test "${ac_cv_path_TAR+set}" = set; then
7121   echo $ECHO_N "(cached) $ECHO_C" >&6
7122 else
7123   case $TAR in
7124   [\\/]* | ?:[\\/]*)
7125   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7126   ;;
7127   *)
7128   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7129 for as_dir in $PATH
7130 do
7131   IFS=$as_save_IFS
7132   test -z "$as_dir" && as_dir=.
7133   for ac_exec_ext in '' $ac_executable_extensions; do
7134   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7135     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7136     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7137     break 2
7138   fi
7139 done
7140 done
7141 IFS=$as_save_IFS
7142
7143   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7144   ;;
7145 esac
7146 fi
7147 TAR=$ac_cv_path_TAR
7148 if test -n "$TAR"; then
7149   { echo "$as_me:$LINENO: result: $TAR" >&5
7150 echo "${ECHO_T}$TAR" >&6; }
7151 else
7152   { echo "$as_me:$LINENO: result: no" >&5
7153 echo "${ECHO_T}no" >&6; }
7154 fi
7155
7156
7157 # Extract the first word of "pwd", so it can be a program name with args.
7158 set dummy pwd; ac_word=$2
7159 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7161 if test "${ac_cv_path_BINPWD+set}" = set; then
7162   echo $ECHO_N "(cached) $ECHO_C" >&6
7163 else
7164   case $BINPWD in
7165   [\\/]* | ?:[\\/]*)
7166   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7167   ;;
7168   *)
7169   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7170 for as_dir in $PATH
7171 do
7172   IFS=$as_save_IFS
7173   test -z "$as_dir" && as_dir=.
7174   for ac_exec_ext in '' $ac_executable_extensions; do
7175   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7176     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7177     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7178     break 2
7179   fi
7180 done
7181 done
7182 IFS=$as_save_IFS
7183
7184   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7185   ;;
7186 esac
7187 fi
7188 BINPWD=$ac_cv_path_BINPWD
7189 if test -n "$BINPWD"; then
7190   { echo "$as_me:$LINENO: result: $BINPWD" >&5
7191 echo "${ECHO_T}$BINPWD" >&6; }
7192 else
7193   { echo "$as_me:$LINENO: result: no" >&5
7194 echo "${ECHO_T}no" >&6; }
7195 fi
7196
7197
7198
7199 # Extract the first word of "Graphviz", so it can be a program name with args.
7200 set dummy Graphviz; ac_word=$2
7201 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7203 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7204   echo $ECHO_N "(cached) $ECHO_C" >&6
7205 else
7206   case $GRAPHVIZ in
7207   [\\/]* | ?:[\\/]*)
7208   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7209   ;;
7210   *)
7211   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7212 for as_dir in $PATH
7213 do
7214   IFS=$as_save_IFS
7215   test -z "$as_dir" && as_dir=.
7216   for ac_exec_ext in '' $ac_executable_extensions; do
7217   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7218     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7219     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7220     break 2
7221   fi
7222 done
7223 done
7224 IFS=$as_save_IFS
7225
7226   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7227   ;;
7228 esac
7229 fi
7230 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7231 if test -n "$GRAPHVIZ"; then
7232   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7233 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7234 else
7235   { echo "$as_me:$LINENO: result: no" >&5
7236 echo "${ECHO_T}no" >&6; }
7237 fi
7238
7239
7240 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7241
7242 cat >>confdefs.h <<\_ACEOF
7243 #define HAVE_GRAPHVIZ 1
7244 _ACEOF
7245
7246     if test "$llvm_cv_os_type" = "MingW" ; then
7247     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7248   fi
7249
7250 cat >>confdefs.h <<_ACEOF
7251 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7252 _ACEOF
7253
7254 fi
7255 # Extract the first word of "dot", so it can be a program name with args.
7256 set dummy dot; ac_word=$2
7257 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7259 if test "${ac_cv_path_DOT+set}" = set; then
7260   echo $ECHO_N "(cached) $ECHO_C" >&6
7261 else
7262   case $DOT in
7263   [\\/]* | ?:[\\/]*)
7264   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7265   ;;
7266   *)
7267   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7268 for as_dir in $PATH
7269 do
7270   IFS=$as_save_IFS
7271   test -z "$as_dir" && as_dir=.
7272   for ac_exec_ext in '' $ac_executable_extensions; do
7273   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7274     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7275     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7276     break 2
7277   fi
7278 done
7279 done
7280 IFS=$as_save_IFS
7281
7282   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7283   ;;
7284 esac
7285 fi
7286 DOT=$ac_cv_path_DOT
7287 if test -n "$DOT"; then
7288   { echo "$as_me:$LINENO: result: $DOT" >&5
7289 echo "${ECHO_T}$DOT" >&6; }
7290 else
7291   { echo "$as_me:$LINENO: result: no" >&5
7292 echo "${ECHO_T}no" >&6; }
7293 fi
7294
7295
7296 if test "$DOT" != "echo dot" ; then
7297
7298 cat >>confdefs.h <<\_ACEOF
7299 #define HAVE_DOT 1
7300 _ACEOF
7301
7302     if test "$llvm_cv_os_type" = "MingW" ; then
7303     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7304   fi
7305
7306 cat >>confdefs.h <<_ACEOF
7307 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7308 _ACEOF
7309
7310 fi
7311 for ac_prog in gv gsview32
7312 do
7313   # Extract the first word of "$ac_prog", so it can be a program name with args.
7314 set dummy $ac_prog; ac_word=$2
7315 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7317 if test "${ac_cv_path_GV+set}" = set; then
7318   echo $ECHO_N "(cached) $ECHO_C" >&6
7319 else
7320   case $GV in
7321   [\\/]* | ?:[\\/]*)
7322   ac_cv_path_GV="$GV" # Let the user override the test with a path.
7323   ;;
7324   *)
7325   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7326 for as_dir in $PATH
7327 do
7328   IFS=$as_save_IFS
7329   test -z "$as_dir" && as_dir=.
7330   for ac_exec_ext in '' $ac_executable_extensions; do
7331   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7332     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7333     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7334     break 2
7335   fi
7336 done
7337 done
7338 IFS=$as_save_IFS
7339
7340   ;;
7341 esac
7342 fi
7343 GV=$ac_cv_path_GV
7344 if test -n "$GV"; then
7345   { echo "$as_me:$LINENO: result: $GV" >&5
7346 echo "${ECHO_T}$GV" >&6; }
7347 else
7348   { echo "$as_me:$LINENO: result: no" >&5
7349 echo "${ECHO_T}no" >&6; }
7350 fi
7351
7352
7353   test -n "$GV" && break
7354 done
7355 test -n "$GV" || GV="echo gv"
7356
7357 if test "$GV" != "echo gv" ; then
7358
7359 cat >>confdefs.h <<\_ACEOF
7360 #define HAVE_GV 1
7361 _ACEOF
7362
7363     if test "$llvm_cv_os_type" = "MingW" ; then
7364     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7365   fi
7366
7367 cat >>confdefs.h <<_ACEOF
7368 #define LLVM_PATH_GV "$GV${EXEEXT}"
7369 _ACEOF
7370
7371 fi
7372 # Extract the first word of "dotty", so it can be a program name with args.
7373 set dummy dotty; ac_word=$2
7374 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7376 if test "${ac_cv_path_DOTTY+set}" = set; then
7377   echo $ECHO_N "(cached) $ECHO_C" >&6
7378 else
7379   case $DOTTY in
7380   [\\/]* | ?:[\\/]*)
7381   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7382   ;;
7383   *)
7384   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7385 for as_dir in $PATH
7386 do
7387   IFS=$as_save_IFS
7388   test -z "$as_dir" && as_dir=.
7389   for ac_exec_ext in '' $ac_executable_extensions; do
7390   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7391     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7392     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7393     break 2
7394   fi
7395 done
7396 done
7397 IFS=$as_save_IFS
7398
7399   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7400   ;;
7401 esac
7402 fi
7403 DOTTY=$ac_cv_path_DOTTY
7404 if test -n "$DOTTY"; then
7405   { echo "$as_me:$LINENO: result: $DOTTY" >&5
7406 echo "${ECHO_T}$DOTTY" >&6; }
7407 else
7408   { echo "$as_me:$LINENO: result: no" >&5
7409 echo "${ECHO_T}no" >&6; }
7410 fi
7411
7412
7413 if test "$DOTTY" != "echo dotty" ; then
7414
7415 cat >>confdefs.h <<\_ACEOF
7416 #define HAVE_DOTTY 1
7417 _ACEOF
7418
7419     if test "$llvm_cv_os_type" = "MingW" ; then
7420     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7421   fi
7422
7423 cat >>confdefs.h <<_ACEOF
7424 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7425 _ACEOF
7426
7427 fi
7428
7429
7430 # Extract the first word of "perl", so it can be a program name with args.
7431 set dummy perl; ac_word=$2
7432 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7434 if test "${ac_cv_path_PERL+set}" = set; then
7435   echo $ECHO_N "(cached) $ECHO_C" >&6
7436 else
7437   case $PERL in
7438   [\\/]* | ?:[\\/]*)
7439   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7440   ;;
7441   *)
7442   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7443 for as_dir in $PATH
7444 do
7445   IFS=$as_save_IFS
7446   test -z "$as_dir" && as_dir=.
7447   for ac_exec_ext in '' $ac_executable_extensions; do
7448   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7449     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7450     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7451     break 2
7452   fi
7453 done
7454 done
7455 IFS=$as_save_IFS
7456
7457   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7458   ;;
7459 esac
7460 fi
7461 PERL=$ac_cv_path_PERL
7462 if test -n "$PERL"; then
7463   { echo "$as_me:$LINENO: result: $PERL" >&5
7464 echo "${ECHO_T}$PERL" >&6; }
7465 else
7466   { echo "$as_me:$LINENO: result: no" >&5
7467 echo "${ECHO_T}no" >&6; }
7468 fi
7469
7470
7471 if test "$PERL" != "none"; then
7472   { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7473 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7474   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7475     { echo "$as_me:$LINENO: result: yes" >&5
7476 echo "${ECHO_T}yes" >&6; }
7477   else
7478     PERL=none
7479     { echo "$as_me:$LINENO: result: not found" >&5
7480 echo "${ECHO_T}not found" >&6; }
7481   fi
7482 fi
7483
7484
7485 if test x"$PERL" = xnone; then
7486    HAVE_PERL=0
7487
7488    { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7489 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7490    { (exit 1); exit 1; }; }
7491 else
7492    HAVE_PERL=1
7493
7494 fi
7495
7496 # Find a good install program.  We prefer a C program (faster),
7497 # so one script is as good as another.  But avoid the broken or
7498 # incompatible versions:
7499 # SysV /etc/install, /usr/sbin/install
7500 # SunOS /usr/etc/install
7501 # IRIX /sbin/install
7502 # AIX /bin/install
7503 # AmigaOS /C/install, which installs bootblocks on floppy discs
7504 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7505 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7506 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7507 # OS/2's system install, which has a completely different semantic
7508 # ./install, which can be erroneously created by make from ./install.sh.
7509 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7510 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7511 if test -z "$INSTALL"; then
7512 if test "${ac_cv_path_install+set}" = set; then
7513   echo $ECHO_N "(cached) $ECHO_C" >&6
7514 else
7515   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7516 for as_dir in $PATH
7517 do
7518   IFS=$as_save_IFS
7519   test -z "$as_dir" && as_dir=.
7520   # Account for people who put trailing slashes in PATH elements.
7521 case $as_dir/ in
7522   ./ | .// | /cC/* | \
7523   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7524   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7525   /usr/ucb/* ) ;;
7526   *)
7527     # OSF1 and SCO ODT 3.0 have their own names for install.
7528     # Don't use installbsd from OSF since it installs stuff as root
7529     # by default.
7530     for ac_prog in ginstall scoinst install; do
7531       for ac_exec_ext in '' $ac_executable_extensions; do
7532         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7533           if test $ac_prog = install &&
7534             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7535             # AIX install.  It has an incompatible calling convention.
7536             :
7537           elif test $ac_prog = install &&
7538             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7539             # program-specific install script used by HP pwplus--don't use.
7540             :
7541           else
7542             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7543             break 3
7544           fi
7545         fi
7546       done
7547     done
7548     ;;
7549 esac
7550 done
7551 IFS=$as_save_IFS
7552
7553
7554 fi
7555   if test "${ac_cv_path_install+set}" = set; then
7556     INSTALL=$ac_cv_path_install
7557   else
7558     # As a last resort, use the slow shell script.  Don't cache a
7559     # value for INSTALL within a source directory, because that will
7560     # break other packages using the cache if that directory is
7561     # removed, or if the value is a relative name.
7562     INSTALL=$ac_install_sh
7563   fi
7564 fi
7565 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7566 echo "${ECHO_T}$INSTALL" >&6; }
7567
7568 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7569 # It thinks the first close brace ends the variable substitution.
7570 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7571
7572 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7573
7574 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7575
7576
7577 # Extract the first word of "bzip2", so it can be a program name with args.
7578 set dummy bzip2; ac_word=$2
7579 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7581 if test "${ac_cv_path_BZIP2+set}" = set; then
7582   echo $ECHO_N "(cached) $ECHO_C" >&6
7583 else
7584   case $BZIP2 in
7585   [\\/]* | ?:[\\/]*)
7586   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7587   ;;
7588   *)
7589   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7590 for as_dir in $PATH
7591 do
7592   IFS=$as_save_IFS
7593   test -z "$as_dir" && as_dir=.
7594   for ac_exec_ext in '' $ac_executable_extensions; do
7595   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7596     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7597     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7598     break 2
7599   fi
7600 done
7601 done
7602 IFS=$as_save_IFS
7603
7604   test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="echo "Skipped: bzip2 not found""
7605   ;;
7606 esac
7607 fi
7608 BZIP2=$ac_cv_path_BZIP2
7609 if test -n "$BZIP2"; then
7610   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7611 echo "${ECHO_T}$BZIP2" >&6; }
7612 else
7613   { echo "$as_me:$LINENO: result: no" >&5
7614 echo "${ECHO_T}no" >&6; }
7615 fi
7616
7617
7618 # Extract the first word of "doxygen", so it can be a program name with args.
7619 set dummy doxygen; ac_word=$2
7620 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7622 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7623   echo $ECHO_N "(cached) $ECHO_C" >&6
7624 else
7625   case $DOXYGEN in
7626   [\\/]* | ?:[\\/]*)
7627   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7628   ;;
7629   *)
7630   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7631 for as_dir in $PATH
7632 do
7633   IFS=$as_save_IFS
7634   test -z "$as_dir" && as_dir=.
7635   for ac_exec_ext in '' $ac_executable_extensions; do
7636   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7637     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7638     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7639     break 2
7640   fi
7641 done
7642 done
7643 IFS=$as_save_IFS
7644
7645   test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="echo "Skipped: doxygen not found""
7646   ;;
7647 esac
7648 fi
7649 DOXYGEN=$ac_cv_path_DOXYGEN
7650 if test -n "$DOXYGEN"; then
7651   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7652 echo "${ECHO_T}$DOXYGEN" >&6; }
7653 else
7654   { echo "$as_me:$LINENO: result: no" >&5
7655 echo "${ECHO_T}no" >&6; }
7656 fi
7657
7658
7659 # Extract the first word of "groff", so it can be a program name with args.
7660 set dummy groff; ac_word=$2
7661 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7663 if test "${ac_cv_path_GROFF+set}" = set; then
7664   echo $ECHO_N "(cached) $ECHO_C" >&6
7665 else
7666   case $GROFF in
7667   [\\/]* | ?:[\\/]*)
7668   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7669   ;;
7670   *)
7671   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7672 for as_dir in $PATH
7673 do
7674   IFS=$as_save_IFS
7675   test -z "$as_dir" && as_dir=.
7676   for ac_exec_ext in '' $ac_executable_extensions; do
7677   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7678     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7679     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7680     break 2
7681   fi
7682 done
7683 done
7684 IFS=$as_save_IFS
7685
7686   test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="echo "Skipped: groff not found""
7687   ;;
7688 esac
7689 fi
7690 GROFF=$ac_cv_path_GROFF
7691 if test -n "$GROFF"; then
7692   { echo "$as_me:$LINENO: result: $GROFF" >&5
7693 echo "${ECHO_T}$GROFF" >&6; }
7694 else
7695   { echo "$as_me:$LINENO: result: no" >&5
7696 echo "${ECHO_T}no" >&6; }
7697 fi
7698
7699
7700 # Extract the first word of "gzip", so it can be a program name with args.
7701 set dummy gzip; ac_word=$2
7702 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7704 if test "${ac_cv_path_GZIP+set}" = set; then
7705   echo $ECHO_N "(cached) $ECHO_C" >&6
7706 else
7707   case $GZIP in
7708   [\\/]* | ?:[\\/]*)
7709   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7710   ;;
7711   *)
7712   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7713 for as_dir in $PATH
7714 do
7715   IFS=$as_save_IFS
7716   test -z "$as_dir" && as_dir=.
7717   for ac_exec_ext in '' $ac_executable_extensions; do
7718   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7719     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7720     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7721     break 2
7722   fi
7723 done
7724 done
7725 IFS=$as_save_IFS
7726
7727   test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo "Skipped: gzip not found""
7728   ;;
7729 esac
7730 fi
7731 GZIP=$ac_cv_path_GZIP
7732 if test -n "$GZIP"; then
7733   { echo "$as_me:$LINENO: result: $GZIP" >&5
7734 echo "${ECHO_T}$GZIP" >&6; }
7735 else
7736   { echo "$as_me:$LINENO: result: no" >&5
7737 echo "${ECHO_T}no" >&6; }
7738 fi
7739
7740
7741 # Extract the first word of "pod2html", so it can be a program name with args.
7742 set dummy pod2html; ac_word=$2
7743 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7745 if test "${ac_cv_path_POD2HTML+set}" = set; then
7746   echo $ECHO_N "(cached) $ECHO_C" >&6
7747 else
7748   case $POD2HTML in
7749   [\\/]* | ?:[\\/]*)
7750   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7751   ;;
7752   *)
7753   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7754 for as_dir in $PATH
7755 do
7756   IFS=$as_save_IFS
7757   test -z "$as_dir" && as_dir=.
7758   for ac_exec_ext in '' $ac_executable_extensions; do
7759   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7760     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7761     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7762     break 2
7763   fi
7764 done
7765 done
7766 IFS=$as_save_IFS
7767
7768   test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="echo "Skipped: pod2html not found""
7769   ;;
7770 esac
7771 fi
7772 POD2HTML=$ac_cv_path_POD2HTML
7773 if test -n "$POD2HTML"; then
7774   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7775 echo "${ECHO_T}$POD2HTML" >&6; }
7776 else
7777   { echo "$as_me:$LINENO: result: no" >&5
7778 echo "${ECHO_T}no" >&6; }
7779 fi
7780
7781
7782 # Extract the first word of "pod2man", so it can be a program name with args.
7783 set dummy pod2man; ac_word=$2
7784 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7786 if test "${ac_cv_path_POD2MAN+set}" = set; then
7787   echo $ECHO_N "(cached) $ECHO_C" >&6
7788 else
7789   case $POD2MAN in
7790   [\\/]* | ?:[\\/]*)
7791   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7792   ;;
7793   *)
7794   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7795 for as_dir in $PATH
7796 do
7797   IFS=$as_save_IFS
7798   test -z "$as_dir" && as_dir=.
7799   for ac_exec_ext in '' $ac_executable_extensions; do
7800   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7801     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7802     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7803     break 2
7804   fi
7805 done
7806 done
7807 IFS=$as_save_IFS
7808
7809   test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="echo "Skipped: pod2man not found""
7810   ;;
7811 esac
7812 fi
7813 POD2MAN=$ac_cv_path_POD2MAN
7814 if test -n "$POD2MAN"; then
7815   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7816 echo "${ECHO_T}$POD2MAN" >&6; }
7817 else
7818   { echo "$as_me:$LINENO: result: no" >&5
7819 echo "${ECHO_T}no" >&6; }
7820 fi
7821
7822
7823 # Extract the first word of "runtest", so it can be a program name with args.
7824 set dummy runtest; ac_word=$2
7825 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7827 if test "${ac_cv_path_RUNTEST+set}" = set; then
7828   echo $ECHO_N "(cached) $ECHO_C" >&6
7829 else
7830   case $RUNTEST in
7831   [\\/]* | ?:[\\/]*)
7832   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7833   ;;
7834   *)
7835   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7836 for as_dir in $PATH
7837 do
7838   IFS=$as_save_IFS
7839   test -z "$as_dir" && as_dir=.
7840   for ac_exec_ext in '' $ac_executable_extensions; do
7841   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7842     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7843     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7844     break 2
7845   fi
7846 done
7847 done
7848 IFS=$as_save_IFS
7849
7850   test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="echo "Skipped: runtest not found""
7851   ;;
7852 esac
7853 fi
7854 RUNTEST=$ac_cv_path_RUNTEST
7855 if test -n "$RUNTEST"; then
7856   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7857 echo "${ECHO_T}$RUNTEST" >&6; }
7858 else
7859   { echo "$as_me:$LINENO: result: no" >&5
7860 echo "${ECHO_T}no" >&6; }
7861 fi
7862
7863
7864
7865 no_itcl=true
7866 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7867 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7868
7869 # Check whether --with-tclinclude was given.
7870 if test "${with_tclinclude+set}" = set; then
7871   withval=$with_tclinclude; with_tclinclude=${withval}
7872 else
7873   with_tclinclude=''
7874 fi
7875
7876 if test "${ac_cv_path_tclsh+set}" = set; then
7877   echo $ECHO_N "(cached) $ECHO_C" >&6
7878 else
7879
7880 if test x"${with_tclinclude}" != x ; then
7881   if test -f ${with_tclinclude}/tclsh ; then
7882     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7883   elif test -f ${with_tclinclude}/src/tclsh ; then
7884     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7885   else
7886     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7887 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7888    { (exit 1); exit 1; }; }
7889   fi
7890 fi
7891
7892 if test x"${ac_cv_path_tclsh}" = x ; then
7893   { echo "$as_me:$LINENO: result: none" >&5
7894 echo "${ECHO_T}none" >&6; }
7895   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
7896 do
7897   # Extract the first word of "$ac_prog", so it can be a program name with args.
7898 set dummy $ac_prog; ac_word=$2
7899 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7901 if test "${ac_cv_path_TCLSH+set}" = set; then
7902   echo $ECHO_N "(cached) $ECHO_C" >&6
7903 else
7904   case $TCLSH in
7905   [\\/]* | ?:[\\/]*)
7906   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7907   ;;
7908   *)
7909   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7910 for as_dir in $PATH
7911 do
7912   IFS=$as_save_IFS
7913   test -z "$as_dir" && as_dir=.
7914   for ac_exec_ext in '' $ac_executable_extensions; do
7915   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7916     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7917     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7918     break 2
7919   fi
7920 done
7921 done
7922 IFS=$as_save_IFS
7923
7924   ;;
7925 esac
7926 fi
7927 TCLSH=$ac_cv_path_TCLSH
7928 if test -n "$TCLSH"; then
7929   { echo "$as_me:$LINENO: result: $TCLSH" >&5
7930 echo "${ECHO_T}$TCLSH" >&6; }
7931 else
7932   { echo "$as_me:$LINENO: result: no" >&5
7933 echo "${ECHO_T}no" >&6; }
7934 fi
7935
7936
7937   test -n "$TCLSH" && break
7938 done
7939
7940   if test x"${TCLSH}" = x ; then
7941     ac_cv_path_tclsh='';
7942   else
7943     ac_cv_path_tclsh="${TCLSH}";
7944   fi
7945 else
7946   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7947 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7948   TCLSH="${ac_cv_path_tclsh}"
7949
7950 fi
7951
7952 fi
7953
7954 # Extract the first word of "zip", so it can be a program name with args.
7955 set dummy zip; ac_word=$2
7956 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7958 if test "${ac_cv_path_ZIP+set}" = set; then
7959   echo $ECHO_N "(cached) $ECHO_C" >&6
7960 else
7961   case $ZIP in
7962   [\\/]* | ?:[\\/]*)
7963   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7964   ;;
7965   *)
7966   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7967 for as_dir in $PATH
7968 do
7969   IFS=$as_save_IFS
7970   test -z "$as_dir" && as_dir=.
7971   for ac_exec_ext in '' $ac_executable_extensions; do
7972   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7973     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7974     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7975     break 2
7976   fi
7977 done
7978 done
7979 IFS=$as_save_IFS
7980
7981   test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found""
7982   ;;
7983 esac
7984 fi
7985 ZIP=$ac_cv_path_ZIP
7986 if test -n "$ZIP"; then
7987   { echo "$as_me:$LINENO: result: $ZIP" >&5
7988 echo "${ECHO_T}$ZIP" >&6; }
7989 else
7990   { echo "$as_me:$LINENO: result: no" >&5
7991 echo "${ECHO_T}no" >&6; }
7992 fi
7993
7994
7995 # Extract the first word of "ocamlc", so it can be a program name with args.
7996 set dummy ocamlc; ac_word=$2
7997 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7999 if test "${ac_cv_path_OCAMLC+set}" = set; then
8000   echo $ECHO_N "(cached) $ECHO_C" >&6
8001 else
8002   case $OCAMLC in
8003   [\\/]* | ?:[\\/]*)
8004   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8005   ;;
8006   *)
8007   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8008 for as_dir in $PATH
8009 do
8010   IFS=$as_save_IFS
8011   test -z "$as_dir" && as_dir=.
8012   for ac_exec_ext in '' $ac_executable_extensions; do
8013   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8014     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8015     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8016     break 2
8017   fi
8018 done
8019 done
8020 IFS=$as_save_IFS
8021
8022   test -z "$ac_cv_path_OCAMLC" && ac_cv_path_OCAMLC="echo "Skipped: ocamlc not found""
8023   ;;
8024 esac
8025 fi
8026 OCAMLC=$ac_cv_path_OCAMLC
8027 if test -n "$OCAMLC"; then
8028   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8029 echo "${ECHO_T}$OCAMLC" >&6; }
8030 else
8031   { echo "$as_me:$LINENO: result: no" >&5
8032 echo "${ECHO_T}no" >&6; }
8033 fi
8034
8035
8036 # Extract the first word of "ocamlopt", so it can be a program name with args.
8037 set dummy ocamlopt; ac_word=$2
8038 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8040 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8041   echo $ECHO_N "(cached) $ECHO_C" >&6
8042 else
8043   case $OCAMLOPT in
8044   [\\/]* | ?:[\\/]*)
8045   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8046   ;;
8047   *)
8048   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8049 for as_dir in $PATH
8050 do
8051   IFS=$as_save_IFS
8052   test -z "$as_dir" && as_dir=.
8053   for ac_exec_ext in '' $ac_executable_extensions; do
8054   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8055     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8056     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8057     break 2
8058   fi
8059 done
8060 done
8061 IFS=$as_save_IFS
8062
8063   test -z "$ac_cv_path_OCAMLOPT" && ac_cv_path_OCAMLOPT="echo "Skipped: ocamlopt not found""
8064   ;;
8065 esac
8066 fi
8067 OCAMLOPT=$ac_cv_path_OCAMLOPT
8068 if test -n "$OCAMLOPT"; then
8069   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8070 echo "${ECHO_T}$OCAMLOPT" >&6; }
8071 else
8072   { echo "$as_me:$LINENO: result: no" >&5
8073 echo "${ECHO_T}no" >&6; }
8074 fi
8075
8076
8077 # Extract the first word of "ocamldep", so it can be a program name with args.
8078 set dummy ocamldep; ac_word=$2
8079 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8081 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8082   echo $ECHO_N "(cached) $ECHO_C" >&6
8083 else
8084   case $OCAMLDEP in
8085   [\\/]* | ?:[\\/]*)
8086   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8087   ;;
8088   *)
8089   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8090 for as_dir in $PATH
8091 do
8092   IFS=$as_save_IFS
8093   test -z "$as_dir" && as_dir=.
8094   for ac_exec_ext in '' $ac_executable_extensions; do
8095   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8096     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8097     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8098     break 2
8099   fi
8100 done
8101 done
8102 IFS=$as_save_IFS
8103
8104   test -z "$ac_cv_path_OCAMLDEP" && ac_cv_path_OCAMLDEP="echo "Skipped: ocamldep not found""
8105   ;;
8106 esac
8107 fi
8108 OCAMLDEP=$ac_cv_path_OCAMLDEP
8109 if test -n "$OCAMLDEP"; then
8110   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8111 echo "${ECHO_T}$OCAMLDEP" >&6; }
8112 else
8113   { echo "$as_me:$LINENO: result: no" >&5
8114 echo "${ECHO_T}no" >&6; }
8115 fi
8116
8117
8118
8119 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8120 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8121 if test "${llvm_cv_link_use_r+set}" = set; then
8122   echo $ECHO_N "(cached) $ECHO_C" >&6
8123 else
8124    ac_ext=c
8125 ac_cpp='$CPP $CPPFLAGS'
8126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8129
8130   oldcflags="$CFLAGS"
8131   CFLAGS="$CFLAGS -Wl,-R."
8132   cat >conftest.$ac_ext <<_ACEOF
8133 /* confdefs.h.  */
8134 _ACEOF
8135 cat confdefs.h >>conftest.$ac_ext
8136 cat >>conftest.$ac_ext <<_ACEOF
8137 /* end confdefs.h.  */
8138
8139 int
8140 main ()
8141 {
8142 int main() { return 0; }
8143   ;
8144   return 0;
8145 }
8146 _ACEOF
8147 rm -f conftest.$ac_objext conftest$ac_exeext
8148 if { (ac_try="$ac_link"
8149 case "(($ac_try" in
8150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8151   *) ac_try_echo=$ac_try;;
8152 esac
8153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8154   (eval "$ac_link") 2>conftest.er1
8155   ac_status=$?
8156   grep -v '^ *+' conftest.er1 >conftest.err
8157   rm -f conftest.er1
8158   cat conftest.err >&5
8159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8160   (exit $ac_status); } &&
8161          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8162   { (case "(($ac_try" in
8163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8164   *) ac_try_echo=$ac_try;;
8165 esac
8166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8167   (eval "$ac_try") 2>&5
8168   ac_status=$?
8169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8170   (exit $ac_status); }; } &&
8171          { ac_try='test -s conftest$ac_exeext'
8172   { (case "(($ac_try" in
8173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8174   *) ac_try_echo=$ac_try;;
8175 esac
8176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8177   (eval "$ac_try") 2>&5
8178   ac_status=$?
8179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8180   (exit $ac_status); }; }; then
8181   llvm_cv_link_use_r=yes
8182 else
8183   echo "$as_me: failed program was:" >&5
8184 sed 's/^/| /' conftest.$ac_ext >&5
8185
8186         llvm_cv_link_use_r=no
8187 fi
8188
8189 rm -f core conftest.err conftest.$ac_objext \
8190       conftest$ac_exeext conftest.$ac_ext
8191   CFLAGS="$oldcflags"
8192   ac_ext=c
8193 ac_cpp='$CPP $CPPFLAGS'
8194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8197
8198
8199 fi
8200 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8201 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8202 if test "$llvm_cv_link_use_r" = yes ; then
8203
8204 cat >>confdefs.h <<\_ACEOF
8205 #define HAVE_LINK_R 1
8206 _ACEOF
8207
8208   fi
8209
8210
8211
8212
8213 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8214 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8215 if test "${ac_cv_c_const+set}" = set; then
8216   echo $ECHO_N "(cached) $ECHO_C" >&6
8217 else
8218   cat >conftest.$ac_ext <<_ACEOF
8219 /* confdefs.h.  */
8220 _ACEOF
8221 cat confdefs.h >>conftest.$ac_ext
8222 cat >>conftest.$ac_ext <<_ACEOF
8223 /* end confdefs.h.  */
8224
8225 int
8226 main ()
8227 {
8228 /* FIXME: Include the comments suggested by Paul. */
8229 #ifndef __cplusplus
8230   /* Ultrix mips cc rejects this.  */
8231   typedef int charset[2];
8232   const charset x;
8233   /* SunOS 4.1.1 cc rejects this.  */
8234   char const *const *ccp;
8235   char **p;
8236   /* NEC SVR4.0.2 mips cc rejects this.  */
8237   struct point {int x, y;};
8238   static struct point const zero = {0,0};
8239   /* AIX XL C 1.02.0.0 rejects this.
8240      It does not let you subtract one const X* pointer from another in
8241      an arm of an if-expression whose if-part is not a constant
8242      expression */
8243   const char *g = "string";
8244   ccp = &g + (g ? g-g : 0);
8245   /* HPUX 7.0 cc rejects these. */
8246   ++ccp;
8247   p = (char**) ccp;
8248   ccp = (char const *const *) p;
8249   { /* SCO 3.2v4 cc rejects this.  */
8250     char *t;
8251     char const *s = 0 ? (char *) 0 : (char const *) 0;
8252
8253     *t++ = 0;
8254     if (s) return 0;
8255   }
8256   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8257     int x[] = {25, 17};
8258     const int *foo = &x[0];
8259     ++foo;
8260   }
8261   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8262     typedef const int *iptr;
8263     iptr p = 0;
8264     ++p;
8265   }
8266   { /* AIX XL C 1.02.0.0 rejects this saying
8267        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8268     struct s { int j; const int *ap[3]; };
8269     struct s *b; b->j = 5;
8270   }
8271   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8272     const int foo = 10;
8273     if (!foo) return 0;
8274   }
8275   return !x[0] && !zero.x;
8276 #endif
8277
8278   ;
8279   return 0;
8280 }
8281 _ACEOF
8282 rm -f conftest.$ac_objext
8283 if { (ac_try="$ac_compile"
8284 case "(($ac_try" in
8285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8286   *) ac_try_echo=$ac_try;;
8287 esac
8288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8289   (eval "$ac_compile") 2>conftest.er1
8290   ac_status=$?
8291   grep -v '^ *+' conftest.er1 >conftest.err
8292   rm -f conftest.er1
8293   cat conftest.err >&5
8294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8295   (exit $ac_status); } &&
8296          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8297   { (case "(($ac_try" in
8298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8299   *) ac_try_echo=$ac_try;;
8300 esac
8301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8302   (eval "$ac_try") 2>&5
8303   ac_status=$?
8304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8305   (exit $ac_status); }; } &&
8306          { ac_try='test -s conftest.$ac_objext'
8307   { (case "(($ac_try" in
8308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8309   *) ac_try_echo=$ac_try;;
8310 esac
8311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8312   (eval "$ac_try") 2>&5
8313   ac_status=$?
8314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8315   (exit $ac_status); }; }; then
8316   ac_cv_c_const=yes
8317 else
8318   echo "$as_me: failed program was:" >&5
8319 sed 's/^/| /' conftest.$ac_ext >&5
8320
8321         ac_cv_c_const=no
8322 fi
8323
8324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8325 fi
8326 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8327 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8328 if test $ac_cv_c_const = no; then
8329
8330 cat >>confdefs.h <<\_ACEOF
8331 #define const
8332 _ACEOF
8333
8334 fi
8335
8336
8337
8338
8339
8340
8341 ac_header_dirent=no
8342 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8343   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8344 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8345 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8346 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8347   echo $ECHO_N "(cached) $ECHO_C" >&6
8348 else
8349   cat >conftest.$ac_ext <<_ACEOF
8350 /* confdefs.h.  */
8351 _ACEOF
8352 cat confdefs.h >>conftest.$ac_ext
8353 cat >>conftest.$ac_ext <<_ACEOF
8354 /* end confdefs.h.  */
8355 #include <sys/types.h>
8356 #include <$ac_hdr>
8357
8358 int
8359 main ()
8360 {
8361 if ((DIR *) 0)
8362 return 0;
8363   ;
8364   return 0;
8365 }
8366 _ACEOF
8367 rm -f conftest.$ac_objext
8368 if { (ac_try="$ac_compile"
8369 case "(($ac_try" in
8370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8371   *) ac_try_echo=$ac_try;;
8372 esac
8373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8374   (eval "$ac_compile") 2>conftest.er1
8375   ac_status=$?
8376   grep -v '^ *+' conftest.er1 >conftest.err
8377   rm -f conftest.er1
8378   cat conftest.err >&5
8379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380   (exit $ac_status); } &&
8381          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8382   { (case "(($ac_try" in
8383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8384   *) ac_try_echo=$ac_try;;
8385 esac
8386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8387   (eval "$ac_try") 2>&5
8388   ac_status=$?
8389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390   (exit $ac_status); }; } &&
8391          { ac_try='test -s conftest.$ac_objext'
8392   { (case "(($ac_try" in
8393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8394   *) ac_try_echo=$ac_try;;
8395 esac
8396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8397   (eval "$ac_try") 2>&5
8398   ac_status=$?
8399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8400   (exit $ac_status); }; }; then
8401   eval "$as_ac_Header=yes"
8402 else
8403   echo "$as_me: failed program was:" >&5
8404 sed 's/^/| /' conftest.$ac_ext >&5
8405
8406         eval "$as_ac_Header=no"
8407 fi
8408
8409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8410 fi
8411 ac_res=`eval echo '${'$as_ac_Header'}'`
8412                { echo "$as_me:$LINENO: result: $ac_res" >&5
8413 echo "${ECHO_T}$ac_res" >&6; }
8414 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8415   cat >>confdefs.h <<_ACEOF
8416 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8417 _ACEOF
8418
8419 ac_header_dirent=$ac_hdr; break
8420 fi
8421
8422 done
8423 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8424 if test $ac_header_dirent = dirent.h; then
8425   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8426 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8427 if test "${ac_cv_search_opendir+set}" = set; then
8428   echo $ECHO_N "(cached) $ECHO_C" >&6
8429 else
8430   ac_func_search_save_LIBS=$LIBS
8431 cat >conftest.$ac_ext <<_ACEOF
8432 /* confdefs.h.  */
8433 _ACEOF
8434 cat confdefs.h >>conftest.$ac_ext
8435 cat >>conftest.$ac_ext <<_ACEOF
8436 /* end confdefs.h.  */
8437
8438 /* Override any GCC internal prototype to avoid an error.
8439    Use char because int might match the return type of a GCC
8440    builtin and then its argument prototype would still apply.  */
8441 #ifdef __cplusplus
8442 extern "C"
8443 #endif
8444 char opendir ();
8445 int
8446 main ()
8447 {
8448 return opendir ();
8449   ;
8450   return 0;
8451 }
8452 _ACEOF
8453 for ac_lib in '' dir; do
8454   if test -z "$ac_lib"; then
8455     ac_res="none required"
8456   else
8457     ac_res=-l$ac_lib
8458     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8459   fi
8460   rm -f conftest.$ac_objext conftest$ac_exeext
8461 if { (ac_try="$ac_link"
8462 case "(($ac_try" in
8463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8464   *) ac_try_echo=$ac_try;;
8465 esac
8466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8467   (eval "$ac_link") 2>conftest.er1
8468   ac_status=$?
8469   grep -v '^ *+' conftest.er1 >conftest.err
8470   rm -f conftest.er1
8471   cat conftest.err >&5
8472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8473   (exit $ac_status); } &&
8474          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8475   { (case "(($ac_try" in
8476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8477   *) ac_try_echo=$ac_try;;
8478 esac
8479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8480   (eval "$ac_try") 2>&5
8481   ac_status=$?
8482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483   (exit $ac_status); }; } &&
8484          { ac_try='test -s conftest$ac_exeext'
8485   { (case "(($ac_try" in
8486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8487   *) ac_try_echo=$ac_try;;
8488 esac
8489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8490   (eval "$ac_try") 2>&5
8491   ac_status=$?
8492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493   (exit $ac_status); }; }; then
8494   ac_cv_search_opendir=$ac_res
8495 else
8496   echo "$as_me: failed program was:" >&5
8497 sed 's/^/| /' conftest.$ac_ext >&5
8498
8499
8500 fi
8501
8502 rm -f core conftest.err conftest.$ac_objext \
8503       conftest$ac_exeext
8504   if test "${ac_cv_search_opendir+set}" = set; then
8505   break
8506 fi
8507 done
8508 if test "${ac_cv_search_opendir+set}" = set; then
8509   :
8510 else
8511   ac_cv_search_opendir=no
8512 fi
8513 rm conftest.$ac_ext
8514 LIBS=$ac_func_search_save_LIBS
8515 fi
8516 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8517 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8518 ac_res=$ac_cv_search_opendir
8519 if test "$ac_res" != no; then
8520   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8521
8522 fi
8523
8524 else
8525   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8526 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8527 if test "${ac_cv_search_opendir+set}" = set; then
8528   echo $ECHO_N "(cached) $ECHO_C" >&6
8529 else
8530   ac_func_search_save_LIBS=$LIBS
8531 cat >conftest.$ac_ext <<_ACEOF
8532 /* confdefs.h.  */
8533 _ACEOF
8534 cat confdefs.h >>conftest.$ac_ext
8535 cat >>conftest.$ac_ext <<_ACEOF
8536 /* end confdefs.h.  */
8537
8538 /* Override any GCC internal prototype to avoid an error.
8539    Use char because int might match the return type of a GCC
8540    builtin and then its argument prototype would still apply.  */
8541 #ifdef __cplusplus
8542 extern "C"
8543 #endif
8544 char opendir ();
8545 int
8546 main ()
8547 {
8548 return opendir ();
8549   ;
8550   return 0;
8551 }
8552 _ACEOF
8553 for ac_lib in '' x; do
8554   if test -z "$ac_lib"; then
8555     ac_res="none required"
8556   else
8557     ac_res=-l$ac_lib
8558     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8559   fi
8560   rm -f conftest.$ac_objext conftest$ac_exeext
8561 if { (ac_try="$ac_link"
8562 case "(($ac_try" in
8563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8564   *) ac_try_echo=$ac_try;;
8565 esac
8566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8567   (eval "$ac_link") 2>conftest.er1
8568   ac_status=$?
8569   grep -v '^ *+' conftest.er1 >conftest.err
8570   rm -f conftest.er1
8571   cat conftest.err >&5
8572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8573   (exit $ac_status); } &&
8574          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8575   { (case "(($ac_try" in
8576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8577   *) ac_try_echo=$ac_try;;
8578 esac
8579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8580   (eval "$ac_try") 2>&5
8581   ac_status=$?
8582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8583   (exit $ac_status); }; } &&
8584          { ac_try='test -s conftest$ac_exeext'
8585   { (case "(($ac_try" in
8586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8587   *) ac_try_echo=$ac_try;;
8588 esac
8589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8590   (eval "$ac_try") 2>&5
8591   ac_status=$?
8592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593   (exit $ac_status); }; }; then
8594   ac_cv_search_opendir=$ac_res
8595 else
8596   echo "$as_me: failed program was:" >&5
8597 sed 's/^/| /' conftest.$ac_ext >&5
8598
8599
8600 fi
8601
8602 rm -f core conftest.err conftest.$ac_objext \
8603       conftest$ac_exeext
8604   if test "${ac_cv_search_opendir+set}" = set; then
8605   break
8606 fi
8607 done
8608 if test "${ac_cv_search_opendir+set}" = set; then
8609   :
8610 else
8611   ac_cv_search_opendir=no
8612 fi
8613 rm conftest.$ac_ext
8614 LIBS=$ac_func_search_save_LIBS
8615 fi
8616 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8617 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8618 ac_res=$ac_cv_search_opendir
8619 if test "$ac_res" != no; then
8620   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8621
8622 fi
8623
8624 fi
8625
8626
8627 for ac_header in dlfcn.h
8628 do
8629 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8630 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8631   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8632 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8633 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8634   echo $ECHO_N "(cached) $ECHO_C" >&6
8635 fi
8636 ac_res=`eval echo '${'$as_ac_Header'}'`
8637                { echo "$as_me:$LINENO: result: $ac_res" >&5
8638 echo "${ECHO_T}$ac_res" >&6; }
8639 else
8640   # Is the header compilable?
8641 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8642 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8643 cat >conftest.$ac_ext <<_ACEOF
8644 /* confdefs.h.  */
8645 _ACEOF
8646 cat confdefs.h >>conftest.$ac_ext
8647 cat >>conftest.$ac_ext <<_ACEOF
8648 /* end confdefs.h.  */
8649 $ac_includes_default
8650 #include <$ac_header>
8651 _ACEOF
8652 rm -f conftest.$ac_objext
8653 if { (ac_try="$ac_compile"
8654 case "(($ac_try" in
8655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8656   *) ac_try_echo=$ac_try;;
8657 esac
8658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8659   (eval "$ac_compile") 2>conftest.er1
8660   ac_status=$?
8661   grep -v '^ *+' conftest.er1 >conftest.err
8662   rm -f conftest.er1
8663   cat conftest.err >&5
8664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8665   (exit $ac_status); } &&
8666          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8667   { (case "(($ac_try" in
8668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8669   *) ac_try_echo=$ac_try;;
8670 esac
8671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8672   (eval "$ac_try") 2>&5
8673   ac_status=$?
8674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8675   (exit $ac_status); }; } &&
8676          { ac_try='test -s conftest.$ac_objext'
8677   { (case "(($ac_try" in
8678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8679   *) ac_try_echo=$ac_try;;
8680 esac
8681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8682   (eval "$ac_try") 2>&5
8683   ac_status=$?
8684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8685   (exit $ac_status); }; }; then
8686   ac_header_compiler=yes
8687 else
8688   echo "$as_me: failed program was:" >&5
8689 sed 's/^/| /' conftest.$ac_ext >&5
8690
8691         ac_header_compiler=no
8692 fi
8693
8694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8695 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8696 echo "${ECHO_T}$ac_header_compiler" >&6; }
8697
8698 # Is the header present?
8699 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8700 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8701 cat >conftest.$ac_ext <<_ACEOF
8702 /* confdefs.h.  */
8703 _ACEOF
8704 cat confdefs.h >>conftest.$ac_ext
8705 cat >>conftest.$ac_ext <<_ACEOF
8706 /* end confdefs.h.  */
8707 #include <$ac_header>
8708 _ACEOF
8709 if { (ac_try="$ac_cpp conftest.$ac_ext"
8710 case "(($ac_try" in
8711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8712   *) ac_try_echo=$ac_try;;
8713 esac
8714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8715   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8716   ac_status=$?
8717   grep -v '^ *+' conftest.er1 >conftest.err
8718   rm -f conftest.er1
8719   cat conftest.err >&5
8720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8721   (exit $ac_status); } >/dev/null; then
8722   if test -s conftest.err; then
8723     ac_cpp_err=$ac_c_preproc_warn_flag
8724     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8725   else
8726     ac_cpp_err=
8727   fi
8728 else
8729   ac_cpp_err=yes
8730 fi
8731 if test -z "$ac_cpp_err"; then
8732   ac_header_preproc=yes
8733 else
8734   echo "$as_me: failed program was:" >&5
8735 sed 's/^/| /' conftest.$ac_ext >&5
8736
8737   ac_header_preproc=no
8738 fi
8739
8740 rm -f conftest.err conftest.$ac_ext
8741 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8742 echo "${ECHO_T}$ac_header_preproc" >&6; }
8743
8744 # So?  What about this header?
8745 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8746   yes:no: )
8747     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8748 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8749     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8750 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8751     ac_header_preproc=yes
8752     ;;
8753   no:yes:* )
8754     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8755 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8756     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8757 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8758     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8759 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8760     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8761 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8762     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8763 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8764     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8765 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8766     ( cat <<\_ASBOX
8767 ## ----------------------------------- ##
8768 ## Report this to llvmbugs@cs.uiuc.edu ##
8769 ## ----------------------------------- ##
8770 _ASBOX
8771      ) | sed "s/^/$as_me: WARNING:     /" >&2
8772     ;;
8773 esac
8774 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8775 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8776 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8777   echo $ECHO_N "(cached) $ECHO_C" >&6
8778 else
8779   eval "$as_ac_Header=\$ac_header_preproc"
8780 fi
8781 ac_res=`eval echo '${'$as_ac_Header'}'`
8782                { echo "$as_me:$LINENO: result: $ac_res" >&5
8783 echo "${ECHO_T}$ac_res" >&6; }
8784
8785 fi
8786 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8787   cat >>confdefs.h <<_ACEOF
8788 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8789 _ACEOF
8790
8791 fi
8792
8793 done
8794
8795 # Check whether --enable-ltdl-install was given.
8796 if test "${enable_ltdl_install+set}" = set; then
8797   enableval=$enable_ltdl_install;
8798 fi
8799
8800
8801
8802
8803 if test x"${enable_ltdl_install-no}" != xno; then
8804   INSTALL_LTDL_TRUE=
8805   INSTALL_LTDL_FALSE='#'
8806 else
8807   INSTALL_LTDL_TRUE='#'
8808   INSTALL_LTDL_FALSE=
8809 fi
8810
8811
8812
8813 if test x"${enable_ltdl_convenience-no}" != xno; then
8814   CONVENIENCE_LTDL_TRUE=
8815   CONVENIENCE_LTDL_FALSE='#'
8816 else
8817   CONVENIENCE_LTDL_TRUE='#'
8818   CONVENIENCE_LTDL_FALSE=
8819 fi
8820
8821
8822 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8823 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8824 library_names_spec=
8825 libname_spec='lib$name'
8826 soname_spec=
8827 shrext_cmds=".so"
8828 postinstall_cmds=
8829 postuninstall_cmds=
8830 finish_cmds=
8831 finish_eval=
8832 shlibpath_var=
8833 shlibpath_overrides_runpath=unknown
8834 version_type=none
8835 dynamic_linker="$host_os ld.so"
8836 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8837 if test "$GCC" = yes; then
8838   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8839   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8840     # if the path contains ";" then we assume it to be the separator
8841     # otherwise default to the standard path separator (i.e. ":") - it is
8842     # assumed that no part of a normal pathname contains ";" but that should
8843     # okay in the real world where ";" in dirpaths is itself problematic.
8844     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8845   else
8846     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8847   fi
8848 else
8849   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8850 fi
8851 need_lib_prefix=unknown
8852 hardcode_into_libs=no
8853
8854 # when you set need_version to no, make sure it does not cause -set_version
8855 # flags to be left without arguments
8856 need_version=unknown
8857
8858 case $host_os in
8859 aix3*)
8860   version_type=linux
8861   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8862   shlibpath_var=LIBPATH
8863
8864   # AIX 3 has no versioning support, so we append a major version to the name.
8865   soname_spec='${libname}${release}${shared_ext}$major'
8866   ;;
8867
8868 aix4* | aix5*)
8869   version_type=linux
8870   need_lib_prefix=no
8871   need_version=no
8872   hardcode_into_libs=yes
8873   if test "$host_cpu" = ia64; then
8874     # AIX 5 supports IA64
8875     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8876     shlibpath_var=LD_LIBRARY_PATH
8877   else
8878     # With GCC up to 2.95.x, collect2 would create an import file
8879     # for dependence libraries.  The import file would start with
8880     # the line `#! .'.  This would cause the generated library to
8881     # depend on `.', always an invalid library.  This was fixed in
8882     # development snapshots of GCC prior to 3.0.
8883     case $host_os in
8884       aix4 | aix4.[01] | aix4.[01].*)
8885       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8886            echo ' yes '
8887            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8888         :
8889       else
8890         can_build_shared=no
8891       fi
8892       ;;
8893     esac
8894     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8895     # soname into executable. Probably we can add versioning support to
8896     # collect2, so additional links can be useful in future.
8897     if test "$aix_use_runtimelinking" = yes; then
8898       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8899       # instead of lib<name>.a to let people know that these are not
8900       # typical AIX shared libraries.
8901       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8902     else
8903       # We preserve .a as extension for shared libraries through AIX4.2
8904       # and later when we are not doing run time linking.
8905       library_names_spec='${libname}${release}.a $libname.a'
8906       soname_spec='${libname}${release}${shared_ext}$major'
8907     fi
8908     shlibpath_var=LIBPATH
8909   fi
8910   ;;
8911
8912 amigaos*)
8913   library_names_spec='$libname.ixlibrary $libname.a'
8914   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8915   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'
8916   ;;
8917
8918 beos*)
8919   library_names_spec='${libname}${shared_ext}'
8920   dynamic_linker="$host_os ld.so"
8921   shlibpath_var=LIBRARY_PATH
8922   ;;
8923
8924 bsdi[45]*)
8925   version_type=linux
8926   need_version=no
8927   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8928   soname_spec='${libname}${release}${shared_ext}$major'
8929   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8930   shlibpath_var=LD_LIBRARY_PATH
8931   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8932   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8933   # the default ld.so.conf also contains /usr/contrib/lib and
8934   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8935   # libtool to hard-code these into programs
8936   ;;
8937
8938 cygwin* | mingw* | pw32*)
8939   version_type=windows
8940   shrext_cmds=".dll"
8941   need_version=no
8942   need_lib_prefix=no
8943
8944   case $GCC,$host_os in
8945   yes,cygwin* | yes,mingw* | yes,pw32*)
8946     library_names_spec='$libname.dll.a'
8947     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8948     postinstall_cmds='base_file=`basename \${file}`~
8949       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8950       dldir=$destdir/`dirname \$dlpath`~
8951       test -d \$dldir || mkdir -p \$dldir~
8952       $install_prog $dir/$dlname \$dldir/$dlname~
8953       chmod a+x \$dldir/$dlname'
8954     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8955       dlpath=$dir/\$dldll~
8956        $rm \$dlpath'
8957     shlibpath_overrides_runpath=yes
8958
8959     case $host_os in
8960     cygwin*)
8961       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8962       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8963       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8964       ;;
8965     mingw*)
8966       # MinGW DLLs use traditional 'lib' prefix
8967       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8968       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8969       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8970         # It is most probably a Windows format PATH printed by
8971         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8972         # path with ; separators, and with drive letters. We can handle the
8973         # drive letters (cygwin fileutils understands them), so leave them,
8974         # especially as we might pass files found there to a mingw objdump,
8975         # which wouldn't understand a cygwinified path. Ahh.
8976         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8977       else
8978         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8979       fi
8980       ;;
8981     pw32*)
8982       # pw32 DLLs use 'pw' prefix rather than 'lib'
8983       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8984       ;;
8985     esac
8986     ;;
8987
8988   *)
8989     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8990     ;;
8991   esac
8992   dynamic_linker='Win32 ld.exe'
8993   # FIXME: first we should search . and the directory the executable is in
8994   shlibpath_var=PATH
8995   ;;
8996
8997 darwin* | rhapsody*)
8998   dynamic_linker="$host_os dyld"
8999   version_type=darwin
9000   need_lib_prefix=no
9001   need_version=no
9002   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9003   soname_spec='${libname}${release}${major}$shared_ext'
9004   shlibpath_overrides_runpath=yes
9005   shlibpath_var=DYLD_LIBRARY_PATH
9006   shrext_cmds='.dylib'
9007   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9008   if test "$GCC" = yes; then
9009     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"`
9010   else
9011     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9012   fi
9013   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9014   ;;
9015
9016 dgux*)
9017   version_type=linux
9018   need_lib_prefix=no
9019   need_version=no
9020   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9021   soname_spec='${libname}${release}${shared_ext}$major'
9022   shlibpath_var=LD_LIBRARY_PATH
9023   ;;
9024
9025 freebsd1*)
9026   dynamic_linker=no
9027   ;;
9028
9029 kfreebsd*-gnu)
9030   version_type=linux
9031   need_lib_prefix=no
9032   need_version=no
9033   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9034   soname_spec='${libname}${release}${shared_ext}$major'
9035   shlibpath_var=LD_LIBRARY_PATH
9036   shlibpath_overrides_runpath=no
9037   hardcode_into_libs=yes
9038   dynamic_linker='GNU ld.so'
9039   ;;
9040
9041 freebsd* | dragonfly*)
9042   # DragonFly does not have aout.  When/if they implement a new
9043   # versioning mechanism, adjust this.
9044   if test -x /usr/bin/objformat; then
9045     objformat=`/usr/bin/objformat`
9046   else
9047     case $host_os in
9048     freebsd[123]*) objformat=aout ;;
9049     *) objformat=elf ;;
9050     esac
9051   fi
9052   version_type=freebsd-$objformat
9053   case $version_type in
9054     freebsd-elf*)
9055       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9056       need_version=no
9057       need_lib_prefix=no
9058       ;;
9059     freebsd-*)
9060       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9061       need_version=yes
9062       ;;
9063   esac
9064   shlibpath_var=LD_LIBRARY_PATH
9065   case $host_os in
9066   freebsd2*)
9067     shlibpath_overrides_runpath=yes
9068     ;;
9069   freebsd3.[01]* | freebsdelf3.[01]*)
9070     shlibpath_overrides_runpath=yes
9071     hardcode_into_libs=yes
9072     ;;
9073   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9074   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9075     shlibpath_overrides_runpath=no
9076     hardcode_into_libs=yes
9077     ;;
9078   freebsd*) # from 4.6 on
9079     shlibpath_overrides_runpath=yes
9080     hardcode_into_libs=yes
9081     ;;
9082   esac
9083   ;;
9084
9085 gnu*)
9086   version_type=linux
9087   need_lib_prefix=no
9088   need_version=no
9089   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9090   soname_spec='${libname}${release}${shared_ext}$major'
9091   shlibpath_var=LD_LIBRARY_PATH
9092   hardcode_into_libs=yes
9093   ;;
9094
9095 hpux9* | hpux10* | hpux11*)
9096   # Give a soname corresponding to the major version so that dld.sl refuses to
9097   # link against other versions.
9098   version_type=sunos
9099   need_lib_prefix=no
9100   need_version=no
9101   case $host_cpu in
9102   ia64*)
9103     shrext_cmds='.so'
9104     hardcode_into_libs=yes
9105     dynamic_linker="$host_os dld.so"
9106     shlibpath_var=LD_LIBRARY_PATH
9107     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9108     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9109     soname_spec='${libname}${release}${shared_ext}$major'
9110     if test "X$HPUX_IA64_MODE" = X32; then
9111       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9112     else
9113       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9114     fi
9115     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9116     ;;
9117    hppa*64*)
9118      shrext_cmds='.sl'
9119      hardcode_into_libs=yes
9120      dynamic_linker="$host_os dld.sl"
9121      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9122      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9123      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9124      soname_spec='${libname}${release}${shared_ext}$major'
9125      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9126      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9127      ;;
9128    *)
9129     shrext_cmds='.sl'
9130     dynamic_linker="$host_os dld.sl"
9131     shlibpath_var=SHLIB_PATH
9132     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9133     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9134     soname_spec='${libname}${release}${shared_ext}$major'
9135     ;;
9136   esac
9137   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9138   postinstall_cmds='chmod 555 $lib'
9139   ;;
9140
9141 interix3*)
9142   version_type=linux
9143   need_lib_prefix=no
9144   need_version=no
9145   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9146   soname_spec='${libname}${release}${shared_ext}$major'
9147   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9148   shlibpath_var=LD_LIBRARY_PATH
9149   shlibpath_overrides_runpath=no
9150   hardcode_into_libs=yes
9151   ;;
9152
9153 irix5* | irix6* | nonstopux*)
9154   case $host_os in
9155     nonstopux*) version_type=nonstopux ;;
9156     *)
9157         if test "$lt_cv_prog_gnu_ld" = yes; then
9158                 version_type=linux
9159         else
9160                 version_type=irix
9161         fi ;;
9162   esac
9163   need_lib_prefix=no
9164   need_version=no
9165   soname_spec='${libname}${release}${shared_ext}$major'
9166   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9167   case $host_os in
9168   irix5* | nonstopux*)
9169     libsuff= shlibsuff=
9170     ;;
9171   *)
9172     case $LD in # libtool.m4 will add one of these switches to LD
9173     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9174       libsuff= shlibsuff= libmagic=32-bit;;
9175     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9176       libsuff=32 shlibsuff=N32 libmagic=N32;;
9177     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9178       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9179     *) libsuff= shlibsuff= libmagic=never-match;;
9180     esac
9181     ;;
9182   esac
9183   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9184   shlibpath_overrides_runpath=no
9185   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9186   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9187   hardcode_into_libs=yes
9188   ;;
9189
9190 # No shared lib support for Linux oldld, aout, or coff.
9191 linux*oldld* | linux*aout* | linux*coff*)
9192   dynamic_linker=no
9193   ;;
9194
9195 # This must be Linux ELF.
9196 linux*)
9197   version_type=linux
9198   need_lib_prefix=no
9199   need_version=no
9200   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9201   soname_spec='${libname}${release}${shared_ext}$major'
9202   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9203   shlibpath_var=LD_LIBRARY_PATH
9204   shlibpath_overrides_runpath=no
9205   # This implies no fast_install, which is unacceptable.
9206   # Some rework will be needed to allow for fast_install
9207   # before this can be enabled.
9208   hardcode_into_libs=yes
9209
9210   # Append ld.so.conf contents to the search path
9211   if test -f /etc/ld.so.conf; then
9212     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' ' '`
9213     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9214   fi
9215
9216   # We used to test for /lib/ld.so.1 and disable shared libraries on
9217   # powerpc, because MkLinux only supported shared libraries with the
9218   # GNU dynamic linker.  Since this was broken with cross compilers,
9219   # most powerpc-linux boxes support dynamic linking these days and
9220   # people can always --disable-shared, the test was removed, and we
9221   # assume the GNU/Linux dynamic linker is in use.
9222   dynamic_linker='GNU/Linux ld.so'
9223   ;;
9224
9225 knetbsd*-gnu)
9226   version_type=linux
9227   need_lib_prefix=no
9228   need_version=no
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   shlibpath_var=LD_LIBRARY_PATH
9232   shlibpath_overrides_runpath=no
9233   hardcode_into_libs=yes
9234   dynamic_linker='GNU ld.so'
9235   ;;
9236
9237 netbsd*)
9238   version_type=sunos
9239   need_lib_prefix=no
9240   need_version=no
9241   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9242     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9243     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9244     dynamic_linker='NetBSD (a.out) ld.so'
9245   else
9246     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9247     soname_spec='${libname}${release}${shared_ext}$major'
9248     dynamic_linker='NetBSD ld.elf_so'
9249   fi
9250   shlibpath_var=LD_LIBRARY_PATH
9251   shlibpath_overrides_runpath=yes
9252   hardcode_into_libs=yes
9253   ;;
9254
9255 newsos6)
9256   version_type=linux
9257   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9258   shlibpath_var=LD_LIBRARY_PATH
9259   shlibpath_overrides_runpath=yes
9260   ;;
9261
9262 nto-qnx*)
9263   version_type=linux
9264   need_lib_prefix=no
9265   need_version=no
9266   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9267   soname_spec='${libname}${release}${shared_ext}$major'
9268   shlibpath_var=LD_LIBRARY_PATH
9269   shlibpath_overrides_runpath=yes
9270   ;;
9271
9272 openbsd*)
9273   version_type=sunos
9274   sys_lib_dlsearch_path_spec="/usr/lib"
9275   need_lib_prefix=no
9276   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9277   case $host_os in
9278     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9279     *)                         need_version=no  ;;
9280   esac
9281   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9282   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9283   shlibpath_var=LD_LIBRARY_PATH
9284   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9285     case $host_os in
9286       openbsd2.[89] | openbsd2.[89].*)
9287         shlibpath_overrides_runpath=no
9288         ;;
9289       *)
9290         shlibpath_overrides_runpath=yes
9291         ;;
9292       esac
9293   else
9294     shlibpath_overrides_runpath=yes
9295   fi
9296   ;;
9297
9298 os2*)
9299   libname_spec='$name'
9300   shrext_cmds=".dll"
9301   need_lib_prefix=no
9302   library_names_spec='$libname${shared_ext} $libname.a'
9303   dynamic_linker='OS/2 ld.exe'
9304   shlibpath_var=LIBPATH
9305   ;;
9306
9307 osf3* | osf4* | osf5*)
9308   version_type=osf
9309   need_lib_prefix=no
9310   need_version=no
9311   soname_spec='${libname}${release}${shared_ext}$major'
9312   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9313   shlibpath_var=LD_LIBRARY_PATH
9314   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9315   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9316   ;;
9317
9318 solaris*)
9319   version_type=linux
9320   need_lib_prefix=no
9321   need_version=no
9322   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9323   soname_spec='${libname}${release}${shared_ext}$major'
9324   shlibpath_var=LD_LIBRARY_PATH
9325   shlibpath_overrides_runpath=yes
9326   hardcode_into_libs=yes
9327   # ldd complains unless libraries are executable
9328   postinstall_cmds='chmod +x $lib'
9329   ;;
9330
9331 sunos4*)
9332   version_type=sunos
9333   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9334   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9335   shlibpath_var=LD_LIBRARY_PATH
9336   shlibpath_overrides_runpath=yes
9337   if test "$with_gnu_ld" = yes; then
9338     need_lib_prefix=no
9339   fi
9340   need_version=yes
9341   ;;
9342
9343 sysv4 | sysv4.3*)
9344   version_type=linux
9345   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9346   soname_spec='${libname}${release}${shared_ext}$major'
9347   shlibpath_var=LD_LIBRARY_PATH
9348   case $host_vendor in
9349     sni)
9350       shlibpath_overrides_runpath=no
9351       need_lib_prefix=no
9352       export_dynamic_flag_spec='${wl}-Blargedynsym'
9353       runpath_var=LD_RUN_PATH
9354       ;;
9355     siemens)
9356       need_lib_prefix=no
9357       ;;
9358     motorola)
9359       need_lib_prefix=no
9360       need_version=no
9361       shlibpath_overrides_runpath=no
9362       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9363       ;;
9364   esac
9365   ;;
9366
9367 sysv4*MP*)
9368   if test -d /usr/nec ;then
9369     version_type=linux
9370     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9371     soname_spec='$libname${shared_ext}.$major'
9372     shlibpath_var=LD_LIBRARY_PATH
9373   fi
9374   ;;
9375
9376 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9377   version_type=freebsd-elf
9378   need_lib_prefix=no
9379   need_version=no
9380   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9381   soname_spec='${libname}${release}${shared_ext}$major'
9382   shlibpath_var=LD_LIBRARY_PATH
9383   hardcode_into_libs=yes
9384   if test "$with_gnu_ld" = yes; then
9385     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9386     shlibpath_overrides_runpath=no
9387   else
9388     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9389     shlibpath_overrides_runpath=yes
9390     case $host_os in
9391       sco3.2v5*)
9392         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9393         ;;
9394     esac
9395   fi
9396   sys_lib_dlsearch_path_spec='/usr/lib'
9397   ;;
9398
9399 uts4*)
9400   version_type=linux
9401   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9402   soname_spec='${libname}${release}${shared_ext}$major'
9403   shlibpath_var=LD_LIBRARY_PATH
9404   ;;
9405
9406 *)
9407   dynamic_linker=no
9408   ;;
9409 esac
9410 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9411 echo "${ECHO_T}$dynamic_linker" >&6; }
9412 test "$dynamic_linker" = no && can_build_shared=no
9413
9414 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9415 if test "$GCC" = yes; then
9416   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9417 fi
9418
9419
9420 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9421 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9422 if test "${libltdl_cv_shlibext+set}" = set; then
9423   echo $ECHO_N "(cached) $ECHO_C" >&6
9424 else
9425
9426 module=yes
9427 eval libltdl_cv_shlibext=$shrext_cmds
9428
9429 fi
9430 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9431 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9432 if test -n "$libltdl_cv_shlibext"; then
9433
9434 cat >>confdefs.h <<_ACEOF
9435 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9436 _ACEOF
9437
9438 fi
9439
9440
9441 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9442 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9443 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9444   echo $ECHO_N "(cached) $ECHO_C" >&6
9445 else
9446   libltdl_cv_shlibpath_var="$shlibpath_var"
9447 fi
9448 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9449 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9450 if test -n "$libltdl_cv_shlibpath_var"; then
9451
9452 cat >>confdefs.h <<_ACEOF
9453 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9454 _ACEOF
9455
9456 fi
9457
9458
9459 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9460 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9461 if test "${libltdl_cv_sys_search_path+set}" = set; then
9462   echo $ECHO_N "(cached) $ECHO_C" >&6
9463 else
9464   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9465 fi
9466 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9467 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9468 if test -n "$libltdl_cv_sys_search_path"; then
9469   sys_search_path=
9470   for dir in $libltdl_cv_sys_search_path; do
9471     if test -z "$sys_search_path"; then
9472       sys_search_path="$dir"
9473     else
9474       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9475     fi
9476   done
9477
9478 cat >>confdefs.h <<_ACEOF
9479 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9480 _ACEOF
9481
9482 fi
9483
9484 { echo "$as_me:$LINENO: checking for objdir" >&5
9485 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9486 if test "${libltdl_cv_objdir+set}" = set; then
9487   echo $ECHO_N "(cached) $ECHO_C" >&6
9488 else
9489   libltdl_cv_objdir="$objdir"
9490   if test -n "$objdir"; then
9491     :
9492   else
9493     rm -f .libs 2>/dev/null
9494     mkdir .libs 2>/dev/null
9495     if test -d .libs; then
9496       libltdl_cv_objdir=.libs
9497     else
9498       # MS-DOS does not allow filenames that begin with a dot.
9499       libltdl_cv_objdir=_libs
9500     fi
9501   rmdir .libs 2>/dev/null
9502   fi
9503
9504 fi
9505 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9506 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9507
9508 cat >>confdefs.h <<_ACEOF
9509 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9510 _ACEOF
9511
9512
9513
9514
9515
9516
9517 # Check for command to grab the raw symbol name followed by C symbol from nm.
9518 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9519 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9520 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9521   echo $ECHO_N "(cached) $ECHO_C" >&6
9522 else
9523
9524 # These are sane defaults that work on at least a few old systems.
9525 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9526
9527 # Character class describing NM global symbol codes.
9528 symcode='[BCDEGRST]'
9529
9530 # Regexp to match symbols that can be accessed directly from C.
9531 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9532
9533 # Transform an extracted symbol line into a proper C declaration
9534 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9535
9536 # Transform an extracted symbol line into symbol name and symbol address
9537 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'"
9538
9539 # Define system-specific variables.
9540 case $host_os in
9541 aix*)
9542   symcode='[BCDT]'
9543   ;;
9544 cygwin* | mingw* | pw32*)
9545   symcode='[ABCDGISTW]'
9546   ;;
9547 hpux*) # Its linker distinguishes data from code symbols
9548   if test "$host_cpu" = ia64; then
9549     symcode='[ABCDEGRST]'
9550   fi
9551   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9552   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'"
9553   ;;
9554 linux*)
9555   if test "$host_cpu" = ia64; then
9556     symcode='[ABCDGIRSTW]'
9557     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9558     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'"
9559   fi
9560   ;;
9561 irix* | nonstopux*)
9562   symcode='[BCDEGRST]'
9563   ;;
9564 osf*)
9565   symcode='[BCDEGQRST]'
9566   ;;
9567 solaris*)
9568   symcode='[BDRT]'
9569   ;;
9570 sco3.2v5*)
9571   symcode='[DT]'
9572   ;;
9573 sysv4.2uw2*)
9574   symcode='[DT]'
9575   ;;
9576 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9577   symcode='[ABDT]'
9578   ;;
9579 sysv4)
9580   symcode='[DFNSTU]'
9581   ;;
9582 esac
9583
9584 # Handle CRLF in mingw tool chain
9585 opt_cr=
9586 case $build_os in
9587 mingw*)
9588   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9589   ;;
9590 esac
9591
9592 # If we're using GNU nm, then use its standard symbol codes.
9593 case `$NM -V 2>&1` in
9594 *GNU* | *'with BFD'*)
9595   symcode='[ABCDGIRSTW]' ;;
9596 esac
9597
9598 # Try without a prefix undercore, then with it.
9599 for ac_symprfx in "" "_"; do
9600
9601   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9602   symxfrm="\\1 $ac_symprfx\\2 \\2"
9603
9604   # Write the raw and C identifiers.
9605   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9606
9607   # Check to see that the pipe works correctly.
9608   pipe_works=no
9609
9610   rm -f conftest*
9611   cat > conftest.$ac_ext <<EOF
9612 #ifdef __cplusplus
9613 extern "C" {
9614 #endif
9615 char nm_test_var;
9616 void nm_test_func(){}
9617 #ifdef __cplusplus
9618 }
9619 #endif
9620 int main(){nm_test_var='a';nm_test_func();return(0);}
9621 EOF
9622
9623   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9624   (eval $ac_compile) 2>&5
9625   ac_status=$?
9626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9627   (exit $ac_status); }; then
9628     # Now try to grab the symbols.
9629     nlist=conftest.nm
9630     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9631   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9632   ac_status=$?
9633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9634   (exit $ac_status); } && test -s "$nlist"; then
9635       # Try sorting and uniquifying the output.
9636       if sort "$nlist" | uniq > "$nlist"T; then
9637         mv -f "$nlist"T "$nlist"
9638       else
9639         rm -f "$nlist"T
9640       fi
9641
9642       # Make sure that we snagged all the symbols we need.
9643       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9644         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9645           cat <<EOF > conftest.$ac_ext
9646 #ifdef __cplusplus
9647 extern "C" {
9648 #endif
9649
9650 EOF
9651           # Now generate the symbol file.
9652           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9653
9654           cat <<EOF >> conftest.$ac_ext
9655 #if defined (__STDC__) && __STDC__
9656 # define lt_ptr_t void *
9657 #else
9658 # define lt_ptr_t char *
9659 # define const
9660 #endif
9661
9662 /* The mapping between symbol names and symbols. */
9663 const struct {
9664   const char *name;
9665   lt_ptr_t address;
9666 }
9667 lt_preloaded_symbols[] =
9668 {
9669 EOF
9670           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9671           cat <<\EOF >> conftest.$ac_ext
9672   {0, (lt_ptr_t) 0}
9673 };
9674
9675 #ifdef __cplusplus
9676 }
9677 #endif
9678 EOF
9679           # Now try linking the two files.
9680           mv conftest.$ac_objext conftstm.$ac_objext
9681           lt_save_LIBS="$LIBS"
9682           lt_save_CFLAGS="$CFLAGS"
9683           LIBS="conftstm.$ac_objext"
9684           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9685           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9686   (eval $ac_link) 2>&5
9687   ac_status=$?
9688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9689   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9690             pipe_works=yes
9691           fi
9692           LIBS="$lt_save_LIBS"
9693           CFLAGS="$lt_save_CFLAGS"
9694         else
9695           echo "cannot find nm_test_func in $nlist" >&5
9696         fi
9697       else
9698         echo "cannot find nm_test_var in $nlist" >&5
9699       fi
9700     else
9701       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9702     fi
9703   else
9704     echo "$progname: failed program was:" >&5
9705     cat conftest.$ac_ext >&5
9706   fi
9707   rm -f conftest* conftst*
9708
9709   # Do not use the global_symbol_pipe unless it works.
9710   if test "$pipe_works" = yes; then
9711     break
9712   else
9713     lt_cv_sys_global_symbol_pipe=
9714   fi
9715 done
9716
9717 fi
9718
9719 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9720   lt_cv_sys_global_symbol_to_cdecl=
9721 fi
9722 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9723   { echo "$as_me:$LINENO: result: failed" >&5
9724 echo "${ECHO_T}failed" >&6; }
9725 else
9726   { echo "$as_me:$LINENO: result: ok" >&5
9727 echo "${ECHO_T}ok" >&6; }
9728 fi
9729
9730
9731 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9732 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9733 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9734   echo $ECHO_N "(cached) $ECHO_C" >&6
9735 else
9736   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9737     libltdl_cv_preloaded_symbols=yes
9738   else
9739     libltdl_cv_preloaded_symbols=no
9740   fi
9741
9742 fi
9743 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9744 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9745 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9746
9747 cat >>confdefs.h <<\_ACEOF
9748 #define HAVE_PRELOADED_SYMBOLS 1
9749 _ACEOF
9750
9751 fi
9752
9753 LIBADD_DL=
9754
9755 ac_ext=c
9756 ac_cpp='$CPP $CPPFLAGS'
9757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9760
9761
9762 { echo "$as_me:$LINENO: checking for shl_load" >&5
9763 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9764 if test "${ac_cv_func_shl_load+set}" = set; then
9765   echo $ECHO_N "(cached) $ECHO_C" >&6
9766 else
9767   cat >conftest.$ac_ext <<_ACEOF
9768 /* confdefs.h.  */
9769 _ACEOF
9770 cat confdefs.h >>conftest.$ac_ext
9771 cat >>conftest.$ac_ext <<_ACEOF
9772 /* end confdefs.h.  */
9773 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9774    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9775 #define shl_load innocuous_shl_load
9776
9777 /* System header to define __stub macros and hopefully few prototypes,
9778     which can conflict with char shl_load (); below.
9779     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9780     <limits.h> exists even on freestanding compilers.  */
9781
9782 #ifdef __STDC__
9783 # include <limits.h>
9784 #else
9785 # include <assert.h>
9786 #endif
9787
9788 #undef shl_load
9789
9790 /* Override any GCC internal prototype to avoid an error.
9791    Use char because int might match the return type of a GCC
9792    builtin and then its argument prototype would still apply.  */
9793 #ifdef __cplusplus
9794 extern "C"
9795 #endif
9796 char shl_load ();
9797 /* The GNU C library defines this for functions which it implements
9798     to always fail with ENOSYS.  Some functions are actually named
9799     something starting with __ and the normal name is an alias.  */
9800 #if defined __stub_shl_load || defined __stub___shl_load
9801 choke me
9802 #endif
9803
9804 int
9805 main ()
9806 {
9807 return shl_load ();
9808   ;
9809   return 0;
9810 }
9811 _ACEOF
9812 rm -f conftest.$ac_objext conftest$ac_exeext
9813 if { (ac_try="$ac_link"
9814 case "(($ac_try" in
9815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9816   *) ac_try_echo=$ac_try;;
9817 esac
9818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9819   (eval "$ac_link") 2>conftest.er1
9820   ac_status=$?
9821   grep -v '^ *+' conftest.er1 >conftest.err
9822   rm -f conftest.er1
9823   cat conftest.err >&5
9824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9825   (exit $ac_status); } &&
9826          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9827   { (case "(($ac_try" in
9828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9829   *) ac_try_echo=$ac_try;;
9830 esac
9831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9832   (eval "$ac_try") 2>&5
9833   ac_status=$?
9834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9835   (exit $ac_status); }; } &&
9836          { ac_try='test -s conftest$ac_exeext'
9837   { (case "(($ac_try" in
9838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9839   *) ac_try_echo=$ac_try;;
9840 esac
9841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9842   (eval "$ac_try") 2>&5
9843   ac_status=$?
9844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845   (exit $ac_status); }; }; then
9846   ac_cv_func_shl_load=yes
9847 else
9848   echo "$as_me: failed program was:" >&5
9849 sed 's/^/| /' conftest.$ac_ext >&5
9850
9851         ac_cv_func_shl_load=no
9852 fi
9853
9854 rm -f core conftest.err conftest.$ac_objext \
9855       conftest$ac_exeext conftest.$ac_ext
9856 fi
9857 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9858 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9859 if test $ac_cv_func_shl_load = yes; then
9860
9861 cat >>confdefs.h <<\_ACEOF
9862 #define HAVE_SHL_LOAD 1
9863 _ACEOF
9864
9865 else
9866   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9867 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9868 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9869   echo $ECHO_N "(cached) $ECHO_C" >&6
9870 else
9871   ac_check_lib_save_LIBS=$LIBS
9872 LIBS="-ldld  $LIBS"
9873 cat >conftest.$ac_ext <<_ACEOF
9874 /* confdefs.h.  */
9875 _ACEOF
9876 cat confdefs.h >>conftest.$ac_ext
9877 cat >>conftest.$ac_ext <<_ACEOF
9878 /* end confdefs.h.  */
9879
9880 /* Override any GCC internal prototype to avoid an error.
9881    Use char because int might match the return type of a GCC
9882    builtin and then its argument prototype would still apply.  */
9883 #ifdef __cplusplus
9884 extern "C"
9885 #endif
9886 char shl_load ();
9887 int
9888 main ()
9889 {
9890 return shl_load ();
9891   ;
9892   return 0;
9893 }
9894 _ACEOF
9895 rm -f conftest.$ac_objext conftest$ac_exeext
9896 if { (ac_try="$ac_link"
9897 case "(($ac_try" in
9898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9899   *) ac_try_echo=$ac_try;;
9900 esac
9901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9902   (eval "$ac_link") 2>conftest.er1
9903   ac_status=$?
9904   grep -v '^ *+' conftest.er1 >conftest.err
9905   rm -f conftest.er1
9906   cat conftest.err >&5
9907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9908   (exit $ac_status); } &&
9909          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9910   { (case "(($ac_try" in
9911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9912   *) ac_try_echo=$ac_try;;
9913 esac
9914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9915   (eval "$ac_try") 2>&5
9916   ac_status=$?
9917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9918   (exit $ac_status); }; } &&
9919          { ac_try='test -s conftest$ac_exeext'
9920   { (case "(($ac_try" in
9921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9922   *) ac_try_echo=$ac_try;;
9923 esac
9924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9925   (eval "$ac_try") 2>&5
9926   ac_status=$?
9927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9928   (exit $ac_status); }; }; then
9929   ac_cv_lib_dld_shl_load=yes
9930 else
9931   echo "$as_me: failed program was:" >&5
9932 sed 's/^/| /' conftest.$ac_ext >&5
9933
9934         ac_cv_lib_dld_shl_load=no
9935 fi
9936
9937 rm -f core conftest.err conftest.$ac_objext \
9938       conftest$ac_exeext conftest.$ac_ext
9939 LIBS=$ac_check_lib_save_LIBS
9940 fi
9941 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9942 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9943 if test $ac_cv_lib_dld_shl_load = yes; then
9944
9945 cat >>confdefs.h <<\_ACEOF
9946 #define HAVE_SHL_LOAD 1
9947 _ACEOF
9948
9949         LIBADD_DL="$LIBADD_DL -ldld"
9950 else
9951   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9952 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9953 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9954   echo $ECHO_N "(cached) $ECHO_C" >&6
9955 else
9956   ac_check_lib_save_LIBS=$LIBS
9957 LIBS="-ldl  $LIBS"
9958 cat >conftest.$ac_ext <<_ACEOF
9959 /* confdefs.h.  */
9960 _ACEOF
9961 cat confdefs.h >>conftest.$ac_ext
9962 cat >>conftest.$ac_ext <<_ACEOF
9963 /* end confdefs.h.  */
9964
9965 /* Override any GCC internal prototype to avoid an error.
9966    Use char because int might match the return type of a GCC
9967    builtin and then its argument prototype would still apply.  */
9968 #ifdef __cplusplus
9969 extern "C"
9970 #endif
9971 char dlopen ();
9972 int
9973 main ()
9974 {
9975 return dlopen ();
9976   ;
9977   return 0;
9978 }
9979 _ACEOF
9980 rm -f conftest.$ac_objext conftest$ac_exeext
9981 if { (ac_try="$ac_link"
9982 case "(($ac_try" in
9983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9984   *) ac_try_echo=$ac_try;;
9985 esac
9986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9987   (eval "$ac_link") 2>conftest.er1
9988   ac_status=$?
9989   grep -v '^ *+' conftest.er1 >conftest.err
9990   rm -f conftest.er1
9991   cat conftest.err >&5
9992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9993   (exit $ac_status); } &&
9994          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9995   { (case "(($ac_try" in
9996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9997   *) ac_try_echo=$ac_try;;
9998 esac
9999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10000   (eval "$ac_try") 2>&5
10001   ac_status=$?
10002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10003   (exit $ac_status); }; } &&
10004          { ac_try='test -s conftest$ac_exeext'
10005   { (case "(($ac_try" in
10006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10007   *) ac_try_echo=$ac_try;;
10008 esac
10009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10010   (eval "$ac_try") 2>&5
10011   ac_status=$?
10012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10013   (exit $ac_status); }; }; then
10014   ac_cv_lib_dl_dlopen=yes
10015 else
10016   echo "$as_me: failed program was:" >&5
10017 sed 's/^/| /' conftest.$ac_ext >&5
10018
10019         ac_cv_lib_dl_dlopen=no
10020 fi
10021
10022 rm -f core conftest.err conftest.$ac_objext \
10023       conftest$ac_exeext conftest.$ac_ext
10024 LIBS=$ac_check_lib_save_LIBS
10025 fi
10026 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10027 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10028 if test $ac_cv_lib_dl_dlopen = yes; then
10029
10030 cat >>confdefs.h <<\_ACEOF
10031 #define HAVE_LIBDL 1
10032 _ACEOF
10033
10034                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10035 else
10036   cat >conftest.$ac_ext <<_ACEOF
10037 /* confdefs.h.  */
10038 _ACEOF
10039 cat confdefs.h >>conftest.$ac_ext
10040 cat >>conftest.$ac_ext <<_ACEOF
10041 /* end confdefs.h.  */
10042 #if HAVE_DLFCN_H
10043 #  include <dlfcn.h>
10044 #endif
10045
10046 int
10047 main ()
10048 {
10049 dlopen(0, 0);
10050   ;
10051   return 0;
10052 }
10053 _ACEOF
10054 rm -f conftest.$ac_objext conftest$ac_exeext
10055 if { (ac_try="$ac_link"
10056 case "(($ac_try" in
10057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10058   *) ac_try_echo=$ac_try;;
10059 esac
10060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10061   (eval "$ac_link") 2>conftest.er1
10062   ac_status=$?
10063   grep -v '^ *+' conftest.er1 >conftest.err
10064   rm -f conftest.er1
10065   cat conftest.err >&5
10066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10067   (exit $ac_status); } &&
10068          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10069   { (case "(($ac_try" in
10070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10071   *) ac_try_echo=$ac_try;;
10072 esac
10073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10074   (eval "$ac_try") 2>&5
10075   ac_status=$?
10076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10077   (exit $ac_status); }; } &&
10078          { ac_try='test -s conftest$ac_exeext'
10079   { (case "(($ac_try" in
10080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10081   *) ac_try_echo=$ac_try;;
10082 esac
10083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10084   (eval "$ac_try") 2>&5
10085   ac_status=$?
10086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10087   (exit $ac_status); }; }; then
10088
10089 cat >>confdefs.h <<\_ACEOF
10090 #define HAVE_LIBDL 1
10091 _ACEOF
10092  libltdl_cv_func_dlopen="yes"
10093 else
10094   echo "$as_me: failed program was:" >&5
10095 sed 's/^/| /' conftest.$ac_ext >&5
10096
10097         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10098 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10099 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10100   echo $ECHO_N "(cached) $ECHO_C" >&6
10101 else
10102   ac_check_lib_save_LIBS=$LIBS
10103 LIBS="-lsvld  $LIBS"
10104 cat >conftest.$ac_ext <<_ACEOF
10105 /* confdefs.h.  */
10106 _ACEOF
10107 cat confdefs.h >>conftest.$ac_ext
10108 cat >>conftest.$ac_ext <<_ACEOF
10109 /* end confdefs.h.  */
10110
10111 /* Override any GCC internal prototype to avoid an error.
10112    Use char because int might match the return type of a GCC
10113    builtin and then its argument prototype would still apply.  */
10114 #ifdef __cplusplus
10115 extern "C"
10116 #endif
10117 char dlopen ();
10118 int
10119 main ()
10120 {
10121 return dlopen ();
10122   ;
10123   return 0;
10124 }
10125 _ACEOF
10126 rm -f conftest.$ac_objext conftest$ac_exeext
10127 if { (ac_try="$ac_link"
10128 case "(($ac_try" in
10129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10130   *) ac_try_echo=$ac_try;;
10131 esac
10132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10133   (eval "$ac_link") 2>conftest.er1
10134   ac_status=$?
10135   grep -v '^ *+' conftest.er1 >conftest.err
10136   rm -f conftest.er1
10137   cat conftest.err >&5
10138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10139   (exit $ac_status); } &&
10140          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10141   { (case "(($ac_try" in
10142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10143   *) ac_try_echo=$ac_try;;
10144 esac
10145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10146   (eval "$ac_try") 2>&5
10147   ac_status=$?
10148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10149   (exit $ac_status); }; } &&
10150          { ac_try='test -s conftest$ac_exeext'
10151   { (case "(($ac_try" in
10152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10153   *) ac_try_echo=$ac_try;;
10154 esac
10155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10156   (eval "$ac_try") 2>&5
10157   ac_status=$?
10158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10159   (exit $ac_status); }; }; then
10160   ac_cv_lib_svld_dlopen=yes
10161 else
10162   echo "$as_me: failed program was:" >&5
10163 sed 's/^/| /' conftest.$ac_ext >&5
10164
10165         ac_cv_lib_svld_dlopen=no
10166 fi
10167
10168 rm -f core conftest.err conftest.$ac_objext \
10169       conftest$ac_exeext conftest.$ac_ext
10170 LIBS=$ac_check_lib_save_LIBS
10171 fi
10172 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10173 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10174 if test $ac_cv_lib_svld_dlopen = yes; then
10175
10176 cat >>confdefs.h <<\_ACEOF
10177 #define HAVE_LIBDL 1
10178 _ACEOF
10179
10180                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10181 else
10182   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10183 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10184 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10185   echo $ECHO_N "(cached) $ECHO_C" >&6
10186 else
10187   ac_check_lib_save_LIBS=$LIBS
10188 LIBS="-ldld  $LIBS"
10189 cat >conftest.$ac_ext <<_ACEOF
10190 /* confdefs.h.  */
10191 _ACEOF
10192 cat confdefs.h >>conftest.$ac_ext
10193 cat >>conftest.$ac_ext <<_ACEOF
10194 /* end confdefs.h.  */
10195
10196 /* Override any GCC internal prototype to avoid an error.
10197    Use char because int might match the return type of a GCC
10198    builtin and then its argument prototype would still apply.  */
10199 #ifdef __cplusplus
10200 extern "C"
10201 #endif
10202 char dld_link ();
10203 int
10204 main ()
10205 {
10206 return dld_link ();
10207   ;
10208   return 0;
10209 }
10210 _ACEOF
10211 rm -f conftest.$ac_objext conftest$ac_exeext
10212 if { (ac_try="$ac_link"
10213 case "(($ac_try" in
10214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10215   *) ac_try_echo=$ac_try;;
10216 esac
10217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10218   (eval "$ac_link") 2>conftest.er1
10219   ac_status=$?
10220   grep -v '^ *+' conftest.er1 >conftest.err
10221   rm -f conftest.er1
10222   cat conftest.err >&5
10223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10224   (exit $ac_status); } &&
10225          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10226   { (case "(($ac_try" in
10227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10228   *) ac_try_echo=$ac_try;;
10229 esac
10230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10231   (eval "$ac_try") 2>&5
10232   ac_status=$?
10233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234   (exit $ac_status); }; } &&
10235          { ac_try='test -s conftest$ac_exeext'
10236   { (case "(($ac_try" in
10237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10238   *) ac_try_echo=$ac_try;;
10239 esac
10240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10241   (eval "$ac_try") 2>&5
10242   ac_status=$?
10243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10244   (exit $ac_status); }; }; then
10245   ac_cv_lib_dld_dld_link=yes
10246 else
10247   echo "$as_me: failed program was:" >&5
10248 sed 's/^/| /' conftest.$ac_ext >&5
10249
10250         ac_cv_lib_dld_dld_link=no
10251 fi
10252
10253 rm -f core conftest.err conftest.$ac_objext \
10254       conftest$ac_exeext conftest.$ac_ext
10255 LIBS=$ac_check_lib_save_LIBS
10256 fi
10257 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10258 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10259 if test $ac_cv_lib_dld_dld_link = yes; then
10260
10261 cat >>confdefs.h <<\_ACEOF
10262 #define HAVE_DLD 1
10263 _ACEOF
10264
10265                 LIBADD_DL="$LIBADD_DL -ldld"
10266 else
10267   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10268 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10269 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10270   echo $ECHO_N "(cached) $ECHO_C" >&6
10271 else
10272   cat >conftest.$ac_ext <<_ACEOF
10273 /* confdefs.h.  */
10274 _ACEOF
10275 cat confdefs.h >>conftest.$ac_ext
10276 cat >>conftest.$ac_ext <<_ACEOF
10277 /* end confdefs.h.  */
10278 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10279    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10280 #define _dyld_func_lookup innocuous__dyld_func_lookup
10281
10282 /* System header to define __stub macros and hopefully few prototypes,
10283     which can conflict with char _dyld_func_lookup (); below.
10284     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10285     <limits.h> exists even on freestanding compilers.  */
10286
10287 #ifdef __STDC__
10288 # include <limits.h>
10289 #else
10290 # include <assert.h>
10291 #endif
10292
10293 #undef _dyld_func_lookup
10294
10295 /* Override any GCC internal prototype to avoid an error.
10296    Use char because int might match the return type of a GCC
10297    builtin and then its argument prototype would still apply.  */
10298 #ifdef __cplusplus
10299 extern "C"
10300 #endif
10301 char _dyld_func_lookup ();
10302 /* The GNU C library defines this for functions which it implements
10303     to always fail with ENOSYS.  Some functions are actually named
10304     something starting with __ and the normal name is an alias.  */
10305 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10306 choke me
10307 #endif
10308
10309 int
10310 main ()
10311 {
10312 return _dyld_func_lookup ();
10313   ;
10314   return 0;
10315 }
10316 _ACEOF
10317 rm -f conftest.$ac_objext conftest$ac_exeext
10318 if { (ac_try="$ac_link"
10319 case "(($ac_try" in
10320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10321   *) ac_try_echo=$ac_try;;
10322 esac
10323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10324   (eval "$ac_link") 2>conftest.er1
10325   ac_status=$?
10326   grep -v '^ *+' conftest.er1 >conftest.err
10327   rm -f conftest.er1
10328   cat conftest.err >&5
10329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10330   (exit $ac_status); } &&
10331          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10332   { (case "(($ac_try" in
10333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10334   *) ac_try_echo=$ac_try;;
10335 esac
10336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10337   (eval "$ac_try") 2>&5
10338   ac_status=$?
10339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10340   (exit $ac_status); }; } &&
10341          { ac_try='test -s conftest$ac_exeext'
10342   { (case "(($ac_try" in
10343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10344   *) ac_try_echo=$ac_try;;
10345 esac
10346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10347   (eval "$ac_try") 2>&5
10348   ac_status=$?
10349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10350   (exit $ac_status); }; }; then
10351   ac_cv_func__dyld_func_lookup=yes
10352 else
10353   echo "$as_me: failed program was:" >&5
10354 sed 's/^/| /' conftest.$ac_ext >&5
10355
10356         ac_cv_func__dyld_func_lookup=no
10357 fi
10358
10359 rm -f core conftest.err conftest.$ac_objext \
10360       conftest$ac_exeext conftest.$ac_ext
10361 fi
10362 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10363 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10364 if test $ac_cv_func__dyld_func_lookup = yes; then
10365
10366 cat >>confdefs.h <<\_ACEOF
10367 #define HAVE_DYLD 1
10368 _ACEOF
10369
10370 fi
10371
10372
10373 fi
10374
10375
10376 fi
10377
10378
10379 fi
10380
10381 rm -f core conftest.err conftest.$ac_objext \
10382       conftest$ac_exeext conftest.$ac_ext
10383
10384 fi
10385
10386
10387 fi
10388
10389
10390 fi
10391
10392
10393 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10394 then
10395   lt_save_LIBS="$LIBS"
10396   LIBS="$LIBS $LIBADD_DL"
10397
10398 for ac_func in dlerror
10399 do
10400 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10401 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10402 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10403 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10404   echo $ECHO_N "(cached) $ECHO_C" >&6
10405 else
10406   cat >conftest.$ac_ext <<_ACEOF
10407 /* confdefs.h.  */
10408 _ACEOF
10409 cat confdefs.h >>conftest.$ac_ext
10410 cat >>conftest.$ac_ext <<_ACEOF
10411 /* end confdefs.h.  */
10412 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10413    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10414 #define $ac_func innocuous_$ac_func
10415
10416 /* System header to define __stub macros and hopefully few prototypes,
10417     which can conflict with char $ac_func (); below.
10418     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10419     <limits.h> exists even on freestanding compilers.  */
10420
10421 #ifdef __STDC__
10422 # include <limits.h>
10423 #else
10424 # include <assert.h>
10425 #endif
10426
10427 #undef $ac_func
10428
10429 /* Override any GCC internal prototype to avoid an error.
10430    Use char because int might match the return type of a GCC
10431    builtin and then its argument prototype would still apply.  */
10432 #ifdef __cplusplus
10433 extern "C"
10434 #endif
10435 char $ac_func ();
10436 /* The GNU C library defines this for functions which it implements
10437     to always fail with ENOSYS.  Some functions are actually named
10438     something starting with __ and the normal name is an alias.  */
10439 #if defined __stub_$ac_func || defined __stub___$ac_func
10440 choke me
10441 #endif
10442
10443 int
10444 main ()
10445 {
10446 return $ac_func ();
10447   ;
10448   return 0;
10449 }
10450 _ACEOF
10451 rm -f conftest.$ac_objext conftest$ac_exeext
10452 if { (ac_try="$ac_link"
10453 case "(($ac_try" in
10454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10455   *) ac_try_echo=$ac_try;;
10456 esac
10457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10458   (eval "$ac_link") 2>conftest.er1
10459   ac_status=$?
10460   grep -v '^ *+' conftest.er1 >conftest.err
10461   rm -f conftest.er1
10462   cat conftest.err >&5
10463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10464   (exit $ac_status); } &&
10465          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10466   { (case "(($ac_try" in
10467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10468   *) ac_try_echo=$ac_try;;
10469 esac
10470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10471   (eval "$ac_try") 2>&5
10472   ac_status=$?
10473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10474   (exit $ac_status); }; } &&
10475          { ac_try='test -s conftest$ac_exeext'
10476   { (case "(($ac_try" in
10477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10478   *) ac_try_echo=$ac_try;;
10479 esac
10480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10481   (eval "$ac_try") 2>&5
10482   ac_status=$?
10483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10484   (exit $ac_status); }; }; then
10485   eval "$as_ac_var=yes"
10486 else
10487   echo "$as_me: failed program was:" >&5
10488 sed 's/^/| /' conftest.$ac_ext >&5
10489
10490         eval "$as_ac_var=no"
10491 fi
10492
10493 rm -f core conftest.err conftest.$ac_objext \
10494       conftest$ac_exeext conftest.$ac_ext
10495 fi
10496 ac_res=`eval echo '${'$as_ac_var'}'`
10497                { echo "$as_me:$LINENO: result: $ac_res" >&5
10498 echo "${ECHO_T}$ac_res" >&6; }
10499 if test `eval echo '${'$as_ac_var'}'` = yes; then
10500   cat >>confdefs.h <<_ACEOF
10501 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10502 _ACEOF
10503
10504 fi
10505 done
10506
10507   LIBS="$lt_save_LIBS"
10508 fi
10509 ac_ext=c
10510 ac_cpp='$CPP $CPPFLAGS'
10511 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10512 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10513 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10514
10515
10516
10517 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10518 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10519 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10520   echo $ECHO_N "(cached) $ECHO_C" >&6
10521 else
10522   ac_cv_sys_symbol_underscore=no
10523   cat > conftest.$ac_ext <<EOF
10524 void nm_test_func(){}
10525 int main(){nm_test_func;return 0;}
10526 EOF
10527   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10528   (eval $ac_compile) 2>&5
10529   ac_status=$?
10530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10531   (exit $ac_status); }; then
10532     # Now try to grab the symbols.
10533     ac_nlist=conftest.nm
10534     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10535   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10536   ac_status=$?
10537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10538   (exit $ac_status); } && test -s "$ac_nlist"; then
10539       # See whether the symbols have a leading underscore.
10540       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10541         ac_cv_sys_symbol_underscore=yes
10542       else
10543         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10544           :
10545         else
10546           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10547         fi
10548       fi
10549     else
10550       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10551     fi
10552   else
10553     echo "configure: failed program was:" >&5
10554     cat conftest.c >&5
10555   fi
10556   rm -rf conftest*
10557
10558 fi
10559 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10560 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10561
10562
10563 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10564   if test x"$libltdl_cv_func_dlopen" = xyes ||
10565      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10566         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10567 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10568 if test "${libltdl_cv_need_uscore+set}" = set; then
10569   echo $ECHO_N "(cached) $ECHO_C" >&6
10570 else
10571   libltdl_cv_need_uscore=unknown
10572           save_LIBS="$LIBS"
10573           LIBS="$LIBS $LIBADD_DL"
10574           if test "$cross_compiling" = yes; then :
10575   libltdl_cv_need_uscore=cross
10576 else
10577   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10578   lt_status=$lt_dlunknown
10579   cat > conftest.$ac_ext <<EOF
10580 #line 10580 "configure"
10581 #include "confdefs.h"
10582
10583 #if HAVE_DLFCN_H
10584 #include <dlfcn.h>
10585 #endif
10586
10587 #include <stdio.h>
10588
10589 #ifdef RTLD_GLOBAL
10590 #  define LT_DLGLOBAL           RTLD_GLOBAL
10591 #else
10592 #  ifdef DL_GLOBAL
10593 #    define LT_DLGLOBAL         DL_GLOBAL
10594 #  else
10595 #    define LT_DLGLOBAL         0
10596 #  endif
10597 #endif
10598
10599 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10600    find out it does not work in some platform. */
10601 #ifndef LT_DLLAZY_OR_NOW
10602 #  ifdef RTLD_LAZY
10603 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10604 #  else
10605 #    ifdef DL_LAZY
10606 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10607 #    else
10608 #      ifdef RTLD_NOW
10609 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10610 #      else
10611 #        ifdef DL_NOW
10612 #          define LT_DLLAZY_OR_NOW      DL_NOW
10613 #        else
10614 #          define LT_DLLAZY_OR_NOW      0
10615 #        endif
10616 #      endif
10617 #    endif
10618 #  endif
10619 #endif
10620
10621 #ifdef __cplusplus
10622 extern "C" void exit (int);
10623 #endif
10624
10625 void fnord() { int i=42;}
10626 int main ()
10627 {
10628   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10629   int status = $lt_dlunknown;
10630
10631   if (self)
10632     {
10633       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10634       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10635       /* dlclose (self); */
10636     }
10637   else
10638     puts (dlerror ());
10639
10640     exit (status);
10641 }
10642 EOF
10643   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10644   (eval $ac_link) 2>&5
10645   ac_status=$?
10646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10647   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10648     (./conftest; exit; ) >&5 2>/dev/null
10649     lt_status=$?
10650     case x$lt_status in
10651       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10652       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10653       x$lt_dlunknown|x*)  ;;
10654     esac
10655   else :
10656     # compilation failed
10657
10658   fi
10659 fi
10660 rm -fr conftest*
10661
10662           LIBS="$save_LIBS"
10663
10664 fi
10665 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10666 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10667   fi
10668 fi
10669
10670 if test x"$libltdl_cv_need_uscore" = xyes; then
10671
10672 cat >>confdefs.h <<\_ACEOF
10673 #define NEED_USCORE 1
10674 _ACEOF
10675
10676 fi
10677
10678
10679 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10680 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10681 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10682   echo $ECHO_N "(cached) $ECHO_C" >&6
10683 else
10684   # PORTME does your system automatically load deplibs for dlopen?
10685   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10686   # For now, we just catch OSes we know something about -- in the
10687   # future, we'll try test this programmatically.
10688   libltdl_cv_sys_dlopen_deplibs=unknown
10689   case "$host_os" in
10690   aix3*|aix4.1.*|aix4.2.*)
10691     # Unknown whether this is true for these versions of AIX, but
10692     # we want this `case' here to explicitly catch those versions.
10693     libltdl_cv_sys_dlopen_deplibs=unknown
10694     ;;
10695   aix[45]*)
10696     libltdl_cv_sys_dlopen_deplibs=yes
10697     ;;
10698   darwin*)
10699     # Assuming the user has installed a libdl from somewhere, this is true
10700     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10701     libltdl_cv_sys_dlopen_deplibs=yes
10702     ;;
10703   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10704     # GNU and its variants, using gnu ld.so (Glibc)
10705     libltdl_cv_sys_dlopen_deplibs=yes
10706     ;;
10707   hpux10*|hpux11*)
10708     libltdl_cv_sys_dlopen_deplibs=yes
10709     ;;
10710   interix*)
10711     libltdl_cv_sys_dlopen_deplibs=yes
10712     ;;
10713   irix[12345]*|irix6.[01]*)
10714     # Catch all versions of IRIX before 6.2, and indicate that we don't
10715     # know how it worked for any of those versions.
10716     libltdl_cv_sys_dlopen_deplibs=unknown
10717     ;;
10718   irix*)
10719     # The case above catches anything before 6.2, and it's known that
10720     # at 6.2 and later dlopen does load deplibs.
10721     libltdl_cv_sys_dlopen_deplibs=yes
10722     ;;
10723   netbsd*)
10724     libltdl_cv_sys_dlopen_deplibs=yes
10725     ;;
10726   openbsd*)
10727     libltdl_cv_sys_dlopen_deplibs=yes
10728     ;;
10729   osf[1234]*)
10730     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10731     # it did *not* use an RPATH in a shared library to find objects the
10732     # library depends on, so we explictly say `no'.
10733     libltdl_cv_sys_dlopen_deplibs=no
10734     ;;
10735   osf5.0|osf5.0a|osf5.1)
10736     # dlopen *does* load deplibs and with the right loader patch applied
10737     # it even uses RPATH in a shared library to search for shared objects
10738     # that the library depends on, but there's no easy way to know if that
10739     # patch is installed.  Since this is the case, all we can really
10740     # say is unknown -- it depends on the patch being installed.  If
10741     # it is, this changes to `yes'.  Without it, it would be `no'.
10742     libltdl_cv_sys_dlopen_deplibs=unknown
10743     ;;
10744   osf*)
10745     # the two cases above should catch all versions of osf <= 5.1.  Read
10746     # the comments above for what we know about them.
10747     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10748     # is used to find them so we can finally say `yes'.
10749     libltdl_cv_sys_dlopen_deplibs=yes
10750     ;;
10751   solaris*)
10752     libltdl_cv_sys_dlopen_deplibs=yes
10753     ;;
10754   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10755     libltdl_cv_sys_dlopen_deplibs=yes
10756     ;;
10757   esac
10758
10759 fi
10760 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10761 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10762 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10763
10764 cat >>confdefs.h <<\_ACEOF
10765 #define LTDL_DLOPEN_DEPLIBS 1
10766 _ACEOF
10767
10768 fi
10769
10770
10771 for ac_header in argz.h
10772 do
10773 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10774 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10775   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10776 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10777 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10778   echo $ECHO_N "(cached) $ECHO_C" >&6
10779 fi
10780 ac_res=`eval echo '${'$as_ac_Header'}'`
10781                { echo "$as_me:$LINENO: result: $ac_res" >&5
10782 echo "${ECHO_T}$ac_res" >&6; }
10783 else
10784   # Is the header compilable?
10785 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10786 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10787 cat >conftest.$ac_ext <<_ACEOF
10788 /* confdefs.h.  */
10789 _ACEOF
10790 cat confdefs.h >>conftest.$ac_ext
10791 cat >>conftest.$ac_ext <<_ACEOF
10792 /* end confdefs.h.  */
10793 $ac_includes_default
10794 #include <$ac_header>
10795 _ACEOF
10796 rm -f conftest.$ac_objext
10797 if { (ac_try="$ac_compile"
10798 case "(($ac_try" in
10799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10800   *) ac_try_echo=$ac_try;;
10801 esac
10802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10803   (eval "$ac_compile") 2>conftest.er1
10804   ac_status=$?
10805   grep -v '^ *+' conftest.er1 >conftest.err
10806   rm -f conftest.er1
10807   cat conftest.err >&5
10808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10809   (exit $ac_status); } &&
10810          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10811   { (case "(($ac_try" in
10812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10813   *) ac_try_echo=$ac_try;;
10814 esac
10815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10816   (eval "$ac_try") 2>&5
10817   ac_status=$?
10818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10819   (exit $ac_status); }; } &&
10820          { ac_try='test -s conftest.$ac_objext'
10821   { (case "(($ac_try" in
10822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10823   *) ac_try_echo=$ac_try;;
10824 esac
10825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10826   (eval "$ac_try") 2>&5
10827   ac_status=$?
10828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10829   (exit $ac_status); }; }; then
10830   ac_header_compiler=yes
10831 else
10832   echo "$as_me: failed program was:" >&5
10833 sed 's/^/| /' conftest.$ac_ext >&5
10834
10835         ac_header_compiler=no
10836 fi
10837
10838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10839 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10840 echo "${ECHO_T}$ac_header_compiler" >&6; }
10841
10842 # Is the header present?
10843 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10844 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10845 cat >conftest.$ac_ext <<_ACEOF
10846 /* confdefs.h.  */
10847 _ACEOF
10848 cat confdefs.h >>conftest.$ac_ext
10849 cat >>conftest.$ac_ext <<_ACEOF
10850 /* end confdefs.h.  */
10851 #include <$ac_header>
10852 _ACEOF
10853 if { (ac_try="$ac_cpp conftest.$ac_ext"
10854 case "(($ac_try" in
10855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10856   *) ac_try_echo=$ac_try;;
10857 esac
10858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10859   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10860   ac_status=$?
10861   grep -v '^ *+' conftest.er1 >conftest.err
10862   rm -f conftest.er1
10863   cat conftest.err >&5
10864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10865   (exit $ac_status); } >/dev/null; then
10866   if test -s conftest.err; then
10867     ac_cpp_err=$ac_c_preproc_warn_flag
10868     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10869   else
10870     ac_cpp_err=
10871   fi
10872 else
10873   ac_cpp_err=yes
10874 fi
10875 if test -z "$ac_cpp_err"; then
10876   ac_header_preproc=yes
10877 else
10878   echo "$as_me: failed program was:" >&5
10879 sed 's/^/| /' conftest.$ac_ext >&5
10880
10881   ac_header_preproc=no
10882 fi
10883
10884 rm -f conftest.err conftest.$ac_ext
10885 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10886 echo "${ECHO_T}$ac_header_preproc" >&6; }
10887
10888 # So?  What about this header?
10889 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10890   yes:no: )
10891     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10892 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10893     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10894 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10895     ac_header_preproc=yes
10896     ;;
10897   no:yes:* )
10898     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10899 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10900     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10901 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10902     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10903 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10904     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10905 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10906     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10907 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10908     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10909 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10910     ( cat <<\_ASBOX
10911 ## ----------------------------------- ##
10912 ## Report this to llvmbugs@cs.uiuc.edu ##
10913 ## ----------------------------------- ##
10914 _ASBOX
10915      ) | sed "s/^/$as_me: WARNING:     /" >&2
10916     ;;
10917 esac
10918 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10919 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10920 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10921   echo $ECHO_N "(cached) $ECHO_C" >&6
10922 else
10923   eval "$as_ac_Header=\$ac_header_preproc"
10924 fi
10925 ac_res=`eval echo '${'$as_ac_Header'}'`
10926                { echo "$as_me:$LINENO: result: $ac_res" >&5
10927 echo "${ECHO_T}$ac_res" >&6; }
10928
10929 fi
10930 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10931   cat >>confdefs.h <<_ACEOF
10932 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10933 _ACEOF
10934
10935 fi
10936
10937 done
10938
10939
10940 { echo "$as_me:$LINENO: checking for error_t" >&5
10941 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10942 if test "${ac_cv_type_error_t+set}" = set; then
10943   echo $ECHO_N "(cached) $ECHO_C" >&6
10944 else
10945   cat >conftest.$ac_ext <<_ACEOF
10946 /* confdefs.h.  */
10947 _ACEOF
10948 cat confdefs.h >>conftest.$ac_ext
10949 cat >>conftest.$ac_ext <<_ACEOF
10950 /* end confdefs.h.  */
10951 #if HAVE_ARGZ_H
10952 #  include <argz.h>
10953 #endif
10954
10955 typedef error_t ac__type_new_;
10956 int
10957 main ()
10958 {
10959 if ((ac__type_new_ *) 0)
10960   return 0;
10961 if (sizeof (ac__type_new_))
10962   return 0;
10963   ;
10964   return 0;
10965 }
10966 _ACEOF
10967 rm -f conftest.$ac_objext
10968 if { (ac_try="$ac_compile"
10969 case "(($ac_try" in
10970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10971   *) ac_try_echo=$ac_try;;
10972 esac
10973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10974   (eval "$ac_compile") 2>conftest.er1
10975   ac_status=$?
10976   grep -v '^ *+' conftest.er1 >conftest.err
10977   rm -f conftest.er1
10978   cat conftest.err >&5
10979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10980   (exit $ac_status); } &&
10981          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10982   { (case "(($ac_try" in
10983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10984   *) ac_try_echo=$ac_try;;
10985 esac
10986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10987   (eval "$ac_try") 2>&5
10988   ac_status=$?
10989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10990   (exit $ac_status); }; } &&
10991          { ac_try='test -s conftest.$ac_objext'
10992   { (case "(($ac_try" in
10993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10994   *) ac_try_echo=$ac_try;;
10995 esac
10996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10997   (eval "$ac_try") 2>&5
10998   ac_status=$?
10999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11000   (exit $ac_status); }; }; then
11001   ac_cv_type_error_t=yes
11002 else
11003   echo "$as_me: failed program was:" >&5
11004 sed 's/^/| /' conftest.$ac_ext >&5
11005
11006         ac_cv_type_error_t=no
11007 fi
11008
11009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11010 fi
11011 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11012 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11013 if test $ac_cv_type_error_t = yes; then
11014
11015 cat >>confdefs.h <<_ACEOF
11016 #define HAVE_ERROR_T 1
11017 _ACEOF
11018
11019
11020 else
11021
11022 cat >>confdefs.h <<\_ACEOF
11023 #define error_t int
11024 _ACEOF
11025
11026 fi
11027
11028
11029
11030
11031
11032
11033
11034 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11035 do
11036 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11037 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11038 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11039 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11040   echo $ECHO_N "(cached) $ECHO_C" >&6
11041 else
11042   cat >conftest.$ac_ext <<_ACEOF
11043 /* confdefs.h.  */
11044 _ACEOF
11045 cat confdefs.h >>conftest.$ac_ext
11046 cat >>conftest.$ac_ext <<_ACEOF
11047 /* end confdefs.h.  */
11048 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11049    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11050 #define $ac_func innocuous_$ac_func
11051
11052 /* System header to define __stub macros and hopefully few prototypes,
11053     which can conflict with char $ac_func (); below.
11054     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11055     <limits.h> exists even on freestanding compilers.  */
11056
11057 #ifdef __STDC__
11058 # include <limits.h>
11059 #else
11060 # include <assert.h>
11061 #endif
11062
11063 #undef $ac_func
11064
11065 /* Override any GCC internal prototype to avoid an error.
11066    Use char because int might match the return type of a GCC
11067    builtin and then its argument prototype would still apply.  */
11068 #ifdef __cplusplus
11069 extern "C"
11070 #endif
11071 char $ac_func ();
11072 /* The GNU C library defines this for functions which it implements
11073     to always fail with ENOSYS.  Some functions are actually named
11074     something starting with __ and the normal name is an alias.  */
11075 #if defined __stub_$ac_func || defined __stub___$ac_func
11076 choke me
11077 #endif
11078
11079 int
11080 main ()
11081 {
11082 return $ac_func ();
11083   ;
11084   return 0;
11085 }
11086 _ACEOF
11087 rm -f conftest.$ac_objext conftest$ac_exeext
11088 if { (ac_try="$ac_link"
11089 case "(($ac_try" in
11090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11091   *) ac_try_echo=$ac_try;;
11092 esac
11093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11094   (eval "$ac_link") 2>conftest.er1
11095   ac_status=$?
11096   grep -v '^ *+' conftest.er1 >conftest.err
11097   rm -f conftest.er1
11098   cat conftest.err >&5
11099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11100   (exit $ac_status); } &&
11101          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11102   { (case "(($ac_try" in
11103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11104   *) ac_try_echo=$ac_try;;
11105 esac
11106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11107   (eval "$ac_try") 2>&5
11108   ac_status=$?
11109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11110   (exit $ac_status); }; } &&
11111          { ac_try='test -s conftest$ac_exeext'
11112   { (case "(($ac_try" in
11113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11114   *) ac_try_echo=$ac_try;;
11115 esac
11116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11117   (eval "$ac_try") 2>&5
11118   ac_status=$?
11119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11120   (exit $ac_status); }; }; then
11121   eval "$as_ac_var=yes"
11122 else
11123   echo "$as_me: failed program was:" >&5
11124 sed 's/^/| /' conftest.$ac_ext >&5
11125
11126         eval "$as_ac_var=no"
11127 fi
11128
11129 rm -f core conftest.err conftest.$ac_objext \
11130       conftest$ac_exeext conftest.$ac_ext
11131 fi
11132 ac_res=`eval echo '${'$as_ac_var'}'`
11133                { echo "$as_me:$LINENO: result: $ac_res" >&5
11134 echo "${ECHO_T}$ac_res" >&6; }
11135 if test `eval echo '${'$as_ac_var'}'` = yes; then
11136   cat >>confdefs.h <<_ACEOF
11137 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11138 _ACEOF
11139
11140 fi
11141 done
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11171                   stdio.h unistd.h
11172 do
11173 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11174 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11175   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11176 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11177 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11178   echo $ECHO_N "(cached) $ECHO_C" >&6
11179 fi
11180 ac_res=`eval echo '${'$as_ac_Header'}'`
11181                { echo "$as_me:$LINENO: result: $ac_res" >&5
11182 echo "${ECHO_T}$ac_res" >&6; }
11183 else
11184   # Is the header compilable?
11185 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11186 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11187 cat >conftest.$ac_ext <<_ACEOF
11188 /* confdefs.h.  */
11189 _ACEOF
11190 cat confdefs.h >>conftest.$ac_ext
11191 cat >>conftest.$ac_ext <<_ACEOF
11192 /* end confdefs.h.  */
11193 $ac_includes_default
11194 #include <$ac_header>
11195 _ACEOF
11196 rm -f conftest.$ac_objext
11197 if { (ac_try="$ac_compile"
11198 case "(($ac_try" in
11199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11200   *) ac_try_echo=$ac_try;;
11201 esac
11202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11203   (eval "$ac_compile") 2>conftest.er1
11204   ac_status=$?
11205   grep -v '^ *+' conftest.er1 >conftest.err
11206   rm -f conftest.er1
11207   cat conftest.err >&5
11208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11209   (exit $ac_status); } &&
11210          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11211   { (case "(($ac_try" in
11212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11213   *) ac_try_echo=$ac_try;;
11214 esac
11215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11216   (eval "$ac_try") 2>&5
11217   ac_status=$?
11218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11219   (exit $ac_status); }; } &&
11220          { ac_try='test -s conftest.$ac_objext'
11221   { (case "(($ac_try" in
11222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11223   *) ac_try_echo=$ac_try;;
11224 esac
11225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11226   (eval "$ac_try") 2>&5
11227   ac_status=$?
11228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229   (exit $ac_status); }; }; then
11230   ac_header_compiler=yes
11231 else
11232   echo "$as_me: failed program was:" >&5
11233 sed 's/^/| /' conftest.$ac_ext >&5
11234
11235         ac_header_compiler=no
11236 fi
11237
11238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11239 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11240 echo "${ECHO_T}$ac_header_compiler" >&6; }
11241
11242 # Is the header present?
11243 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11244 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11245 cat >conftest.$ac_ext <<_ACEOF
11246 /* confdefs.h.  */
11247 _ACEOF
11248 cat confdefs.h >>conftest.$ac_ext
11249 cat >>conftest.$ac_ext <<_ACEOF
11250 /* end confdefs.h.  */
11251 #include <$ac_header>
11252 _ACEOF
11253 if { (ac_try="$ac_cpp conftest.$ac_ext"
11254 case "(($ac_try" in
11255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11256   *) ac_try_echo=$ac_try;;
11257 esac
11258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11259   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11260   ac_status=$?
11261   grep -v '^ *+' conftest.er1 >conftest.err
11262   rm -f conftest.er1
11263   cat conftest.err >&5
11264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265   (exit $ac_status); } >/dev/null; then
11266   if test -s conftest.err; then
11267     ac_cpp_err=$ac_c_preproc_warn_flag
11268     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11269   else
11270     ac_cpp_err=
11271   fi
11272 else
11273   ac_cpp_err=yes
11274 fi
11275 if test -z "$ac_cpp_err"; then
11276   ac_header_preproc=yes
11277 else
11278   echo "$as_me: failed program was:" >&5
11279 sed 's/^/| /' conftest.$ac_ext >&5
11280
11281   ac_header_preproc=no
11282 fi
11283
11284 rm -f conftest.err conftest.$ac_ext
11285 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11286 echo "${ECHO_T}$ac_header_preproc" >&6; }
11287
11288 # So?  What about this header?
11289 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11290   yes:no: )
11291     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11292 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11293     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11294 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11295     ac_header_preproc=yes
11296     ;;
11297   no:yes:* )
11298     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11299 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11300     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11301 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11302     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11303 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11304     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11305 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11306     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11307 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11308     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11309 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11310     ( cat <<\_ASBOX
11311 ## ----------------------------------- ##
11312 ## Report this to llvmbugs@cs.uiuc.edu ##
11313 ## ----------------------------------- ##
11314 _ASBOX
11315      ) | sed "s/^/$as_me: WARNING:     /" >&2
11316     ;;
11317 esac
11318 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11319 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11320 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11321   echo $ECHO_N "(cached) $ECHO_C" >&6
11322 else
11323   eval "$as_ac_Header=\$ac_header_preproc"
11324 fi
11325 ac_res=`eval echo '${'$as_ac_Header'}'`
11326                { echo "$as_me:$LINENO: result: $ac_res" >&5
11327 echo "${ECHO_T}$ac_res" >&6; }
11328
11329 fi
11330 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11331   cat >>confdefs.h <<_ACEOF
11332 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11333 _ACEOF
11334
11335 fi
11336
11337 done
11338
11339
11340
11341
11342
11343 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11344 do
11345 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11346 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11347   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11348 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11349 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11350   echo $ECHO_N "(cached) $ECHO_C" >&6
11351 fi
11352 ac_res=`eval echo '${'$as_ac_Header'}'`
11353                { echo "$as_me:$LINENO: result: $ac_res" >&5
11354 echo "${ECHO_T}$ac_res" >&6; }
11355 else
11356   # Is the header compilable?
11357 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11358 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11359 cat >conftest.$ac_ext <<_ACEOF
11360 /* confdefs.h.  */
11361 _ACEOF
11362 cat confdefs.h >>conftest.$ac_ext
11363 cat >>conftest.$ac_ext <<_ACEOF
11364 /* end confdefs.h.  */
11365 $ac_includes_default
11366 #include <$ac_header>
11367 _ACEOF
11368 rm -f conftest.$ac_objext
11369 if { (ac_try="$ac_compile"
11370 case "(($ac_try" in
11371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11372   *) ac_try_echo=$ac_try;;
11373 esac
11374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11375   (eval "$ac_compile") 2>conftest.er1
11376   ac_status=$?
11377   grep -v '^ *+' conftest.er1 >conftest.err
11378   rm -f conftest.er1
11379   cat conftest.err >&5
11380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11381   (exit $ac_status); } &&
11382          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11383   { (case "(($ac_try" in
11384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11385   *) ac_try_echo=$ac_try;;
11386 esac
11387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11388   (eval "$ac_try") 2>&5
11389   ac_status=$?
11390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11391   (exit $ac_status); }; } &&
11392          { ac_try='test -s conftest.$ac_objext'
11393   { (case "(($ac_try" in
11394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11395   *) ac_try_echo=$ac_try;;
11396 esac
11397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11398   (eval "$ac_try") 2>&5
11399   ac_status=$?
11400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11401   (exit $ac_status); }; }; then
11402   ac_header_compiler=yes
11403 else
11404   echo "$as_me: failed program was:" >&5
11405 sed 's/^/| /' conftest.$ac_ext >&5
11406
11407         ac_header_compiler=no
11408 fi
11409
11410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11411 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11412 echo "${ECHO_T}$ac_header_compiler" >&6; }
11413
11414 # Is the header present?
11415 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11416 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11417 cat >conftest.$ac_ext <<_ACEOF
11418 /* confdefs.h.  */
11419 _ACEOF
11420 cat confdefs.h >>conftest.$ac_ext
11421 cat >>conftest.$ac_ext <<_ACEOF
11422 /* end confdefs.h.  */
11423 #include <$ac_header>
11424 _ACEOF
11425 if { (ac_try="$ac_cpp conftest.$ac_ext"
11426 case "(($ac_try" in
11427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11428   *) ac_try_echo=$ac_try;;
11429 esac
11430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11431   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11432   ac_status=$?
11433   grep -v '^ *+' conftest.er1 >conftest.err
11434   rm -f conftest.er1
11435   cat conftest.err >&5
11436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11437   (exit $ac_status); } >/dev/null; then
11438   if test -s conftest.err; then
11439     ac_cpp_err=$ac_c_preproc_warn_flag
11440     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11441   else
11442     ac_cpp_err=
11443   fi
11444 else
11445   ac_cpp_err=yes
11446 fi
11447 if test -z "$ac_cpp_err"; then
11448   ac_header_preproc=yes
11449 else
11450   echo "$as_me: failed program was:" >&5
11451 sed 's/^/| /' conftest.$ac_ext >&5
11452
11453   ac_header_preproc=no
11454 fi
11455
11456 rm -f conftest.err conftest.$ac_ext
11457 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11458 echo "${ECHO_T}$ac_header_preproc" >&6; }
11459
11460 # So?  What about this header?
11461 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11462   yes:no: )
11463     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11464 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11465     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11466 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11467     ac_header_preproc=yes
11468     ;;
11469   no:yes:* )
11470     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11471 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11472     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11473 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11474     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11475 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11476     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11477 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11478     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11479 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11480     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11481 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11482     ( cat <<\_ASBOX
11483 ## ----------------------------------- ##
11484 ## Report this to llvmbugs@cs.uiuc.edu ##
11485 ## ----------------------------------- ##
11486 _ASBOX
11487      ) | sed "s/^/$as_me: WARNING:     /" >&2
11488     ;;
11489 esac
11490 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11491 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11492 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11493   echo $ECHO_N "(cached) $ECHO_C" >&6
11494 else
11495   eval "$as_ac_Header=\$ac_header_preproc"
11496 fi
11497 ac_res=`eval echo '${'$as_ac_Header'}'`
11498                { echo "$as_me:$LINENO: result: $ac_res" >&5
11499 echo "${ECHO_T}$ac_res" >&6; }
11500
11501 fi
11502 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11503   cat >>confdefs.h <<_ACEOF
11504 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11505 _ACEOF
11506
11507 fi
11508
11509 done
11510
11511
11512
11513 for ac_header in string.h strings.h
11514 do
11515 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11516 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11517   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11518 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11519 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11520   echo $ECHO_N "(cached) $ECHO_C" >&6
11521 fi
11522 ac_res=`eval echo '${'$as_ac_Header'}'`
11523                { echo "$as_me:$LINENO: result: $ac_res" >&5
11524 echo "${ECHO_T}$ac_res" >&6; }
11525 else
11526   # Is the header compilable?
11527 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11528 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11529 cat >conftest.$ac_ext <<_ACEOF
11530 /* confdefs.h.  */
11531 _ACEOF
11532 cat confdefs.h >>conftest.$ac_ext
11533 cat >>conftest.$ac_ext <<_ACEOF
11534 /* end confdefs.h.  */
11535 $ac_includes_default
11536 #include <$ac_header>
11537 _ACEOF
11538 rm -f conftest.$ac_objext
11539 if { (ac_try="$ac_compile"
11540 case "(($ac_try" in
11541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11542   *) ac_try_echo=$ac_try;;
11543 esac
11544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11545   (eval "$ac_compile") 2>conftest.er1
11546   ac_status=$?
11547   grep -v '^ *+' conftest.er1 >conftest.err
11548   rm -f conftest.er1
11549   cat conftest.err >&5
11550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11551   (exit $ac_status); } &&
11552          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11553   { (case "(($ac_try" in
11554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11555   *) ac_try_echo=$ac_try;;
11556 esac
11557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11558   (eval "$ac_try") 2>&5
11559   ac_status=$?
11560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11561   (exit $ac_status); }; } &&
11562          { ac_try='test -s conftest.$ac_objext'
11563   { (case "(($ac_try" in
11564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11565   *) ac_try_echo=$ac_try;;
11566 esac
11567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11568   (eval "$ac_try") 2>&5
11569   ac_status=$?
11570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11571   (exit $ac_status); }; }; then
11572   ac_header_compiler=yes
11573 else
11574   echo "$as_me: failed program was:" >&5
11575 sed 's/^/| /' conftest.$ac_ext >&5
11576
11577         ac_header_compiler=no
11578 fi
11579
11580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11581 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11582 echo "${ECHO_T}$ac_header_compiler" >&6; }
11583
11584 # Is the header present?
11585 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11586 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11587 cat >conftest.$ac_ext <<_ACEOF
11588 /* confdefs.h.  */
11589 _ACEOF
11590 cat confdefs.h >>conftest.$ac_ext
11591 cat >>conftest.$ac_ext <<_ACEOF
11592 /* end confdefs.h.  */
11593 #include <$ac_header>
11594 _ACEOF
11595 if { (ac_try="$ac_cpp conftest.$ac_ext"
11596 case "(($ac_try" in
11597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11598   *) ac_try_echo=$ac_try;;
11599 esac
11600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11601   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11602   ac_status=$?
11603   grep -v '^ *+' conftest.er1 >conftest.err
11604   rm -f conftest.er1
11605   cat conftest.err >&5
11606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11607   (exit $ac_status); } >/dev/null; then
11608   if test -s conftest.err; then
11609     ac_cpp_err=$ac_c_preproc_warn_flag
11610     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11611   else
11612     ac_cpp_err=
11613   fi
11614 else
11615   ac_cpp_err=yes
11616 fi
11617 if test -z "$ac_cpp_err"; then
11618   ac_header_preproc=yes
11619 else
11620   echo "$as_me: failed program was:" >&5
11621 sed 's/^/| /' conftest.$ac_ext >&5
11622
11623   ac_header_preproc=no
11624 fi
11625
11626 rm -f conftest.err conftest.$ac_ext
11627 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11628 echo "${ECHO_T}$ac_header_preproc" >&6; }
11629
11630 # So?  What about this header?
11631 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11632   yes:no: )
11633     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11634 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11635     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11636 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11637     ac_header_preproc=yes
11638     ;;
11639   no:yes:* )
11640     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11641 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11642     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11643 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11644     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11645 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11646     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11647 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11648     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11649 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11650     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11651 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11652     ( cat <<\_ASBOX
11653 ## ----------------------------------- ##
11654 ## Report this to llvmbugs@cs.uiuc.edu ##
11655 ## ----------------------------------- ##
11656 _ASBOX
11657      ) | sed "s/^/$as_me: WARNING:     /" >&2
11658     ;;
11659 esac
11660 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11661 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11662 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11663   echo $ECHO_N "(cached) $ECHO_C" >&6
11664 else
11665   eval "$as_ac_Header=\$ac_header_preproc"
11666 fi
11667 ac_res=`eval echo '${'$as_ac_Header'}'`
11668                { echo "$as_me:$LINENO: result: $ac_res" >&5
11669 echo "${ECHO_T}$ac_res" >&6; }
11670
11671 fi
11672 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11673   cat >>confdefs.h <<_ACEOF
11674 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11675 _ACEOF
11676  break
11677 fi
11678
11679 done
11680
11681
11682
11683
11684 for ac_func in strchr index
11685 do
11686 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11687 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11688 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11689 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11690   echo $ECHO_N "(cached) $ECHO_C" >&6
11691 else
11692   cat >conftest.$ac_ext <<_ACEOF
11693 /* confdefs.h.  */
11694 _ACEOF
11695 cat confdefs.h >>conftest.$ac_ext
11696 cat >>conftest.$ac_ext <<_ACEOF
11697 /* end confdefs.h.  */
11698 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11699    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11700 #define $ac_func innocuous_$ac_func
11701
11702 /* System header to define __stub macros and hopefully few prototypes,
11703     which can conflict with char $ac_func (); below.
11704     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11705     <limits.h> exists even on freestanding compilers.  */
11706
11707 #ifdef __STDC__
11708 # include <limits.h>
11709 #else
11710 # include <assert.h>
11711 #endif
11712
11713 #undef $ac_func
11714
11715 /* Override any GCC internal prototype to avoid an error.
11716    Use char because int might match the return type of a GCC
11717    builtin and then its argument prototype would still apply.  */
11718 #ifdef __cplusplus
11719 extern "C"
11720 #endif
11721 char $ac_func ();
11722 /* The GNU C library defines this for functions which it implements
11723     to always fail with ENOSYS.  Some functions are actually named
11724     something starting with __ and the normal name is an alias.  */
11725 #if defined __stub_$ac_func || defined __stub___$ac_func
11726 choke me
11727 #endif
11728
11729 int
11730 main ()
11731 {
11732 return $ac_func ();
11733   ;
11734   return 0;
11735 }
11736 _ACEOF
11737 rm -f conftest.$ac_objext conftest$ac_exeext
11738 if { (ac_try="$ac_link"
11739 case "(($ac_try" in
11740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11741   *) ac_try_echo=$ac_try;;
11742 esac
11743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11744   (eval "$ac_link") 2>conftest.er1
11745   ac_status=$?
11746   grep -v '^ *+' conftest.er1 >conftest.err
11747   rm -f conftest.er1
11748   cat conftest.err >&5
11749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11750   (exit $ac_status); } &&
11751          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11752   { (case "(($ac_try" in
11753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11754   *) ac_try_echo=$ac_try;;
11755 esac
11756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11757   (eval "$ac_try") 2>&5
11758   ac_status=$?
11759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11760   (exit $ac_status); }; } &&
11761          { ac_try='test -s conftest$ac_exeext'
11762   { (case "(($ac_try" in
11763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11764   *) ac_try_echo=$ac_try;;
11765 esac
11766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11767   (eval "$ac_try") 2>&5
11768   ac_status=$?
11769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11770   (exit $ac_status); }; }; then
11771   eval "$as_ac_var=yes"
11772 else
11773   echo "$as_me: failed program was:" >&5
11774 sed 's/^/| /' conftest.$ac_ext >&5
11775
11776         eval "$as_ac_var=no"
11777 fi
11778
11779 rm -f core conftest.err conftest.$ac_objext \
11780       conftest$ac_exeext conftest.$ac_ext
11781 fi
11782 ac_res=`eval echo '${'$as_ac_var'}'`
11783                { echo "$as_me:$LINENO: result: $ac_res" >&5
11784 echo "${ECHO_T}$ac_res" >&6; }
11785 if test `eval echo '${'$as_ac_var'}'` = yes; then
11786   cat >>confdefs.h <<_ACEOF
11787 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11788 _ACEOF
11789  break
11790 fi
11791 done
11792
11793
11794
11795 for ac_func in strrchr rindex
11796 do
11797 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11798 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11799 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11800 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11801   echo $ECHO_N "(cached) $ECHO_C" >&6
11802 else
11803   cat >conftest.$ac_ext <<_ACEOF
11804 /* confdefs.h.  */
11805 _ACEOF
11806 cat confdefs.h >>conftest.$ac_ext
11807 cat >>conftest.$ac_ext <<_ACEOF
11808 /* end confdefs.h.  */
11809 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11810    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11811 #define $ac_func innocuous_$ac_func
11812
11813 /* System header to define __stub macros and hopefully few prototypes,
11814     which can conflict with char $ac_func (); below.
11815     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11816     <limits.h> exists even on freestanding compilers.  */
11817
11818 #ifdef __STDC__
11819 # include <limits.h>
11820 #else
11821 # include <assert.h>
11822 #endif
11823
11824 #undef $ac_func
11825
11826 /* Override any GCC internal prototype to avoid an error.
11827    Use char because int might match the return type of a GCC
11828    builtin and then its argument prototype would still apply.  */
11829 #ifdef __cplusplus
11830 extern "C"
11831 #endif
11832 char $ac_func ();
11833 /* The GNU C library defines this for functions which it implements
11834     to always fail with ENOSYS.  Some functions are actually named
11835     something starting with __ and the normal name is an alias.  */
11836 #if defined __stub_$ac_func || defined __stub___$ac_func
11837 choke me
11838 #endif
11839
11840 int
11841 main ()
11842 {
11843 return $ac_func ();
11844   ;
11845   return 0;
11846 }
11847 _ACEOF
11848 rm -f conftest.$ac_objext conftest$ac_exeext
11849 if { (ac_try="$ac_link"
11850 case "(($ac_try" in
11851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11852   *) ac_try_echo=$ac_try;;
11853 esac
11854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11855   (eval "$ac_link") 2>conftest.er1
11856   ac_status=$?
11857   grep -v '^ *+' conftest.er1 >conftest.err
11858   rm -f conftest.er1
11859   cat conftest.err >&5
11860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861   (exit $ac_status); } &&
11862          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11863   { (case "(($ac_try" in
11864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11865   *) ac_try_echo=$ac_try;;
11866 esac
11867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11868   (eval "$ac_try") 2>&5
11869   ac_status=$?
11870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11871   (exit $ac_status); }; } &&
11872          { ac_try='test -s conftest$ac_exeext'
11873   { (case "(($ac_try" in
11874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11875   *) ac_try_echo=$ac_try;;
11876 esac
11877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11878   (eval "$ac_try") 2>&5
11879   ac_status=$?
11880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881   (exit $ac_status); }; }; then
11882   eval "$as_ac_var=yes"
11883 else
11884   echo "$as_me: failed program was:" >&5
11885 sed 's/^/| /' conftest.$ac_ext >&5
11886
11887         eval "$as_ac_var=no"
11888 fi
11889
11890 rm -f core conftest.err conftest.$ac_objext \
11891       conftest$ac_exeext conftest.$ac_ext
11892 fi
11893 ac_res=`eval echo '${'$as_ac_var'}'`
11894                { echo "$as_me:$LINENO: result: $ac_res" >&5
11895 echo "${ECHO_T}$ac_res" >&6; }
11896 if test `eval echo '${'$as_ac_var'}'` = yes; then
11897   cat >>confdefs.h <<_ACEOF
11898 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11899 _ACEOF
11900  break
11901 fi
11902 done
11903
11904
11905
11906 for ac_func in memcpy bcopy
11907 do
11908 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11909 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11910 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11911 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11912   echo $ECHO_N "(cached) $ECHO_C" >&6
11913 else
11914   cat >conftest.$ac_ext <<_ACEOF
11915 /* confdefs.h.  */
11916 _ACEOF
11917 cat confdefs.h >>conftest.$ac_ext
11918 cat >>conftest.$ac_ext <<_ACEOF
11919 /* end confdefs.h.  */
11920 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11921    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11922 #define $ac_func innocuous_$ac_func
11923
11924 /* System header to define __stub macros and hopefully few prototypes,
11925     which can conflict with char $ac_func (); below.
11926     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11927     <limits.h> exists even on freestanding compilers.  */
11928
11929 #ifdef __STDC__
11930 # include <limits.h>
11931 #else
11932 # include <assert.h>
11933 #endif
11934
11935 #undef $ac_func
11936
11937 /* Override any GCC internal prototype to avoid an error.
11938    Use char because int might match the return type of a GCC
11939    builtin and then its argument prototype would still apply.  */
11940 #ifdef __cplusplus
11941 extern "C"
11942 #endif
11943 char $ac_func ();
11944 /* The GNU C library defines this for functions which it implements
11945     to always fail with ENOSYS.  Some functions are actually named
11946     something starting with __ and the normal name is an alias.  */
11947 #if defined __stub_$ac_func || defined __stub___$ac_func
11948 choke me
11949 #endif
11950
11951 int
11952 main ()
11953 {
11954 return $ac_func ();
11955   ;
11956   return 0;
11957 }
11958 _ACEOF
11959 rm -f conftest.$ac_objext conftest$ac_exeext
11960 if { (ac_try="$ac_link"
11961 case "(($ac_try" in
11962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11963   *) ac_try_echo=$ac_try;;
11964 esac
11965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11966   (eval "$ac_link") 2>conftest.er1
11967   ac_status=$?
11968   grep -v '^ *+' conftest.er1 >conftest.err
11969   rm -f conftest.er1
11970   cat conftest.err >&5
11971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11972   (exit $ac_status); } &&
11973          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11974   { (case "(($ac_try" in
11975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11976   *) ac_try_echo=$ac_try;;
11977 esac
11978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11979   (eval "$ac_try") 2>&5
11980   ac_status=$?
11981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11982   (exit $ac_status); }; } &&
11983          { ac_try='test -s conftest$ac_exeext'
11984   { (case "(($ac_try" in
11985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11986   *) ac_try_echo=$ac_try;;
11987 esac
11988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11989   (eval "$ac_try") 2>&5
11990   ac_status=$?
11991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11992   (exit $ac_status); }; }; then
11993   eval "$as_ac_var=yes"
11994 else
11995   echo "$as_me: failed program was:" >&5
11996 sed 's/^/| /' conftest.$ac_ext >&5
11997
11998         eval "$as_ac_var=no"
11999 fi
12000
12001 rm -f core conftest.err conftest.$ac_objext \
12002       conftest$ac_exeext conftest.$ac_ext
12003 fi
12004 ac_res=`eval echo '${'$as_ac_var'}'`
12005                { echo "$as_me:$LINENO: result: $ac_res" >&5
12006 echo "${ECHO_T}$ac_res" >&6; }
12007 if test `eval echo '${'$as_ac_var'}'` = yes; then
12008   cat >>confdefs.h <<_ACEOF
12009 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12010 _ACEOF
12011  break
12012 fi
12013 done
12014
12015
12016
12017 for ac_func in memmove strcmp
12018 do
12019 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12020 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12021 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12022 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12023   echo $ECHO_N "(cached) $ECHO_C" >&6
12024 else
12025   cat >conftest.$ac_ext <<_ACEOF
12026 /* confdefs.h.  */
12027 _ACEOF
12028 cat confdefs.h >>conftest.$ac_ext
12029 cat >>conftest.$ac_ext <<_ACEOF
12030 /* end confdefs.h.  */
12031 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12032    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12033 #define $ac_func innocuous_$ac_func
12034
12035 /* System header to define __stub macros and hopefully few prototypes,
12036     which can conflict with char $ac_func (); below.
12037     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12038     <limits.h> exists even on freestanding compilers.  */
12039
12040 #ifdef __STDC__
12041 # include <limits.h>
12042 #else
12043 # include <assert.h>
12044 #endif
12045
12046 #undef $ac_func
12047
12048 /* Override any GCC internal prototype to avoid an error.
12049    Use char because int might match the return type of a GCC
12050    builtin and then its argument prototype would still apply.  */
12051 #ifdef __cplusplus
12052 extern "C"
12053 #endif
12054 char $ac_func ();
12055 /* The GNU C library defines this for functions which it implements
12056     to always fail with ENOSYS.  Some functions are actually named
12057     something starting with __ and the normal name is an alias.  */
12058 #if defined __stub_$ac_func || defined __stub___$ac_func
12059 choke me
12060 #endif
12061
12062 int
12063 main ()
12064 {
12065 return $ac_func ();
12066   ;
12067   return 0;
12068 }
12069 _ACEOF
12070 rm -f conftest.$ac_objext conftest$ac_exeext
12071 if { (ac_try="$ac_link"
12072 case "(($ac_try" in
12073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12074   *) ac_try_echo=$ac_try;;
12075 esac
12076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12077   (eval "$ac_link") 2>conftest.er1
12078   ac_status=$?
12079   grep -v '^ *+' conftest.er1 >conftest.err
12080   rm -f conftest.er1
12081   cat conftest.err >&5
12082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12083   (exit $ac_status); } &&
12084          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12085   { (case "(($ac_try" in
12086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12087   *) ac_try_echo=$ac_try;;
12088 esac
12089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12090   (eval "$ac_try") 2>&5
12091   ac_status=$?
12092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12093   (exit $ac_status); }; } &&
12094          { ac_try='test -s conftest$ac_exeext'
12095   { (case "(($ac_try" in
12096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12097   *) ac_try_echo=$ac_try;;
12098 esac
12099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12100   (eval "$ac_try") 2>&5
12101   ac_status=$?
12102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12103   (exit $ac_status); }; }; then
12104   eval "$as_ac_var=yes"
12105 else
12106   echo "$as_me: failed program was:" >&5
12107 sed 's/^/| /' conftest.$ac_ext >&5
12108
12109         eval "$as_ac_var=no"
12110 fi
12111
12112 rm -f core conftest.err conftest.$ac_objext \
12113       conftest$ac_exeext conftest.$ac_ext
12114 fi
12115 ac_res=`eval echo '${'$as_ac_var'}'`
12116                { echo "$as_me:$LINENO: result: $ac_res" >&5
12117 echo "${ECHO_T}$ac_res" >&6; }
12118 if test `eval echo '${'$as_ac_var'}'` = yes; then
12119   cat >>confdefs.h <<_ACEOF
12120 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12121 _ACEOF
12122
12123 fi
12124 done
12125
12126
12127
12128
12129 for ac_func in closedir opendir readdir
12130 do
12131 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12132 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12133 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12134 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12135   echo $ECHO_N "(cached) $ECHO_C" >&6
12136 else
12137   cat >conftest.$ac_ext <<_ACEOF
12138 /* confdefs.h.  */
12139 _ACEOF
12140 cat confdefs.h >>conftest.$ac_ext
12141 cat >>conftest.$ac_ext <<_ACEOF
12142 /* end confdefs.h.  */
12143 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12144    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12145 #define $ac_func innocuous_$ac_func
12146
12147 /* System header to define __stub macros and hopefully few prototypes,
12148     which can conflict with char $ac_func (); below.
12149     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12150     <limits.h> exists even on freestanding compilers.  */
12151
12152 #ifdef __STDC__
12153 # include <limits.h>
12154 #else
12155 # include <assert.h>
12156 #endif
12157
12158 #undef $ac_func
12159
12160 /* Override any GCC internal prototype to avoid an error.
12161    Use char because int might match the return type of a GCC
12162    builtin and then its argument prototype would still apply.  */
12163 #ifdef __cplusplus
12164 extern "C"
12165 #endif
12166 char $ac_func ();
12167 /* The GNU C library defines this for functions which it implements
12168     to always fail with ENOSYS.  Some functions are actually named
12169     something starting with __ and the normal name is an alias.  */
12170 #if defined __stub_$ac_func || defined __stub___$ac_func
12171 choke me
12172 #endif
12173
12174 int
12175 main ()
12176 {
12177 return $ac_func ();
12178   ;
12179   return 0;
12180 }
12181 _ACEOF
12182 rm -f conftest.$ac_objext conftest$ac_exeext
12183 if { (ac_try="$ac_link"
12184 case "(($ac_try" in
12185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12186   *) ac_try_echo=$ac_try;;
12187 esac
12188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12189   (eval "$ac_link") 2>conftest.er1
12190   ac_status=$?
12191   grep -v '^ *+' conftest.er1 >conftest.err
12192   rm -f conftest.er1
12193   cat conftest.err >&5
12194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12195   (exit $ac_status); } &&
12196          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12197   { (case "(($ac_try" in
12198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12199   *) ac_try_echo=$ac_try;;
12200 esac
12201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12202   (eval "$ac_try") 2>&5
12203   ac_status=$?
12204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205   (exit $ac_status); }; } &&
12206          { ac_try='test -s conftest$ac_exeext'
12207   { (case "(($ac_try" in
12208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12209   *) ac_try_echo=$ac_try;;
12210 esac
12211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12212   (eval "$ac_try") 2>&5
12213   ac_status=$?
12214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12215   (exit $ac_status); }; }; then
12216   eval "$as_ac_var=yes"
12217 else
12218   echo "$as_me: failed program was:" >&5
12219 sed 's/^/| /' conftest.$ac_ext >&5
12220
12221         eval "$as_ac_var=no"
12222 fi
12223
12224 rm -f core conftest.err conftest.$ac_objext \
12225       conftest$ac_exeext conftest.$ac_ext
12226 fi
12227 ac_res=`eval echo '${'$as_ac_var'}'`
12228                { echo "$as_me:$LINENO: result: $ac_res" >&5
12229 echo "${ECHO_T}$ac_res" >&6; }
12230 if test `eval echo '${'$as_ac_var'}'` = yes; then
12231   cat >>confdefs.h <<_ACEOF
12232 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12233 _ACEOF
12234
12235 fi
12236 done
12237
12238
12239 # Check whether --enable-shared was given.
12240 if test "${enable_shared+set}" = set; then
12241   enableval=$enable_shared; p=${PACKAGE-default}
12242     case $enableval in
12243     yes) enable_shared=yes ;;
12244     no) enable_shared=no ;;
12245     *)
12246       enable_shared=no
12247       # Look at the argument we got.  We use all the common list separators.
12248       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12249       for pkg in $enableval; do
12250         IFS="$lt_save_ifs"
12251         if test "X$pkg" = "X$p"; then
12252           enable_shared=yes
12253         fi
12254       done
12255       IFS="$lt_save_ifs"
12256       ;;
12257     esac
12258 else
12259   enable_shared=yes
12260 fi
12261
12262
12263 # Check whether --enable-static was given.
12264 if test "${enable_static+set}" = set; then
12265   enableval=$enable_static; p=${PACKAGE-default}
12266     case $enableval in
12267     yes) enable_static=yes ;;
12268     no) enable_static=no ;;
12269     *)
12270      enable_static=no
12271       # Look at the argument we got.  We use all the common list separators.
12272       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12273       for pkg in $enableval; do
12274         IFS="$lt_save_ifs"
12275         if test "X$pkg" = "X$p"; then
12276           enable_static=yes
12277         fi
12278       done
12279       IFS="$lt_save_ifs"
12280       ;;
12281     esac
12282 else
12283   enable_static=yes
12284 fi
12285
12286
12287 # Check whether --enable-fast-install was given.
12288 if test "${enable_fast_install+set}" = set; then
12289   enableval=$enable_fast_install; p=${PACKAGE-default}
12290     case $enableval in
12291     yes) enable_fast_install=yes ;;
12292     no) enable_fast_install=no ;;
12293     *)
12294       enable_fast_install=no
12295       # Look at the argument we got.  We use all the common list separators.
12296       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12297       for pkg in $enableval; do
12298         IFS="$lt_save_ifs"
12299         if test "X$pkg" = "X$p"; then
12300           enable_fast_install=yes
12301         fi
12302       done
12303       IFS="$lt_save_ifs"
12304       ;;
12305     esac
12306 else
12307   enable_fast_install=yes
12308 fi
12309
12310
12311 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12312 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12313 if test "${lt_cv_path_SED+set}" = set; then
12314   echo $ECHO_N "(cached) $ECHO_C" >&6
12315 else
12316   # Loop through the user's path and test for sed and gsed.
12317 # Then use that list of sed's as ones to test for truncation.
12318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12319 for as_dir in $PATH
12320 do
12321   IFS=$as_save_IFS
12322   test -z "$as_dir" && as_dir=.
12323   for lt_ac_prog in sed gsed; do
12324     for ac_exec_ext in '' $ac_executable_extensions; do
12325       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12326         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12327       fi
12328     done
12329   done
12330 done
12331 lt_ac_max=0
12332 lt_ac_count=0
12333 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12334 # along with /bin/sed that truncates output.
12335 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12336   test ! -f $lt_ac_sed && continue
12337   cat /dev/null > conftest.in
12338   lt_ac_count=0
12339   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12340   # Check for GNU sed and select it if it is found.
12341   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12342     lt_cv_path_SED=$lt_ac_sed
12343     break
12344   fi
12345   while true; do
12346     cat conftest.in conftest.in >conftest.tmp
12347     mv conftest.tmp conftest.in
12348     cp conftest.in conftest.nl
12349     echo >>conftest.nl
12350     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12351     cmp -s conftest.out conftest.nl || break
12352     # 10000 chars as input seems more than enough
12353     test $lt_ac_count -gt 10 && break
12354     lt_ac_count=`expr $lt_ac_count + 1`
12355     if test $lt_ac_count -gt $lt_ac_max; then
12356       lt_ac_max=$lt_ac_count
12357       lt_cv_path_SED=$lt_ac_sed
12358     fi
12359   done
12360 done
12361
12362 fi
12363
12364 SED=$lt_cv_path_SED
12365 { echo "$as_me:$LINENO: result: $SED" >&5
12366 echo "${ECHO_T}$SED" >&6; }
12367
12368
12369 # Check whether --with-gnu-ld was given.
12370 if test "${with_gnu_ld+set}" = set; then
12371   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12372 else
12373   with_gnu_ld=no
12374 fi
12375
12376 ac_prog=ld
12377 if test "$GCC" = yes; then
12378   # Check if gcc -print-prog-name=ld gives a path.
12379   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12380 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12381   case $host in
12382   *-*-mingw*)
12383     # gcc leaves a trailing carriage return which upsets mingw
12384     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12385   *)
12386     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12387   esac
12388   case $ac_prog in
12389     # Accept absolute paths.
12390     [\\/]* | ?:[\\/]*)
12391       re_direlt='/[^/][^/]*/\.\./'
12392       # Canonicalize the pathname of ld
12393       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12394       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12395         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12396       done
12397       test -z "$LD" && LD="$ac_prog"
12398       ;;
12399   "")
12400     # If it fails, then pretend we aren't using GCC.
12401     ac_prog=ld
12402     ;;
12403   *)
12404     # If it is relative, then search for the first ld in PATH.
12405     with_gnu_ld=unknown
12406     ;;
12407   esac
12408 elif test "$with_gnu_ld" = yes; then
12409   { echo "$as_me:$LINENO: checking for GNU ld" >&5
12410 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12411 else
12412   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12413 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12414 fi
12415 if test "${lt_cv_path_LD+set}" = set; then
12416   echo $ECHO_N "(cached) $ECHO_C" >&6
12417 else
12418   if test -z "$LD"; then
12419   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12420   for ac_dir in $PATH; do
12421     IFS="$lt_save_ifs"
12422     test -z "$ac_dir" && ac_dir=.
12423     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12424       lt_cv_path_LD="$ac_dir/$ac_prog"
12425       # Check to see if the program is GNU ld.  I'd rather use --version,
12426       # but apparently some variants of GNU ld only accept -v.
12427       # Break only if it was the GNU/non-GNU ld that we prefer.
12428       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12429       *GNU* | *'with BFD'*)
12430         test "$with_gnu_ld" != no && break
12431         ;;
12432       *)
12433         test "$with_gnu_ld" != yes && break
12434         ;;
12435       esac
12436     fi
12437   done
12438   IFS="$lt_save_ifs"
12439 else
12440   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12441 fi
12442 fi
12443
12444 LD="$lt_cv_path_LD"
12445 if test -n "$LD"; then
12446   { echo "$as_me:$LINENO: result: $LD" >&5
12447 echo "${ECHO_T}$LD" >&6; }
12448 else
12449   { echo "$as_me:$LINENO: result: no" >&5
12450 echo "${ECHO_T}no" >&6; }
12451 fi
12452 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12453 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12454    { (exit 1); exit 1; }; }
12455 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12456 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12457 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12458   echo $ECHO_N "(cached) $ECHO_C" >&6
12459 else
12460   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12461 case `$LD -v 2>&1 </dev/null` in
12462 *GNU* | *'with BFD'*)
12463   lt_cv_prog_gnu_ld=yes
12464   ;;
12465 *)
12466   lt_cv_prog_gnu_ld=no
12467   ;;
12468 esac
12469 fi
12470 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12471 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12472 with_gnu_ld=$lt_cv_prog_gnu_ld
12473
12474
12475 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12476 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12477 if test "${lt_cv_ld_reload_flag+set}" = set; then
12478   echo $ECHO_N "(cached) $ECHO_C" >&6
12479 else
12480   lt_cv_ld_reload_flag='-r'
12481 fi
12482 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12483 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12484 reload_flag=$lt_cv_ld_reload_flag
12485 case $reload_flag in
12486 "" | " "*) ;;
12487 *) reload_flag=" $reload_flag" ;;
12488 esac
12489 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12490 case $host_os in
12491   darwin*)
12492     if test "$GCC" = yes; then
12493       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12494     else
12495       reload_cmds='$LD$reload_flag -o $output$reload_objs'
12496     fi
12497     ;;
12498 esac
12499
12500 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12501 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12502 if test "${lt_cv_deplibs_check_method+set}" = set; then
12503   echo $ECHO_N "(cached) $ECHO_C" >&6
12504 else
12505   lt_cv_file_magic_cmd='$MAGIC_CMD'
12506 lt_cv_file_magic_test_file=
12507 lt_cv_deplibs_check_method='unknown'
12508 # Need to set the preceding variable on all platforms that support
12509 # interlibrary dependencies.
12510 # 'none' -- dependencies not supported.
12511 # `unknown' -- same as none, but documents that we really don't know.
12512 # 'pass_all' -- all dependencies passed with no checks.
12513 # 'test_compile' -- check by making test program.
12514 # 'file_magic [[regex]]' -- check by looking for files in library path
12515 # which responds to the $file_magic_cmd with a given extended regex.
12516 # If you have `file' or equivalent on your system and you're not sure
12517 # whether `pass_all' will *always* work, you probably want this one.
12518
12519 case $host_os in
12520 aix4* | aix5*)
12521   lt_cv_deplibs_check_method=pass_all
12522   ;;
12523
12524 beos*)
12525   lt_cv_deplibs_check_method=pass_all
12526   ;;
12527
12528 bsdi[45]*)
12529   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12530   lt_cv_file_magic_cmd='/usr/bin/file -L'
12531   lt_cv_file_magic_test_file=/shlib/libc.so
12532   ;;
12533
12534 cygwin*)
12535   # func_win32_libid is a shell function defined in ltmain.sh
12536   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12537   lt_cv_file_magic_cmd='func_win32_libid'
12538   ;;
12539
12540 mingw* | pw32*)
12541   # Base MSYS/MinGW do not provide the 'file' command needed by
12542   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12543   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12544   lt_cv_file_magic_cmd='$OBJDUMP -f'
12545   ;;
12546
12547 darwin* | rhapsody*)
12548   lt_cv_deplibs_check_method=pass_all
12549   ;;
12550
12551 freebsd* | kfreebsd*-gnu | dragonfly*)
12552   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12553     case $host_cpu in
12554     i*86 )
12555       # Not sure whether the presence of OpenBSD here was a mistake.
12556       # Let's accept both of them until this is cleared up.
12557       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12558       lt_cv_file_magic_cmd=/usr/bin/file
12559       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12560       ;;
12561     esac
12562   else
12563     lt_cv_deplibs_check_method=pass_all
12564   fi
12565   ;;
12566
12567 gnu*)
12568   lt_cv_deplibs_check_method=pass_all
12569   ;;
12570
12571 hpux10.20* | hpux11*)
12572   lt_cv_file_magic_cmd=/usr/bin/file
12573   case $host_cpu in
12574   ia64*)
12575     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12576     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12577     ;;
12578   hppa*64*)
12579     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]'
12580     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12581     ;;
12582   *)
12583     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12584     lt_cv_file_magic_test_file=/usr/lib/libc.sl
12585     ;;
12586   esac
12587   ;;
12588
12589 interix3*)
12590   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12591   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12592   ;;
12593
12594 irix5* | irix6* | nonstopux*)
12595   case $LD in
12596   *-32|*"-32 ") libmagic=32-bit;;
12597   *-n32|*"-n32 ") libmagic=N32;;
12598   *-64|*"-64 ") libmagic=64-bit;;
12599   *) libmagic=never-match;;
12600   esac
12601   lt_cv_deplibs_check_method=pass_all
12602   ;;
12603
12604 # This must be Linux ELF.
12605 linux*)
12606   lt_cv_deplibs_check_method=pass_all
12607   ;;
12608
12609 netbsd*)
12610   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12611     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12612   else
12613     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12614   fi
12615   ;;
12616
12617 newos6*)
12618   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12619   lt_cv_file_magic_cmd=/usr/bin/file
12620   lt_cv_file_magic_test_file=/usr/lib/libnls.so
12621   ;;
12622
12623 nto-qnx*)
12624   lt_cv_deplibs_check_method=unknown
12625   ;;
12626
12627 openbsd*)
12628   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12629     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12630   else
12631     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12632   fi
12633   ;;
12634
12635 osf3* | osf4* | osf5*)
12636   lt_cv_deplibs_check_method=pass_all
12637   ;;
12638
12639 solaris*)
12640   lt_cv_deplibs_check_method=pass_all
12641   ;;
12642
12643 sysv4 | sysv4.3*)
12644   case $host_vendor in
12645   motorola)
12646     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]'
12647     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12648     ;;
12649   ncr)
12650     lt_cv_deplibs_check_method=pass_all
12651     ;;
12652   sequent)
12653     lt_cv_file_magic_cmd='/bin/file'
12654     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12655     ;;
12656   sni)
12657     lt_cv_file_magic_cmd='/bin/file'
12658     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12659     lt_cv_file_magic_test_file=/lib/libc.so
12660     ;;
12661   siemens)
12662     lt_cv_deplibs_check_method=pass_all
12663     ;;
12664   pc)
12665     lt_cv_deplibs_check_method=pass_all
12666     ;;
12667   esac
12668   ;;
12669
12670 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12671   lt_cv_deplibs_check_method=pass_all
12672   ;;
12673 esac
12674
12675 fi
12676 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12677 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12678 file_magic_cmd=$lt_cv_file_magic_cmd
12679 deplibs_check_method=$lt_cv_deplibs_check_method
12680 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12681
12682
12683
12684 # If no C compiler was specified, use CC.
12685 LTCC=${LTCC-"$CC"}
12686
12687 # If no C compiler flags were specified, use CFLAGS.
12688 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12689
12690 # Allow CC to be a program name with arguments.
12691 compiler=$CC
12692
12693 # Check whether --enable-libtool-lock was given.
12694 if test "${enable_libtool_lock+set}" = set; then
12695   enableval=$enable_libtool_lock;
12696 fi
12697
12698 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12699
12700 # Some flags need to be propagated to the compiler or linker for good
12701 # libtool support.
12702 case $host in
12703 ia64-*-hpux*)
12704   # Find out which ABI we are using.
12705   echo 'int i;' > conftest.$ac_ext
12706   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12707   (eval $ac_compile) 2>&5
12708   ac_status=$?
12709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12710   (exit $ac_status); }; then
12711     case `/usr/bin/file conftest.$ac_objext` in
12712     *ELF-32*)
12713       HPUX_IA64_MODE="32"
12714       ;;
12715     *ELF-64*)
12716       HPUX_IA64_MODE="64"
12717       ;;
12718     esac
12719   fi
12720   rm -rf conftest*
12721   ;;
12722 *-*-irix6*)
12723   # Find out which ABI we are using.
12724   echo '#line 12724 "configure"' > conftest.$ac_ext
12725   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12726   (eval $ac_compile) 2>&5
12727   ac_status=$?
12728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12729   (exit $ac_status); }; then
12730    if test "$lt_cv_prog_gnu_ld" = yes; then
12731     case `/usr/bin/file conftest.$ac_objext` in
12732     *32-bit*)
12733       LD="${LD-ld} -melf32bsmip"
12734       ;;
12735     *N32*)
12736       LD="${LD-ld} -melf32bmipn32"
12737       ;;
12738     *64-bit*)
12739       LD="${LD-ld} -melf64bmip"
12740       ;;
12741     esac
12742    else
12743     case `/usr/bin/file conftest.$ac_objext` in
12744     *32-bit*)
12745       LD="${LD-ld} -32"
12746       ;;
12747     *N32*)
12748       LD="${LD-ld} -n32"
12749       ;;
12750     *64-bit*)
12751       LD="${LD-ld} -64"
12752       ;;
12753     esac
12754    fi
12755   fi
12756   rm -rf conftest*
12757   ;;
12758
12759 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12760   # Find out which ABI we are using.
12761   echo 'int i;' > conftest.$ac_ext
12762   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12763   (eval $ac_compile) 2>&5
12764   ac_status=$?
12765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12766   (exit $ac_status); }; then
12767     case `/usr/bin/file conftest.o` in
12768     *32-bit*)
12769       case $host in
12770         x86_64-*linux*)
12771           LD="${LD-ld} -m elf_i386"
12772           ;;
12773         ppc64-*linux*|powerpc64-*linux*)
12774           LD="${LD-ld} -m elf32ppclinux"
12775           ;;
12776         s390x-*linux*)
12777           LD="${LD-ld} -m elf_s390"
12778           ;;
12779         sparc64-*linux*)
12780           LD="${LD-ld} -m elf32_sparc"
12781           ;;
12782       esac
12783       ;;
12784     *64-bit*)
12785       case $host in
12786         x86_64-*linux*)
12787           LD="${LD-ld} -m elf_x86_64"
12788           ;;
12789         ppc*-*linux*|powerpc*-*linux*)
12790           LD="${LD-ld} -m elf64ppc"
12791           ;;
12792         s390*-*linux*)
12793           LD="${LD-ld} -m elf64_s390"
12794           ;;
12795         sparc*-*linux*)
12796           LD="${LD-ld} -m elf64_sparc"
12797           ;;
12798       esac
12799       ;;
12800     esac
12801   fi
12802   rm -rf conftest*
12803   ;;
12804
12805 *-*-sco3.2v5*)
12806   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12807   SAVE_CFLAGS="$CFLAGS"
12808   CFLAGS="$CFLAGS -belf"
12809   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12810 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
12811 if test "${lt_cv_cc_needs_belf+set}" = set; then
12812   echo $ECHO_N "(cached) $ECHO_C" >&6
12813 else
12814   ac_ext=c
12815 ac_cpp='$CPP $CPPFLAGS'
12816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12819
12820      cat >conftest.$ac_ext <<_ACEOF
12821 /* confdefs.h.  */
12822 _ACEOF
12823 cat confdefs.h >>conftest.$ac_ext
12824 cat >>conftest.$ac_ext <<_ACEOF
12825 /* end confdefs.h.  */
12826
12827 int
12828 main ()
12829 {
12830
12831   ;
12832   return 0;
12833 }
12834 _ACEOF
12835 rm -f conftest.$ac_objext conftest$ac_exeext
12836 if { (ac_try="$ac_link"
12837 case "(($ac_try" in
12838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12839   *) ac_try_echo=$ac_try;;
12840 esac
12841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12842   (eval "$ac_link") 2>conftest.er1
12843   ac_status=$?
12844   grep -v '^ *+' conftest.er1 >conftest.err
12845   rm -f conftest.er1
12846   cat conftest.err >&5
12847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12848   (exit $ac_status); } &&
12849          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12850   { (case "(($ac_try" in
12851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12852   *) ac_try_echo=$ac_try;;
12853 esac
12854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12855   (eval "$ac_try") 2>&5
12856   ac_status=$?
12857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12858   (exit $ac_status); }; } &&
12859          { ac_try='test -s conftest$ac_exeext'
12860   { (case "(($ac_try" in
12861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12862   *) ac_try_echo=$ac_try;;
12863 esac
12864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12865   (eval "$ac_try") 2>&5
12866   ac_status=$?
12867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12868   (exit $ac_status); }; }; then
12869   lt_cv_cc_needs_belf=yes
12870 else
12871   echo "$as_me: failed program was:" >&5
12872 sed 's/^/| /' conftest.$ac_ext >&5
12873
12874         lt_cv_cc_needs_belf=no
12875 fi
12876
12877 rm -f core conftest.err conftest.$ac_objext \
12878       conftest$ac_exeext conftest.$ac_ext
12879      ac_ext=c
12880 ac_cpp='$CPP $CPPFLAGS'
12881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12884
12885 fi
12886 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12887 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
12888   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12889     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12890     CFLAGS="$SAVE_CFLAGS"
12891   fi
12892   ;;
12893 sparc*-*solaris*)
12894   # Find out which ABI we are using.
12895   echo 'int i;' > conftest.$ac_ext
12896   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12897   (eval $ac_compile) 2>&5
12898   ac_status=$?
12899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12900   (exit $ac_status); }; then
12901     case `/usr/bin/file conftest.o` in
12902     *64-bit*)
12903       case $lt_cv_prog_gnu_ld in
12904       yes*) LD="${LD-ld} -m elf64_sparc" ;;
12905       *)    LD="${LD-ld} -64" ;;
12906       esac
12907       ;;
12908     esac
12909   fi
12910   rm -rf conftest*
12911   ;;
12912
12913
12914 esac
12915
12916 need_locks="$enable_libtool_lock"
12917
12918
12919
12920
12921 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12922     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12923     (test "X$CXX" != "Xg++"))) ; then
12924   ac_ext=cpp
12925 ac_cpp='$CXXCPP $CPPFLAGS'
12926 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12927 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12928 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12929 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12930 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12931 if test -z "$CXXCPP"; then
12932   if test "${ac_cv_prog_CXXCPP+set}" = set; then
12933   echo $ECHO_N "(cached) $ECHO_C" >&6
12934 else
12935       # Double quotes because CXXCPP needs to be expanded
12936     for CXXCPP in "$CXX -E" "/lib/cpp"
12937     do
12938       ac_preproc_ok=false
12939 for ac_cxx_preproc_warn_flag in '' yes
12940 do
12941   # Use a header file that comes with gcc, so configuring glibc
12942   # with a fresh cross-compiler works.
12943   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12944   # <limits.h> exists even on freestanding compilers.
12945   # On the NeXT, cc -E runs the code through the compiler's parser,
12946   # not just through cpp. "Syntax error" is here to catch this case.
12947   cat >conftest.$ac_ext <<_ACEOF
12948 /* confdefs.h.  */
12949 _ACEOF
12950 cat confdefs.h >>conftest.$ac_ext
12951 cat >>conftest.$ac_ext <<_ACEOF
12952 /* end confdefs.h.  */
12953 #ifdef __STDC__
12954 # include <limits.h>
12955 #else
12956 # include <assert.h>
12957 #endif
12958                      Syntax error
12959 _ACEOF
12960 if { (ac_try="$ac_cpp conftest.$ac_ext"
12961 case "(($ac_try" in
12962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12963   *) ac_try_echo=$ac_try;;
12964 esac
12965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12966   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12967   ac_status=$?
12968   grep -v '^ *+' conftest.er1 >conftest.err
12969   rm -f conftest.er1
12970   cat conftest.err >&5
12971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12972   (exit $ac_status); } >/dev/null; then
12973   if test -s conftest.err; then
12974     ac_cpp_err=$ac_cxx_preproc_warn_flag
12975     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12976   else
12977     ac_cpp_err=
12978   fi
12979 else
12980   ac_cpp_err=yes
12981 fi
12982 if test -z "$ac_cpp_err"; then
12983   :
12984 else
12985   echo "$as_me: failed program was:" >&5
12986 sed 's/^/| /' conftest.$ac_ext >&5
12987
12988   # Broken: fails on valid input.
12989 continue
12990 fi
12991
12992 rm -f conftest.err conftest.$ac_ext
12993
12994   # OK, works on sane cases.  Now check whether nonexistent headers
12995   # can be detected and how.
12996   cat >conftest.$ac_ext <<_ACEOF
12997 /* confdefs.h.  */
12998 _ACEOF
12999 cat confdefs.h >>conftest.$ac_ext
13000 cat >>conftest.$ac_ext <<_ACEOF
13001 /* end confdefs.h.  */
13002 #include <ac_nonexistent.h>
13003 _ACEOF
13004 if { (ac_try="$ac_cpp conftest.$ac_ext"
13005 case "(($ac_try" in
13006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13007   *) ac_try_echo=$ac_try;;
13008 esac
13009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13010   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13011   ac_status=$?
13012   grep -v '^ *+' conftest.er1 >conftest.err
13013   rm -f conftest.er1
13014   cat conftest.err >&5
13015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13016   (exit $ac_status); } >/dev/null; then
13017   if test -s conftest.err; then
13018     ac_cpp_err=$ac_cxx_preproc_warn_flag
13019     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13020   else
13021     ac_cpp_err=
13022   fi
13023 else
13024   ac_cpp_err=yes
13025 fi
13026 if test -z "$ac_cpp_err"; then
13027   # Broken: success on invalid input.
13028 continue
13029 else
13030   echo "$as_me: failed program was:" >&5
13031 sed 's/^/| /' conftest.$ac_ext >&5
13032
13033   # Passes both tests.
13034 ac_preproc_ok=:
13035 break
13036 fi
13037
13038 rm -f conftest.err conftest.$ac_ext
13039
13040 done
13041 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13042 rm -f conftest.err conftest.$ac_ext
13043 if $ac_preproc_ok; then
13044   break
13045 fi
13046
13047     done
13048     ac_cv_prog_CXXCPP=$CXXCPP
13049
13050 fi
13051   CXXCPP=$ac_cv_prog_CXXCPP
13052 else
13053   ac_cv_prog_CXXCPP=$CXXCPP
13054 fi
13055 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
13056 echo "${ECHO_T}$CXXCPP" >&6; }
13057 ac_preproc_ok=false
13058 for ac_cxx_preproc_warn_flag in '' yes
13059 do
13060   # Use a header file that comes with gcc, so configuring glibc
13061   # with a fresh cross-compiler works.
13062   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13063   # <limits.h> exists even on freestanding compilers.
13064   # On the NeXT, cc -E runs the code through the compiler's parser,
13065   # not just through cpp. "Syntax error" is here to catch this case.
13066   cat >conftest.$ac_ext <<_ACEOF
13067 /* confdefs.h.  */
13068 _ACEOF
13069 cat confdefs.h >>conftest.$ac_ext
13070 cat >>conftest.$ac_ext <<_ACEOF
13071 /* end confdefs.h.  */
13072 #ifdef __STDC__
13073 # include <limits.h>
13074 #else
13075 # include <assert.h>
13076 #endif
13077                      Syntax error
13078 _ACEOF
13079 if { (ac_try="$ac_cpp conftest.$ac_ext"
13080 case "(($ac_try" in
13081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13082   *) ac_try_echo=$ac_try;;
13083 esac
13084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13085   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13086   ac_status=$?
13087   grep -v '^ *+' conftest.er1 >conftest.err
13088   rm -f conftest.er1
13089   cat conftest.err >&5
13090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13091   (exit $ac_status); } >/dev/null; then
13092   if test -s conftest.err; then
13093     ac_cpp_err=$ac_cxx_preproc_warn_flag
13094     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13095   else
13096     ac_cpp_err=
13097   fi
13098 else
13099   ac_cpp_err=yes
13100 fi
13101 if test -z "$ac_cpp_err"; then
13102   :
13103 else
13104   echo "$as_me: failed program was:" >&5
13105 sed 's/^/| /' conftest.$ac_ext >&5
13106
13107   # Broken: fails on valid input.
13108 continue
13109 fi
13110
13111 rm -f conftest.err conftest.$ac_ext
13112
13113   # OK, works on sane cases.  Now check whether nonexistent headers
13114   # can be detected and how.
13115   cat >conftest.$ac_ext <<_ACEOF
13116 /* confdefs.h.  */
13117 _ACEOF
13118 cat confdefs.h >>conftest.$ac_ext
13119 cat >>conftest.$ac_ext <<_ACEOF
13120 /* end confdefs.h.  */
13121 #include <ac_nonexistent.h>
13122 _ACEOF
13123 if { (ac_try="$ac_cpp conftest.$ac_ext"
13124 case "(($ac_try" in
13125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13126   *) ac_try_echo=$ac_try;;
13127 esac
13128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13129   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13130   ac_status=$?
13131   grep -v '^ *+' conftest.er1 >conftest.err
13132   rm -f conftest.er1
13133   cat conftest.err >&5
13134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135   (exit $ac_status); } >/dev/null; then
13136   if test -s conftest.err; then
13137     ac_cpp_err=$ac_cxx_preproc_warn_flag
13138     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13139   else
13140     ac_cpp_err=
13141   fi
13142 else
13143   ac_cpp_err=yes
13144 fi
13145 if test -z "$ac_cpp_err"; then
13146   # Broken: success on invalid input.
13147 continue
13148 else
13149   echo "$as_me: failed program was:" >&5
13150 sed 's/^/| /' conftest.$ac_ext >&5
13151
13152   # Passes both tests.
13153 ac_preproc_ok=:
13154 break
13155 fi
13156
13157 rm -f conftest.err conftest.$ac_ext
13158
13159 done
13160 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13161 rm -f conftest.err conftest.$ac_ext
13162 if $ac_preproc_ok; then
13163   :
13164 else
13165   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13166 See \`config.log' for more details." >&5
13167 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13168 See \`config.log' for more details." >&2;}
13169    { (exit 1); exit 1; }; }
13170 fi
13171
13172 ac_ext=cpp
13173 ac_cpp='$CXXCPP $CPPFLAGS'
13174 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13175 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13176 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13177
13178 fi
13179
13180
13181 ac_ext=f
13182 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13183 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13184 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13185 if test -n "$ac_tool_prefix"; then
13186   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
13187   do
13188     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13189 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13190 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13192 if test "${ac_cv_prog_F77+set}" = set; then
13193   echo $ECHO_N "(cached) $ECHO_C" >&6
13194 else
13195   if test -n "$F77"; then
13196   ac_cv_prog_F77="$F77" # Let the user override the test.
13197 else
13198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13199 for as_dir in $PATH
13200 do
13201   IFS=$as_save_IFS
13202   test -z "$as_dir" && as_dir=.
13203   for ac_exec_ext in '' $ac_executable_extensions; do
13204   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13205     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13206     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13207     break 2
13208   fi
13209 done
13210 done
13211 IFS=$as_save_IFS
13212
13213 fi
13214 fi
13215 F77=$ac_cv_prog_F77
13216 if test -n "$F77"; then
13217   { echo "$as_me:$LINENO: result: $F77" >&5
13218 echo "${ECHO_T}$F77" >&6; }
13219 else
13220   { echo "$as_me:$LINENO: result: no" >&5
13221 echo "${ECHO_T}no" >&6; }
13222 fi
13223
13224
13225     test -n "$F77" && break
13226   done
13227 fi
13228 if test -z "$F77"; then
13229   ac_ct_F77=$F77
13230   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
13231 do
13232   # Extract the first word of "$ac_prog", so it can be a program name with args.
13233 set dummy $ac_prog; ac_word=$2
13234 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13236 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13237   echo $ECHO_N "(cached) $ECHO_C" >&6
13238 else
13239   if test -n "$ac_ct_F77"; then
13240   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13241 else
13242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13243 for as_dir in $PATH
13244 do
13245   IFS=$as_save_IFS
13246   test -z "$as_dir" && as_dir=.
13247   for ac_exec_ext in '' $ac_executable_extensions; do
13248   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13249     ac_cv_prog_ac_ct_F77="$ac_prog"
13250     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13251     break 2
13252   fi
13253 done
13254 done
13255 IFS=$as_save_IFS
13256
13257 fi
13258 fi
13259 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13260 if test -n "$ac_ct_F77"; then
13261   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13262 echo "${ECHO_T}$ac_ct_F77" >&6; }
13263 else
13264   { echo "$as_me:$LINENO: result: no" >&5
13265 echo "${ECHO_T}no" >&6; }
13266 fi
13267
13268
13269   test -n "$ac_ct_F77" && break
13270 done
13271
13272   if test "x$ac_ct_F77" = x; then
13273     F77=""
13274   else
13275     case $cross_compiling:$ac_tool_warned in
13276 yes:)
13277 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13278 whose name does not start with the host triplet.  If you think this
13279 configuration is useful to you, please write to autoconf@gnu.org." >&5
13280 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13281 whose name does not start with the host triplet.  If you think this
13282 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13283 ac_tool_warned=yes ;;
13284 esac
13285     F77=$ac_ct_F77
13286   fi
13287 fi
13288
13289
13290 # Provide some information about the compiler.
13291 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13292 ac_compiler=`set X $ac_compile; echo $2`
13293 { (ac_try="$ac_compiler --version >&5"
13294 case "(($ac_try" in
13295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13296   *) ac_try_echo=$ac_try;;
13297 esac
13298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13299   (eval "$ac_compiler --version >&5") 2>&5
13300   ac_status=$?
13301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13302   (exit $ac_status); }
13303 { (ac_try="$ac_compiler -v >&5"
13304 case "(($ac_try" in
13305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13306   *) ac_try_echo=$ac_try;;
13307 esac
13308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13309   (eval "$ac_compiler -v >&5") 2>&5
13310   ac_status=$?
13311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13312   (exit $ac_status); }
13313 { (ac_try="$ac_compiler -V >&5"
13314 case "(($ac_try" in
13315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13316   *) ac_try_echo=$ac_try;;
13317 esac
13318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13319   (eval "$ac_compiler -V >&5") 2>&5
13320   ac_status=$?
13321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13322   (exit $ac_status); }
13323 rm -f a.out
13324
13325 # If we don't use `.F' as extension, the preprocessor is not run on the
13326 # input file.  (Note that this only needs to work for GNU compilers.)
13327 ac_save_ext=$ac_ext
13328 ac_ext=F
13329 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13330 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13331 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13332   echo $ECHO_N "(cached) $ECHO_C" >&6
13333 else
13334   cat >conftest.$ac_ext <<_ACEOF
13335       program main
13336 #ifndef __GNUC__
13337        choke me
13338 #endif
13339
13340       end
13341 _ACEOF
13342 rm -f conftest.$ac_objext
13343 if { (ac_try="$ac_compile"
13344 case "(($ac_try" in
13345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13346   *) ac_try_echo=$ac_try;;
13347 esac
13348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13349   (eval "$ac_compile") 2>conftest.er1
13350   ac_status=$?
13351   grep -v '^ *+' conftest.er1 >conftest.err
13352   rm -f conftest.er1
13353   cat conftest.err >&5
13354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13355   (exit $ac_status); } &&
13356          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13357   { (case "(($ac_try" in
13358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13359   *) ac_try_echo=$ac_try;;
13360 esac
13361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13362   (eval "$ac_try") 2>&5
13363   ac_status=$?
13364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13365   (exit $ac_status); }; } &&
13366          { ac_try='test -s conftest.$ac_objext'
13367   { (case "(($ac_try" in
13368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13369   *) ac_try_echo=$ac_try;;
13370 esac
13371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13372   (eval "$ac_try") 2>&5
13373   ac_status=$?
13374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13375   (exit $ac_status); }; }; then
13376   ac_compiler_gnu=yes
13377 else
13378   echo "$as_me: failed program was:" >&5
13379 sed 's/^/| /' conftest.$ac_ext >&5
13380
13381         ac_compiler_gnu=no
13382 fi
13383
13384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13385 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13386
13387 fi
13388 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13389 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13390 ac_ext=$ac_save_ext
13391 ac_test_FFLAGS=${FFLAGS+set}
13392 ac_save_FFLAGS=$FFLAGS
13393 FFLAGS=
13394 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13395 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13396 if test "${ac_cv_prog_f77_g+set}" = set; then
13397   echo $ECHO_N "(cached) $ECHO_C" >&6
13398 else
13399   FFLAGS=-g
13400 cat >conftest.$ac_ext <<_ACEOF
13401       program main
13402
13403       end
13404 _ACEOF
13405 rm -f conftest.$ac_objext
13406 if { (ac_try="$ac_compile"
13407 case "(($ac_try" in
13408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13409   *) ac_try_echo=$ac_try;;
13410 esac
13411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13412   (eval "$ac_compile") 2>conftest.er1
13413   ac_status=$?
13414   grep -v '^ *+' conftest.er1 >conftest.err
13415   rm -f conftest.er1
13416   cat conftest.err >&5
13417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13418   (exit $ac_status); } &&
13419          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13420   { (case "(($ac_try" in
13421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13422   *) ac_try_echo=$ac_try;;
13423 esac
13424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13425   (eval "$ac_try") 2>&5
13426   ac_status=$?
13427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13428   (exit $ac_status); }; } &&
13429          { ac_try='test -s conftest.$ac_objext'
13430   { (case "(($ac_try" in
13431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13432   *) ac_try_echo=$ac_try;;
13433 esac
13434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13435   (eval "$ac_try") 2>&5
13436   ac_status=$?
13437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13438   (exit $ac_status); }; }; then
13439   ac_cv_prog_f77_g=yes
13440 else
13441   echo "$as_me: failed program was:" >&5
13442 sed 's/^/| /' conftest.$ac_ext >&5
13443
13444         ac_cv_prog_f77_g=no
13445 fi
13446
13447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13448
13449 fi
13450 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13451 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13452 if test "$ac_test_FFLAGS" = set; then
13453   FFLAGS=$ac_save_FFLAGS
13454 elif test $ac_cv_prog_f77_g = yes; then
13455   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13456     FFLAGS="-g -O2"
13457   else
13458     FFLAGS="-g"
13459   fi
13460 else
13461   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13462     FFLAGS="-O2"
13463   else
13464     FFLAGS=
13465   fi
13466 fi
13467
13468 G77=`test $ac_compiler_gnu = yes && echo yes`
13469 ac_ext=c
13470 ac_cpp='$CPP $CPPFLAGS'
13471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13474
13475
13476
13477 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13478
13479 # find the maximum length of command line arguments
13480 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13481 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13482 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13483   echo $ECHO_N "(cached) $ECHO_C" >&6
13484 else
13485     i=0
13486   teststring="ABCD"
13487
13488   case $build_os in
13489   msdosdjgpp*)
13490     # On DJGPP, this test can blow up pretty badly due to problems in libc
13491     # (any single argument exceeding 2000 bytes causes a buffer overrun
13492     # during glob expansion).  Even if it were fixed, the result of this
13493     # check would be larger than it should be.
13494     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
13495     ;;
13496
13497   gnu*)
13498     # Under GNU Hurd, this test is not required because there is
13499     # no limit to the length of command line arguments.
13500     # Libtool will interpret -1 as no limit whatsoever
13501     lt_cv_sys_max_cmd_len=-1;
13502     ;;
13503
13504   cygwin* | mingw*)
13505     # On Win9x/ME, this test blows up -- it succeeds, but takes
13506     # about 5 minutes as the teststring grows exponentially.
13507     # Worse, since 9x/ME are not pre-emptively multitasking,
13508     # you end up with a "frozen" computer, even though with patience
13509     # the test eventually succeeds (with a max line length of 256k).
13510     # Instead, let's just punt: use the minimum linelength reported by
13511     # all of the supported platforms: 8192 (on NT/2K/XP).
13512     lt_cv_sys_max_cmd_len=8192;
13513     ;;
13514
13515   amigaos*)
13516     # On AmigaOS with pdksh, this test takes hours, literally.
13517     # So we just punt and use a minimum line length of 8192.
13518     lt_cv_sys_max_cmd_len=8192;
13519     ;;
13520
13521   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13522     # This has been around since 386BSD, at least.  Likely further.
13523     if test -x /sbin/sysctl; then
13524       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13525     elif test -x /usr/sbin/sysctl; then
13526       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13527     else
13528       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
13529     fi
13530     # And add a safety zone
13531     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13532     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13533     ;;
13534
13535   interix*)
13536     # We know the value 262144 and hardcode it with a safety zone (like BSD)
13537     lt_cv_sys_max_cmd_len=196608
13538     ;;
13539
13540   osf*)
13541     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13542     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13543     # nice to cause kernel panics so lets avoid the loop below.
13544     # First set a reasonable default.
13545     lt_cv_sys_max_cmd_len=16384
13546     #
13547     if test -x /sbin/sysconfig; then
13548       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13549         *1*) lt_cv_sys_max_cmd_len=-1 ;;
13550       esac
13551     fi
13552     ;;
13553   sco3.2v5*)
13554     lt_cv_sys_max_cmd_len=102400
13555     ;;
13556   sysv5* | sco5v6* | sysv4.2uw2*)
13557     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13558     if test -n "$kargmax"; then
13559       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
13560     else
13561       lt_cv_sys_max_cmd_len=32768
13562     fi
13563     ;;
13564   *)
13565     # If test is not a shell built-in, we'll probably end up computing a
13566     # maximum length that is only half of the actual maximum length, but
13567     # we can't tell.
13568     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13569     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13570                = "XX$teststring") >/dev/null 2>&1 &&
13571             new_result=`expr "X$teststring" : ".*" 2>&1` &&
13572             lt_cv_sys_max_cmd_len=$new_result &&
13573             test $i != 17 # 1/2 MB should be enough
13574     do
13575       i=`expr $i + 1`
13576       teststring=$teststring$teststring
13577     done
13578     teststring=
13579     # Add a significant safety factor because C++ compilers can tack on massive
13580     # amounts of additional arguments before passing them to the linker.
13581     # It appears as though 1/2 is a usable value.
13582     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13583     ;;
13584   esac
13585
13586 fi
13587
13588 if test -n $lt_cv_sys_max_cmd_len ; then
13589   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13590 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13591 else
13592   { echo "$as_me:$LINENO: result: none" >&5
13593 echo "${ECHO_T}none" >&6; }
13594 fi
13595
13596
13597
13598
13599 # Check for command to grab the raw symbol name followed by C symbol from nm.
13600 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13601 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13602 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13603   echo $ECHO_N "(cached) $ECHO_C" >&6
13604 else
13605
13606 # These are sane defaults that work on at least a few old systems.
13607 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
13608
13609 # Character class describing NM global symbol codes.
13610 symcode='[BCDEGRST]'
13611
13612 # Regexp to match symbols that can be accessed directly from C.
13613 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13614
13615 # Transform an extracted symbol line into a proper C declaration
13616 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13617
13618 # Transform an extracted symbol line into symbol name and symbol address
13619 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'"
13620
13621 # Define system-specific variables.
13622 case $host_os in
13623 aix*)
13624   symcode='[BCDT]'
13625   ;;
13626 cygwin* | mingw* | pw32*)
13627   symcode='[ABCDGISTW]'
13628   ;;
13629 hpux*) # Its linker distinguishes data from code symbols
13630   if test "$host_cpu" = ia64; then
13631     symcode='[ABCDEGRST]'
13632   fi
13633   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13634   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'"
13635   ;;
13636 linux*)
13637   if test "$host_cpu" = ia64; then
13638     symcode='[ABCDGIRSTW]'
13639     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13640     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'"
13641   fi
13642   ;;
13643 irix* | nonstopux*)
13644   symcode='[BCDEGRST]'
13645   ;;
13646 osf*)
13647   symcode='[BCDEGQRST]'
13648   ;;
13649 solaris*)
13650   symcode='[BDRT]'
13651   ;;
13652 sco3.2v5*)
13653   symcode='[DT]'
13654   ;;
13655 sysv4.2uw2*)
13656   symcode='[DT]'
13657   ;;
13658 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13659   symcode='[ABDT]'
13660   ;;
13661 sysv4)
13662   symcode='[DFNSTU]'
13663   ;;
13664 esac
13665
13666 # Handle CRLF in mingw tool chain
13667 opt_cr=
13668 case $build_os in
13669 mingw*)
13670   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13671   ;;
13672 esac
13673
13674 # If we're using GNU nm, then use its standard symbol codes.
13675 case `$NM -V 2>&1` in
13676 *GNU* | *'with BFD'*)
13677   symcode='[ABCDGIRSTW]' ;;
13678 esac
13679
13680 # Try without a prefix undercore, then with it.
13681 for ac_symprfx in "" "_"; do
13682
13683   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13684   symxfrm="\\1 $ac_symprfx\\2 \\2"
13685
13686   # Write the raw and C identifiers.
13687   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13688
13689   # Check to see that the pipe works correctly.
13690   pipe_works=no
13691
13692   rm -f conftest*
13693   cat > conftest.$ac_ext <<EOF
13694 #ifdef __cplusplus
13695 extern "C" {
13696 #endif
13697 char nm_test_var;
13698 void nm_test_func(){}
13699 #ifdef __cplusplus
13700 }
13701 #endif
13702 int main(){nm_test_var='a';nm_test_func();return(0);}
13703 EOF
13704
13705   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13706   (eval $ac_compile) 2>&5
13707   ac_status=$?
13708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13709   (exit $ac_status); }; then
13710     # Now try to grab the symbols.
13711     nlist=conftest.nm
13712     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13713   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13714   ac_status=$?
13715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13716   (exit $ac_status); } && test -s "$nlist"; then
13717       # Try sorting and uniquifying the output.
13718       if sort "$nlist" | uniq > "$nlist"T; then
13719         mv -f "$nlist"T "$nlist"
13720       else
13721         rm -f "$nlist"T
13722       fi
13723
13724       # Make sure that we snagged all the symbols we need.
13725       if grep ' nm_test_var$' "$nlist" >/dev/null; then
13726         if grep ' nm_test_func$' "$nlist" >/dev/null; then
13727           cat <<EOF > conftest.$ac_ext
13728 #ifdef __cplusplus
13729 extern "C" {
13730 #endif
13731
13732 EOF
13733           # Now generate the symbol file.
13734           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13735
13736           cat <<EOF >> conftest.$ac_ext
13737 #if defined (__STDC__) && __STDC__
13738 # define lt_ptr_t void *
13739 #else
13740 # define lt_ptr_t char *
13741 # define const
13742 #endif
13743
13744 /* The mapping between symbol names and symbols. */
13745 const struct {
13746   const char *name;
13747   lt_ptr_t address;
13748 }
13749 lt_preloaded_symbols[] =
13750 {
13751 EOF
13752           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13753           cat <<\EOF >> conftest.$ac_ext
13754   {0, (lt_ptr_t) 0}
13755 };
13756
13757 #ifdef __cplusplus
13758 }
13759 #endif
13760 EOF
13761           # Now try linking the two files.
13762           mv conftest.$ac_objext conftstm.$ac_objext
13763           lt_save_LIBS="$LIBS"
13764           lt_save_CFLAGS="$CFLAGS"
13765           LIBS="conftstm.$ac_objext"
13766           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13767           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13768   (eval $ac_link) 2>&5
13769   ac_status=$?
13770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13771   (exit $ac_status); } && test -s conftest${ac_exeext}; then
13772             pipe_works=yes
13773           fi
13774           LIBS="$lt_save_LIBS"
13775           CFLAGS="$lt_save_CFLAGS"
13776         else
13777           echo "cannot find nm_test_func in $nlist" >&5
13778         fi
13779       else
13780         echo "cannot find nm_test_var in $nlist" >&5
13781       fi
13782     else
13783       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13784     fi
13785   else
13786     echo "$progname: failed program was:" >&5
13787     cat conftest.$ac_ext >&5
13788   fi
13789   rm -f conftest* conftst*
13790
13791   # Do not use the global_symbol_pipe unless it works.
13792   if test "$pipe_works" = yes; then
13793     break
13794   else
13795     lt_cv_sys_global_symbol_pipe=
13796   fi
13797 done
13798
13799 fi
13800
13801 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13802   lt_cv_sys_global_symbol_to_cdecl=
13803 fi
13804 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13805   { echo "$as_me:$LINENO: result: failed" >&5
13806 echo "${ECHO_T}failed" >&6; }
13807 else
13808   { echo "$as_me:$LINENO: result: ok" >&5
13809 echo "${ECHO_T}ok" >&6; }
13810 fi
13811
13812 { echo "$as_me:$LINENO: checking for objdir" >&5
13813 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
13814 if test "${lt_cv_objdir+set}" = set; then
13815   echo $ECHO_N "(cached) $ECHO_C" >&6
13816 else
13817   rm -f .libs 2>/dev/null
13818 mkdir .libs 2>/dev/null
13819 if test -d .libs; then
13820   lt_cv_objdir=.libs
13821 else
13822   # MS-DOS does not allow filenames that begin with a dot.
13823   lt_cv_objdir=_libs
13824 fi
13825 rmdir .libs 2>/dev/null
13826 fi
13827 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13828 echo "${ECHO_T}$lt_cv_objdir" >&6; }
13829 objdir=$lt_cv_objdir
13830
13831
13832
13833
13834
13835 case $host_os in
13836 aix3*)
13837   # AIX sometimes has problems with the GCC collect2 program.  For some
13838   # reason, if we set the COLLECT_NAMES environment variable, the problems
13839   # vanish in a puff of smoke.
13840   if test "X${COLLECT_NAMES+set}" != Xset; then
13841     COLLECT_NAMES=
13842     export COLLECT_NAMES
13843   fi
13844   ;;
13845 esac
13846
13847 # Sed substitution that helps us do robust quoting.  It backslashifies
13848 # metacharacters that are still active within double-quoted strings.
13849 Xsed='sed -e 1s/^X//'
13850 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13851
13852 # Same as above, but do not quote variable references.
13853 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13854
13855 # Sed substitution to delay expansion of an escaped shell variable in a
13856 # double_quote_subst'ed string.
13857 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13858
13859 # Sed substitution to avoid accidental globbing in evaled expressions
13860 no_glob_subst='s/\*/\\\*/g'
13861
13862 # Constants:
13863 rm="rm -f"
13864
13865 # Global variables:
13866 default_ofile=mklib
13867 can_build_shared=yes
13868
13869 # All known linkers require a `.a' archive for static linking (except MSVC,
13870 # which needs '.lib').
13871 libext=a
13872 ltmain="$ac_aux_dir/ltmain.sh"
13873 ofile="$default_ofile"
13874 with_gnu_ld="$lt_cv_prog_gnu_ld"
13875
13876 if test -n "$ac_tool_prefix"; then
13877   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13878 set dummy ${ac_tool_prefix}ar; ac_word=$2
13879 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13881 if test "${ac_cv_prog_AR+set}" = set; then
13882   echo $ECHO_N "(cached) $ECHO_C" >&6
13883 else
13884   if test -n "$AR"; then
13885   ac_cv_prog_AR="$AR" # Let the user override the test.
13886 else
13887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13888 for as_dir in $PATH
13889 do
13890   IFS=$as_save_IFS
13891   test -z "$as_dir" && as_dir=.
13892   for ac_exec_ext in '' $ac_executable_extensions; do
13893   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13894     ac_cv_prog_AR="${ac_tool_prefix}ar"
13895     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13896     break 2
13897   fi
13898 done
13899 done
13900 IFS=$as_save_IFS
13901
13902 fi
13903 fi
13904 AR=$ac_cv_prog_AR
13905 if test -n "$AR"; then
13906   { echo "$as_me:$LINENO: result: $AR" >&5
13907 echo "${ECHO_T}$AR" >&6; }
13908 else
13909   { echo "$as_me:$LINENO: result: no" >&5
13910 echo "${ECHO_T}no" >&6; }
13911 fi
13912
13913
13914 fi
13915 if test -z "$ac_cv_prog_AR"; then
13916   ac_ct_AR=$AR
13917   # Extract the first word of "ar", so it can be a program name with args.
13918 set dummy ar; ac_word=$2
13919 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13921 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13922   echo $ECHO_N "(cached) $ECHO_C" >&6
13923 else
13924   if test -n "$ac_ct_AR"; then
13925   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13926 else
13927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13928 for as_dir in $PATH
13929 do
13930   IFS=$as_save_IFS
13931   test -z "$as_dir" && as_dir=.
13932   for ac_exec_ext in '' $ac_executable_extensions; do
13933   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13934     ac_cv_prog_ac_ct_AR="ar"
13935     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13936     break 2
13937   fi
13938 done
13939 done
13940 IFS=$as_save_IFS
13941
13942 fi
13943 fi
13944 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13945 if test -n "$ac_ct_AR"; then
13946   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13947 echo "${ECHO_T}$ac_ct_AR" >&6; }
13948 else
13949   { echo "$as_me:$LINENO: result: no" >&5
13950 echo "${ECHO_T}no" >&6; }
13951 fi
13952
13953   if test "x$ac_ct_AR" = x; then
13954     AR="false"
13955   else
13956     case $cross_compiling:$ac_tool_warned in
13957 yes:)
13958 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13959 whose name does not start with the host triplet.  If you think this
13960 configuration is useful to you, please write to autoconf@gnu.org." >&5
13961 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13962 whose name does not start with the host triplet.  If you think this
13963 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13964 ac_tool_warned=yes ;;
13965 esac
13966     AR=$ac_ct_AR
13967   fi
13968 else
13969   AR="$ac_cv_prog_AR"
13970 fi
13971
13972 if test -n "$ac_tool_prefix"; then
13973   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13974 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13975 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13977 if test "${ac_cv_prog_RANLIB+set}" = set; then
13978   echo $ECHO_N "(cached) $ECHO_C" >&6
13979 else
13980   if test -n "$RANLIB"; then
13981   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13982 else
13983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13984 for as_dir in $PATH
13985 do
13986   IFS=$as_save_IFS
13987   test -z "$as_dir" && as_dir=.
13988   for ac_exec_ext in '' $ac_executable_extensions; do
13989   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13990     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13991     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13992     break 2
13993   fi
13994 done
13995 done
13996 IFS=$as_save_IFS
13997
13998 fi
13999 fi
14000 RANLIB=$ac_cv_prog_RANLIB
14001 if test -n "$RANLIB"; then
14002   { echo "$as_me:$LINENO: result: $RANLIB" >&5
14003 echo "${ECHO_T}$RANLIB" >&6; }
14004 else
14005   { echo "$as_me:$LINENO: result: no" >&5
14006 echo "${ECHO_T}no" >&6; }
14007 fi
14008
14009
14010 fi
14011 if test -z "$ac_cv_prog_RANLIB"; then
14012   ac_ct_RANLIB=$RANLIB
14013   # Extract the first word of "ranlib", so it can be a program name with args.
14014 set dummy ranlib; ac_word=$2
14015 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14017 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14018   echo $ECHO_N "(cached) $ECHO_C" >&6
14019 else
14020   if test -n "$ac_ct_RANLIB"; then
14021   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14022 else
14023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14024 for as_dir in $PATH
14025 do
14026   IFS=$as_save_IFS
14027   test -z "$as_dir" && as_dir=.
14028   for ac_exec_ext in '' $ac_executable_extensions; do
14029   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14030     ac_cv_prog_ac_ct_RANLIB="ranlib"
14031     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14032     break 2
14033   fi
14034 done
14035 done
14036 IFS=$as_save_IFS
14037
14038 fi
14039 fi
14040 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14041 if test -n "$ac_ct_RANLIB"; then
14042   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14043 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14044 else
14045   { echo "$as_me:$LINENO: result: no" >&5
14046 echo "${ECHO_T}no" >&6; }
14047 fi
14048
14049   if test "x$ac_ct_RANLIB" = x; then
14050     RANLIB=":"
14051   else
14052     case $cross_compiling:$ac_tool_warned in
14053 yes:)
14054 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14055 whose name does not start with the host triplet.  If you think this
14056 configuration is useful to you, please write to autoconf@gnu.org." >&5
14057 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14058 whose name does not start with the host triplet.  If you think this
14059 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14060 ac_tool_warned=yes ;;
14061 esac
14062     RANLIB=$ac_ct_RANLIB
14063   fi
14064 else
14065   RANLIB="$ac_cv_prog_RANLIB"
14066 fi
14067
14068 if test -n "$ac_tool_prefix"; then
14069   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14070 set dummy ${ac_tool_prefix}strip; ac_word=$2
14071 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14073 if test "${ac_cv_prog_STRIP+set}" = set; then
14074   echo $ECHO_N "(cached) $ECHO_C" >&6
14075 else
14076   if test -n "$STRIP"; then
14077   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14078 else
14079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14080 for as_dir in $PATH
14081 do
14082   IFS=$as_save_IFS
14083   test -z "$as_dir" && as_dir=.
14084   for ac_exec_ext in '' $ac_executable_extensions; do
14085   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14086     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14087     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14088     break 2
14089   fi
14090 done
14091 done
14092 IFS=$as_save_IFS
14093
14094 fi
14095 fi
14096 STRIP=$ac_cv_prog_STRIP
14097 if test -n "$STRIP"; then
14098   { echo "$as_me:$LINENO: result: $STRIP" >&5
14099 echo "${ECHO_T}$STRIP" >&6; }
14100 else
14101   { echo "$as_me:$LINENO: result: no" >&5
14102 echo "${ECHO_T}no" >&6; }
14103 fi
14104
14105
14106 fi
14107 if test -z "$ac_cv_prog_STRIP"; then
14108   ac_ct_STRIP=$STRIP
14109   # Extract the first word of "strip", so it can be a program name with args.
14110 set dummy strip; ac_word=$2
14111 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14113 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14114   echo $ECHO_N "(cached) $ECHO_C" >&6
14115 else
14116   if test -n "$ac_ct_STRIP"; then
14117   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14118 else
14119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14120 for as_dir in $PATH
14121 do
14122   IFS=$as_save_IFS
14123   test -z "$as_dir" && as_dir=.
14124   for ac_exec_ext in '' $ac_executable_extensions; do
14125   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14126     ac_cv_prog_ac_ct_STRIP="strip"
14127     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14128     break 2
14129   fi
14130 done
14131 done
14132 IFS=$as_save_IFS
14133
14134 fi
14135 fi
14136 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14137 if test -n "$ac_ct_STRIP"; then
14138   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14139 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14140 else
14141   { echo "$as_me:$LINENO: result: no" >&5
14142 echo "${ECHO_T}no" >&6; }
14143 fi
14144
14145   if test "x$ac_ct_STRIP" = x; then
14146     STRIP=":"
14147   else
14148     case $cross_compiling:$ac_tool_warned in
14149 yes:)
14150 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14151 whose name does not start with the host triplet.  If you think this
14152 configuration is useful to you, please write to autoconf@gnu.org." >&5
14153 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14154 whose name does not start with the host triplet.  If you think this
14155 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14156 ac_tool_warned=yes ;;
14157 esac
14158     STRIP=$ac_ct_STRIP
14159   fi
14160 else
14161   STRIP="$ac_cv_prog_STRIP"
14162 fi
14163
14164
14165 old_CC="$CC"
14166 old_CFLAGS="$CFLAGS"
14167
14168 # Set sane defaults for various variables
14169 test -z "$AR" && AR=ar
14170 test -z "$AR_FLAGS" && AR_FLAGS=cru
14171 test -z "$AS" && AS=as
14172 test -z "$CC" && CC=cc
14173 test -z "$LTCC" && LTCC=$CC
14174 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14175 test -z "$DLLTOOL" && DLLTOOL=dlltool
14176 test -z "$LD" && LD=ld
14177 test -z "$LN_S" && LN_S="ln -s"
14178 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14179 test -z "$NM" && NM=nm
14180 test -z "$SED" && SED=sed
14181 test -z "$OBJDUMP" && OBJDUMP=objdump
14182 test -z "$RANLIB" && RANLIB=:
14183 test -z "$STRIP" && STRIP=:
14184 test -z "$ac_objext" && ac_objext=o
14185
14186 # Determine commands to create old-style static archives.
14187 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14188 old_postinstall_cmds='chmod 644 $oldlib'
14189 old_postuninstall_cmds=
14190
14191 if test -n "$RANLIB"; then
14192   case $host_os in
14193   openbsd*)
14194     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14195     ;;
14196   *)
14197     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14198     ;;
14199   esac
14200   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14201 fi
14202
14203 for cc_temp in $compiler""; do
14204   case $cc_temp in
14205     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14206     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14207     \-*) ;;
14208     *) break;;
14209   esac
14210 done
14211 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14212
14213
14214 # Only perform the check for file, if the check method requires it
14215 case $deplibs_check_method in
14216 file_magic*)
14217   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14218     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14219 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14220 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14221   echo $ECHO_N "(cached) $ECHO_C" >&6
14222 else
14223   case $MAGIC_CMD in
14224 [\\/*] |  ?:[\\/]*)
14225   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14226   ;;
14227 *)
14228   lt_save_MAGIC_CMD="$MAGIC_CMD"
14229   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14230   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14231   for ac_dir in $ac_dummy; do
14232     IFS="$lt_save_ifs"
14233     test -z "$ac_dir" && ac_dir=.
14234     if test -f $ac_dir/${ac_tool_prefix}file; then
14235       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14236       if test -n "$file_magic_test_file"; then
14237         case $deplibs_check_method in
14238         "file_magic "*)
14239           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14240           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14241           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14242             $EGREP "$file_magic_regex" > /dev/null; then
14243             :
14244           else
14245             cat <<EOF 1>&2
14246
14247 *** Warning: the command libtool uses to detect shared libraries,
14248 *** $file_magic_cmd, produces output that libtool cannot recognize.
14249 *** The result is that libtool may fail to recognize shared libraries
14250 *** as such.  This will affect the creation of libtool libraries that
14251 *** depend on shared libraries, but programs linked with such libtool
14252 *** libraries will work regardless of this problem.  Nevertheless, you
14253 *** may want to report the problem to your system manager and/or to
14254 *** bug-libtool@gnu.org
14255
14256 EOF
14257           fi ;;
14258         esac
14259       fi
14260       break
14261     fi
14262   done
14263   IFS="$lt_save_ifs"
14264   MAGIC_CMD="$lt_save_MAGIC_CMD"
14265   ;;
14266 esac
14267 fi
14268
14269 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14270 if test -n "$MAGIC_CMD"; then
14271   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14272 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14273 else
14274   { echo "$as_me:$LINENO: result: no" >&5
14275 echo "${ECHO_T}no" >&6; }
14276 fi
14277
14278 if test -z "$lt_cv_path_MAGIC_CMD"; then
14279   if test -n "$ac_tool_prefix"; then
14280     { echo "$as_me:$LINENO: checking for file" >&5
14281 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14282 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14283   echo $ECHO_N "(cached) $ECHO_C" >&6
14284 else
14285   case $MAGIC_CMD in
14286 [\\/*] |  ?:[\\/]*)
14287   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14288   ;;
14289 *)
14290   lt_save_MAGIC_CMD="$MAGIC_CMD"
14291   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14292   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14293   for ac_dir in $ac_dummy; do
14294     IFS="$lt_save_ifs"
14295     test -z "$ac_dir" && ac_dir=.
14296     if test -f $ac_dir/file; then
14297       lt_cv_path_MAGIC_CMD="$ac_dir/file"
14298       if test -n "$file_magic_test_file"; then
14299         case $deplibs_check_method in
14300         "file_magic "*)
14301           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14302           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14303           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14304             $EGREP "$file_magic_regex" > /dev/null; then
14305             :
14306           else
14307             cat <<EOF 1>&2
14308
14309 *** Warning: the command libtool uses to detect shared libraries,
14310 *** $file_magic_cmd, produces output that libtool cannot recognize.
14311 *** The result is that libtool may fail to recognize shared libraries
14312 *** as such.  This will affect the creation of libtool libraries that
14313 *** depend on shared libraries, but programs linked with such libtool
14314 *** libraries will work regardless of this problem.  Nevertheless, you
14315 *** may want to report the problem to your system manager and/or to
14316 *** bug-libtool@gnu.org
14317
14318 EOF
14319           fi ;;
14320         esac
14321       fi
14322       break
14323     fi
14324   done
14325   IFS="$lt_save_ifs"
14326   MAGIC_CMD="$lt_save_MAGIC_CMD"
14327   ;;
14328 esac
14329 fi
14330
14331 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14332 if test -n "$MAGIC_CMD"; then
14333   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14334 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14335 else
14336   { echo "$as_me:$LINENO: result: no" >&5
14337 echo "${ECHO_T}no" >&6; }
14338 fi
14339
14340   else
14341     MAGIC_CMD=:
14342   fi
14343 fi
14344
14345   fi
14346   ;;
14347 esac
14348
14349 enable_dlopen=yes
14350 enable_win32_dll=no
14351
14352 # Check whether --enable-libtool-lock was given.
14353 if test "${enable_libtool_lock+set}" = set; then
14354   enableval=$enable_libtool_lock;
14355 fi
14356
14357 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14358
14359
14360 # Check whether --with-pic was given.
14361 if test "${with_pic+set}" = set; then
14362   withval=$with_pic; pic_mode="$withval"
14363 else
14364   pic_mode=default
14365 fi
14366
14367 test -z "$pic_mode" && pic_mode=default
14368
14369 # Use C for the default configuration in the libtool script
14370 tagname=
14371 lt_save_CC="$CC"
14372 ac_ext=c
14373 ac_cpp='$CPP $CPPFLAGS'
14374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14377
14378
14379 # Source file extension for C test sources.
14380 ac_ext=c
14381
14382 # Object file extension for compiled C test sources.
14383 objext=o
14384 objext=$objext
14385
14386 # Code to be used in simple compile tests
14387 lt_simple_compile_test_code="int some_variable = 0;\n"
14388
14389 # Code to be used in simple link tests
14390 lt_simple_link_test_code='int main(){return(0);}\n'
14391
14392
14393 # If no C compiler was specified, use CC.
14394 LTCC=${LTCC-"$CC"}
14395
14396 # If no C compiler flags were specified, use CFLAGS.
14397 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14398
14399 # Allow CC to be a program name with arguments.
14400 compiler=$CC
14401
14402
14403 # save warnings/boilerplate of simple test code
14404 ac_outfile=conftest.$ac_objext
14405 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14406 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14407 _lt_compiler_boilerplate=`cat conftest.err`
14408 $rm conftest*
14409
14410 ac_outfile=conftest.$ac_objext
14411 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14412 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14413 _lt_linker_boilerplate=`cat conftest.err`
14414 $rm conftest*
14415
14416
14417
14418 lt_prog_compiler_no_builtin_flag=
14419
14420 if test "$GCC" = yes; then
14421   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14422
14423
14424 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14425 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14426 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14427   echo $ECHO_N "(cached) $ECHO_C" >&6
14428 else
14429   lt_cv_prog_compiler_rtti_exceptions=no
14430   ac_outfile=conftest.$ac_objext
14431    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14432    lt_compiler_flag="-fno-rtti -fno-exceptions"
14433    # Insert the option either (1) after the last *FLAGS variable, or
14434    # (2) before a word containing "conftest.", or (3) at the end.
14435    # Note that $ac_compile itself does not contain backslashes and begins
14436    # with a dollar sign (not a hyphen), so the echo should work correctly.
14437    # The option is referenced via a variable to avoid confusing sed.
14438    lt_compile=`echo "$ac_compile" | $SED \
14439    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14440    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14441    -e 's:$: $lt_compiler_flag:'`
14442    (eval echo "\"\$as_me:14442: $lt_compile\"" >&5)
14443    (eval "$lt_compile" 2>conftest.err)
14444    ac_status=$?
14445    cat conftest.err >&5
14446    echo "$as_me:14446: \$? = $ac_status" >&5
14447    if (exit $ac_status) && test -s "$ac_outfile"; then
14448      # The compiler can only warn and ignore the option if not recognized
14449      # So say no if there are warnings other than the usual output.
14450      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14451      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14452      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14453        lt_cv_prog_compiler_rtti_exceptions=yes
14454      fi
14455    fi
14456    $rm conftest*
14457
14458 fi
14459 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14460 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14461
14462 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14463     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14464 else
14465     :
14466 fi
14467
14468 fi
14469
14470 lt_prog_compiler_wl=
14471 lt_prog_compiler_pic=
14472 lt_prog_compiler_static=
14473
14474 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14475 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14476
14477   if test "$GCC" = yes; then
14478     lt_prog_compiler_wl='-Wl,'
14479     lt_prog_compiler_static='-static'
14480
14481     case $host_os in
14482       aix*)
14483       # All AIX code is PIC.
14484       if test "$host_cpu" = ia64; then
14485         # AIX 5 now supports IA64 processor
14486         lt_prog_compiler_static='-Bstatic'
14487       fi
14488       ;;
14489
14490     amigaos*)
14491       # FIXME: we need at least 68020 code to build shared libraries, but
14492       # adding the `-m68020' flag to GCC prevents building anything better,
14493       # like `-m68040'.
14494       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14495       ;;
14496
14497     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14498       # PIC is the default for these OSes.
14499       ;;
14500
14501     mingw* | pw32* | os2*)
14502       # This hack is so that the source file can tell whether it is being
14503       # built for inclusion in a dll (and should export symbols for example).
14504       lt_prog_compiler_pic='-DDLL_EXPORT'
14505       ;;
14506
14507     darwin* | rhapsody*)
14508       # PIC is the default on this platform
14509       # Common symbols not allowed in MH_DYLIB files
14510       lt_prog_compiler_pic='-fno-common'
14511       ;;
14512
14513     interix3*)
14514       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14515       # Instead, we relocate shared libraries at runtime.
14516       ;;
14517
14518     msdosdjgpp*)
14519       # Just because we use GCC doesn't mean we suddenly get shared libraries
14520       # on systems that don't support them.
14521       lt_prog_compiler_can_build_shared=no
14522       enable_shared=no
14523       ;;
14524
14525     sysv4*MP*)
14526       if test -d /usr/nec; then
14527         lt_prog_compiler_pic=-Kconform_pic
14528       fi
14529       ;;
14530
14531     hpux*)
14532       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14533       # not for PA HP-UX.
14534       case $host_cpu in
14535       hppa*64*|ia64*)
14536         # +Z the default
14537         ;;
14538       *)
14539         lt_prog_compiler_pic='-fPIC'
14540         ;;
14541       esac
14542       ;;
14543
14544     *)
14545       lt_prog_compiler_pic='-fPIC'
14546       ;;
14547     esac
14548   else
14549     # PORTME Check for flag to pass linker flags through the system compiler.
14550     case $host_os in
14551     aix*)
14552       lt_prog_compiler_wl='-Wl,'
14553       if test "$host_cpu" = ia64; then
14554         # AIX 5 now supports IA64 processor
14555         lt_prog_compiler_static='-Bstatic'
14556       else
14557         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14558       fi
14559       ;;
14560       darwin*)
14561         # PIC is the default on this platform
14562         # Common symbols not allowed in MH_DYLIB files
14563        case $cc_basename in
14564          xlc*)
14565          lt_prog_compiler_pic='-qnocommon'
14566          lt_prog_compiler_wl='-Wl,'
14567          ;;
14568        esac
14569        ;;
14570
14571     mingw* | pw32* | os2*)
14572       # This hack is so that the source file can tell whether it is being
14573       # built for inclusion in a dll (and should export symbols for example).
14574       lt_prog_compiler_pic='-DDLL_EXPORT'
14575       ;;
14576
14577     hpux9* | hpux10* | hpux11*)
14578       lt_prog_compiler_wl='-Wl,'
14579       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14580       # not for PA HP-UX.
14581       case $host_cpu in
14582       hppa*64*|ia64*)
14583         # +Z the default
14584         ;;
14585       *)
14586         lt_prog_compiler_pic='+Z'
14587         ;;
14588       esac
14589       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14590       lt_prog_compiler_static='${wl}-a ${wl}archive'
14591       ;;
14592
14593     irix5* | irix6* | nonstopux*)
14594       lt_prog_compiler_wl='-Wl,'
14595       # PIC (with -KPIC) is the default.
14596       lt_prog_compiler_static='-non_shared'
14597       ;;
14598
14599     newsos6)
14600       lt_prog_compiler_pic='-KPIC'
14601       lt_prog_compiler_static='-Bstatic'
14602       ;;
14603
14604     linux*)
14605       case $cc_basename in
14606       icc* | ecc*)
14607         lt_prog_compiler_wl='-Wl,'
14608         lt_prog_compiler_pic='-KPIC'
14609         lt_prog_compiler_static='-static'
14610         ;;
14611       pgcc* | pgf77* | pgf90* | pgf95*)
14612         # Portland Group compilers (*not* the Pentium gcc compiler,
14613         # which looks to be a dead project)
14614         lt_prog_compiler_wl='-Wl,'
14615         lt_prog_compiler_pic='-fpic'
14616         lt_prog_compiler_static='-Bstatic'
14617         ;;
14618       ccc*)
14619         lt_prog_compiler_wl='-Wl,'
14620         # All Alpha code is PIC.
14621         lt_prog_compiler_static='-non_shared'
14622         ;;
14623       esac
14624       ;;
14625
14626     osf3* | osf4* | osf5*)
14627       lt_prog_compiler_wl='-Wl,'
14628       # All OSF/1 code is PIC.
14629       lt_prog_compiler_static='-non_shared'
14630       ;;
14631
14632     solaris*)
14633       lt_prog_compiler_pic='-KPIC'
14634       lt_prog_compiler_static='-Bstatic'
14635       case $cc_basename in
14636       f77* | f90* | f95*)
14637         lt_prog_compiler_wl='-Qoption ld ';;
14638       *)
14639         lt_prog_compiler_wl='-Wl,';;
14640       esac
14641       ;;
14642
14643     sunos4*)
14644       lt_prog_compiler_wl='-Qoption ld '
14645       lt_prog_compiler_pic='-PIC'
14646       lt_prog_compiler_static='-Bstatic'
14647       ;;
14648
14649     sysv4 | sysv4.2uw2* | sysv4.3*)
14650       lt_prog_compiler_wl='-Wl,'
14651       lt_prog_compiler_pic='-KPIC'
14652       lt_prog_compiler_static='-Bstatic'
14653       ;;
14654
14655     sysv4*MP*)
14656       if test -d /usr/nec ;then
14657         lt_prog_compiler_pic='-Kconform_pic'
14658         lt_prog_compiler_static='-Bstatic'
14659       fi
14660       ;;
14661
14662     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14663       lt_prog_compiler_wl='-Wl,'
14664       lt_prog_compiler_pic='-KPIC'
14665       lt_prog_compiler_static='-Bstatic'
14666       ;;
14667
14668     unicos*)
14669       lt_prog_compiler_wl='-Wl,'
14670       lt_prog_compiler_can_build_shared=no
14671       ;;
14672
14673     uts4*)
14674       lt_prog_compiler_pic='-pic'
14675       lt_prog_compiler_static='-Bstatic'
14676       ;;
14677
14678     *)
14679       lt_prog_compiler_can_build_shared=no
14680       ;;
14681     esac
14682   fi
14683
14684 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14685 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14686
14687 #
14688 # Check to make sure the PIC flag actually works.
14689 #
14690 if test -n "$lt_prog_compiler_pic"; then
14691
14692 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14693 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
14694 if test "${lt_prog_compiler_pic_works+set}" = set; then
14695   echo $ECHO_N "(cached) $ECHO_C" >&6
14696 else
14697   lt_prog_compiler_pic_works=no
14698   ac_outfile=conftest.$ac_objext
14699    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14700    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14701    # Insert the option either (1) after the last *FLAGS variable, or
14702    # (2) before a word containing "conftest.", or (3) at the end.
14703    # Note that $ac_compile itself does not contain backslashes and begins
14704    # with a dollar sign (not a hyphen), so the echo should work correctly.
14705    # The option is referenced via a variable to avoid confusing sed.
14706    lt_compile=`echo "$ac_compile" | $SED \
14707    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14708    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14709    -e 's:$: $lt_compiler_flag:'`
14710    (eval echo "\"\$as_me:14710: $lt_compile\"" >&5)
14711    (eval "$lt_compile" 2>conftest.err)
14712    ac_status=$?
14713    cat conftest.err >&5
14714    echo "$as_me:14714: \$? = $ac_status" >&5
14715    if (exit $ac_status) && test -s "$ac_outfile"; then
14716      # The compiler can only warn and ignore the option if not recognized
14717      # So say no if there are warnings other than the usual output.
14718      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14719      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14720      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14721        lt_prog_compiler_pic_works=yes
14722      fi
14723    fi
14724    $rm conftest*
14725
14726 fi
14727 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14728 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
14729
14730 if test x"$lt_prog_compiler_pic_works" = xyes; then
14731     case $lt_prog_compiler_pic in
14732      "" | " "*) ;;
14733      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14734      esac
14735 else
14736     lt_prog_compiler_pic=
14737      lt_prog_compiler_can_build_shared=no
14738 fi
14739
14740 fi
14741 case $host_os in
14742   # For platforms which do not support PIC, -DPIC is meaningless:
14743   *djgpp*)
14744     lt_prog_compiler_pic=
14745     ;;
14746   *)
14747     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14748     ;;
14749 esac
14750
14751 #
14752 # Check to make sure the static flag actually works.
14753 #
14754 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14755 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14756 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14757 if test "${lt_prog_compiler_static_works+set}" = set; then
14758   echo $ECHO_N "(cached) $ECHO_C" >&6
14759 else
14760   lt_prog_compiler_static_works=no
14761    save_LDFLAGS="$LDFLAGS"
14762    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14763    printf "$lt_simple_link_test_code" > conftest.$ac_ext
14764    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14765      # The linker can only warn and ignore the option if not recognized
14766      # So say no if there are warnings
14767      if test -s conftest.err; then
14768        # Append any errors to the config.log.
14769        cat conftest.err 1>&5
14770        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14771        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14772        if diff conftest.exp conftest.er2 >/dev/null; then
14773          lt_prog_compiler_static_works=yes
14774        fi
14775      else
14776        lt_prog_compiler_static_works=yes
14777      fi
14778    fi
14779    $rm conftest*
14780    LDFLAGS="$save_LDFLAGS"
14781
14782 fi
14783 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14784 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14785
14786 if test x"$lt_prog_compiler_static_works" = xyes; then
14787     :
14788 else
14789     lt_prog_compiler_static=
14790 fi
14791
14792
14793 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14794 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14795 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14796   echo $ECHO_N "(cached) $ECHO_C" >&6
14797 else
14798   lt_cv_prog_compiler_c_o=no
14799    $rm -r conftest 2>/dev/null
14800    mkdir conftest
14801    cd conftest
14802    mkdir out
14803    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14804
14805    lt_compiler_flag="-o out/conftest2.$ac_objext"
14806    # Insert the option either (1) after the last *FLAGS variable, or
14807    # (2) before a word containing "conftest.", or (3) at the end.
14808    # Note that $ac_compile itself does not contain backslashes and begins
14809    # with a dollar sign (not a hyphen), so the echo should work correctly.
14810    lt_compile=`echo "$ac_compile" | $SED \
14811    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14812    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14813    -e 's:$: $lt_compiler_flag:'`
14814    (eval echo "\"\$as_me:14814: $lt_compile\"" >&5)
14815    (eval "$lt_compile" 2>out/conftest.err)
14816    ac_status=$?
14817    cat out/conftest.err >&5
14818    echo "$as_me:14818: \$? = $ac_status" >&5
14819    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14820    then
14821      # The compiler can only warn and ignore the option if not recognized
14822      # So say no if there are warnings
14823      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14824      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14825      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14826        lt_cv_prog_compiler_c_o=yes
14827      fi
14828    fi
14829    chmod u+w . 2>&5
14830    $rm conftest*
14831    # SGI C++ compiler will create directory out/ii_files/ for
14832    # template instantiation
14833    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14834    $rm out/* && rmdir out
14835    cd ..
14836    rmdir conftest
14837    $rm conftest*
14838
14839 fi
14840 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14841 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
14842
14843
14844 hard_links="nottested"
14845 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14846   # do not overwrite the value of need_locks provided by the user
14847   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14848 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14849   hard_links=yes
14850   $rm conftest*
14851   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14852   touch conftest.a
14853   ln conftest.a conftest.b 2>&5 || hard_links=no
14854   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14855   { echo "$as_me:$LINENO: result: $hard_links" >&5
14856 echo "${ECHO_T}$hard_links" >&6; }
14857   if test "$hard_links" = no; then
14858     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14859 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14860     need_locks=warn
14861   fi
14862 else
14863   need_locks=no
14864 fi
14865
14866 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14867 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14868
14869   runpath_var=
14870   allow_undefined_flag=
14871   enable_shared_with_static_runtimes=no
14872   archive_cmds=
14873   archive_expsym_cmds=
14874   old_archive_From_new_cmds=
14875   old_archive_from_expsyms_cmds=
14876   export_dynamic_flag_spec=
14877   whole_archive_flag_spec=
14878   thread_safe_flag_spec=
14879   hardcode_libdir_flag_spec=
14880   hardcode_libdir_flag_spec_ld=
14881   hardcode_libdir_separator=
14882   hardcode_direct=no
14883   hardcode_minus_L=no
14884   hardcode_shlibpath_var=unsupported
14885   link_all_deplibs=unknown
14886   hardcode_automatic=no
14887   module_cmds=
14888   module_expsym_cmds=
14889   always_export_symbols=no
14890   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14891   # include_expsyms should be a list of space-separated symbols to be *always*
14892   # included in the symbol list
14893   include_expsyms=
14894   # exclude_expsyms can be an extended regexp of symbols to exclude
14895   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14896   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14897   # as well as any symbol that contains `d'.
14898   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14899   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14900   # platforms (ab)use it in PIC code, but their linkers get confused if
14901   # the symbol is explicitly referenced.  Since portable code cannot
14902   # rely on this symbol name, it's probably fine to never include it in
14903   # preloaded symbol tables.
14904   extract_expsyms_cmds=
14905   # Just being paranoid about ensuring that cc_basename is set.
14906   for cc_temp in $compiler""; do
14907   case $cc_temp in
14908     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14909     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14910     \-*) ;;
14911     *) break;;
14912   esac
14913 done
14914 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14915
14916   case $host_os in
14917   cygwin* | mingw* | pw32*)
14918     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14919     # When not using gcc, we currently assume that we are using
14920     # Microsoft Visual C++.
14921     if test "$GCC" != yes; then
14922       with_gnu_ld=no
14923     fi
14924     ;;
14925   interix*)
14926     # we just hope/assume this is gcc and not c89 (= MSVC++)
14927     with_gnu_ld=yes
14928     ;;
14929   openbsd*)
14930     with_gnu_ld=no
14931     ;;
14932   esac
14933
14934   ld_shlibs=yes
14935   if test "$with_gnu_ld" = yes; then
14936     # If archive_cmds runs LD, not CC, wlarc should be empty
14937     wlarc='${wl}'
14938
14939     # Set some defaults for GNU ld with shared library support. These
14940     # are reset later if shared libraries are not supported. Putting them
14941     # here allows them to be overridden if necessary.
14942     runpath_var=LD_RUN_PATH
14943     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14944     export_dynamic_flag_spec='${wl}--export-dynamic'
14945     # ancient GNU ld didn't support --whole-archive et. al.
14946     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14947         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14948       else
14949         whole_archive_flag_spec=
14950     fi
14951     supports_anon_versioning=no
14952     case `$LD -v 2>/dev/null` in
14953       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14954       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14955       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14956       *\ 2.11.*) ;; # other 2.11 versions
14957       *) supports_anon_versioning=yes ;;
14958     esac
14959
14960     # See if GNU ld supports shared libraries.
14961     case $host_os in
14962     aix3* | aix4* | aix5*)
14963       # On AIX/PPC, the GNU linker is very broken
14964       if test "$host_cpu" != ia64; then
14965         ld_shlibs=no
14966         cat <<EOF 1>&2
14967
14968 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14969 *** to be unable to reliably create shared libraries on AIX.
14970 *** Therefore, libtool is disabling shared libraries support.  If you
14971 *** really care for shared libraries, you may want to modify your PATH
14972 *** so that a non-GNU linker is found, and then restart.
14973
14974 EOF
14975       fi
14976       ;;
14977
14978     amigaos*)
14979       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)'
14980       hardcode_libdir_flag_spec='-L$libdir'
14981       hardcode_minus_L=yes
14982
14983       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14984       # that the semantics of dynamic libraries on AmigaOS, at least up
14985       # to version 4, is to share data among multiple programs linked
14986       # with the same dynamic library.  Since this doesn't match the
14987       # behavior of shared libraries on other platforms, we can't use
14988       # them.
14989       ld_shlibs=no
14990       ;;
14991
14992     beos*)
14993       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14994         allow_undefined_flag=unsupported
14995         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14996         # support --undefined.  This deserves some investigation.  FIXME
14997         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14998       else
14999         ld_shlibs=no
15000       fi
15001       ;;
15002
15003     cygwin* | mingw* | pw32*)
15004       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15005       # as there is no search path for DLLs.
15006       hardcode_libdir_flag_spec='-L$libdir'
15007       allow_undefined_flag=unsupported
15008       always_export_symbols=no
15009       enable_shared_with_static_runtimes=yes
15010       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15011
15012       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15013         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15014         # If the export-symbols file already is a .def file (1st line
15015         # is EXPORTS), use it as is; otherwise, prepend...
15016         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15017           cp $export_symbols $output_objdir/$soname.def;
15018         else
15019           echo EXPORTS > $output_objdir/$soname.def;
15020           cat $export_symbols >> $output_objdir/$soname.def;
15021         fi~
15022         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15023       else
15024         ld_shlibs=no
15025       fi
15026       ;;
15027
15028     interix3*)
15029       hardcode_direct=no
15030       hardcode_shlibpath_var=no
15031       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15032       export_dynamic_flag_spec='${wl}-E'
15033       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15034       # Instead, shared libraries are loaded at an image base (0x10000000 by
15035       # default) and relocated if they conflict, which is a slow very memory
15036       # consuming and fragmenting process.  To avoid this, we pick a random,
15037       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15038       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15039       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15040       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'
15041       ;;
15042
15043     linux*)
15044       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15045         tmp_addflag=
15046         case $cc_basename,$host_cpu in
15047         pgcc*)                          # Portland Group C compiler
15048           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'
15049           tmp_addflag=' $pic_flag'
15050           ;;
15051         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
15052           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'
15053           tmp_addflag=' $pic_flag -Mnomain' ;;
15054         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
15055           tmp_addflag=' -i_dynamic' ;;
15056         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15057           tmp_addflag=' -i_dynamic -nofor_main' ;;
15058         ifc* | ifort*)                  # Intel Fortran compiler
15059           tmp_addflag=' -nofor_main' ;;
15060         esac
15061         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15062
15063         if test $supports_anon_versioning = yes; then
15064           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15065   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15066   $echo "local: *; };" >> $output_objdir/$libname.ver~
15067           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15068         fi
15069       else
15070         ld_shlibs=no
15071       fi
15072       ;;
15073
15074     netbsd*)
15075       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15076         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15077         wlarc=
15078       else
15079         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15080         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15081       fi
15082       ;;
15083
15084     solaris*)
15085       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15086         ld_shlibs=no
15087         cat <<EOF 1>&2
15088
15089 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15090 *** create shared libraries on Solaris systems.  Therefore, libtool
15091 *** is disabling shared libraries support.  We urge you to upgrade GNU
15092 *** binutils to release 2.9.1 or newer.  Another option is to modify
15093 *** your PATH or compiler configuration so that the native linker is
15094 *** used, and then restart.
15095
15096 EOF
15097       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15098         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15099         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15100       else
15101         ld_shlibs=no
15102       fi
15103       ;;
15104
15105     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15106       case `$LD -v 2>&1` in
15107         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15108         ld_shlibs=no
15109         cat <<_LT_EOF 1>&2
15110
15111 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15112 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15113 *** is disabling shared libraries support.  We urge you to upgrade GNU
15114 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15115 *** your PATH or compiler configuration so that the native linker is
15116 *** used, and then restart.
15117
15118 _LT_EOF
15119         ;;
15120         *)
15121           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15122             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15123             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15124             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15125           else
15126             ld_shlibs=no
15127           fi
15128         ;;
15129       esac
15130       ;;
15131
15132     sunos4*)
15133       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15134       wlarc=
15135       hardcode_direct=yes
15136       hardcode_shlibpath_var=no
15137       ;;
15138
15139     *)
15140       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15141         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15142         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15143       else
15144         ld_shlibs=no
15145       fi
15146       ;;
15147     esac
15148
15149     if test "$ld_shlibs" = no; then
15150       runpath_var=
15151       hardcode_libdir_flag_spec=
15152       export_dynamic_flag_spec=
15153       whole_archive_flag_spec=
15154     fi
15155   else
15156     # PORTME fill in a description of your system's linker (not GNU ld)
15157     case $host_os in
15158     aix3*)
15159       allow_undefined_flag=unsupported
15160       always_export_symbols=yes
15161       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'
15162       # Note: this linker hardcodes the directories in LIBPATH if there
15163       # are no directories specified by -L.
15164       hardcode_minus_L=yes
15165       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15166         # Neither direct hardcoding nor static linking is supported with a
15167         # broken collect2.
15168         hardcode_direct=unsupported
15169       fi
15170       ;;
15171
15172     aix4* | aix5*)
15173       if test "$host_cpu" = ia64; then
15174         # On IA64, the linker does run time linking by default, so we don't
15175         # have to do anything special.
15176         aix_use_runtimelinking=no
15177         exp_sym_flag='-Bexport'
15178         no_entry_flag=""
15179       else
15180         # If we're using GNU nm, then we don't want the "-C" option.
15181         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15182         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15183           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'
15184         else
15185           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'
15186         fi
15187         aix_use_runtimelinking=no
15188
15189         # Test if we are trying to use run time linking or normal
15190         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15191         # need to do runtime linking.
15192         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15193           for ld_flag in $LDFLAGS; do
15194           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15195             aix_use_runtimelinking=yes
15196             break
15197           fi
15198           done
15199           ;;
15200         esac
15201
15202         exp_sym_flag='-bexport'
15203         no_entry_flag='-bnoentry'
15204       fi
15205
15206       # When large executables or shared objects are built, AIX ld can
15207       # have problems creating the table of contents.  If linking a library
15208       # or program results in "error TOC overflow" add -mminimal-toc to
15209       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15210       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15211
15212       archive_cmds=''
15213       hardcode_direct=yes
15214       hardcode_libdir_separator=':'
15215       link_all_deplibs=yes
15216
15217       if test "$GCC" = yes; then
15218         case $host_os in aix4.[012]|aix4.[012].*)
15219         # We only want to do this on AIX 4.2 and lower, the check
15220         # below for broken collect2 doesn't work under 4.3+
15221           collect2name=`${CC} -print-prog-name=collect2`
15222           if test -f "$collect2name" && \
15223            strings "$collect2name" | grep resolve_lib_name >/dev/null
15224           then
15225           # We have reworked collect2
15226           hardcode_direct=yes
15227           else
15228           # We have old collect2
15229           hardcode_direct=unsupported
15230           # It fails to find uninstalled libraries when the uninstalled
15231           # path is not listed in the libpath.  Setting hardcode_minus_L
15232           # to unsupported forces relinking
15233           hardcode_minus_L=yes
15234           hardcode_libdir_flag_spec='-L$libdir'
15235           hardcode_libdir_separator=
15236           fi
15237           ;;
15238         esac
15239         shared_flag='-shared'
15240         if test "$aix_use_runtimelinking" = yes; then
15241           shared_flag="$shared_flag "'${wl}-G'
15242         fi
15243       else
15244         # not using gcc
15245         if test "$host_cpu" = ia64; then
15246         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15247         # chokes on -Wl,-G. The following line is correct:
15248           shared_flag='-G'
15249         else
15250           if test "$aix_use_runtimelinking" = yes; then
15251             shared_flag='${wl}-G'
15252           else
15253             shared_flag='${wl}-bM:SRE'
15254           fi
15255         fi
15256       fi
15257
15258       # It seems that -bexpall does not export symbols beginning with
15259       # underscore (_), so it is better to generate a list of symbols to export.
15260       always_export_symbols=yes
15261       if test "$aix_use_runtimelinking" = yes; then
15262         # Warning - without using the other runtime loading flags (-brtl),
15263         # -berok will link without error, but may produce a broken library.
15264         allow_undefined_flag='-berok'
15265        # Determine the default libpath from the value encoded in an empty executable.
15266        cat >conftest.$ac_ext <<_ACEOF
15267 /* confdefs.h.  */
15268 _ACEOF
15269 cat confdefs.h >>conftest.$ac_ext
15270 cat >>conftest.$ac_ext <<_ACEOF
15271 /* end confdefs.h.  */
15272
15273 int
15274 main ()
15275 {
15276
15277   ;
15278   return 0;
15279 }
15280 _ACEOF
15281 rm -f conftest.$ac_objext conftest$ac_exeext
15282 if { (ac_try="$ac_link"
15283 case "(($ac_try" in
15284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15285   *) ac_try_echo=$ac_try;;
15286 esac
15287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15288   (eval "$ac_link") 2>conftest.er1
15289   ac_status=$?
15290   grep -v '^ *+' conftest.er1 >conftest.err
15291   rm -f conftest.er1
15292   cat conftest.err >&5
15293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15294   (exit $ac_status); } &&
15295          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15296   { (case "(($ac_try" in
15297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15298   *) ac_try_echo=$ac_try;;
15299 esac
15300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15301   (eval "$ac_try") 2>&5
15302   ac_status=$?
15303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15304   (exit $ac_status); }; } &&
15305          { ac_try='test -s conftest$ac_exeext'
15306   { (case "(($ac_try" in
15307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15308   *) ac_try_echo=$ac_try;;
15309 esac
15310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15311   (eval "$ac_try") 2>&5
15312   ac_status=$?
15313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15314   (exit $ac_status); }; }; then
15315
15316 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15317 }'`
15318 # Check for a 64-bit object if we didn't find anything.
15319 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; }
15320 }'`; fi
15321 else
15322   echo "$as_me: failed program was:" >&5
15323 sed 's/^/| /' conftest.$ac_ext >&5
15324
15325
15326 fi
15327
15328 rm -f core conftest.err conftest.$ac_objext \
15329       conftest$ac_exeext conftest.$ac_ext
15330 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15331
15332        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15333         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"
15334        else
15335         if test "$host_cpu" = ia64; then
15336           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15337           allow_undefined_flag="-z nodefs"
15338           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"
15339         else
15340          # Determine the default libpath from the value encoded in an empty executable.
15341          cat >conftest.$ac_ext <<_ACEOF
15342 /* confdefs.h.  */
15343 _ACEOF
15344 cat confdefs.h >>conftest.$ac_ext
15345 cat >>conftest.$ac_ext <<_ACEOF
15346 /* end confdefs.h.  */
15347
15348 int
15349 main ()
15350 {
15351
15352   ;
15353   return 0;
15354 }
15355 _ACEOF
15356 rm -f conftest.$ac_objext conftest$ac_exeext
15357 if { (ac_try="$ac_link"
15358 case "(($ac_try" in
15359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15360   *) ac_try_echo=$ac_try;;
15361 esac
15362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15363   (eval "$ac_link") 2>conftest.er1
15364   ac_status=$?
15365   grep -v '^ *+' conftest.er1 >conftest.err
15366   rm -f conftest.er1
15367   cat conftest.err >&5
15368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15369   (exit $ac_status); } &&
15370          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15371   { (case "(($ac_try" in
15372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15373   *) ac_try_echo=$ac_try;;
15374 esac
15375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15376   (eval "$ac_try") 2>&5
15377   ac_status=$?
15378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15379   (exit $ac_status); }; } &&
15380          { ac_try='test -s conftest$ac_exeext'
15381   { (case "(($ac_try" in
15382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15383   *) ac_try_echo=$ac_try;;
15384 esac
15385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15386   (eval "$ac_try") 2>&5
15387   ac_status=$?
15388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15389   (exit $ac_status); }; }; then
15390
15391 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15392 }'`
15393 # Check for a 64-bit object if we didn't find anything.
15394 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; }
15395 }'`; fi
15396 else
15397   echo "$as_me: failed program was:" >&5
15398 sed 's/^/| /' conftest.$ac_ext >&5
15399
15400
15401 fi
15402
15403 rm -f core conftest.err conftest.$ac_objext \
15404       conftest$ac_exeext conftest.$ac_ext
15405 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15406
15407          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15408           # Warning - without using the other run time loading flags,
15409           # -berok will link without error, but may produce a broken library.
15410           no_undefined_flag=' ${wl}-bernotok'
15411           allow_undefined_flag=' ${wl}-berok'
15412           # Exported symbols can be pulled into shared objects from archives
15413           whole_archive_flag_spec='$convenience'
15414           archive_cmds_need_lc=yes
15415           # This is similar to how AIX traditionally builds its shared libraries.
15416           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'
15417         fi
15418       fi
15419       ;;
15420
15421     amigaos*)
15422       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)'
15423       hardcode_libdir_flag_spec='-L$libdir'
15424       hardcode_minus_L=yes
15425       # see comment about different semantics on the GNU ld section
15426       ld_shlibs=no
15427       ;;
15428
15429     bsdi[45]*)
15430       export_dynamic_flag_spec=-rdynamic
15431       ;;
15432
15433     cygwin* | mingw* | pw32*)
15434       # When not using gcc, we currently assume that we are using
15435       # Microsoft Visual C++.
15436       # hardcode_libdir_flag_spec is actually meaningless, as there is
15437       # no search path for DLLs.
15438       hardcode_libdir_flag_spec=' '
15439       allow_undefined_flag=unsupported
15440       # Tell ltmain to make .lib files, not .a files.
15441       libext=lib
15442       # Tell ltmain to make .dll files, not .so files.
15443       shrext_cmds=".dll"
15444       # FIXME: Setting linknames here is a bad hack.
15445       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15446       # The linker will automatically build a .lib file if we build a DLL.
15447       old_archive_From_new_cmds='true'
15448       # FIXME: Should let the user specify the lib program.
15449       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15450       fix_srcfile_path='`cygpath -w "$srcfile"`'
15451       enable_shared_with_static_runtimes=yes
15452       ;;
15453
15454     darwin* | rhapsody*)
15455       case $host_os in
15456         rhapsody* | darwin1.[012])
15457          allow_undefined_flag='${wl}-undefined ${wl}suppress'
15458          ;;
15459        *) # Darwin 1.3 on
15460          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15461            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15462          else
15463            case ${MACOSX_DEPLOYMENT_TARGET} in
15464              10.[012])
15465                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15466                ;;
15467              10.*)
15468                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15469                ;;
15470            esac
15471          fi
15472          ;;
15473       esac
15474       archive_cmds_need_lc=no
15475       hardcode_direct=no
15476       hardcode_automatic=yes
15477       hardcode_shlibpath_var=unsupported
15478       whole_archive_flag_spec=''
15479       link_all_deplibs=yes
15480     if test "$GCC" = yes ; then
15481         output_verbose_link_cmd='echo'
15482         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15483       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15484       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15485       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}'
15486       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}'
15487     else
15488       case $cc_basename in
15489         xlc*)
15490          output_verbose_link_cmd='echo'
15491          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15492          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15493           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15494          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}'
15495           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}'
15496           ;;
15497        *)
15498          ld_shlibs=no
15499           ;;
15500       esac
15501     fi
15502       ;;
15503
15504     dgux*)
15505       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15506       hardcode_libdir_flag_spec='-L$libdir'
15507       hardcode_shlibpath_var=no
15508       ;;
15509
15510     freebsd1*)
15511       ld_shlibs=no
15512       ;;
15513
15514     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15515     # support.  Future versions do this automatically, but an explicit c++rt0.o
15516     # does not break anything, and helps significantly (at the cost of a little
15517     # extra space).
15518     freebsd2.2*)
15519       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15520       hardcode_libdir_flag_spec='-R$libdir'
15521       hardcode_direct=yes
15522       hardcode_shlibpath_var=no
15523       ;;
15524
15525     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15526     freebsd2*)
15527       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15528       hardcode_direct=yes
15529       hardcode_minus_L=yes
15530       hardcode_shlibpath_var=no
15531       ;;
15532
15533     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15534     freebsd* | kfreebsd*-gnu | dragonfly*)
15535       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15536       hardcode_libdir_flag_spec='-R$libdir'
15537       hardcode_direct=yes
15538       hardcode_shlibpath_var=no
15539       ;;
15540
15541     hpux9*)
15542       if test "$GCC" = yes; then
15543         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'
15544       else
15545         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'
15546       fi
15547       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15548       hardcode_libdir_separator=:
15549       hardcode_direct=yes
15550
15551       # hardcode_minus_L: Not really in the search PATH,
15552       # but as the default location of the library.
15553       hardcode_minus_L=yes
15554       export_dynamic_flag_spec='${wl}-E'
15555       ;;
15556
15557     hpux10*)
15558       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15559         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15560       else
15561         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15562       fi
15563       if test "$with_gnu_ld" = no; then
15564         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15565         hardcode_libdir_separator=:
15566
15567         hardcode_direct=yes
15568         export_dynamic_flag_spec='${wl}-E'
15569
15570         # hardcode_minus_L: Not really in the search PATH,
15571         # but as the default location of the library.
15572         hardcode_minus_L=yes
15573       fi
15574       ;;
15575
15576     hpux11*)
15577       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15578         case $host_cpu in
15579         hppa*64*)
15580           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15581           ;;
15582         ia64*)
15583           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15584           ;;
15585         *)
15586           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15587           ;;
15588         esac
15589       else
15590         case $host_cpu in
15591         hppa*64*)
15592           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15593           ;;
15594         ia64*)
15595           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15596           ;;
15597         *)
15598           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15599           ;;
15600         esac
15601       fi
15602       if test "$with_gnu_ld" = no; then
15603         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15604         hardcode_libdir_separator=:
15605
15606         case $host_cpu in
15607         hppa*64*|ia64*)
15608           hardcode_libdir_flag_spec_ld='+b $libdir'
15609           hardcode_direct=no
15610           hardcode_shlibpath_var=no
15611           ;;
15612         *)
15613           hardcode_direct=yes
15614           export_dynamic_flag_spec='${wl}-E'
15615
15616           # hardcode_minus_L: Not really in the search PATH,
15617           # but as the default location of the library.
15618           hardcode_minus_L=yes
15619           ;;
15620         esac
15621       fi
15622       ;;
15623
15624     irix5* | irix6* | nonstopux*)
15625       if test "$GCC" = yes; then
15626         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'
15627       else
15628         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'
15629         hardcode_libdir_flag_spec_ld='-rpath $libdir'
15630       fi
15631       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15632       hardcode_libdir_separator=:
15633       link_all_deplibs=yes
15634       ;;
15635
15636     netbsd*)
15637       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15638         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15639       else
15640         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15641       fi
15642       hardcode_libdir_flag_spec='-R$libdir'
15643       hardcode_direct=yes
15644       hardcode_shlibpath_var=no
15645       ;;
15646
15647     newsos6)
15648       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15649       hardcode_direct=yes
15650       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15651       hardcode_libdir_separator=:
15652       hardcode_shlibpath_var=no
15653       ;;
15654
15655     openbsd*)
15656       hardcode_direct=yes
15657       hardcode_shlibpath_var=no
15658       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15659         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15660         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15661         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15662         export_dynamic_flag_spec='${wl}-E'
15663       else
15664        case $host_os in
15665          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15666            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15667            hardcode_libdir_flag_spec='-R$libdir'
15668            ;;
15669          *)
15670            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15671            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15672            ;;
15673        esac
15674       fi
15675       ;;
15676
15677     os2*)
15678       hardcode_libdir_flag_spec='-L$libdir'
15679       hardcode_minus_L=yes
15680       allow_undefined_flag=unsupported
15681       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'
15682       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15683       ;;
15684
15685     osf3*)
15686       if test "$GCC" = yes; then
15687         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15688         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'
15689       else
15690         allow_undefined_flag=' -expect_unresolved \*'
15691         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'
15692       fi
15693       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15694       hardcode_libdir_separator=:
15695       ;;
15696
15697     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15698       if test "$GCC" = yes; then
15699         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15700         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'
15701         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15702       else
15703         allow_undefined_flag=' -expect_unresolved \*'
15704         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'
15705         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15706         $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'
15707
15708         # Both c and cxx compiler support -rpath directly
15709         hardcode_libdir_flag_spec='-rpath $libdir'
15710       fi
15711       hardcode_libdir_separator=:
15712       ;;
15713
15714     solaris*)
15715       no_undefined_flag=' -z text'
15716       if test "$GCC" = yes; then
15717         wlarc='${wl}'
15718         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15719         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15720           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15721       else
15722         wlarc=''
15723         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15724         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15725         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15726       fi
15727       hardcode_libdir_flag_spec='-R$libdir'
15728       hardcode_shlibpath_var=no
15729       case $host_os in
15730       solaris2.[0-5] | solaris2.[0-5].*) ;;
15731       *)
15732         # The compiler driver will combine linker options so we
15733         # cannot just pass the convience library names through
15734         # without $wl, iff we do not link with $LD.
15735         # Luckily, gcc supports the same syntax we need for Sun Studio.
15736         # Supported since Solaris 2.6 (maybe 2.5.1?)
15737         case $wlarc in
15738         '')
15739           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15740         *)
15741           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' ;;
15742         esac ;;
15743       esac
15744       link_all_deplibs=yes
15745       ;;
15746
15747     sunos4*)
15748       if test "x$host_vendor" = xsequent; then
15749         # Use $CC to link under sequent, because it throws in some extra .o
15750         # files that make .init and .fini sections work.
15751         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15752       else
15753         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15754       fi
15755       hardcode_libdir_flag_spec='-L$libdir'
15756       hardcode_direct=yes
15757       hardcode_minus_L=yes
15758       hardcode_shlibpath_var=no
15759       ;;
15760
15761     sysv4)
15762       case $host_vendor in
15763         sni)
15764           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15765           hardcode_direct=yes # is this really true???
15766         ;;
15767         siemens)
15768           ## LD is ld it makes a PLAMLIB
15769           ## CC just makes a GrossModule.
15770           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15771           reload_cmds='$CC -r -o $output$reload_objs'
15772           hardcode_direct=no
15773         ;;
15774         motorola)
15775           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15776           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15777         ;;
15778       esac
15779       runpath_var='LD_RUN_PATH'
15780       hardcode_shlibpath_var=no
15781       ;;
15782
15783     sysv4.3*)
15784       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15785       hardcode_shlibpath_var=no
15786       export_dynamic_flag_spec='-Bexport'
15787       ;;
15788
15789     sysv4*MP*)
15790       if test -d /usr/nec; then
15791         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15792         hardcode_shlibpath_var=no
15793         runpath_var=LD_RUN_PATH
15794         hardcode_runpath_var=yes
15795         ld_shlibs=yes
15796       fi
15797       ;;
15798
15799     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15800       no_undefined_flag='${wl}-z,text'
15801       archive_cmds_need_lc=no
15802       hardcode_shlibpath_var=no
15803       runpath_var='LD_RUN_PATH'
15804
15805       if test "$GCC" = yes; then
15806         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15807         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15808       else
15809         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15810         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15811       fi
15812       ;;
15813
15814     sysv5* | sco3.2v5* | sco5v6*)
15815       # Note: We can NOT use -z defs as we might desire, because we do not
15816       # link with -lc, and that would cause any symbols used from libc to
15817       # always be unresolved, which means just about no library would
15818       # ever link correctly.  If we're not using GNU ld we use -z text
15819       # though, which does catch some bad symbols but isn't as heavy-handed
15820       # as -z defs.
15821       no_undefined_flag='${wl}-z,text'
15822       allow_undefined_flag='${wl}-z,nodefs'
15823       archive_cmds_need_lc=no
15824       hardcode_shlibpath_var=no
15825       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15826       hardcode_libdir_separator=':'
15827       link_all_deplibs=yes
15828       export_dynamic_flag_spec='${wl}-Bexport'
15829       runpath_var='LD_RUN_PATH'
15830
15831       if test "$GCC" = yes; then
15832         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15833         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15834       else
15835         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15836         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15837       fi
15838       ;;
15839
15840     uts4*)
15841       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15842       hardcode_libdir_flag_spec='-L$libdir'
15843       hardcode_shlibpath_var=no
15844       ;;
15845
15846     *)
15847       ld_shlibs=no
15848       ;;
15849     esac
15850   fi
15851
15852 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15853 echo "${ECHO_T}$ld_shlibs" >&6; }
15854 test "$ld_shlibs" = no && can_build_shared=no
15855
15856 #
15857 # Do we need to explicitly link libc?
15858 #
15859 case "x$archive_cmds_need_lc" in
15860 x|xyes)
15861   # Assume -lc should be added
15862   archive_cmds_need_lc=yes
15863
15864   if test "$enable_shared" = yes && test "$GCC" = yes; then
15865     case $archive_cmds in
15866     *'~'*)
15867       # FIXME: we may have to deal with multi-command sequences.
15868       ;;
15869     '$CC '*)
15870       # Test whether the compiler implicitly links with -lc since on some
15871       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15872       # to ld, don't add -lc before -lgcc.
15873       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15874 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15875       $rm conftest*
15876       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15877
15878       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15879   (eval $ac_compile) 2>&5
15880   ac_status=$?
15881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15882   (exit $ac_status); } 2>conftest.err; then
15883         soname=conftest
15884         lib=conftest
15885         libobjs=conftest.$ac_objext
15886         deplibs=
15887         wl=$lt_prog_compiler_wl
15888         pic_flag=$lt_prog_compiler_pic
15889         compiler_flags=-v
15890         linker_flags=-v
15891         verstring=
15892         output_objdir=.
15893         libname=conftest
15894         lt_save_allow_undefined_flag=$allow_undefined_flag
15895         allow_undefined_flag=
15896         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15897   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15898   ac_status=$?
15899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15900   (exit $ac_status); }
15901         then
15902           archive_cmds_need_lc=no
15903         else
15904           archive_cmds_need_lc=yes
15905         fi
15906         allow_undefined_flag=$lt_save_allow_undefined_flag
15907       else
15908         cat conftest.err 1>&5
15909       fi
15910       $rm conftest*
15911       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15912 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
15913       ;;
15914     esac
15915   fi
15916   ;;
15917 esac
15918
15919 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15920 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15921 library_names_spec=
15922 libname_spec='lib$name'
15923 soname_spec=
15924 shrext_cmds=".so"
15925 postinstall_cmds=
15926 postuninstall_cmds=
15927 finish_cmds=
15928 finish_eval=
15929 shlibpath_var=
15930 shlibpath_overrides_runpath=unknown
15931 version_type=none
15932 dynamic_linker="$host_os ld.so"
15933 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15934 if test "$GCC" = yes; then
15935   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15936   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15937     # if the path contains ";" then we assume it to be the separator
15938     # otherwise default to the standard path separator (i.e. ":") - it is
15939     # assumed that no part of a normal pathname contains ";" but that should
15940     # okay in the real world where ";" in dirpaths is itself problematic.
15941     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15942   else
15943     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15944   fi
15945 else
15946   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15947 fi
15948 need_lib_prefix=unknown
15949 hardcode_into_libs=no
15950
15951 # when you set need_version to no, make sure it does not cause -set_version
15952 # flags to be left without arguments
15953 need_version=unknown
15954
15955 case $host_os in
15956 aix3*)
15957   version_type=linux
15958   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15959   shlibpath_var=LIBPATH
15960
15961   # AIX 3 has no versioning support, so we append a major version to the name.
15962   soname_spec='${libname}${release}${shared_ext}$major'
15963   ;;
15964
15965 aix4* | aix5*)
15966   version_type=linux
15967   need_lib_prefix=no
15968   need_version=no
15969   hardcode_into_libs=yes
15970   if test "$host_cpu" = ia64; then
15971     # AIX 5 supports IA64
15972     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15973     shlibpath_var=LD_LIBRARY_PATH
15974   else
15975     # With GCC up to 2.95.x, collect2 would create an import file
15976     # for dependence libraries.  The import file would start with
15977     # the line `#! .'.  This would cause the generated library to
15978     # depend on `.', always an invalid library.  This was fixed in
15979     # development snapshots of GCC prior to 3.0.
15980     case $host_os in
15981       aix4 | aix4.[01] | aix4.[01].*)
15982       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15983            echo ' yes '
15984            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15985         :
15986       else
15987         can_build_shared=no
15988       fi
15989       ;;
15990     esac
15991     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15992     # soname into executable. Probably we can add versioning support to
15993     # collect2, so additional links can be useful in future.
15994     if test "$aix_use_runtimelinking" = yes; then
15995       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15996       # instead of lib<name>.a to let people know that these are not
15997       # typical AIX shared libraries.
15998       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15999     else
16000       # We preserve .a as extension for shared libraries through AIX4.2
16001       # and later when we are not doing run time linking.
16002       library_names_spec='${libname}${release}.a $libname.a'
16003       soname_spec='${libname}${release}${shared_ext}$major'
16004     fi
16005     shlibpath_var=LIBPATH
16006   fi
16007   ;;
16008
16009 amigaos*)
16010   library_names_spec='$libname.ixlibrary $libname.a'
16011   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16012   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'
16013   ;;
16014
16015 beos*)
16016   library_names_spec='${libname}${shared_ext}'
16017   dynamic_linker="$host_os ld.so"
16018   shlibpath_var=LIBRARY_PATH
16019   ;;
16020
16021 bsdi[45]*)
16022   version_type=linux
16023   need_version=no
16024   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16025   soname_spec='${libname}${release}${shared_ext}$major'
16026   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16027   shlibpath_var=LD_LIBRARY_PATH
16028   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16029   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16030   # the default ld.so.conf also contains /usr/contrib/lib and
16031   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16032   # libtool to hard-code these into programs
16033   ;;
16034
16035 cygwin* | mingw* | pw32*)
16036   version_type=windows
16037   shrext_cmds=".dll"
16038   need_version=no
16039   need_lib_prefix=no
16040
16041   case $GCC,$host_os in
16042   yes,cygwin* | yes,mingw* | yes,pw32*)
16043     library_names_spec='$libname.dll.a'
16044     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16045     postinstall_cmds='base_file=`basename \${file}`~
16046       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16047       dldir=$destdir/`dirname \$dlpath`~
16048       test -d \$dldir || mkdir -p \$dldir~
16049       $install_prog $dir/$dlname \$dldir/$dlname~
16050       chmod a+x \$dldir/$dlname'
16051     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16052       dlpath=$dir/\$dldll~
16053        $rm \$dlpath'
16054     shlibpath_overrides_runpath=yes
16055
16056     case $host_os in
16057     cygwin*)
16058       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16059       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16060       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16061       ;;
16062     mingw*)
16063       # MinGW DLLs use traditional 'lib' prefix
16064       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16065       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16066       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16067         # It is most probably a Windows format PATH printed by
16068         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16069         # path with ; separators, and with drive letters. We can handle the
16070         # drive letters (cygwin fileutils understands them), so leave them,
16071         # especially as we might pass files found there to a mingw objdump,
16072         # which wouldn't understand a cygwinified path. Ahh.
16073         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16074       else
16075         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16076       fi
16077       ;;
16078     pw32*)
16079       # pw32 DLLs use 'pw' prefix rather than 'lib'
16080       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16081       ;;
16082     esac
16083     ;;
16084
16085   *)
16086     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16087     ;;
16088   esac
16089   dynamic_linker='Win32 ld.exe'
16090   # FIXME: first we should search . and the directory the executable is in
16091   shlibpath_var=PATH
16092   ;;
16093
16094 darwin* | rhapsody*)
16095   dynamic_linker="$host_os dyld"
16096   version_type=darwin
16097   need_lib_prefix=no
16098   need_version=no
16099   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16100   soname_spec='${libname}${release}${major}$shared_ext'
16101   shlibpath_overrides_runpath=yes
16102   shlibpath_var=DYLD_LIBRARY_PATH
16103   shrext_cmds='.dylib'
16104   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16105   if test "$GCC" = yes; then
16106     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"`
16107   else
16108     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16109   fi
16110   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16111   ;;
16112
16113 dgux*)
16114   version_type=linux
16115   need_lib_prefix=no
16116   need_version=no
16117   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16118   soname_spec='${libname}${release}${shared_ext}$major'
16119   shlibpath_var=LD_LIBRARY_PATH
16120   ;;
16121
16122 freebsd1*)
16123   dynamic_linker=no
16124   ;;
16125
16126 kfreebsd*-gnu)
16127   version_type=linux
16128   need_lib_prefix=no
16129   need_version=no
16130   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16131   soname_spec='${libname}${release}${shared_ext}$major'
16132   shlibpath_var=LD_LIBRARY_PATH
16133   shlibpath_overrides_runpath=no
16134   hardcode_into_libs=yes
16135   dynamic_linker='GNU ld.so'
16136   ;;
16137
16138 freebsd* | dragonfly*)
16139   # DragonFly does not have aout.  When/if they implement a new
16140   # versioning mechanism, adjust this.
16141   if test -x /usr/bin/objformat; then
16142     objformat=`/usr/bin/objformat`
16143   else
16144     case $host_os in
16145     freebsd[123]*) objformat=aout ;;
16146     *) objformat=elf ;;
16147     esac
16148   fi
16149   version_type=freebsd-$objformat
16150   case $version_type in
16151     freebsd-elf*)
16152       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16153       need_version=no
16154       need_lib_prefix=no
16155       ;;
16156     freebsd-*)
16157       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16158       need_version=yes
16159       ;;
16160   esac
16161   shlibpath_var=LD_LIBRARY_PATH
16162   case $host_os in
16163   freebsd2*)
16164     shlibpath_overrides_runpath=yes
16165     ;;
16166   freebsd3.[01]* | freebsdelf3.[01]*)
16167     shlibpath_overrides_runpath=yes
16168     hardcode_into_libs=yes
16169     ;;
16170   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16171   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16172     shlibpath_overrides_runpath=no
16173     hardcode_into_libs=yes
16174     ;;
16175   freebsd*) # from 4.6 on
16176     shlibpath_overrides_runpath=yes
16177     hardcode_into_libs=yes
16178     ;;
16179   esac
16180   ;;
16181
16182 gnu*)
16183   version_type=linux
16184   need_lib_prefix=no
16185   need_version=no
16186   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16187   soname_spec='${libname}${release}${shared_ext}$major'
16188   shlibpath_var=LD_LIBRARY_PATH
16189   hardcode_into_libs=yes
16190   ;;
16191
16192 hpux9* | hpux10* | hpux11*)
16193   # Give a soname corresponding to the major version so that dld.sl refuses to
16194   # link against other versions.
16195   version_type=sunos
16196   need_lib_prefix=no
16197   need_version=no
16198   case $host_cpu in
16199   ia64*)
16200     shrext_cmds='.so'
16201     hardcode_into_libs=yes
16202     dynamic_linker="$host_os dld.so"
16203     shlibpath_var=LD_LIBRARY_PATH
16204     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16205     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16206     soname_spec='${libname}${release}${shared_ext}$major'
16207     if test "X$HPUX_IA64_MODE" = X32; then
16208       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16209     else
16210       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16211     fi
16212     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16213     ;;
16214    hppa*64*)
16215      shrext_cmds='.sl'
16216      hardcode_into_libs=yes
16217      dynamic_linker="$host_os dld.sl"
16218      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16219      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16220      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16221      soname_spec='${libname}${release}${shared_ext}$major'
16222      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16223      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16224      ;;
16225    *)
16226     shrext_cmds='.sl'
16227     dynamic_linker="$host_os dld.sl"
16228     shlibpath_var=SHLIB_PATH
16229     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16230     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16231     soname_spec='${libname}${release}${shared_ext}$major'
16232     ;;
16233   esac
16234   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16235   postinstall_cmds='chmod 555 $lib'
16236   ;;
16237
16238 interix3*)
16239   version_type=linux
16240   need_lib_prefix=no
16241   need_version=no
16242   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16243   soname_spec='${libname}${release}${shared_ext}$major'
16244   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16245   shlibpath_var=LD_LIBRARY_PATH
16246   shlibpath_overrides_runpath=no
16247   hardcode_into_libs=yes
16248   ;;
16249
16250 irix5* | irix6* | nonstopux*)
16251   case $host_os in
16252     nonstopux*) version_type=nonstopux ;;
16253     *)
16254         if test "$lt_cv_prog_gnu_ld" = yes; then
16255                 version_type=linux
16256         else
16257                 version_type=irix
16258         fi ;;
16259   esac
16260   need_lib_prefix=no
16261   need_version=no
16262   soname_spec='${libname}${release}${shared_ext}$major'
16263   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16264   case $host_os in
16265   irix5* | nonstopux*)
16266     libsuff= shlibsuff=
16267     ;;
16268   *)
16269     case $LD in # libtool.m4 will add one of these switches to LD
16270     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16271       libsuff= shlibsuff= libmagic=32-bit;;
16272     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16273       libsuff=32 shlibsuff=N32 libmagic=N32;;
16274     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16275       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16276     *) libsuff= shlibsuff= libmagic=never-match;;
16277     esac
16278     ;;
16279   esac
16280   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16281   shlibpath_overrides_runpath=no
16282   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16283   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16284   hardcode_into_libs=yes
16285   ;;
16286
16287 # No shared lib support for Linux oldld, aout, or coff.
16288 linux*oldld* | linux*aout* | linux*coff*)
16289   dynamic_linker=no
16290   ;;
16291
16292 # This must be Linux ELF.
16293 linux*)
16294   version_type=linux
16295   need_lib_prefix=no
16296   need_version=no
16297   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16298   soname_spec='${libname}${release}${shared_ext}$major'
16299   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16300   shlibpath_var=LD_LIBRARY_PATH
16301   shlibpath_overrides_runpath=no
16302   # This implies no fast_install, which is unacceptable.
16303   # Some rework will be needed to allow for fast_install
16304   # before this can be enabled.
16305   hardcode_into_libs=yes
16306
16307   # Append ld.so.conf contents to the search path
16308   if test -f /etc/ld.so.conf; then
16309     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' ' '`
16310     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16311   fi
16312
16313   # We used to test for /lib/ld.so.1 and disable shared libraries on
16314   # powerpc, because MkLinux only supported shared libraries with the
16315   # GNU dynamic linker.  Since this was broken with cross compilers,
16316   # most powerpc-linux boxes support dynamic linking these days and
16317   # people can always --disable-shared, the test was removed, and we
16318   # assume the GNU/Linux dynamic linker is in use.
16319   dynamic_linker='GNU/Linux ld.so'
16320   ;;
16321
16322 knetbsd*-gnu)
16323   version_type=linux
16324   need_lib_prefix=no
16325   need_version=no
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   shlibpath_var=LD_LIBRARY_PATH
16329   shlibpath_overrides_runpath=no
16330   hardcode_into_libs=yes
16331   dynamic_linker='GNU ld.so'
16332   ;;
16333
16334 netbsd*)
16335   version_type=sunos
16336   need_lib_prefix=no
16337   need_version=no
16338   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16339     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16340     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16341     dynamic_linker='NetBSD (a.out) ld.so'
16342   else
16343     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16344     soname_spec='${libname}${release}${shared_ext}$major'
16345     dynamic_linker='NetBSD ld.elf_so'
16346   fi
16347   shlibpath_var=LD_LIBRARY_PATH
16348   shlibpath_overrides_runpath=yes
16349   hardcode_into_libs=yes
16350   ;;
16351
16352 newsos6)
16353   version_type=linux
16354   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16355   shlibpath_var=LD_LIBRARY_PATH
16356   shlibpath_overrides_runpath=yes
16357   ;;
16358
16359 nto-qnx*)
16360   version_type=linux
16361   need_lib_prefix=no
16362   need_version=no
16363   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16364   soname_spec='${libname}${release}${shared_ext}$major'
16365   shlibpath_var=LD_LIBRARY_PATH
16366   shlibpath_overrides_runpath=yes
16367   ;;
16368
16369 openbsd*)
16370   version_type=sunos
16371   sys_lib_dlsearch_path_spec="/usr/lib"
16372   need_lib_prefix=no
16373   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16374   case $host_os in
16375     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16376     *)                         need_version=no  ;;
16377   esac
16378   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16379   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16380   shlibpath_var=LD_LIBRARY_PATH
16381   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16382     case $host_os in
16383       openbsd2.[89] | openbsd2.[89].*)
16384         shlibpath_overrides_runpath=no
16385         ;;
16386       *)
16387         shlibpath_overrides_runpath=yes
16388         ;;
16389       esac
16390   else
16391     shlibpath_overrides_runpath=yes
16392   fi
16393   ;;
16394
16395 os2*)
16396   libname_spec='$name'
16397   shrext_cmds=".dll"
16398   need_lib_prefix=no
16399   library_names_spec='$libname${shared_ext} $libname.a'
16400   dynamic_linker='OS/2 ld.exe'
16401   shlibpath_var=LIBPATH
16402   ;;
16403
16404 osf3* | osf4* | osf5*)
16405   version_type=osf
16406   need_lib_prefix=no
16407   need_version=no
16408   soname_spec='${libname}${release}${shared_ext}$major'
16409   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16410   shlibpath_var=LD_LIBRARY_PATH
16411   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16412   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16413   ;;
16414
16415 solaris*)
16416   version_type=linux
16417   need_lib_prefix=no
16418   need_version=no
16419   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16420   soname_spec='${libname}${release}${shared_ext}$major'
16421   shlibpath_var=LD_LIBRARY_PATH
16422   shlibpath_overrides_runpath=yes
16423   hardcode_into_libs=yes
16424   # ldd complains unless libraries are executable
16425   postinstall_cmds='chmod +x $lib'
16426   ;;
16427
16428 sunos4*)
16429   version_type=sunos
16430   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16431   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16432   shlibpath_var=LD_LIBRARY_PATH
16433   shlibpath_overrides_runpath=yes
16434   if test "$with_gnu_ld" = yes; then
16435     need_lib_prefix=no
16436   fi
16437   need_version=yes
16438   ;;
16439
16440 sysv4 | sysv4.3*)
16441   version_type=linux
16442   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16443   soname_spec='${libname}${release}${shared_ext}$major'
16444   shlibpath_var=LD_LIBRARY_PATH
16445   case $host_vendor in
16446     sni)
16447       shlibpath_overrides_runpath=no
16448       need_lib_prefix=no
16449       export_dynamic_flag_spec='${wl}-Blargedynsym'
16450       runpath_var=LD_RUN_PATH
16451       ;;
16452     siemens)
16453       need_lib_prefix=no
16454       ;;
16455     motorola)
16456       need_lib_prefix=no
16457       need_version=no
16458       shlibpath_overrides_runpath=no
16459       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16460       ;;
16461   esac
16462   ;;
16463
16464 sysv4*MP*)
16465   if test -d /usr/nec ;then
16466     version_type=linux
16467     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16468     soname_spec='$libname${shared_ext}.$major'
16469     shlibpath_var=LD_LIBRARY_PATH
16470   fi
16471   ;;
16472
16473 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16474   version_type=freebsd-elf
16475   need_lib_prefix=no
16476   need_version=no
16477   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16478   soname_spec='${libname}${release}${shared_ext}$major'
16479   shlibpath_var=LD_LIBRARY_PATH
16480   hardcode_into_libs=yes
16481   if test "$with_gnu_ld" = yes; then
16482     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16483     shlibpath_overrides_runpath=no
16484   else
16485     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16486     shlibpath_overrides_runpath=yes
16487     case $host_os in
16488       sco3.2v5*)
16489         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16490         ;;
16491     esac
16492   fi
16493   sys_lib_dlsearch_path_spec='/usr/lib'
16494   ;;
16495
16496 uts4*)
16497   version_type=linux
16498   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16499   soname_spec='${libname}${release}${shared_ext}$major'
16500   shlibpath_var=LD_LIBRARY_PATH
16501   ;;
16502
16503 *)
16504   dynamic_linker=no
16505   ;;
16506 esac
16507 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16508 echo "${ECHO_T}$dynamic_linker" >&6; }
16509 test "$dynamic_linker" = no && can_build_shared=no
16510
16511 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16512 if test "$GCC" = yes; then
16513   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16514 fi
16515
16516 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16517 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16518 hardcode_action=
16519 if test -n "$hardcode_libdir_flag_spec" || \
16520    test -n "$runpath_var" || \
16521    test "X$hardcode_automatic" = "Xyes" ; then
16522
16523   # We can hardcode non-existant directories.
16524   if test "$hardcode_direct" != no &&
16525      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16526      # have to relink, otherwise we might link with an installed library
16527      # when we should be linking with a yet-to-be-installed one
16528      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16529      test "$hardcode_minus_L" != no; then
16530     # Linking always hardcodes the temporary library directory.
16531     hardcode_action=relink
16532   else
16533     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16534     hardcode_action=immediate
16535   fi
16536 else
16537   # We cannot hardcode anything, or else we can only hardcode existing
16538   # directories.
16539   hardcode_action=unsupported
16540 fi
16541 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16542 echo "${ECHO_T}$hardcode_action" >&6; }
16543
16544 if test "$hardcode_action" = relink; then
16545   # Fast installation is not supported
16546   enable_fast_install=no
16547 elif test "$shlibpath_overrides_runpath" = yes ||
16548      test "$enable_shared" = no; then
16549   # Fast installation is not necessary
16550   enable_fast_install=needless
16551 fi
16552
16553 striplib=
16554 old_striplib=
16555 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16556 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16557 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16558   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16559   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16560   { echo "$as_me:$LINENO: result: yes" >&5
16561 echo "${ECHO_T}yes" >&6; }
16562 else
16563 # FIXME - insert some real tests, host_os isn't really good enough
16564   case $host_os in
16565    darwin*)
16566        if test -n "$STRIP" ; then
16567          striplib="$STRIP -x"
16568          { echo "$as_me:$LINENO: result: yes" >&5
16569 echo "${ECHO_T}yes" >&6; }
16570        else
16571   { echo "$as_me:$LINENO: result: no" >&5
16572 echo "${ECHO_T}no" >&6; }
16573 fi
16574        ;;
16575    *)
16576   { echo "$as_me:$LINENO: result: no" >&5
16577 echo "${ECHO_T}no" >&6; }
16578     ;;
16579   esac
16580 fi
16581
16582 if test "x$enable_dlopen" != xyes; then
16583   enable_dlopen=unknown
16584   enable_dlopen_self=unknown
16585   enable_dlopen_self_static=unknown
16586 else
16587   lt_cv_dlopen=no
16588   lt_cv_dlopen_libs=
16589
16590   case $host_os in
16591   beos*)
16592     lt_cv_dlopen="load_add_on"
16593     lt_cv_dlopen_libs=
16594     lt_cv_dlopen_self=yes
16595     ;;
16596
16597   mingw* | pw32*)
16598     lt_cv_dlopen="LoadLibrary"
16599     lt_cv_dlopen_libs=
16600    ;;
16601
16602   cygwin*)
16603     lt_cv_dlopen="dlopen"
16604     lt_cv_dlopen_libs=
16605    ;;
16606
16607   darwin*)
16608   # if libdl is installed we need to link against it
16609     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16610 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16611 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16612   echo $ECHO_N "(cached) $ECHO_C" >&6
16613 else
16614   ac_check_lib_save_LIBS=$LIBS
16615 LIBS="-ldl  $LIBS"
16616 cat >conftest.$ac_ext <<_ACEOF
16617 /* confdefs.h.  */
16618 _ACEOF
16619 cat confdefs.h >>conftest.$ac_ext
16620 cat >>conftest.$ac_ext <<_ACEOF
16621 /* end confdefs.h.  */
16622
16623 /* Override any GCC internal prototype to avoid an error.
16624    Use char because int might match the return type of a GCC
16625    builtin and then its argument prototype would still apply.  */
16626 #ifdef __cplusplus
16627 extern "C"
16628 #endif
16629 char dlopen ();
16630 int
16631 main ()
16632 {
16633 return dlopen ();
16634   ;
16635   return 0;
16636 }
16637 _ACEOF
16638 rm -f conftest.$ac_objext conftest$ac_exeext
16639 if { (ac_try="$ac_link"
16640 case "(($ac_try" in
16641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16642   *) ac_try_echo=$ac_try;;
16643 esac
16644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16645   (eval "$ac_link") 2>conftest.er1
16646   ac_status=$?
16647   grep -v '^ *+' conftest.er1 >conftest.err
16648   rm -f conftest.er1
16649   cat conftest.err >&5
16650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16651   (exit $ac_status); } &&
16652          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16653   { (case "(($ac_try" in
16654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16655   *) ac_try_echo=$ac_try;;
16656 esac
16657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16658   (eval "$ac_try") 2>&5
16659   ac_status=$?
16660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16661   (exit $ac_status); }; } &&
16662          { ac_try='test -s conftest$ac_exeext'
16663   { (case "(($ac_try" in
16664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16665   *) ac_try_echo=$ac_try;;
16666 esac
16667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16668   (eval "$ac_try") 2>&5
16669   ac_status=$?
16670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16671   (exit $ac_status); }; }; then
16672   ac_cv_lib_dl_dlopen=yes
16673 else
16674   echo "$as_me: failed program was:" >&5
16675 sed 's/^/| /' conftest.$ac_ext >&5
16676
16677         ac_cv_lib_dl_dlopen=no
16678 fi
16679
16680 rm -f core conftest.err conftest.$ac_objext \
16681       conftest$ac_exeext conftest.$ac_ext
16682 LIBS=$ac_check_lib_save_LIBS
16683 fi
16684 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16685 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16686 if test $ac_cv_lib_dl_dlopen = yes; then
16687   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16688 else
16689
16690     lt_cv_dlopen="dyld"
16691     lt_cv_dlopen_libs=
16692     lt_cv_dlopen_self=yes
16693
16694 fi
16695
16696    ;;
16697
16698   *)
16699     { echo "$as_me:$LINENO: checking for shl_load" >&5
16700 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16701 if test "${ac_cv_func_shl_load+set}" = set; then
16702   echo $ECHO_N "(cached) $ECHO_C" >&6
16703 else
16704   cat >conftest.$ac_ext <<_ACEOF
16705 /* confdefs.h.  */
16706 _ACEOF
16707 cat confdefs.h >>conftest.$ac_ext
16708 cat >>conftest.$ac_ext <<_ACEOF
16709 /* end confdefs.h.  */
16710 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16711    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16712 #define shl_load innocuous_shl_load
16713
16714 /* System header to define __stub macros and hopefully few prototypes,
16715     which can conflict with char shl_load (); below.
16716     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16717     <limits.h> exists even on freestanding compilers.  */
16718
16719 #ifdef __STDC__
16720 # include <limits.h>
16721 #else
16722 # include <assert.h>
16723 #endif
16724
16725 #undef shl_load
16726
16727 /* Override any GCC internal prototype to avoid an error.
16728    Use char because int might match the return type of a GCC
16729    builtin and then its argument prototype would still apply.  */
16730 #ifdef __cplusplus
16731 extern "C"
16732 #endif
16733 char shl_load ();
16734 /* The GNU C library defines this for functions which it implements
16735     to always fail with ENOSYS.  Some functions are actually named
16736     something starting with __ and the normal name is an alias.  */
16737 #if defined __stub_shl_load || defined __stub___shl_load
16738 choke me
16739 #endif
16740
16741 int
16742 main ()
16743 {
16744 return shl_load ();
16745   ;
16746   return 0;
16747 }
16748 _ACEOF
16749 rm -f conftest.$ac_objext conftest$ac_exeext
16750 if { (ac_try="$ac_link"
16751 case "(($ac_try" in
16752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16753   *) ac_try_echo=$ac_try;;
16754 esac
16755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16756   (eval "$ac_link") 2>conftest.er1
16757   ac_status=$?
16758   grep -v '^ *+' conftest.er1 >conftest.err
16759   rm -f conftest.er1
16760   cat conftest.err >&5
16761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16762   (exit $ac_status); } &&
16763          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16764   { (case "(($ac_try" in
16765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16766   *) ac_try_echo=$ac_try;;
16767 esac
16768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16769   (eval "$ac_try") 2>&5
16770   ac_status=$?
16771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16772   (exit $ac_status); }; } &&
16773          { ac_try='test -s conftest$ac_exeext'
16774   { (case "(($ac_try" in
16775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16776   *) ac_try_echo=$ac_try;;
16777 esac
16778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16779   (eval "$ac_try") 2>&5
16780   ac_status=$?
16781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16782   (exit $ac_status); }; }; then
16783   ac_cv_func_shl_load=yes
16784 else
16785   echo "$as_me: failed program was:" >&5
16786 sed 's/^/| /' conftest.$ac_ext >&5
16787
16788         ac_cv_func_shl_load=no
16789 fi
16790
16791 rm -f core conftest.err conftest.$ac_objext \
16792       conftest$ac_exeext conftest.$ac_ext
16793 fi
16794 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16795 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
16796 if test $ac_cv_func_shl_load = yes; then
16797   lt_cv_dlopen="shl_load"
16798 else
16799   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16800 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
16801 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16802   echo $ECHO_N "(cached) $ECHO_C" >&6
16803 else
16804   ac_check_lib_save_LIBS=$LIBS
16805 LIBS="-ldld  $LIBS"
16806 cat >conftest.$ac_ext <<_ACEOF
16807 /* confdefs.h.  */
16808 _ACEOF
16809 cat confdefs.h >>conftest.$ac_ext
16810 cat >>conftest.$ac_ext <<_ACEOF
16811 /* end confdefs.h.  */
16812
16813 /* Override any GCC internal prototype to avoid an error.
16814    Use char because int might match the return type of a GCC
16815    builtin and then its argument prototype would still apply.  */
16816 #ifdef __cplusplus
16817 extern "C"
16818 #endif
16819 char shl_load ();
16820 int
16821 main ()
16822 {
16823 return shl_load ();
16824   ;
16825   return 0;
16826 }
16827 _ACEOF
16828 rm -f conftest.$ac_objext conftest$ac_exeext
16829 if { (ac_try="$ac_link"
16830 case "(($ac_try" in
16831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16832   *) ac_try_echo=$ac_try;;
16833 esac
16834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16835   (eval "$ac_link") 2>conftest.er1
16836   ac_status=$?
16837   grep -v '^ *+' conftest.er1 >conftest.err
16838   rm -f conftest.er1
16839   cat conftest.err >&5
16840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16841   (exit $ac_status); } &&
16842          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16843   { (case "(($ac_try" in
16844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16845   *) ac_try_echo=$ac_try;;
16846 esac
16847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16848   (eval "$ac_try") 2>&5
16849   ac_status=$?
16850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16851   (exit $ac_status); }; } &&
16852          { ac_try='test -s conftest$ac_exeext'
16853   { (case "(($ac_try" in
16854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16855   *) ac_try_echo=$ac_try;;
16856 esac
16857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16858   (eval "$ac_try") 2>&5
16859   ac_status=$?
16860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16861   (exit $ac_status); }; }; then
16862   ac_cv_lib_dld_shl_load=yes
16863 else
16864   echo "$as_me: failed program was:" >&5
16865 sed 's/^/| /' conftest.$ac_ext >&5
16866
16867         ac_cv_lib_dld_shl_load=no
16868 fi
16869
16870 rm -f core conftest.err conftest.$ac_objext \
16871       conftest$ac_exeext conftest.$ac_ext
16872 LIBS=$ac_check_lib_save_LIBS
16873 fi
16874 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16875 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
16876 if test $ac_cv_lib_dld_shl_load = yes; then
16877   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16878 else
16879   { echo "$as_me:$LINENO: checking for dlopen" >&5
16880 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
16881 if test "${ac_cv_func_dlopen+set}" = set; then
16882   echo $ECHO_N "(cached) $ECHO_C" >&6
16883 else
16884   cat >conftest.$ac_ext <<_ACEOF
16885 /* confdefs.h.  */
16886 _ACEOF
16887 cat confdefs.h >>conftest.$ac_ext
16888 cat >>conftest.$ac_ext <<_ACEOF
16889 /* end confdefs.h.  */
16890 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16891    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16892 #define dlopen innocuous_dlopen
16893
16894 /* System header to define __stub macros and hopefully few prototypes,
16895     which can conflict with char dlopen (); below.
16896     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16897     <limits.h> exists even on freestanding compilers.  */
16898
16899 #ifdef __STDC__
16900 # include <limits.h>
16901 #else
16902 # include <assert.h>
16903 #endif
16904
16905 #undef dlopen
16906
16907 /* Override any GCC internal prototype to avoid an error.
16908    Use char because int might match the return type of a GCC
16909    builtin and then its argument prototype would still apply.  */
16910 #ifdef __cplusplus
16911 extern "C"
16912 #endif
16913 char dlopen ();
16914 /* The GNU C library defines this for functions which it implements
16915     to always fail with ENOSYS.  Some functions are actually named
16916     something starting with __ and the normal name is an alias.  */
16917 #if defined __stub_dlopen || defined __stub___dlopen
16918 choke me
16919 #endif
16920
16921 int
16922 main ()
16923 {
16924 return dlopen ();
16925   ;
16926   return 0;
16927 }
16928 _ACEOF
16929 rm -f conftest.$ac_objext conftest$ac_exeext
16930 if { (ac_try="$ac_link"
16931 case "(($ac_try" in
16932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16933   *) ac_try_echo=$ac_try;;
16934 esac
16935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16936   (eval "$ac_link") 2>conftest.er1
16937   ac_status=$?
16938   grep -v '^ *+' conftest.er1 >conftest.err
16939   rm -f conftest.er1
16940   cat conftest.err >&5
16941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16942   (exit $ac_status); } &&
16943          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16944   { (case "(($ac_try" in
16945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16946   *) ac_try_echo=$ac_try;;
16947 esac
16948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16949   (eval "$ac_try") 2>&5
16950   ac_status=$?
16951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16952   (exit $ac_status); }; } &&
16953          { ac_try='test -s conftest$ac_exeext'
16954   { (case "(($ac_try" in
16955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16956   *) ac_try_echo=$ac_try;;
16957 esac
16958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16959   (eval "$ac_try") 2>&5
16960   ac_status=$?
16961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16962   (exit $ac_status); }; }; then
16963   ac_cv_func_dlopen=yes
16964 else
16965   echo "$as_me: failed program was:" >&5
16966 sed 's/^/| /' conftest.$ac_ext >&5
16967
16968         ac_cv_func_dlopen=no
16969 fi
16970
16971 rm -f core conftest.err conftest.$ac_objext \
16972       conftest$ac_exeext conftest.$ac_ext
16973 fi
16974 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16975 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
16976 if test $ac_cv_func_dlopen = yes; then
16977   lt_cv_dlopen="dlopen"
16978 else
16979   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16980 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16981 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16982   echo $ECHO_N "(cached) $ECHO_C" >&6
16983 else
16984   ac_check_lib_save_LIBS=$LIBS
16985 LIBS="-ldl  $LIBS"
16986 cat >conftest.$ac_ext <<_ACEOF
16987 /* confdefs.h.  */
16988 _ACEOF
16989 cat confdefs.h >>conftest.$ac_ext
16990 cat >>conftest.$ac_ext <<_ACEOF
16991 /* end confdefs.h.  */
16992
16993 /* Override any GCC internal prototype to avoid an error.
16994    Use char because int might match the return type of a GCC
16995    builtin and then its argument prototype would still apply.  */
16996 #ifdef __cplusplus
16997 extern "C"
16998 #endif
16999 char dlopen ();
17000 int
17001 main ()
17002 {
17003 return dlopen ();
17004   ;
17005   return 0;
17006 }
17007 _ACEOF
17008 rm -f conftest.$ac_objext conftest$ac_exeext
17009 if { (ac_try="$ac_link"
17010 case "(($ac_try" in
17011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17012   *) ac_try_echo=$ac_try;;
17013 esac
17014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17015   (eval "$ac_link") 2>conftest.er1
17016   ac_status=$?
17017   grep -v '^ *+' conftest.er1 >conftest.err
17018   rm -f conftest.er1
17019   cat conftest.err >&5
17020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17021   (exit $ac_status); } &&
17022          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17023   { (case "(($ac_try" in
17024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17025   *) ac_try_echo=$ac_try;;
17026 esac
17027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17028   (eval "$ac_try") 2>&5
17029   ac_status=$?
17030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17031   (exit $ac_status); }; } &&
17032          { ac_try='test -s conftest$ac_exeext'
17033   { (case "(($ac_try" in
17034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17035   *) ac_try_echo=$ac_try;;
17036 esac
17037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17038   (eval "$ac_try") 2>&5
17039   ac_status=$?
17040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17041   (exit $ac_status); }; }; then
17042   ac_cv_lib_dl_dlopen=yes
17043 else
17044   echo "$as_me: failed program was:" >&5
17045 sed 's/^/| /' conftest.$ac_ext >&5
17046
17047         ac_cv_lib_dl_dlopen=no
17048 fi
17049
17050 rm -f core conftest.err conftest.$ac_objext \
17051       conftest$ac_exeext conftest.$ac_ext
17052 LIBS=$ac_check_lib_save_LIBS
17053 fi
17054 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17055 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17056 if test $ac_cv_lib_dl_dlopen = yes; then
17057   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17058 else
17059   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17060 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17061 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17062   echo $ECHO_N "(cached) $ECHO_C" >&6
17063 else
17064   ac_check_lib_save_LIBS=$LIBS
17065 LIBS="-lsvld  $LIBS"
17066 cat >conftest.$ac_ext <<_ACEOF
17067 /* confdefs.h.  */
17068 _ACEOF
17069 cat confdefs.h >>conftest.$ac_ext
17070 cat >>conftest.$ac_ext <<_ACEOF
17071 /* end confdefs.h.  */
17072
17073 /* Override any GCC internal prototype to avoid an error.
17074    Use char because int might match the return type of a GCC
17075    builtin and then its argument prototype would still apply.  */
17076 #ifdef __cplusplus
17077 extern "C"
17078 #endif
17079 char dlopen ();
17080 int
17081 main ()
17082 {
17083 return dlopen ();
17084   ;
17085   return 0;
17086 }
17087 _ACEOF
17088 rm -f conftest.$ac_objext conftest$ac_exeext
17089 if { (ac_try="$ac_link"
17090 case "(($ac_try" in
17091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17092   *) ac_try_echo=$ac_try;;
17093 esac
17094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17095   (eval "$ac_link") 2>conftest.er1
17096   ac_status=$?
17097   grep -v '^ *+' conftest.er1 >conftest.err
17098   rm -f conftest.er1
17099   cat conftest.err >&5
17100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17101   (exit $ac_status); } &&
17102          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17103   { (case "(($ac_try" in
17104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17105   *) ac_try_echo=$ac_try;;
17106 esac
17107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17108   (eval "$ac_try") 2>&5
17109   ac_status=$?
17110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17111   (exit $ac_status); }; } &&
17112          { ac_try='test -s conftest$ac_exeext'
17113   { (case "(($ac_try" in
17114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17115   *) ac_try_echo=$ac_try;;
17116 esac
17117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17118   (eval "$ac_try") 2>&5
17119   ac_status=$?
17120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17121   (exit $ac_status); }; }; then
17122   ac_cv_lib_svld_dlopen=yes
17123 else
17124   echo "$as_me: failed program was:" >&5
17125 sed 's/^/| /' conftest.$ac_ext >&5
17126
17127         ac_cv_lib_svld_dlopen=no
17128 fi
17129
17130 rm -f core conftest.err conftest.$ac_objext \
17131       conftest$ac_exeext conftest.$ac_ext
17132 LIBS=$ac_check_lib_save_LIBS
17133 fi
17134 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17135 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17136 if test $ac_cv_lib_svld_dlopen = yes; then
17137   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17138 else
17139   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17140 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17141 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17142   echo $ECHO_N "(cached) $ECHO_C" >&6
17143 else
17144   ac_check_lib_save_LIBS=$LIBS
17145 LIBS="-ldld  $LIBS"
17146 cat >conftest.$ac_ext <<_ACEOF
17147 /* confdefs.h.  */
17148 _ACEOF
17149 cat confdefs.h >>conftest.$ac_ext
17150 cat >>conftest.$ac_ext <<_ACEOF
17151 /* end confdefs.h.  */
17152
17153 /* Override any GCC internal prototype to avoid an error.
17154    Use char because int might match the return type of a GCC
17155    builtin and then its argument prototype would still apply.  */
17156 #ifdef __cplusplus
17157 extern "C"
17158 #endif
17159 char dld_link ();
17160 int
17161 main ()
17162 {
17163 return dld_link ();
17164   ;
17165   return 0;
17166 }
17167 _ACEOF
17168 rm -f conftest.$ac_objext conftest$ac_exeext
17169 if { (ac_try="$ac_link"
17170 case "(($ac_try" in
17171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17172   *) ac_try_echo=$ac_try;;
17173 esac
17174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17175   (eval "$ac_link") 2>conftest.er1
17176   ac_status=$?
17177   grep -v '^ *+' conftest.er1 >conftest.err
17178   rm -f conftest.er1
17179   cat conftest.err >&5
17180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17181   (exit $ac_status); } &&
17182          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17183   { (case "(($ac_try" in
17184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17185   *) ac_try_echo=$ac_try;;
17186 esac
17187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17188   (eval "$ac_try") 2>&5
17189   ac_status=$?
17190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17191   (exit $ac_status); }; } &&
17192          { ac_try='test -s conftest$ac_exeext'
17193   { (case "(($ac_try" in
17194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17195   *) ac_try_echo=$ac_try;;
17196 esac
17197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17198   (eval "$ac_try") 2>&5
17199   ac_status=$?
17200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17201   (exit $ac_status); }; }; then
17202   ac_cv_lib_dld_dld_link=yes
17203 else
17204   echo "$as_me: failed program was:" >&5
17205 sed 's/^/| /' conftest.$ac_ext >&5
17206
17207         ac_cv_lib_dld_dld_link=no
17208 fi
17209
17210 rm -f core conftest.err conftest.$ac_objext \
17211       conftest$ac_exeext conftest.$ac_ext
17212 LIBS=$ac_check_lib_save_LIBS
17213 fi
17214 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17215 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17216 if test $ac_cv_lib_dld_dld_link = yes; then
17217   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17218 fi
17219
17220
17221 fi
17222
17223
17224 fi
17225
17226
17227 fi
17228
17229
17230 fi
17231
17232
17233 fi
17234
17235     ;;
17236   esac
17237
17238   if test "x$lt_cv_dlopen" != xno; then
17239     enable_dlopen=yes
17240   else
17241     enable_dlopen=no
17242   fi
17243
17244   case $lt_cv_dlopen in
17245   dlopen)
17246     save_CPPFLAGS="$CPPFLAGS"
17247     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17248
17249     save_LDFLAGS="$LDFLAGS"
17250     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17251
17252     save_LIBS="$LIBS"
17253     LIBS="$lt_cv_dlopen_libs $LIBS"
17254
17255     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17256 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17257 if test "${lt_cv_dlopen_self+set}" = set; then
17258   echo $ECHO_N "(cached) $ECHO_C" >&6
17259 else
17260           if test "$cross_compiling" = yes; then :
17261   lt_cv_dlopen_self=cross
17262 else
17263   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17264   lt_status=$lt_dlunknown
17265   cat > conftest.$ac_ext <<EOF
17266 #line 17266 "configure"
17267 #include "confdefs.h"
17268
17269 #if HAVE_DLFCN_H
17270 #include <dlfcn.h>
17271 #endif
17272
17273 #include <stdio.h>
17274
17275 #ifdef RTLD_GLOBAL
17276 #  define LT_DLGLOBAL           RTLD_GLOBAL
17277 #else
17278 #  ifdef DL_GLOBAL
17279 #    define LT_DLGLOBAL         DL_GLOBAL
17280 #  else
17281 #    define LT_DLGLOBAL         0
17282 #  endif
17283 #endif
17284
17285 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17286    find out it does not work in some platform. */
17287 #ifndef LT_DLLAZY_OR_NOW
17288 #  ifdef RTLD_LAZY
17289 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17290 #  else
17291 #    ifdef DL_LAZY
17292 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17293 #    else
17294 #      ifdef RTLD_NOW
17295 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17296 #      else
17297 #        ifdef DL_NOW
17298 #          define LT_DLLAZY_OR_NOW      DL_NOW
17299 #        else
17300 #          define LT_DLLAZY_OR_NOW      0
17301 #        endif
17302 #      endif
17303 #    endif
17304 #  endif
17305 #endif
17306
17307 #ifdef __cplusplus
17308 extern "C" void exit (int);
17309 #endif
17310
17311 void fnord() { int i=42;}
17312 int main ()
17313 {
17314   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17315   int status = $lt_dlunknown;
17316
17317   if (self)
17318     {
17319       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17320       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17321       /* dlclose (self); */
17322     }
17323   else
17324     puts (dlerror ());
17325
17326     exit (status);
17327 }
17328 EOF
17329   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17330   (eval $ac_link) 2>&5
17331   ac_status=$?
17332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17333   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17334     (./conftest; exit; ) >&5 2>/dev/null
17335     lt_status=$?
17336     case x$lt_status in
17337       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17338       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17339       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17340     esac
17341   else :
17342     # compilation failed
17343     lt_cv_dlopen_self=no
17344   fi
17345 fi
17346 rm -fr conftest*
17347
17348
17349 fi
17350 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17351 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17352
17353     if test "x$lt_cv_dlopen_self" = xyes; then
17354       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17355       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17356 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17357 if test "${lt_cv_dlopen_self_static+set}" = set; then
17358   echo $ECHO_N "(cached) $ECHO_C" >&6
17359 else
17360           if test "$cross_compiling" = yes; then :
17361   lt_cv_dlopen_self_static=cross
17362 else
17363   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17364   lt_status=$lt_dlunknown
17365   cat > conftest.$ac_ext <<EOF
17366 #line 17366 "configure"
17367 #include "confdefs.h"
17368
17369 #if HAVE_DLFCN_H
17370 #include <dlfcn.h>
17371 #endif
17372
17373 #include <stdio.h>
17374
17375 #ifdef RTLD_GLOBAL
17376 #  define LT_DLGLOBAL           RTLD_GLOBAL
17377 #else
17378 #  ifdef DL_GLOBAL
17379 #    define LT_DLGLOBAL         DL_GLOBAL
17380 #  else
17381 #    define LT_DLGLOBAL         0
17382 #  endif
17383 #endif
17384
17385 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17386    find out it does not work in some platform. */
17387 #ifndef LT_DLLAZY_OR_NOW
17388 #  ifdef RTLD_LAZY
17389 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17390 #  else
17391 #    ifdef DL_LAZY
17392 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17393 #    else
17394 #      ifdef RTLD_NOW
17395 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17396 #      else
17397 #        ifdef DL_NOW
17398 #          define LT_DLLAZY_OR_NOW      DL_NOW
17399 #        else
17400 #          define LT_DLLAZY_OR_NOW      0
17401 #        endif
17402 #      endif
17403 #    endif
17404 #  endif
17405 #endif
17406
17407 #ifdef __cplusplus
17408 extern "C" void exit (int);
17409 #endif
17410
17411 void fnord() { int i=42;}
17412 int main ()
17413 {
17414   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17415   int status = $lt_dlunknown;
17416
17417   if (self)
17418     {
17419       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17420       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17421       /* dlclose (self); */
17422     }
17423   else
17424     puts (dlerror ());
17425
17426     exit (status);
17427 }
17428 EOF
17429   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17430   (eval $ac_link) 2>&5
17431   ac_status=$?
17432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17433   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17434     (./conftest; exit; ) >&5 2>/dev/null
17435     lt_status=$?
17436     case x$lt_status in
17437       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17438       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17439       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17440     esac
17441   else :
17442     # compilation failed
17443     lt_cv_dlopen_self_static=no
17444   fi
17445 fi
17446 rm -fr conftest*
17447
17448
17449 fi
17450 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17451 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17452     fi
17453
17454     CPPFLAGS="$save_CPPFLAGS"
17455     LDFLAGS="$save_LDFLAGS"
17456     LIBS="$save_LIBS"
17457     ;;
17458   esac
17459
17460   case $lt_cv_dlopen_self in
17461   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17462   *) enable_dlopen_self=unknown ;;
17463   esac
17464
17465   case $lt_cv_dlopen_self_static in
17466   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17467   *) enable_dlopen_self_static=unknown ;;
17468   esac
17469 fi
17470
17471
17472 # Report which library types will actually be built
17473 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17474 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17475 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17476 echo "${ECHO_T}$can_build_shared" >&6; }
17477
17478 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17479 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17480 test "$can_build_shared" = "no" && enable_shared=no
17481
17482 # On AIX, shared libraries and static libraries use the same namespace, and
17483 # are all built from PIC.
17484 case $host_os in
17485 aix3*)
17486   test "$enable_shared" = yes && enable_static=no
17487   if test -n "$RANLIB"; then
17488     archive_cmds="$archive_cmds~\$RANLIB \$lib"
17489     postinstall_cmds='$RANLIB $lib'
17490   fi
17491   ;;
17492
17493 aix4* | aix5*)
17494   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17495     test "$enable_shared" = yes && enable_static=no
17496   fi
17497     ;;
17498 esac
17499 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17500 echo "${ECHO_T}$enable_shared" >&6; }
17501
17502 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17503 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17504 # Make sure either enable_shared or enable_static is yes.
17505 test "$enable_shared" = yes || enable_static=yes
17506 { echo "$as_me:$LINENO: result: $enable_static" >&5
17507 echo "${ECHO_T}$enable_static" >&6; }
17508
17509 # The else clause should only fire when bootstrapping the
17510 # libtool distribution, otherwise you forgot to ship ltmain.sh
17511 # with your package, and you will get complaints that there are
17512 # no rules to generate ltmain.sh.
17513 if test -f "$ltmain"; then
17514   # See if we are running on zsh, and set the options which allow our commands through
17515   # without removal of \ escapes.
17516   if test -n "${ZSH_VERSION+set}" ; then
17517     setopt NO_GLOB_SUBST
17518   fi
17519   # Now quote all the things that may contain metacharacters while being
17520   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17521   # variables and quote the copies for generation of the libtool script.
17522   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17523     SED SHELL STRIP \
17524     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17525     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17526     deplibs_check_method reload_flag reload_cmds need_locks \
17527     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17528     lt_cv_sys_global_symbol_to_c_name_address \
17529     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17530     old_postinstall_cmds old_postuninstall_cmds \
17531     compiler \
17532     CC \
17533     LD \
17534     lt_prog_compiler_wl \
17535     lt_prog_compiler_pic \
17536     lt_prog_compiler_static \
17537     lt_prog_compiler_no_builtin_flag \
17538     export_dynamic_flag_spec \
17539     thread_safe_flag_spec \
17540     whole_archive_flag_spec \
17541     enable_shared_with_static_runtimes \
17542     old_archive_cmds \
17543     old_archive_from_new_cmds \
17544     predep_objects \
17545     postdep_objects \
17546     predeps \
17547     postdeps \
17548     compiler_lib_search_path \
17549     archive_cmds \
17550     archive_expsym_cmds \
17551     postinstall_cmds \
17552     postuninstall_cmds \
17553     old_archive_from_expsyms_cmds \
17554     allow_undefined_flag \
17555     no_undefined_flag \
17556     export_symbols_cmds \
17557     hardcode_libdir_flag_spec \
17558     hardcode_libdir_flag_spec_ld \
17559     hardcode_libdir_separator \
17560     hardcode_automatic \
17561     module_cmds \
17562     module_expsym_cmds \
17563     lt_cv_prog_compiler_c_o \
17564     exclude_expsyms \
17565     include_expsyms; do
17566
17567     case $var in
17568     old_archive_cmds | \
17569     old_archive_from_new_cmds | \
17570     archive_cmds | \
17571     archive_expsym_cmds | \
17572     module_cmds | \
17573     module_expsym_cmds | \
17574     old_archive_from_expsyms_cmds | \
17575     export_symbols_cmds | \
17576     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17577     postinstall_cmds | postuninstall_cmds | \
17578     old_postinstall_cmds | old_postuninstall_cmds | \
17579     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17580       # Double-quote double-evaled strings.
17581       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17582       ;;
17583     *)
17584       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17585       ;;
17586     esac
17587   done
17588
17589   case $lt_echo in
17590   *'\$0 --fallback-echo"')
17591     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17592     ;;
17593   esac
17594
17595 cfgfile="${ofile}T"
17596   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17597   $rm -f "$cfgfile"
17598   { echo "$as_me:$LINENO: creating $ofile" >&5
17599 echo "$as_me: creating $ofile" >&6;}
17600
17601   cat <<__EOF__ >> "$cfgfile"
17602 #! $SHELL
17603
17604 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17605 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17606 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17607 #
17608 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17609 # Free Software Foundation, Inc.
17610 #
17611 # This file is part of GNU Libtool:
17612 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17613 #
17614 # This program is free software; you can redistribute it and/or modify
17615 # it under the terms of the GNU General Public License as published by
17616 # the Free Software Foundation; either version 2 of the License, or
17617 # (at your option) any later version.
17618 #
17619 # This program is distributed in the hope that it will be useful, but
17620 # WITHOUT ANY WARRANTY; without even the implied warranty of
17621 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17622 # General Public License for more details.
17623 #
17624 # You should have received a copy of the GNU General Public License
17625 # along with this program; if not, write to the Free Software
17626 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17627 #
17628 # As a special exception to the GNU General Public License, if you
17629 # distribute this file as part of a program that contains a
17630 # configuration script generated by Autoconf, you may include it under
17631 # the same distribution terms that you use for the rest of that program.
17632
17633 # A sed program that does not truncate output.
17634 SED=$lt_SED
17635
17636 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17637 Xsed="$SED -e 1s/^X//"
17638
17639 # The HP-UX ksh and POSIX shell print the target directory to stdout
17640 # if CDPATH is set.
17641 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17642
17643 # The names of the tagged configurations supported by this script.
17644 available_tags=
17645
17646 # ### BEGIN LIBTOOL CONFIG
17647
17648 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17649
17650 # Shell to use when invoking shell scripts.
17651 SHELL=$lt_SHELL
17652
17653 # Whether or not to build shared libraries.
17654 build_libtool_libs=$enable_shared
17655
17656 # Whether or not to build static libraries.
17657 build_old_libs=$enable_static
17658
17659 # Whether or not to add -lc for building shared libraries.
17660 build_libtool_need_lc=$archive_cmds_need_lc
17661
17662 # Whether or not to disallow shared libs when runtime libs are static
17663 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17664
17665 # Whether or not to optimize for fast installation.
17666 fast_install=$enable_fast_install
17667
17668 # The host system.
17669 host_alias=$host_alias
17670 host=$host
17671 host_os=$host_os
17672
17673 # The build system.
17674 build_alias=$build_alias
17675 build=$build
17676 build_os=$build_os
17677
17678 # An echo program that does not interpret backslashes.
17679 echo=$lt_echo
17680
17681 # The archiver.
17682 AR=$lt_AR
17683 AR_FLAGS=$lt_AR_FLAGS
17684
17685 # A C compiler.
17686 LTCC=$lt_LTCC
17687
17688 # LTCC compiler flags.
17689 LTCFLAGS=$lt_LTCFLAGS
17690
17691 # A language-specific compiler.
17692 CC=$lt_compiler
17693
17694 # Is the compiler the GNU C compiler?
17695 with_gcc=$GCC
17696
17697 # An ERE matcher.
17698 EGREP=$lt_EGREP
17699
17700 # The linker used to build libraries.
17701 LD=$lt_LD
17702
17703 # Whether we need hard or soft links.
17704 LN_S=$lt_LN_S
17705
17706 # A BSD-compatible nm program.
17707 NM=$lt_NM
17708
17709 # A symbol stripping program
17710 STRIP=$lt_STRIP
17711
17712 # Used to examine libraries when file_magic_cmd begins "file"
17713 MAGIC_CMD=$MAGIC_CMD
17714
17715 # Used on cygwin: DLL creation program.
17716 DLLTOOL="$DLLTOOL"
17717
17718 # Used on cygwin: object dumper.
17719 OBJDUMP="$OBJDUMP"
17720
17721 # Used on cygwin: assembler.
17722 AS="$AS"
17723
17724 # The name of the directory that contains temporary libtool files.
17725 objdir=$objdir
17726
17727 # How to create reloadable object files.
17728 reload_flag=$lt_reload_flag
17729 reload_cmds=$lt_reload_cmds
17730
17731 # How to pass a linker flag through the compiler.
17732 wl=$lt_lt_prog_compiler_wl
17733
17734 # Object file suffix (normally "o").
17735 objext="$ac_objext"
17736
17737 # Old archive suffix (normally "a").
17738 libext="$libext"
17739
17740 # Shared library suffix (normally ".so").
17741 shrext_cmds='$shrext_cmds'
17742
17743 # Executable file suffix (normally "").
17744 exeext="$exeext"
17745
17746 # Additional compiler flags for building library objects.
17747 pic_flag=$lt_lt_prog_compiler_pic
17748 pic_mode=$pic_mode
17749
17750 # What is the maximum length of a command?
17751 max_cmd_len=$lt_cv_sys_max_cmd_len
17752
17753 # Does compiler simultaneously support -c and -o options?
17754 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17755
17756 # Must we lock files when doing compilation?
17757 need_locks=$lt_need_locks
17758
17759 # Do we need the lib prefix for modules?
17760 need_lib_prefix=$need_lib_prefix
17761
17762 # Do we need a version for libraries?
17763 need_version=$need_version
17764
17765 # Whether dlopen is supported.
17766 dlopen_support=$enable_dlopen
17767
17768 # Whether dlopen of programs is supported.
17769 dlopen_self=$enable_dlopen_self
17770
17771 # Whether dlopen of statically linked programs is supported.
17772 dlopen_self_static=$enable_dlopen_self_static
17773
17774 # Compiler flag to prevent dynamic linking.
17775 link_static_flag=$lt_lt_prog_compiler_static
17776
17777 # Compiler flag to turn off builtin functions.
17778 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17779
17780 # Compiler flag to allow reflexive dlopens.
17781 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17782
17783 # Compiler flag to generate shared objects directly from archives.
17784 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17785
17786 # Compiler flag to generate thread-safe objects.
17787 thread_safe_flag_spec=$lt_thread_safe_flag_spec
17788
17789 # Library versioning type.
17790 version_type=$version_type
17791
17792 # Format of library name prefix.
17793 libname_spec=$lt_libname_spec
17794
17795 # List of archive names.  First name is the real one, the rest are links.
17796 # The last name is the one that the linker finds with -lNAME.
17797 library_names_spec=$lt_library_names_spec
17798
17799 # The coded name of the library, if different from the real name.
17800 soname_spec=$lt_soname_spec
17801
17802 # Commands used to build and install an old-style archive.
17803 RANLIB=$lt_RANLIB
17804 old_archive_cmds=$lt_old_archive_cmds
17805 old_postinstall_cmds=$lt_old_postinstall_cmds
17806 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17807
17808 # Create an old-style archive from a shared archive.
17809 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17810
17811 # Create a temporary old-style archive to link instead of a shared archive.
17812 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17813
17814 # Commands used to build and install a shared archive.
17815 archive_cmds=$lt_archive_cmds
17816 archive_expsym_cmds=$lt_archive_expsym_cmds
17817 postinstall_cmds=$lt_postinstall_cmds
17818 postuninstall_cmds=$lt_postuninstall_cmds
17819
17820 # Commands used to build a loadable module (assumed same as above if empty)
17821 module_cmds=$lt_module_cmds
17822 module_expsym_cmds=$lt_module_expsym_cmds
17823
17824 # Commands to strip libraries.
17825 old_striplib=$lt_old_striplib
17826 striplib=$lt_striplib
17827
17828 # Dependencies to place before the objects being linked to create a
17829 # shared library.
17830 predep_objects=$lt_predep_objects
17831
17832 # Dependencies to place after the objects being linked to create a
17833 # shared library.
17834 postdep_objects=$lt_postdep_objects
17835
17836 # Dependencies to place before the objects being linked to create a
17837 # shared library.
17838 predeps=$lt_predeps
17839
17840 # Dependencies to place after the objects being linked to create a
17841 # shared library.
17842 postdeps=$lt_postdeps
17843
17844 # The library search path used internally by the compiler when linking
17845 # a shared library.
17846 compiler_lib_search_path=$lt_compiler_lib_search_path
17847
17848 # Method to check whether dependent libraries are shared objects.
17849 deplibs_check_method=$lt_deplibs_check_method
17850
17851 # Command to use when deplibs_check_method == file_magic.
17852 file_magic_cmd=$lt_file_magic_cmd
17853
17854 # Flag that allows shared libraries with undefined symbols to be built.
17855 allow_undefined_flag=$lt_allow_undefined_flag
17856
17857 # Flag that forces no undefined symbols.
17858 no_undefined_flag=$lt_no_undefined_flag
17859
17860 # Commands used to finish a libtool library installation in a directory.
17861 finish_cmds=$lt_finish_cmds
17862
17863 # Same as above, but a single script fragment to be evaled but not shown.
17864 finish_eval=$lt_finish_eval
17865
17866 # Take the output of nm and produce a listing of raw symbols and C names.
17867 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17868
17869 # Transform the output of nm in a proper C declaration
17870 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17871
17872 # Transform the output of nm in a C name address pair
17873 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17874
17875 # This is the shared library runtime path variable.
17876 runpath_var=$runpath_var
17877
17878 # This is the shared library path variable.
17879 shlibpath_var=$shlibpath_var
17880
17881 # Is shlibpath searched before the hard-coded library search path?
17882 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17883
17884 # How to hardcode a shared library path into an executable.
17885 hardcode_action=$hardcode_action
17886
17887 # Whether we should hardcode library paths into libraries.
17888 hardcode_into_libs=$hardcode_into_libs
17889
17890 # Flag to hardcode \$libdir into a binary during linking.
17891 # This must work even if \$libdir does not exist.
17892 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17893
17894 # If ld is used when linking, flag to hardcode \$libdir into
17895 # a binary during linking. This must work even if \$libdir does
17896 # not exist.
17897 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17898
17899 # Whether we need a single -rpath flag with a separated argument.
17900 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17901
17902 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17903 # resulting binary.
17904 hardcode_direct=$hardcode_direct
17905
17906 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17907 # resulting binary.
17908 hardcode_minus_L=$hardcode_minus_L
17909
17910 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17911 # the resulting binary.
17912 hardcode_shlibpath_var=$hardcode_shlibpath_var
17913
17914 # Set to yes if building a shared library automatically hardcodes DIR into the library
17915 # and all subsequent libraries and executables linked against it.
17916 hardcode_automatic=$hardcode_automatic
17917
17918 # Variables whose values should be saved in libtool wrapper scripts and
17919 # restored at relink time.
17920 variables_saved_for_relink="$variables_saved_for_relink"
17921
17922 # Whether libtool must link a program against all its dependency libraries.
17923 link_all_deplibs=$link_all_deplibs
17924
17925 # Compile-time system search path for libraries
17926 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17927
17928 # Run-time system search path for libraries
17929 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17930
17931 # Fix the shell variable \$srcfile for the compiler.
17932 fix_srcfile_path="$fix_srcfile_path"
17933
17934 # Set to yes if exported symbols are required.
17935 always_export_symbols=$always_export_symbols
17936
17937 # The commands to list exported symbols.
17938 export_symbols_cmds=$lt_export_symbols_cmds
17939
17940 # The commands to extract the exported symbol list from a shared archive.
17941 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17942
17943 # Symbols that should not be listed in the preloaded symbols.
17944 exclude_expsyms=$lt_exclude_expsyms
17945
17946 # Symbols that must always be exported.
17947 include_expsyms=$lt_include_expsyms
17948
17949 # ### END LIBTOOL CONFIG
17950
17951 __EOF__
17952
17953
17954   case $host_os in
17955   aix3*)
17956     cat <<\EOF >> "$cfgfile"
17957
17958 # AIX sometimes has problems with the GCC collect2 program.  For some
17959 # reason, if we set the COLLECT_NAMES environment variable, the problems
17960 # vanish in a puff of smoke.
17961 if test "X${COLLECT_NAMES+set}" != Xset; then
17962   COLLECT_NAMES=
17963   export COLLECT_NAMES
17964 fi
17965 EOF
17966     ;;
17967   esac
17968
17969   # We use sed instead of cat because bash on DJGPP gets confused if
17970   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17971   # text mode, it properly converts lines to CR/LF.  This bash problem
17972   # is reportedly fixed, but why not run on old versions too?
17973   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
17974
17975   mv -f "$cfgfile" "$ofile" || \
17976     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17977   chmod +x "$ofile"
17978
17979 else
17980   # If there is no Makefile yet, we rely on a make rule to execute
17981   # `config.status --recheck' to rerun these tests and create the
17982   # libtool script then.
17983   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17984   if test -f "$ltmain_in"; then
17985     test -f Makefile && make "$ltmain"
17986   fi
17987 fi
17988
17989
17990 ac_ext=c
17991 ac_cpp='$CPP $CPPFLAGS'
17992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17995
17996 CC="$lt_save_CC"
17997
17998
17999 # Check whether --with-tags was given.
18000 if test "${with_tags+set}" = set; then
18001   withval=$with_tags; tagnames="$withval"
18002 fi
18003
18004
18005 if test -f "$ltmain" && test -n "$tagnames"; then
18006   if test ! -f "${ofile}"; then
18007     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18008 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18009   fi
18010
18011   if test -z "$LTCC"; then
18012     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18013     if test -z "$LTCC"; then
18014       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18015 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18016     else
18017       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18018 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18019     fi
18020   fi
18021   if test -z "$LTCFLAGS"; then
18022     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18023   fi
18024
18025   # Extract list of available tagged configurations in $ofile.
18026   # Note that this assumes the entire list is on one line.
18027   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18028
18029   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18030   for tagname in $tagnames; do
18031     IFS="$lt_save_ifs"
18032     # Check whether tagname contains only valid characters
18033     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18034     "") ;;
18035     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18036 echo "$as_me: error: invalid tag name: $tagname" >&2;}
18037    { (exit 1); exit 1; }; }
18038         ;;
18039     esac
18040
18041     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18042     then
18043       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18044 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18045    { (exit 1); exit 1; }; }
18046     fi
18047
18048     # Update the list of available tags.
18049     if test -n "$tagname"; then
18050       echo appending configuration tag \"$tagname\" to $ofile
18051
18052       case $tagname in
18053       CXX)
18054         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18055             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18056             (test "X$CXX" != "Xg++"))) ; then
18057           ac_ext=cpp
18058 ac_cpp='$CXXCPP $CPPFLAGS'
18059 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18060 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18061 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18062
18063
18064
18065
18066 archive_cmds_need_lc_CXX=no
18067 allow_undefined_flag_CXX=
18068 always_export_symbols_CXX=no
18069 archive_expsym_cmds_CXX=
18070 export_dynamic_flag_spec_CXX=
18071 hardcode_direct_CXX=no
18072 hardcode_libdir_flag_spec_CXX=
18073 hardcode_libdir_flag_spec_ld_CXX=
18074 hardcode_libdir_separator_CXX=
18075 hardcode_minus_L_CXX=no
18076 hardcode_shlibpath_var_CXX=unsupported
18077 hardcode_automatic_CXX=no
18078 module_cmds_CXX=
18079 module_expsym_cmds_CXX=
18080 link_all_deplibs_CXX=unknown
18081 old_archive_cmds_CXX=$old_archive_cmds
18082 no_undefined_flag_CXX=
18083 whole_archive_flag_spec_CXX=
18084 enable_shared_with_static_runtimes_CXX=no
18085
18086 # Dependencies to place before and after the object being linked:
18087 predep_objects_CXX=
18088 postdep_objects_CXX=
18089 predeps_CXX=
18090 postdeps_CXX=
18091 compiler_lib_search_path_CXX=
18092
18093 # Source file extension for C++ test sources.
18094 ac_ext=cpp
18095
18096 # Object file extension for compiled C++ test sources.
18097 objext=o
18098 objext_CXX=$objext
18099
18100 # Code to be used in simple compile tests
18101 lt_simple_compile_test_code="int some_variable = 0;\n"
18102
18103 # Code to be used in simple link tests
18104 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18105
18106 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18107
18108 # If no C compiler was specified, use CC.
18109 LTCC=${LTCC-"$CC"}
18110
18111 # If no C compiler flags were specified, use CFLAGS.
18112 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18113
18114 # Allow CC to be a program name with arguments.
18115 compiler=$CC
18116
18117
18118 # save warnings/boilerplate of simple test code
18119 ac_outfile=conftest.$ac_objext
18120 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18121 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18122 _lt_compiler_boilerplate=`cat conftest.err`
18123 $rm conftest*
18124
18125 ac_outfile=conftest.$ac_objext
18126 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18127 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18128 _lt_linker_boilerplate=`cat conftest.err`
18129 $rm conftest*
18130
18131
18132 # Allow CC to be a program name with arguments.
18133 lt_save_CC=$CC
18134 lt_save_LD=$LD
18135 lt_save_GCC=$GCC
18136 GCC=$GXX
18137 lt_save_with_gnu_ld=$with_gnu_ld
18138 lt_save_path_LD=$lt_cv_path_LD
18139 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18140   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18141 else
18142   $as_unset lt_cv_prog_gnu_ld
18143 fi
18144 if test -n "${lt_cv_path_LDCXX+set}"; then
18145   lt_cv_path_LD=$lt_cv_path_LDCXX
18146 else
18147   $as_unset lt_cv_path_LD
18148 fi
18149 test -z "${LDCXX+set}" || LD=$LDCXX
18150 CC=${CXX-"c++"}
18151 compiler=$CC
18152 compiler_CXX=$CC
18153 for cc_temp in $compiler""; do
18154   case $cc_temp in
18155     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18156     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18157     \-*) ;;
18158     *) break;;
18159   esac
18160 done
18161 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18162
18163
18164 # We don't want -fno-exception wen compiling C++ code, so set the
18165 # no_builtin_flag separately
18166 if test "$GXX" = yes; then
18167   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18168 else
18169   lt_prog_compiler_no_builtin_flag_CXX=
18170 fi
18171
18172 if test "$GXX" = yes; then
18173   # Set up default GNU C++ configuration
18174
18175
18176 # Check whether --with-gnu-ld was given.
18177 if test "${with_gnu_ld+set}" = set; then
18178   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18179 else
18180   with_gnu_ld=no
18181 fi
18182
18183 ac_prog=ld
18184 if test "$GCC" = yes; then
18185   # Check if gcc -print-prog-name=ld gives a path.
18186   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18187 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18188   case $host in
18189   *-*-mingw*)
18190     # gcc leaves a trailing carriage return which upsets mingw
18191     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18192   *)
18193     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18194   esac
18195   case $ac_prog in
18196     # Accept absolute paths.
18197     [\\/]* | ?:[\\/]*)
18198       re_direlt='/[^/][^/]*/\.\./'
18199       # Canonicalize the pathname of ld
18200       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18201       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18202         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18203       done
18204       test -z "$LD" && LD="$ac_prog"
18205       ;;
18206   "")
18207     # If it fails, then pretend we aren't using GCC.
18208     ac_prog=ld
18209     ;;
18210   *)
18211     # If it is relative, then search for the first ld in PATH.
18212     with_gnu_ld=unknown
18213     ;;
18214   esac
18215 elif test "$with_gnu_ld" = yes; then
18216   { echo "$as_me:$LINENO: checking for GNU ld" >&5
18217 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18218 else
18219   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18220 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18221 fi
18222 if test "${lt_cv_path_LD+set}" = set; then
18223   echo $ECHO_N "(cached) $ECHO_C" >&6
18224 else
18225   if test -z "$LD"; then
18226   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18227   for ac_dir in $PATH; do
18228     IFS="$lt_save_ifs"
18229     test -z "$ac_dir" && ac_dir=.
18230     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18231       lt_cv_path_LD="$ac_dir/$ac_prog"
18232       # Check to see if the program is GNU ld.  I'd rather use --version,
18233       # but apparently some variants of GNU ld only accept -v.
18234       # Break only if it was the GNU/non-GNU ld that we prefer.
18235       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18236       *GNU* | *'with BFD'*)
18237         test "$with_gnu_ld" != no && break
18238         ;;
18239       *)
18240         test "$with_gnu_ld" != yes && break
18241         ;;
18242       esac
18243     fi
18244   done
18245   IFS="$lt_save_ifs"
18246 else
18247   lt_cv_path_LD="$LD" # Let the user override the test with a path.
18248 fi
18249 fi
18250
18251 LD="$lt_cv_path_LD"
18252 if test -n "$LD"; then
18253   { echo "$as_me:$LINENO: result: $LD" >&5
18254 echo "${ECHO_T}$LD" >&6; }
18255 else
18256   { echo "$as_me:$LINENO: result: no" >&5
18257 echo "${ECHO_T}no" >&6; }
18258 fi
18259 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18260 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18261    { (exit 1); exit 1; }; }
18262 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18263 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18264 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18265   echo $ECHO_N "(cached) $ECHO_C" >&6
18266 else
18267   # I'd rather use --version here, but apparently some GNU lds only accept -v.
18268 case `$LD -v 2>&1 </dev/null` in
18269 *GNU* | *'with BFD'*)
18270   lt_cv_prog_gnu_ld=yes
18271   ;;
18272 *)
18273   lt_cv_prog_gnu_ld=no
18274   ;;
18275 esac
18276 fi
18277 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18278 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18279 with_gnu_ld=$lt_cv_prog_gnu_ld
18280
18281
18282
18283   # Check if GNU C++ uses GNU ld as the underlying linker, since the
18284   # archiving commands below assume that GNU ld is being used.
18285   if test "$with_gnu_ld" = yes; then
18286     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18287     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'
18288
18289     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18290     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18291
18292     # If archive_cmds runs LD, not CC, wlarc should be empty
18293     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18294     #     investigate it a little bit more. (MM)
18295     wlarc='${wl}'
18296
18297     # ancient GNU ld didn't support --whole-archive et. al.
18298     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18299         grep 'no-whole-archive' > /dev/null; then
18300       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18301     else
18302       whole_archive_flag_spec_CXX=
18303     fi
18304   else
18305     with_gnu_ld=no
18306     wlarc=
18307
18308     # A generic and very simple default shared library creation
18309     # command for GNU C++ for the case where it uses the native
18310     # linker, instead of GNU ld.  If possible, this setting should
18311     # overridden to take advantage of the native linker features on
18312     # the platform it is being used on.
18313     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18314   fi
18315
18316   # Commands to make compiler produce verbose output that lists
18317   # what "hidden" libraries, object files and flags are used when
18318   # linking a shared library.
18319   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18320
18321 else
18322   GXX=no
18323   with_gnu_ld=no
18324   wlarc=
18325 fi
18326
18327 # PORTME: fill in a description of your system's C++ link characteristics
18328 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18329 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18330 ld_shlibs_CXX=yes
18331 case $host_os in
18332   aix3*)
18333     # FIXME: insert proper C++ library support
18334     ld_shlibs_CXX=no
18335     ;;
18336   aix4* | aix5*)
18337     if test "$host_cpu" = ia64; then
18338       # On IA64, the linker does run time linking by default, so we don't
18339       # have to do anything special.
18340       aix_use_runtimelinking=no
18341       exp_sym_flag='-Bexport'
18342       no_entry_flag=""
18343     else
18344       aix_use_runtimelinking=no
18345
18346       # Test if we are trying to use run time linking or normal
18347       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18348       # need to do runtime linking.
18349       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18350         for ld_flag in $LDFLAGS; do
18351           case $ld_flag in
18352           *-brtl*)
18353             aix_use_runtimelinking=yes
18354             break
18355             ;;
18356           esac
18357         done
18358         ;;
18359       esac
18360
18361       exp_sym_flag='-bexport'
18362       no_entry_flag='-bnoentry'
18363     fi
18364
18365     # When large executables or shared objects are built, AIX ld can
18366     # have problems creating the table of contents.  If linking a library
18367     # or program results in "error TOC overflow" add -mminimal-toc to
18368     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18369     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18370
18371     archive_cmds_CXX=''
18372     hardcode_direct_CXX=yes
18373     hardcode_libdir_separator_CXX=':'
18374     link_all_deplibs_CXX=yes
18375
18376     if test "$GXX" = yes; then
18377       case $host_os in aix4.[012]|aix4.[012].*)
18378       # We only want to do this on AIX 4.2 and lower, the check
18379       # below for broken collect2 doesn't work under 4.3+
18380         collect2name=`${CC} -print-prog-name=collect2`
18381         if test -f "$collect2name" && \
18382            strings "$collect2name" | grep resolve_lib_name >/dev/null
18383         then
18384           # We have reworked collect2
18385           hardcode_direct_CXX=yes
18386         else
18387           # We have old collect2
18388           hardcode_direct_CXX=unsupported
18389           # It fails to find uninstalled libraries when the uninstalled
18390           # path is not listed in the libpath.  Setting hardcode_minus_L
18391           # to unsupported forces relinking
18392           hardcode_minus_L_CXX=yes
18393           hardcode_libdir_flag_spec_CXX='-L$libdir'
18394           hardcode_libdir_separator_CXX=
18395         fi
18396         ;;
18397       esac
18398       shared_flag='-shared'
18399       if test "$aix_use_runtimelinking" = yes; then
18400         shared_flag="$shared_flag "'${wl}-G'
18401       fi
18402     else
18403       # not using gcc
18404       if test "$host_cpu" = ia64; then
18405         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18406         # chokes on -Wl,-G. The following line is correct:
18407         shared_flag='-G'
18408       else
18409         if test "$aix_use_runtimelinking" = yes; then
18410           shared_flag='${wl}-G'
18411         else
18412           shared_flag='${wl}-bM:SRE'
18413         fi
18414       fi
18415     fi
18416
18417     # It seems that -bexpall does not export symbols beginning with
18418     # underscore (_), so it is better to generate a list of symbols to export.
18419     always_export_symbols_CXX=yes
18420     if test "$aix_use_runtimelinking" = yes; then
18421       # Warning - without using the other runtime loading flags (-brtl),
18422       # -berok will link without error, but may produce a broken library.
18423       allow_undefined_flag_CXX='-berok'
18424       # Determine the default libpath from the value encoded in an empty executable.
18425       cat >conftest.$ac_ext <<_ACEOF
18426 /* confdefs.h.  */
18427 _ACEOF
18428 cat confdefs.h >>conftest.$ac_ext
18429 cat >>conftest.$ac_ext <<_ACEOF
18430 /* end confdefs.h.  */
18431
18432 int
18433 main ()
18434 {
18435
18436   ;
18437   return 0;
18438 }
18439 _ACEOF
18440 rm -f conftest.$ac_objext conftest$ac_exeext
18441 if { (ac_try="$ac_link"
18442 case "(($ac_try" in
18443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18444   *) ac_try_echo=$ac_try;;
18445 esac
18446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18447   (eval "$ac_link") 2>conftest.er1
18448   ac_status=$?
18449   grep -v '^ *+' conftest.er1 >conftest.err
18450   rm -f conftest.er1
18451   cat conftest.err >&5
18452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18453   (exit $ac_status); } &&
18454          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18455   { (case "(($ac_try" in
18456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18457   *) ac_try_echo=$ac_try;;
18458 esac
18459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18460   (eval "$ac_try") 2>&5
18461   ac_status=$?
18462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18463   (exit $ac_status); }; } &&
18464          { ac_try='test -s conftest$ac_exeext'
18465   { (case "(($ac_try" in
18466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18467   *) ac_try_echo=$ac_try;;
18468 esac
18469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18470   (eval "$ac_try") 2>&5
18471   ac_status=$?
18472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18473   (exit $ac_status); }; }; then
18474
18475 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18476 }'`
18477 # Check for a 64-bit object if we didn't find anything.
18478 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; }
18479 }'`; fi
18480 else
18481   echo "$as_me: failed program was:" >&5
18482 sed 's/^/| /' conftest.$ac_ext >&5
18483
18484
18485 fi
18486
18487 rm -f core conftest.err conftest.$ac_objext \
18488       conftest$ac_exeext conftest.$ac_ext
18489 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18490
18491       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18492
18493       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"
18494      else
18495       if test "$host_cpu" = ia64; then
18496         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18497         allow_undefined_flag_CXX="-z nodefs"
18498         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"
18499       else
18500         # Determine the default libpath from the value encoded in an empty executable.
18501         cat >conftest.$ac_ext <<_ACEOF
18502 /* confdefs.h.  */
18503 _ACEOF
18504 cat confdefs.h >>conftest.$ac_ext
18505 cat >>conftest.$ac_ext <<_ACEOF
18506 /* end confdefs.h.  */
18507
18508 int
18509 main ()
18510 {
18511
18512   ;
18513   return 0;
18514 }
18515 _ACEOF
18516 rm -f conftest.$ac_objext conftest$ac_exeext
18517 if { (ac_try="$ac_link"
18518 case "(($ac_try" in
18519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18520   *) ac_try_echo=$ac_try;;
18521 esac
18522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18523   (eval "$ac_link") 2>conftest.er1
18524   ac_status=$?
18525   grep -v '^ *+' conftest.er1 >conftest.err
18526   rm -f conftest.er1
18527   cat conftest.err >&5
18528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18529   (exit $ac_status); } &&
18530          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18531   { (case "(($ac_try" in
18532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18533   *) ac_try_echo=$ac_try;;
18534 esac
18535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18536   (eval "$ac_try") 2>&5
18537   ac_status=$?
18538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18539   (exit $ac_status); }; } &&
18540          { ac_try='test -s conftest$ac_exeext'
18541   { (case "(($ac_try" in
18542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18543   *) ac_try_echo=$ac_try;;
18544 esac
18545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18546   (eval "$ac_try") 2>&5
18547   ac_status=$?
18548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18549   (exit $ac_status); }; }; then
18550
18551 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18552 }'`
18553 # Check for a 64-bit object if we didn't find anything.
18554 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; }
18555 }'`; fi
18556 else
18557   echo "$as_me: failed program was:" >&5
18558 sed 's/^/| /' conftest.$ac_ext >&5
18559
18560
18561 fi
18562
18563 rm -f core conftest.err conftest.$ac_objext \
18564       conftest$ac_exeext conftest.$ac_ext
18565 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18566
18567         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18568         # Warning - without using the other run time loading flags,
18569         # -berok will link without error, but may produce a broken library.
18570         no_undefined_flag_CXX=' ${wl}-bernotok'
18571         allow_undefined_flag_CXX=' ${wl}-berok'
18572         # Exported symbols can be pulled into shared objects from archives
18573         whole_archive_flag_spec_CXX='$convenience'
18574         archive_cmds_need_lc_CXX=yes
18575         # This is similar to how AIX traditionally builds its shared libraries.
18576         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'
18577       fi
18578     fi
18579     ;;
18580
18581   beos*)
18582     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18583       allow_undefined_flag_CXX=unsupported
18584       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18585       # support --undefined.  This deserves some investigation.  FIXME
18586       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18587     else
18588       ld_shlibs_CXX=no
18589     fi
18590     ;;
18591
18592   chorus*)
18593     case $cc_basename in
18594       *)
18595         # FIXME: insert proper C++ library support
18596         ld_shlibs_CXX=no
18597         ;;
18598     esac
18599     ;;
18600
18601   cygwin* | mingw* | pw32*)
18602     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18603     # as there is no search path for DLLs.
18604     hardcode_libdir_flag_spec_CXX='-L$libdir'
18605     allow_undefined_flag_CXX=unsupported
18606     always_export_symbols_CXX=no
18607     enable_shared_with_static_runtimes_CXX=yes
18608
18609     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18610       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'
18611       # If the export-symbols file already is a .def file (1st line
18612       # is EXPORTS), use it as is; otherwise, prepend...
18613       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18614         cp $export_symbols $output_objdir/$soname.def;
18615       else
18616         echo EXPORTS > $output_objdir/$soname.def;
18617         cat $export_symbols >> $output_objdir/$soname.def;
18618       fi~
18619       $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'
18620     else
18621       ld_shlibs_CXX=no
18622     fi
18623   ;;
18624       darwin* | rhapsody*)
18625         case $host_os in
18626         rhapsody* | darwin1.[012])
18627          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18628          ;;
18629        *) # Darwin 1.3 on
18630          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18631            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18632          else
18633            case ${MACOSX_DEPLOYMENT_TARGET} in
18634              10.[012])
18635                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18636                ;;
18637              10.*)
18638                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18639                ;;
18640            esac
18641          fi
18642          ;;
18643         esac
18644       archive_cmds_need_lc_CXX=no
18645       hardcode_direct_CXX=no
18646       hardcode_automatic_CXX=yes
18647       hardcode_shlibpath_var_CXX=unsupported
18648       whole_archive_flag_spec_CXX=''
18649       link_all_deplibs_CXX=yes
18650
18651     if test "$GXX" = yes ; then
18652       lt_int_apple_cc_single_mod=no
18653       output_verbose_link_cmd='echo'
18654       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18655        lt_int_apple_cc_single_mod=yes
18656       fi
18657       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18658        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18659       else
18660           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'
18661         fi
18662         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18663         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18664           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18665             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}'
18666           else
18667             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}'
18668           fi
18669             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}'
18670       else
18671       case $cc_basename in
18672         xlc*)
18673          output_verbose_link_cmd='echo'
18674           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'
18675           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18676           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18677           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}'
18678           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}'
18679           ;;
18680        *)
18681          ld_shlibs_CXX=no
18682           ;;
18683       esac
18684       fi
18685         ;;
18686
18687   dgux*)
18688     case $cc_basename in
18689       ec++*)
18690         # FIXME: insert proper C++ library support
18691         ld_shlibs_CXX=no
18692         ;;
18693       ghcx*)
18694         # Green Hills C++ Compiler
18695         # FIXME: insert proper C++ library support
18696         ld_shlibs_CXX=no
18697         ;;
18698       *)
18699         # FIXME: insert proper C++ library support
18700         ld_shlibs_CXX=no
18701         ;;
18702     esac
18703     ;;
18704   freebsd[12]*)
18705     # C++ shared libraries reported to be fairly broken before switch to ELF
18706     ld_shlibs_CXX=no
18707     ;;
18708   freebsd-elf*)
18709     archive_cmds_need_lc_CXX=no
18710     ;;
18711   freebsd* | kfreebsd*-gnu | dragonfly*)
18712     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18713     # conventions
18714     ld_shlibs_CXX=yes
18715     ;;
18716   gnu*)
18717     ;;
18718   hpux9*)
18719     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18720     hardcode_libdir_separator_CXX=:
18721     export_dynamic_flag_spec_CXX='${wl}-E'
18722     hardcode_direct_CXX=yes
18723     hardcode_minus_L_CXX=yes # Not in the search PATH,
18724                                 # but as the default
18725                                 # location of the library.
18726
18727     case $cc_basename in
18728     CC*)
18729       # FIXME: insert proper C++ library support
18730       ld_shlibs_CXX=no
18731       ;;
18732     aCC*)
18733       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'
18734       # Commands to make compiler produce verbose output that lists
18735       # what "hidden" libraries, object files and flags are used when
18736       # linking a shared library.
18737       #
18738       # There doesn't appear to be a way to prevent this compiler from
18739       # explicitly linking system object files so we need to strip them
18740       # from the output so that they don't get included in the library
18741       # dependencies.
18742       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'
18743       ;;
18744     *)
18745       if test "$GXX" = yes; then
18746         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'
18747       else
18748         # FIXME: insert proper C++ library support
18749         ld_shlibs_CXX=no
18750       fi
18751       ;;
18752     esac
18753     ;;
18754   hpux10*|hpux11*)
18755     if test $with_gnu_ld = no; then
18756       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18757       hardcode_libdir_separator_CXX=:
18758
18759       case $host_cpu in
18760       hppa*64*|ia64*)
18761         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
18762         ;;
18763       *)
18764         export_dynamic_flag_spec_CXX='${wl}-E'
18765         ;;
18766       esac
18767     fi
18768     case $host_cpu in
18769     hppa*64*|ia64*)
18770       hardcode_direct_CXX=no
18771       hardcode_shlibpath_var_CXX=no
18772       ;;
18773     *)
18774       hardcode_direct_CXX=yes
18775       hardcode_minus_L_CXX=yes # Not in the search PATH,
18776                                               # but as the default
18777                                               # location of the library.
18778       ;;
18779     esac
18780
18781     case $cc_basename in
18782       CC*)
18783         # FIXME: insert proper C++ library support
18784         ld_shlibs_CXX=no
18785         ;;
18786       aCC*)
18787         case $host_cpu in
18788         hppa*64*)
18789           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18790           ;;
18791         ia64*)
18792           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18793           ;;
18794         *)
18795           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18796           ;;
18797         esac
18798         # Commands to make compiler produce verbose output that lists
18799         # what "hidden" libraries, object files and flags are used when
18800         # linking a shared library.
18801         #
18802         # There doesn't appear to be a way to prevent this compiler from
18803         # explicitly linking system object files so we need to strip them
18804         # from the output so that they don't get included in the library
18805         # dependencies.
18806         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'
18807         ;;
18808       *)
18809         if test "$GXX" = yes; then
18810           if test $with_gnu_ld = no; then
18811             case $host_cpu in
18812             hppa*64*)
18813               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18814               ;;
18815             ia64*)
18816               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18817               ;;
18818             *)
18819               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'
18820               ;;
18821             esac
18822           fi
18823         else
18824           # FIXME: insert proper C++ library support
18825           ld_shlibs_CXX=no
18826         fi
18827         ;;
18828     esac
18829     ;;
18830   interix3*)
18831     hardcode_direct_CXX=no
18832     hardcode_shlibpath_var_CXX=no
18833     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18834     export_dynamic_flag_spec_CXX='${wl}-E'
18835     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18836     # Instead, shared libraries are loaded at an image base (0x10000000 by
18837     # default) and relocated if they conflict, which is a slow very memory
18838     # consuming and fragmenting process.  To avoid this, we pick a random,
18839     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18840     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18841     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'
18842     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'
18843     ;;
18844   irix5* | irix6*)
18845     case $cc_basename in
18846       CC*)
18847         # SGI C++
18848         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'
18849
18850         # Archives containing C++ object files must be created using
18851         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
18852         # necessary to make sure instantiated templates are included
18853         # in the archive.
18854         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18855         ;;
18856       *)
18857         if test "$GXX" = yes; then
18858           if test "$with_gnu_ld" = no; then
18859             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'
18860           else
18861             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'
18862           fi
18863         fi
18864         link_all_deplibs_CXX=yes
18865         ;;
18866     esac
18867     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18868     hardcode_libdir_separator_CXX=:
18869     ;;
18870   linux*)
18871     case $cc_basename in
18872       KCC*)
18873         # Kuck and Associates, Inc. (KAI) C++ Compiler
18874
18875         # KCC will only create a shared library if the output file
18876         # ends with ".so" (or ".sl" for HP-UX), so rename the library
18877         # to its proper name (with version) after linking.
18878         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'
18879         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'
18880         # Commands to make compiler produce verbose output that lists
18881         # what "hidden" libraries, object files and flags are used when
18882         # linking a shared library.
18883         #
18884         # There doesn't appear to be a way to prevent this compiler from
18885         # explicitly linking system object files so we need to strip them
18886         # from the output so that they don't get included in the library
18887         # dependencies.
18888         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'
18889
18890         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18891         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18892
18893         # Archives containing C++ object files must be created using
18894         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18895         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18896         ;;
18897       icpc*)
18898         # Intel C++
18899         with_gnu_ld=yes
18900         # version 8.0 and above of icpc choke on multiply defined symbols
18901         # if we add $predep_objects and $postdep_objects, however 7.1 and
18902         # earlier do not add the objects themselves.
18903         case `$CC -V 2>&1` in
18904         *"Version 7."*)
18905           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18906           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'
18907           ;;
18908         *)  # Version 8.0 or newer
18909           tmp_idyn=
18910           case $host_cpu in
18911             ia64*) tmp_idyn=' -i_dynamic';;
18912           esac
18913           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18914           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'
18915           ;;
18916         esac
18917         archive_cmds_need_lc_CXX=no
18918         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18919         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18920         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18921         ;;
18922       pgCC*)
18923         # Portland Group C++ compiler
18924         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18925         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'
18926
18927         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18928         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18929         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'
18930         ;;
18931       cxx*)
18932         # Compaq C++
18933         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18934         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'
18935
18936         runpath_var=LD_RUN_PATH
18937         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18938         hardcode_libdir_separator_CXX=:
18939
18940         # Commands to make compiler produce verbose output that lists
18941         # what "hidden" libraries, object files and flags are used when
18942         # linking a shared library.
18943         #
18944         # There doesn't appear to be a way to prevent this compiler from
18945         # explicitly linking system object files so we need to strip them
18946         # from the output so that they don't get included in the library
18947         # dependencies.
18948         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'
18949         ;;
18950     esac
18951     ;;
18952   lynxos*)
18953     # FIXME: insert proper C++ library support
18954     ld_shlibs_CXX=no
18955     ;;
18956   m88k*)
18957     # FIXME: insert proper C++ library support
18958     ld_shlibs_CXX=no
18959     ;;
18960   mvs*)
18961     case $cc_basename in
18962       cxx*)
18963         # FIXME: insert proper C++ library support
18964         ld_shlibs_CXX=no
18965         ;;
18966       *)
18967         # FIXME: insert proper C++ library support
18968         ld_shlibs_CXX=no
18969         ;;
18970     esac
18971     ;;
18972   netbsd*)
18973     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18974       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18975       wlarc=
18976       hardcode_libdir_flag_spec_CXX='-R$libdir'
18977       hardcode_direct_CXX=yes
18978       hardcode_shlibpath_var_CXX=no
18979     fi
18980     # Workaround some broken pre-1.5 toolchains
18981     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18982     ;;
18983   openbsd2*)
18984     # C++ shared libraries are fairly broken
18985     ld_shlibs_CXX=no
18986     ;;
18987   openbsd*)
18988     hardcode_direct_CXX=yes
18989     hardcode_shlibpath_var_CXX=no
18990     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18991     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18992     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18993       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18994       export_dynamic_flag_spec_CXX='${wl}-E'
18995       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18996     fi
18997     output_verbose_link_cmd='echo'
18998     ;;
18999   osf3*)
19000     case $cc_basename in
19001       KCC*)
19002         # Kuck and Associates, Inc. (KAI) C++ Compiler
19003
19004         # KCC will only create a shared library if the output file
19005         # ends with ".so" (or ".sl" for HP-UX), so rename the library
19006         # to its proper name (with version) after linking.
19007         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'
19008
19009         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19010         hardcode_libdir_separator_CXX=:
19011
19012         # Archives containing C++ object files must be created using
19013         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19014         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19015
19016         ;;
19017       RCC*)
19018         # Rational C++ 2.4.1
19019         # FIXME: insert proper C++ library support
19020         ld_shlibs_CXX=no
19021         ;;
19022       cxx*)
19023         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19024         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'
19025
19026         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19027         hardcode_libdir_separator_CXX=:
19028
19029         # Commands to make compiler produce verbose output that lists
19030         # what "hidden" libraries, object files and flags are used when
19031         # linking a shared library.
19032         #
19033         # There doesn't appear to be a way to prevent this compiler from
19034         # explicitly linking system object files so we need to strip them
19035         # from the output so that they don't get included in the library
19036         # dependencies.
19037         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'
19038         ;;
19039       *)
19040         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19041           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19042           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'
19043
19044           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19045           hardcode_libdir_separator_CXX=:
19046
19047           # Commands to make compiler produce verbose output that lists
19048           # what "hidden" libraries, object files and flags are used when
19049           # linking a shared library.
19050           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19051
19052         else
19053           # FIXME: insert proper C++ library support
19054           ld_shlibs_CXX=no
19055         fi
19056         ;;
19057     esac
19058     ;;
19059   osf4* | osf5*)
19060     case $cc_basename in
19061       KCC*)
19062         # Kuck and Associates, Inc. (KAI) C++ Compiler
19063
19064         # KCC will only create a shared library if the output file
19065         # ends with ".so" (or ".sl" for HP-UX), so rename the library
19066         # to its proper name (with version) after linking.
19067         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'
19068
19069         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19070         hardcode_libdir_separator_CXX=:
19071
19072         # Archives containing C++ object files must be created using
19073         # the KAI C++ compiler.
19074         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19075         ;;
19076       RCC*)
19077         # Rational C++ 2.4.1
19078         # FIXME: insert proper C++ library support
19079         ld_shlibs_CXX=no
19080         ;;
19081       cxx*)
19082         allow_undefined_flag_CXX=' -expect_unresolved \*'
19083         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'
19084         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19085           echo "-hidden">> $lib.exp~
19086           $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~
19087           $rm $lib.exp'
19088
19089         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19090         hardcode_libdir_separator_CXX=:
19091
19092         # Commands to make compiler produce verbose output that lists
19093         # what "hidden" libraries, object files and flags are used when
19094         # linking a shared library.
19095         #
19096         # There doesn't appear to be a way to prevent this compiler from
19097         # explicitly linking system object files so we need to strip them
19098         # from the output so that they don't get included in the library
19099         # dependencies.
19100         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'
19101         ;;
19102       *)
19103         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19104           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19105          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'
19106
19107           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19108           hardcode_libdir_separator_CXX=:
19109
19110           # Commands to make compiler produce verbose output that lists
19111           # what "hidden" libraries, object files and flags are used when
19112           # linking a shared library.
19113           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19114
19115         else
19116           # FIXME: insert proper C++ library support
19117           ld_shlibs_CXX=no
19118         fi
19119         ;;
19120     esac
19121     ;;
19122   psos*)
19123     # FIXME: insert proper C++ library support
19124     ld_shlibs_CXX=no
19125     ;;
19126   sunos4*)
19127     case $cc_basename in
19128       CC*)
19129         # Sun C++ 4.x
19130         # FIXME: insert proper C++ library support
19131         ld_shlibs_CXX=no
19132         ;;
19133       lcc*)
19134         # Lucid
19135         # FIXME: insert proper C++ library support
19136         ld_shlibs_CXX=no
19137         ;;
19138       *)
19139         # FIXME: insert proper C++ library support
19140         ld_shlibs_CXX=no
19141         ;;
19142     esac
19143     ;;
19144   solaris*)
19145     case $cc_basename in
19146       CC*)
19147         # Sun C++ 4.2, 5.x and Centerline C++
19148         archive_cmds_need_lc_CXX=yes
19149         no_undefined_flag_CXX=' -zdefs'
19150         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19151         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19152         $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'
19153
19154         hardcode_libdir_flag_spec_CXX='-R$libdir'
19155         hardcode_shlibpath_var_CXX=no
19156         case $host_os in
19157           solaris2.[0-5] | solaris2.[0-5].*) ;;
19158           *)
19159             # The C++ compiler is used as linker so we must use $wl
19160             # flag to pass the commands to the underlying system
19161             # linker. We must also pass each convience library through
19162             # to the system linker between allextract/defaultextract.
19163             # The C++ compiler will combine linker options so we
19164             # cannot just pass the convience library names through
19165             # without $wl.
19166             # Supported since Solaris 2.6 (maybe 2.5.1?)
19167             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'
19168             ;;
19169         esac
19170         link_all_deplibs_CXX=yes
19171
19172         output_verbose_link_cmd='echo'
19173
19174         # Archives containing C++ object files must be created using
19175         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
19176         # necessary to make sure instantiated templates are included
19177         # in the archive.
19178         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19179         ;;
19180       gcx*)
19181         # Green Hills C++ Compiler
19182         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19183
19184         # The C++ compiler must be used to create the archive.
19185         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19186         ;;
19187       *)
19188         # GNU C++ compiler with Solaris linker
19189         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19190           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19191           if $CC --version | grep -v '^2\.7' > /dev/null; then
19192             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19193             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19194                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19195
19196             # Commands to make compiler produce verbose output that lists
19197             # what "hidden" libraries, object files and flags are used when
19198             # linking a shared library.
19199             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19200           else
19201             # g++ 2.7 appears to require `-G' NOT `-shared' on this
19202             # platform.
19203             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19204             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19205                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19206
19207             # Commands to make compiler produce verbose output that lists
19208             # what "hidden" libraries, object files and flags are used when
19209             # linking a shared library.
19210             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19211           fi
19212
19213           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19214         fi
19215         ;;
19216     esac
19217     ;;
19218   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19219     no_undefined_flag_CXX='${wl}-z,text'
19220     archive_cmds_need_lc_CXX=no
19221     hardcode_shlibpath_var_CXX=no
19222     runpath_var='LD_RUN_PATH'
19223
19224     case $cc_basename in
19225       CC*)
19226         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19227         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19228         ;;
19229       *)
19230         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19231         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19232         ;;
19233     esac
19234     ;;
19235   sysv5* | sco3.2v5* | sco5v6*)
19236     # Note: We can NOT use -z defs as we might desire, because we do not
19237     # link with -lc, and that would cause any symbols used from libc to
19238     # always be unresolved, which means just about no library would
19239     # ever link correctly.  If we're not using GNU ld we use -z text
19240     # though, which does catch some bad symbols but isn't as heavy-handed
19241     # as -z defs.
19242     # For security reasons, it is highly recommended that you always
19243     # use absolute paths for naming shared libraries, and exclude the
19244     # DT_RUNPATH tag from executables and libraries.  But doing so
19245     # requires that you compile everything twice, which is a pain.
19246     # So that behaviour is only enabled if SCOABSPATH is set to a
19247     # non-empty value in the environment.  Most likely only useful for
19248     # creating official distributions of packages.
19249     # This is a hack until libtool officially supports absolute path
19250     # names for shared libraries.
19251     no_undefined_flag_CXX='${wl}-z,text'
19252     allow_undefined_flag_CXX='${wl}-z,nodefs'
19253     archive_cmds_need_lc_CXX=no
19254     hardcode_shlibpath_var_CXX=no
19255     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19256     hardcode_libdir_separator_CXX=':'
19257     link_all_deplibs_CXX=yes
19258     export_dynamic_flag_spec_CXX='${wl}-Bexport'
19259     runpath_var='LD_RUN_PATH'
19260
19261     case $cc_basename in
19262       CC*)
19263         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19264         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19265         ;;
19266       *)
19267         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19268         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19269         ;;
19270     esac
19271     ;;
19272   tandem*)
19273     case $cc_basename in
19274       NCC*)
19275         # NonStop-UX NCC 3.20
19276         # FIXME: insert proper C++ library support
19277         ld_shlibs_CXX=no
19278         ;;
19279       *)
19280         # FIXME: insert proper C++ library support
19281         ld_shlibs_CXX=no
19282         ;;
19283     esac
19284     ;;
19285   vxworks*)
19286     # FIXME: insert proper C++ library support
19287     ld_shlibs_CXX=no
19288     ;;
19289   *)
19290     # FIXME: insert proper C++ library support
19291     ld_shlibs_CXX=no
19292     ;;
19293 esac
19294 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19295 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19296 test "$ld_shlibs_CXX" = no && can_build_shared=no
19297
19298 GCC_CXX="$GXX"
19299 LD_CXX="$LD"
19300
19301
19302 cat > conftest.$ac_ext <<EOF
19303 class Foo
19304 {
19305 public:
19306   Foo (void) { a = 0; }
19307 private:
19308   int a;
19309 };
19310 EOF
19311
19312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19313   (eval $ac_compile) 2>&5
19314   ac_status=$?
19315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19316   (exit $ac_status); }; then
19317   # Parse the compiler output and extract the necessary
19318   # objects, libraries and library flags.
19319
19320   # Sentinel used to keep track of whether or not we are before
19321   # the conftest object file.
19322   pre_test_object_deps_done=no
19323
19324   # The `*' in the case matches for architectures that use `case' in
19325   # $output_verbose_cmd can trigger glob expansion during the loop
19326   # eval without this substitution.
19327   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19328
19329   for p in `eval $output_verbose_link_cmd`; do
19330     case $p in
19331
19332     -L* | -R* | -l*)
19333        # Some compilers place space between "-{L,R}" and the path.
19334        # Remove the space.
19335        if test $p = "-L" \
19336           || test $p = "-R"; then
19337          prev=$p
19338          continue
19339        else
19340          prev=
19341        fi
19342
19343        if test "$pre_test_object_deps_done" = no; then
19344          case $p in
19345          -L* | -R*)
19346            # Internal compiler library paths should come after those
19347            # provided the user.  The postdeps already come after the
19348            # user supplied libs so there is no need to process them.
19349            if test -z "$compiler_lib_search_path_CXX"; then
19350              compiler_lib_search_path_CXX="${prev}${p}"
19351            else
19352              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19353            fi
19354            ;;
19355          # The "-l" case would never come before the object being
19356          # linked, so don't bother handling this case.
19357          esac
19358        else
19359          if test -z "$postdeps_CXX"; then
19360            postdeps_CXX="${prev}${p}"
19361          else
19362            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19363          fi
19364        fi
19365        ;;
19366
19367     *.$objext)
19368        # This assumes that the test object file only shows up
19369        # once in the compiler output.
19370        if test "$p" = "conftest.$objext"; then
19371          pre_test_object_deps_done=yes
19372          continue
19373        fi
19374
19375        if test "$pre_test_object_deps_done" = no; then
19376          if test -z "$predep_objects_CXX"; then
19377            predep_objects_CXX="$p"
19378          else
19379            predep_objects_CXX="$predep_objects_CXX $p"
19380          fi
19381        else
19382          if test -z "$postdep_objects_CXX"; then
19383            postdep_objects_CXX="$p"
19384          else
19385            postdep_objects_CXX="$postdep_objects_CXX $p"
19386          fi
19387        fi
19388        ;;
19389
19390     *) ;; # Ignore the rest.
19391
19392     esac
19393   done
19394
19395   # Clean up.
19396   rm -f a.out a.exe
19397 else
19398   echo "libtool.m4: error: problem compiling CXX test program"
19399 fi
19400
19401 $rm -f confest.$objext
19402
19403 # PORTME: override above test on systems where it is broken
19404 case $host_os in
19405 interix3*)
19406   # Interix 3.5 installs completely hosed .la files for C++, so rather than
19407   # hack all around it, let's just trust "g++" to DTRT.
19408   predep_objects_CXX=
19409   postdep_objects_CXX=
19410   postdeps_CXX=
19411   ;;
19412
19413 solaris*)
19414   case $cc_basename in
19415   CC*)
19416     # Adding this requires a known-good setup of shared libraries for
19417     # Sun compiler versions before 5.6, else PIC objects from an old
19418     # archive will be linked into the output, leading to subtle bugs.
19419     postdeps_CXX='-lCstd -lCrun'
19420     ;;
19421   esac
19422   ;;
19423 esac
19424
19425
19426 case " $postdeps_CXX " in
19427 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19428 esac
19429
19430 lt_prog_compiler_wl_CXX=
19431 lt_prog_compiler_pic_CXX=
19432 lt_prog_compiler_static_CXX=
19433
19434 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19435 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19436
19437   # C++ specific cases for pic, static, wl, etc.
19438   if test "$GXX" = yes; then
19439     lt_prog_compiler_wl_CXX='-Wl,'
19440     lt_prog_compiler_static_CXX='-static'
19441
19442     case $host_os in
19443     aix*)
19444       # All AIX code is PIC.
19445       if test "$host_cpu" = ia64; then
19446         # AIX 5 now supports IA64 processor
19447         lt_prog_compiler_static_CXX='-Bstatic'
19448       fi
19449       ;;
19450     amigaos*)
19451       # FIXME: we need at least 68020 code to build shared libraries, but
19452       # adding the `-m68020' flag to GCC prevents building anything better,
19453       # like `-m68040'.
19454       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19455       ;;
19456     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19457       # PIC is the default for these OSes.
19458       ;;
19459     mingw* | os2* | pw32*)
19460       # This hack is so that the source file can tell whether it is being
19461       # built for inclusion in a dll (and should export symbols for example).
19462       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19463       ;;
19464     darwin* | rhapsody*)
19465       # PIC is the default on this platform
19466       # Common symbols not allowed in MH_DYLIB files
19467       lt_prog_compiler_pic_CXX='-fno-common'
19468       ;;
19469     *djgpp*)
19470       # DJGPP does not support shared libraries at all
19471       lt_prog_compiler_pic_CXX=
19472       ;;
19473     interix3*)
19474       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19475       # Instead, we relocate shared libraries at runtime.
19476       ;;
19477     sysv4*MP*)
19478       if test -d /usr/nec; then
19479         lt_prog_compiler_pic_CXX=-Kconform_pic
19480       fi
19481       ;;
19482     hpux*)
19483       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19484       # not for PA HP-UX.
19485       case $host_cpu in
19486       hppa*64*|ia64*)
19487         ;;
19488       *)
19489         lt_prog_compiler_pic_CXX='-fPIC'
19490         ;;
19491       esac
19492       ;;
19493     *)
19494       lt_prog_compiler_pic_CXX='-fPIC'
19495       ;;
19496     esac
19497   else
19498     case $host_os in
19499       aix4* | aix5*)
19500         # All AIX code is PIC.
19501         if test "$host_cpu" = ia64; then
19502           # AIX 5 now supports IA64 processor
19503           lt_prog_compiler_static_CXX='-Bstatic'
19504         else
19505           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19506         fi
19507         ;;
19508       chorus*)
19509         case $cc_basename in
19510         cxch68*)
19511           # Green Hills C++ Compiler
19512           # _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"
19513           ;;
19514         esac
19515         ;;
19516        darwin*)
19517          # PIC is the default on this platform
19518          # Common symbols not allowed in MH_DYLIB files
19519          case $cc_basename in
19520            xlc*)
19521            lt_prog_compiler_pic_CXX='-qnocommon'
19522            lt_prog_compiler_wl_CXX='-Wl,'
19523            ;;
19524          esac
19525        ;;
19526       dgux*)
19527         case $cc_basename in
19528           ec++*)
19529             lt_prog_compiler_pic_CXX='-KPIC'
19530             ;;
19531           ghcx*)
19532             # Green Hills C++ Compiler
19533             lt_prog_compiler_pic_CXX='-pic'
19534             ;;
19535           *)
19536             ;;
19537         esac
19538         ;;
19539       freebsd* | kfreebsd*-gnu | dragonfly*)
19540         # FreeBSD uses GNU C++
19541         ;;
19542       hpux9* | hpux10* | hpux11*)
19543         case $cc_basename in
19544           CC*)
19545             lt_prog_compiler_wl_CXX='-Wl,'
19546             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19547             if test "$host_cpu" != ia64; then
19548               lt_prog_compiler_pic_CXX='+Z'
19549             fi
19550             ;;
19551           aCC*)
19552             lt_prog_compiler_wl_CXX='-Wl,'
19553             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19554             case $host_cpu in
19555             hppa*64*|ia64*)
19556               # +Z the default
19557               ;;
19558             *)
19559               lt_prog_compiler_pic_CXX='+Z'
19560               ;;
19561             esac
19562             ;;
19563           *)
19564             ;;
19565         esac
19566         ;;
19567       interix*)
19568         # This is c89, which is MS Visual C++ (no shared libs)
19569         # Anyone wants to do a port?
19570         ;;
19571       irix5* | irix6* | nonstopux*)
19572         case $cc_basename in
19573           CC*)
19574             lt_prog_compiler_wl_CXX='-Wl,'
19575             lt_prog_compiler_static_CXX='-non_shared'
19576             # CC pic flag -KPIC is the default.
19577             ;;
19578           *)
19579             ;;
19580         esac
19581         ;;
19582       linux*)
19583         case $cc_basename in
19584           KCC*)
19585             # KAI C++ Compiler
19586             lt_prog_compiler_wl_CXX='--backend -Wl,'
19587             lt_prog_compiler_pic_CXX='-fPIC'
19588             ;;
19589           icpc* | ecpc*)
19590             # Intel C++
19591             lt_prog_compiler_wl_CXX='-Wl,'
19592             lt_prog_compiler_pic_CXX='-KPIC'
19593             lt_prog_compiler_static_CXX='-static'
19594             ;;
19595           pgCC*)
19596             # Portland Group C++ compiler.
19597             lt_prog_compiler_wl_CXX='-Wl,'
19598             lt_prog_compiler_pic_CXX='-fpic'
19599             lt_prog_compiler_static_CXX='-Bstatic'
19600             ;;
19601           cxx*)
19602             # Compaq C++
19603             # Make sure the PIC flag is empty.  It appears that all Alpha
19604             # Linux and Compaq Tru64 Unix objects are PIC.
19605             lt_prog_compiler_pic_CXX=
19606             lt_prog_compiler_static_CXX='-non_shared'
19607             ;;
19608           *)
19609             ;;
19610         esac
19611         ;;
19612       lynxos*)
19613         ;;
19614       m88k*)
19615         ;;
19616       mvs*)
19617         case $cc_basename in
19618           cxx*)
19619             lt_prog_compiler_pic_CXX='-W c,exportall'
19620             ;;
19621           *)
19622             ;;
19623         esac
19624         ;;
19625       netbsd*)
19626         ;;
19627       osf3* | osf4* | osf5*)
19628         case $cc_basename in
19629           KCC*)
19630             lt_prog_compiler_wl_CXX='--backend -Wl,'
19631             ;;
19632           RCC*)
19633             # Rational C++ 2.4.1
19634             lt_prog_compiler_pic_CXX='-pic'
19635             ;;
19636           cxx*)
19637             # Digital/Compaq C++
19638             lt_prog_compiler_wl_CXX='-Wl,'
19639             # Make sure the PIC flag is empty.  It appears that all Alpha
19640             # Linux and Compaq Tru64 Unix objects are PIC.
19641             lt_prog_compiler_pic_CXX=
19642             lt_prog_compiler_static_CXX='-non_shared'
19643             ;;
19644           *)
19645             ;;
19646         esac
19647         ;;
19648       psos*)
19649         ;;
19650       solaris*)
19651         case $cc_basename in
19652           CC*)
19653             # Sun C++ 4.2, 5.x and Centerline C++
19654             lt_prog_compiler_pic_CXX='-KPIC'
19655             lt_prog_compiler_static_CXX='-Bstatic'
19656             lt_prog_compiler_wl_CXX='-Qoption ld '
19657             ;;
19658           gcx*)
19659             # Green Hills C++ Compiler
19660             lt_prog_compiler_pic_CXX='-PIC'
19661             ;;
19662           *)
19663             ;;
19664         esac
19665         ;;
19666       sunos4*)
19667         case $cc_basename in
19668           CC*)
19669             # Sun C++ 4.x
19670             lt_prog_compiler_pic_CXX='-pic'
19671             lt_prog_compiler_static_CXX='-Bstatic'
19672             ;;
19673           lcc*)
19674             # Lucid
19675             lt_prog_compiler_pic_CXX='-pic'
19676             ;;
19677           *)
19678             ;;
19679         esac
19680         ;;
19681       tandem*)
19682         case $cc_basename in
19683           NCC*)
19684             # NonStop-UX NCC 3.20
19685             lt_prog_compiler_pic_CXX='-KPIC'
19686             ;;
19687           *)
19688             ;;
19689         esac
19690         ;;
19691       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19692         case $cc_basename in
19693           CC*)
19694             lt_prog_compiler_wl_CXX='-Wl,'
19695             lt_prog_compiler_pic_CXX='-KPIC'
19696             lt_prog_compiler_static_CXX='-Bstatic'
19697             ;;
19698         esac
19699         ;;
19700       vxworks*)
19701         ;;
19702       *)
19703         lt_prog_compiler_can_build_shared_CXX=no
19704         ;;
19705     esac
19706   fi
19707
19708 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19709 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19710
19711 #
19712 # Check to make sure the PIC flag actually works.
19713 #
19714 if test -n "$lt_prog_compiler_pic_CXX"; then
19715
19716 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19717 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19718 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19719   echo $ECHO_N "(cached) $ECHO_C" >&6
19720 else
19721   lt_prog_compiler_pic_works_CXX=no
19722   ac_outfile=conftest.$ac_objext
19723    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19724    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19725    # Insert the option either (1) after the last *FLAGS variable, or
19726    # (2) before a word containing "conftest.", or (3) at the end.
19727    # Note that $ac_compile itself does not contain backslashes and begins
19728    # with a dollar sign (not a hyphen), so the echo should work correctly.
19729    # The option is referenced via a variable to avoid confusing sed.
19730    lt_compile=`echo "$ac_compile" | $SED \
19731    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19732    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19733    -e 's:$: $lt_compiler_flag:'`
19734    (eval echo "\"\$as_me:19734: $lt_compile\"" >&5)
19735    (eval "$lt_compile" 2>conftest.err)
19736    ac_status=$?
19737    cat conftest.err >&5
19738    echo "$as_me:19738: \$? = $ac_status" >&5
19739    if (exit $ac_status) && test -s "$ac_outfile"; then
19740      # The compiler can only warn and ignore the option if not recognized
19741      # So say no if there are warnings other than the usual output.
19742      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19743      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19744      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19745        lt_prog_compiler_pic_works_CXX=yes
19746      fi
19747    fi
19748    $rm conftest*
19749
19750 fi
19751 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19752 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
19753
19754 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19755     case $lt_prog_compiler_pic_CXX in
19756      "" | " "*) ;;
19757      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19758      esac
19759 else
19760     lt_prog_compiler_pic_CXX=
19761      lt_prog_compiler_can_build_shared_CXX=no
19762 fi
19763
19764 fi
19765 case $host_os in
19766   # For platforms which do not support PIC, -DPIC is meaningless:
19767   *djgpp*)
19768     lt_prog_compiler_pic_CXX=
19769     ;;
19770   *)
19771     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19772     ;;
19773 esac
19774
19775 #
19776 # Check to make sure the static flag actually works.
19777 #
19778 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19779 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19780 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19781 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19782   echo $ECHO_N "(cached) $ECHO_C" >&6
19783 else
19784   lt_prog_compiler_static_works_CXX=no
19785    save_LDFLAGS="$LDFLAGS"
19786    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19787    printf "$lt_simple_link_test_code" > conftest.$ac_ext
19788    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19789      # The linker can only warn and ignore the option if not recognized
19790      # So say no if there are warnings
19791      if test -s conftest.err; then
19792        # Append any errors to the config.log.
19793        cat conftest.err 1>&5
19794        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19795        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19796        if diff conftest.exp conftest.er2 >/dev/null; then
19797          lt_prog_compiler_static_works_CXX=yes
19798        fi
19799      else
19800        lt_prog_compiler_static_works_CXX=yes
19801      fi
19802    fi
19803    $rm conftest*
19804    LDFLAGS="$save_LDFLAGS"
19805
19806 fi
19807 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19808 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19809
19810 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19811     :
19812 else
19813     lt_prog_compiler_static_CXX=
19814 fi
19815
19816
19817 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19818 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19819 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19820   echo $ECHO_N "(cached) $ECHO_C" >&6
19821 else
19822   lt_cv_prog_compiler_c_o_CXX=no
19823    $rm -r conftest 2>/dev/null
19824    mkdir conftest
19825    cd conftest
19826    mkdir out
19827    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19828
19829    lt_compiler_flag="-o out/conftest2.$ac_objext"
19830    # Insert the option either (1) after the last *FLAGS variable, or
19831    # (2) before a word containing "conftest.", or (3) at the end.
19832    # Note that $ac_compile itself does not contain backslashes and begins
19833    # with a dollar sign (not a hyphen), so the echo should work correctly.
19834    lt_compile=`echo "$ac_compile" | $SED \
19835    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19836    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19837    -e 's:$: $lt_compiler_flag:'`
19838    (eval echo "\"\$as_me:19838: $lt_compile\"" >&5)
19839    (eval "$lt_compile" 2>out/conftest.err)
19840    ac_status=$?
19841    cat out/conftest.err >&5
19842    echo "$as_me:19842: \$? = $ac_status" >&5
19843    if (exit $ac_status) && test -s out/conftest2.$ac_objext
19844    then
19845      # The compiler can only warn and ignore the option if not recognized
19846      # So say no if there are warnings
19847      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19848      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19849      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19850        lt_cv_prog_compiler_c_o_CXX=yes
19851      fi
19852    fi
19853    chmod u+w . 2>&5
19854    $rm conftest*
19855    # SGI C++ compiler will create directory out/ii_files/ for
19856    # template instantiation
19857    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19858    $rm out/* && rmdir out
19859    cd ..
19860    rmdir conftest
19861    $rm conftest*
19862
19863 fi
19864 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19865 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
19866
19867
19868 hard_links="nottested"
19869 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19870   # do not overwrite the value of need_locks provided by the user
19871   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19872 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19873   hard_links=yes
19874   $rm conftest*
19875   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19876   touch conftest.a
19877   ln conftest.a conftest.b 2>&5 || hard_links=no
19878   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19879   { echo "$as_me:$LINENO: result: $hard_links" >&5
19880 echo "${ECHO_T}$hard_links" >&6; }
19881   if test "$hard_links" = no; then
19882     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19883 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19884     need_locks=warn
19885   fi
19886 else
19887   need_locks=no
19888 fi
19889
19890 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19891 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19892
19893   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19894   case $host_os in
19895   aix4* | aix5*)
19896     # If we're using GNU nm, then we don't want the "-C" option.
19897     # -C means demangle to AIX nm, but means don't demangle with GNU nm
19898     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19899       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'
19900     else
19901       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'
19902     fi
19903     ;;
19904   pw32*)
19905     export_symbols_cmds_CXX="$ltdll_cmds"
19906   ;;
19907   cygwin* | mingw*)
19908     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'
19909   ;;
19910   *)
19911     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19912   ;;
19913   esac
19914
19915 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19916 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19917 test "$ld_shlibs_CXX" = no && can_build_shared=no
19918
19919 #
19920 # Do we need to explicitly link libc?
19921 #
19922 case "x$archive_cmds_need_lc_CXX" in
19923 x|xyes)
19924   # Assume -lc should be added
19925   archive_cmds_need_lc_CXX=yes
19926
19927   if test "$enable_shared" = yes && test "$GCC" = yes; then
19928     case $archive_cmds_CXX in
19929     *'~'*)
19930       # FIXME: we may have to deal with multi-command sequences.
19931       ;;
19932     '$CC '*)
19933       # Test whether the compiler implicitly links with -lc since on some
19934       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19935       # to ld, don't add -lc before -lgcc.
19936       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19937 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19938       $rm conftest*
19939       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19940
19941       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19942   (eval $ac_compile) 2>&5
19943   ac_status=$?
19944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19945   (exit $ac_status); } 2>conftest.err; then
19946         soname=conftest
19947         lib=conftest
19948         libobjs=conftest.$ac_objext
19949         deplibs=
19950         wl=$lt_prog_compiler_wl_CXX
19951         pic_flag=$lt_prog_compiler_pic_CXX
19952         compiler_flags=-v
19953         linker_flags=-v
19954         verstring=
19955         output_objdir=.
19956         libname=conftest
19957         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19958         allow_undefined_flag_CXX=
19959         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19960   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19961   ac_status=$?
19962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19963   (exit $ac_status); }
19964         then
19965           archive_cmds_need_lc_CXX=no
19966         else
19967           archive_cmds_need_lc_CXX=yes
19968         fi
19969         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19970       else
19971         cat conftest.err 1>&5
19972       fi
19973       $rm conftest*
19974       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19975 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
19976       ;;
19977     esac
19978   fi
19979   ;;
19980 esac
19981
19982 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19983 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19984 library_names_spec=
19985 libname_spec='lib$name'
19986 soname_spec=
19987 shrext_cmds=".so"
19988 postinstall_cmds=
19989 postuninstall_cmds=
19990 finish_cmds=
19991 finish_eval=
19992 shlibpath_var=
19993 shlibpath_overrides_runpath=unknown
19994 version_type=none
19995 dynamic_linker="$host_os ld.so"
19996 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19997 if test "$GCC" = yes; then
19998   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19999   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20000     # if the path contains ";" then we assume it to be the separator
20001     # otherwise default to the standard path separator (i.e. ":") - it is
20002     # assumed that no part of a normal pathname contains ";" but that should
20003     # okay in the real world where ";" in dirpaths is itself problematic.
20004     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20005   else
20006     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20007   fi
20008 else
20009   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20010 fi
20011 need_lib_prefix=unknown
20012 hardcode_into_libs=no
20013
20014 # when you set need_version to no, make sure it does not cause -set_version
20015 # flags to be left without arguments
20016 need_version=unknown
20017
20018 case $host_os in
20019 aix3*)
20020   version_type=linux
20021   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20022   shlibpath_var=LIBPATH
20023
20024   # AIX 3 has no versioning support, so we append a major version to the name.
20025   soname_spec='${libname}${release}${shared_ext}$major'
20026   ;;
20027
20028 aix4* | aix5*)
20029   version_type=linux
20030   need_lib_prefix=no
20031   need_version=no
20032   hardcode_into_libs=yes
20033   if test "$host_cpu" = ia64; then
20034     # AIX 5 supports IA64
20035     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20036     shlibpath_var=LD_LIBRARY_PATH
20037   else
20038     # With GCC up to 2.95.x, collect2 would create an import file
20039     # for dependence libraries.  The import file would start with
20040     # the line `#! .'.  This would cause the generated library to
20041     # depend on `.', always an invalid library.  This was fixed in
20042     # development snapshots of GCC prior to 3.0.
20043     case $host_os in
20044       aix4 | aix4.[01] | aix4.[01].*)
20045       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20046            echo ' yes '
20047            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20048         :
20049       else
20050         can_build_shared=no
20051       fi
20052       ;;
20053     esac
20054     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20055     # soname into executable. Probably we can add versioning support to
20056     # collect2, so additional links can be useful in future.
20057     if test "$aix_use_runtimelinking" = yes; then
20058       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20059       # instead of lib<name>.a to let people know that these are not
20060       # typical AIX shared libraries.
20061       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20062     else
20063       # We preserve .a as extension for shared libraries through AIX4.2
20064       # and later when we are not doing run time linking.
20065       library_names_spec='${libname}${release}.a $libname.a'
20066       soname_spec='${libname}${release}${shared_ext}$major'
20067     fi
20068     shlibpath_var=LIBPATH
20069   fi
20070   ;;
20071
20072 amigaos*)
20073   library_names_spec='$libname.ixlibrary $libname.a'
20074   # Create ${libname}_ixlibrary.a entries in /sys/libs.
20075   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'
20076   ;;
20077
20078 beos*)
20079   library_names_spec='${libname}${shared_ext}'
20080   dynamic_linker="$host_os ld.so"
20081   shlibpath_var=LIBRARY_PATH
20082   ;;
20083
20084 bsdi[45]*)
20085   version_type=linux
20086   need_version=no
20087   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20088   soname_spec='${libname}${release}${shared_ext}$major'
20089   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20090   shlibpath_var=LD_LIBRARY_PATH
20091   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20092   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20093   # the default ld.so.conf also contains /usr/contrib/lib and
20094   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20095   # libtool to hard-code these into programs
20096   ;;
20097
20098 cygwin* | mingw* | pw32*)
20099   version_type=windows
20100   shrext_cmds=".dll"
20101   need_version=no
20102   need_lib_prefix=no
20103
20104   case $GCC,$host_os in
20105   yes,cygwin* | yes,mingw* | yes,pw32*)
20106     library_names_spec='$libname.dll.a'
20107     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20108     postinstall_cmds='base_file=`basename \${file}`~
20109       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20110       dldir=$destdir/`dirname \$dlpath`~
20111       test -d \$dldir || mkdir -p \$dldir~
20112       $install_prog $dir/$dlname \$dldir/$dlname~
20113       chmod a+x \$dldir/$dlname'
20114     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20115       dlpath=$dir/\$dldll~
20116        $rm \$dlpath'
20117     shlibpath_overrides_runpath=yes
20118
20119     case $host_os in
20120     cygwin*)
20121       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20122       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20123       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20124       ;;
20125     mingw*)
20126       # MinGW DLLs use traditional 'lib' prefix
20127       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20128       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20129       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20130         # It is most probably a Windows format PATH printed by
20131         # mingw gcc, but we are running on Cygwin. Gcc prints its search
20132         # path with ; separators, and with drive letters. We can handle the
20133         # drive letters (cygwin fileutils understands them), so leave them,
20134         # especially as we might pass files found there to a mingw objdump,
20135         # which wouldn't understand a cygwinified path. Ahh.
20136         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20137       else
20138         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20139       fi
20140       ;;
20141     pw32*)
20142       # pw32 DLLs use 'pw' prefix rather than 'lib'
20143       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20144       ;;
20145     esac
20146     ;;
20147
20148   *)
20149     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20150     ;;
20151   esac
20152   dynamic_linker='Win32 ld.exe'
20153   # FIXME: first we should search . and the directory the executable is in
20154   shlibpath_var=PATH
20155   ;;
20156
20157 darwin* | rhapsody*)
20158   dynamic_linker="$host_os dyld"
20159   version_type=darwin
20160   need_lib_prefix=no
20161   need_version=no
20162   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20163   soname_spec='${libname}${release}${major}$shared_ext'
20164   shlibpath_overrides_runpath=yes
20165   shlibpath_var=DYLD_LIBRARY_PATH
20166   shrext_cmds='.dylib'
20167   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20168   if test "$GCC" = yes; then
20169     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"`
20170   else
20171     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20172   fi
20173   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20174   ;;
20175
20176 dgux*)
20177   version_type=linux
20178   need_lib_prefix=no
20179   need_version=no
20180   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20181   soname_spec='${libname}${release}${shared_ext}$major'
20182   shlibpath_var=LD_LIBRARY_PATH
20183   ;;
20184
20185 freebsd1*)
20186   dynamic_linker=no
20187   ;;
20188
20189 kfreebsd*-gnu)
20190   version_type=linux
20191   need_lib_prefix=no
20192   need_version=no
20193   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20194   soname_spec='${libname}${release}${shared_ext}$major'
20195   shlibpath_var=LD_LIBRARY_PATH
20196   shlibpath_overrides_runpath=no
20197   hardcode_into_libs=yes
20198   dynamic_linker='GNU ld.so'
20199   ;;
20200
20201 freebsd* | dragonfly*)
20202   # DragonFly does not have aout.  When/if they implement a new
20203   # versioning mechanism, adjust this.
20204   if test -x /usr/bin/objformat; then
20205     objformat=`/usr/bin/objformat`
20206   else
20207     case $host_os in
20208     freebsd[123]*) objformat=aout ;;
20209     *) objformat=elf ;;
20210     esac
20211   fi
20212   version_type=freebsd-$objformat
20213   case $version_type in
20214     freebsd-elf*)
20215       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20216       need_version=no
20217       need_lib_prefix=no
20218       ;;
20219     freebsd-*)
20220       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20221       need_version=yes
20222       ;;
20223   esac
20224   shlibpath_var=LD_LIBRARY_PATH
20225   case $host_os in
20226   freebsd2*)
20227     shlibpath_overrides_runpath=yes
20228     ;;
20229   freebsd3.[01]* | freebsdelf3.[01]*)
20230     shlibpath_overrides_runpath=yes
20231     hardcode_into_libs=yes
20232     ;;
20233   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20234   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20235     shlibpath_overrides_runpath=no
20236     hardcode_into_libs=yes
20237     ;;
20238   freebsd*) # from 4.6 on
20239     shlibpath_overrides_runpath=yes
20240     hardcode_into_libs=yes
20241     ;;
20242   esac
20243   ;;
20244
20245 gnu*)
20246   version_type=linux
20247   need_lib_prefix=no
20248   need_version=no
20249   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20250   soname_spec='${libname}${release}${shared_ext}$major'
20251   shlibpath_var=LD_LIBRARY_PATH
20252   hardcode_into_libs=yes
20253   ;;
20254
20255 hpux9* | hpux10* | hpux11*)
20256   # Give a soname corresponding to the major version so that dld.sl refuses to
20257   # link against other versions.
20258   version_type=sunos
20259   need_lib_prefix=no
20260   need_version=no
20261   case $host_cpu in
20262   ia64*)
20263     shrext_cmds='.so'
20264     hardcode_into_libs=yes
20265     dynamic_linker="$host_os dld.so"
20266     shlibpath_var=LD_LIBRARY_PATH
20267     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20268     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20269     soname_spec='${libname}${release}${shared_ext}$major'
20270     if test "X$HPUX_IA64_MODE" = X32; then
20271       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20272     else
20273       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20274     fi
20275     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20276     ;;
20277    hppa*64*)
20278      shrext_cmds='.sl'
20279      hardcode_into_libs=yes
20280      dynamic_linker="$host_os dld.sl"
20281      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20282      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20283      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20284      soname_spec='${libname}${release}${shared_ext}$major'
20285      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20286      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20287      ;;
20288    *)
20289     shrext_cmds='.sl'
20290     dynamic_linker="$host_os dld.sl"
20291     shlibpath_var=SHLIB_PATH
20292     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20293     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20294     soname_spec='${libname}${release}${shared_ext}$major'
20295     ;;
20296   esac
20297   # HP-UX runs *really* slowly unless shared libraries are mode 555.
20298   postinstall_cmds='chmod 555 $lib'
20299   ;;
20300
20301 interix3*)
20302   version_type=linux
20303   need_lib_prefix=no
20304   need_version=no
20305   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20306   soname_spec='${libname}${release}${shared_ext}$major'
20307   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20308   shlibpath_var=LD_LIBRARY_PATH
20309   shlibpath_overrides_runpath=no
20310   hardcode_into_libs=yes
20311   ;;
20312
20313 irix5* | irix6* | nonstopux*)
20314   case $host_os in
20315     nonstopux*) version_type=nonstopux ;;
20316     *)
20317         if test "$lt_cv_prog_gnu_ld" = yes; then
20318                 version_type=linux
20319         else
20320                 version_type=irix
20321         fi ;;
20322   esac
20323   need_lib_prefix=no
20324   need_version=no
20325   soname_spec='${libname}${release}${shared_ext}$major'
20326   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20327   case $host_os in
20328   irix5* | nonstopux*)
20329     libsuff= shlibsuff=
20330     ;;
20331   *)
20332     case $LD in # libtool.m4 will add one of these switches to LD
20333     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20334       libsuff= shlibsuff= libmagic=32-bit;;
20335     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20336       libsuff=32 shlibsuff=N32 libmagic=N32;;
20337     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20338       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20339     *) libsuff= shlibsuff= libmagic=never-match;;
20340     esac
20341     ;;
20342   esac
20343   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20344   shlibpath_overrides_runpath=no
20345   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20346   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20347   hardcode_into_libs=yes
20348   ;;
20349
20350 # No shared lib support for Linux oldld, aout, or coff.
20351 linux*oldld* | linux*aout* | linux*coff*)
20352   dynamic_linker=no
20353   ;;
20354
20355 # This must be Linux ELF.
20356 linux*)
20357   version_type=linux
20358   need_lib_prefix=no
20359   need_version=no
20360   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20361   soname_spec='${libname}${release}${shared_ext}$major'
20362   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20363   shlibpath_var=LD_LIBRARY_PATH
20364   shlibpath_overrides_runpath=no
20365   # This implies no fast_install, which is unacceptable.
20366   # Some rework will be needed to allow for fast_install
20367   # before this can be enabled.
20368   hardcode_into_libs=yes
20369
20370   # Append ld.so.conf contents to the search path
20371   if test -f /etc/ld.so.conf; then
20372     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' ' '`
20373     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20374   fi
20375
20376   # We used to test for /lib/ld.so.1 and disable shared libraries on
20377   # powerpc, because MkLinux only supported shared libraries with the
20378   # GNU dynamic linker.  Since this was broken with cross compilers,
20379   # most powerpc-linux boxes support dynamic linking these days and
20380   # people can always --disable-shared, the test was removed, and we
20381   # assume the GNU/Linux dynamic linker is in use.
20382   dynamic_linker='GNU/Linux ld.so'
20383   ;;
20384
20385 knetbsd*-gnu)
20386   version_type=linux
20387   need_lib_prefix=no
20388   need_version=no
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   shlibpath_var=LD_LIBRARY_PATH
20392   shlibpath_overrides_runpath=no
20393   hardcode_into_libs=yes
20394   dynamic_linker='GNU ld.so'
20395   ;;
20396
20397 netbsd*)
20398   version_type=sunos
20399   need_lib_prefix=no
20400   need_version=no
20401   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20402     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20403     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20404     dynamic_linker='NetBSD (a.out) ld.so'
20405   else
20406     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20407     soname_spec='${libname}${release}${shared_ext}$major'
20408     dynamic_linker='NetBSD ld.elf_so'
20409   fi
20410   shlibpath_var=LD_LIBRARY_PATH
20411   shlibpath_overrides_runpath=yes
20412   hardcode_into_libs=yes
20413   ;;
20414
20415 newsos6)
20416   version_type=linux
20417   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20418   shlibpath_var=LD_LIBRARY_PATH
20419   shlibpath_overrides_runpath=yes
20420   ;;
20421
20422 nto-qnx*)
20423   version_type=linux
20424   need_lib_prefix=no
20425   need_version=no
20426   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20427   soname_spec='${libname}${release}${shared_ext}$major'
20428   shlibpath_var=LD_LIBRARY_PATH
20429   shlibpath_overrides_runpath=yes
20430   ;;
20431
20432 openbsd*)
20433   version_type=sunos
20434   sys_lib_dlsearch_path_spec="/usr/lib"
20435   need_lib_prefix=no
20436   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20437   case $host_os in
20438     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20439     *)                         need_version=no  ;;
20440   esac
20441   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20442   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20443   shlibpath_var=LD_LIBRARY_PATH
20444   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20445     case $host_os in
20446       openbsd2.[89] | openbsd2.[89].*)
20447         shlibpath_overrides_runpath=no
20448         ;;
20449       *)
20450         shlibpath_overrides_runpath=yes
20451         ;;
20452       esac
20453   else
20454     shlibpath_overrides_runpath=yes
20455   fi
20456   ;;
20457
20458 os2*)
20459   libname_spec='$name'
20460   shrext_cmds=".dll"
20461   need_lib_prefix=no
20462   library_names_spec='$libname${shared_ext} $libname.a'
20463   dynamic_linker='OS/2 ld.exe'
20464   shlibpath_var=LIBPATH
20465   ;;
20466
20467 osf3* | osf4* | osf5*)
20468   version_type=osf
20469   need_lib_prefix=no
20470   need_version=no
20471   soname_spec='${libname}${release}${shared_ext}$major'
20472   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20473   shlibpath_var=LD_LIBRARY_PATH
20474   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20475   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20476   ;;
20477
20478 solaris*)
20479   version_type=linux
20480   need_lib_prefix=no
20481   need_version=no
20482   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20483   soname_spec='${libname}${release}${shared_ext}$major'
20484   shlibpath_var=LD_LIBRARY_PATH
20485   shlibpath_overrides_runpath=yes
20486   hardcode_into_libs=yes
20487   # ldd complains unless libraries are executable
20488   postinstall_cmds='chmod +x $lib'
20489   ;;
20490
20491 sunos4*)
20492   version_type=sunos
20493   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20494   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20495   shlibpath_var=LD_LIBRARY_PATH
20496   shlibpath_overrides_runpath=yes
20497   if test "$with_gnu_ld" = yes; then
20498     need_lib_prefix=no
20499   fi
20500   need_version=yes
20501   ;;
20502
20503 sysv4 | sysv4.3*)
20504   version_type=linux
20505   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20506   soname_spec='${libname}${release}${shared_ext}$major'
20507   shlibpath_var=LD_LIBRARY_PATH
20508   case $host_vendor in
20509     sni)
20510       shlibpath_overrides_runpath=no
20511       need_lib_prefix=no
20512       export_dynamic_flag_spec='${wl}-Blargedynsym'
20513       runpath_var=LD_RUN_PATH
20514       ;;
20515     siemens)
20516       need_lib_prefix=no
20517       ;;
20518     motorola)
20519       need_lib_prefix=no
20520       need_version=no
20521       shlibpath_overrides_runpath=no
20522       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20523       ;;
20524   esac
20525   ;;
20526
20527 sysv4*MP*)
20528   if test -d /usr/nec ;then
20529     version_type=linux
20530     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20531     soname_spec='$libname${shared_ext}.$major'
20532     shlibpath_var=LD_LIBRARY_PATH
20533   fi
20534   ;;
20535
20536 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20537   version_type=freebsd-elf
20538   need_lib_prefix=no
20539   need_version=no
20540   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20541   soname_spec='${libname}${release}${shared_ext}$major'
20542   shlibpath_var=LD_LIBRARY_PATH
20543   hardcode_into_libs=yes
20544   if test "$with_gnu_ld" = yes; then
20545     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20546     shlibpath_overrides_runpath=no
20547   else
20548     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20549     shlibpath_overrides_runpath=yes
20550     case $host_os in
20551       sco3.2v5*)
20552         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20553         ;;
20554     esac
20555   fi
20556   sys_lib_dlsearch_path_spec='/usr/lib'
20557   ;;
20558
20559 uts4*)
20560   version_type=linux
20561   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20562   soname_spec='${libname}${release}${shared_ext}$major'
20563   shlibpath_var=LD_LIBRARY_PATH
20564   ;;
20565
20566 *)
20567   dynamic_linker=no
20568   ;;
20569 esac
20570 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20571 echo "${ECHO_T}$dynamic_linker" >&6; }
20572 test "$dynamic_linker" = no && can_build_shared=no
20573
20574 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20575 if test "$GCC" = yes; then
20576   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20577 fi
20578
20579 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20580 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20581 hardcode_action_CXX=
20582 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20583    test -n "$runpath_var_CXX" || \
20584    test "X$hardcode_automatic_CXX" = "Xyes" ; then
20585
20586   # We can hardcode non-existant directories.
20587   if test "$hardcode_direct_CXX" != no &&
20588      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20589      # have to relink, otherwise we might link with an installed library
20590      # when we should be linking with a yet-to-be-installed one
20591      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20592      test "$hardcode_minus_L_CXX" != no; then
20593     # Linking always hardcodes the temporary library directory.
20594     hardcode_action_CXX=relink
20595   else
20596     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20597     hardcode_action_CXX=immediate
20598   fi
20599 else
20600   # We cannot hardcode anything, or else we can only hardcode existing
20601   # directories.
20602   hardcode_action_CXX=unsupported
20603 fi
20604 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20605 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20606
20607 if test "$hardcode_action_CXX" = relink; then
20608   # Fast installation is not supported
20609   enable_fast_install=no
20610 elif test "$shlibpath_overrides_runpath" = yes ||
20611      test "$enable_shared" = no; then
20612   # Fast installation is not necessary
20613   enable_fast_install=needless
20614 fi
20615
20616
20617 # The else clause should only fire when bootstrapping the
20618 # libtool distribution, otherwise you forgot to ship ltmain.sh
20619 # with your package, and you will get complaints that there are
20620 # no rules to generate ltmain.sh.
20621 if test -f "$ltmain"; then
20622   # See if we are running on zsh, and set the options which allow our commands through
20623   # without removal of \ escapes.
20624   if test -n "${ZSH_VERSION+set}" ; then
20625     setopt NO_GLOB_SUBST
20626   fi
20627   # Now quote all the things that may contain metacharacters while being
20628   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20629   # variables and quote the copies for generation of the libtool script.
20630   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20631     SED SHELL STRIP \
20632     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20633     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20634     deplibs_check_method reload_flag reload_cmds need_locks \
20635     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20636     lt_cv_sys_global_symbol_to_c_name_address \
20637     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20638     old_postinstall_cmds old_postuninstall_cmds \
20639     compiler_CXX \
20640     CC_CXX \
20641     LD_CXX \
20642     lt_prog_compiler_wl_CXX \
20643     lt_prog_compiler_pic_CXX \
20644     lt_prog_compiler_static_CXX \
20645     lt_prog_compiler_no_builtin_flag_CXX \
20646     export_dynamic_flag_spec_CXX \
20647     thread_safe_flag_spec_CXX \
20648     whole_archive_flag_spec_CXX \
20649     enable_shared_with_static_runtimes_CXX \
20650     old_archive_cmds_CXX \
20651     old_archive_from_new_cmds_CXX \
20652     predep_objects_CXX \
20653     postdep_objects_CXX \
20654     predeps_CXX \
20655     postdeps_CXX \
20656     compiler_lib_search_path_CXX \
20657     archive_cmds_CXX \
20658     archive_expsym_cmds_CXX \
20659     postinstall_cmds_CXX \
20660     postuninstall_cmds_CXX \
20661     old_archive_from_expsyms_cmds_CXX \
20662     allow_undefined_flag_CXX \
20663     no_undefined_flag_CXX \
20664     export_symbols_cmds_CXX \
20665     hardcode_libdir_flag_spec_CXX \
20666     hardcode_libdir_flag_spec_ld_CXX \
20667     hardcode_libdir_separator_CXX \
20668     hardcode_automatic_CXX \
20669     module_cmds_CXX \
20670     module_expsym_cmds_CXX \
20671     lt_cv_prog_compiler_c_o_CXX \
20672     exclude_expsyms_CXX \
20673     include_expsyms_CXX; do
20674
20675     case $var in
20676     old_archive_cmds_CXX | \
20677     old_archive_from_new_cmds_CXX | \
20678     archive_cmds_CXX | \
20679     archive_expsym_cmds_CXX | \
20680     module_cmds_CXX | \
20681     module_expsym_cmds_CXX | \
20682     old_archive_from_expsyms_cmds_CXX | \
20683     export_symbols_cmds_CXX | \
20684     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20685     postinstall_cmds | postuninstall_cmds | \
20686     old_postinstall_cmds | old_postuninstall_cmds | \
20687     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20688       # Double-quote double-evaled strings.
20689       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20690       ;;
20691     *)
20692       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20693       ;;
20694     esac
20695   done
20696
20697   case $lt_echo in
20698   *'\$0 --fallback-echo"')
20699     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20700     ;;
20701   esac
20702
20703 cfgfile="$ofile"
20704
20705   cat <<__EOF__ >> "$cfgfile"
20706 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20707
20708 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20709
20710 # Shell to use when invoking shell scripts.
20711 SHELL=$lt_SHELL
20712
20713 # Whether or not to build shared libraries.
20714 build_libtool_libs=$enable_shared
20715
20716 # Whether or not to build static libraries.
20717 build_old_libs=$enable_static
20718
20719 # Whether or not to add -lc for building shared libraries.
20720 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20721
20722 # Whether or not to disallow shared libs when runtime libs are static
20723 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20724
20725 # Whether or not to optimize for fast installation.
20726 fast_install=$enable_fast_install
20727
20728 # The host system.
20729 host_alias=$host_alias
20730 host=$host
20731 host_os=$host_os
20732
20733 # The build system.
20734 build_alias=$build_alias
20735 build=$build
20736 build_os=$build_os
20737
20738 # An echo program that does not interpret backslashes.
20739 echo=$lt_echo
20740
20741 # The archiver.
20742 AR=$lt_AR
20743 AR_FLAGS=$lt_AR_FLAGS
20744
20745 # A C compiler.
20746 LTCC=$lt_LTCC
20747
20748 # LTCC compiler flags.
20749 LTCFLAGS=$lt_LTCFLAGS
20750
20751 # A language-specific compiler.
20752 CC=$lt_compiler_CXX
20753
20754 # Is the compiler the GNU C compiler?
20755 with_gcc=$GCC_CXX
20756
20757 # An ERE matcher.
20758 EGREP=$lt_EGREP
20759
20760 # The linker used to build libraries.
20761 LD=$lt_LD_CXX
20762
20763 # Whether we need hard or soft links.
20764 LN_S=$lt_LN_S
20765
20766 # A BSD-compatible nm program.
20767 NM=$lt_NM
20768
20769 # A symbol stripping program
20770 STRIP=$lt_STRIP
20771
20772 # Used to examine libraries when file_magic_cmd begins "file"
20773 MAGIC_CMD=$MAGIC_CMD
20774
20775 # Used on cygwin: DLL creation program.
20776 DLLTOOL="$DLLTOOL"
20777
20778 # Used on cygwin: object dumper.
20779 OBJDUMP="$OBJDUMP"
20780
20781 # Used on cygwin: assembler.
20782 AS="$AS"
20783
20784 # The name of the directory that contains temporary libtool files.
20785 objdir=$objdir
20786
20787 # How to create reloadable object files.
20788 reload_flag=$lt_reload_flag
20789 reload_cmds=$lt_reload_cmds
20790
20791 # How to pass a linker flag through the compiler.
20792 wl=$lt_lt_prog_compiler_wl_CXX
20793
20794 # Object file suffix (normally "o").
20795 objext="$ac_objext"
20796
20797 # Old archive suffix (normally "a").
20798 libext="$libext"
20799
20800 # Shared library suffix (normally ".so").
20801 shrext_cmds='$shrext_cmds'
20802
20803 # Executable file suffix (normally "").
20804 exeext="$exeext"
20805
20806 # Additional compiler flags for building library objects.
20807 pic_flag=$lt_lt_prog_compiler_pic_CXX
20808 pic_mode=$pic_mode
20809
20810 # What is the maximum length of a command?
20811 max_cmd_len=$lt_cv_sys_max_cmd_len
20812
20813 # Does compiler simultaneously support -c and -o options?
20814 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20815
20816 # Must we lock files when doing compilation?
20817 need_locks=$lt_need_locks
20818
20819 # Do we need the lib prefix for modules?
20820 need_lib_prefix=$need_lib_prefix
20821
20822 # Do we need a version for libraries?
20823 need_version=$need_version
20824
20825 # Whether dlopen is supported.
20826 dlopen_support=$enable_dlopen
20827
20828 # Whether dlopen of programs is supported.
20829 dlopen_self=$enable_dlopen_self
20830
20831 # Whether dlopen of statically linked programs is supported.
20832 dlopen_self_static=$enable_dlopen_self_static
20833
20834 # Compiler flag to prevent dynamic linking.
20835 link_static_flag=$lt_lt_prog_compiler_static_CXX
20836
20837 # Compiler flag to turn off builtin functions.
20838 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20839
20840 # Compiler flag to allow reflexive dlopens.
20841 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20842
20843 # Compiler flag to generate shared objects directly from archives.
20844 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20845
20846 # Compiler flag to generate thread-safe objects.
20847 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20848
20849 # Library versioning type.
20850 version_type=$version_type
20851
20852 # Format of library name prefix.
20853 libname_spec=$lt_libname_spec
20854
20855 # List of archive names.  First name is the real one, the rest are links.
20856 # The last name is the one that the linker finds with -lNAME.
20857 library_names_spec=$lt_library_names_spec
20858
20859 # The coded name of the library, if different from the real name.
20860 soname_spec=$lt_soname_spec
20861
20862 # Commands used to build and install an old-style archive.
20863 RANLIB=$lt_RANLIB
20864 old_archive_cmds=$lt_old_archive_cmds_CXX
20865 old_postinstall_cmds=$lt_old_postinstall_cmds
20866 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20867
20868 # Create an old-style archive from a shared archive.
20869 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20870
20871 # Create a temporary old-style archive to link instead of a shared archive.
20872 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20873
20874 # Commands used to build and install a shared archive.
20875 archive_cmds=$lt_archive_cmds_CXX
20876 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20877 postinstall_cmds=$lt_postinstall_cmds
20878 postuninstall_cmds=$lt_postuninstall_cmds
20879
20880 # Commands used to build a loadable module (assumed same as above if empty)
20881 module_cmds=$lt_module_cmds_CXX
20882 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20883
20884 # Commands to strip libraries.
20885 old_striplib=$lt_old_striplib
20886 striplib=$lt_striplib
20887
20888 # Dependencies to place before the objects being linked to create a
20889 # shared library.
20890 predep_objects=$lt_predep_objects_CXX
20891
20892 # Dependencies to place after the objects being linked to create a
20893 # shared library.
20894 postdep_objects=$lt_postdep_objects_CXX
20895
20896 # Dependencies to place before the objects being linked to create a
20897 # shared library.
20898 predeps=$lt_predeps_CXX
20899
20900 # Dependencies to place after the objects being linked to create a
20901 # shared library.
20902 postdeps=$lt_postdeps_CXX
20903
20904 # The library search path used internally by the compiler when linking
20905 # a shared library.
20906 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20907
20908 # Method to check whether dependent libraries are shared objects.
20909 deplibs_check_method=$lt_deplibs_check_method
20910
20911 # Command to use when deplibs_check_method == file_magic.
20912 file_magic_cmd=$lt_file_magic_cmd
20913
20914 # Flag that allows shared libraries with undefined symbols to be built.
20915 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20916
20917 # Flag that forces no undefined symbols.
20918 no_undefined_flag=$lt_no_undefined_flag_CXX
20919
20920 # Commands used to finish a libtool library installation in a directory.
20921 finish_cmds=$lt_finish_cmds
20922
20923 # Same as above, but a single script fragment to be evaled but not shown.
20924 finish_eval=$lt_finish_eval
20925
20926 # Take the output of nm and produce a listing of raw symbols and C names.
20927 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20928
20929 # Transform the output of nm in a proper C declaration
20930 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20931
20932 # Transform the output of nm in a C name address pair
20933 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20934
20935 # This is the shared library runtime path variable.
20936 runpath_var=$runpath_var
20937
20938 # This is the shared library path variable.
20939 shlibpath_var=$shlibpath_var
20940
20941 # Is shlibpath searched before the hard-coded library search path?
20942 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20943
20944 # How to hardcode a shared library path into an executable.
20945 hardcode_action=$hardcode_action_CXX
20946
20947 # Whether we should hardcode library paths into libraries.
20948 hardcode_into_libs=$hardcode_into_libs
20949
20950 # Flag to hardcode \$libdir into a binary during linking.
20951 # This must work even if \$libdir does not exist.
20952 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20953
20954 # If ld is used when linking, flag to hardcode \$libdir into
20955 # a binary during linking. This must work even if \$libdir does
20956 # not exist.
20957 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20958
20959 # Whether we need a single -rpath flag with a separated argument.
20960 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20961
20962 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20963 # resulting binary.
20964 hardcode_direct=$hardcode_direct_CXX
20965
20966 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20967 # resulting binary.
20968 hardcode_minus_L=$hardcode_minus_L_CXX
20969
20970 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20971 # the resulting binary.
20972 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20973
20974 # Set to yes if building a shared library automatically hardcodes DIR into the library
20975 # and all subsequent libraries and executables linked against it.
20976 hardcode_automatic=$hardcode_automatic_CXX
20977
20978 # Variables whose values should be saved in libtool wrapper scripts and
20979 # restored at relink time.
20980 variables_saved_for_relink="$variables_saved_for_relink"
20981
20982 # Whether libtool must link a program against all its dependency libraries.
20983 link_all_deplibs=$link_all_deplibs_CXX
20984
20985 # Compile-time system search path for libraries
20986 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20987
20988 # Run-time system search path for libraries
20989 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20990
20991 # Fix the shell variable \$srcfile for the compiler.
20992 fix_srcfile_path="$fix_srcfile_path_CXX"
20993
20994 # Set to yes if exported symbols are required.
20995 always_export_symbols=$always_export_symbols_CXX
20996
20997 # The commands to list exported symbols.
20998 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20999
21000 # The commands to extract the exported symbol list from a shared archive.
21001 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21002
21003 # Symbols that should not be listed in the preloaded symbols.
21004 exclude_expsyms=$lt_exclude_expsyms_CXX
21005
21006 # Symbols that must always be exported.
21007 include_expsyms=$lt_include_expsyms_CXX
21008
21009 # ### END LIBTOOL TAG CONFIG: $tagname
21010
21011 __EOF__
21012
21013
21014 else
21015   # If there is no Makefile yet, we rely on a make rule to execute
21016   # `config.status --recheck' to rerun these tests and create the
21017   # libtool script then.
21018   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21019   if test -f "$ltmain_in"; then
21020     test -f Makefile && make "$ltmain"
21021   fi
21022 fi
21023
21024
21025 ac_ext=c
21026 ac_cpp='$CPP $CPPFLAGS'
21027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21029 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21030
21031 CC=$lt_save_CC
21032 LDCXX=$LD
21033 LD=$lt_save_LD
21034 GCC=$lt_save_GCC
21035 with_gnu_ldcxx=$with_gnu_ld
21036 with_gnu_ld=$lt_save_with_gnu_ld
21037 lt_cv_path_LDCXX=$lt_cv_path_LD
21038 lt_cv_path_LD=$lt_save_path_LD
21039 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21040 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21041
21042         else
21043           tagname=""
21044         fi
21045         ;;
21046
21047       F77)
21048         if test -n "$F77" && test "X$F77" != "Xno"; then
21049
21050 ac_ext=f
21051 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21052 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21053 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21054
21055
21056 archive_cmds_need_lc_F77=no
21057 allow_undefined_flag_F77=
21058 always_export_symbols_F77=no
21059 archive_expsym_cmds_F77=
21060 export_dynamic_flag_spec_F77=
21061 hardcode_direct_F77=no
21062 hardcode_libdir_flag_spec_F77=
21063 hardcode_libdir_flag_spec_ld_F77=
21064 hardcode_libdir_separator_F77=
21065 hardcode_minus_L_F77=no
21066 hardcode_automatic_F77=no
21067 module_cmds_F77=
21068 module_expsym_cmds_F77=
21069 link_all_deplibs_F77=unknown
21070 old_archive_cmds_F77=$old_archive_cmds
21071 no_undefined_flag_F77=
21072 whole_archive_flag_spec_F77=
21073 enable_shared_with_static_runtimes_F77=no
21074
21075 # Source file extension for f77 test sources.
21076 ac_ext=f
21077
21078 # Object file extension for compiled f77 test sources.
21079 objext=o
21080 objext_F77=$objext
21081
21082 # Code to be used in simple compile tests
21083 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
21084
21085 # Code to be used in simple link tests
21086 lt_simple_link_test_code="      program t\n      end\n"
21087
21088 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21089
21090 # If no C compiler was specified, use CC.
21091 LTCC=${LTCC-"$CC"}
21092
21093 # If no C compiler flags were specified, use CFLAGS.
21094 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21095
21096 # Allow CC to be a program name with arguments.
21097 compiler=$CC
21098
21099
21100 # save warnings/boilerplate of simple test code
21101 ac_outfile=conftest.$ac_objext
21102 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21103 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21104 _lt_compiler_boilerplate=`cat conftest.err`
21105 $rm conftest*
21106
21107 ac_outfile=conftest.$ac_objext
21108 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21109 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21110 _lt_linker_boilerplate=`cat conftest.err`
21111 $rm conftest*
21112
21113
21114 # Allow CC to be a program name with arguments.
21115 lt_save_CC="$CC"
21116 CC=${F77-"f77"}
21117 compiler=$CC
21118 compiler_F77=$CC
21119 for cc_temp in $compiler""; do
21120   case $cc_temp in
21121     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21122     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21123     \-*) ;;
21124     *) break;;
21125   esac
21126 done
21127 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21128
21129
21130 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21131 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21132 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21133 echo "${ECHO_T}$can_build_shared" >&6; }
21134
21135 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21136 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21137 test "$can_build_shared" = "no" && enable_shared=no
21138
21139 # On AIX, shared libraries and static libraries use the same namespace, and
21140 # are all built from PIC.
21141 case $host_os in
21142 aix3*)
21143   test "$enable_shared" = yes && enable_static=no
21144   if test -n "$RANLIB"; then
21145     archive_cmds="$archive_cmds~\$RANLIB \$lib"
21146     postinstall_cmds='$RANLIB $lib'
21147   fi
21148   ;;
21149 aix4* | aix5*)
21150   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21151     test "$enable_shared" = yes && enable_static=no
21152   fi
21153   ;;
21154 esac
21155 { echo "$as_me:$LINENO: result: $enable_shared" >&5
21156 echo "${ECHO_T}$enable_shared" >&6; }
21157
21158 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21159 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21160 # Make sure either enable_shared or enable_static is yes.
21161 test "$enable_shared" = yes || enable_static=yes
21162 { echo "$as_me:$LINENO: result: $enable_static" >&5
21163 echo "${ECHO_T}$enable_static" >&6; }
21164
21165 GCC_F77="$G77"
21166 LD_F77="$LD"
21167
21168 lt_prog_compiler_wl_F77=
21169 lt_prog_compiler_pic_F77=
21170 lt_prog_compiler_static_F77=
21171
21172 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21173 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21174
21175   if test "$GCC" = yes; then
21176     lt_prog_compiler_wl_F77='-Wl,'
21177     lt_prog_compiler_static_F77='-static'
21178
21179     case $host_os in
21180       aix*)
21181       # All AIX code is PIC.
21182       if test "$host_cpu" = ia64; then
21183         # AIX 5 now supports IA64 processor
21184         lt_prog_compiler_static_F77='-Bstatic'
21185       fi
21186       ;;
21187
21188     amigaos*)
21189       # FIXME: we need at least 68020 code to build shared libraries, but
21190       # adding the `-m68020' flag to GCC prevents building anything better,
21191       # like `-m68040'.
21192       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21193       ;;
21194
21195     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21196       # PIC is the default for these OSes.
21197       ;;
21198
21199     mingw* | pw32* | os2*)
21200       # This hack is so that the source file can tell whether it is being
21201       # built for inclusion in a dll (and should export symbols for example).
21202       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21203       ;;
21204
21205     darwin* | rhapsody*)
21206       # PIC is the default on this platform
21207       # Common symbols not allowed in MH_DYLIB files
21208       lt_prog_compiler_pic_F77='-fno-common'
21209       ;;
21210
21211     interix3*)
21212       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21213       # Instead, we relocate shared libraries at runtime.
21214       ;;
21215
21216     msdosdjgpp*)
21217       # Just because we use GCC doesn't mean we suddenly get shared libraries
21218       # on systems that don't support them.
21219       lt_prog_compiler_can_build_shared_F77=no
21220       enable_shared=no
21221       ;;
21222
21223     sysv4*MP*)
21224       if test -d /usr/nec; then
21225         lt_prog_compiler_pic_F77=-Kconform_pic
21226       fi
21227       ;;
21228
21229     hpux*)
21230       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21231       # not for PA HP-UX.
21232       case $host_cpu in
21233       hppa*64*|ia64*)
21234         # +Z the default
21235         ;;
21236       *)
21237         lt_prog_compiler_pic_F77='-fPIC'
21238         ;;
21239       esac
21240       ;;
21241
21242     *)
21243       lt_prog_compiler_pic_F77='-fPIC'
21244       ;;
21245     esac
21246   else
21247     # PORTME Check for flag to pass linker flags through the system compiler.
21248     case $host_os in
21249     aix*)
21250       lt_prog_compiler_wl_F77='-Wl,'
21251       if test "$host_cpu" = ia64; then
21252         # AIX 5 now supports IA64 processor
21253         lt_prog_compiler_static_F77='-Bstatic'
21254       else
21255         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21256       fi
21257       ;;
21258       darwin*)
21259         # PIC is the default on this platform
21260         # Common symbols not allowed in MH_DYLIB files
21261        case $cc_basename in
21262          xlc*)
21263          lt_prog_compiler_pic_F77='-qnocommon'
21264          lt_prog_compiler_wl_F77='-Wl,'
21265          ;;
21266        esac
21267        ;;
21268
21269     mingw* | pw32* | os2*)
21270       # This hack is so that the source file can tell whether it is being
21271       # built for inclusion in a dll (and should export symbols for example).
21272       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21273       ;;
21274
21275     hpux9* | hpux10* | hpux11*)
21276       lt_prog_compiler_wl_F77='-Wl,'
21277       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21278       # not for PA HP-UX.
21279       case $host_cpu in
21280       hppa*64*|ia64*)
21281         # +Z the default
21282         ;;
21283       *)
21284         lt_prog_compiler_pic_F77='+Z'
21285         ;;
21286       esac
21287       # Is there a better lt_prog_compiler_static that works with the bundled CC?
21288       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21289       ;;
21290
21291     irix5* | irix6* | nonstopux*)
21292       lt_prog_compiler_wl_F77='-Wl,'
21293       # PIC (with -KPIC) is the default.
21294       lt_prog_compiler_static_F77='-non_shared'
21295       ;;
21296
21297     newsos6)
21298       lt_prog_compiler_pic_F77='-KPIC'
21299       lt_prog_compiler_static_F77='-Bstatic'
21300       ;;
21301
21302     linux*)
21303       case $cc_basename in
21304       icc* | ecc*)
21305         lt_prog_compiler_wl_F77='-Wl,'
21306         lt_prog_compiler_pic_F77='-KPIC'
21307         lt_prog_compiler_static_F77='-static'
21308         ;;
21309       pgcc* | pgf77* | pgf90* | pgf95*)
21310         # Portland Group compilers (*not* the Pentium gcc compiler,
21311         # which looks to be a dead project)
21312         lt_prog_compiler_wl_F77='-Wl,'
21313         lt_prog_compiler_pic_F77='-fpic'
21314         lt_prog_compiler_static_F77='-Bstatic'
21315         ;;
21316       ccc*)
21317         lt_prog_compiler_wl_F77='-Wl,'
21318         # All Alpha code is PIC.
21319         lt_prog_compiler_static_F77='-non_shared'
21320         ;;
21321       esac
21322       ;;
21323
21324     osf3* | osf4* | osf5*)
21325       lt_prog_compiler_wl_F77='-Wl,'
21326       # All OSF/1 code is PIC.
21327       lt_prog_compiler_static_F77='-non_shared'
21328       ;;
21329
21330     solaris*)
21331       lt_prog_compiler_pic_F77='-KPIC'
21332       lt_prog_compiler_static_F77='-Bstatic'
21333       case $cc_basename in
21334       f77* | f90* | f95*)
21335         lt_prog_compiler_wl_F77='-Qoption ld ';;
21336       *)
21337         lt_prog_compiler_wl_F77='-Wl,';;
21338       esac
21339       ;;
21340
21341     sunos4*)
21342       lt_prog_compiler_wl_F77='-Qoption ld '
21343       lt_prog_compiler_pic_F77='-PIC'
21344       lt_prog_compiler_static_F77='-Bstatic'
21345       ;;
21346
21347     sysv4 | sysv4.2uw2* | sysv4.3*)
21348       lt_prog_compiler_wl_F77='-Wl,'
21349       lt_prog_compiler_pic_F77='-KPIC'
21350       lt_prog_compiler_static_F77='-Bstatic'
21351       ;;
21352
21353     sysv4*MP*)
21354       if test -d /usr/nec ;then
21355         lt_prog_compiler_pic_F77='-Kconform_pic'
21356         lt_prog_compiler_static_F77='-Bstatic'
21357       fi
21358       ;;
21359
21360     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21361       lt_prog_compiler_wl_F77='-Wl,'
21362       lt_prog_compiler_pic_F77='-KPIC'
21363       lt_prog_compiler_static_F77='-Bstatic'
21364       ;;
21365
21366     unicos*)
21367       lt_prog_compiler_wl_F77='-Wl,'
21368       lt_prog_compiler_can_build_shared_F77=no
21369       ;;
21370
21371     uts4*)
21372       lt_prog_compiler_pic_F77='-pic'
21373       lt_prog_compiler_static_F77='-Bstatic'
21374       ;;
21375
21376     *)
21377       lt_prog_compiler_can_build_shared_F77=no
21378       ;;
21379     esac
21380   fi
21381
21382 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21383 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21384
21385 #
21386 # Check to make sure the PIC flag actually works.
21387 #
21388 if test -n "$lt_prog_compiler_pic_F77"; then
21389
21390 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21391 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21392 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21393   echo $ECHO_N "(cached) $ECHO_C" >&6
21394 else
21395   lt_prog_compiler_pic_works_F77=no
21396   ac_outfile=conftest.$ac_objext
21397    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21398    lt_compiler_flag="$lt_prog_compiler_pic_F77"
21399    # Insert the option either (1) after the last *FLAGS variable, or
21400    # (2) before a word containing "conftest.", or (3) at the end.
21401    # Note that $ac_compile itself does not contain backslashes and begins
21402    # with a dollar sign (not a hyphen), so the echo should work correctly.
21403    # The option is referenced via a variable to avoid confusing sed.
21404    lt_compile=`echo "$ac_compile" | $SED \
21405    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21406    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21407    -e 's:$: $lt_compiler_flag:'`
21408    (eval echo "\"\$as_me:21408: $lt_compile\"" >&5)
21409    (eval "$lt_compile" 2>conftest.err)
21410    ac_status=$?
21411    cat conftest.err >&5
21412    echo "$as_me:21412: \$? = $ac_status" >&5
21413    if (exit $ac_status) && test -s "$ac_outfile"; then
21414      # The compiler can only warn and ignore the option if not recognized
21415      # So say no if there are warnings other than the usual output.
21416      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21417      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21418      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21419        lt_prog_compiler_pic_works_F77=yes
21420      fi
21421    fi
21422    $rm conftest*
21423
21424 fi
21425 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21426 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21427
21428 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21429     case $lt_prog_compiler_pic_F77 in
21430      "" | " "*) ;;
21431      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21432      esac
21433 else
21434     lt_prog_compiler_pic_F77=
21435      lt_prog_compiler_can_build_shared_F77=no
21436 fi
21437
21438 fi
21439 case $host_os in
21440   # For platforms which do not support PIC, -DPIC is meaningless:
21441   *djgpp*)
21442     lt_prog_compiler_pic_F77=
21443     ;;
21444   *)
21445     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21446     ;;
21447 esac
21448
21449 #
21450 # Check to make sure the static flag actually works.
21451 #
21452 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21453 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21454 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21455 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21456   echo $ECHO_N "(cached) $ECHO_C" >&6
21457 else
21458   lt_prog_compiler_static_works_F77=no
21459    save_LDFLAGS="$LDFLAGS"
21460    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21461    printf "$lt_simple_link_test_code" > conftest.$ac_ext
21462    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21463      # The linker can only warn and ignore the option if not recognized
21464      # So say no if there are warnings
21465      if test -s conftest.err; then
21466        # Append any errors to the config.log.
21467        cat conftest.err 1>&5
21468        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21469        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21470        if diff conftest.exp conftest.er2 >/dev/null; then
21471          lt_prog_compiler_static_works_F77=yes
21472        fi
21473      else
21474        lt_prog_compiler_static_works_F77=yes
21475      fi
21476    fi
21477    $rm conftest*
21478    LDFLAGS="$save_LDFLAGS"
21479
21480 fi
21481 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21482 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21483
21484 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21485     :
21486 else
21487     lt_prog_compiler_static_F77=
21488 fi
21489
21490
21491 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21492 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21493 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21494   echo $ECHO_N "(cached) $ECHO_C" >&6
21495 else
21496   lt_cv_prog_compiler_c_o_F77=no
21497    $rm -r conftest 2>/dev/null
21498    mkdir conftest
21499    cd conftest
21500    mkdir out
21501    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21502
21503    lt_compiler_flag="-o out/conftest2.$ac_objext"
21504    # Insert the option either (1) after the last *FLAGS variable, or
21505    # (2) before a word containing "conftest.", or (3) at the end.
21506    # Note that $ac_compile itself does not contain backslashes and begins
21507    # with a dollar sign (not a hyphen), so the echo should work correctly.
21508    lt_compile=`echo "$ac_compile" | $SED \
21509    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21510    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21511    -e 's:$: $lt_compiler_flag:'`
21512    (eval echo "\"\$as_me:21512: $lt_compile\"" >&5)
21513    (eval "$lt_compile" 2>out/conftest.err)
21514    ac_status=$?
21515    cat out/conftest.err >&5
21516    echo "$as_me:21516: \$? = $ac_status" >&5
21517    if (exit $ac_status) && test -s out/conftest2.$ac_objext
21518    then
21519      # The compiler can only warn and ignore the option if not recognized
21520      # So say no if there are warnings
21521      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21522      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21523      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21524        lt_cv_prog_compiler_c_o_F77=yes
21525      fi
21526    fi
21527    chmod u+w . 2>&5
21528    $rm conftest*
21529    # SGI C++ compiler will create directory out/ii_files/ for
21530    # template instantiation
21531    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21532    $rm out/* && rmdir out
21533    cd ..
21534    rmdir conftest
21535    $rm conftest*
21536
21537 fi
21538 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21539 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21540
21541
21542 hard_links="nottested"
21543 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21544   # do not overwrite the value of need_locks provided by the user
21545   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21546 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21547   hard_links=yes
21548   $rm conftest*
21549   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21550   touch conftest.a
21551   ln conftest.a conftest.b 2>&5 || hard_links=no
21552   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21553   { echo "$as_me:$LINENO: result: $hard_links" >&5
21554 echo "${ECHO_T}$hard_links" >&6; }
21555   if test "$hard_links" = no; then
21556     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21557 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21558     need_locks=warn
21559   fi
21560 else
21561   need_locks=no
21562 fi
21563
21564 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21565 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21566
21567   runpath_var=
21568   allow_undefined_flag_F77=
21569   enable_shared_with_static_runtimes_F77=no
21570   archive_cmds_F77=
21571   archive_expsym_cmds_F77=
21572   old_archive_From_new_cmds_F77=
21573   old_archive_from_expsyms_cmds_F77=
21574   export_dynamic_flag_spec_F77=
21575   whole_archive_flag_spec_F77=
21576   thread_safe_flag_spec_F77=
21577   hardcode_libdir_flag_spec_F77=
21578   hardcode_libdir_flag_spec_ld_F77=
21579   hardcode_libdir_separator_F77=
21580   hardcode_direct_F77=no
21581   hardcode_minus_L_F77=no
21582   hardcode_shlibpath_var_F77=unsupported
21583   link_all_deplibs_F77=unknown
21584   hardcode_automatic_F77=no
21585   module_cmds_F77=
21586   module_expsym_cmds_F77=
21587   always_export_symbols_F77=no
21588   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21589   # include_expsyms should be a list of space-separated symbols to be *always*
21590   # included in the symbol list
21591   include_expsyms_F77=
21592   # exclude_expsyms can be an extended regexp of symbols to exclude
21593   # it will be wrapped by ` (' and `)$', so one must not match beginning or
21594   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21595   # as well as any symbol that contains `d'.
21596   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21597   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21598   # platforms (ab)use it in PIC code, but their linkers get confused if
21599   # the symbol is explicitly referenced.  Since portable code cannot
21600   # rely on this symbol name, it's probably fine to never include it in
21601   # preloaded symbol tables.
21602   extract_expsyms_cmds=
21603   # Just being paranoid about ensuring that cc_basename is set.
21604   for cc_temp in $compiler""; do
21605   case $cc_temp in
21606     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21607     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21608     \-*) ;;
21609     *) break;;
21610   esac
21611 done
21612 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21613
21614   case $host_os in
21615   cygwin* | mingw* | pw32*)
21616     # FIXME: the MSVC++ port hasn't been tested in a loooong time
21617     # When not using gcc, we currently assume that we are using
21618     # Microsoft Visual C++.
21619     if test "$GCC" != yes; then
21620       with_gnu_ld=no
21621     fi
21622     ;;
21623   interix*)
21624     # we just hope/assume this is gcc and not c89 (= MSVC++)
21625     with_gnu_ld=yes
21626     ;;
21627   openbsd*)
21628     with_gnu_ld=no
21629     ;;
21630   esac
21631
21632   ld_shlibs_F77=yes
21633   if test "$with_gnu_ld" = yes; then
21634     # If archive_cmds runs LD, not CC, wlarc should be empty
21635     wlarc='${wl}'
21636
21637     # Set some defaults for GNU ld with shared library support. These
21638     # are reset later if shared libraries are not supported. Putting them
21639     # here allows them to be overridden if necessary.
21640     runpath_var=LD_RUN_PATH
21641     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21642     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21643     # ancient GNU ld didn't support --whole-archive et. al.
21644     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21645         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21646       else
21647         whole_archive_flag_spec_F77=
21648     fi
21649     supports_anon_versioning=no
21650     case `$LD -v 2>/dev/null` in
21651       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21652       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21653       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21654       *\ 2.11.*) ;; # other 2.11 versions
21655       *) supports_anon_versioning=yes ;;
21656     esac
21657
21658     # See if GNU ld supports shared libraries.
21659     case $host_os in
21660     aix3* | aix4* | aix5*)
21661       # On AIX/PPC, the GNU linker is very broken
21662       if test "$host_cpu" != ia64; then
21663         ld_shlibs_F77=no
21664         cat <<EOF 1>&2
21665
21666 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21667 *** to be unable to reliably create shared libraries on AIX.
21668 *** Therefore, libtool is disabling shared libraries support.  If you
21669 *** really care for shared libraries, you may want to modify your PATH
21670 *** so that a non-GNU linker is found, and then restart.
21671
21672 EOF
21673       fi
21674       ;;
21675
21676     amigaos*)
21677       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)'
21678       hardcode_libdir_flag_spec_F77='-L$libdir'
21679       hardcode_minus_L_F77=yes
21680
21681       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21682       # that the semantics of dynamic libraries on AmigaOS, at least up
21683       # to version 4, is to share data among multiple programs linked
21684       # with the same dynamic library.  Since this doesn't match the
21685       # behavior of shared libraries on other platforms, we can't use
21686       # them.
21687       ld_shlibs_F77=no
21688       ;;
21689
21690     beos*)
21691       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21692         allow_undefined_flag_F77=unsupported
21693         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21694         # support --undefined.  This deserves some investigation.  FIXME
21695         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21696       else
21697         ld_shlibs_F77=no
21698       fi
21699       ;;
21700
21701     cygwin* | mingw* | pw32*)
21702       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21703       # as there is no search path for DLLs.
21704       hardcode_libdir_flag_spec_F77='-L$libdir'
21705       allow_undefined_flag_F77=unsupported
21706       always_export_symbols_F77=no
21707       enable_shared_with_static_runtimes_F77=yes
21708       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21709
21710       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21711         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21712         # If the export-symbols file already is a .def file (1st line
21713         # is EXPORTS), use it as is; otherwise, prepend...
21714         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21715           cp $export_symbols $output_objdir/$soname.def;
21716         else
21717           echo EXPORTS > $output_objdir/$soname.def;
21718           cat $export_symbols >> $output_objdir/$soname.def;
21719         fi~
21720         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21721       else
21722         ld_shlibs_F77=no
21723       fi
21724       ;;
21725
21726     interix3*)
21727       hardcode_direct_F77=no
21728       hardcode_shlibpath_var_F77=no
21729       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21730       export_dynamic_flag_spec_F77='${wl}-E'
21731       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21732       # Instead, shared libraries are loaded at an image base (0x10000000 by
21733       # default) and relocated if they conflict, which is a slow very memory
21734       # consuming and fragmenting process.  To avoid this, we pick a random,
21735       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21736       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
21737       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'
21738       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'
21739       ;;
21740
21741     linux*)
21742       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21743         tmp_addflag=
21744         case $cc_basename,$host_cpu in
21745         pgcc*)                          # Portland Group C compiler
21746           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'
21747           tmp_addflag=' $pic_flag'
21748           ;;
21749         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
21750           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'
21751           tmp_addflag=' $pic_flag -Mnomain' ;;
21752         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
21753           tmp_addflag=' -i_dynamic' ;;
21754         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
21755           tmp_addflag=' -i_dynamic -nofor_main' ;;
21756         ifc* | ifort*)                  # Intel Fortran compiler
21757           tmp_addflag=' -nofor_main' ;;
21758         esac
21759         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21760
21761         if test $supports_anon_versioning = yes; then
21762           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21763   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21764   $echo "local: *; };" >> $output_objdir/$libname.ver~
21765           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21766         fi
21767       else
21768         ld_shlibs_F77=no
21769       fi
21770       ;;
21771
21772     netbsd*)
21773       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21774         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21775         wlarc=
21776       else
21777         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21778         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21779       fi
21780       ;;
21781
21782     solaris*)
21783       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21784         ld_shlibs_F77=no
21785         cat <<EOF 1>&2
21786
21787 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21788 *** create shared libraries on Solaris systems.  Therefore, libtool
21789 *** is disabling shared libraries support.  We urge you to upgrade GNU
21790 *** binutils to release 2.9.1 or newer.  Another option is to modify
21791 *** your PATH or compiler configuration so that the native linker is
21792 *** used, and then restart.
21793
21794 EOF
21795       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21796         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21797         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21798       else
21799         ld_shlibs_F77=no
21800       fi
21801       ;;
21802
21803     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21804       case `$LD -v 2>&1` in
21805         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21806         ld_shlibs_F77=no
21807         cat <<_LT_EOF 1>&2
21808
21809 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21810 *** reliably create shared libraries on SCO systems.  Therefore, libtool
21811 *** is disabling shared libraries support.  We urge you to upgrade GNU
21812 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
21813 *** your PATH or compiler configuration so that the native linker is
21814 *** used, and then restart.
21815
21816 _LT_EOF
21817         ;;
21818         *)
21819           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21820             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21821             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21822             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21823           else
21824             ld_shlibs_F77=no
21825           fi
21826         ;;
21827       esac
21828       ;;
21829
21830     sunos4*)
21831       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21832       wlarc=
21833       hardcode_direct_F77=yes
21834       hardcode_shlibpath_var_F77=no
21835       ;;
21836
21837     *)
21838       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21839         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21840         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21841       else
21842         ld_shlibs_F77=no
21843       fi
21844       ;;
21845     esac
21846
21847     if test "$ld_shlibs_F77" = no; then
21848       runpath_var=
21849       hardcode_libdir_flag_spec_F77=
21850       export_dynamic_flag_spec_F77=
21851       whole_archive_flag_spec_F77=
21852     fi
21853   else
21854     # PORTME fill in a description of your system's linker (not GNU ld)
21855     case $host_os in
21856     aix3*)
21857       allow_undefined_flag_F77=unsupported
21858       always_export_symbols_F77=yes
21859       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'
21860       # Note: this linker hardcodes the directories in LIBPATH if there
21861       # are no directories specified by -L.
21862       hardcode_minus_L_F77=yes
21863       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
21864         # Neither direct hardcoding nor static linking is supported with a
21865         # broken collect2.
21866         hardcode_direct_F77=unsupported
21867       fi
21868       ;;
21869
21870     aix4* | aix5*)
21871       if test "$host_cpu" = ia64; then
21872         # On IA64, the linker does run time linking by default, so we don't
21873         # have to do anything special.
21874         aix_use_runtimelinking=no
21875         exp_sym_flag='-Bexport'
21876         no_entry_flag=""
21877       else
21878         # If we're using GNU nm, then we don't want the "-C" option.
21879         # -C means demangle to AIX nm, but means don't demangle with GNU nm
21880         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21881           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'
21882         else
21883           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'
21884         fi
21885         aix_use_runtimelinking=no
21886
21887         # Test if we are trying to use run time linking or normal
21888         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21889         # need to do runtime linking.
21890         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21891           for ld_flag in $LDFLAGS; do
21892           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21893             aix_use_runtimelinking=yes
21894             break
21895           fi
21896           done
21897           ;;
21898         esac
21899
21900         exp_sym_flag='-bexport'
21901         no_entry_flag='-bnoentry'
21902       fi
21903
21904       # When large executables or shared objects are built, AIX ld can
21905       # have problems creating the table of contents.  If linking a library
21906       # or program results in "error TOC overflow" add -mminimal-toc to
21907       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
21908       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21909
21910       archive_cmds_F77=''
21911       hardcode_direct_F77=yes
21912       hardcode_libdir_separator_F77=':'
21913       link_all_deplibs_F77=yes
21914
21915       if test "$GCC" = yes; then
21916         case $host_os in aix4.[012]|aix4.[012].*)
21917         # We only want to do this on AIX 4.2 and lower, the check
21918         # below for broken collect2 doesn't work under 4.3+
21919           collect2name=`${CC} -print-prog-name=collect2`
21920           if test -f "$collect2name" && \
21921            strings "$collect2name" | grep resolve_lib_name >/dev/null
21922           then
21923           # We have reworked collect2
21924           hardcode_direct_F77=yes
21925           else
21926           # We have old collect2
21927           hardcode_direct_F77=unsupported
21928           # It fails to find uninstalled libraries when the uninstalled
21929           # path is not listed in the libpath.  Setting hardcode_minus_L
21930           # to unsupported forces relinking
21931           hardcode_minus_L_F77=yes
21932           hardcode_libdir_flag_spec_F77='-L$libdir'
21933           hardcode_libdir_separator_F77=
21934           fi
21935           ;;
21936         esac
21937         shared_flag='-shared'
21938         if test "$aix_use_runtimelinking" = yes; then
21939           shared_flag="$shared_flag "'${wl}-G'
21940         fi
21941       else
21942         # not using gcc
21943         if test "$host_cpu" = ia64; then
21944         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21945         # chokes on -Wl,-G. The following line is correct:
21946           shared_flag='-G'
21947         else
21948           if test "$aix_use_runtimelinking" = yes; then
21949             shared_flag='${wl}-G'
21950           else
21951             shared_flag='${wl}-bM:SRE'
21952           fi
21953         fi
21954       fi
21955
21956       # It seems that -bexpall does not export symbols beginning with
21957       # underscore (_), so it is better to generate a list of symbols to export.
21958       always_export_symbols_F77=yes
21959       if test "$aix_use_runtimelinking" = yes; then
21960         # Warning - without using the other runtime loading flags (-brtl),
21961         # -berok will link without error, but may produce a broken library.
21962         allow_undefined_flag_F77='-berok'
21963        # Determine the default libpath from the value encoded in an empty executable.
21964        cat >conftest.$ac_ext <<_ACEOF
21965       program main
21966
21967       end
21968 _ACEOF
21969 rm -f conftest.$ac_objext conftest$ac_exeext
21970 if { (ac_try="$ac_link"
21971 case "(($ac_try" in
21972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21973   *) ac_try_echo=$ac_try;;
21974 esac
21975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21976   (eval "$ac_link") 2>conftest.er1
21977   ac_status=$?
21978   grep -v '^ *+' conftest.er1 >conftest.err
21979   rm -f conftest.er1
21980   cat conftest.err >&5
21981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21982   (exit $ac_status); } &&
21983          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21984   { (case "(($ac_try" in
21985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21986   *) ac_try_echo=$ac_try;;
21987 esac
21988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21989   (eval "$ac_try") 2>&5
21990   ac_status=$?
21991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21992   (exit $ac_status); }; } &&
21993          { ac_try='test -s conftest$ac_exeext'
21994   { (case "(($ac_try" in
21995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21996   *) ac_try_echo=$ac_try;;
21997 esac
21998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21999   (eval "$ac_try") 2>&5
22000   ac_status=$?
22001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22002   (exit $ac_status); }; }; then
22003
22004 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22005 }'`
22006 # Check for a 64-bit object if we didn't find anything.
22007 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; }
22008 }'`; fi
22009 else
22010   echo "$as_me: failed program was:" >&5
22011 sed 's/^/| /' conftest.$ac_ext >&5
22012
22013
22014 fi
22015
22016 rm -f core conftest.err conftest.$ac_objext \
22017       conftest$ac_exeext conftest.$ac_ext
22018 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22019
22020        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22021         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"
22022        else
22023         if test "$host_cpu" = ia64; then
22024           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22025           allow_undefined_flag_F77="-z nodefs"
22026           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"
22027         else
22028          # Determine the default libpath from the value encoded in an empty executable.
22029          cat >conftest.$ac_ext <<_ACEOF
22030       program main
22031
22032       end
22033 _ACEOF
22034 rm -f conftest.$ac_objext conftest$ac_exeext
22035 if { (ac_try="$ac_link"
22036 case "(($ac_try" in
22037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22038   *) ac_try_echo=$ac_try;;
22039 esac
22040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22041   (eval "$ac_link") 2>conftest.er1
22042   ac_status=$?
22043   grep -v '^ *+' conftest.er1 >conftest.err
22044   rm -f conftest.er1
22045   cat conftest.err >&5
22046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22047   (exit $ac_status); } &&
22048          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22049   { (case "(($ac_try" in
22050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22051   *) ac_try_echo=$ac_try;;
22052 esac
22053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22054   (eval "$ac_try") 2>&5
22055   ac_status=$?
22056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22057   (exit $ac_status); }; } &&
22058          { ac_try='test -s conftest$ac_exeext'
22059   { (case "(($ac_try" in
22060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22061   *) ac_try_echo=$ac_try;;
22062 esac
22063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22064   (eval "$ac_try") 2>&5
22065   ac_status=$?
22066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22067   (exit $ac_status); }; }; then
22068
22069 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22070 }'`
22071 # Check for a 64-bit object if we didn't find anything.
22072 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; }
22073 }'`; fi
22074 else
22075   echo "$as_me: failed program was:" >&5
22076 sed 's/^/| /' conftest.$ac_ext >&5
22077
22078
22079 fi
22080
22081 rm -f core conftest.err conftest.$ac_objext \
22082       conftest$ac_exeext conftest.$ac_ext
22083 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22084
22085          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22086           # Warning - without using the other run time loading flags,
22087           # -berok will link without error, but may produce a broken library.
22088           no_undefined_flag_F77=' ${wl}-bernotok'
22089           allow_undefined_flag_F77=' ${wl}-berok'
22090           # Exported symbols can be pulled into shared objects from archives
22091           whole_archive_flag_spec_F77='$convenience'
22092           archive_cmds_need_lc_F77=yes
22093           # This is similar to how AIX traditionally builds its shared libraries.
22094           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'
22095         fi
22096       fi
22097       ;;
22098
22099     amigaos*)
22100       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)'
22101       hardcode_libdir_flag_spec_F77='-L$libdir'
22102       hardcode_minus_L_F77=yes
22103       # see comment about different semantics on the GNU ld section
22104       ld_shlibs_F77=no
22105       ;;
22106
22107     bsdi[45]*)
22108       export_dynamic_flag_spec_F77=-rdynamic
22109       ;;
22110
22111     cygwin* | mingw* | pw32*)
22112       # When not using gcc, we currently assume that we are using
22113       # Microsoft Visual C++.
22114       # hardcode_libdir_flag_spec is actually meaningless, as there is
22115       # no search path for DLLs.
22116       hardcode_libdir_flag_spec_F77=' '
22117       allow_undefined_flag_F77=unsupported
22118       # Tell ltmain to make .lib files, not .a files.
22119       libext=lib
22120       # Tell ltmain to make .dll files, not .so files.
22121       shrext_cmds=".dll"
22122       # FIXME: Setting linknames here is a bad hack.
22123       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22124       # The linker will automatically build a .lib file if we build a DLL.
22125       old_archive_From_new_cmds_F77='true'
22126       # FIXME: Should let the user specify the lib program.
22127       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22128       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22129       enable_shared_with_static_runtimes_F77=yes
22130       ;;
22131
22132     darwin* | rhapsody*)
22133       case $host_os in
22134         rhapsody* | darwin1.[012])
22135          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22136          ;;
22137        *) # Darwin 1.3 on
22138          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22139            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22140          else
22141            case ${MACOSX_DEPLOYMENT_TARGET} in
22142              10.[012])
22143                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22144                ;;
22145              10.*)
22146                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22147                ;;
22148            esac
22149          fi
22150          ;;
22151       esac
22152       archive_cmds_need_lc_F77=no
22153       hardcode_direct_F77=no
22154       hardcode_automatic_F77=yes
22155       hardcode_shlibpath_var_F77=unsupported
22156       whole_archive_flag_spec_F77=''
22157       link_all_deplibs_F77=yes
22158     if test "$GCC" = yes ; then
22159         output_verbose_link_cmd='echo'
22160         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22161       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22162       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22163       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}'
22164       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}'
22165     else
22166       case $cc_basename in
22167         xlc*)
22168          output_verbose_link_cmd='echo'
22169          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22170          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22171           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22172          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}'
22173           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}'
22174           ;;
22175        *)
22176          ld_shlibs_F77=no
22177           ;;
22178       esac
22179     fi
22180       ;;
22181
22182     dgux*)
22183       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22184       hardcode_libdir_flag_spec_F77='-L$libdir'
22185       hardcode_shlibpath_var_F77=no
22186       ;;
22187
22188     freebsd1*)
22189       ld_shlibs_F77=no
22190       ;;
22191
22192     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22193     # support.  Future versions do this automatically, but an explicit c++rt0.o
22194     # does not break anything, and helps significantly (at the cost of a little
22195     # extra space).
22196     freebsd2.2*)
22197       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22198       hardcode_libdir_flag_spec_F77='-R$libdir'
22199       hardcode_direct_F77=yes
22200       hardcode_shlibpath_var_F77=no
22201       ;;
22202
22203     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22204     freebsd2*)
22205       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22206       hardcode_direct_F77=yes
22207       hardcode_minus_L_F77=yes
22208       hardcode_shlibpath_var_F77=no
22209       ;;
22210
22211     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22212     freebsd* | kfreebsd*-gnu | dragonfly*)
22213       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22214       hardcode_libdir_flag_spec_F77='-R$libdir'
22215       hardcode_direct_F77=yes
22216       hardcode_shlibpath_var_F77=no
22217       ;;
22218
22219     hpux9*)
22220       if test "$GCC" = yes; then
22221         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'
22222       else
22223         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'
22224       fi
22225       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22226       hardcode_libdir_separator_F77=:
22227       hardcode_direct_F77=yes
22228
22229       # hardcode_minus_L: Not really in the search PATH,
22230       # but as the default location of the library.
22231       hardcode_minus_L_F77=yes
22232       export_dynamic_flag_spec_F77='${wl}-E'
22233       ;;
22234
22235     hpux10*)
22236       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22237         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22238       else
22239         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22240       fi
22241       if test "$with_gnu_ld" = no; then
22242         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22243         hardcode_libdir_separator_F77=:
22244
22245         hardcode_direct_F77=yes
22246         export_dynamic_flag_spec_F77='${wl}-E'
22247
22248         # hardcode_minus_L: Not really in the search PATH,
22249         # but as the default location of the library.
22250         hardcode_minus_L_F77=yes
22251       fi
22252       ;;
22253
22254     hpux11*)
22255       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22256         case $host_cpu in
22257         hppa*64*)
22258           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22259           ;;
22260         ia64*)
22261           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22262           ;;
22263         *)
22264           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22265           ;;
22266         esac
22267       else
22268         case $host_cpu in
22269         hppa*64*)
22270           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22271           ;;
22272         ia64*)
22273           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22274           ;;
22275         *)
22276           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22277           ;;
22278         esac
22279       fi
22280       if test "$with_gnu_ld" = no; then
22281         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22282         hardcode_libdir_separator_F77=:
22283
22284         case $host_cpu in
22285         hppa*64*|ia64*)
22286           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22287           hardcode_direct_F77=no
22288           hardcode_shlibpath_var_F77=no
22289           ;;
22290         *)
22291           hardcode_direct_F77=yes
22292           export_dynamic_flag_spec_F77='${wl}-E'
22293
22294           # hardcode_minus_L: Not really in the search PATH,
22295           # but as the default location of the library.
22296           hardcode_minus_L_F77=yes
22297           ;;
22298         esac
22299       fi
22300       ;;
22301
22302     irix5* | irix6* | nonstopux*)
22303       if test "$GCC" = yes; then
22304         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'
22305       else
22306         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'
22307         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22308       fi
22309       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22310       hardcode_libdir_separator_F77=:
22311       link_all_deplibs_F77=yes
22312       ;;
22313
22314     netbsd*)
22315       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22316         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
22317       else
22318         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
22319       fi
22320       hardcode_libdir_flag_spec_F77='-R$libdir'
22321       hardcode_direct_F77=yes
22322       hardcode_shlibpath_var_F77=no
22323       ;;
22324
22325     newsos6)
22326       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22327       hardcode_direct_F77=yes
22328       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22329       hardcode_libdir_separator_F77=:
22330       hardcode_shlibpath_var_F77=no
22331       ;;
22332
22333     openbsd*)
22334       hardcode_direct_F77=yes
22335       hardcode_shlibpath_var_F77=no
22336       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22337         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22338         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22339         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22340         export_dynamic_flag_spec_F77='${wl}-E'
22341       else
22342        case $host_os in
22343          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22344            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22345            hardcode_libdir_flag_spec_F77='-R$libdir'
22346            ;;
22347          *)
22348            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22349            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22350            ;;
22351        esac
22352       fi
22353       ;;
22354
22355     os2*)
22356       hardcode_libdir_flag_spec_F77='-L$libdir'
22357       hardcode_minus_L_F77=yes
22358       allow_undefined_flag_F77=unsupported
22359       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'
22360       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22361       ;;
22362
22363     osf3*)
22364       if test "$GCC" = yes; then
22365         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22366         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'
22367       else
22368         allow_undefined_flag_F77=' -expect_unresolved \*'
22369         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'
22370       fi
22371       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22372       hardcode_libdir_separator_F77=:
22373       ;;
22374
22375     osf4* | osf5*)      # as osf3* with the addition of -msym flag
22376       if test "$GCC" = yes; then
22377         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22378         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'
22379         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22380       else
22381         allow_undefined_flag_F77=' -expect_unresolved \*'
22382         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'
22383         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~
22384         $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'
22385
22386         # Both c and cxx compiler support -rpath directly
22387         hardcode_libdir_flag_spec_F77='-rpath $libdir'
22388       fi
22389       hardcode_libdir_separator_F77=:
22390       ;;
22391
22392     solaris*)
22393       no_undefined_flag_F77=' -z text'
22394       if test "$GCC" = yes; then
22395         wlarc='${wl}'
22396         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22397         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22398           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22399       else
22400         wlarc=''
22401         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22402         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22403         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22404       fi
22405       hardcode_libdir_flag_spec_F77='-R$libdir'
22406       hardcode_shlibpath_var_F77=no
22407       case $host_os in
22408       solaris2.[0-5] | solaris2.[0-5].*) ;;
22409       *)
22410         # The compiler driver will combine linker options so we
22411         # cannot just pass the convience library names through
22412         # without $wl, iff we do not link with $LD.
22413         # Luckily, gcc supports the same syntax we need for Sun Studio.
22414         # Supported since Solaris 2.6 (maybe 2.5.1?)
22415         case $wlarc in
22416         '')
22417           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22418         *)
22419           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' ;;
22420         esac ;;
22421       esac
22422       link_all_deplibs_F77=yes
22423       ;;
22424
22425     sunos4*)
22426       if test "x$host_vendor" = xsequent; then
22427         # Use $CC to link under sequent, because it throws in some extra .o
22428         # files that make .init and .fini sections work.
22429         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22430       else
22431         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22432       fi
22433       hardcode_libdir_flag_spec_F77='-L$libdir'
22434       hardcode_direct_F77=yes
22435       hardcode_minus_L_F77=yes
22436       hardcode_shlibpath_var_F77=no
22437       ;;
22438
22439     sysv4)
22440       case $host_vendor in
22441         sni)
22442           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22443           hardcode_direct_F77=yes # is this really true???
22444         ;;
22445         siemens)
22446           ## LD is ld it makes a PLAMLIB
22447           ## CC just makes a GrossModule.
22448           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22449           reload_cmds_F77='$CC -r -o $output$reload_objs'
22450           hardcode_direct_F77=no
22451         ;;
22452         motorola)
22453           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22454           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22455         ;;
22456       esac
22457       runpath_var='LD_RUN_PATH'
22458       hardcode_shlibpath_var_F77=no
22459       ;;
22460
22461     sysv4.3*)
22462       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22463       hardcode_shlibpath_var_F77=no
22464       export_dynamic_flag_spec_F77='-Bexport'
22465       ;;
22466
22467     sysv4*MP*)
22468       if test -d /usr/nec; then
22469         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22470         hardcode_shlibpath_var_F77=no
22471         runpath_var=LD_RUN_PATH
22472         hardcode_runpath_var=yes
22473         ld_shlibs_F77=yes
22474       fi
22475       ;;
22476
22477     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22478       no_undefined_flag_F77='${wl}-z,text'
22479       archive_cmds_need_lc_F77=no
22480       hardcode_shlibpath_var_F77=no
22481       runpath_var='LD_RUN_PATH'
22482
22483       if test "$GCC" = yes; then
22484         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22485         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22486       else
22487         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22488         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22489       fi
22490       ;;
22491
22492     sysv5* | sco3.2v5* | sco5v6*)
22493       # Note: We can NOT use -z defs as we might desire, because we do not
22494       # link with -lc, and that would cause any symbols used from libc to
22495       # always be unresolved, which means just about no library would
22496       # ever link correctly.  If we're not using GNU ld we use -z text
22497       # though, which does catch some bad symbols but isn't as heavy-handed
22498       # as -z defs.
22499       no_undefined_flag_F77='${wl}-z,text'
22500       allow_undefined_flag_F77='${wl}-z,nodefs'
22501       archive_cmds_need_lc_F77=no
22502       hardcode_shlibpath_var_F77=no
22503       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22504       hardcode_libdir_separator_F77=':'
22505       link_all_deplibs_F77=yes
22506       export_dynamic_flag_spec_F77='${wl}-Bexport'
22507       runpath_var='LD_RUN_PATH'
22508
22509       if test "$GCC" = yes; then
22510         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22511         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22512       else
22513         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22514         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22515       fi
22516       ;;
22517
22518     uts4*)
22519       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22520       hardcode_libdir_flag_spec_F77='-L$libdir'
22521       hardcode_shlibpath_var_F77=no
22522       ;;
22523
22524     *)
22525       ld_shlibs_F77=no
22526       ;;
22527     esac
22528   fi
22529
22530 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22531 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22532 test "$ld_shlibs_F77" = no && can_build_shared=no
22533
22534 #
22535 # Do we need to explicitly link libc?
22536 #
22537 case "x$archive_cmds_need_lc_F77" in
22538 x|xyes)
22539   # Assume -lc should be added
22540   archive_cmds_need_lc_F77=yes
22541
22542   if test "$enable_shared" = yes && test "$GCC" = yes; then
22543     case $archive_cmds_F77 in
22544     *'~'*)
22545       # FIXME: we may have to deal with multi-command sequences.
22546       ;;
22547     '$CC '*)
22548       # Test whether the compiler implicitly links with -lc since on some
22549       # systems, -lgcc has to come before -lc. If gcc already passes -lc
22550       # to ld, don't add -lc before -lgcc.
22551       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22552 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22553       $rm conftest*
22554       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22555
22556       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22557   (eval $ac_compile) 2>&5
22558   ac_status=$?
22559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22560   (exit $ac_status); } 2>conftest.err; then
22561         soname=conftest
22562         lib=conftest
22563         libobjs=conftest.$ac_objext
22564         deplibs=
22565         wl=$lt_prog_compiler_wl_F77
22566         pic_flag=$lt_prog_compiler_pic_F77
22567         compiler_flags=-v
22568         linker_flags=-v
22569         verstring=
22570         output_objdir=.
22571         libname=conftest
22572         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22573         allow_undefined_flag_F77=
22574         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22575   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22576   ac_status=$?
22577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22578   (exit $ac_status); }
22579         then
22580           archive_cmds_need_lc_F77=no
22581         else
22582           archive_cmds_need_lc_F77=yes
22583         fi
22584         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22585       else
22586         cat conftest.err 1>&5
22587       fi
22588       $rm conftest*
22589       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22590 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22591       ;;
22592     esac
22593   fi
22594   ;;
22595 esac
22596
22597 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22598 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22599 library_names_spec=
22600 libname_spec='lib$name'
22601 soname_spec=
22602 shrext_cmds=".so"
22603 postinstall_cmds=
22604 postuninstall_cmds=
22605 finish_cmds=
22606 finish_eval=
22607 shlibpath_var=
22608 shlibpath_overrides_runpath=unknown
22609 version_type=none
22610 dynamic_linker="$host_os ld.so"
22611 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22612 if test "$GCC" = yes; then
22613   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22614   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22615     # if the path contains ";" then we assume it to be the separator
22616     # otherwise default to the standard path separator (i.e. ":") - it is
22617     # assumed that no part of a normal pathname contains ";" but that should
22618     # okay in the real world where ";" in dirpaths is itself problematic.
22619     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22620   else
22621     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22622   fi
22623 else
22624   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22625 fi
22626 need_lib_prefix=unknown
22627 hardcode_into_libs=no
22628
22629 # when you set need_version to no, make sure it does not cause -set_version
22630 # flags to be left without arguments
22631 need_version=unknown
22632
22633 case $host_os in
22634 aix3*)
22635   version_type=linux
22636   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22637   shlibpath_var=LIBPATH
22638
22639   # AIX 3 has no versioning support, so we append a major version to the name.
22640   soname_spec='${libname}${release}${shared_ext}$major'
22641   ;;
22642
22643 aix4* | aix5*)
22644   version_type=linux
22645   need_lib_prefix=no
22646   need_version=no
22647   hardcode_into_libs=yes
22648   if test "$host_cpu" = ia64; then
22649     # AIX 5 supports IA64
22650     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22651     shlibpath_var=LD_LIBRARY_PATH
22652   else
22653     # With GCC up to 2.95.x, collect2 would create an import file
22654     # for dependence libraries.  The import file would start with
22655     # the line `#! .'.  This would cause the generated library to
22656     # depend on `.', always an invalid library.  This was fixed in
22657     # development snapshots of GCC prior to 3.0.
22658     case $host_os in
22659       aix4 | aix4.[01] | aix4.[01].*)
22660       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22661            echo ' yes '
22662            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22663         :
22664       else
22665         can_build_shared=no
22666       fi
22667       ;;
22668     esac
22669     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22670     # soname into executable. Probably we can add versioning support to
22671     # collect2, so additional links can be useful in future.
22672     if test "$aix_use_runtimelinking" = yes; then
22673       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22674       # instead of lib<name>.a to let people know that these are not
22675       # typical AIX shared libraries.
22676       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22677     else
22678       # We preserve .a as extension for shared libraries through AIX4.2
22679       # and later when we are not doing run time linking.
22680       library_names_spec='${libname}${release}.a $libname.a'
22681       soname_spec='${libname}${release}${shared_ext}$major'
22682     fi
22683     shlibpath_var=LIBPATH
22684   fi
22685   ;;
22686
22687 amigaos*)
22688   library_names_spec='$libname.ixlibrary $libname.a'
22689   # Create ${libname}_ixlibrary.a entries in /sys/libs.
22690   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'
22691   ;;
22692
22693 beos*)
22694   library_names_spec='${libname}${shared_ext}'
22695   dynamic_linker="$host_os ld.so"
22696   shlibpath_var=LIBRARY_PATH
22697   ;;
22698
22699 bsdi[45]*)
22700   version_type=linux
22701   need_version=no
22702   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22703   soname_spec='${libname}${release}${shared_ext}$major'
22704   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22705   shlibpath_var=LD_LIBRARY_PATH
22706   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22707   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22708   # the default ld.so.conf also contains /usr/contrib/lib and
22709   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22710   # libtool to hard-code these into programs
22711   ;;
22712
22713 cygwin* | mingw* | pw32*)
22714   version_type=windows
22715   shrext_cmds=".dll"
22716   need_version=no
22717   need_lib_prefix=no
22718
22719   case $GCC,$host_os in
22720   yes,cygwin* | yes,mingw* | yes,pw32*)
22721     library_names_spec='$libname.dll.a'
22722     # DLL is installed to $(libdir)/../bin by postinstall_cmds
22723     postinstall_cmds='base_file=`basename \${file}`~
22724       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22725       dldir=$destdir/`dirname \$dlpath`~
22726       test -d \$dldir || mkdir -p \$dldir~
22727       $install_prog $dir/$dlname \$dldir/$dlname~
22728       chmod a+x \$dldir/$dlname'
22729     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22730       dlpath=$dir/\$dldll~
22731        $rm \$dlpath'
22732     shlibpath_overrides_runpath=yes
22733
22734     case $host_os in
22735     cygwin*)
22736       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22737       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22738       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22739       ;;
22740     mingw*)
22741       # MinGW DLLs use traditional 'lib' prefix
22742       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22743       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22744       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22745         # It is most probably a Windows format PATH printed by
22746         # mingw gcc, but we are running on Cygwin. Gcc prints its search
22747         # path with ; separators, and with drive letters. We can handle the
22748         # drive letters (cygwin fileutils understands them), so leave them,
22749         # especially as we might pass files found there to a mingw objdump,
22750         # which wouldn't understand a cygwinified path. Ahh.
22751         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22752       else
22753         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22754       fi
22755       ;;
22756     pw32*)
22757       # pw32 DLLs use 'pw' prefix rather than 'lib'
22758       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22759       ;;
22760     esac
22761     ;;
22762
22763   *)
22764     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22765     ;;
22766   esac
22767   dynamic_linker='Win32 ld.exe'
22768   # FIXME: first we should search . and the directory the executable is in
22769   shlibpath_var=PATH
22770   ;;
22771
22772 darwin* | rhapsody*)
22773   dynamic_linker="$host_os dyld"
22774   version_type=darwin
22775   need_lib_prefix=no
22776   need_version=no
22777   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22778   soname_spec='${libname}${release}${major}$shared_ext'
22779   shlibpath_overrides_runpath=yes
22780   shlibpath_var=DYLD_LIBRARY_PATH
22781   shrext_cmds='.dylib'
22782   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22783   if test "$GCC" = yes; then
22784     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"`
22785   else
22786     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22787   fi
22788   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22789   ;;
22790
22791 dgux*)
22792   version_type=linux
22793   need_lib_prefix=no
22794   need_version=no
22795   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22796   soname_spec='${libname}${release}${shared_ext}$major'
22797   shlibpath_var=LD_LIBRARY_PATH
22798   ;;
22799
22800 freebsd1*)
22801   dynamic_linker=no
22802   ;;
22803
22804 kfreebsd*-gnu)
22805   version_type=linux
22806   need_lib_prefix=no
22807   need_version=no
22808   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22809   soname_spec='${libname}${release}${shared_ext}$major'
22810   shlibpath_var=LD_LIBRARY_PATH
22811   shlibpath_overrides_runpath=no
22812   hardcode_into_libs=yes
22813   dynamic_linker='GNU ld.so'
22814   ;;
22815
22816 freebsd* | dragonfly*)
22817   # DragonFly does not have aout.  When/if they implement a new
22818   # versioning mechanism, adjust this.
22819   if test -x /usr/bin/objformat; then
22820     objformat=`/usr/bin/objformat`
22821   else
22822     case $host_os in
22823     freebsd[123]*) objformat=aout ;;
22824     *) objformat=elf ;;
22825     esac
22826   fi
22827   version_type=freebsd-$objformat
22828   case $version_type in
22829     freebsd-elf*)
22830       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22831       need_version=no
22832       need_lib_prefix=no
22833       ;;
22834     freebsd-*)
22835       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22836       need_version=yes
22837       ;;
22838   esac
22839   shlibpath_var=LD_LIBRARY_PATH
22840   case $host_os in
22841   freebsd2*)
22842     shlibpath_overrides_runpath=yes
22843     ;;
22844   freebsd3.[01]* | freebsdelf3.[01]*)
22845     shlibpath_overrides_runpath=yes
22846     hardcode_into_libs=yes
22847     ;;
22848   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22849   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22850     shlibpath_overrides_runpath=no
22851     hardcode_into_libs=yes
22852     ;;
22853   freebsd*) # from 4.6 on
22854     shlibpath_overrides_runpath=yes
22855     hardcode_into_libs=yes
22856     ;;
22857   esac
22858   ;;
22859
22860 gnu*)
22861   version_type=linux
22862   need_lib_prefix=no
22863   need_version=no
22864   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22865   soname_spec='${libname}${release}${shared_ext}$major'
22866   shlibpath_var=LD_LIBRARY_PATH
22867   hardcode_into_libs=yes
22868   ;;
22869
22870 hpux9* | hpux10* | hpux11*)
22871   # Give a soname corresponding to the major version so that dld.sl refuses to
22872   # link against other versions.
22873   version_type=sunos
22874   need_lib_prefix=no
22875   need_version=no
22876   case $host_cpu in
22877   ia64*)
22878     shrext_cmds='.so'
22879     hardcode_into_libs=yes
22880     dynamic_linker="$host_os dld.so"
22881     shlibpath_var=LD_LIBRARY_PATH
22882     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22883     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22884     soname_spec='${libname}${release}${shared_ext}$major'
22885     if test "X$HPUX_IA64_MODE" = X32; then
22886       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22887     else
22888       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22889     fi
22890     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22891     ;;
22892    hppa*64*)
22893      shrext_cmds='.sl'
22894      hardcode_into_libs=yes
22895      dynamic_linker="$host_os dld.sl"
22896      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22897      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22898      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22899      soname_spec='${libname}${release}${shared_ext}$major'
22900      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22901      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22902      ;;
22903    *)
22904     shrext_cmds='.sl'
22905     dynamic_linker="$host_os dld.sl"
22906     shlibpath_var=SHLIB_PATH
22907     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22908     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22909     soname_spec='${libname}${release}${shared_ext}$major'
22910     ;;
22911   esac
22912   # HP-UX runs *really* slowly unless shared libraries are mode 555.
22913   postinstall_cmds='chmod 555 $lib'
22914   ;;
22915
22916 interix3*)
22917   version_type=linux
22918   need_lib_prefix=no
22919   need_version=no
22920   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22921   soname_spec='${libname}${release}${shared_ext}$major'
22922   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22923   shlibpath_var=LD_LIBRARY_PATH
22924   shlibpath_overrides_runpath=no
22925   hardcode_into_libs=yes
22926   ;;
22927
22928 irix5* | irix6* | nonstopux*)
22929   case $host_os in
22930     nonstopux*) version_type=nonstopux ;;
22931     *)
22932         if test "$lt_cv_prog_gnu_ld" = yes; then
22933                 version_type=linux
22934         else
22935                 version_type=irix
22936         fi ;;
22937   esac
22938   need_lib_prefix=no
22939   need_version=no
22940   soname_spec='${libname}${release}${shared_ext}$major'
22941   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22942   case $host_os in
22943   irix5* | nonstopux*)
22944     libsuff= shlibsuff=
22945     ;;
22946   *)
22947     case $LD in # libtool.m4 will add one of these switches to LD
22948     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22949       libsuff= shlibsuff= libmagic=32-bit;;
22950     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22951       libsuff=32 shlibsuff=N32 libmagic=N32;;
22952     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22953       libsuff=64 shlibsuff=64 libmagic=64-bit;;
22954     *) libsuff= shlibsuff= libmagic=never-match;;
22955     esac
22956     ;;
22957   esac
22958   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22959   shlibpath_overrides_runpath=no
22960   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22961   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22962   hardcode_into_libs=yes
22963   ;;
22964
22965 # No shared lib support for Linux oldld, aout, or coff.
22966 linux*oldld* | linux*aout* | linux*coff*)
22967   dynamic_linker=no
22968   ;;
22969
22970 # This must be Linux ELF.
22971 linux*)
22972   version_type=linux
22973   need_lib_prefix=no
22974   need_version=no
22975   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22976   soname_spec='${libname}${release}${shared_ext}$major'
22977   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22978   shlibpath_var=LD_LIBRARY_PATH
22979   shlibpath_overrides_runpath=no
22980   # This implies no fast_install, which is unacceptable.
22981   # Some rework will be needed to allow for fast_install
22982   # before this can be enabled.
22983   hardcode_into_libs=yes
22984
22985   # Append ld.so.conf contents to the search path
22986   if test -f /etc/ld.so.conf; then
22987     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' ' '`
22988     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22989   fi
22990
22991   # We used to test for /lib/ld.so.1 and disable shared libraries on
22992   # powerpc, because MkLinux only supported shared libraries with the
22993   # GNU dynamic linker.  Since this was broken with cross compilers,
22994   # most powerpc-linux boxes support dynamic linking these days and
22995   # people can always --disable-shared, the test was removed, and we
22996   # assume the GNU/Linux dynamic linker is in use.
22997   dynamic_linker='GNU/Linux ld.so'
22998   ;;
22999
23000 knetbsd*-gnu)
23001   version_type=linux
23002   need_lib_prefix=no
23003   need_version=no
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   shlibpath_var=LD_LIBRARY_PATH
23007   shlibpath_overrides_runpath=no
23008   hardcode_into_libs=yes
23009   dynamic_linker='GNU ld.so'
23010   ;;
23011
23012 netbsd*)
23013   version_type=sunos
23014   need_lib_prefix=no
23015   need_version=no
23016   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23017     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23018     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23019     dynamic_linker='NetBSD (a.out) ld.so'
23020   else
23021     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23022     soname_spec='${libname}${release}${shared_ext}$major'
23023     dynamic_linker='NetBSD ld.elf_so'
23024   fi
23025   shlibpath_var=LD_LIBRARY_PATH
23026   shlibpath_overrides_runpath=yes
23027   hardcode_into_libs=yes
23028   ;;
23029
23030 newsos6)
23031   version_type=linux
23032   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23033   shlibpath_var=LD_LIBRARY_PATH
23034   shlibpath_overrides_runpath=yes
23035   ;;
23036
23037 nto-qnx*)
23038   version_type=linux
23039   need_lib_prefix=no
23040   need_version=no
23041   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23042   soname_spec='${libname}${release}${shared_ext}$major'
23043   shlibpath_var=LD_LIBRARY_PATH
23044   shlibpath_overrides_runpath=yes
23045   ;;
23046
23047 openbsd*)
23048   version_type=sunos
23049   sys_lib_dlsearch_path_spec="/usr/lib"
23050   need_lib_prefix=no
23051   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23052   case $host_os in
23053     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23054     *)                         need_version=no  ;;
23055   esac
23056   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23057   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23058   shlibpath_var=LD_LIBRARY_PATH
23059   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23060     case $host_os in
23061       openbsd2.[89] | openbsd2.[89].*)
23062         shlibpath_overrides_runpath=no
23063         ;;
23064       *)
23065         shlibpath_overrides_runpath=yes
23066         ;;
23067       esac
23068   else
23069     shlibpath_overrides_runpath=yes
23070   fi
23071   ;;
23072
23073 os2*)
23074   libname_spec='$name'
23075   shrext_cmds=".dll"
23076   need_lib_prefix=no
23077   library_names_spec='$libname${shared_ext} $libname.a'
23078   dynamic_linker='OS/2 ld.exe'
23079   shlibpath_var=LIBPATH
23080   ;;
23081
23082 osf3* | osf4* | osf5*)
23083   version_type=osf
23084   need_lib_prefix=no
23085   need_version=no
23086   soname_spec='${libname}${release}${shared_ext}$major'
23087   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23088   shlibpath_var=LD_LIBRARY_PATH
23089   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23090   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23091   ;;
23092
23093 solaris*)
23094   version_type=linux
23095   need_lib_prefix=no
23096   need_version=no
23097   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23098   soname_spec='${libname}${release}${shared_ext}$major'
23099   shlibpath_var=LD_LIBRARY_PATH
23100   shlibpath_overrides_runpath=yes
23101   hardcode_into_libs=yes
23102   # ldd complains unless libraries are executable
23103   postinstall_cmds='chmod +x $lib'
23104   ;;
23105
23106 sunos4*)
23107   version_type=sunos
23108   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23109   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23110   shlibpath_var=LD_LIBRARY_PATH
23111   shlibpath_overrides_runpath=yes
23112   if test "$with_gnu_ld" = yes; then
23113     need_lib_prefix=no
23114   fi
23115   need_version=yes
23116   ;;
23117
23118 sysv4 | sysv4.3*)
23119   version_type=linux
23120   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23121   soname_spec='${libname}${release}${shared_ext}$major'
23122   shlibpath_var=LD_LIBRARY_PATH
23123   case $host_vendor in
23124     sni)
23125       shlibpath_overrides_runpath=no
23126       need_lib_prefix=no
23127       export_dynamic_flag_spec='${wl}-Blargedynsym'
23128       runpath_var=LD_RUN_PATH
23129       ;;
23130     siemens)
23131       need_lib_prefix=no
23132       ;;
23133     motorola)
23134       need_lib_prefix=no
23135       need_version=no
23136       shlibpath_overrides_runpath=no
23137       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23138       ;;
23139   esac
23140   ;;
23141
23142 sysv4*MP*)
23143   if test -d /usr/nec ;then
23144     version_type=linux
23145     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23146     soname_spec='$libname${shared_ext}.$major'
23147     shlibpath_var=LD_LIBRARY_PATH
23148   fi
23149   ;;
23150
23151 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23152   version_type=freebsd-elf
23153   need_lib_prefix=no
23154   need_version=no
23155   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23156   soname_spec='${libname}${release}${shared_ext}$major'
23157   shlibpath_var=LD_LIBRARY_PATH
23158   hardcode_into_libs=yes
23159   if test "$with_gnu_ld" = yes; then
23160     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23161     shlibpath_overrides_runpath=no
23162   else
23163     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23164     shlibpath_overrides_runpath=yes
23165     case $host_os in
23166       sco3.2v5*)
23167         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23168         ;;
23169     esac
23170   fi
23171   sys_lib_dlsearch_path_spec='/usr/lib'
23172   ;;
23173
23174 uts4*)
23175   version_type=linux
23176   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23177   soname_spec='${libname}${release}${shared_ext}$major'
23178   shlibpath_var=LD_LIBRARY_PATH
23179   ;;
23180
23181 *)
23182   dynamic_linker=no
23183   ;;
23184 esac
23185 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23186 echo "${ECHO_T}$dynamic_linker" >&6; }
23187 test "$dynamic_linker" = no && can_build_shared=no
23188
23189 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23190 if test "$GCC" = yes; then
23191   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23192 fi
23193
23194 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23195 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23196 hardcode_action_F77=
23197 if test -n "$hardcode_libdir_flag_spec_F77" || \
23198    test -n "$runpath_var_F77" || \
23199    test "X$hardcode_automatic_F77" = "Xyes" ; then
23200
23201   # We can hardcode non-existant directories.
23202   if test "$hardcode_direct_F77" != no &&
23203      # If the only mechanism to avoid hardcoding is shlibpath_var, we
23204      # have to relink, otherwise we might link with an installed library
23205      # when we should be linking with a yet-to-be-installed one
23206      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23207      test "$hardcode_minus_L_F77" != no; then
23208     # Linking always hardcodes the temporary library directory.
23209     hardcode_action_F77=relink
23210   else
23211     # We can link without hardcoding, and we can hardcode nonexisting dirs.
23212     hardcode_action_F77=immediate
23213   fi
23214 else
23215   # We cannot hardcode anything, or else we can only hardcode existing
23216   # directories.
23217   hardcode_action_F77=unsupported
23218 fi
23219 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23220 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23221
23222 if test "$hardcode_action_F77" = relink; then
23223   # Fast installation is not supported
23224   enable_fast_install=no
23225 elif test "$shlibpath_overrides_runpath" = yes ||
23226      test "$enable_shared" = no; then
23227   # Fast installation is not necessary
23228   enable_fast_install=needless
23229 fi
23230
23231
23232 # The else clause should only fire when bootstrapping the
23233 # libtool distribution, otherwise you forgot to ship ltmain.sh
23234 # with your package, and you will get complaints that there are
23235 # no rules to generate ltmain.sh.
23236 if test -f "$ltmain"; then
23237   # See if we are running on zsh, and set the options which allow our commands through
23238   # without removal of \ escapes.
23239   if test -n "${ZSH_VERSION+set}" ; then
23240     setopt NO_GLOB_SUBST
23241   fi
23242   # Now quote all the things that may contain metacharacters while being
23243   # careful not to overquote the AC_SUBSTed values.  We take copies of the
23244   # variables and quote the copies for generation of the libtool script.
23245   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23246     SED SHELL STRIP \
23247     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23248     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23249     deplibs_check_method reload_flag reload_cmds need_locks \
23250     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23251     lt_cv_sys_global_symbol_to_c_name_address \
23252     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23253     old_postinstall_cmds old_postuninstall_cmds \
23254     compiler_F77 \
23255     CC_F77 \
23256     LD_F77 \
23257     lt_prog_compiler_wl_F77 \
23258     lt_prog_compiler_pic_F77 \
23259     lt_prog_compiler_static_F77 \
23260     lt_prog_compiler_no_builtin_flag_F77 \
23261     export_dynamic_flag_spec_F77 \
23262     thread_safe_flag_spec_F77 \
23263     whole_archive_flag_spec_F77 \
23264     enable_shared_with_static_runtimes_F77 \
23265     old_archive_cmds_F77 \
23266     old_archive_from_new_cmds_F77 \
23267     predep_objects_F77 \
23268     postdep_objects_F77 \
23269     predeps_F77 \
23270     postdeps_F77 \
23271     compiler_lib_search_path_F77 \
23272     archive_cmds_F77 \
23273     archive_expsym_cmds_F77 \
23274     postinstall_cmds_F77 \
23275     postuninstall_cmds_F77 \
23276     old_archive_from_expsyms_cmds_F77 \
23277     allow_undefined_flag_F77 \
23278     no_undefined_flag_F77 \
23279     export_symbols_cmds_F77 \
23280     hardcode_libdir_flag_spec_F77 \
23281     hardcode_libdir_flag_spec_ld_F77 \
23282     hardcode_libdir_separator_F77 \
23283     hardcode_automatic_F77 \
23284     module_cmds_F77 \
23285     module_expsym_cmds_F77 \
23286     lt_cv_prog_compiler_c_o_F77 \
23287     exclude_expsyms_F77 \
23288     include_expsyms_F77; do
23289
23290     case $var in
23291     old_archive_cmds_F77 | \
23292     old_archive_from_new_cmds_F77 | \
23293     archive_cmds_F77 | \
23294     archive_expsym_cmds_F77 | \
23295     module_cmds_F77 | \
23296     module_expsym_cmds_F77 | \
23297     old_archive_from_expsyms_cmds_F77 | \
23298     export_symbols_cmds_F77 | \
23299     extract_expsyms_cmds | reload_cmds | finish_cmds | \
23300     postinstall_cmds | postuninstall_cmds | \
23301     old_postinstall_cmds | old_postuninstall_cmds | \
23302     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23303       # Double-quote double-evaled strings.
23304       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23305       ;;
23306     *)
23307       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23308       ;;
23309     esac
23310   done
23311
23312   case $lt_echo in
23313   *'\$0 --fallback-echo"')
23314     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23315     ;;
23316   esac
23317
23318 cfgfile="$ofile"
23319
23320   cat <<__EOF__ >> "$cfgfile"
23321 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23322
23323 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23324
23325 # Shell to use when invoking shell scripts.
23326 SHELL=$lt_SHELL
23327
23328 # Whether or not to build shared libraries.
23329 build_libtool_libs=$enable_shared
23330
23331 # Whether or not to build static libraries.
23332 build_old_libs=$enable_static
23333
23334 # Whether or not to add -lc for building shared libraries.
23335 build_libtool_need_lc=$archive_cmds_need_lc_F77
23336
23337 # Whether or not to disallow shared libs when runtime libs are static
23338 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23339
23340 # Whether or not to optimize for fast installation.
23341 fast_install=$enable_fast_install
23342
23343 # The host system.
23344 host_alias=$host_alias
23345 host=$host
23346 host_os=$host_os
23347
23348 # The build system.
23349 build_alias=$build_alias
23350 build=$build
23351 build_os=$build_os
23352
23353 # An echo program that does not interpret backslashes.
23354 echo=$lt_echo
23355
23356 # The archiver.
23357 AR=$lt_AR
23358 AR_FLAGS=$lt_AR_FLAGS
23359
23360 # A C compiler.
23361 LTCC=$lt_LTCC
23362
23363 # LTCC compiler flags.
23364 LTCFLAGS=$lt_LTCFLAGS
23365
23366 # A language-specific compiler.
23367 CC=$lt_compiler_F77
23368
23369 # Is the compiler the GNU C compiler?
23370 with_gcc=$GCC_F77
23371
23372 # An ERE matcher.
23373 EGREP=$lt_EGREP
23374
23375 # The linker used to build libraries.
23376 LD=$lt_LD_F77
23377
23378 # Whether we need hard or soft links.
23379 LN_S=$lt_LN_S
23380
23381 # A BSD-compatible nm program.
23382 NM=$lt_NM
23383
23384 # A symbol stripping program
23385 STRIP=$lt_STRIP
23386
23387 # Used to examine libraries when file_magic_cmd begins "file"
23388 MAGIC_CMD=$MAGIC_CMD
23389
23390 # Used on cygwin: DLL creation program.
23391 DLLTOOL="$DLLTOOL"
23392
23393 # Used on cygwin: object dumper.
23394 OBJDUMP="$OBJDUMP"
23395
23396 # Used on cygwin: assembler.
23397 AS="$AS"
23398
23399 # The name of the directory that contains temporary libtool files.
23400 objdir=$objdir
23401
23402 # How to create reloadable object files.
23403 reload_flag=$lt_reload_flag
23404 reload_cmds=$lt_reload_cmds
23405
23406 # How to pass a linker flag through the compiler.
23407 wl=$lt_lt_prog_compiler_wl_F77
23408
23409 # Object file suffix (normally "o").
23410 objext="$ac_objext"
23411
23412 # Old archive suffix (normally "a").
23413 libext="$libext"
23414
23415 # Shared library suffix (normally ".so").
23416 shrext_cmds='$shrext_cmds'
23417
23418 # Executable file suffix (normally "").
23419 exeext="$exeext"
23420
23421 # Additional compiler flags for building library objects.
23422 pic_flag=$lt_lt_prog_compiler_pic_F77
23423 pic_mode=$pic_mode
23424
23425 # What is the maximum length of a command?
23426 max_cmd_len=$lt_cv_sys_max_cmd_len
23427
23428 # Does compiler simultaneously support -c and -o options?
23429 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23430
23431 # Must we lock files when doing compilation?
23432 need_locks=$lt_need_locks
23433
23434 # Do we need the lib prefix for modules?
23435 need_lib_prefix=$need_lib_prefix
23436
23437 # Do we need a version for libraries?
23438 need_version=$need_version
23439
23440 # Whether dlopen is supported.
23441 dlopen_support=$enable_dlopen
23442
23443 # Whether dlopen of programs is supported.
23444 dlopen_self=$enable_dlopen_self
23445
23446 # Whether dlopen of statically linked programs is supported.
23447 dlopen_self_static=$enable_dlopen_self_static
23448
23449 # Compiler flag to prevent dynamic linking.
23450 link_static_flag=$lt_lt_prog_compiler_static_F77
23451
23452 # Compiler flag to turn off builtin functions.
23453 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23454
23455 # Compiler flag to allow reflexive dlopens.
23456 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23457
23458 # Compiler flag to generate shared objects directly from archives.
23459 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23460
23461 # Compiler flag to generate thread-safe objects.
23462 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23463
23464 # Library versioning type.
23465 version_type=$version_type
23466
23467 # Format of library name prefix.
23468 libname_spec=$lt_libname_spec
23469
23470 # List of archive names.  First name is the real one, the rest are links.
23471 # The last name is the one that the linker finds with -lNAME.
23472 library_names_spec=$lt_library_names_spec
23473
23474 # The coded name of the library, if different from the real name.
23475 soname_spec=$lt_soname_spec
23476
23477 # Commands used to build and install an old-style archive.
23478 RANLIB=$lt_RANLIB
23479 old_archive_cmds=$lt_old_archive_cmds_F77
23480 old_postinstall_cmds=$lt_old_postinstall_cmds
23481 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23482
23483 # Create an old-style archive from a shared archive.
23484 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23485
23486 # Create a temporary old-style archive to link instead of a shared archive.
23487 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23488
23489 # Commands used to build and install a shared archive.
23490 archive_cmds=$lt_archive_cmds_F77
23491 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23492 postinstall_cmds=$lt_postinstall_cmds
23493 postuninstall_cmds=$lt_postuninstall_cmds
23494
23495 # Commands used to build a loadable module (assumed same as above if empty)
23496 module_cmds=$lt_module_cmds_F77
23497 module_expsym_cmds=$lt_module_expsym_cmds_F77
23498
23499 # Commands to strip libraries.
23500 old_striplib=$lt_old_striplib
23501 striplib=$lt_striplib
23502
23503 # Dependencies to place before the objects being linked to create a
23504 # shared library.
23505 predep_objects=$lt_predep_objects_F77
23506
23507 # Dependencies to place after the objects being linked to create a
23508 # shared library.
23509 postdep_objects=$lt_postdep_objects_F77
23510
23511 # Dependencies to place before the objects being linked to create a
23512 # shared library.
23513 predeps=$lt_predeps_F77
23514
23515 # Dependencies to place after the objects being linked to create a
23516 # shared library.
23517 postdeps=$lt_postdeps_F77
23518
23519 # The library search path used internally by the compiler when linking
23520 # a shared library.
23521 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23522
23523 # Method to check whether dependent libraries are shared objects.
23524 deplibs_check_method=$lt_deplibs_check_method
23525
23526 # Command to use when deplibs_check_method == file_magic.
23527 file_magic_cmd=$lt_file_magic_cmd
23528
23529 # Flag that allows shared libraries with undefined symbols to be built.
23530 allow_undefined_flag=$lt_allow_undefined_flag_F77
23531
23532 # Flag that forces no undefined symbols.
23533 no_undefined_flag=$lt_no_undefined_flag_F77
23534
23535 # Commands used to finish a libtool library installation in a directory.
23536 finish_cmds=$lt_finish_cmds
23537
23538 # Same as above, but a single script fragment to be evaled but not shown.
23539 finish_eval=$lt_finish_eval
23540
23541 # Take the output of nm and produce a listing of raw symbols and C names.
23542 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23543
23544 # Transform the output of nm in a proper C declaration
23545 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23546
23547 # Transform the output of nm in a C name address pair
23548 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23549
23550 # This is the shared library runtime path variable.
23551 runpath_var=$runpath_var
23552
23553 # This is the shared library path variable.
23554 shlibpath_var=$shlibpath_var
23555
23556 # Is shlibpath searched before the hard-coded library search path?
23557 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23558
23559 # How to hardcode a shared library path into an executable.
23560 hardcode_action=$hardcode_action_F77
23561
23562 # Whether we should hardcode library paths into libraries.
23563 hardcode_into_libs=$hardcode_into_libs
23564
23565 # Flag to hardcode \$libdir into a binary during linking.
23566 # This must work even if \$libdir does not exist.
23567 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23568
23569 # If ld is used when linking, flag to hardcode \$libdir into
23570 # a binary during linking. This must work even if \$libdir does
23571 # not exist.
23572 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23573
23574 # Whether we need a single -rpath flag with a separated argument.
23575 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23576
23577 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23578 # resulting binary.
23579 hardcode_direct=$hardcode_direct_F77
23580
23581 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23582 # resulting binary.
23583 hardcode_minus_L=$hardcode_minus_L_F77
23584
23585 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23586 # the resulting binary.
23587 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23588
23589 # Set to yes if building a shared library automatically hardcodes DIR into the library
23590 # and all subsequent libraries and executables linked against it.
23591 hardcode_automatic=$hardcode_automatic_F77
23592
23593 # Variables whose values should be saved in libtool wrapper scripts and
23594 # restored at relink time.
23595 variables_saved_for_relink="$variables_saved_for_relink"
23596
23597 # Whether libtool must link a program against all its dependency libraries.
23598 link_all_deplibs=$link_all_deplibs_F77
23599
23600 # Compile-time system search path for libraries
23601 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23602
23603 # Run-time system search path for libraries
23604 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23605
23606 # Fix the shell variable \$srcfile for the compiler.
23607 fix_srcfile_path="$fix_srcfile_path_F77"
23608
23609 # Set to yes if exported symbols are required.
23610 always_export_symbols=$always_export_symbols_F77
23611
23612 # The commands to list exported symbols.
23613 export_symbols_cmds=$lt_export_symbols_cmds_F77
23614
23615 # The commands to extract the exported symbol list from a shared archive.
23616 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23617
23618 # Symbols that should not be listed in the preloaded symbols.
23619 exclude_expsyms=$lt_exclude_expsyms_F77
23620
23621 # Symbols that must always be exported.
23622 include_expsyms=$lt_include_expsyms_F77
23623
23624 # ### END LIBTOOL TAG CONFIG: $tagname
23625
23626 __EOF__
23627
23628
23629 else
23630   # If there is no Makefile yet, we rely on a make rule to execute
23631   # `config.status --recheck' to rerun these tests and create the
23632   # libtool script then.
23633   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23634   if test -f "$ltmain_in"; then
23635     test -f Makefile && make "$ltmain"
23636   fi
23637 fi
23638
23639
23640 ac_ext=c
23641 ac_cpp='$CPP $CPPFLAGS'
23642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23645
23646 CC="$lt_save_CC"
23647
23648         else
23649           tagname=""
23650         fi
23651         ;;
23652
23653       GCJ)
23654         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23655           ac_ext=c
23656 ac_cpp='$CPP $CPPFLAGS'
23657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23660
23661
23662 # Source file extension for Java test sources.
23663 ac_ext=java
23664
23665 # Object file extension for compiled Java test sources.
23666 objext=o
23667 objext_GCJ=$objext
23668
23669 # Code to be used in simple compile tests
23670 lt_simple_compile_test_code="class foo {}\n"
23671
23672 # Code to be used in simple link tests
23673 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23674
23675 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23676
23677 # If no C compiler was specified, use CC.
23678 LTCC=${LTCC-"$CC"}
23679
23680 # If no C compiler flags were specified, use CFLAGS.
23681 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23682
23683 # Allow CC to be a program name with arguments.
23684 compiler=$CC
23685
23686
23687 # save warnings/boilerplate of simple test code
23688 ac_outfile=conftest.$ac_objext
23689 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23690 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23691 _lt_compiler_boilerplate=`cat conftest.err`
23692 $rm conftest*
23693
23694 ac_outfile=conftest.$ac_objext
23695 printf "$lt_simple_link_test_code" >conftest.$ac_ext
23696 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23697 _lt_linker_boilerplate=`cat conftest.err`
23698 $rm conftest*
23699
23700
23701 # Allow CC to be a program name with arguments.
23702 lt_save_CC="$CC"
23703 CC=${GCJ-"gcj"}
23704 compiler=$CC
23705 compiler_GCJ=$CC
23706 for cc_temp in $compiler""; do
23707   case $cc_temp in
23708     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23709     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23710     \-*) ;;
23711     *) break;;
23712   esac
23713 done
23714 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23715
23716
23717 # GCJ did not exist at the time GCC didn't implicitly link libc in.
23718 archive_cmds_need_lc_GCJ=no
23719
23720 old_archive_cmds_GCJ=$old_archive_cmds
23721
23722
23723 lt_prog_compiler_no_builtin_flag_GCJ=
23724
23725 if test "$GCC" = yes; then
23726   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23727
23728
23729 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23730 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23731 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23732   echo $ECHO_N "(cached) $ECHO_C" >&6
23733 else
23734   lt_cv_prog_compiler_rtti_exceptions=no
23735   ac_outfile=conftest.$ac_objext
23736    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23737    lt_compiler_flag="-fno-rtti -fno-exceptions"
23738    # Insert the option either (1) after the last *FLAGS variable, or
23739    # (2) before a word containing "conftest.", or (3) at the end.
23740    # Note that $ac_compile itself does not contain backslashes and begins
23741    # with a dollar sign (not a hyphen), so the echo should work correctly.
23742    # The option is referenced via a variable to avoid confusing sed.
23743    lt_compile=`echo "$ac_compile" | $SED \
23744    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23745    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23746    -e 's:$: $lt_compiler_flag:'`
23747    (eval echo "\"\$as_me:23747: $lt_compile\"" >&5)
23748    (eval "$lt_compile" 2>conftest.err)
23749    ac_status=$?
23750    cat conftest.err >&5
23751    echo "$as_me:23751: \$? = $ac_status" >&5
23752    if (exit $ac_status) && test -s "$ac_outfile"; then
23753      # The compiler can only warn and ignore the option if not recognized
23754      # So say no if there are warnings other than the usual output.
23755      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23756      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23757      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23758        lt_cv_prog_compiler_rtti_exceptions=yes
23759      fi
23760    fi
23761    $rm conftest*
23762
23763 fi
23764 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23765 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
23766
23767 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23768     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23769 else
23770     :
23771 fi
23772
23773 fi
23774
23775 lt_prog_compiler_wl_GCJ=
23776 lt_prog_compiler_pic_GCJ=
23777 lt_prog_compiler_static_GCJ=
23778
23779 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23780 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
23781
23782   if test "$GCC" = yes; then
23783     lt_prog_compiler_wl_GCJ='-Wl,'
23784     lt_prog_compiler_static_GCJ='-static'
23785
23786     case $host_os in
23787       aix*)
23788       # All AIX code is PIC.
23789       if test "$host_cpu" = ia64; then
23790         # AIX 5 now supports IA64 processor
23791         lt_prog_compiler_static_GCJ='-Bstatic'
23792       fi
23793       ;;
23794
23795     amigaos*)
23796       # FIXME: we need at least 68020 code to build shared libraries, but
23797       # adding the `-m68020' flag to GCC prevents building anything better,
23798       # like `-m68040'.
23799       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23800       ;;
23801
23802     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23803       # PIC is the default for these OSes.
23804       ;;
23805
23806     mingw* | pw32* | os2*)
23807       # This hack is so that the source file can tell whether it is being
23808       # built for inclusion in a dll (and should export symbols for example).
23809       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23810       ;;
23811
23812     darwin* | rhapsody*)
23813       # PIC is the default on this platform
23814       # Common symbols not allowed in MH_DYLIB files
23815       lt_prog_compiler_pic_GCJ='-fno-common'
23816       ;;
23817
23818     interix3*)
23819       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23820       # Instead, we relocate shared libraries at runtime.
23821       ;;
23822
23823     msdosdjgpp*)
23824       # Just because we use GCC doesn't mean we suddenly get shared libraries
23825       # on systems that don't support them.
23826       lt_prog_compiler_can_build_shared_GCJ=no
23827       enable_shared=no
23828       ;;
23829
23830     sysv4*MP*)
23831       if test -d /usr/nec; then
23832         lt_prog_compiler_pic_GCJ=-Kconform_pic
23833       fi
23834       ;;
23835
23836     hpux*)
23837       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23838       # not for PA HP-UX.
23839       case $host_cpu in
23840       hppa*64*|ia64*)
23841         # +Z the default
23842         ;;
23843       *)
23844         lt_prog_compiler_pic_GCJ='-fPIC'
23845         ;;
23846       esac
23847       ;;
23848
23849     *)
23850       lt_prog_compiler_pic_GCJ='-fPIC'
23851       ;;
23852     esac
23853   else
23854     # PORTME Check for flag to pass linker flags through the system compiler.
23855     case $host_os in
23856     aix*)
23857       lt_prog_compiler_wl_GCJ='-Wl,'
23858       if test "$host_cpu" = ia64; then
23859         # AIX 5 now supports IA64 processor
23860         lt_prog_compiler_static_GCJ='-Bstatic'
23861       else
23862         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23863       fi
23864       ;;
23865       darwin*)
23866         # PIC is the default on this platform
23867         # Common symbols not allowed in MH_DYLIB files
23868        case $cc_basename in
23869          xlc*)
23870          lt_prog_compiler_pic_GCJ='-qnocommon'
23871          lt_prog_compiler_wl_GCJ='-Wl,'
23872          ;;
23873        esac
23874        ;;
23875
23876     mingw* | pw32* | os2*)
23877       # This hack is so that the source file can tell whether it is being
23878       # built for inclusion in a dll (and should export symbols for example).
23879       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23880       ;;
23881
23882     hpux9* | hpux10* | hpux11*)
23883       lt_prog_compiler_wl_GCJ='-Wl,'
23884       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23885       # not for PA HP-UX.
23886       case $host_cpu in
23887       hppa*64*|ia64*)
23888         # +Z the default
23889         ;;
23890       *)
23891         lt_prog_compiler_pic_GCJ='+Z'
23892         ;;
23893       esac
23894       # Is there a better lt_prog_compiler_static that works with the bundled CC?
23895       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23896       ;;
23897
23898     irix5* | irix6* | nonstopux*)
23899       lt_prog_compiler_wl_GCJ='-Wl,'
23900       # PIC (with -KPIC) is the default.
23901       lt_prog_compiler_static_GCJ='-non_shared'
23902       ;;
23903
23904     newsos6)
23905       lt_prog_compiler_pic_GCJ='-KPIC'
23906       lt_prog_compiler_static_GCJ='-Bstatic'
23907       ;;
23908
23909     linux*)
23910       case $cc_basename in
23911       icc* | ecc*)
23912         lt_prog_compiler_wl_GCJ='-Wl,'
23913         lt_prog_compiler_pic_GCJ='-KPIC'
23914         lt_prog_compiler_static_GCJ='-static'
23915         ;;
23916       pgcc* | pgf77* | pgf90* | pgf95*)
23917         # Portland Group compilers (*not* the Pentium gcc compiler,
23918         # which looks to be a dead project)
23919         lt_prog_compiler_wl_GCJ='-Wl,'
23920         lt_prog_compiler_pic_GCJ='-fpic'
23921         lt_prog_compiler_static_GCJ='-Bstatic'
23922         ;;
23923       ccc*)
23924         lt_prog_compiler_wl_GCJ='-Wl,'
23925         # All Alpha code is PIC.
23926         lt_prog_compiler_static_GCJ='-non_shared'
23927         ;;
23928       esac
23929       ;;
23930
23931     osf3* | osf4* | osf5*)
23932       lt_prog_compiler_wl_GCJ='-Wl,'
23933       # All OSF/1 code is PIC.
23934       lt_prog_compiler_static_GCJ='-non_shared'
23935       ;;
23936
23937     solaris*)
23938       lt_prog_compiler_pic_GCJ='-KPIC'
23939       lt_prog_compiler_static_GCJ='-Bstatic'
23940       case $cc_basename in
23941       f77* | f90* | f95*)
23942         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23943       *)
23944         lt_prog_compiler_wl_GCJ='-Wl,';;
23945       esac
23946       ;;
23947
23948     sunos4*)
23949       lt_prog_compiler_wl_GCJ='-Qoption ld '
23950       lt_prog_compiler_pic_GCJ='-PIC'
23951       lt_prog_compiler_static_GCJ='-Bstatic'
23952       ;;
23953
23954     sysv4 | sysv4.2uw2* | sysv4.3*)
23955       lt_prog_compiler_wl_GCJ='-Wl,'
23956       lt_prog_compiler_pic_GCJ='-KPIC'
23957       lt_prog_compiler_static_GCJ='-Bstatic'
23958       ;;
23959
23960     sysv4*MP*)
23961       if test -d /usr/nec ;then
23962         lt_prog_compiler_pic_GCJ='-Kconform_pic'
23963         lt_prog_compiler_static_GCJ='-Bstatic'
23964       fi
23965       ;;
23966
23967     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23968       lt_prog_compiler_wl_GCJ='-Wl,'
23969       lt_prog_compiler_pic_GCJ='-KPIC'
23970       lt_prog_compiler_static_GCJ='-Bstatic'
23971       ;;
23972
23973     unicos*)
23974       lt_prog_compiler_wl_GCJ='-Wl,'
23975       lt_prog_compiler_can_build_shared_GCJ=no
23976       ;;
23977
23978     uts4*)
23979       lt_prog_compiler_pic_GCJ='-pic'
23980       lt_prog_compiler_static_GCJ='-Bstatic'
23981       ;;
23982
23983     *)
23984       lt_prog_compiler_can_build_shared_GCJ=no
23985       ;;
23986     esac
23987   fi
23988
23989 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23990 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
23991
23992 #
23993 # Check to make sure the PIC flag actually works.
23994 #
23995 if test -n "$lt_prog_compiler_pic_GCJ"; then
23996
23997 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
23998 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
23999 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24000   echo $ECHO_N "(cached) $ECHO_C" >&6
24001 else
24002   lt_prog_compiler_pic_works_GCJ=no
24003   ac_outfile=conftest.$ac_objext
24004    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24005    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24006    # Insert the option either (1) after the last *FLAGS variable, or
24007    # (2) before a word containing "conftest.", or (3) at the end.
24008    # Note that $ac_compile itself does not contain backslashes and begins
24009    # with a dollar sign (not a hyphen), so the echo should work correctly.
24010    # The option is referenced via a variable to avoid confusing sed.
24011    lt_compile=`echo "$ac_compile" | $SED \
24012    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24013    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24014    -e 's:$: $lt_compiler_flag:'`
24015    (eval echo "\"\$as_me:24015: $lt_compile\"" >&5)
24016    (eval "$lt_compile" 2>conftest.err)
24017    ac_status=$?
24018    cat conftest.err >&5
24019    echo "$as_me:24019: \$? = $ac_status" >&5
24020    if (exit $ac_status) && test -s "$ac_outfile"; then
24021      # The compiler can only warn and ignore the option if not recognized
24022      # So say no if there are warnings other than the usual output.
24023      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24024      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24025      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24026        lt_prog_compiler_pic_works_GCJ=yes
24027      fi
24028    fi
24029    $rm conftest*
24030
24031 fi
24032 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24033 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24034
24035 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24036     case $lt_prog_compiler_pic_GCJ in
24037      "" | " "*) ;;
24038      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24039      esac
24040 else
24041     lt_prog_compiler_pic_GCJ=
24042      lt_prog_compiler_can_build_shared_GCJ=no
24043 fi
24044
24045 fi
24046 case $host_os in
24047   # For platforms which do not support PIC, -DPIC is meaningless:
24048   *djgpp*)
24049     lt_prog_compiler_pic_GCJ=
24050     ;;
24051   *)
24052     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24053     ;;
24054 esac
24055
24056 #
24057 # Check to make sure the static flag actually works.
24058 #
24059 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24060 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24061 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24062 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24063   echo $ECHO_N "(cached) $ECHO_C" >&6
24064 else
24065   lt_prog_compiler_static_works_GCJ=no
24066    save_LDFLAGS="$LDFLAGS"
24067    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24068    printf "$lt_simple_link_test_code" > conftest.$ac_ext
24069    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24070      # The linker can only warn and ignore the option if not recognized
24071      # So say no if there are warnings
24072      if test -s conftest.err; then
24073        # Append any errors to the config.log.
24074        cat conftest.err 1>&5
24075        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24076        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24077        if diff conftest.exp conftest.er2 >/dev/null; then
24078          lt_prog_compiler_static_works_GCJ=yes
24079        fi
24080      else
24081        lt_prog_compiler_static_works_GCJ=yes
24082      fi
24083    fi
24084    $rm conftest*
24085    LDFLAGS="$save_LDFLAGS"
24086
24087 fi
24088 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24089 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24090
24091 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24092     :
24093 else
24094     lt_prog_compiler_static_GCJ=
24095 fi
24096
24097
24098 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24099 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24100 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24101   echo $ECHO_N "(cached) $ECHO_C" >&6
24102 else
24103   lt_cv_prog_compiler_c_o_GCJ=no
24104    $rm -r conftest 2>/dev/null
24105    mkdir conftest
24106    cd conftest
24107    mkdir out
24108    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24109
24110    lt_compiler_flag="-o out/conftest2.$ac_objext"
24111    # Insert the option either (1) after the last *FLAGS variable, or
24112    # (2) before a word containing "conftest.", or (3) at the end.
24113    # Note that $ac_compile itself does not contain backslashes and begins
24114    # with a dollar sign (not a hyphen), so the echo should work correctly.
24115    lt_compile=`echo "$ac_compile" | $SED \
24116    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24117    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24118    -e 's:$: $lt_compiler_flag:'`
24119    (eval echo "\"\$as_me:24119: $lt_compile\"" >&5)
24120    (eval "$lt_compile" 2>out/conftest.err)
24121    ac_status=$?
24122    cat out/conftest.err >&5
24123    echo "$as_me:24123: \$? = $ac_status" >&5
24124    if (exit $ac_status) && test -s out/conftest2.$ac_objext
24125    then
24126      # The compiler can only warn and ignore the option if not recognized
24127      # So say no if there are warnings
24128      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24129      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24130      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24131        lt_cv_prog_compiler_c_o_GCJ=yes
24132      fi
24133    fi
24134    chmod u+w . 2>&5
24135    $rm conftest*
24136    # SGI C++ compiler will create directory out/ii_files/ for
24137    # template instantiation
24138    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24139    $rm out/* && rmdir out
24140    cd ..
24141    rmdir conftest
24142    $rm conftest*
24143
24144 fi
24145 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24146 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24147
24148
24149 hard_links="nottested"
24150 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24151   # do not overwrite the value of need_locks provided by the user
24152   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24153 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24154   hard_links=yes
24155   $rm conftest*
24156   ln conftest.a conftest.b 2>/dev/null && hard_links=no
24157   touch conftest.a
24158   ln conftest.a conftest.b 2>&5 || hard_links=no
24159   ln conftest.a conftest.b 2>/dev/null && hard_links=no
24160   { echo "$as_me:$LINENO: result: $hard_links" >&5
24161 echo "${ECHO_T}$hard_links" >&6; }
24162   if test "$hard_links" = no; then
24163     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24164 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24165     need_locks=warn
24166   fi
24167 else
24168   need_locks=no
24169 fi
24170
24171 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24172 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24173
24174   runpath_var=
24175   allow_undefined_flag_GCJ=
24176   enable_shared_with_static_runtimes_GCJ=no
24177   archive_cmds_GCJ=
24178   archive_expsym_cmds_GCJ=
24179   old_archive_From_new_cmds_GCJ=
24180   old_archive_from_expsyms_cmds_GCJ=
24181   export_dynamic_flag_spec_GCJ=
24182   whole_archive_flag_spec_GCJ=
24183   thread_safe_flag_spec_GCJ=
24184   hardcode_libdir_flag_spec_GCJ=
24185   hardcode_libdir_flag_spec_ld_GCJ=
24186   hardcode_libdir_separator_GCJ=
24187   hardcode_direct_GCJ=no
24188   hardcode_minus_L_GCJ=no
24189   hardcode_shlibpath_var_GCJ=unsupported
24190   link_all_deplibs_GCJ=unknown
24191   hardcode_automatic_GCJ=no
24192   module_cmds_GCJ=
24193   module_expsym_cmds_GCJ=
24194   always_export_symbols_GCJ=no
24195   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24196   # include_expsyms should be a list of space-separated symbols to be *always*
24197   # included in the symbol list
24198   include_expsyms_GCJ=
24199   # exclude_expsyms can be an extended regexp of symbols to exclude
24200   # it will be wrapped by ` (' and `)$', so one must not match beginning or
24201   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24202   # as well as any symbol that contains `d'.
24203   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24204   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24205   # platforms (ab)use it in PIC code, but their linkers get confused if
24206   # the symbol is explicitly referenced.  Since portable code cannot
24207   # rely on this symbol name, it's probably fine to never include it in
24208   # preloaded symbol tables.
24209   extract_expsyms_cmds=
24210   # Just being paranoid about ensuring that cc_basename is set.
24211   for cc_temp in $compiler""; do
24212   case $cc_temp in
24213     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24214     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24215     \-*) ;;
24216     *) break;;
24217   esac
24218 done
24219 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24220
24221   case $host_os in
24222   cygwin* | mingw* | pw32*)
24223     # FIXME: the MSVC++ port hasn't been tested in a loooong time
24224     # When not using gcc, we currently assume that we are using
24225     # Microsoft Visual C++.
24226     if test "$GCC" != yes; then
24227       with_gnu_ld=no
24228     fi
24229     ;;
24230   interix*)
24231     # we just hope/assume this is gcc and not c89 (= MSVC++)
24232     with_gnu_ld=yes
24233     ;;
24234   openbsd*)
24235     with_gnu_ld=no
24236     ;;
24237   esac
24238
24239   ld_shlibs_GCJ=yes
24240   if test "$with_gnu_ld" = yes; then
24241     # If archive_cmds runs LD, not CC, wlarc should be empty
24242     wlarc='${wl}'
24243
24244     # Set some defaults for GNU ld with shared library support. These
24245     # are reset later if shared libraries are not supported. Putting them
24246     # here allows them to be overridden if necessary.
24247     runpath_var=LD_RUN_PATH
24248     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24249     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24250     # ancient GNU ld didn't support --whole-archive et. al.
24251     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24252         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24253       else
24254         whole_archive_flag_spec_GCJ=
24255     fi
24256     supports_anon_versioning=no
24257     case `$LD -v 2>/dev/null` in
24258       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24259       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24260       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24261       *\ 2.11.*) ;; # other 2.11 versions
24262       *) supports_anon_versioning=yes ;;
24263     esac
24264
24265     # See if GNU ld supports shared libraries.
24266     case $host_os in
24267     aix3* | aix4* | aix5*)
24268       # On AIX/PPC, the GNU linker is very broken
24269       if test "$host_cpu" != ia64; then
24270         ld_shlibs_GCJ=no
24271         cat <<EOF 1>&2
24272
24273 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24274 *** to be unable to reliably create shared libraries on AIX.
24275 *** Therefore, libtool is disabling shared libraries support.  If you
24276 *** really care for shared libraries, you may want to modify your PATH
24277 *** so that a non-GNU linker is found, and then restart.
24278
24279 EOF
24280       fi
24281       ;;
24282
24283     amigaos*)
24284       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)'
24285       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24286       hardcode_minus_L_GCJ=yes
24287
24288       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24289       # that the semantics of dynamic libraries on AmigaOS, at least up
24290       # to version 4, is to share data among multiple programs linked
24291       # with the same dynamic library.  Since this doesn't match the
24292       # behavior of shared libraries on other platforms, we can't use
24293       # them.
24294       ld_shlibs_GCJ=no
24295       ;;
24296
24297     beos*)
24298       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24299         allow_undefined_flag_GCJ=unsupported
24300         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24301         # support --undefined.  This deserves some investigation.  FIXME
24302         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24303       else
24304         ld_shlibs_GCJ=no
24305       fi
24306       ;;
24307
24308     cygwin* | mingw* | pw32*)
24309       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24310       # as there is no search path for DLLs.
24311       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24312       allow_undefined_flag_GCJ=unsupported
24313       always_export_symbols_GCJ=no
24314       enable_shared_with_static_runtimes_GCJ=yes
24315       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24316
24317       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24318         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24319         # If the export-symbols file already is a .def file (1st line
24320         # is EXPORTS), use it as is; otherwise, prepend...
24321         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24322           cp $export_symbols $output_objdir/$soname.def;
24323         else
24324           echo EXPORTS > $output_objdir/$soname.def;
24325           cat $export_symbols >> $output_objdir/$soname.def;
24326         fi~
24327         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24328       else
24329         ld_shlibs_GCJ=no
24330       fi
24331       ;;
24332
24333     interix3*)
24334       hardcode_direct_GCJ=no
24335       hardcode_shlibpath_var_GCJ=no
24336       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24337       export_dynamic_flag_spec_GCJ='${wl}-E'
24338       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24339       # Instead, shared libraries are loaded at an image base (0x10000000 by
24340       # default) and relocated if they conflict, which is a slow very memory
24341       # consuming and fragmenting process.  To avoid this, we pick a random,
24342       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24343       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
24344       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'
24345       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'
24346       ;;
24347
24348     linux*)
24349       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24350         tmp_addflag=
24351         case $cc_basename,$host_cpu in
24352         pgcc*)                          # Portland Group C compiler
24353           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'
24354           tmp_addflag=' $pic_flag'
24355           ;;
24356         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
24357           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'
24358           tmp_addflag=' $pic_flag -Mnomain' ;;
24359         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
24360           tmp_addflag=' -i_dynamic' ;;
24361         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
24362           tmp_addflag=' -i_dynamic -nofor_main' ;;
24363         ifc* | ifort*)                  # Intel Fortran compiler
24364           tmp_addflag=' -nofor_main' ;;
24365         esac
24366         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24367
24368         if test $supports_anon_versioning = yes; then
24369           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24370   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24371   $echo "local: *; };" >> $output_objdir/$libname.ver~
24372           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24373         fi
24374       else
24375         ld_shlibs_GCJ=no
24376       fi
24377       ;;
24378
24379     netbsd*)
24380       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24381         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24382         wlarc=
24383       else
24384         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24385         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24386       fi
24387       ;;
24388
24389     solaris*)
24390       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24391         ld_shlibs_GCJ=no
24392         cat <<EOF 1>&2
24393
24394 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24395 *** create shared libraries on Solaris systems.  Therefore, libtool
24396 *** is disabling shared libraries support.  We urge you to upgrade GNU
24397 *** binutils to release 2.9.1 or newer.  Another option is to modify
24398 *** your PATH or compiler configuration so that the native linker is
24399 *** used, and then restart.
24400
24401 EOF
24402       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24403         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24404         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24405       else
24406         ld_shlibs_GCJ=no
24407       fi
24408       ;;
24409
24410     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24411       case `$LD -v 2>&1` in
24412         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24413         ld_shlibs_GCJ=no
24414         cat <<_LT_EOF 1>&2
24415
24416 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24417 *** reliably create shared libraries on SCO systems.  Therefore, libtool
24418 *** is disabling shared libraries support.  We urge you to upgrade GNU
24419 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
24420 *** your PATH or compiler configuration so that the native linker is
24421 *** used, and then restart.
24422
24423 _LT_EOF
24424         ;;
24425         *)
24426           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24427             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24428             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24429             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24430           else
24431             ld_shlibs_GCJ=no
24432           fi
24433         ;;
24434       esac
24435       ;;
24436
24437     sunos4*)
24438       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24439       wlarc=
24440       hardcode_direct_GCJ=yes
24441       hardcode_shlibpath_var_GCJ=no
24442       ;;
24443
24444     *)
24445       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24446         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24447         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24448       else
24449         ld_shlibs_GCJ=no
24450       fi
24451       ;;
24452     esac
24453
24454     if test "$ld_shlibs_GCJ" = no; then
24455       runpath_var=
24456       hardcode_libdir_flag_spec_GCJ=
24457       export_dynamic_flag_spec_GCJ=
24458       whole_archive_flag_spec_GCJ=
24459     fi
24460   else
24461     # PORTME fill in a description of your system's linker (not GNU ld)
24462     case $host_os in
24463     aix3*)
24464       allow_undefined_flag_GCJ=unsupported
24465       always_export_symbols_GCJ=yes
24466       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'
24467       # Note: this linker hardcodes the directories in LIBPATH if there
24468       # are no directories specified by -L.
24469       hardcode_minus_L_GCJ=yes
24470       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24471         # Neither direct hardcoding nor static linking is supported with a
24472         # broken collect2.
24473         hardcode_direct_GCJ=unsupported
24474       fi
24475       ;;
24476
24477     aix4* | aix5*)
24478       if test "$host_cpu" = ia64; then
24479         # On IA64, the linker does run time linking by default, so we don't
24480         # have to do anything special.
24481         aix_use_runtimelinking=no
24482         exp_sym_flag='-Bexport'
24483         no_entry_flag=""
24484       else
24485         # If we're using GNU nm, then we don't want the "-C" option.
24486         # -C means demangle to AIX nm, but means don't demangle with GNU nm
24487         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24488           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'
24489         else
24490           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'
24491         fi
24492         aix_use_runtimelinking=no
24493
24494         # Test if we are trying to use run time linking or normal
24495         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24496         # need to do runtime linking.
24497         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24498           for ld_flag in $LDFLAGS; do
24499           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24500             aix_use_runtimelinking=yes
24501             break
24502           fi
24503           done
24504           ;;
24505         esac
24506
24507         exp_sym_flag='-bexport'
24508         no_entry_flag='-bnoentry'
24509       fi
24510
24511       # When large executables or shared objects are built, AIX ld can
24512       # have problems creating the table of contents.  If linking a library
24513       # or program results in "error TOC overflow" add -mminimal-toc to
24514       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
24515       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24516
24517       archive_cmds_GCJ=''
24518       hardcode_direct_GCJ=yes
24519       hardcode_libdir_separator_GCJ=':'
24520       link_all_deplibs_GCJ=yes
24521
24522       if test "$GCC" = yes; then
24523         case $host_os in aix4.[012]|aix4.[012].*)
24524         # We only want to do this on AIX 4.2 and lower, the check
24525         # below for broken collect2 doesn't work under 4.3+
24526           collect2name=`${CC} -print-prog-name=collect2`
24527           if test -f "$collect2name" && \
24528            strings "$collect2name" | grep resolve_lib_name >/dev/null
24529           then
24530           # We have reworked collect2
24531           hardcode_direct_GCJ=yes
24532           else
24533           # We have old collect2
24534           hardcode_direct_GCJ=unsupported
24535           # It fails to find uninstalled libraries when the uninstalled
24536           # path is not listed in the libpath.  Setting hardcode_minus_L
24537           # to unsupported forces relinking
24538           hardcode_minus_L_GCJ=yes
24539           hardcode_libdir_flag_spec_GCJ='-L$libdir'
24540           hardcode_libdir_separator_GCJ=
24541           fi
24542           ;;
24543         esac
24544         shared_flag='-shared'
24545         if test "$aix_use_runtimelinking" = yes; then
24546           shared_flag="$shared_flag "'${wl}-G'
24547         fi
24548       else
24549         # not using gcc
24550         if test "$host_cpu" = ia64; then
24551         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24552         # chokes on -Wl,-G. The following line is correct:
24553           shared_flag='-G'
24554         else
24555           if test "$aix_use_runtimelinking" = yes; then
24556             shared_flag='${wl}-G'
24557           else
24558             shared_flag='${wl}-bM:SRE'
24559           fi
24560         fi
24561       fi
24562
24563       # It seems that -bexpall does not export symbols beginning with
24564       # underscore (_), so it is better to generate a list of symbols to export.
24565       always_export_symbols_GCJ=yes
24566       if test "$aix_use_runtimelinking" = yes; then
24567         # Warning - without using the other runtime loading flags (-brtl),
24568         # -berok will link without error, but may produce a broken library.
24569         allow_undefined_flag_GCJ='-berok'
24570        # Determine the default libpath from the value encoded in an empty executable.
24571        cat >conftest.$ac_ext <<_ACEOF
24572 /* confdefs.h.  */
24573 _ACEOF
24574 cat confdefs.h >>conftest.$ac_ext
24575 cat >>conftest.$ac_ext <<_ACEOF
24576 /* end confdefs.h.  */
24577
24578 int
24579 main ()
24580 {
24581
24582   ;
24583   return 0;
24584 }
24585 _ACEOF
24586 rm -f conftest.$ac_objext conftest$ac_exeext
24587 if { (ac_try="$ac_link"
24588 case "(($ac_try" in
24589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24590   *) ac_try_echo=$ac_try;;
24591 esac
24592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24593   (eval "$ac_link") 2>conftest.er1
24594   ac_status=$?
24595   grep -v '^ *+' conftest.er1 >conftest.err
24596   rm -f conftest.er1
24597   cat conftest.err >&5
24598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24599   (exit $ac_status); } &&
24600          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24601   { (case "(($ac_try" in
24602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24603   *) ac_try_echo=$ac_try;;
24604 esac
24605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24606   (eval "$ac_try") 2>&5
24607   ac_status=$?
24608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24609   (exit $ac_status); }; } &&
24610          { ac_try='test -s conftest$ac_exeext'
24611   { (case "(($ac_try" in
24612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24613   *) ac_try_echo=$ac_try;;
24614 esac
24615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24616   (eval "$ac_try") 2>&5
24617   ac_status=$?
24618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24619   (exit $ac_status); }; }; then
24620
24621 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24622 }'`
24623 # Check for a 64-bit object if we didn't find anything.
24624 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; }
24625 }'`; fi
24626 else
24627   echo "$as_me: failed program was:" >&5
24628 sed 's/^/| /' conftest.$ac_ext >&5
24629
24630
24631 fi
24632
24633 rm -f core conftest.err conftest.$ac_objext \
24634       conftest$ac_exeext conftest.$ac_ext
24635 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24636
24637        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24638         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"
24639        else
24640         if test "$host_cpu" = ia64; then
24641           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24642           allow_undefined_flag_GCJ="-z nodefs"
24643           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"
24644         else
24645          # Determine the default libpath from the value encoded in an empty executable.
24646          cat >conftest.$ac_ext <<_ACEOF
24647 /* confdefs.h.  */
24648 _ACEOF
24649 cat confdefs.h >>conftest.$ac_ext
24650 cat >>conftest.$ac_ext <<_ACEOF
24651 /* end confdefs.h.  */
24652
24653 int
24654 main ()
24655 {
24656
24657   ;
24658   return 0;
24659 }
24660 _ACEOF
24661 rm -f conftest.$ac_objext conftest$ac_exeext
24662 if { (ac_try="$ac_link"
24663 case "(($ac_try" in
24664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24665   *) ac_try_echo=$ac_try;;
24666 esac
24667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24668   (eval "$ac_link") 2>conftest.er1
24669   ac_status=$?
24670   grep -v '^ *+' conftest.er1 >conftest.err
24671   rm -f conftest.er1
24672   cat conftest.err >&5
24673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24674   (exit $ac_status); } &&
24675          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24676   { (case "(($ac_try" in
24677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24678   *) ac_try_echo=$ac_try;;
24679 esac
24680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24681   (eval "$ac_try") 2>&5
24682   ac_status=$?
24683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24684   (exit $ac_status); }; } &&
24685          { ac_try='test -s conftest$ac_exeext'
24686   { (case "(($ac_try" in
24687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24688   *) ac_try_echo=$ac_try;;
24689 esac
24690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24691   (eval "$ac_try") 2>&5
24692   ac_status=$?
24693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24694   (exit $ac_status); }; }; then
24695
24696 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24697 }'`
24698 # Check for a 64-bit object if we didn't find anything.
24699 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; }
24700 }'`; fi
24701 else
24702   echo "$as_me: failed program was:" >&5
24703 sed 's/^/| /' conftest.$ac_ext >&5
24704
24705
24706 fi
24707
24708 rm -f core conftest.err conftest.$ac_objext \
24709       conftest$ac_exeext conftest.$ac_ext
24710 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24711
24712          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24713           # Warning - without using the other run time loading flags,
24714           # -berok will link without error, but may produce a broken library.
24715           no_undefined_flag_GCJ=' ${wl}-bernotok'
24716           allow_undefined_flag_GCJ=' ${wl}-berok'
24717           # Exported symbols can be pulled into shared objects from archives
24718           whole_archive_flag_spec_GCJ='$convenience'
24719           archive_cmds_need_lc_GCJ=yes
24720           # This is similar to how AIX traditionally builds its shared libraries.
24721           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'
24722         fi
24723       fi
24724       ;;
24725
24726     amigaos*)
24727       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)'
24728       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24729       hardcode_minus_L_GCJ=yes
24730       # see comment about different semantics on the GNU ld section
24731       ld_shlibs_GCJ=no
24732       ;;
24733
24734     bsdi[45]*)
24735       export_dynamic_flag_spec_GCJ=-rdynamic
24736       ;;
24737
24738     cygwin* | mingw* | pw32*)
24739       # When not using gcc, we currently assume that we are using
24740       # Microsoft Visual C++.
24741       # hardcode_libdir_flag_spec is actually meaningless, as there is
24742       # no search path for DLLs.
24743       hardcode_libdir_flag_spec_GCJ=' '
24744       allow_undefined_flag_GCJ=unsupported
24745       # Tell ltmain to make .lib files, not .a files.
24746       libext=lib
24747       # Tell ltmain to make .dll files, not .so files.
24748       shrext_cmds=".dll"
24749       # FIXME: Setting linknames here is a bad hack.
24750       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24751       # The linker will automatically build a .lib file if we build a DLL.
24752       old_archive_From_new_cmds_GCJ='true'
24753       # FIXME: Should let the user specify the lib program.
24754       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
24755       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
24756       enable_shared_with_static_runtimes_GCJ=yes
24757       ;;
24758
24759     darwin* | rhapsody*)
24760       case $host_os in
24761         rhapsody* | darwin1.[012])
24762          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24763          ;;
24764        *) # Darwin 1.3 on
24765          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24766            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24767          else
24768            case ${MACOSX_DEPLOYMENT_TARGET} in
24769              10.[012])
24770                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24771                ;;
24772              10.*)
24773                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24774                ;;
24775            esac
24776          fi
24777          ;;
24778       esac
24779       archive_cmds_need_lc_GCJ=no
24780       hardcode_direct_GCJ=no
24781       hardcode_automatic_GCJ=yes
24782       hardcode_shlibpath_var_GCJ=unsupported
24783       whole_archive_flag_spec_GCJ=''
24784       link_all_deplibs_GCJ=yes
24785     if test "$GCC" = yes ; then
24786         output_verbose_link_cmd='echo'
24787         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24788       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24789       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24790       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}'
24791       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}'
24792     else
24793       case $cc_basename in
24794         xlc*)
24795          output_verbose_link_cmd='echo'
24796          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24797          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24798           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24799          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}'
24800           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}'
24801           ;;
24802        *)
24803          ld_shlibs_GCJ=no
24804           ;;
24805       esac
24806     fi
24807       ;;
24808
24809     dgux*)
24810       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24811       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24812       hardcode_shlibpath_var_GCJ=no
24813       ;;
24814
24815     freebsd1*)
24816       ld_shlibs_GCJ=no
24817       ;;
24818
24819     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24820     # support.  Future versions do this automatically, but an explicit c++rt0.o
24821     # does not break anything, and helps significantly (at the cost of a little
24822     # extra space).
24823     freebsd2.2*)
24824       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24825       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24826       hardcode_direct_GCJ=yes
24827       hardcode_shlibpath_var_GCJ=no
24828       ;;
24829
24830     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24831     freebsd2*)
24832       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24833       hardcode_direct_GCJ=yes
24834       hardcode_minus_L_GCJ=yes
24835       hardcode_shlibpath_var_GCJ=no
24836       ;;
24837
24838     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24839     freebsd* | kfreebsd*-gnu | dragonfly*)
24840       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24841       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24842       hardcode_direct_GCJ=yes
24843       hardcode_shlibpath_var_GCJ=no
24844       ;;
24845
24846     hpux9*)
24847       if test "$GCC" = yes; then
24848         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'
24849       else
24850         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'
24851       fi
24852       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24853       hardcode_libdir_separator_GCJ=:
24854       hardcode_direct_GCJ=yes
24855
24856       # hardcode_minus_L: Not really in the search PATH,
24857       # but as the default location of the library.
24858       hardcode_minus_L_GCJ=yes
24859       export_dynamic_flag_spec_GCJ='${wl}-E'
24860       ;;
24861
24862     hpux10*)
24863       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24864         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24865       else
24866         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24867       fi
24868       if test "$with_gnu_ld" = no; then
24869         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24870         hardcode_libdir_separator_GCJ=:
24871
24872         hardcode_direct_GCJ=yes
24873         export_dynamic_flag_spec_GCJ='${wl}-E'
24874
24875         # hardcode_minus_L: Not really in the search PATH,
24876         # but as the default location of the library.
24877         hardcode_minus_L_GCJ=yes
24878       fi
24879       ;;
24880
24881     hpux11*)
24882       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24883         case $host_cpu in
24884         hppa*64*)
24885           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24886           ;;
24887         ia64*)
24888           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24889           ;;
24890         *)
24891           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24892           ;;
24893         esac
24894       else
24895         case $host_cpu in
24896         hppa*64*)
24897           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24898           ;;
24899         ia64*)
24900           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24901           ;;
24902         *)
24903           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24904           ;;
24905         esac
24906       fi
24907       if test "$with_gnu_ld" = no; then
24908         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24909         hardcode_libdir_separator_GCJ=:
24910
24911         case $host_cpu in
24912         hppa*64*|ia64*)
24913           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24914           hardcode_direct_GCJ=no
24915           hardcode_shlibpath_var_GCJ=no
24916           ;;
24917         *)
24918           hardcode_direct_GCJ=yes
24919           export_dynamic_flag_spec_GCJ='${wl}-E'
24920
24921           # hardcode_minus_L: Not really in the search PATH,
24922           # but as the default location of the library.
24923           hardcode_minus_L_GCJ=yes
24924           ;;
24925         esac
24926       fi
24927       ;;
24928
24929     irix5* | irix6* | nonstopux*)
24930       if test "$GCC" = yes; then
24931         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'
24932       else
24933         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'
24934         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24935       fi
24936       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24937       hardcode_libdir_separator_GCJ=:
24938       link_all_deplibs_GCJ=yes
24939       ;;
24940
24941     netbsd*)
24942       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24943         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
24944       else
24945         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
24946       fi
24947       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24948       hardcode_direct_GCJ=yes
24949       hardcode_shlibpath_var_GCJ=no
24950       ;;
24951
24952     newsos6)
24953       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24954       hardcode_direct_GCJ=yes
24955       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24956       hardcode_libdir_separator_GCJ=:
24957       hardcode_shlibpath_var_GCJ=no
24958       ;;
24959
24960     openbsd*)
24961       hardcode_direct_GCJ=yes
24962       hardcode_shlibpath_var_GCJ=no
24963       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24964         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24965         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
24966         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24967         export_dynamic_flag_spec_GCJ='${wl}-E'
24968       else
24969        case $host_os in
24970          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24971            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24972            hardcode_libdir_flag_spec_GCJ='-R$libdir'
24973            ;;
24974          *)
24975            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24976            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24977            ;;
24978        esac
24979       fi
24980       ;;
24981
24982     os2*)
24983       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24984       hardcode_minus_L_GCJ=yes
24985       allow_undefined_flag_GCJ=unsupported
24986       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'
24987       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24988       ;;
24989
24990     osf3*)
24991       if test "$GCC" = yes; then
24992         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24993         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'
24994       else
24995         allow_undefined_flag_GCJ=' -expect_unresolved \*'
24996         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'
24997       fi
24998       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24999       hardcode_libdir_separator_GCJ=:
25000       ;;
25001
25002     osf4* | osf5*)      # as osf3* with the addition of -msym flag
25003       if test "$GCC" = yes; then
25004         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25005         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'
25006         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25007       else
25008         allow_undefined_flag_GCJ=' -expect_unresolved \*'
25009         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'
25010         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~
25011         $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'
25012
25013         # Both c and cxx compiler support -rpath directly
25014         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25015       fi
25016       hardcode_libdir_separator_GCJ=:
25017       ;;
25018
25019     solaris*)
25020       no_undefined_flag_GCJ=' -z text'
25021       if test "$GCC" = yes; then
25022         wlarc='${wl}'
25023         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25024         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25025           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25026       else
25027         wlarc=''
25028         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25029         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25030         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25031       fi
25032       hardcode_libdir_flag_spec_GCJ='-R$libdir'
25033       hardcode_shlibpath_var_GCJ=no
25034       case $host_os in
25035       solaris2.[0-5] | solaris2.[0-5].*) ;;
25036       *)
25037         # The compiler driver will combine linker options so we
25038         # cannot just pass the convience library names through
25039         # without $wl, iff we do not link with $LD.
25040         # Luckily, gcc supports the same syntax we need for Sun Studio.
25041         # Supported since Solaris 2.6 (maybe 2.5.1?)
25042         case $wlarc in
25043         '')
25044           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25045         *)
25046           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' ;;
25047         esac ;;
25048       esac
25049       link_all_deplibs_GCJ=yes
25050       ;;
25051
25052     sunos4*)
25053       if test "x$host_vendor" = xsequent; then
25054         # Use $CC to link under sequent, because it throws in some extra .o
25055         # files that make .init and .fini sections work.
25056         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25057       else
25058         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25059       fi
25060       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25061       hardcode_direct_GCJ=yes
25062       hardcode_minus_L_GCJ=yes
25063       hardcode_shlibpath_var_GCJ=no
25064       ;;
25065
25066     sysv4)
25067       case $host_vendor in
25068         sni)
25069           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25070           hardcode_direct_GCJ=yes # is this really true???
25071         ;;
25072         siemens)
25073           ## LD is ld it makes a PLAMLIB
25074           ## CC just makes a GrossModule.
25075           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25076           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25077           hardcode_direct_GCJ=no
25078         ;;
25079         motorola)
25080           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25081           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25082         ;;
25083       esac
25084       runpath_var='LD_RUN_PATH'
25085       hardcode_shlibpath_var_GCJ=no
25086       ;;
25087
25088     sysv4.3*)
25089       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25090       hardcode_shlibpath_var_GCJ=no
25091       export_dynamic_flag_spec_GCJ='-Bexport'
25092       ;;
25093
25094     sysv4*MP*)
25095       if test -d /usr/nec; then
25096         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25097         hardcode_shlibpath_var_GCJ=no
25098         runpath_var=LD_RUN_PATH
25099         hardcode_runpath_var=yes
25100         ld_shlibs_GCJ=yes
25101       fi
25102       ;;
25103
25104     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25105       no_undefined_flag_GCJ='${wl}-z,text'
25106       archive_cmds_need_lc_GCJ=no
25107       hardcode_shlibpath_var_GCJ=no
25108       runpath_var='LD_RUN_PATH'
25109
25110       if test "$GCC" = yes; then
25111         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25112         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25113       else
25114         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25115         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25116       fi
25117       ;;
25118
25119     sysv5* | sco3.2v5* | sco5v6*)
25120       # Note: We can NOT use -z defs as we might desire, because we do not
25121       # link with -lc, and that would cause any symbols used from libc to
25122       # always be unresolved, which means just about no library would
25123       # ever link correctly.  If we're not using GNU ld we use -z text
25124       # though, which does catch some bad symbols but isn't as heavy-handed
25125       # as -z defs.
25126       no_undefined_flag_GCJ='${wl}-z,text'
25127       allow_undefined_flag_GCJ='${wl}-z,nodefs'
25128       archive_cmds_need_lc_GCJ=no
25129       hardcode_shlibpath_var_GCJ=no
25130       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25131       hardcode_libdir_separator_GCJ=':'
25132       link_all_deplibs_GCJ=yes
25133       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25134       runpath_var='LD_RUN_PATH'
25135
25136       if test "$GCC" = yes; then
25137         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25138         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25139       else
25140         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25141         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25142       fi
25143       ;;
25144
25145     uts4*)
25146       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25147       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25148       hardcode_shlibpath_var_GCJ=no
25149       ;;
25150
25151     *)
25152       ld_shlibs_GCJ=no
25153       ;;
25154     esac
25155   fi
25156
25157 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25158 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25159 test "$ld_shlibs_GCJ" = no && can_build_shared=no
25160
25161 #
25162 # Do we need to explicitly link libc?
25163 #
25164 case "x$archive_cmds_need_lc_GCJ" in
25165 x|xyes)
25166   # Assume -lc should be added
25167   archive_cmds_need_lc_GCJ=yes
25168
25169   if test "$enable_shared" = yes && test "$GCC" = yes; then
25170     case $archive_cmds_GCJ in
25171     *'~'*)
25172       # FIXME: we may have to deal with multi-command sequences.
25173       ;;
25174     '$CC '*)
25175       # Test whether the compiler implicitly links with -lc since on some
25176       # systems, -lgcc has to come before -lc. If gcc already passes -lc
25177       # to ld, don't add -lc before -lgcc.
25178       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25179 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25180       $rm conftest*
25181       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25182
25183       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25184   (eval $ac_compile) 2>&5
25185   ac_status=$?
25186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25187   (exit $ac_status); } 2>conftest.err; then
25188         soname=conftest
25189         lib=conftest
25190         libobjs=conftest.$ac_objext
25191         deplibs=
25192         wl=$lt_prog_compiler_wl_GCJ
25193         pic_flag=$lt_prog_compiler_pic_GCJ
25194         compiler_flags=-v
25195         linker_flags=-v
25196         verstring=
25197         output_objdir=.
25198         libname=conftest
25199         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25200         allow_undefined_flag_GCJ=
25201         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25202   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25203   ac_status=$?
25204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25205   (exit $ac_status); }
25206         then
25207           archive_cmds_need_lc_GCJ=no
25208         else
25209           archive_cmds_need_lc_GCJ=yes
25210         fi
25211         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25212       else
25213         cat conftest.err 1>&5
25214       fi
25215       $rm conftest*
25216       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25217 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25218       ;;
25219     esac
25220   fi
25221   ;;
25222 esac
25223
25224 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25225 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25226 library_names_spec=
25227 libname_spec='lib$name'
25228 soname_spec=
25229 shrext_cmds=".so"
25230 postinstall_cmds=
25231 postuninstall_cmds=
25232 finish_cmds=
25233 finish_eval=
25234 shlibpath_var=
25235 shlibpath_overrides_runpath=unknown
25236 version_type=none
25237 dynamic_linker="$host_os ld.so"
25238 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25239 if test "$GCC" = yes; then
25240   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25241   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25242     # if the path contains ";" then we assume it to be the separator
25243     # otherwise default to the standard path separator (i.e. ":") - it is
25244     # assumed that no part of a normal pathname contains ";" but that should
25245     # okay in the real world where ";" in dirpaths is itself problematic.
25246     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25247   else
25248     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25249   fi
25250 else
25251   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25252 fi
25253 need_lib_prefix=unknown
25254 hardcode_into_libs=no
25255
25256 # when you set need_version to no, make sure it does not cause -set_version
25257 # flags to be left without arguments
25258 need_version=unknown
25259
25260 case $host_os in
25261 aix3*)
25262   version_type=linux
25263   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25264   shlibpath_var=LIBPATH
25265
25266   # AIX 3 has no versioning support, so we append a major version to the name.
25267   soname_spec='${libname}${release}${shared_ext}$major'
25268   ;;
25269
25270 aix4* | aix5*)
25271   version_type=linux
25272   need_lib_prefix=no
25273   need_version=no
25274   hardcode_into_libs=yes
25275   if test "$host_cpu" = ia64; then
25276     # AIX 5 supports IA64
25277     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25278     shlibpath_var=LD_LIBRARY_PATH
25279   else
25280     # With GCC up to 2.95.x, collect2 would create an import file
25281     # for dependence libraries.  The import file would start with
25282     # the line `#! .'.  This would cause the generated library to
25283     # depend on `.', always an invalid library.  This was fixed in
25284     # development snapshots of GCC prior to 3.0.
25285     case $host_os in
25286       aix4 | aix4.[01] | aix4.[01].*)
25287       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25288            echo ' yes '
25289            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25290         :
25291       else
25292         can_build_shared=no
25293       fi
25294       ;;
25295     esac
25296     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25297     # soname into executable. Probably we can add versioning support to
25298     # collect2, so additional links can be useful in future.
25299     if test "$aix_use_runtimelinking" = yes; then
25300       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25301       # instead of lib<name>.a to let people know that these are not
25302       # typical AIX shared libraries.
25303       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25304     else
25305       # We preserve .a as extension for shared libraries through AIX4.2
25306       # and later when we are not doing run time linking.
25307       library_names_spec='${libname}${release}.a $libname.a'
25308       soname_spec='${libname}${release}${shared_ext}$major'
25309     fi
25310     shlibpath_var=LIBPATH
25311   fi
25312   ;;
25313
25314 amigaos*)
25315   library_names_spec='$libname.ixlibrary $libname.a'
25316   # Create ${libname}_ixlibrary.a entries in /sys/libs.
25317   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'
25318   ;;
25319
25320 beos*)
25321   library_names_spec='${libname}${shared_ext}'
25322   dynamic_linker="$host_os ld.so"
25323   shlibpath_var=LIBRARY_PATH
25324   ;;
25325
25326 bsdi[45]*)
25327   version_type=linux
25328   need_version=no
25329   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25330   soname_spec='${libname}${release}${shared_ext}$major'
25331   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25332   shlibpath_var=LD_LIBRARY_PATH
25333   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25334   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25335   # the default ld.so.conf also contains /usr/contrib/lib and
25336   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25337   # libtool to hard-code these into programs
25338   ;;
25339
25340 cygwin* | mingw* | pw32*)
25341   version_type=windows
25342   shrext_cmds=".dll"
25343   need_version=no
25344   need_lib_prefix=no
25345
25346   case $GCC,$host_os in
25347   yes,cygwin* | yes,mingw* | yes,pw32*)
25348     library_names_spec='$libname.dll.a'
25349     # DLL is installed to $(libdir)/../bin by postinstall_cmds
25350     postinstall_cmds='base_file=`basename \${file}`~
25351       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25352       dldir=$destdir/`dirname \$dlpath`~
25353       test -d \$dldir || mkdir -p \$dldir~
25354       $install_prog $dir/$dlname \$dldir/$dlname~
25355       chmod a+x \$dldir/$dlname'
25356     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25357       dlpath=$dir/\$dldll~
25358        $rm \$dlpath'
25359     shlibpath_overrides_runpath=yes
25360
25361     case $host_os in
25362     cygwin*)
25363       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25364       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25365       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25366       ;;
25367     mingw*)
25368       # MinGW DLLs use traditional 'lib' prefix
25369       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25370       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25371       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25372         # It is most probably a Windows format PATH printed by
25373         # mingw gcc, but we are running on Cygwin. Gcc prints its search
25374         # path with ; separators, and with drive letters. We can handle the
25375         # drive letters (cygwin fileutils understands them), so leave them,
25376         # especially as we might pass files found there to a mingw objdump,
25377         # which wouldn't understand a cygwinified path. Ahh.
25378         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25379       else
25380         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25381       fi
25382       ;;
25383     pw32*)
25384       # pw32 DLLs use 'pw' prefix rather than 'lib'
25385       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25386       ;;
25387     esac
25388     ;;
25389
25390   *)
25391     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25392     ;;
25393   esac
25394   dynamic_linker='Win32 ld.exe'
25395   # FIXME: first we should search . and the directory the executable is in
25396   shlibpath_var=PATH
25397   ;;
25398
25399 darwin* | rhapsody*)
25400   dynamic_linker="$host_os dyld"
25401   version_type=darwin
25402   need_lib_prefix=no
25403   need_version=no
25404   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25405   soname_spec='${libname}${release}${major}$shared_ext'
25406   shlibpath_overrides_runpath=yes
25407   shlibpath_var=DYLD_LIBRARY_PATH
25408   shrext_cmds='.dylib'
25409   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25410   if test "$GCC" = yes; then
25411     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"`
25412   else
25413     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25414   fi
25415   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25416   ;;
25417
25418 dgux*)
25419   version_type=linux
25420   need_lib_prefix=no
25421   need_version=no
25422   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25423   soname_spec='${libname}${release}${shared_ext}$major'
25424   shlibpath_var=LD_LIBRARY_PATH
25425   ;;
25426
25427 freebsd1*)
25428   dynamic_linker=no
25429   ;;
25430
25431 kfreebsd*-gnu)
25432   version_type=linux
25433   need_lib_prefix=no
25434   need_version=no
25435   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25436   soname_spec='${libname}${release}${shared_ext}$major'
25437   shlibpath_var=LD_LIBRARY_PATH
25438   shlibpath_overrides_runpath=no
25439   hardcode_into_libs=yes
25440   dynamic_linker='GNU ld.so'
25441   ;;
25442
25443 freebsd* | dragonfly*)
25444   # DragonFly does not have aout.  When/if they implement a new
25445   # versioning mechanism, adjust this.
25446   if test -x /usr/bin/objformat; then
25447     objformat=`/usr/bin/objformat`
25448   else
25449     case $host_os in
25450     freebsd[123]*) objformat=aout ;;
25451     *) objformat=elf ;;
25452     esac
25453   fi
25454   version_type=freebsd-$objformat
25455   case $version_type in
25456     freebsd-elf*)
25457       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25458       need_version=no
25459       need_lib_prefix=no
25460       ;;
25461     freebsd-*)
25462       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25463       need_version=yes
25464       ;;
25465   esac
25466   shlibpath_var=LD_LIBRARY_PATH
25467   case $host_os in
25468   freebsd2*)
25469     shlibpath_overrides_runpath=yes
25470     ;;
25471   freebsd3.[01]* | freebsdelf3.[01]*)
25472     shlibpath_overrides_runpath=yes
25473     hardcode_into_libs=yes
25474     ;;
25475   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25476   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25477     shlibpath_overrides_runpath=no
25478     hardcode_into_libs=yes
25479     ;;
25480   freebsd*) # from 4.6 on
25481     shlibpath_overrides_runpath=yes
25482     hardcode_into_libs=yes
25483     ;;
25484   esac
25485   ;;
25486
25487 gnu*)
25488   version_type=linux
25489   need_lib_prefix=no
25490   need_version=no
25491   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25492   soname_spec='${libname}${release}${shared_ext}$major'
25493   shlibpath_var=LD_LIBRARY_PATH
25494   hardcode_into_libs=yes
25495   ;;
25496
25497 hpux9* | hpux10* | hpux11*)
25498   # Give a soname corresponding to the major version so that dld.sl refuses to
25499   # link against other versions.
25500   version_type=sunos
25501   need_lib_prefix=no
25502   need_version=no
25503   case $host_cpu in
25504   ia64*)
25505     shrext_cmds='.so'
25506     hardcode_into_libs=yes
25507     dynamic_linker="$host_os dld.so"
25508     shlibpath_var=LD_LIBRARY_PATH
25509     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25510     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25511     soname_spec='${libname}${release}${shared_ext}$major'
25512     if test "X$HPUX_IA64_MODE" = X32; then
25513       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25514     else
25515       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25516     fi
25517     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25518     ;;
25519    hppa*64*)
25520      shrext_cmds='.sl'
25521      hardcode_into_libs=yes
25522      dynamic_linker="$host_os dld.sl"
25523      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25524      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25525      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25526      soname_spec='${libname}${release}${shared_ext}$major'
25527      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25528      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25529      ;;
25530    *)
25531     shrext_cmds='.sl'
25532     dynamic_linker="$host_os dld.sl"
25533     shlibpath_var=SHLIB_PATH
25534     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25535     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25536     soname_spec='${libname}${release}${shared_ext}$major'
25537     ;;
25538   esac
25539   # HP-UX runs *really* slowly unless shared libraries are mode 555.
25540   postinstall_cmds='chmod 555 $lib'
25541   ;;
25542
25543 interix3*)
25544   version_type=linux
25545   need_lib_prefix=no
25546   need_version=no
25547   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25548   soname_spec='${libname}${release}${shared_ext}$major'
25549   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25550   shlibpath_var=LD_LIBRARY_PATH
25551   shlibpath_overrides_runpath=no
25552   hardcode_into_libs=yes
25553   ;;
25554
25555 irix5* | irix6* | nonstopux*)
25556   case $host_os in
25557     nonstopux*) version_type=nonstopux ;;
25558     *)
25559         if test "$lt_cv_prog_gnu_ld" = yes; then
25560                 version_type=linux
25561         else
25562                 version_type=irix
25563         fi ;;
25564   esac
25565   need_lib_prefix=no
25566   need_version=no
25567   soname_spec='${libname}${release}${shared_ext}$major'
25568   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25569   case $host_os in
25570   irix5* | nonstopux*)
25571     libsuff= shlibsuff=
25572     ;;
25573   *)
25574     case $LD in # libtool.m4 will add one of these switches to LD
25575     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25576       libsuff= shlibsuff= libmagic=32-bit;;
25577     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25578       libsuff=32 shlibsuff=N32 libmagic=N32;;
25579     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25580       libsuff=64 shlibsuff=64 libmagic=64-bit;;
25581     *) libsuff= shlibsuff= libmagic=never-match;;
25582     esac
25583     ;;
25584   esac
25585   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25586   shlibpath_overrides_runpath=no
25587   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25588   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25589   hardcode_into_libs=yes
25590   ;;
25591
25592 # No shared lib support for Linux oldld, aout, or coff.
25593 linux*oldld* | linux*aout* | linux*coff*)
25594   dynamic_linker=no
25595   ;;
25596
25597 # This must be Linux ELF.
25598 linux*)
25599   version_type=linux
25600   need_lib_prefix=no
25601   need_version=no
25602   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25603   soname_spec='${libname}${release}${shared_ext}$major'
25604   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25605   shlibpath_var=LD_LIBRARY_PATH
25606   shlibpath_overrides_runpath=no
25607   # This implies no fast_install, which is unacceptable.
25608   # Some rework will be needed to allow for fast_install
25609   # before this can be enabled.
25610   hardcode_into_libs=yes
25611
25612   # Append ld.so.conf contents to the search path
25613   if test -f /etc/ld.so.conf; then
25614     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' ' '`
25615     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25616   fi
25617
25618   # We used to test for /lib/ld.so.1 and disable shared libraries on
25619   # powerpc, because MkLinux only supported shared libraries with the
25620   # GNU dynamic linker.  Since this was broken with cross compilers,
25621   # most powerpc-linux boxes support dynamic linking these days and
25622   # people can always --disable-shared, the test was removed, and we
25623   # assume the GNU/Linux dynamic linker is in use.
25624   dynamic_linker='GNU/Linux ld.so'
25625   ;;
25626
25627 knetbsd*-gnu)
25628   version_type=linux
25629   need_lib_prefix=no
25630   need_version=no
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   shlibpath_var=LD_LIBRARY_PATH
25634   shlibpath_overrides_runpath=no
25635   hardcode_into_libs=yes
25636   dynamic_linker='GNU ld.so'
25637   ;;
25638
25639 netbsd*)
25640   version_type=sunos
25641   need_lib_prefix=no
25642   need_version=no
25643   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25644     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25645     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25646     dynamic_linker='NetBSD (a.out) ld.so'
25647   else
25648     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25649     soname_spec='${libname}${release}${shared_ext}$major'
25650     dynamic_linker='NetBSD ld.elf_so'
25651   fi
25652   shlibpath_var=LD_LIBRARY_PATH
25653   shlibpath_overrides_runpath=yes
25654   hardcode_into_libs=yes
25655   ;;
25656
25657 newsos6)
25658   version_type=linux
25659   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25660   shlibpath_var=LD_LIBRARY_PATH
25661   shlibpath_overrides_runpath=yes
25662   ;;
25663
25664 nto-qnx*)
25665   version_type=linux
25666   need_lib_prefix=no
25667   need_version=no
25668   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25669   soname_spec='${libname}${release}${shared_ext}$major'
25670   shlibpath_var=LD_LIBRARY_PATH
25671   shlibpath_overrides_runpath=yes
25672   ;;
25673
25674 openbsd*)
25675   version_type=sunos
25676   sys_lib_dlsearch_path_spec="/usr/lib"
25677   need_lib_prefix=no
25678   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25679   case $host_os in
25680     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25681     *)                         need_version=no  ;;
25682   esac
25683   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25684   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25685   shlibpath_var=LD_LIBRARY_PATH
25686   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25687     case $host_os in
25688       openbsd2.[89] | openbsd2.[89].*)
25689         shlibpath_overrides_runpath=no
25690         ;;
25691       *)
25692         shlibpath_overrides_runpath=yes
25693         ;;
25694       esac
25695   else
25696     shlibpath_overrides_runpath=yes
25697   fi
25698   ;;
25699
25700 os2*)
25701   libname_spec='$name'
25702   shrext_cmds=".dll"
25703   need_lib_prefix=no
25704   library_names_spec='$libname${shared_ext} $libname.a'
25705   dynamic_linker='OS/2 ld.exe'
25706   shlibpath_var=LIBPATH
25707   ;;
25708
25709 osf3* | osf4* | osf5*)
25710   version_type=osf
25711   need_lib_prefix=no
25712   need_version=no
25713   soname_spec='${libname}${release}${shared_ext}$major'
25714   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25715   shlibpath_var=LD_LIBRARY_PATH
25716   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25717   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25718   ;;
25719
25720 solaris*)
25721   version_type=linux
25722   need_lib_prefix=no
25723   need_version=no
25724   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25725   soname_spec='${libname}${release}${shared_ext}$major'
25726   shlibpath_var=LD_LIBRARY_PATH
25727   shlibpath_overrides_runpath=yes
25728   hardcode_into_libs=yes
25729   # ldd complains unless libraries are executable
25730   postinstall_cmds='chmod +x $lib'
25731   ;;
25732
25733 sunos4*)
25734   version_type=sunos
25735   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25736   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25737   shlibpath_var=LD_LIBRARY_PATH
25738   shlibpath_overrides_runpath=yes
25739   if test "$with_gnu_ld" = yes; then
25740     need_lib_prefix=no
25741   fi
25742   need_version=yes
25743   ;;
25744
25745 sysv4 | sysv4.3*)
25746   version_type=linux
25747   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25748   soname_spec='${libname}${release}${shared_ext}$major'
25749   shlibpath_var=LD_LIBRARY_PATH
25750   case $host_vendor in
25751     sni)
25752       shlibpath_overrides_runpath=no
25753       need_lib_prefix=no
25754       export_dynamic_flag_spec='${wl}-Blargedynsym'
25755       runpath_var=LD_RUN_PATH
25756       ;;
25757     siemens)
25758       need_lib_prefix=no
25759       ;;
25760     motorola)
25761       need_lib_prefix=no
25762       need_version=no
25763       shlibpath_overrides_runpath=no
25764       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25765       ;;
25766   esac
25767   ;;
25768
25769 sysv4*MP*)
25770   if test -d /usr/nec ;then
25771     version_type=linux
25772     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25773     soname_spec='$libname${shared_ext}.$major'
25774     shlibpath_var=LD_LIBRARY_PATH
25775   fi
25776   ;;
25777
25778 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25779   version_type=freebsd-elf
25780   need_lib_prefix=no
25781   need_version=no
25782   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25783   soname_spec='${libname}${release}${shared_ext}$major'
25784   shlibpath_var=LD_LIBRARY_PATH
25785   hardcode_into_libs=yes
25786   if test "$with_gnu_ld" = yes; then
25787     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25788     shlibpath_overrides_runpath=no
25789   else
25790     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25791     shlibpath_overrides_runpath=yes
25792     case $host_os in
25793       sco3.2v5*)
25794         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25795         ;;
25796     esac
25797   fi
25798   sys_lib_dlsearch_path_spec='/usr/lib'
25799   ;;
25800
25801 uts4*)
25802   version_type=linux
25803   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25804   soname_spec='${libname}${release}${shared_ext}$major'
25805   shlibpath_var=LD_LIBRARY_PATH
25806   ;;
25807
25808 *)
25809   dynamic_linker=no
25810   ;;
25811 esac
25812 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25813 echo "${ECHO_T}$dynamic_linker" >&6; }
25814 test "$dynamic_linker" = no && can_build_shared=no
25815
25816 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25817 if test "$GCC" = yes; then
25818   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25819 fi
25820
25821 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25822 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
25823 hardcode_action_GCJ=
25824 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25825    test -n "$runpath_var_GCJ" || \
25826    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25827
25828   # We can hardcode non-existant directories.
25829   if test "$hardcode_direct_GCJ" != no &&
25830      # If the only mechanism to avoid hardcoding is shlibpath_var, we
25831      # have to relink, otherwise we might link with an installed library
25832      # when we should be linking with a yet-to-be-installed one
25833      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25834      test "$hardcode_minus_L_GCJ" != no; then
25835     # Linking always hardcodes the temporary library directory.
25836     hardcode_action_GCJ=relink
25837   else
25838     # We can link without hardcoding, and we can hardcode nonexisting dirs.
25839     hardcode_action_GCJ=immediate
25840   fi
25841 else
25842   # We cannot hardcode anything, or else we can only hardcode existing
25843   # directories.
25844   hardcode_action_GCJ=unsupported
25845 fi
25846 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25847 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
25848
25849 if test "$hardcode_action_GCJ" = relink; then
25850   # Fast installation is not supported
25851   enable_fast_install=no
25852 elif test "$shlibpath_overrides_runpath" = yes ||
25853      test "$enable_shared" = no; then
25854   # Fast installation is not necessary
25855   enable_fast_install=needless
25856 fi
25857
25858
25859 # The else clause should only fire when bootstrapping the
25860 # libtool distribution, otherwise you forgot to ship ltmain.sh
25861 # with your package, and you will get complaints that there are
25862 # no rules to generate ltmain.sh.
25863 if test -f "$ltmain"; then
25864   # See if we are running on zsh, and set the options which allow our commands through
25865   # without removal of \ escapes.
25866   if test -n "${ZSH_VERSION+set}" ; then
25867     setopt NO_GLOB_SUBST
25868   fi
25869   # Now quote all the things that may contain metacharacters while being
25870   # careful not to overquote the AC_SUBSTed values.  We take copies of the
25871   # variables and quote the copies for generation of the libtool script.
25872   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25873     SED SHELL STRIP \
25874     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25875     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25876     deplibs_check_method reload_flag reload_cmds need_locks \
25877     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25878     lt_cv_sys_global_symbol_to_c_name_address \
25879     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25880     old_postinstall_cmds old_postuninstall_cmds \
25881     compiler_GCJ \
25882     CC_GCJ \
25883     LD_GCJ \
25884     lt_prog_compiler_wl_GCJ \
25885     lt_prog_compiler_pic_GCJ \
25886     lt_prog_compiler_static_GCJ \
25887     lt_prog_compiler_no_builtin_flag_GCJ \
25888     export_dynamic_flag_spec_GCJ \
25889     thread_safe_flag_spec_GCJ \
25890     whole_archive_flag_spec_GCJ \
25891     enable_shared_with_static_runtimes_GCJ \
25892     old_archive_cmds_GCJ \
25893     old_archive_from_new_cmds_GCJ \
25894     predep_objects_GCJ \
25895     postdep_objects_GCJ \
25896     predeps_GCJ \
25897     postdeps_GCJ \
25898     compiler_lib_search_path_GCJ \
25899     archive_cmds_GCJ \
25900     archive_expsym_cmds_GCJ \
25901     postinstall_cmds_GCJ \
25902     postuninstall_cmds_GCJ \
25903     old_archive_from_expsyms_cmds_GCJ \
25904     allow_undefined_flag_GCJ \
25905     no_undefined_flag_GCJ \
25906     export_symbols_cmds_GCJ \
25907     hardcode_libdir_flag_spec_GCJ \
25908     hardcode_libdir_flag_spec_ld_GCJ \
25909     hardcode_libdir_separator_GCJ \
25910     hardcode_automatic_GCJ \
25911     module_cmds_GCJ \
25912     module_expsym_cmds_GCJ \
25913     lt_cv_prog_compiler_c_o_GCJ \
25914     exclude_expsyms_GCJ \
25915     include_expsyms_GCJ; do
25916
25917     case $var in
25918     old_archive_cmds_GCJ | \
25919     old_archive_from_new_cmds_GCJ | \
25920     archive_cmds_GCJ | \
25921     archive_expsym_cmds_GCJ | \
25922     module_cmds_GCJ | \
25923     module_expsym_cmds_GCJ | \
25924     old_archive_from_expsyms_cmds_GCJ | \
25925     export_symbols_cmds_GCJ | \
25926     extract_expsyms_cmds | reload_cmds | finish_cmds | \
25927     postinstall_cmds | postuninstall_cmds | \
25928     old_postinstall_cmds | old_postuninstall_cmds | \
25929     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25930       # Double-quote double-evaled strings.
25931       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25932       ;;
25933     *)
25934       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25935       ;;
25936     esac
25937   done
25938
25939   case $lt_echo in
25940   *'\$0 --fallback-echo"')
25941     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25942     ;;
25943   esac
25944
25945 cfgfile="$ofile"
25946
25947   cat <<__EOF__ >> "$cfgfile"
25948 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
25949
25950 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25951
25952 # Shell to use when invoking shell scripts.
25953 SHELL=$lt_SHELL
25954
25955 # Whether or not to build shared libraries.
25956 build_libtool_libs=$enable_shared
25957
25958 # Whether or not to build static libraries.
25959 build_old_libs=$enable_static
25960
25961 # Whether or not to add -lc for building shared libraries.
25962 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25963
25964 # Whether or not to disallow shared libs when runtime libs are static
25965 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25966
25967 # Whether or not to optimize for fast installation.
25968 fast_install=$enable_fast_install
25969
25970 # The host system.
25971 host_alias=$host_alias
25972 host=$host
25973 host_os=$host_os
25974
25975 # The build system.
25976 build_alias=$build_alias
25977 build=$build
25978 build_os=$build_os
25979
25980 # An echo program that does not interpret backslashes.
25981 echo=$lt_echo
25982
25983 # The archiver.
25984 AR=$lt_AR
25985 AR_FLAGS=$lt_AR_FLAGS
25986
25987 # A C compiler.
25988 LTCC=$lt_LTCC
25989
25990 # LTCC compiler flags.
25991 LTCFLAGS=$lt_LTCFLAGS
25992
25993 # A language-specific compiler.
25994 CC=$lt_compiler_GCJ
25995
25996 # Is the compiler the GNU C compiler?
25997 with_gcc=$GCC_GCJ
25998
25999 # An ERE matcher.
26000 EGREP=$lt_EGREP
26001
26002 # The linker used to build libraries.
26003 LD=$lt_LD_GCJ
26004
26005 # Whether we need hard or soft links.
26006 LN_S=$lt_LN_S
26007
26008 # A BSD-compatible nm program.
26009 NM=$lt_NM
26010
26011 # A symbol stripping program
26012 STRIP=$lt_STRIP
26013
26014 # Used to examine libraries when file_magic_cmd begins "file"
26015 MAGIC_CMD=$MAGIC_CMD
26016
26017 # Used on cygwin: DLL creation program.
26018 DLLTOOL="$DLLTOOL"
26019
26020 # Used on cygwin: object dumper.
26021 OBJDUMP="$OBJDUMP"
26022
26023 # Used on cygwin: assembler.
26024 AS="$AS"
26025
26026 # The name of the directory that contains temporary libtool files.
26027 objdir=$objdir
26028
26029 # How to create reloadable object files.
26030 reload_flag=$lt_reload_flag
26031 reload_cmds=$lt_reload_cmds
26032
26033 # How to pass a linker flag through the compiler.
26034 wl=$lt_lt_prog_compiler_wl_GCJ
26035
26036 # Object file suffix (normally "o").
26037 objext="$ac_objext"
26038
26039 # Old archive suffix (normally "a").
26040 libext="$libext"
26041
26042 # Shared library suffix (normally ".so").
26043 shrext_cmds='$shrext_cmds'
26044
26045 # Executable file suffix (normally "").
26046 exeext="$exeext"
26047
26048 # Additional compiler flags for building library objects.
26049 pic_flag=$lt_lt_prog_compiler_pic_GCJ
26050 pic_mode=$pic_mode
26051
26052 # What is the maximum length of a command?
26053 max_cmd_len=$lt_cv_sys_max_cmd_len
26054
26055 # Does compiler simultaneously support -c and -o options?
26056 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26057
26058 # Must we lock files when doing compilation?
26059 need_locks=$lt_need_locks
26060
26061 # Do we need the lib prefix for modules?
26062 need_lib_prefix=$need_lib_prefix
26063
26064 # Do we need a version for libraries?
26065 need_version=$need_version
26066
26067 # Whether dlopen is supported.
26068 dlopen_support=$enable_dlopen
26069
26070 # Whether dlopen of programs is supported.
26071 dlopen_self=$enable_dlopen_self
26072
26073 # Whether dlopen of statically linked programs is supported.
26074 dlopen_self_static=$enable_dlopen_self_static
26075
26076 # Compiler flag to prevent dynamic linking.
26077 link_static_flag=$lt_lt_prog_compiler_static_GCJ
26078
26079 # Compiler flag to turn off builtin functions.
26080 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26081
26082 # Compiler flag to allow reflexive dlopens.
26083 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26084
26085 # Compiler flag to generate shared objects directly from archives.
26086 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26087
26088 # Compiler flag to generate thread-safe objects.
26089 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26090
26091 # Library versioning type.
26092 version_type=$version_type
26093
26094 # Format of library name prefix.
26095 libname_spec=$lt_libname_spec
26096
26097 # List of archive names.  First name is the real one, the rest are links.
26098 # The last name is the one that the linker finds with -lNAME.
26099 library_names_spec=$lt_library_names_spec
26100
26101 # The coded name of the library, if different from the real name.
26102 soname_spec=$lt_soname_spec
26103
26104 # Commands used to build and install an old-style archive.
26105 RANLIB=$lt_RANLIB
26106 old_archive_cmds=$lt_old_archive_cmds_GCJ
26107 old_postinstall_cmds=$lt_old_postinstall_cmds
26108 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26109
26110 # Create an old-style archive from a shared archive.
26111 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26112
26113 # Create a temporary old-style archive to link instead of a shared archive.
26114 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26115
26116 # Commands used to build and install a shared archive.
26117 archive_cmds=$lt_archive_cmds_GCJ
26118 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26119 postinstall_cmds=$lt_postinstall_cmds
26120 postuninstall_cmds=$lt_postuninstall_cmds
26121
26122 # Commands used to build a loadable module (assumed same as above if empty)
26123 module_cmds=$lt_module_cmds_GCJ
26124 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26125
26126 # Commands to strip libraries.
26127 old_striplib=$lt_old_striplib
26128 striplib=$lt_striplib
26129
26130 # Dependencies to place before the objects being linked to create a
26131 # shared library.
26132 predep_objects=$lt_predep_objects_GCJ
26133
26134 # Dependencies to place after the objects being linked to create a
26135 # shared library.
26136 postdep_objects=$lt_postdep_objects_GCJ
26137
26138 # Dependencies to place before the objects being linked to create a
26139 # shared library.
26140 predeps=$lt_predeps_GCJ
26141
26142 # Dependencies to place after the objects being linked to create a
26143 # shared library.
26144 postdeps=$lt_postdeps_GCJ
26145
26146 # The library search path used internally by the compiler when linking
26147 # a shared library.
26148 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26149
26150 # Method to check whether dependent libraries are shared objects.
26151 deplibs_check_method=$lt_deplibs_check_method
26152
26153 # Command to use when deplibs_check_method == file_magic.
26154 file_magic_cmd=$lt_file_magic_cmd
26155
26156 # Flag that allows shared libraries with undefined symbols to be built.
26157 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26158
26159 # Flag that forces no undefined symbols.
26160 no_undefined_flag=$lt_no_undefined_flag_GCJ
26161
26162 # Commands used to finish a libtool library installation in a directory.
26163 finish_cmds=$lt_finish_cmds
26164
26165 # Same as above, but a single script fragment to be evaled but not shown.
26166 finish_eval=$lt_finish_eval
26167
26168 # Take the output of nm and produce a listing of raw symbols and C names.
26169 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26170
26171 # Transform the output of nm in a proper C declaration
26172 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26173
26174 # Transform the output of nm in a C name address pair
26175 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26176
26177 # This is the shared library runtime path variable.
26178 runpath_var=$runpath_var
26179
26180 # This is the shared library path variable.
26181 shlibpath_var=$shlibpath_var
26182
26183 # Is shlibpath searched before the hard-coded library search path?
26184 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26185
26186 # How to hardcode a shared library path into an executable.
26187 hardcode_action=$hardcode_action_GCJ
26188
26189 # Whether we should hardcode library paths into libraries.
26190 hardcode_into_libs=$hardcode_into_libs
26191
26192 # Flag to hardcode \$libdir into a binary during linking.
26193 # This must work even if \$libdir does not exist.
26194 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26195
26196 # If ld is used when linking, flag to hardcode \$libdir into
26197 # a binary during linking. This must work even if \$libdir does
26198 # not exist.
26199 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26200
26201 # Whether we need a single -rpath flag with a separated argument.
26202 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26203
26204 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26205 # resulting binary.
26206 hardcode_direct=$hardcode_direct_GCJ
26207
26208 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26209 # resulting binary.
26210 hardcode_minus_L=$hardcode_minus_L_GCJ
26211
26212 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26213 # the resulting binary.
26214 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26215
26216 # Set to yes if building a shared library automatically hardcodes DIR into the library
26217 # and all subsequent libraries and executables linked against it.
26218 hardcode_automatic=$hardcode_automatic_GCJ
26219
26220 # Variables whose values should be saved in libtool wrapper scripts and
26221 # restored at relink time.
26222 variables_saved_for_relink="$variables_saved_for_relink"
26223
26224 # Whether libtool must link a program against all its dependency libraries.
26225 link_all_deplibs=$link_all_deplibs_GCJ
26226
26227 # Compile-time system search path for libraries
26228 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26229
26230 # Run-time system search path for libraries
26231 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26232
26233 # Fix the shell variable \$srcfile for the compiler.
26234 fix_srcfile_path="$fix_srcfile_path_GCJ"
26235
26236 # Set to yes if exported symbols are required.
26237 always_export_symbols=$always_export_symbols_GCJ
26238
26239 # The commands to list exported symbols.
26240 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26241
26242 # The commands to extract the exported symbol list from a shared archive.
26243 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26244
26245 # Symbols that should not be listed in the preloaded symbols.
26246 exclude_expsyms=$lt_exclude_expsyms_GCJ
26247
26248 # Symbols that must always be exported.
26249 include_expsyms=$lt_include_expsyms_GCJ
26250
26251 # ### END LIBTOOL TAG CONFIG: $tagname
26252
26253 __EOF__
26254
26255
26256 else
26257   # If there is no Makefile yet, we rely on a make rule to execute
26258   # `config.status --recheck' to rerun these tests and create the
26259   # libtool script then.
26260   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26261   if test -f "$ltmain_in"; then
26262     test -f Makefile && make "$ltmain"
26263   fi
26264 fi
26265
26266
26267 ac_ext=c
26268 ac_cpp='$CPP $CPPFLAGS'
26269 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26270 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26271 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26272
26273 CC="$lt_save_CC"
26274
26275         else
26276           tagname=""
26277         fi
26278         ;;
26279
26280       RC)
26281         ac_ext=c
26282 ac_cpp='$CPP $CPPFLAGS'
26283 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26284 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26285 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26286
26287
26288 # Source file extension for RC test sources.
26289 ac_ext=rc
26290
26291 # Object file extension for compiled RC test sources.
26292 objext=o
26293 objext_RC=$objext
26294
26295 # Code to be used in simple compile tests
26296 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26297
26298 # Code to be used in simple link tests
26299 lt_simple_link_test_code="$lt_simple_compile_test_code"
26300
26301 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26302
26303 # If no C compiler was specified, use CC.
26304 LTCC=${LTCC-"$CC"}
26305
26306 # If no C compiler flags were specified, use CFLAGS.
26307 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26308
26309 # Allow CC to be a program name with arguments.
26310 compiler=$CC
26311
26312
26313 # save warnings/boilerplate of simple test code
26314 ac_outfile=conftest.$ac_objext
26315 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26316 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26317 _lt_compiler_boilerplate=`cat conftest.err`
26318 $rm conftest*
26319
26320 ac_outfile=conftest.$ac_objext
26321 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26322 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26323 _lt_linker_boilerplate=`cat conftest.err`
26324 $rm conftest*
26325
26326
26327 # Allow CC to be a program name with arguments.
26328 lt_save_CC="$CC"
26329 CC=${RC-"windres"}
26330 compiler=$CC
26331 compiler_RC=$CC
26332 for cc_temp in $compiler""; do
26333   case $cc_temp in
26334     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26335     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26336     \-*) ;;
26337     *) break;;
26338   esac
26339 done
26340 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26341
26342 lt_cv_prog_compiler_c_o_RC=yes
26343
26344 # The else clause should only fire when bootstrapping the
26345 # libtool distribution, otherwise you forgot to ship ltmain.sh
26346 # with your package, and you will get complaints that there are
26347 # no rules to generate ltmain.sh.
26348 if test -f "$ltmain"; then
26349   # See if we are running on zsh, and set the options which allow our commands through
26350   # without removal of \ escapes.
26351   if test -n "${ZSH_VERSION+set}" ; then
26352     setopt NO_GLOB_SUBST
26353   fi
26354   # Now quote all the things that may contain metacharacters while being
26355   # careful not to overquote the AC_SUBSTed values.  We take copies of the
26356   # variables and quote the copies for generation of the libtool script.
26357   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26358     SED SHELL STRIP \
26359     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26360     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26361     deplibs_check_method reload_flag reload_cmds need_locks \
26362     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26363     lt_cv_sys_global_symbol_to_c_name_address \
26364     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26365     old_postinstall_cmds old_postuninstall_cmds \
26366     compiler_RC \
26367     CC_RC \
26368     LD_RC \
26369     lt_prog_compiler_wl_RC \
26370     lt_prog_compiler_pic_RC \
26371     lt_prog_compiler_static_RC \
26372     lt_prog_compiler_no_builtin_flag_RC \
26373     export_dynamic_flag_spec_RC \
26374     thread_safe_flag_spec_RC \
26375     whole_archive_flag_spec_RC \
26376     enable_shared_with_static_runtimes_RC \
26377     old_archive_cmds_RC \
26378     old_archive_from_new_cmds_RC \
26379     predep_objects_RC \
26380     postdep_objects_RC \
26381     predeps_RC \
26382     postdeps_RC \
26383     compiler_lib_search_path_RC \
26384     archive_cmds_RC \
26385     archive_expsym_cmds_RC \
26386     postinstall_cmds_RC \
26387     postuninstall_cmds_RC \
26388     old_archive_from_expsyms_cmds_RC \
26389     allow_undefined_flag_RC \
26390     no_undefined_flag_RC \
26391     export_symbols_cmds_RC \
26392     hardcode_libdir_flag_spec_RC \
26393     hardcode_libdir_flag_spec_ld_RC \
26394     hardcode_libdir_separator_RC \
26395     hardcode_automatic_RC \
26396     module_cmds_RC \
26397     module_expsym_cmds_RC \
26398     lt_cv_prog_compiler_c_o_RC \
26399     exclude_expsyms_RC \
26400     include_expsyms_RC; do
26401
26402     case $var in
26403     old_archive_cmds_RC | \
26404     old_archive_from_new_cmds_RC | \
26405     archive_cmds_RC | \
26406     archive_expsym_cmds_RC | \
26407     module_cmds_RC | \
26408     module_expsym_cmds_RC | \
26409     old_archive_from_expsyms_cmds_RC | \
26410     export_symbols_cmds_RC | \
26411     extract_expsyms_cmds | reload_cmds | finish_cmds | \
26412     postinstall_cmds | postuninstall_cmds | \
26413     old_postinstall_cmds | old_postuninstall_cmds | \
26414     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26415       # Double-quote double-evaled strings.
26416       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26417       ;;
26418     *)
26419       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26420       ;;
26421     esac
26422   done
26423
26424   case $lt_echo in
26425   *'\$0 --fallback-echo"')
26426     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26427     ;;
26428   esac
26429
26430 cfgfile="$ofile"
26431
26432   cat <<__EOF__ >> "$cfgfile"
26433 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26434
26435 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26436
26437 # Shell to use when invoking shell scripts.
26438 SHELL=$lt_SHELL
26439
26440 # Whether or not to build shared libraries.
26441 build_libtool_libs=$enable_shared
26442
26443 # Whether or not to build static libraries.
26444 build_old_libs=$enable_static
26445
26446 # Whether or not to add -lc for building shared libraries.
26447 build_libtool_need_lc=$archive_cmds_need_lc_RC
26448
26449 # Whether or not to disallow shared libs when runtime libs are static
26450 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26451
26452 # Whether or not to optimize for fast installation.
26453 fast_install=$enable_fast_install
26454
26455 # The host system.
26456 host_alias=$host_alias
26457 host=$host
26458 host_os=$host_os
26459
26460 # The build system.
26461 build_alias=$build_alias
26462 build=$build
26463 build_os=$build_os
26464
26465 # An echo program that does not interpret backslashes.
26466 echo=$lt_echo
26467
26468 # The archiver.
26469 AR=$lt_AR
26470 AR_FLAGS=$lt_AR_FLAGS
26471
26472 # A C compiler.
26473 LTCC=$lt_LTCC
26474
26475 # LTCC compiler flags.
26476 LTCFLAGS=$lt_LTCFLAGS
26477
26478 # A language-specific compiler.
26479 CC=$lt_compiler_RC
26480
26481 # Is the compiler the GNU C compiler?
26482 with_gcc=$GCC_RC
26483
26484 # An ERE matcher.
26485 EGREP=$lt_EGREP
26486
26487 # The linker used to build libraries.
26488 LD=$lt_LD_RC
26489
26490 # Whether we need hard or soft links.
26491 LN_S=$lt_LN_S
26492
26493 # A BSD-compatible nm program.
26494 NM=$lt_NM
26495
26496 # A symbol stripping program
26497 STRIP=$lt_STRIP
26498
26499 # Used to examine libraries when file_magic_cmd begins "file"
26500 MAGIC_CMD=$MAGIC_CMD
26501
26502 # Used on cygwin: DLL creation program.
26503 DLLTOOL="$DLLTOOL"
26504
26505 # Used on cygwin: object dumper.
26506 OBJDUMP="$OBJDUMP"
26507
26508 # Used on cygwin: assembler.
26509 AS="$AS"
26510
26511 # The name of the directory that contains temporary libtool files.
26512 objdir=$objdir
26513
26514 # How to create reloadable object files.
26515 reload_flag=$lt_reload_flag
26516 reload_cmds=$lt_reload_cmds
26517
26518 # How to pass a linker flag through the compiler.
26519 wl=$lt_lt_prog_compiler_wl_RC
26520
26521 # Object file suffix (normally "o").
26522 objext="$ac_objext"
26523
26524 # Old archive suffix (normally "a").
26525 libext="$libext"
26526
26527 # Shared library suffix (normally ".so").
26528 shrext_cmds='$shrext_cmds'
26529
26530 # Executable file suffix (normally "").
26531 exeext="$exeext"
26532
26533 # Additional compiler flags for building library objects.
26534 pic_flag=$lt_lt_prog_compiler_pic_RC
26535 pic_mode=$pic_mode
26536
26537 # What is the maximum length of a command?
26538 max_cmd_len=$lt_cv_sys_max_cmd_len
26539
26540 # Does compiler simultaneously support -c and -o options?
26541 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26542
26543 # Must we lock files when doing compilation?
26544 need_locks=$lt_need_locks
26545
26546 # Do we need the lib prefix for modules?
26547 need_lib_prefix=$need_lib_prefix
26548
26549 # Do we need a version for libraries?
26550 need_version=$need_version
26551
26552 # Whether dlopen is supported.
26553 dlopen_support=$enable_dlopen
26554
26555 # Whether dlopen of programs is supported.
26556 dlopen_self=$enable_dlopen_self
26557
26558 # Whether dlopen of statically linked programs is supported.
26559 dlopen_self_static=$enable_dlopen_self_static
26560
26561 # Compiler flag to prevent dynamic linking.
26562 link_static_flag=$lt_lt_prog_compiler_static_RC
26563
26564 # Compiler flag to turn off builtin functions.
26565 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26566
26567 # Compiler flag to allow reflexive dlopens.
26568 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26569
26570 # Compiler flag to generate shared objects directly from archives.
26571 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26572
26573 # Compiler flag to generate thread-safe objects.
26574 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26575
26576 # Library versioning type.
26577 version_type=$version_type
26578
26579 # Format of library name prefix.
26580 libname_spec=$lt_libname_spec
26581
26582 # List of archive names.  First name is the real one, the rest are links.
26583 # The last name is the one that the linker finds with -lNAME.
26584 library_names_spec=$lt_library_names_spec
26585
26586 # The coded name of the library, if different from the real name.
26587 soname_spec=$lt_soname_spec
26588
26589 # Commands used to build and install an old-style archive.
26590 RANLIB=$lt_RANLIB
26591 old_archive_cmds=$lt_old_archive_cmds_RC
26592 old_postinstall_cmds=$lt_old_postinstall_cmds
26593 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26594
26595 # Create an old-style archive from a shared archive.
26596 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26597
26598 # Create a temporary old-style archive to link instead of a shared archive.
26599 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26600
26601 # Commands used to build and install a shared archive.
26602 archive_cmds=$lt_archive_cmds_RC
26603 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26604 postinstall_cmds=$lt_postinstall_cmds
26605 postuninstall_cmds=$lt_postuninstall_cmds
26606
26607 # Commands used to build a loadable module (assumed same as above if empty)
26608 module_cmds=$lt_module_cmds_RC
26609 module_expsym_cmds=$lt_module_expsym_cmds_RC
26610
26611 # Commands to strip libraries.
26612 old_striplib=$lt_old_striplib
26613 striplib=$lt_striplib
26614
26615 # Dependencies to place before the objects being linked to create a
26616 # shared library.
26617 predep_objects=$lt_predep_objects_RC
26618
26619 # Dependencies to place after the objects being linked to create a
26620 # shared library.
26621 postdep_objects=$lt_postdep_objects_RC
26622
26623 # Dependencies to place before the objects being linked to create a
26624 # shared library.
26625 predeps=$lt_predeps_RC
26626
26627 # Dependencies to place after the objects being linked to create a
26628 # shared library.
26629 postdeps=$lt_postdeps_RC
26630
26631 # The library search path used internally by the compiler when linking
26632 # a shared library.
26633 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26634
26635 # Method to check whether dependent libraries are shared objects.
26636 deplibs_check_method=$lt_deplibs_check_method
26637
26638 # Command to use when deplibs_check_method == file_magic.
26639 file_magic_cmd=$lt_file_magic_cmd
26640
26641 # Flag that allows shared libraries with undefined symbols to be built.
26642 allow_undefined_flag=$lt_allow_undefined_flag_RC
26643
26644 # Flag that forces no undefined symbols.
26645 no_undefined_flag=$lt_no_undefined_flag_RC
26646
26647 # Commands used to finish a libtool library installation in a directory.
26648 finish_cmds=$lt_finish_cmds
26649
26650 # Same as above, but a single script fragment to be evaled but not shown.
26651 finish_eval=$lt_finish_eval
26652
26653 # Take the output of nm and produce a listing of raw symbols and C names.
26654 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26655
26656 # Transform the output of nm in a proper C declaration
26657 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26658
26659 # Transform the output of nm in a C name address pair
26660 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26661
26662 # This is the shared library runtime path variable.
26663 runpath_var=$runpath_var
26664
26665 # This is the shared library path variable.
26666 shlibpath_var=$shlibpath_var
26667
26668 # Is shlibpath searched before the hard-coded library search path?
26669 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26670
26671 # How to hardcode a shared library path into an executable.
26672 hardcode_action=$hardcode_action_RC
26673
26674 # Whether we should hardcode library paths into libraries.
26675 hardcode_into_libs=$hardcode_into_libs
26676
26677 # Flag to hardcode \$libdir into a binary during linking.
26678 # This must work even if \$libdir does not exist.
26679 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26680
26681 # If ld is used when linking, flag to hardcode \$libdir into
26682 # a binary during linking. This must work even if \$libdir does
26683 # not exist.
26684 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26685
26686 # Whether we need a single -rpath flag with a separated argument.
26687 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26688
26689 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26690 # resulting binary.
26691 hardcode_direct=$hardcode_direct_RC
26692
26693 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26694 # resulting binary.
26695 hardcode_minus_L=$hardcode_minus_L_RC
26696
26697 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26698 # the resulting binary.
26699 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26700
26701 # Set to yes if building a shared library automatically hardcodes DIR into the library
26702 # and all subsequent libraries and executables linked against it.
26703 hardcode_automatic=$hardcode_automatic_RC
26704
26705 # Variables whose values should be saved in libtool wrapper scripts and
26706 # restored at relink time.
26707 variables_saved_for_relink="$variables_saved_for_relink"
26708
26709 # Whether libtool must link a program against all its dependency libraries.
26710 link_all_deplibs=$link_all_deplibs_RC
26711
26712 # Compile-time system search path for libraries
26713 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26714
26715 # Run-time system search path for libraries
26716 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26717
26718 # Fix the shell variable \$srcfile for the compiler.
26719 fix_srcfile_path="$fix_srcfile_path_RC"
26720
26721 # Set to yes if exported symbols are required.
26722 always_export_symbols=$always_export_symbols_RC
26723
26724 # The commands to list exported symbols.
26725 export_symbols_cmds=$lt_export_symbols_cmds_RC
26726
26727 # The commands to extract the exported symbol list from a shared archive.
26728 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26729
26730 # Symbols that should not be listed in the preloaded symbols.
26731 exclude_expsyms=$lt_exclude_expsyms_RC
26732
26733 # Symbols that must always be exported.
26734 include_expsyms=$lt_include_expsyms_RC
26735
26736 # ### END LIBTOOL TAG CONFIG: $tagname
26737
26738 __EOF__
26739
26740
26741 else
26742   # If there is no Makefile yet, we rely on a make rule to execute
26743   # `config.status --recheck' to rerun these tests and create the
26744   # libtool script then.
26745   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26746   if test -f "$ltmain_in"; then
26747     test -f Makefile && make "$ltmain"
26748   fi
26749 fi
26750
26751
26752 ac_ext=c
26753 ac_cpp='$CPP $CPPFLAGS'
26754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26757
26758 CC="$lt_save_CC"
26759
26760         ;;
26761
26762       *)
26763         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26764 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26765    { (exit 1); exit 1; }; }
26766         ;;
26767       esac
26768
26769       # Append the new tag name to the list of available tags.
26770       if test -n "$tagname" ; then
26771       available_tags="$available_tags $tagname"
26772     fi
26773     fi
26774   done
26775   IFS="$lt_save_ifs"
26776
26777   # Now substitute the updated list of available tags.
26778   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26779     mv "${ofile}T" "$ofile"
26780     chmod +x "$ofile"
26781   else
26782     rm -f "${ofile}T"
26783     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26784 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26785    { (exit 1); exit 1; }; }
26786   fi
26787 fi
26788
26789
26790
26791 # This can be used to rebuild libtool when needed
26792 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26793
26794 # Always use our own libtool.
26795 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
26796
26797 # Prevent multiple expansion
26798
26799
26800
26801
26802
26803
26804
26805
26806
26807
26808
26809
26810
26811
26812
26813
26814
26815
26816
26817
26818
26819 if test "$lt_cv_dlopen_self" = "yes" ; then
26820
26821 cat >>confdefs.h <<\_ACEOF
26822 #define CAN_DLOPEN_SELF 1
26823 _ACEOF
26824
26825 fi
26826
26827 if test "$WITH_LLVMGCCDIR" = "default" ; then
26828   LLVMGCC="llvm-gcc${EXEEXT}"
26829   LLVMGXX="llvm-g++${EXEEXT}"
26830   # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26831 set dummy $LLVMGCC; ac_word=$2
26832 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26834 if test "${ac_cv_path_LLVMGCC+set}" = set; then
26835   echo $ECHO_N "(cached) $ECHO_C" >&6
26836 else
26837   case $LLVMGCC in
26838   [\\/]* | ?:[\\/]*)
26839   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26840   ;;
26841   *)
26842   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26843 for as_dir in $PATH
26844 do
26845   IFS=$as_save_IFS
26846   test -z "$as_dir" && as_dir=.
26847   for ac_exec_ext in '' $ac_executable_extensions; do
26848   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26849     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26850     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26851     break 2
26852   fi
26853 done
26854 done
26855 IFS=$as_save_IFS
26856
26857   ;;
26858 esac
26859 fi
26860 LLVMGCC=$ac_cv_path_LLVMGCC
26861 if test -n "$LLVMGCC"; then
26862   { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26863 echo "${ECHO_T}$LLVMGCC" >&6; }
26864 else
26865   { echo "$as_me:$LINENO: result: no" >&5
26866 echo "${ECHO_T}no" >&6; }
26867 fi
26868
26869
26870   # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26871 set dummy $LLVMGXX; ac_word=$2
26872 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26874 if test "${ac_cv_path_LLVMGXX+set}" = set; then
26875   echo $ECHO_N "(cached) $ECHO_C" >&6
26876 else
26877   case $LLVMGXX in
26878   [\\/]* | ?:[\\/]*)
26879   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26880   ;;
26881   *)
26882   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26883 for as_dir in $PATH
26884 do
26885   IFS=$as_save_IFS
26886   test -z "$as_dir" && as_dir=.
26887   for ac_exec_ext in '' $ac_executable_extensions; do
26888   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26889     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26890     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26891     break 2
26892   fi
26893 done
26894 done
26895 IFS=$as_save_IFS
26896
26897   ;;
26898 esac
26899 fi
26900 LLVMGXX=$ac_cv_path_LLVMGXX
26901 if test -n "$LLVMGXX"; then
26902   { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26903 echo "${ECHO_T}$LLVMGXX" >&6; }
26904 else
26905   { echo "$as_me:$LINENO: result: no" >&5
26906 echo "${ECHO_T}no" >&6; }
26907 fi
26908
26909
26910 else
26911   if test -z "$LLVMGCC"; then
26912     LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26913   fi
26914   if test -z "$LLVMGXX"; then
26915     LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
26916   fi
26917   LLVMGCC=$LLVMGCC
26918
26919   LLVMGXX=$LLVMGXX
26920
26921 fi
26922
26923 { echo "$as_me:$LINENO: checking tool compatibility" >&5
26924 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
26925
26926 ICC=no
26927 IXX=no
26928 case $CC in
26929   icc*|icpc*)
26930     ICC=yes
26931     IXX=yes
26932     ;;
26933    *)
26934     ;;
26935 esac
26936
26937 if test "$GCC" != "yes" && test "$ICC" != "yes"
26938 then
26939   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26940 echo "$as_me: error: gcc|icc required but not found" >&2;}
26941    { (exit 1); exit 1; }; }
26942 fi
26943
26944 if test "$GXX" != "yes" && test "$IXX" != "yes"
26945 then
26946   { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
26947 echo "$as_me: error: g++|icc required but not found" >&2;}
26948    { (exit 1); exit 1; }; }
26949 fi
26950
26951 if test "$GCC" = "yes"
26952 then
26953   gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
26954   if test "$gccmajor" -lt "3"
26955   then
26956     { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
26957 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
26958    { (exit 1); exit 1; }; }
26959   fi
26960 fi
26961
26962 if test -z "$llvm_cv_gnu_make_command"
26963 then
26964   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
26965 echo "$as_me: error: GNU Make required but not found" >&2;}
26966    { (exit 1); exit 1; }; }
26967 fi
26968
26969 { echo "$as_me:$LINENO: result: ok" >&5
26970 echo "${ECHO_T}ok" >&6; }
26971
26972
26973
26974 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
26975 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
26976 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
26977   echo $ECHO_N "(cached) $ECHO_C" >&6
26978 else
26979   ac_check_lib_save_LIBS=$LIBS
26980 LIBS="-lelf  $LIBS"
26981 cat >conftest.$ac_ext <<_ACEOF
26982 /* confdefs.h.  */
26983 _ACEOF
26984 cat confdefs.h >>conftest.$ac_ext
26985 cat >>conftest.$ac_ext <<_ACEOF
26986 /* end confdefs.h.  */
26987
26988 /* Override any GCC internal prototype to avoid an error.
26989    Use char because int might match the return type of a GCC
26990    builtin and then its argument prototype would still apply.  */
26991 #ifdef __cplusplus
26992 extern "C"
26993 #endif
26994 char elf_begin ();
26995 int
26996 main ()
26997 {
26998 return elf_begin ();
26999   ;
27000   return 0;
27001 }
27002 _ACEOF
27003 rm -f conftest.$ac_objext conftest$ac_exeext
27004 if { (ac_try="$ac_link"
27005 case "(($ac_try" in
27006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27007   *) ac_try_echo=$ac_try;;
27008 esac
27009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27010   (eval "$ac_link") 2>conftest.er1
27011   ac_status=$?
27012   grep -v '^ *+' conftest.er1 >conftest.err
27013   rm -f conftest.er1
27014   cat conftest.err >&5
27015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27016   (exit $ac_status); } &&
27017          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27018   { (case "(($ac_try" in
27019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27020   *) ac_try_echo=$ac_try;;
27021 esac
27022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27023   (eval "$ac_try") 2>&5
27024   ac_status=$?
27025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27026   (exit $ac_status); }; } &&
27027          { ac_try='test -s conftest$ac_exeext'
27028   { (case "(($ac_try" in
27029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27030   *) ac_try_echo=$ac_try;;
27031 esac
27032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27033   (eval "$ac_try") 2>&5
27034   ac_status=$?
27035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27036   (exit $ac_status); }; }; then
27037   ac_cv_lib_elf_elf_begin=yes
27038 else
27039   echo "$as_me: failed program was:" >&5
27040 sed 's/^/| /' conftest.$ac_ext >&5
27041
27042         ac_cv_lib_elf_elf_begin=no
27043 fi
27044
27045 rm -f core conftest.err conftest.$ac_objext \
27046       conftest$ac_exeext conftest.$ac_ext
27047 LIBS=$ac_check_lib_save_LIBS
27048 fi
27049 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
27050 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
27051 if test $ac_cv_lib_elf_elf_begin = yes; then
27052   cat >>confdefs.h <<_ACEOF
27053 #define HAVE_LIBELF 1
27054 _ACEOF
27055
27056   LIBS="-lelf $LIBS"
27057
27058 fi
27059
27060
27061 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
27062 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
27063 if test "${ac_cv_lib_m_sin+set}" = set; then
27064   echo $ECHO_N "(cached) $ECHO_C" >&6
27065 else
27066   ac_check_lib_save_LIBS=$LIBS
27067 LIBS="-lm  $LIBS"
27068 cat >conftest.$ac_ext <<_ACEOF
27069 /* confdefs.h.  */
27070 _ACEOF
27071 cat confdefs.h >>conftest.$ac_ext
27072 cat >>conftest.$ac_ext <<_ACEOF
27073 /* end confdefs.h.  */
27074
27075 /* Override any GCC internal prototype to avoid an error.
27076    Use char because int might match the return type of a GCC
27077    builtin and then its argument prototype would still apply.  */
27078 #ifdef __cplusplus
27079 extern "C"
27080 #endif
27081 char sin ();
27082 int
27083 main ()
27084 {
27085 return sin ();
27086   ;
27087   return 0;
27088 }
27089 _ACEOF
27090 rm -f conftest.$ac_objext conftest$ac_exeext
27091 if { (ac_try="$ac_link"
27092 case "(($ac_try" in
27093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27094   *) ac_try_echo=$ac_try;;
27095 esac
27096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27097   (eval "$ac_link") 2>conftest.er1
27098   ac_status=$?
27099   grep -v '^ *+' conftest.er1 >conftest.err
27100   rm -f conftest.er1
27101   cat conftest.err >&5
27102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27103   (exit $ac_status); } &&
27104          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27105   { (case "(($ac_try" in
27106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27107   *) ac_try_echo=$ac_try;;
27108 esac
27109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27110   (eval "$ac_try") 2>&5
27111   ac_status=$?
27112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27113   (exit $ac_status); }; } &&
27114          { ac_try='test -s conftest$ac_exeext'
27115   { (case "(($ac_try" in
27116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27117   *) ac_try_echo=$ac_try;;
27118 esac
27119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27120   (eval "$ac_try") 2>&5
27121   ac_status=$?
27122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27123   (exit $ac_status); }; }; then
27124   ac_cv_lib_m_sin=yes
27125 else
27126   echo "$as_me: failed program was:" >&5
27127 sed 's/^/| /' conftest.$ac_ext >&5
27128
27129         ac_cv_lib_m_sin=no
27130 fi
27131
27132 rm -f core conftest.err conftest.$ac_objext \
27133       conftest$ac_exeext conftest.$ac_ext
27134 LIBS=$ac_check_lib_save_LIBS
27135 fi
27136 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27137 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27138 if test $ac_cv_lib_m_sin = yes; then
27139   cat >>confdefs.h <<_ACEOF
27140 #define HAVE_LIBM 1
27141 _ACEOF
27142
27143   LIBS="-lm $LIBS"
27144
27145 fi
27146
27147 if test "$llvm_cv_os_type" = "MingW" ; then
27148
27149 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27150 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27151 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27152   echo $ECHO_N "(cached) $ECHO_C" >&6
27153 else
27154   ac_check_lib_save_LIBS=$LIBS
27155 LIBS="-limagehlp  $LIBS"
27156 cat >conftest.$ac_ext <<_ACEOF
27157 /* confdefs.h.  */
27158 _ACEOF
27159 cat confdefs.h >>conftest.$ac_ext
27160 cat >>conftest.$ac_ext <<_ACEOF
27161 /* end confdefs.h.  */
27162
27163
27164 int
27165 main ()
27166 {
27167 return main ();
27168   ;
27169   return 0;
27170 }
27171 _ACEOF
27172 rm -f conftest.$ac_objext conftest$ac_exeext
27173 if { (ac_try="$ac_link"
27174 case "(($ac_try" in
27175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27176   *) ac_try_echo=$ac_try;;
27177 esac
27178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27179   (eval "$ac_link") 2>conftest.er1
27180   ac_status=$?
27181   grep -v '^ *+' conftest.er1 >conftest.err
27182   rm -f conftest.er1
27183   cat conftest.err >&5
27184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27185   (exit $ac_status); } &&
27186          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27187   { (case "(($ac_try" in
27188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27189   *) ac_try_echo=$ac_try;;
27190 esac
27191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27192   (eval "$ac_try") 2>&5
27193   ac_status=$?
27194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27195   (exit $ac_status); }; } &&
27196          { ac_try='test -s conftest$ac_exeext'
27197   { (case "(($ac_try" in
27198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27199   *) ac_try_echo=$ac_try;;
27200 esac
27201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27202   (eval "$ac_try") 2>&5
27203   ac_status=$?
27204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27205   (exit $ac_status); }; }; then
27206   ac_cv_lib_imagehlp_main=yes
27207 else
27208   echo "$as_me: failed program was:" >&5
27209 sed 's/^/| /' conftest.$ac_ext >&5
27210
27211         ac_cv_lib_imagehlp_main=no
27212 fi
27213
27214 rm -f core conftest.err conftest.$ac_objext \
27215       conftest$ac_exeext conftest.$ac_ext
27216 LIBS=$ac_check_lib_save_LIBS
27217 fi
27218 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27219 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27220 if test $ac_cv_lib_imagehlp_main = yes; then
27221   cat >>confdefs.h <<_ACEOF
27222 #define HAVE_LIBIMAGEHLP 1
27223 _ACEOF
27224
27225   LIBS="-limagehlp $LIBS"
27226
27227 fi
27228
27229
27230 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27231 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27232 if test "${ac_cv_lib_psapi_main+set}" = set; then
27233   echo $ECHO_N "(cached) $ECHO_C" >&6
27234 else
27235   ac_check_lib_save_LIBS=$LIBS
27236 LIBS="-lpsapi  $LIBS"
27237 cat >conftest.$ac_ext <<_ACEOF
27238 /* confdefs.h.  */
27239 _ACEOF
27240 cat confdefs.h >>conftest.$ac_ext
27241 cat >>conftest.$ac_ext <<_ACEOF
27242 /* end confdefs.h.  */
27243
27244
27245 int
27246 main ()
27247 {
27248 return main ();
27249   ;
27250   return 0;
27251 }
27252 _ACEOF
27253 rm -f conftest.$ac_objext conftest$ac_exeext
27254 if { (ac_try="$ac_link"
27255 case "(($ac_try" in
27256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27257   *) ac_try_echo=$ac_try;;
27258 esac
27259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27260   (eval "$ac_link") 2>conftest.er1
27261   ac_status=$?
27262   grep -v '^ *+' conftest.er1 >conftest.err
27263   rm -f conftest.er1
27264   cat conftest.err >&5
27265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27266   (exit $ac_status); } &&
27267          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27268   { (case "(($ac_try" in
27269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27270   *) ac_try_echo=$ac_try;;
27271 esac
27272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27273   (eval "$ac_try") 2>&5
27274   ac_status=$?
27275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27276   (exit $ac_status); }; } &&
27277          { ac_try='test -s conftest$ac_exeext'
27278   { (case "(($ac_try" in
27279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27280   *) ac_try_echo=$ac_try;;
27281 esac
27282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27283   (eval "$ac_try") 2>&5
27284   ac_status=$?
27285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27286   (exit $ac_status); }; }; then
27287   ac_cv_lib_psapi_main=yes
27288 else
27289   echo "$as_me: failed program was:" >&5
27290 sed 's/^/| /' conftest.$ac_ext >&5
27291
27292         ac_cv_lib_psapi_main=no
27293 fi
27294
27295 rm -f core conftest.err conftest.$ac_objext \
27296       conftest$ac_exeext conftest.$ac_ext
27297 LIBS=$ac_check_lib_save_LIBS
27298 fi
27299 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27300 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27301 if test $ac_cv_lib_psapi_main = yes; then
27302   cat >>confdefs.h <<_ACEOF
27303 #define HAVE_LIBPSAPI 1
27304 _ACEOF
27305
27306   LIBS="-lpsapi $LIBS"
27307
27308 fi
27309
27310 fi
27311
27312 { echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
27313 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6; }
27314 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27315   echo $ECHO_N "(cached) $ECHO_C" >&6
27316 else
27317   ac_func_search_save_LIBS=$LIBS
27318 cat >conftest.$ac_ext <<_ACEOF
27319 /* confdefs.h.  */
27320 _ACEOF
27321 cat confdefs.h >>conftest.$ac_ext
27322 cat >>conftest.$ac_ext <<_ACEOF
27323 /* end confdefs.h.  */
27324
27325 /* Override any GCC internal prototype to avoid an error.
27326    Use char because int might match the return type of a GCC
27327    builtin and then its argument prototype would still apply.  */
27328 #ifdef __cplusplus
27329 extern "C"
27330 #endif
27331 char lt_dlopen ();
27332 int
27333 main ()
27334 {
27335 return lt_dlopen ();
27336   ;
27337   return 0;
27338 }
27339 _ACEOF
27340 for ac_lib in '' ltdl; do
27341   if test -z "$ac_lib"; then
27342     ac_res="none required"
27343   else
27344     ac_res=-l$ac_lib
27345     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27346   fi
27347   rm -f conftest.$ac_objext conftest$ac_exeext
27348 if { (ac_try="$ac_link"
27349 case "(($ac_try" in
27350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27351   *) ac_try_echo=$ac_try;;
27352 esac
27353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27354   (eval "$ac_link") 2>conftest.er1
27355   ac_status=$?
27356   grep -v '^ *+' conftest.er1 >conftest.err
27357   rm -f conftest.er1
27358   cat conftest.err >&5
27359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27360   (exit $ac_status); } &&
27361          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27362   { (case "(($ac_try" in
27363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27364   *) ac_try_echo=$ac_try;;
27365 esac
27366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27367   (eval "$ac_try") 2>&5
27368   ac_status=$?
27369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27370   (exit $ac_status); }; } &&
27371          { ac_try='test -s conftest$ac_exeext'
27372   { (case "(($ac_try" in
27373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27374   *) ac_try_echo=$ac_try;;
27375 esac
27376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27377   (eval "$ac_try") 2>&5
27378   ac_status=$?
27379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27380   (exit $ac_status); }; }; then
27381   ac_cv_search_lt_dlopen=$ac_res
27382 else
27383   echo "$as_me: failed program was:" >&5
27384 sed 's/^/| /' conftest.$ac_ext >&5
27385
27386
27387 fi
27388
27389 rm -f core conftest.err conftest.$ac_objext \
27390       conftest$ac_exeext
27391   if test "${ac_cv_search_lt_dlopen+set}" = set; then
27392   break
27393 fi
27394 done
27395 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27396   :
27397 else
27398   ac_cv_search_lt_dlopen=no
27399 fi
27400 rm conftest.$ac_ext
27401 LIBS=$ac_func_search_save_LIBS
27402 fi
27403 { echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
27404 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6; }
27405 ac_res=$ac_cv_search_lt_dlopen
27406 if test "$ac_res" != no; then
27407   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27408
27409 cat >>confdefs.h <<\_ACEOF
27410 #define HAVE_LT_DLOPEN 1
27411 _ACEOF
27412
27413 else
27414   { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
27415                            not be available" >&5
27416 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
27417                            not be available" >&2;}
27418 fi
27419
27420
27421 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27422 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27423 if test "${ac_cv_search_dlopen+set}" = set; then
27424   echo $ECHO_N "(cached) $ECHO_C" >&6
27425 else
27426   ac_func_search_save_LIBS=$LIBS
27427 cat >conftest.$ac_ext <<_ACEOF
27428 /* confdefs.h.  */
27429 _ACEOF
27430 cat confdefs.h >>conftest.$ac_ext
27431 cat >>conftest.$ac_ext <<_ACEOF
27432 /* end confdefs.h.  */
27433
27434 /* Override any GCC internal prototype to avoid an error.
27435    Use char because int might match the return type of a GCC
27436    builtin and then its argument prototype would still apply.  */
27437 #ifdef __cplusplus
27438 extern "C"
27439 #endif
27440 char dlopen ();
27441 int
27442 main ()
27443 {
27444 return dlopen ();
27445   ;
27446   return 0;
27447 }
27448 _ACEOF
27449 for ac_lib in '' dl; do
27450   if test -z "$ac_lib"; then
27451     ac_res="none required"
27452   else
27453     ac_res=-l$ac_lib
27454     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27455   fi
27456   rm -f conftest.$ac_objext conftest$ac_exeext
27457 if { (ac_try="$ac_link"
27458 case "(($ac_try" in
27459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27460   *) ac_try_echo=$ac_try;;
27461 esac
27462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27463   (eval "$ac_link") 2>conftest.er1
27464   ac_status=$?
27465   grep -v '^ *+' conftest.er1 >conftest.err
27466   rm -f conftest.er1
27467   cat conftest.err >&5
27468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27469   (exit $ac_status); } &&
27470          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27471   { (case "(($ac_try" in
27472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27473   *) ac_try_echo=$ac_try;;
27474 esac
27475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27476   (eval "$ac_try") 2>&5
27477   ac_status=$?
27478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27479   (exit $ac_status); }; } &&
27480          { ac_try='test -s conftest$ac_exeext'
27481   { (case "(($ac_try" in
27482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27483   *) ac_try_echo=$ac_try;;
27484 esac
27485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27486   (eval "$ac_try") 2>&5
27487   ac_status=$?
27488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27489   (exit $ac_status); }; }; then
27490   ac_cv_search_dlopen=$ac_res
27491 else
27492   echo "$as_me: failed program was:" >&5
27493 sed 's/^/| /' conftest.$ac_ext >&5
27494
27495
27496 fi
27497
27498 rm -f core conftest.err conftest.$ac_objext \
27499       conftest$ac_exeext
27500   if test "${ac_cv_search_dlopen+set}" = set; then
27501   break
27502 fi
27503 done
27504 if test "${ac_cv_search_dlopen+set}" = set; then
27505   :
27506 else
27507   ac_cv_search_dlopen=no
27508 fi
27509 rm conftest.$ac_ext
27510 LIBS=$ac_func_search_save_LIBS
27511 fi
27512 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27513 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27514 ac_res=$ac_cv_search_dlopen
27515 if test "$ac_res" != no; then
27516   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27517
27518 cat >>confdefs.h <<\_ACEOF
27519 #define HAVE_DLOPEN 1
27520 _ACEOF
27521
27522 else
27523   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27524 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27525 fi
27526
27527
27528 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27529 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27530 if test "${ac_cv_search_mallinfo+set}" = set; then
27531   echo $ECHO_N "(cached) $ECHO_C" >&6
27532 else
27533   ac_func_search_save_LIBS=$LIBS
27534 cat >conftest.$ac_ext <<_ACEOF
27535 /* confdefs.h.  */
27536 _ACEOF
27537 cat confdefs.h >>conftest.$ac_ext
27538 cat >>conftest.$ac_ext <<_ACEOF
27539 /* end confdefs.h.  */
27540
27541 /* Override any GCC internal prototype to avoid an error.
27542    Use char because int might match the return type of a GCC
27543    builtin and then its argument prototype would still apply.  */
27544 #ifdef __cplusplus
27545 extern "C"
27546 #endif
27547 char mallinfo ();
27548 int
27549 main ()
27550 {
27551 return mallinfo ();
27552   ;
27553   return 0;
27554 }
27555 _ACEOF
27556 for ac_lib in '' malloc; do
27557   if test -z "$ac_lib"; then
27558     ac_res="none required"
27559   else
27560     ac_res=-l$ac_lib
27561     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27562   fi
27563   rm -f conftest.$ac_objext conftest$ac_exeext
27564 if { (ac_try="$ac_link"
27565 case "(($ac_try" in
27566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27567   *) ac_try_echo=$ac_try;;
27568 esac
27569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27570   (eval "$ac_link") 2>conftest.er1
27571   ac_status=$?
27572   grep -v '^ *+' conftest.er1 >conftest.err
27573   rm -f conftest.er1
27574   cat conftest.err >&5
27575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27576   (exit $ac_status); } &&
27577          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27578   { (case "(($ac_try" in
27579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27580   *) ac_try_echo=$ac_try;;
27581 esac
27582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27583   (eval "$ac_try") 2>&5
27584   ac_status=$?
27585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27586   (exit $ac_status); }; } &&
27587          { ac_try='test -s conftest$ac_exeext'
27588   { (case "(($ac_try" in
27589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27590   *) ac_try_echo=$ac_try;;
27591 esac
27592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27593   (eval "$ac_try") 2>&5
27594   ac_status=$?
27595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27596   (exit $ac_status); }; }; then
27597   ac_cv_search_mallinfo=$ac_res
27598 else
27599   echo "$as_me: failed program was:" >&5
27600 sed 's/^/| /' conftest.$ac_ext >&5
27601
27602
27603 fi
27604
27605 rm -f core conftest.err conftest.$ac_objext \
27606       conftest$ac_exeext
27607   if test "${ac_cv_search_mallinfo+set}" = set; then
27608   break
27609 fi
27610 done
27611 if test "${ac_cv_search_mallinfo+set}" = set; then
27612   :
27613 else
27614   ac_cv_search_mallinfo=no
27615 fi
27616 rm conftest.$ac_ext
27617 LIBS=$ac_func_search_save_LIBS
27618 fi
27619 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27620 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27621 ac_res=$ac_cv_search_mallinfo
27622 if test "$ac_res" != no; then
27623   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27624
27625 cat >>confdefs.h <<\_ACEOF
27626 #define HAVE_MALLINFO 1
27627 _ACEOF
27628
27629 fi
27630
27631
27632 if test "$ENABLE_THREADS" -eq 1 ; then
27633
27634 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27635 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27636 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27637   echo $ECHO_N "(cached) $ECHO_C" >&6
27638 else
27639   ac_check_lib_save_LIBS=$LIBS
27640 LIBS="-lpthread  $LIBS"
27641 cat >conftest.$ac_ext <<_ACEOF
27642 /* confdefs.h.  */
27643 _ACEOF
27644 cat confdefs.h >>conftest.$ac_ext
27645 cat >>conftest.$ac_ext <<_ACEOF
27646 /* end confdefs.h.  */
27647
27648 /* Override any GCC internal prototype to avoid an error.
27649    Use char because int might match the return type of a GCC
27650    builtin and then its argument prototype would still apply.  */
27651 #ifdef __cplusplus
27652 extern "C"
27653 #endif
27654 char pthread_mutex_init ();
27655 int
27656 main ()
27657 {
27658 return pthread_mutex_init ();
27659   ;
27660   return 0;
27661 }
27662 _ACEOF
27663 rm -f conftest.$ac_objext conftest$ac_exeext
27664 if { (ac_try="$ac_link"
27665 case "(($ac_try" in
27666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27667   *) ac_try_echo=$ac_try;;
27668 esac
27669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27670   (eval "$ac_link") 2>conftest.er1
27671   ac_status=$?
27672   grep -v '^ *+' conftest.er1 >conftest.err
27673   rm -f conftest.er1
27674   cat conftest.err >&5
27675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27676   (exit $ac_status); } &&
27677          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27678   { (case "(($ac_try" in
27679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27680   *) ac_try_echo=$ac_try;;
27681 esac
27682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27683   (eval "$ac_try") 2>&5
27684   ac_status=$?
27685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27686   (exit $ac_status); }; } &&
27687          { ac_try='test -s conftest$ac_exeext'
27688   { (case "(($ac_try" in
27689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27690   *) ac_try_echo=$ac_try;;
27691 esac
27692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27693   (eval "$ac_try") 2>&5
27694   ac_status=$?
27695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27696   (exit $ac_status); }; }; then
27697   ac_cv_lib_pthread_pthread_mutex_init=yes
27698 else
27699   echo "$as_me: failed program was:" >&5
27700 sed 's/^/| /' conftest.$ac_ext >&5
27701
27702         ac_cv_lib_pthread_pthread_mutex_init=no
27703 fi
27704
27705 rm -f core conftest.err conftest.$ac_objext \
27706       conftest$ac_exeext conftest.$ac_ext
27707 LIBS=$ac_check_lib_save_LIBS
27708 fi
27709 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27710 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
27711 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27712   cat >>confdefs.h <<_ACEOF
27713 #define HAVE_LIBPTHREAD 1
27714 _ACEOF
27715
27716   LIBS="-lpthread $LIBS"
27717
27718 fi
27719
27720   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27721 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
27722 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27723   echo $ECHO_N "(cached) $ECHO_C" >&6
27724 else
27725   ac_func_search_save_LIBS=$LIBS
27726 cat >conftest.$ac_ext <<_ACEOF
27727 /* confdefs.h.  */
27728 _ACEOF
27729 cat confdefs.h >>conftest.$ac_ext
27730 cat >>conftest.$ac_ext <<_ACEOF
27731 /* end confdefs.h.  */
27732
27733 /* Override any GCC internal prototype to avoid an error.
27734    Use char because int might match the return type of a GCC
27735    builtin and then its argument prototype would still apply.  */
27736 #ifdef __cplusplus
27737 extern "C"
27738 #endif
27739 char pthread_mutex_lock ();
27740 int
27741 main ()
27742 {
27743 return pthread_mutex_lock ();
27744   ;
27745   return 0;
27746 }
27747 _ACEOF
27748 for ac_lib in '' pthread; do
27749   if test -z "$ac_lib"; then
27750     ac_res="none required"
27751   else
27752     ac_res=-l$ac_lib
27753     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27754   fi
27755   rm -f conftest.$ac_objext conftest$ac_exeext
27756 if { (ac_try="$ac_link"
27757 case "(($ac_try" in
27758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27759   *) ac_try_echo=$ac_try;;
27760 esac
27761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27762   (eval "$ac_link") 2>conftest.er1
27763   ac_status=$?
27764   grep -v '^ *+' conftest.er1 >conftest.err
27765   rm -f conftest.er1
27766   cat conftest.err >&5
27767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27768   (exit $ac_status); } &&
27769          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27770   { (case "(($ac_try" in
27771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27772   *) ac_try_echo=$ac_try;;
27773 esac
27774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27775   (eval "$ac_try") 2>&5
27776   ac_status=$?
27777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27778   (exit $ac_status); }; } &&
27779          { ac_try='test -s conftest$ac_exeext'
27780   { (case "(($ac_try" in
27781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27782   *) ac_try_echo=$ac_try;;
27783 esac
27784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27785   (eval "$ac_try") 2>&5
27786   ac_status=$?
27787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27788   (exit $ac_status); }; }; then
27789   ac_cv_search_pthread_mutex_lock=$ac_res
27790 else
27791   echo "$as_me: failed program was:" >&5
27792 sed 's/^/| /' conftest.$ac_ext >&5
27793
27794
27795 fi
27796
27797 rm -f core conftest.err conftest.$ac_objext \
27798       conftest$ac_exeext
27799   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27800   break
27801 fi
27802 done
27803 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27804   :
27805 else
27806   ac_cv_search_pthread_mutex_lock=no
27807 fi
27808 rm conftest.$ac_ext
27809 LIBS=$ac_func_search_save_LIBS
27810 fi
27811 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27812 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27813 ac_res=$ac_cv_search_pthread_mutex_lock
27814 if test "$ac_res" != no; then
27815   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27816
27817 cat >>confdefs.h <<\_ACEOF
27818 #define HAVE_PTHREAD_MUTEX_LOCK 1
27819 _ACEOF
27820
27821 fi
27822
27823 fi
27824
27825
27826 # Check whether --with-udis86 was given.
27827 if test "${with_udis86+set}" = set; then
27828   withval=$with_udis86;
27829       USE_UDIS86=1
27830
27831       case "$withval" in
27832         /usr/lib|yes) ;;
27833         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
27834       esac
27835
27836 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
27837 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
27838 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
27839   echo $ECHO_N "(cached) $ECHO_C" >&6
27840 else
27841   ac_check_lib_save_LIBS=$LIBS
27842 LIBS="-ludis86  $LIBS"
27843 cat >conftest.$ac_ext <<_ACEOF
27844 /* confdefs.h.  */
27845 _ACEOF
27846 cat confdefs.h >>conftest.$ac_ext
27847 cat >>conftest.$ac_ext <<_ACEOF
27848 /* end confdefs.h.  */
27849
27850 /* Override any GCC internal prototype to avoid an error.
27851    Use char because int might match the return type of a GCC
27852    builtin and then its argument prototype would still apply.  */
27853 #ifdef __cplusplus
27854 extern "C"
27855 #endif
27856 char ud_init ();
27857 int
27858 main ()
27859 {
27860 return ud_init ();
27861   ;
27862   return 0;
27863 }
27864 _ACEOF
27865 rm -f conftest.$ac_objext conftest$ac_exeext
27866 if { (ac_try="$ac_link"
27867 case "(($ac_try" in
27868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27869   *) ac_try_echo=$ac_try;;
27870 esac
27871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27872   (eval "$ac_link") 2>conftest.er1
27873   ac_status=$?
27874   grep -v '^ *+' conftest.er1 >conftest.err
27875   rm -f conftest.er1
27876   cat conftest.err >&5
27877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27878   (exit $ac_status); } &&
27879          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27880   { (case "(($ac_try" in
27881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27882   *) ac_try_echo=$ac_try;;
27883 esac
27884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27885   (eval "$ac_try") 2>&5
27886   ac_status=$?
27887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27888   (exit $ac_status); }; } &&
27889          { ac_try='test -s conftest$ac_exeext'
27890   { (case "(($ac_try" in
27891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27892   *) ac_try_echo=$ac_try;;
27893 esac
27894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27895   (eval "$ac_try") 2>&5
27896   ac_status=$?
27897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27898   (exit $ac_status); }; }; then
27899   ac_cv_lib_udis86_ud_init=yes
27900 else
27901   echo "$as_me: failed program was:" >&5
27902 sed 's/^/| /' conftest.$ac_ext >&5
27903
27904         ac_cv_lib_udis86_ud_init=no
27905 fi
27906
27907 rm -f core conftest.err conftest.$ac_objext \
27908       conftest$ac_exeext conftest.$ac_ext
27909 LIBS=$ac_check_lib_save_LIBS
27910 fi
27911 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
27912 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
27913 if test $ac_cv_lib_udis86_ud_init = yes; then
27914   cat >>confdefs.h <<_ACEOF
27915 #define HAVE_LIBUDIS86 1
27916 _ACEOF
27917
27918   LIBS="-ludis86 $LIBS"
27919
27920 else
27921
27922         echo "Error! You need to have libudis86 around."
27923         exit -1
27924
27925 fi
27926
27927
27928 else
27929   USE_UDIS86=0
27930
27931 fi
27932
27933
27934 cat >>confdefs.h <<_ACEOF
27935 #define USE_UDIS86 $USE_UDIS86
27936 _ACEOF
27937
27938
27939
27940
27941
27942
27943
27944
27945 ac_header_dirent=no
27946 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27947   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
27948 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27949 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
27950 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27951   echo $ECHO_N "(cached) $ECHO_C" >&6
27952 else
27953   cat >conftest.$ac_ext <<_ACEOF
27954 /* confdefs.h.  */
27955 _ACEOF
27956 cat confdefs.h >>conftest.$ac_ext
27957 cat >>conftest.$ac_ext <<_ACEOF
27958 /* end confdefs.h.  */
27959 #include <sys/types.h>
27960 #include <$ac_hdr>
27961
27962 int
27963 main ()
27964 {
27965 if ((DIR *) 0)
27966 return 0;
27967   ;
27968   return 0;
27969 }
27970 _ACEOF
27971 rm -f conftest.$ac_objext
27972 if { (ac_try="$ac_compile"
27973 case "(($ac_try" in
27974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27975   *) ac_try_echo=$ac_try;;
27976 esac
27977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27978   (eval "$ac_compile") 2>conftest.er1
27979   ac_status=$?
27980   grep -v '^ *+' conftest.er1 >conftest.err
27981   rm -f conftest.er1
27982   cat conftest.err >&5
27983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27984   (exit $ac_status); } &&
27985          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27986   { (case "(($ac_try" in
27987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27988   *) ac_try_echo=$ac_try;;
27989 esac
27990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27991   (eval "$ac_try") 2>&5
27992   ac_status=$?
27993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27994   (exit $ac_status); }; } &&
27995          { ac_try='test -s conftest.$ac_objext'
27996   { (case "(($ac_try" in
27997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27998   *) ac_try_echo=$ac_try;;
27999 esac
28000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28001   (eval "$ac_try") 2>&5
28002   ac_status=$?
28003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28004   (exit $ac_status); }; }; then
28005   eval "$as_ac_Header=yes"
28006 else
28007   echo "$as_me: failed program was:" >&5
28008 sed 's/^/| /' conftest.$ac_ext >&5
28009
28010         eval "$as_ac_Header=no"
28011 fi
28012
28013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28014 fi
28015 ac_res=`eval echo '${'$as_ac_Header'}'`
28016                { echo "$as_me:$LINENO: result: $ac_res" >&5
28017 echo "${ECHO_T}$ac_res" >&6; }
28018 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28019   cat >>confdefs.h <<_ACEOF
28020 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
28021 _ACEOF
28022
28023 ac_header_dirent=$ac_hdr; break
28024 fi
28025
28026 done
28027 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
28028 if test $ac_header_dirent = dirent.h; then
28029   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28030 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28031 if test "${ac_cv_search_opendir+set}" = set; then
28032   echo $ECHO_N "(cached) $ECHO_C" >&6
28033 else
28034   ac_func_search_save_LIBS=$LIBS
28035 cat >conftest.$ac_ext <<_ACEOF
28036 /* confdefs.h.  */
28037 _ACEOF
28038 cat confdefs.h >>conftest.$ac_ext
28039 cat >>conftest.$ac_ext <<_ACEOF
28040 /* end confdefs.h.  */
28041
28042 /* Override any GCC internal prototype to avoid an error.
28043    Use char because int might match the return type of a GCC
28044    builtin and then its argument prototype would still apply.  */
28045 #ifdef __cplusplus
28046 extern "C"
28047 #endif
28048 char opendir ();
28049 int
28050 main ()
28051 {
28052 return opendir ();
28053   ;
28054   return 0;
28055 }
28056 _ACEOF
28057 for ac_lib in '' dir; do
28058   if test -z "$ac_lib"; then
28059     ac_res="none required"
28060   else
28061     ac_res=-l$ac_lib
28062     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28063   fi
28064   rm -f conftest.$ac_objext conftest$ac_exeext
28065 if { (ac_try="$ac_link"
28066 case "(($ac_try" in
28067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28068   *) ac_try_echo=$ac_try;;
28069 esac
28070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28071   (eval "$ac_link") 2>conftest.er1
28072   ac_status=$?
28073   grep -v '^ *+' conftest.er1 >conftest.err
28074   rm -f conftest.er1
28075   cat conftest.err >&5
28076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28077   (exit $ac_status); } &&
28078          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28079   { (case "(($ac_try" in
28080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28081   *) ac_try_echo=$ac_try;;
28082 esac
28083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28084   (eval "$ac_try") 2>&5
28085   ac_status=$?
28086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28087   (exit $ac_status); }; } &&
28088          { ac_try='test -s conftest$ac_exeext'
28089   { (case "(($ac_try" in
28090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28091   *) ac_try_echo=$ac_try;;
28092 esac
28093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28094   (eval "$ac_try") 2>&5
28095   ac_status=$?
28096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28097   (exit $ac_status); }; }; then
28098   ac_cv_search_opendir=$ac_res
28099 else
28100   echo "$as_me: failed program was:" >&5
28101 sed 's/^/| /' conftest.$ac_ext >&5
28102
28103
28104 fi
28105
28106 rm -f core conftest.err conftest.$ac_objext \
28107       conftest$ac_exeext
28108   if test "${ac_cv_search_opendir+set}" = set; then
28109   break
28110 fi
28111 done
28112 if test "${ac_cv_search_opendir+set}" = set; then
28113   :
28114 else
28115   ac_cv_search_opendir=no
28116 fi
28117 rm conftest.$ac_ext
28118 LIBS=$ac_func_search_save_LIBS
28119 fi
28120 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28121 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28122 ac_res=$ac_cv_search_opendir
28123 if test "$ac_res" != no; then
28124   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28125
28126 fi
28127
28128 else
28129   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28130 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28131 if test "${ac_cv_search_opendir+set}" = set; then
28132   echo $ECHO_N "(cached) $ECHO_C" >&6
28133 else
28134   ac_func_search_save_LIBS=$LIBS
28135 cat >conftest.$ac_ext <<_ACEOF
28136 /* confdefs.h.  */
28137 _ACEOF
28138 cat confdefs.h >>conftest.$ac_ext
28139 cat >>conftest.$ac_ext <<_ACEOF
28140 /* end confdefs.h.  */
28141
28142 /* Override any GCC internal prototype to avoid an error.
28143    Use char because int might match the return type of a GCC
28144    builtin and then its argument prototype would still apply.  */
28145 #ifdef __cplusplus
28146 extern "C"
28147 #endif
28148 char opendir ();
28149 int
28150 main ()
28151 {
28152 return opendir ();
28153   ;
28154   return 0;
28155 }
28156 _ACEOF
28157 for ac_lib in '' x; do
28158   if test -z "$ac_lib"; then
28159     ac_res="none required"
28160   else
28161     ac_res=-l$ac_lib
28162     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28163   fi
28164   rm -f conftest.$ac_objext conftest$ac_exeext
28165 if { (ac_try="$ac_link"
28166 case "(($ac_try" in
28167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28168   *) ac_try_echo=$ac_try;;
28169 esac
28170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28171   (eval "$ac_link") 2>conftest.er1
28172   ac_status=$?
28173   grep -v '^ *+' conftest.er1 >conftest.err
28174   rm -f conftest.er1
28175   cat conftest.err >&5
28176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28177   (exit $ac_status); } &&
28178          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28179   { (case "(($ac_try" in
28180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28181   *) ac_try_echo=$ac_try;;
28182 esac
28183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28184   (eval "$ac_try") 2>&5
28185   ac_status=$?
28186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28187   (exit $ac_status); }; } &&
28188          { ac_try='test -s conftest$ac_exeext'
28189   { (case "(($ac_try" in
28190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28191   *) ac_try_echo=$ac_try;;
28192 esac
28193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28194   (eval "$ac_try") 2>&5
28195   ac_status=$?
28196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28197   (exit $ac_status); }; }; then
28198   ac_cv_search_opendir=$ac_res
28199 else
28200   echo "$as_me: failed program was:" >&5
28201 sed 's/^/| /' conftest.$ac_ext >&5
28202
28203
28204 fi
28205
28206 rm -f core conftest.err conftest.$ac_objext \
28207       conftest$ac_exeext
28208   if test "${ac_cv_search_opendir+set}" = set; then
28209   break
28210 fi
28211 done
28212 if test "${ac_cv_search_opendir+set}" = set; then
28213   :
28214 else
28215   ac_cv_search_opendir=no
28216 fi
28217 rm conftest.$ac_ext
28218 LIBS=$ac_func_search_save_LIBS
28219 fi
28220 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28221 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28222 ac_res=$ac_cv_search_opendir
28223 if test "$ac_res" != no; then
28224   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28225
28226 fi
28227
28228 fi
28229
28230 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28231 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
28232 if test "${ac_cv_header_mmap_anon+set}" = set; then
28233   echo $ECHO_N "(cached) $ECHO_C" >&6
28234 else
28235    ac_ext=c
28236 ac_cpp='$CPP $CPPFLAGS'
28237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28239 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28240
28241   cat >conftest.$ac_ext <<_ACEOF
28242 /* confdefs.h.  */
28243 _ACEOF
28244 cat confdefs.h >>conftest.$ac_ext
28245 cat >>conftest.$ac_ext <<_ACEOF
28246 /* end confdefs.h.  */
28247 #include <sys/mman.h>
28248 #include <unistd.h>
28249 #include <fcntl.h>
28250 int
28251 main ()
28252 {
28253 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28254   ;
28255   return 0;
28256 }
28257 _ACEOF
28258 rm -f conftest.$ac_objext
28259 if { (ac_try="$ac_compile"
28260 case "(($ac_try" in
28261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28262   *) ac_try_echo=$ac_try;;
28263 esac
28264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28265   (eval "$ac_compile") 2>conftest.er1
28266   ac_status=$?
28267   grep -v '^ *+' conftest.er1 >conftest.err
28268   rm -f conftest.er1
28269   cat conftest.err >&5
28270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28271   (exit $ac_status); } &&
28272          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28273   { (case "(($ac_try" in
28274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28275   *) ac_try_echo=$ac_try;;
28276 esac
28277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28278   (eval "$ac_try") 2>&5
28279   ac_status=$?
28280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28281   (exit $ac_status); }; } &&
28282          { ac_try='test -s conftest.$ac_objext'
28283   { (case "(($ac_try" in
28284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28285   *) ac_try_echo=$ac_try;;
28286 esac
28287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28288   (eval "$ac_try") 2>&5
28289   ac_status=$?
28290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28291   (exit $ac_status); }; }; then
28292   ac_cv_header_mmap_anon=yes
28293 else
28294   echo "$as_me: failed program was:" >&5
28295 sed 's/^/| /' conftest.$ac_ext >&5
28296
28297         ac_cv_header_mmap_anon=no
28298 fi
28299
28300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28301   ac_ext=c
28302 ac_cpp='$CPP $CPPFLAGS'
28303 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28304 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28305 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28306
28307
28308 fi
28309 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28310 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
28311 if test "$ac_cv_header_mmap_anon" = yes; then
28312
28313 cat >>confdefs.h <<\_ACEOF
28314 #define HAVE_MMAP_ANONYMOUS 1
28315 _ACEOF
28316
28317 fi
28318
28319 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28320 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
28321 if test "${ac_cv_header_stat_broken+set}" = set; then
28322   echo $ECHO_N "(cached) $ECHO_C" >&6
28323 else
28324   cat >conftest.$ac_ext <<_ACEOF
28325 /* confdefs.h.  */
28326 _ACEOF
28327 cat confdefs.h >>conftest.$ac_ext
28328 cat >>conftest.$ac_ext <<_ACEOF
28329 /* end confdefs.h.  */
28330 #include <sys/types.h>
28331 #include <sys/stat.h>
28332
28333 #if defined S_ISBLK && defined S_IFDIR
28334 # if S_ISBLK (S_IFDIR)
28335 You lose.
28336 # endif
28337 #endif
28338
28339 #if defined S_ISBLK && defined S_IFCHR
28340 # if S_ISBLK (S_IFCHR)
28341 You lose.
28342 # endif
28343 #endif
28344
28345 #if defined S_ISLNK && defined S_IFREG
28346 # if S_ISLNK (S_IFREG)
28347 You lose.
28348 # endif
28349 #endif
28350
28351 #if defined S_ISSOCK && defined S_IFREG
28352 # if S_ISSOCK (S_IFREG)
28353 You lose.
28354 # endif
28355 #endif
28356
28357 _ACEOF
28358 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28359   $EGREP "You lose" >/dev/null 2>&1; then
28360   ac_cv_header_stat_broken=yes
28361 else
28362   ac_cv_header_stat_broken=no
28363 fi
28364 rm -f conftest*
28365
28366 fi
28367 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28368 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
28369 if test $ac_cv_header_stat_broken = yes; then
28370
28371 cat >>confdefs.h <<\_ACEOF
28372 #define STAT_MACROS_BROKEN 1
28373 _ACEOF
28374
28375 fi
28376
28377 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28378 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
28379 if test "${ac_cv_header_stdc+set}" = set; then
28380   echo $ECHO_N "(cached) $ECHO_C" >&6
28381 else
28382   cat >conftest.$ac_ext <<_ACEOF
28383 /* confdefs.h.  */
28384 _ACEOF
28385 cat confdefs.h >>conftest.$ac_ext
28386 cat >>conftest.$ac_ext <<_ACEOF
28387 /* end confdefs.h.  */
28388 #include <stdlib.h>
28389 #include <stdarg.h>
28390 #include <string.h>
28391 #include <float.h>
28392
28393 int
28394 main ()
28395 {
28396
28397   ;
28398   return 0;
28399 }
28400 _ACEOF
28401 rm -f conftest.$ac_objext
28402 if { (ac_try="$ac_compile"
28403 case "(($ac_try" in
28404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28405   *) ac_try_echo=$ac_try;;
28406 esac
28407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28408   (eval "$ac_compile") 2>conftest.er1
28409   ac_status=$?
28410   grep -v '^ *+' conftest.er1 >conftest.err
28411   rm -f conftest.er1
28412   cat conftest.err >&5
28413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28414   (exit $ac_status); } &&
28415          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28416   { (case "(($ac_try" in
28417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28418   *) ac_try_echo=$ac_try;;
28419 esac
28420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28421   (eval "$ac_try") 2>&5
28422   ac_status=$?
28423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28424   (exit $ac_status); }; } &&
28425          { ac_try='test -s conftest.$ac_objext'
28426   { (case "(($ac_try" in
28427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28428   *) ac_try_echo=$ac_try;;
28429 esac
28430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28431   (eval "$ac_try") 2>&5
28432   ac_status=$?
28433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28434   (exit $ac_status); }; }; then
28435   ac_cv_header_stdc=yes
28436 else
28437   echo "$as_me: failed program was:" >&5
28438 sed 's/^/| /' conftest.$ac_ext >&5
28439
28440         ac_cv_header_stdc=no
28441 fi
28442
28443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28444
28445 if test $ac_cv_header_stdc = yes; then
28446   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28447   cat >conftest.$ac_ext <<_ACEOF
28448 /* confdefs.h.  */
28449 _ACEOF
28450 cat confdefs.h >>conftest.$ac_ext
28451 cat >>conftest.$ac_ext <<_ACEOF
28452 /* end confdefs.h.  */
28453 #include <string.h>
28454
28455 _ACEOF
28456 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28457   $EGREP "memchr" >/dev/null 2>&1; then
28458   :
28459 else
28460   ac_cv_header_stdc=no
28461 fi
28462 rm -f conftest*
28463
28464 fi
28465
28466 if test $ac_cv_header_stdc = yes; then
28467   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28468   cat >conftest.$ac_ext <<_ACEOF
28469 /* confdefs.h.  */
28470 _ACEOF
28471 cat confdefs.h >>conftest.$ac_ext
28472 cat >>conftest.$ac_ext <<_ACEOF
28473 /* end confdefs.h.  */
28474 #include <stdlib.h>
28475
28476 _ACEOF
28477 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28478   $EGREP "free" >/dev/null 2>&1; then
28479   :
28480 else
28481   ac_cv_header_stdc=no
28482 fi
28483 rm -f conftest*
28484
28485 fi
28486
28487 if test $ac_cv_header_stdc = yes; then
28488   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28489   if test "$cross_compiling" = yes; then
28490   :
28491 else
28492   cat >conftest.$ac_ext <<_ACEOF
28493 /* confdefs.h.  */
28494 _ACEOF
28495 cat confdefs.h >>conftest.$ac_ext
28496 cat >>conftest.$ac_ext <<_ACEOF
28497 /* end confdefs.h.  */
28498 #include <ctype.h>
28499 #include <stdlib.h>
28500 #if ((' ' & 0x0FF) == 0x020)
28501 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28502 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28503 #else
28504 # define ISLOWER(c) \
28505                    (('a' <= (c) && (c) <= 'i') \
28506                      || ('j' <= (c) && (c) <= 'r') \
28507                      || ('s' <= (c) && (c) <= 'z'))
28508 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28509 #endif
28510
28511 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28512 int
28513 main ()
28514 {
28515   int i;
28516   for (i = 0; i < 256; i++)
28517     if (XOR (islower (i), ISLOWER (i))
28518         || toupper (i) != TOUPPER (i))
28519       return 2;
28520   return 0;
28521 }
28522 _ACEOF
28523 rm -f conftest$ac_exeext
28524 if { (ac_try="$ac_link"
28525 case "(($ac_try" in
28526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28527   *) ac_try_echo=$ac_try;;
28528 esac
28529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28530   (eval "$ac_link") 2>&5
28531   ac_status=$?
28532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28533   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28534   { (case "(($ac_try" in
28535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28536   *) ac_try_echo=$ac_try;;
28537 esac
28538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28539   (eval "$ac_try") 2>&5
28540   ac_status=$?
28541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28542   (exit $ac_status); }; }; then
28543   :
28544 else
28545   echo "$as_me: program exited with status $ac_status" >&5
28546 echo "$as_me: failed program was:" >&5
28547 sed 's/^/| /' conftest.$ac_ext >&5
28548
28549 ( exit $ac_status )
28550 ac_cv_header_stdc=no
28551 fi
28552 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28553 fi
28554
28555
28556 fi
28557 fi
28558 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28559 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
28560 if test $ac_cv_header_stdc = yes; then
28561
28562 cat >>confdefs.h <<\_ACEOF
28563 #define STDC_HEADERS 1
28564 _ACEOF
28565
28566 fi
28567
28568 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28569 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
28570 if test "${ac_cv_header_sys_wait_h+set}" = set; then
28571   echo $ECHO_N "(cached) $ECHO_C" >&6
28572 else
28573   cat >conftest.$ac_ext <<_ACEOF
28574 /* confdefs.h.  */
28575 _ACEOF
28576 cat confdefs.h >>conftest.$ac_ext
28577 cat >>conftest.$ac_ext <<_ACEOF
28578 /* end confdefs.h.  */
28579 #include <sys/types.h>
28580 #include <sys/wait.h>
28581 #ifndef WEXITSTATUS
28582 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
28583 #endif
28584 #ifndef WIFEXITED
28585 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28586 #endif
28587
28588 int
28589 main ()
28590 {
28591   int s;
28592   wait (&s);
28593   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28594   ;
28595   return 0;
28596 }
28597 _ACEOF
28598 rm -f conftest.$ac_objext
28599 if { (ac_try="$ac_compile"
28600 case "(($ac_try" in
28601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28602   *) ac_try_echo=$ac_try;;
28603 esac
28604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28605   (eval "$ac_compile") 2>conftest.er1
28606   ac_status=$?
28607   grep -v '^ *+' conftest.er1 >conftest.err
28608   rm -f conftest.er1
28609   cat conftest.err >&5
28610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28611   (exit $ac_status); } &&
28612          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28613   { (case "(($ac_try" in
28614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28615   *) ac_try_echo=$ac_try;;
28616 esac
28617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28618   (eval "$ac_try") 2>&5
28619   ac_status=$?
28620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28621   (exit $ac_status); }; } &&
28622          { ac_try='test -s conftest.$ac_objext'
28623   { (case "(($ac_try" in
28624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28625   *) ac_try_echo=$ac_try;;
28626 esac
28627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28628   (eval "$ac_try") 2>&5
28629   ac_status=$?
28630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28631   (exit $ac_status); }; }; then
28632   ac_cv_header_sys_wait_h=yes
28633 else
28634   echo "$as_me: failed program was:" >&5
28635 sed 's/^/| /' conftest.$ac_ext >&5
28636
28637         ac_cv_header_sys_wait_h=no
28638 fi
28639
28640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28641 fi
28642 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28643 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
28644 if test $ac_cv_header_sys_wait_h = yes; then
28645
28646 cat >>confdefs.h <<\_ACEOF
28647 #define HAVE_SYS_WAIT_H 1
28648 _ACEOF
28649
28650 fi
28651
28652 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28653 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
28654 if test "${ac_cv_header_time+set}" = set; then
28655   echo $ECHO_N "(cached) $ECHO_C" >&6
28656 else
28657   cat >conftest.$ac_ext <<_ACEOF
28658 /* confdefs.h.  */
28659 _ACEOF
28660 cat confdefs.h >>conftest.$ac_ext
28661 cat >>conftest.$ac_ext <<_ACEOF
28662 /* end confdefs.h.  */
28663 #include <sys/types.h>
28664 #include <sys/time.h>
28665 #include <time.h>
28666
28667 int
28668 main ()
28669 {
28670 if ((struct tm *) 0)
28671 return 0;
28672   ;
28673   return 0;
28674 }
28675 _ACEOF
28676 rm -f conftest.$ac_objext
28677 if { (ac_try="$ac_compile"
28678 case "(($ac_try" in
28679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28680   *) ac_try_echo=$ac_try;;
28681 esac
28682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28683   (eval "$ac_compile") 2>conftest.er1
28684   ac_status=$?
28685   grep -v '^ *+' conftest.er1 >conftest.err
28686   rm -f conftest.er1
28687   cat conftest.err >&5
28688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28689   (exit $ac_status); } &&
28690          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28691   { (case "(($ac_try" in
28692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28693   *) ac_try_echo=$ac_try;;
28694 esac
28695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28696   (eval "$ac_try") 2>&5
28697   ac_status=$?
28698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28699   (exit $ac_status); }; } &&
28700          { ac_try='test -s conftest.$ac_objext'
28701   { (case "(($ac_try" in
28702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28703   *) ac_try_echo=$ac_try;;
28704 esac
28705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28706   (eval "$ac_try") 2>&5
28707   ac_status=$?
28708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28709   (exit $ac_status); }; }; then
28710   ac_cv_header_time=yes
28711 else
28712   echo "$as_me: failed program was:" >&5
28713 sed 's/^/| /' conftest.$ac_ext >&5
28714
28715         ac_cv_header_time=no
28716 fi
28717
28718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28719 fi
28720 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28721 echo "${ECHO_T}$ac_cv_header_time" >&6; }
28722 if test $ac_cv_header_time = yes; then
28723
28724 cat >>confdefs.h <<\_ACEOF
28725 #define TIME_WITH_SYS_TIME 1
28726 _ACEOF
28727
28728 fi
28729
28730
28731
28732
28733
28734
28735
28736
28737 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28738 do
28739 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28740 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28741   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28742 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28743 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28744   echo $ECHO_N "(cached) $ECHO_C" >&6
28745 fi
28746 ac_res=`eval echo '${'$as_ac_Header'}'`
28747                { echo "$as_me:$LINENO: result: $ac_res" >&5
28748 echo "${ECHO_T}$ac_res" >&6; }
28749 else
28750   # Is the header compilable?
28751 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28752 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28753 cat >conftest.$ac_ext <<_ACEOF
28754 /* confdefs.h.  */
28755 _ACEOF
28756 cat confdefs.h >>conftest.$ac_ext
28757 cat >>conftest.$ac_ext <<_ACEOF
28758 /* end confdefs.h.  */
28759 $ac_includes_default
28760 #include <$ac_header>
28761 _ACEOF
28762 rm -f conftest.$ac_objext
28763 if { (ac_try="$ac_compile"
28764 case "(($ac_try" in
28765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28766   *) ac_try_echo=$ac_try;;
28767 esac
28768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28769   (eval "$ac_compile") 2>conftest.er1
28770   ac_status=$?
28771   grep -v '^ *+' conftest.er1 >conftest.err
28772   rm -f conftest.er1
28773   cat conftest.err >&5
28774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28775   (exit $ac_status); } &&
28776          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28777   { (case "(($ac_try" in
28778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28779   *) ac_try_echo=$ac_try;;
28780 esac
28781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28782   (eval "$ac_try") 2>&5
28783   ac_status=$?
28784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28785   (exit $ac_status); }; } &&
28786          { ac_try='test -s conftest.$ac_objext'
28787   { (case "(($ac_try" in
28788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28789   *) ac_try_echo=$ac_try;;
28790 esac
28791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28792   (eval "$ac_try") 2>&5
28793   ac_status=$?
28794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28795   (exit $ac_status); }; }; then
28796   ac_header_compiler=yes
28797 else
28798   echo "$as_me: failed program was:" >&5
28799 sed 's/^/| /' conftest.$ac_ext >&5
28800
28801         ac_header_compiler=no
28802 fi
28803
28804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28805 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28806 echo "${ECHO_T}$ac_header_compiler" >&6; }
28807
28808 # Is the header present?
28809 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28810 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28811 cat >conftest.$ac_ext <<_ACEOF
28812 /* confdefs.h.  */
28813 _ACEOF
28814 cat confdefs.h >>conftest.$ac_ext
28815 cat >>conftest.$ac_ext <<_ACEOF
28816 /* end confdefs.h.  */
28817 #include <$ac_header>
28818 _ACEOF
28819 if { (ac_try="$ac_cpp conftest.$ac_ext"
28820 case "(($ac_try" in
28821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28822   *) ac_try_echo=$ac_try;;
28823 esac
28824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28825   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28826   ac_status=$?
28827   grep -v '^ *+' conftest.er1 >conftest.err
28828   rm -f conftest.er1
28829   cat conftest.err >&5
28830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28831   (exit $ac_status); } >/dev/null; then
28832   if test -s conftest.err; then
28833     ac_cpp_err=$ac_c_preproc_warn_flag
28834     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28835   else
28836     ac_cpp_err=
28837   fi
28838 else
28839   ac_cpp_err=yes
28840 fi
28841 if test -z "$ac_cpp_err"; then
28842   ac_header_preproc=yes
28843 else
28844   echo "$as_me: failed program was:" >&5
28845 sed 's/^/| /' conftest.$ac_ext >&5
28846
28847   ac_header_preproc=no
28848 fi
28849
28850 rm -f conftest.err conftest.$ac_ext
28851 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28852 echo "${ECHO_T}$ac_header_preproc" >&6; }
28853
28854 # So?  What about this header?
28855 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28856   yes:no: )
28857     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28858 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28859     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28860 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28861     ac_header_preproc=yes
28862     ;;
28863   no:yes:* )
28864     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28865 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28866     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28867 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28868     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28869 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28870     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28871 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28872     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28873 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28874     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28875 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28876     ( cat <<\_ASBOX
28877 ## ----------------------------------- ##
28878 ## Report this to llvmbugs@cs.uiuc.edu ##
28879 ## ----------------------------------- ##
28880 _ASBOX
28881      ) | sed "s/^/$as_me: WARNING:     /" >&2
28882     ;;
28883 esac
28884 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28885 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28886 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28887   echo $ECHO_N "(cached) $ECHO_C" >&6
28888 else
28889   eval "$as_ac_Header=\$ac_header_preproc"
28890 fi
28891 ac_res=`eval echo '${'$as_ac_Header'}'`
28892                { echo "$as_me:$LINENO: result: $ac_res" >&5
28893 echo "${ECHO_T}$ac_res" >&6; }
28894
28895 fi
28896 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28897   cat >>confdefs.h <<_ACEOF
28898 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28899 _ACEOF
28900
28901 fi
28902
28903 done
28904
28905
28906
28907
28908
28909
28910
28911 for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
28912 do
28913 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28914 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28915   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28916 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28917 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28918   echo $ECHO_N "(cached) $ECHO_C" >&6
28919 fi
28920 ac_res=`eval echo '${'$as_ac_Header'}'`
28921                { echo "$as_me:$LINENO: result: $ac_res" >&5
28922 echo "${ECHO_T}$ac_res" >&6; }
28923 else
28924   # Is the header compilable?
28925 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28926 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28927 cat >conftest.$ac_ext <<_ACEOF
28928 /* confdefs.h.  */
28929 _ACEOF
28930 cat confdefs.h >>conftest.$ac_ext
28931 cat >>conftest.$ac_ext <<_ACEOF
28932 /* end confdefs.h.  */
28933 $ac_includes_default
28934 #include <$ac_header>
28935 _ACEOF
28936 rm -f conftest.$ac_objext
28937 if { (ac_try="$ac_compile"
28938 case "(($ac_try" in
28939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28940   *) ac_try_echo=$ac_try;;
28941 esac
28942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28943   (eval "$ac_compile") 2>conftest.er1
28944   ac_status=$?
28945   grep -v '^ *+' conftest.er1 >conftest.err
28946   rm -f conftest.er1
28947   cat conftest.err >&5
28948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28949   (exit $ac_status); } &&
28950          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28951   { (case "(($ac_try" in
28952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28953   *) ac_try_echo=$ac_try;;
28954 esac
28955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28956   (eval "$ac_try") 2>&5
28957   ac_status=$?
28958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28959   (exit $ac_status); }; } &&
28960          { ac_try='test -s conftest.$ac_objext'
28961   { (case "(($ac_try" in
28962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28963   *) ac_try_echo=$ac_try;;
28964 esac
28965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28966   (eval "$ac_try") 2>&5
28967   ac_status=$?
28968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28969   (exit $ac_status); }; }; then
28970   ac_header_compiler=yes
28971 else
28972   echo "$as_me: failed program was:" >&5
28973 sed 's/^/| /' conftest.$ac_ext >&5
28974
28975         ac_header_compiler=no
28976 fi
28977
28978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28979 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28980 echo "${ECHO_T}$ac_header_compiler" >&6; }
28981
28982 # Is the header present?
28983 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28984 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28985 cat >conftest.$ac_ext <<_ACEOF
28986 /* confdefs.h.  */
28987 _ACEOF
28988 cat confdefs.h >>conftest.$ac_ext
28989 cat >>conftest.$ac_ext <<_ACEOF
28990 /* end confdefs.h.  */
28991 #include <$ac_header>
28992 _ACEOF
28993 if { (ac_try="$ac_cpp conftest.$ac_ext"
28994 case "(($ac_try" in
28995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28996   *) ac_try_echo=$ac_try;;
28997 esac
28998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28999   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29000   ac_status=$?
29001   grep -v '^ *+' conftest.er1 >conftest.err
29002   rm -f conftest.er1
29003   cat conftest.err >&5
29004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29005   (exit $ac_status); } >/dev/null; then
29006   if test -s conftest.err; then
29007     ac_cpp_err=$ac_c_preproc_warn_flag
29008     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29009   else
29010     ac_cpp_err=
29011   fi
29012 else
29013   ac_cpp_err=yes
29014 fi
29015 if test -z "$ac_cpp_err"; then
29016   ac_header_preproc=yes
29017 else
29018   echo "$as_me: failed program was:" >&5
29019 sed 's/^/| /' conftest.$ac_ext >&5
29020
29021   ac_header_preproc=no
29022 fi
29023
29024 rm -f conftest.err conftest.$ac_ext
29025 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29026 echo "${ECHO_T}$ac_header_preproc" >&6; }
29027
29028 # So?  What about this header?
29029 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29030   yes:no: )
29031     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29032 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29033     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29034 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29035     ac_header_preproc=yes
29036     ;;
29037   no:yes:* )
29038     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29039 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29040     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29041 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29042     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29043 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29044     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29045 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29046     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29047 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29048     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29049 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29050     ( cat <<\_ASBOX
29051 ## ----------------------------------- ##
29052 ## Report this to llvmbugs@cs.uiuc.edu ##
29053 ## ----------------------------------- ##
29054 _ASBOX
29055      ) | sed "s/^/$as_me: WARNING:     /" >&2
29056     ;;
29057 esac
29058 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29060 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29061   echo $ECHO_N "(cached) $ECHO_C" >&6
29062 else
29063   eval "$as_ac_Header=\$ac_header_preproc"
29064 fi
29065 ac_res=`eval echo '${'$as_ac_Header'}'`
29066                { echo "$as_me:$LINENO: result: $ac_res" >&5
29067 echo "${ECHO_T}$ac_res" >&6; }
29068
29069 fi
29070 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29071   cat >>confdefs.h <<_ACEOF
29072 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29073 _ACEOF
29074
29075 fi
29076
29077 done
29078
29079
29080 for ac_header in windows.h
29081 do
29082 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29083 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29084   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29085 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29086 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29087   echo $ECHO_N "(cached) $ECHO_C" >&6
29088 fi
29089 ac_res=`eval echo '${'$as_ac_Header'}'`
29090                { echo "$as_me:$LINENO: result: $ac_res" >&5
29091 echo "${ECHO_T}$ac_res" >&6; }
29092 else
29093   # Is the header compilable?
29094 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29095 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29096 cat >conftest.$ac_ext <<_ACEOF
29097 /* confdefs.h.  */
29098 _ACEOF
29099 cat confdefs.h >>conftest.$ac_ext
29100 cat >>conftest.$ac_ext <<_ACEOF
29101 /* end confdefs.h.  */
29102 $ac_includes_default
29103 #include <$ac_header>
29104 _ACEOF
29105 rm -f conftest.$ac_objext
29106 if { (ac_try="$ac_compile"
29107 case "(($ac_try" in
29108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29109   *) ac_try_echo=$ac_try;;
29110 esac
29111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29112   (eval "$ac_compile") 2>conftest.er1
29113   ac_status=$?
29114   grep -v '^ *+' conftest.er1 >conftest.err
29115   rm -f conftest.er1
29116   cat conftest.err >&5
29117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29118   (exit $ac_status); } &&
29119          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29120   { (case "(($ac_try" in
29121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29122   *) ac_try_echo=$ac_try;;
29123 esac
29124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29125   (eval "$ac_try") 2>&5
29126   ac_status=$?
29127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29128   (exit $ac_status); }; } &&
29129          { ac_try='test -s conftest.$ac_objext'
29130   { (case "(($ac_try" in
29131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29132   *) ac_try_echo=$ac_try;;
29133 esac
29134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29135   (eval "$ac_try") 2>&5
29136   ac_status=$?
29137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29138   (exit $ac_status); }; }; then
29139   ac_header_compiler=yes
29140 else
29141   echo "$as_me: failed program was:" >&5
29142 sed 's/^/| /' conftest.$ac_ext >&5
29143
29144         ac_header_compiler=no
29145 fi
29146
29147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29148 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29149 echo "${ECHO_T}$ac_header_compiler" >&6; }
29150
29151 # Is the header present?
29152 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29153 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29154 cat >conftest.$ac_ext <<_ACEOF
29155 /* confdefs.h.  */
29156 _ACEOF
29157 cat confdefs.h >>conftest.$ac_ext
29158 cat >>conftest.$ac_ext <<_ACEOF
29159 /* end confdefs.h.  */
29160 #include <$ac_header>
29161 _ACEOF
29162 if { (ac_try="$ac_cpp conftest.$ac_ext"
29163 case "(($ac_try" in
29164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29165   *) ac_try_echo=$ac_try;;
29166 esac
29167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29168   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29169   ac_status=$?
29170   grep -v '^ *+' conftest.er1 >conftest.err
29171   rm -f conftest.er1
29172   cat conftest.err >&5
29173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29174   (exit $ac_status); } >/dev/null; then
29175   if test -s conftest.err; then
29176     ac_cpp_err=$ac_c_preproc_warn_flag
29177     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29178   else
29179     ac_cpp_err=
29180   fi
29181 else
29182   ac_cpp_err=yes
29183 fi
29184 if test -z "$ac_cpp_err"; then
29185   ac_header_preproc=yes
29186 else
29187   echo "$as_me: failed program was:" >&5
29188 sed 's/^/| /' conftest.$ac_ext >&5
29189
29190   ac_header_preproc=no
29191 fi
29192
29193 rm -f conftest.err conftest.$ac_ext
29194 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29195 echo "${ECHO_T}$ac_header_preproc" >&6; }
29196
29197 # So?  What about this header?
29198 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29199   yes:no: )
29200     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29201 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29202     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29203 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29204     ac_header_preproc=yes
29205     ;;
29206   no:yes:* )
29207     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29208 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29209     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29210 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29211     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29212 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29213     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29214 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29215     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29216 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29217     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29218 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29219     ( cat <<\_ASBOX
29220 ## ----------------------------------- ##
29221 ## Report this to llvmbugs@cs.uiuc.edu ##
29222 ## ----------------------------------- ##
29223 _ASBOX
29224      ) | sed "s/^/$as_me: WARNING:     /" >&2
29225     ;;
29226 esac
29227 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29228 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29229 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29230   echo $ECHO_N "(cached) $ECHO_C" >&6
29231 else
29232   eval "$as_ac_Header=\$ac_header_preproc"
29233 fi
29234 ac_res=`eval echo '${'$as_ac_Header'}'`
29235                { echo "$as_me:$LINENO: result: $ac_res" >&5
29236 echo "${ECHO_T}$ac_res" >&6; }
29237
29238 fi
29239 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29240   cat >>confdefs.h <<_ACEOF
29241 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29242 _ACEOF
29243
29244 fi
29245
29246 done
29247
29248
29249
29250
29251
29252 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
29253 do
29254 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29255 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29256   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29257 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29258 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29259   echo $ECHO_N "(cached) $ECHO_C" >&6
29260 fi
29261 ac_res=`eval echo '${'$as_ac_Header'}'`
29262                { echo "$as_me:$LINENO: result: $ac_res" >&5
29263 echo "${ECHO_T}$ac_res" >&6; }
29264 else
29265   # Is the header compilable?
29266 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29267 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29268 cat >conftest.$ac_ext <<_ACEOF
29269 /* confdefs.h.  */
29270 _ACEOF
29271 cat confdefs.h >>conftest.$ac_ext
29272 cat >>conftest.$ac_ext <<_ACEOF
29273 /* end confdefs.h.  */
29274 $ac_includes_default
29275 #include <$ac_header>
29276 _ACEOF
29277 rm -f conftest.$ac_objext
29278 if { (ac_try="$ac_compile"
29279 case "(($ac_try" in
29280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29281   *) ac_try_echo=$ac_try;;
29282 esac
29283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29284   (eval "$ac_compile") 2>conftest.er1
29285   ac_status=$?
29286   grep -v '^ *+' conftest.er1 >conftest.err
29287   rm -f conftest.er1
29288   cat conftest.err >&5
29289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29290   (exit $ac_status); } &&
29291          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29292   { (case "(($ac_try" in
29293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29294   *) ac_try_echo=$ac_try;;
29295 esac
29296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29297   (eval "$ac_try") 2>&5
29298   ac_status=$?
29299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29300   (exit $ac_status); }; } &&
29301          { ac_try='test -s conftest.$ac_objext'
29302   { (case "(($ac_try" in
29303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29304   *) ac_try_echo=$ac_try;;
29305 esac
29306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29307   (eval "$ac_try") 2>&5
29308   ac_status=$?
29309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29310   (exit $ac_status); }; }; then
29311   ac_header_compiler=yes
29312 else
29313   echo "$as_me: failed program was:" >&5
29314 sed 's/^/| /' conftest.$ac_ext >&5
29315
29316         ac_header_compiler=no
29317 fi
29318
29319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29320 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29321 echo "${ECHO_T}$ac_header_compiler" >&6; }
29322
29323 # Is the header present?
29324 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29325 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29326 cat >conftest.$ac_ext <<_ACEOF
29327 /* confdefs.h.  */
29328 _ACEOF
29329 cat confdefs.h >>conftest.$ac_ext
29330 cat >>conftest.$ac_ext <<_ACEOF
29331 /* end confdefs.h.  */
29332 #include <$ac_header>
29333 _ACEOF
29334 if { (ac_try="$ac_cpp conftest.$ac_ext"
29335 case "(($ac_try" in
29336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29337   *) ac_try_echo=$ac_try;;
29338 esac
29339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29340   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29341   ac_status=$?
29342   grep -v '^ *+' conftest.er1 >conftest.err
29343   rm -f conftest.er1
29344   cat conftest.err >&5
29345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29346   (exit $ac_status); } >/dev/null; then
29347   if test -s conftest.err; then
29348     ac_cpp_err=$ac_c_preproc_warn_flag
29349     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29350   else
29351     ac_cpp_err=
29352   fi
29353 else
29354   ac_cpp_err=yes
29355 fi
29356 if test -z "$ac_cpp_err"; then
29357   ac_header_preproc=yes
29358 else
29359   echo "$as_me: failed program was:" >&5
29360 sed 's/^/| /' conftest.$ac_ext >&5
29361
29362   ac_header_preproc=no
29363 fi
29364
29365 rm -f conftest.err conftest.$ac_ext
29366 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29367 echo "${ECHO_T}$ac_header_preproc" >&6; }
29368
29369 # So?  What about this header?
29370 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29371   yes:no: )
29372     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29373 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29374     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29375 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29376     ac_header_preproc=yes
29377     ;;
29378   no:yes:* )
29379     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29380 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29381     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29382 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29383     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29384 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29385     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29386 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29387     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29388 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29389     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29390 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29391     ( cat <<\_ASBOX
29392 ## ----------------------------------- ##
29393 ## Report this to llvmbugs@cs.uiuc.edu ##
29394 ## ----------------------------------- ##
29395 _ASBOX
29396      ) | sed "s/^/$as_me: WARNING:     /" >&2
29397     ;;
29398 esac
29399 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29400 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29401 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29402   echo $ECHO_N "(cached) $ECHO_C" >&6
29403 else
29404   eval "$as_ac_Header=\$ac_header_preproc"
29405 fi
29406 ac_res=`eval echo '${'$as_ac_Header'}'`
29407                { echo "$as_me:$LINENO: result: $ac_res" >&5
29408 echo "${ECHO_T}$ac_res" >&6; }
29409
29410 fi
29411 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29412   cat >>confdefs.h <<_ACEOF
29413 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29414 _ACEOF
29415
29416 fi
29417
29418 done
29419
29420
29421
29422
29423 for ac_header in sys/types.h malloc/malloc.h mach/mach.h
29424 do
29425 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29426 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29427   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29429 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29430   echo $ECHO_N "(cached) $ECHO_C" >&6
29431 fi
29432 ac_res=`eval echo '${'$as_ac_Header'}'`
29433                { echo "$as_me:$LINENO: result: $ac_res" >&5
29434 echo "${ECHO_T}$ac_res" >&6; }
29435 else
29436   # Is the header compilable?
29437 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29438 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29439 cat >conftest.$ac_ext <<_ACEOF
29440 /* confdefs.h.  */
29441 _ACEOF
29442 cat confdefs.h >>conftest.$ac_ext
29443 cat >>conftest.$ac_ext <<_ACEOF
29444 /* end confdefs.h.  */
29445 $ac_includes_default
29446 #include <$ac_header>
29447 _ACEOF
29448 rm -f conftest.$ac_objext
29449 if { (ac_try="$ac_compile"
29450 case "(($ac_try" in
29451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29452   *) ac_try_echo=$ac_try;;
29453 esac
29454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29455   (eval "$ac_compile") 2>conftest.er1
29456   ac_status=$?
29457   grep -v '^ *+' conftest.er1 >conftest.err
29458   rm -f conftest.er1
29459   cat conftest.err >&5
29460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29461   (exit $ac_status); } &&
29462          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29463   { (case "(($ac_try" in
29464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29465   *) ac_try_echo=$ac_try;;
29466 esac
29467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29468   (eval "$ac_try") 2>&5
29469   ac_status=$?
29470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29471   (exit $ac_status); }; } &&
29472          { ac_try='test -s conftest.$ac_objext'
29473   { (case "(($ac_try" in
29474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29475   *) ac_try_echo=$ac_try;;
29476 esac
29477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29478   (eval "$ac_try") 2>&5
29479   ac_status=$?
29480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29481   (exit $ac_status); }; }; then
29482   ac_header_compiler=yes
29483 else
29484   echo "$as_me: failed program was:" >&5
29485 sed 's/^/| /' conftest.$ac_ext >&5
29486
29487         ac_header_compiler=no
29488 fi
29489
29490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29491 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29492 echo "${ECHO_T}$ac_header_compiler" >&6; }
29493
29494 # Is the header present?
29495 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29496 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29497 cat >conftest.$ac_ext <<_ACEOF
29498 /* confdefs.h.  */
29499 _ACEOF
29500 cat confdefs.h >>conftest.$ac_ext
29501 cat >>conftest.$ac_ext <<_ACEOF
29502 /* end confdefs.h.  */
29503 #include <$ac_header>
29504 _ACEOF
29505 if { (ac_try="$ac_cpp conftest.$ac_ext"
29506 case "(($ac_try" in
29507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29508   *) ac_try_echo=$ac_try;;
29509 esac
29510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29511   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29512   ac_status=$?
29513   grep -v '^ *+' conftest.er1 >conftest.err
29514   rm -f conftest.er1
29515   cat conftest.err >&5
29516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29517   (exit $ac_status); } >/dev/null; then
29518   if test -s conftest.err; then
29519     ac_cpp_err=$ac_c_preproc_warn_flag
29520     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29521   else
29522     ac_cpp_err=
29523   fi
29524 else
29525   ac_cpp_err=yes
29526 fi
29527 if test -z "$ac_cpp_err"; then
29528   ac_header_preproc=yes
29529 else
29530   echo "$as_me: failed program was:" >&5
29531 sed 's/^/| /' conftest.$ac_ext >&5
29532
29533   ac_header_preproc=no
29534 fi
29535
29536 rm -f conftest.err conftest.$ac_ext
29537 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29538 echo "${ECHO_T}$ac_header_preproc" >&6; }
29539
29540 # So?  What about this header?
29541 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29542   yes:no: )
29543     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29544 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29545     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29546 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29547     ac_header_preproc=yes
29548     ;;
29549   no:yes:* )
29550     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29551 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29552     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29553 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29554     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29555 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29556     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29557 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29558     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29559 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29560     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29561 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29562     ( cat <<\_ASBOX
29563 ## ----------------------------------- ##
29564 ## Report this to llvmbugs@cs.uiuc.edu ##
29565 ## ----------------------------------- ##
29566 _ASBOX
29567      ) | sed "s/^/$as_me: WARNING:     /" >&2
29568     ;;
29569 esac
29570 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29572 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29573   echo $ECHO_N "(cached) $ECHO_C" >&6
29574 else
29575   eval "$as_ac_Header=\$ac_header_preproc"
29576 fi
29577 ac_res=`eval echo '${'$as_ac_Header'}'`
29578                { echo "$as_me:$LINENO: result: $ac_res" >&5
29579 echo "${ECHO_T}$ac_res" >&6; }
29580
29581 fi
29582 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29583   cat >>confdefs.h <<_ACEOF
29584 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29585 _ACEOF
29586
29587 fi
29588
29589 done
29590
29591 if test "$ENABLE_THREADS" -eq 1 ; then
29592
29593 for ac_header in pthread.h
29594 do
29595 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29596 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29597   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29599 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29600   echo $ECHO_N "(cached) $ECHO_C" >&6
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 else
29606   # Is the header compilable?
29607 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29608 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29609 cat >conftest.$ac_ext <<_ACEOF
29610 /* confdefs.h.  */
29611 _ACEOF
29612 cat confdefs.h >>conftest.$ac_ext
29613 cat >>conftest.$ac_ext <<_ACEOF
29614 /* end confdefs.h.  */
29615 $ac_includes_default
29616 #include <$ac_header>
29617 _ACEOF
29618 rm -f conftest.$ac_objext
29619 if { (ac_try="$ac_compile"
29620 case "(($ac_try" in
29621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29622   *) ac_try_echo=$ac_try;;
29623 esac
29624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29625   (eval "$ac_compile") 2>conftest.er1
29626   ac_status=$?
29627   grep -v '^ *+' conftest.er1 >conftest.err
29628   rm -f conftest.er1
29629   cat conftest.err >&5
29630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29631   (exit $ac_status); } &&
29632          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29633   { (case "(($ac_try" in
29634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29635   *) ac_try_echo=$ac_try;;
29636 esac
29637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29638   (eval "$ac_try") 2>&5
29639   ac_status=$?
29640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29641   (exit $ac_status); }; } &&
29642          { ac_try='test -s conftest.$ac_objext'
29643   { (case "(($ac_try" in
29644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29645   *) ac_try_echo=$ac_try;;
29646 esac
29647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29648   (eval "$ac_try") 2>&5
29649   ac_status=$?
29650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29651   (exit $ac_status); }; }; then
29652   ac_header_compiler=yes
29653 else
29654   echo "$as_me: failed program was:" >&5
29655 sed 's/^/| /' conftest.$ac_ext >&5
29656
29657         ac_header_compiler=no
29658 fi
29659
29660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29661 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29662 echo "${ECHO_T}$ac_header_compiler" >&6; }
29663
29664 # Is the header present?
29665 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29666 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29667 cat >conftest.$ac_ext <<_ACEOF
29668 /* confdefs.h.  */
29669 _ACEOF
29670 cat confdefs.h >>conftest.$ac_ext
29671 cat >>conftest.$ac_ext <<_ACEOF
29672 /* end confdefs.h.  */
29673 #include <$ac_header>
29674 _ACEOF
29675 if { (ac_try="$ac_cpp conftest.$ac_ext"
29676 case "(($ac_try" in
29677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29678   *) ac_try_echo=$ac_try;;
29679 esac
29680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29681   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29682   ac_status=$?
29683   grep -v '^ *+' conftest.er1 >conftest.err
29684   rm -f conftest.er1
29685   cat conftest.err >&5
29686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29687   (exit $ac_status); } >/dev/null; then
29688   if test -s conftest.err; then
29689     ac_cpp_err=$ac_c_preproc_warn_flag
29690     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29691   else
29692     ac_cpp_err=
29693   fi
29694 else
29695   ac_cpp_err=yes
29696 fi
29697 if test -z "$ac_cpp_err"; then
29698   ac_header_preproc=yes
29699 else
29700   echo "$as_me: failed program was:" >&5
29701 sed 's/^/| /' conftest.$ac_ext >&5
29702
29703   ac_header_preproc=no
29704 fi
29705
29706 rm -f conftest.err conftest.$ac_ext
29707 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29708 echo "${ECHO_T}$ac_header_preproc" >&6; }
29709
29710 # So?  What about this header?
29711 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29712   yes:no: )
29713     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29714 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29715     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29716 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29717     ac_header_preproc=yes
29718     ;;
29719   no:yes:* )
29720     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29721 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29722     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29723 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29724     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29725 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29726     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29727 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29728     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29729 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29730     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29731 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29732     ( cat <<\_ASBOX
29733 ## ----------------------------------- ##
29734 ## Report this to llvmbugs@cs.uiuc.edu ##
29735 ## ----------------------------------- ##
29736 _ASBOX
29737      ) | sed "s/^/$as_me: WARNING:     /" >&2
29738     ;;
29739 esac
29740 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29741 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29742 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29743   echo $ECHO_N "(cached) $ECHO_C" >&6
29744 else
29745   eval "$as_ac_Header=\$ac_header_preproc"
29746 fi
29747 ac_res=`eval echo '${'$as_ac_Header'}'`
29748                { echo "$as_me:$LINENO: result: $ac_res" >&5
29749 echo "${ECHO_T}$ac_res" >&6; }
29750
29751 fi
29752 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29753   cat >>confdefs.h <<_ACEOF
29754 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29755 _ACEOF
29756  HAVE_PTHREAD=1
29757
29758 else
29759   HAVE_PTHREAD=0
29760
29761 fi
29762
29763 done
29764
29765 else
29766   HAVE_PTHREAD=0
29767
29768 fi
29769
29770
29771
29772   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29773 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29774 if test "${ac_cv_huge_val_sanity+set}" = set; then
29775   echo $ECHO_N "(cached) $ECHO_C" >&6
29776 else
29777
29778     ac_ext=cpp
29779 ac_cpp='$CXXCPP $CPPFLAGS'
29780 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29781 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29782 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29783
29784     CXXFLAGS=-pedantic
29785     if test "$cross_compiling" = yes; then
29786   ac_cv_huge_val_sanity=yes
29787 else
29788   cat >conftest.$ac_ext <<_ACEOF
29789 /* confdefs.h.  */
29790 _ACEOF
29791 cat confdefs.h >>conftest.$ac_ext
29792 cat >>conftest.$ac_ext <<_ACEOF
29793 /* end confdefs.h.  */
29794 #include <math.h>
29795 int
29796 main ()
29797 {
29798 double x = HUGE_VAL; return x != x;
29799   ;
29800   return 0;
29801 }
29802 _ACEOF
29803 rm -f conftest$ac_exeext
29804 if { (ac_try="$ac_link"
29805 case "(($ac_try" in
29806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29807   *) ac_try_echo=$ac_try;;
29808 esac
29809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29810   (eval "$ac_link") 2>&5
29811   ac_status=$?
29812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29813   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29814   { (case "(($ac_try" in
29815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29816   *) ac_try_echo=$ac_try;;
29817 esac
29818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29819   (eval "$ac_try") 2>&5
29820   ac_status=$?
29821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29822   (exit $ac_status); }; }; then
29823   ac_cv_huge_val_sanity=yes
29824 else
29825   echo "$as_me: program exited with status $ac_status" >&5
29826 echo "$as_me: failed program was:" >&5
29827 sed 's/^/| /' conftest.$ac_ext >&5
29828
29829 ( exit $ac_status )
29830 ac_cv_huge_val_sanity=no
29831 fi
29832 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29833 fi
29834
29835
29836     ac_ext=c
29837 ac_cpp='$CPP $CPPFLAGS'
29838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29841
29842
29843 fi
29844 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
29845 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
29846   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
29847
29848
29849 { echo "$as_me:$LINENO: checking for pid_t" >&5
29850 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
29851 if test "${ac_cv_type_pid_t+set}" = set; then
29852   echo $ECHO_N "(cached) $ECHO_C" >&6
29853 else
29854   cat >conftest.$ac_ext <<_ACEOF
29855 /* confdefs.h.  */
29856 _ACEOF
29857 cat confdefs.h >>conftest.$ac_ext
29858 cat >>conftest.$ac_ext <<_ACEOF
29859 /* end confdefs.h.  */
29860 $ac_includes_default
29861 typedef pid_t ac__type_new_;
29862 int
29863 main ()
29864 {
29865 if ((ac__type_new_ *) 0)
29866   return 0;
29867 if (sizeof (ac__type_new_))
29868   return 0;
29869   ;
29870   return 0;
29871 }
29872 _ACEOF
29873 rm -f conftest.$ac_objext
29874 if { (ac_try="$ac_compile"
29875 case "(($ac_try" in
29876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29877   *) ac_try_echo=$ac_try;;
29878 esac
29879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29880   (eval "$ac_compile") 2>conftest.er1
29881   ac_status=$?
29882   grep -v '^ *+' conftest.er1 >conftest.err
29883   rm -f conftest.er1
29884   cat conftest.err >&5
29885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29886   (exit $ac_status); } &&
29887          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29888   { (case "(($ac_try" in
29889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29890   *) ac_try_echo=$ac_try;;
29891 esac
29892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29893   (eval "$ac_try") 2>&5
29894   ac_status=$?
29895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29896   (exit $ac_status); }; } &&
29897          { ac_try='test -s conftest.$ac_objext'
29898   { (case "(($ac_try" in
29899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29900   *) ac_try_echo=$ac_try;;
29901 esac
29902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29903   (eval "$ac_try") 2>&5
29904   ac_status=$?
29905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29906   (exit $ac_status); }; }; then
29907   ac_cv_type_pid_t=yes
29908 else
29909   echo "$as_me: failed program was:" >&5
29910 sed 's/^/| /' conftest.$ac_ext >&5
29911
29912         ac_cv_type_pid_t=no
29913 fi
29914
29915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29916 fi
29917 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29918 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
29919 if test $ac_cv_type_pid_t = yes; then
29920   :
29921 else
29922
29923 cat >>confdefs.h <<_ACEOF
29924 #define pid_t int
29925 _ACEOF
29926
29927 fi
29928
29929 { echo "$as_me:$LINENO: checking for size_t" >&5
29930 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
29931 if test "${ac_cv_type_size_t+set}" = set; then
29932   echo $ECHO_N "(cached) $ECHO_C" >&6
29933 else
29934   cat >conftest.$ac_ext <<_ACEOF
29935 /* confdefs.h.  */
29936 _ACEOF
29937 cat confdefs.h >>conftest.$ac_ext
29938 cat >>conftest.$ac_ext <<_ACEOF
29939 /* end confdefs.h.  */
29940 $ac_includes_default
29941 typedef size_t ac__type_new_;
29942 int
29943 main ()
29944 {
29945 if ((ac__type_new_ *) 0)
29946   return 0;
29947 if (sizeof (ac__type_new_))
29948   return 0;
29949   ;
29950   return 0;
29951 }
29952 _ACEOF
29953 rm -f conftest.$ac_objext
29954 if { (ac_try="$ac_compile"
29955 case "(($ac_try" in
29956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29957   *) ac_try_echo=$ac_try;;
29958 esac
29959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29960   (eval "$ac_compile") 2>conftest.er1
29961   ac_status=$?
29962   grep -v '^ *+' conftest.er1 >conftest.err
29963   rm -f conftest.er1
29964   cat conftest.err >&5
29965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29966   (exit $ac_status); } &&
29967          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29968   { (case "(($ac_try" in
29969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29970   *) ac_try_echo=$ac_try;;
29971 esac
29972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29973   (eval "$ac_try") 2>&5
29974   ac_status=$?
29975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29976   (exit $ac_status); }; } &&
29977          { ac_try='test -s conftest.$ac_objext'
29978   { (case "(($ac_try" in
29979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29980   *) ac_try_echo=$ac_try;;
29981 esac
29982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29983   (eval "$ac_try") 2>&5
29984   ac_status=$?
29985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29986   (exit $ac_status); }; }; then
29987   ac_cv_type_size_t=yes
29988 else
29989   echo "$as_me: failed program was:" >&5
29990 sed 's/^/| /' conftest.$ac_ext >&5
29991
29992         ac_cv_type_size_t=no
29993 fi
29994
29995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29996 fi
29997 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29998 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
29999 if test $ac_cv_type_size_t = yes; then
30000   :
30001 else
30002
30003 cat >>confdefs.h <<_ACEOF
30004 #define size_t unsigned int
30005 _ACEOF
30006
30007 fi
30008
30009 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
30010 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
30011 if test "${ac_cv_type_signal+set}" = set; then
30012   echo $ECHO_N "(cached) $ECHO_C" >&6
30013 else
30014   cat >conftest.$ac_ext <<_ACEOF
30015 /* confdefs.h.  */
30016 _ACEOF
30017 cat confdefs.h >>conftest.$ac_ext
30018 cat >>conftest.$ac_ext <<_ACEOF
30019 /* end confdefs.h.  */
30020 #include <sys/types.h>
30021 #include <signal.h>
30022
30023 int
30024 main ()
30025 {
30026 return *(signal (0, 0)) (0) == 1;
30027   ;
30028   return 0;
30029 }
30030 _ACEOF
30031 rm -f conftest.$ac_objext
30032 if { (ac_try="$ac_compile"
30033 case "(($ac_try" in
30034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30035   *) ac_try_echo=$ac_try;;
30036 esac
30037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30038   (eval "$ac_compile") 2>conftest.er1
30039   ac_status=$?
30040   grep -v '^ *+' conftest.er1 >conftest.err
30041   rm -f conftest.er1
30042   cat conftest.err >&5
30043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30044   (exit $ac_status); } &&
30045          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30046   { (case "(($ac_try" in
30047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30048   *) ac_try_echo=$ac_try;;
30049 esac
30050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30051   (eval "$ac_try") 2>&5
30052   ac_status=$?
30053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30054   (exit $ac_status); }; } &&
30055          { ac_try='test -s conftest.$ac_objext'
30056   { (case "(($ac_try" in
30057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30058   *) ac_try_echo=$ac_try;;
30059 esac
30060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30061   (eval "$ac_try") 2>&5
30062   ac_status=$?
30063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30064   (exit $ac_status); }; }; then
30065   ac_cv_type_signal=int
30066 else
30067   echo "$as_me: failed program was:" >&5
30068 sed 's/^/| /' conftest.$ac_ext >&5
30069
30070         ac_cv_type_signal=void
30071 fi
30072
30073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30074 fi
30075 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30076 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
30077
30078 cat >>confdefs.h <<_ACEOF
30079 #define RETSIGTYPE $ac_cv_type_signal
30080 _ACEOF
30081
30082
30083 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30084 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
30085 if test "${ac_cv_struct_tm+set}" = set; then
30086   echo $ECHO_N "(cached) $ECHO_C" >&6
30087 else
30088   cat >conftest.$ac_ext <<_ACEOF
30089 /* confdefs.h.  */
30090 _ACEOF
30091 cat confdefs.h >>conftest.$ac_ext
30092 cat >>conftest.$ac_ext <<_ACEOF
30093 /* end confdefs.h.  */
30094 #include <sys/types.h>
30095 #include <time.h>
30096
30097 int
30098 main ()
30099 {
30100 struct tm *tp; tp->tm_sec;
30101   ;
30102   return 0;
30103 }
30104 _ACEOF
30105 rm -f conftest.$ac_objext
30106 if { (ac_try="$ac_compile"
30107 case "(($ac_try" in
30108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30109   *) ac_try_echo=$ac_try;;
30110 esac
30111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30112   (eval "$ac_compile") 2>conftest.er1
30113   ac_status=$?
30114   grep -v '^ *+' conftest.er1 >conftest.err
30115   rm -f conftest.er1
30116   cat conftest.err >&5
30117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30118   (exit $ac_status); } &&
30119          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30120   { (case "(($ac_try" in
30121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30122   *) ac_try_echo=$ac_try;;
30123 esac
30124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30125   (eval "$ac_try") 2>&5
30126   ac_status=$?
30127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30128   (exit $ac_status); }; } &&
30129          { ac_try='test -s conftest.$ac_objext'
30130   { (case "(($ac_try" in
30131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30132   *) ac_try_echo=$ac_try;;
30133 esac
30134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30135   (eval "$ac_try") 2>&5
30136   ac_status=$?
30137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30138   (exit $ac_status); }; }; then
30139   ac_cv_struct_tm=time.h
30140 else
30141   echo "$as_me: failed program was:" >&5
30142 sed 's/^/| /' conftest.$ac_ext >&5
30143
30144         ac_cv_struct_tm=sys/time.h
30145 fi
30146
30147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30148 fi
30149 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30150 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
30151 if test $ac_cv_struct_tm = sys/time.h; then
30152
30153 cat >>confdefs.h <<\_ACEOF
30154 #define TM_IN_SYS_TIME 1
30155 _ACEOF
30156
30157 fi
30158
30159 { echo "$as_me:$LINENO: checking for int64_t" >&5
30160 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
30161 if test "${ac_cv_type_int64_t+set}" = set; then
30162   echo $ECHO_N "(cached) $ECHO_C" >&6
30163 else
30164   cat >conftest.$ac_ext <<_ACEOF
30165 /* confdefs.h.  */
30166 _ACEOF
30167 cat confdefs.h >>conftest.$ac_ext
30168 cat >>conftest.$ac_ext <<_ACEOF
30169 /* end confdefs.h.  */
30170 $ac_includes_default
30171 typedef int64_t ac__type_new_;
30172 int
30173 main ()
30174 {
30175 if ((ac__type_new_ *) 0)
30176   return 0;
30177 if (sizeof (ac__type_new_))
30178   return 0;
30179   ;
30180   return 0;
30181 }
30182 _ACEOF
30183 rm -f conftest.$ac_objext
30184 if { (ac_try="$ac_compile"
30185 case "(($ac_try" in
30186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30187   *) ac_try_echo=$ac_try;;
30188 esac
30189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30190   (eval "$ac_compile") 2>conftest.er1
30191   ac_status=$?
30192   grep -v '^ *+' conftest.er1 >conftest.err
30193   rm -f conftest.er1
30194   cat conftest.err >&5
30195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30196   (exit $ac_status); } &&
30197          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30198   { (case "(($ac_try" in
30199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30200   *) ac_try_echo=$ac_try;;
30201 esac
30202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30203   (eval "$ac_try") 2>&5
30204   ac_status=$?
30205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30206   (exit $ac_status); }; } &&
30207          { ac_try='test -s conftest.$ac_objext'
30208   { (case "(($ac_try" in
30209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30210   *) ac_try_echo=$ac_try;;
30211 esac
30212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30213   (eval "$ac_try") 2>&5
30214   ac_status=$?
30215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30216   (exit $ac_status); }; }; then
30217   ac_cv_type_int64_t=yes
30218 else
30219   echo "$as_me: failed program was:" >&5
30220 sed 's/^/| /' conftest.$ac_ext >&5
30221
30222         ac_cv_type_int64_t=no
30223 fi
30224
30225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30226 fi
30227 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30228 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
30229 if test $ac_cv_type_int64_t = yes; then
30230
30231 cat >>confdefs.h <<_ACEOF
30232 #define HAVE_INT64_T 1
30233 _ACEOF
30234
30235
30236 else
30237   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30238 echo "$as_me: error: Type int64_t required but not found" >&2;}
30239    { (exit 1); exit 1; }; }
30240 fi
30241
30242 { echo "$as_me:$LINENO: checking for uint64_t" >&5
30243 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
30244 if test "${ac_cv_type_uint64_t+set}" = set; then
30245   echo $ECHO_N "(cached) $ECHO_C" >&6
30246 else
30247   cat >conftest.$ac_ext <<_ACEOF
30248 /* confdefs.h.  */
30249 _ACEOF
30250 cat confdefs.h >>conftest.$ac_ext
30251 cat >>conftest.$ac_ext <<_ACEOF
30252 /* end confdefs.h.  */
30253 $ac_includes_default
30254 typedef uint64_t ac__type_new_;
30255 int
30256 main ()
30257 {
30258 if ((ac__type_new_ *) 0)
30259   return 0;
30260 if (sizeof (ac__type_new_))
30261   return 0;
30262   ;
30263   return 0;
30264 }
30265 _ACEOF
30266 rm -f conftest.$ac_objext
30267 if { (ac_try="$ac_compile"
30268 case "(($ac_try" in
30269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30270   *) ac_try_echo=$ac_try;;
30271 esac
30272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30273   (eval "$ac_compile") 2>conftest.er1
30274   ac_status=$?
30275   grep -v '^ *+' conftest.er1 >conftest.err
30276   rm -f conftest.er1
30277   cat conftest.err >&5
30278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30279   (exit $ac_status); } &&
30280          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30281   { (case "(($ac_try" in
30282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30283   *) ac_try_echo=$ac_try;;
30284 esac
30285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30286   (eval "$ac_try") 2>&5
30287   ac_status=$?
30288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30289   (exit $ac_status); }; } &&
30290          { ac_try='test -s conftest.$ac_objext'
30291   { (case "(($ac_try" in
30292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30293   *) ac_try_echo=$ac_try;;
30294 esac
30295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30296   (eval "$ac_try") 2>&5
30297   ac_status=$?
30298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30299   (exit $ac_status); }; }; then
30300   ac_cv_type_uint64_t=yes
30301 else
30302   echo "$as_me: failed program was:" >&5
30303 sed 's/^/| /' conftest.$ac_ext >&5
30304
30305         ac_cv_type_uint64_t=no
30306 fi
30307
30308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30309 fi
30310 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30311 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
30312 if test $ac_cv_type_uint64_t = yes; then
30313
30314 cat >>confdefs.h <<_ACEOF
30315 #define HAVE_UINT64_T 1
30316 _ACEOF
30317
30318
30319 else
30320   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30321 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
30322 if test "${ac_cv_type_u_int64_t+set}" = set; then
30323   echo $ECHO_N "(cached) $ECHO_C" >&6
30324 else
30325   cat >conftest.$ac_ext <<_ACEOF
30326 /* confdefs.h.  */
30327 _ACEOF
30328 cat confdefs.h >>conftest.$ac_ext
30329 cat >>conftest.$ac_ext <<_ACEOF
30330 /* end confdefs.h.  */
30331 $ac_includes_default
30332 typedef u_int64_t ac__type_new_;
30333 int
30334 main ()
30335 {
30336 if ((ac__type_new_ *) 0)
30337   return 0;
30338 if (sizeof (ac__type_new_))
30339   return 0;
30340   ;
30341   return 0;
30342 }
30343 _ACEOF
30344 rm -f conftest.$ac_objext
30345 if { (ac_try="$ac_compile"
30346 case "(($ac_try" in
30347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30348   *) ac_try_echo=$ac_try;;
30349 esac
30350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30351   (eval "$ac_compile") 2>conftest.er1
30352   ac_status=$?
30353   grep -v '^ *+' conftest.er1 >conftest.err
30354   rm -f conftest.er1
30355   cat conftest.err >&5
30356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30357   (exit $ac_status); } &&
30358          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30359   { (case "(($ac_try" in
30360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30361   *) ac_try_echo=$ac_try;;
30362 esac
30363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30364   (eval "$ac_try") 2>&5
30365   ac_status=$?
30366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30367   (exit $ac_status); }; } &&
30368          { ac_try='test -s conftest.$ac_objext'
30369   { (case "(($ac_try" in
30370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30371   *) ac_try_echo=$ac_try;;
30372 esac
30373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30374   (eval "$ac_try") 2>&5
30375   ac_status=$?
30376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30377   (exit $ac_status); }; }; then
30378   ac_cv_type_u_int64_t=yes
30379 else
30380   echo "$as_me: failed program was:" >&5
30381 sed 's/^/| /' conftest.$ac_ext >&5
30382
30383         ac_cv_type_u_int64_t=no
30384 fi
30385
30386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30387 fi
30388 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30389 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
30390 if test $ac_cv_type_u_int64_t = yes; then
30391
30392 cat >>confdefs.h <<_ACEOF
30393 #define HAVE_U_INT64_T 1
30394 _ACEOF
30395
30396
30397 else
30398   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30399 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30400    { (exit 1); exit 1; }; }
30401 fi
30402
30403 fi
30404
30405
30406
30407
30408
30409
30410
30411
30412
30413
30414 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
30415 do
30416 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30417 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30418 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30419 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30420   echo $ECHO_N "(cached) $ECHO_C" >&6
30421 else
30422   cat >conftest.$ac_ext <<_ACEOF
30423 /* confdefs.h.  */
30424 _ACEOF
30425 cat confdefs.h >>conftest.$ac_ext
30426 cat >>conftest.$ac_ext <<_ACEOF
30427 /* end confdefs.h.  */
30428 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30429    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30430 #define $ac_func innocuous_$ac_func
30431
30432 /* System header to define __stub macros and hopefully few prototypes,
30433     which can conflict with char $ac_func (); below.
30434     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30435     <limits.h> exists even on freestanding compilers.  */
30436
30437 #ifdef __STDC__
30438 # include <limits.h>
30439 #else
30440 # include <assert.h>
30441 #endif
30442
30443 #undef $ac_func
30444
30445 /* Override any GCC internal prototype to avoid an error.
30446    Use char because int might match the return type of a GCC
30447    builtin and then its argument prototype would still apply.  */
30448 #ifdef __cplusplus
30449 extern "C"
30450 #endif
30451 char $ac_func ();
30452 /* The GNU C library defines this for functions which it implements
30453     to always fail with ENOSYS.  Some functions are actually named
30454     something starting with __ and the normal name is an alias.  */
30455 #if defined __stub_$ac_func || defined __stub___$ac_func
30456 choke me
30457 #endif
30458
30459 int
30460 main ()
30461 {
30462 return $ac_func ();
30463   ;
30464   return 0;
30465 }
30466 _ACEOF
30467 rm -f conftest.$ac_objext conftest$ac_exeext
30468 if { (ac_try="$ac_link"
30469 case "(($ac_try" in
30470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30471   *) ac_try_echo=$ac_try;;
30472 esac
30473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30474   (eval "$ac_link") 2>conftest.er1
30475   ac_status=$?
30476   grep -v '^ *+' conftest.er1 >conftest.err
30477   rm -f conftest.er1
30478   cat conftest.err >&5
30479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30480   (exit $ac_status); } &&
30481          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30482   { (case "(($ac_try" in
30483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30484   *) ac_try_echo=$ac_try;;
30485 esac
30486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30487   (eval "$ac_try") 2>&5
30488   ac_status=$?
30489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30490   (exit $ac_status); }; } &&
30491          { ac_try='test -s conftest$ac_exeext'
30492   { (case "(($ac_try" in
30493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30494   *) ac_try_echo=$ac_try;;
30495 esac
30496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30497   (eval "$ac_try") 2>&5
30498   ac_status=$?
30499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30500   (exit $ac_status); }; }; then
30501   eval "$as_ac_var=yes"
30502 else
30503   echo "$as_me: failed program was:" >&5
30504 sed 's/^/| /' conftest.$ac_ext >&5
30505
30506         eval "$as_ac_var=no"
30507 fi
30508
30509 rm -f core conftest.err conftest.$ac_objext \
30510       conftest$ac_exeext conftest.$ac_ext
30511 fi
30512 ac_res=`eval echo '${'$as_ac_var'}'`
30513                { echo "$as_me:$LINENO: result: $ac_res" >&5
30514 echo "${ECHO_T}$ac_res" >&6; }
30515 if test `eval echo '${'$as_ac_var'}'` = yes; then
30516   cat >>confdefs.h <<_ACEOF
30517 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30518 _ACEOF
30519
30520 fi
30521 done
30522
30523
30524
30525
30526
30527 for ac_func in powf fmodf strtof round
30528 do
30529 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30530 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30531 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30532 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30533   echo $ECHO_N "(cached) $ECHO_C" >&6
30534 else
30535   cat >conftest.$ac_ext <<_ACEOF
30536 /* confdefs.h.  */
30537 _ACEOF
30538 cat confdefs.h >>conftest.$ac_ext
30539 cat >>conftest.$ac_ext <<_ACEOF
30540 /* end confdefs.h.  */
30541 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30542    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30543 #define $ac_func innocuous_$ac_func
30544
30545 /* System header to define __stub macros and hopefully few prototypes,
30546     which can conflict with char $ac_func (); below.
30547     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30548     <limits.h> exists even on freestanding compilers.  */
30549
30550 #ifdef __STDC__
30551 # include <limits.h>
30552 #else
30553 # include <assert.h>
30554 #endif
30555
30556 #undef $ac_func
30557
30558 /* Override any GCC internal prototype to avoid an error.
30559    Use char because int might match the return type of a GCC
30560    builtin and then its argument prototype would still apply.  */
30561 #ifdef __cplusplus
30562 extern "C"
30563 #endif
30564 char $ac_func ();
30565 /* The GNU C library defines this for functions which it implements
30566     to always fail with ENOSYS.  Some functions are actually named
30567     something starting with __ and the normal name is an alias.  */
30568 #if defined __stub_$ac_func || defined __stub___$ac_func
30569 choke me
30570 #endif
30571
30572 int
30573 main ()
30574 {
30575 return $ac_func ();
30576   ;
30577   return 0;
30578 }
30579 _ACEOF
30580 rm -f conftest.$ac_objext conftest$ac_exeext
30581 if { (ac_try="$ac_link"
30582 case "(($ac_try" in
30583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30584   *) ac_try_echo=$ac_try;;
30585 esac
30586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30587   (eval "$ac_link") 2>conftest.er1
30588   ac_status=$?
30589   grep -v '^ *+' conftest.er1 >conftest.err
30590   rm -f conftest.er1
30591   cat conftest.err >&5
30592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30593   (exit $ac_status); } &&
30594          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30595   { (case "(($ac_try" in
30596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30597   *) ac_try_echo=$ac_try;;
30598 esac
30599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30600   (eval "$ac_try") 2>&5
30601   ac_status=$?
30602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30603   (exit $ac_status); }; } &&
30604          { ac_try='test -s conftest$ac_exeext'
30605   { (case "(($ac_try" in
30606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30607   *) ac_try_echo=$ac_try;;
30608 esac
30609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30610   (eval "$ac_try") 2>&5
30611   ac_status=$?
30612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30613   (exit $ac_status); }; }; then
30614   eval "$as_ac_var=yes"
30615 else
30616   echo "$as_me: failed program was:" >&5
30617 sed 's/^/| /' conftest.$ac_ext >&5
30618
30619         eval "$as_ac_var=no"
30620 fi
30621
30622 rm -f core conftest.err conftest.$ac_objext \
30623       conftest$ac_exeext conftest.$ac_ext
30624 fi
30625 ac_res=`eval echo '${'$as_ac_var'}'`
30626                { echo "$as_me:$LINENO: result: $ac_res" >&5
30627 echo "${ECHO_T}$ac_res" >&6; }
30628 if test `eval echo '${'$as_ac_var'}'` = yes; then
30629   cat >>confdefs.h <<_ACEOF
30630 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30631 _ACEOF
30632
30633 fi
30634 done
30635
30636
30637
30638
30639
30640
30641 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
30642 do
30643 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30644 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30645 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30646 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30647   echo $ECHO_N "(cached) $ECHO_C" >&6
30648 else
30649   cat >conftest.$ac_ext <<_ACEOF
30650 /* confdefs.h.  */
30651 _ACEOF
30652 cat confdefs.h >>conftest.$ac_ext
30653 cat >>conftest.$ac_ext <<_ACEOF
30654 /* end confdefs.h.  */
30655 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30656    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30657 #define $ac_func innocuous_$ac_func
30658
30659 /* System header to define __stub macros and hopefully few prototypes,
30660     which can conflict with char $ac_func (); below.
30661     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30662     <limits.h> exists even on freestanding compilers.  */
30663
30664 #ifdef __STDC__
30665 # include <limits.h>
30666 #else
30667 # include <assert.h>
30668 #endif
30669
30670 #undef $ac_func
30671
30672 /* Override any GCC internal prototype to avoid an error.
30673    Use char because int might match the return type of a GCC
30674    builtin and then its argument prototype would still apply.  */
30675 #ifdef __cplusplus
30676 extern "C"
30677 #endif
30678 char $ac_func ();
30679 /* The GNU C library defines this for functions which it implements
30680     to always fail with ENOSYS.  Some functions are actually named
30681     something starting with __ and the normal name is an alias.  */
30682 #if defined __stub_$ac_func || defined __stub___$ac_func
30683 choke me
30684 #endif
30685
30686 int
30687 main ()
30688 {
30689 return $ac_func ();
30690   ;
30691   return 0;
30692 }
30693 _ACEOF
30694 rm -f conftest.$ac_objext conftest$ac_exeext
30695 if { (ac_try="$ac_link"
30696 case "(($ac_try" in
30697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30698   *) ac_try_echo=$ac_try;;
30699 esac
30700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30701   (eval "$ac_link") 2>conftest.er1
30702   ac_status=$?
30703   grep -v '^ *+' conftest.er1 >conftest.err
30704   rm -f conftest.er1
30705   cat conftest.err >&5
30706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30707   (exit $ac_status); } &&
30708          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30709   { (case "(($ac_try" in
30710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30711   *) ac_try_echo=$ac_try;;
30712 esac
30713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30714   (eval "$ac_try") 2>&5
30715   ac_status=$?
30716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30717   (exit $ac_status); }; } &&
30718          { ac_try='test -s conftest$ac_exeext'
30719   { (case "(($ac_try" in
30720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30721   *) ac_try_echo=$ac_try;;
30722 esac
30723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30724   (eval "$ac_try") 2>&5
30725   ac_status=$?
30726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30727   (exit $ac_status); }; }; then
30728   eval "$as_ac_var=yes"
30729 else
30730   echo "$as_me: failed program was:" >&5
30731 sed 's/^/| /' conftest.$ac_ext >&5
30732
30733         eval "$as_ac_var=no"
30734 fi
30735
30736 rm -f core conftest.err conftest.$ac_objext \
30737       conftest$ac_exeext conftest.$ac_ext
30738 fi
30739 ac_res=`eval echo '${'$as_ac_var'}'`
30740                { echo "$as_me:$LINENO: result: $ac_res" >&5
30741 echo "${ECHO_T}$ac_res" >&6; }
30742 if test `eval echo '${'$as_ac_var'}'` = yes; then
30743   cat >>confdefs.h <<_ACEOF
30744 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30745 _ACEOF
30746
30747 fi
30748 done
30749
30750
30751
30752
30753 for ac_func in isatty mkdtemp mkstemp
30754 do
30755 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30756 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30757 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30758 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30759   echo $ECHO_N "(cached) $ECHO_C" >&6
30760 else
30761   cat >conftest.$ac_ext <<_ACEOF
30762 /* confdefs.h.  */
30763 _ACEOF
30764 cat confdefs.h >>conftest.$ac_ext
30765 cat >>conftest.$ac_ext <<_ACEOF
30766 /* end confdefs.h.  */
30767 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30768    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30769 #define $ac_func innocuous_$ac_func
30770
30771 /* System header to define __stub macros and hopefully few prototypes,
30772     which can conflict with char $ac_func (); below.
30773     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30774     <limits.h> exists even on freestanding compilers.  */
30775
30776 #ifdef __STDC__
30777 # include <limits.h>
30778 #else
30779 # include <assert.h>
30780 #endif
30781
30782 #undef $ac_func
30783
30784 /* Override any GCC internal prototype to avoid an error.
30785    Use char because int might match the return type of a GCC
30786    builtin and then its argument prototype would still apply.  */
30787 #ifdef __cplusplus
30788 extern "C"
30789 #endif
30790 char $ac_func ();
30791 /* The GNU C library defines this for functions which it implements
30792     to always fail with ENOSYS.  Some functions are actually named
30793     something starting with __ and the normal name is an alias.  */
30794 #if defined __stub_$ac_func || defined __stub___$ac_func
30795 choke me
30796 #endif
30797
30798 int
30799 main ()
30800 {
30801 return $ac_func ();
30802   ;
30803   return 0;
30804 }
30805 _ACEOF
30806 rm -f conftest.$ac_objext conftest$ac_exeext
30807 if { (ac_try="$ac_link"
30808 case "(($ac_try" in
30809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30810   *) ac_try_echo=$ac_try;;
30811 esac
30812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30813   (eval "$ac_link") 2>conftest.er1
30814   ac_status=$?
30815   grep -v '^ *+' conftest.er1 >conftest.err
30816   rm -f conftest.er1
30817   cat conftest.err >&5
30818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30819   (exit $ac_status); } &&
30820          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30821   { (case "(($ac_try" in
30822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30823   *) ac_try_echo=$ac_try;;
30824 esac
30825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30826   (eval "$ac_try") 2>&5
30827   ac_status=$?
30828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30829   (exit $ac_status); }; } &&
30830          { ac_try='test -s conftest$ac_exeext'
30831   { (case "(($ac_try" in
30832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30833   *) ac_try_echo=$ac_try;;
30834 esac
30835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30836   (eval "$ac_try") 2>&5
30837   ac_status=$?
30838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30839   (exit $ac_status); }; }; then
30840   eval "$as_ac_var=yes"
30841 else
30842   echo "$as_me: failed program was:" >&5
30843 sed 's/^/| /' conftest.$ac_ext >&5
30844
30845         eval "$as_ac_var=no"
30846 fi
30847
30848 rm -f core conftest.err conftest.$ac_objext \
30849       conftest$ac_exeext conftest.$ac_ext
30850 fi
30851 ac_res=`eval echo '${'$as_ac_var'}'`
30852                { echo "$as_me:$LINENO: result: $ac_res" >&5
30853 echo "${ECHO_T}$ac_res" >&6; }
30854 if test `eval echo '${'$as_ac_var'}'` = yes; then
30855   cat >>confdefs.h <<_ACEOF
30856 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30857 _ACEOF
30858
30859 fi
30860 done
30861
30862
30863
30864
30865
30866
30867
30868
30869 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
30870 do
30871 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30872 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30873 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30874 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30875   echo $ECHO_N "(cached) $ECHO_C" >&6
30876 else
30877   cat >conftest.$ac_ext <<_ACEOF
30878 /* confdefs.h.  */
30879 _ACEOF
30880 cat confdefs.h >>conftest.$ac_ext
30881 cat >>conftest.$ac_ext <<_ACEOF
30882 /* end confdefs.h.  */
30883 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30884    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30885 #define $ac_func innocuous_$ac_func
30886
30887 /* System header to define __stub macros and hopefully few prototypes,
30888     which can conflict with char $ac_func (); below.
30889     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30890     <limits.h> exists even on freestanding compilers.  */
30891
30892 #ifdef __STDC__
30893 # include <limits.h>
30894 #else
30895 # include <assert.h>
30896 #endif
30897
30898 #undef $ac_func
30899
30900 /* Override any GCC internal prototype to avoid an error.
30901    Use char because int might match the return type of a GCC
30902    builtin and then its argument prototype would still apply.  */
30903 #ifdef __cplusplus
30904 extern "C"
30905 #endif
30906 char $ac_func ();
30907 /* The GNU C library defines this for functions which it implements
30908     to always fail with ENOSYS.  Some functions are actually named
30909     something starting with __ and the normal name is an alias.  */
30910 #if defined __stub_$ac_func || defined __stub___$ac_func
30911 choke me
30912 #endif
30913
30914 int
30915 main ()
30916 {
30917 return $ac_func ();
30918   ;
30919   return 0;
30920 }
30921 _ACEOF
30922 rm -f conftest.$ac_objext conftest$ac_exeext
30923 if { (ac_try="$ac_link"
30924 case "(($ac_try" in
30925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30926   *) ac_try_echo=$ac_try;;
30927 esac
30928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30929   (eval "$ac_link") 2>conftest.er1
30930   ac_status=$?
30931   grep -v '^ *+' conftest.er1 >conftest.err
30932   rm -f conftest.er1
30933   cat conftest.err >&5
30934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30935   (exit $ac_status); } &&
30936          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30937   { (case "(($ac_try" in
30938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30939   *) ac_try_echo=$ac_try;;
30940 esac
30941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30942   (eval "$ac_try") 2>&5
30943   ac_status=$?
30944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30945   (exit $ac_status); }; } &&
30946          { ac_try='test -s conftest$ac_exeext'
30947   { (case "(($ac_try" in
30948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30949   *) ac_try_echo=$ac_try;;
30950 esac
30951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30952   (eval "$ac_try") 2>&5
30953   ac_status=$?
30954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30955   (exit $ac_status); }; }; then
30956   eval "$as_ac_var=yes"
30957 else
30958   echo "$as_me: failed program was:" >&5
30959 sed 's/^/| /' conftest.$ac_ext >&5
30960
30961         eval "$as_ac_var=no"
30962 fi
30963
30964 rm -f core conftest.err conftest.$ac_objext \
30965       conftest$ac_exeext conftest.$ac_ext
30966 fi
30967 ac_res=`eval echo '${'$as_ac_var'}'`
30968                { echo "$as_me:$LINENO: result: $ac_res" >&5
30969 echo "${ECHO_T}$ac_res" >&6; }
30970 if test `eval echo '${'$as_ac_var'}'` = yes; then
30971   cat >>confdefs.h <<_ACEOF
30972 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30973 _ACEOF
30974
30975 fi
30976 done
30977
30978
30979
30980
30981
30982 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
30983 do
30984 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30985 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30986 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30987 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30988   echo $ECHO_N "(cached) $ECHO_C" >&6
30989 else
30990   cat >conftest.$ac_ext <<_ACEOF
30991 /* confdefs.h.  */
30992 _ACEOF
30993 cat confdefs.h >>conftest.$ac_ext
30994 cat >>conftest.$ac_ext <<_ACEOF
30995 /* end confdefs.h.  */
30996 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30997    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30998 #define $ac_func innocuous_$ac_func
30999
31000 /* System header to define __stub macros and hopefully few prototypes,
31001     which can conflict with char $ac_func (); below.
31002     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31003     <limits.h> exists even on freestanding compilers.  */
31004
31005 #ifdef __STDC__
31006 # include <limits.h>
31007 #else
31008 # include <assert.h>
31009 #endif
31010
31011 #undef $ac_func
31012
31013 /* Override any GCC internal prototype to avoid an error.
31014    Use char because int might match the return type of a GCC
31015    builtin and then its argument prototype would still apply.  */
31016 #ifdef __cplusplus
31017 extern "C"
31018 #endif
31019 char $ac_func ();
31020 /* The GNU C library defines this for functions which it implements
31021     to always fail with ENOSYS.  Some functions are actually named
31022     something starting with __ and the normal name is an alias.  */
31023 #if defined __stub_$ac_func || defined __stub___$ac_func
31024 choke me
31025 #endif
31026
31027 int
31028 main ()
31029 {
31030 return $ac_func ();
31031   ;
31032   return 0;
31033 }
31034 _ACEOF
31035 rm -f conftest.$ac_objext conftest$ac_exeext
31036 if { (ac_try="$ac_link"
31037 case "(($ac_try" in
31038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31039   *) ac_try_echo=$ac_try;;
31040 esac
31041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31042   (eval "$ac_link") 2>conftest.er1
31043   ac_status=$?
31044   grep -v '^ *+' conftest.er1 >conftest.err
31045   rm -f conftest.er1
31046   cat conftest.err >&5
31047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31048   (exit $ac_status); } &&
31049          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31050   { (case "(($ac_try" in
31051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31052   *) ac_try_echo=$ac_try;;
31053 esac
31054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31055   (eval "$ac_try") 2>&5
31056   ac_status=$?
31057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31058   (exit $ac_status); }; } &&
31059          { ac_try='test -s conftest$ac_exeext'
31060   { (case "(($ac_try" in
31061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31062   *) ac_try_echo=$ac_try;;
31063 esac
31064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31065   (eval "$ac_try") 2>&5
31066   ac_status=$?
31067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31068   (exit $ac_status); }; }; then
31069   eval "$as_ac_var=yes"
31070 else
31071   echo "$as_me: failed program was:" >&5
31072 sed 's/^/| /' conftest.$ac_ext >&5
31073
31074         eval "$as_ac_var=no"
31075 fi
31076
31077 rm -f core conftest.err conftest.$ac_objext \
31078       conftest$ac_exeext conftest.$ac_ext
31079 fi
31080 ac_res=`eval echo '${'$as_ac_var'}'`
31081                { echo "$as_me:$LINENO: result: $ac_res" >&5
31082 echo "${ECHO_T}$ac_res" >&6; }
31083 if test `eval echo '${'$as_ac_var'}'` = yes; then
31084   cat >>confdefs.h <<_ACEOF
31085 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31086 _ACEOF
31087
31088 fi
31089 done
31090
31091
31092
31093
31094
31095 for ac_func in setjmp longjmp sigsetjmp siglongjmp
31096 do
31097 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31098 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31099 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31100 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31101   echo $ECHO_N "(cached) $ECHO_C" >&6
31102 else
31103   cat >conftest.$ac_ext <<_ACEOF
31104 /* confdefs.h.  */
31105 _ACEOF
31106 cat confdefs.h >>conftest.$ac_ext
31107 cat >>conftest.$ac_ext <<_ACEOF
31108 /* end confdefs.h.  */
31109 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31110    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31111 #define $ac_func innocuous_$ac_func
31112
31113 /* System header to define __stub macros and hopefully few prototypes,
31114     which can conflict with char $ac_func (); below.
31115     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31116     <limits.h> exists even on freestanding compilers.  */
31117
31118 #ifdef __STDC__
31119 # include <limits.h>
31120 #else
31121 # include <assert.h>
31122 #endif
31123
31124 #undef $ac_func
31125
31126 /* Override any GCC internal prototype to avoid an error.
31127    Use char because int might match the return type of a GCC
31128    builtin and then its argument prototype would still apply.  */
31129 #ifdef __cplusplus
31130 extern "C"
31131 #endif
31132 char $ac_func ();
31133 /* The GNU C library defines this for functions which it implements
31134     to always fail with ENOSYS.  Some functions are actually named
31135     something starting with __ and the normal name is an alias.  */
31136 #if defined __stub_$ac_func || defined __stub___$ac_func
31137 choke me
31138 #endif
31139
31140 int
31141 main ()
31142 {
31143 return $ac_func ();
31144   ;
31145   return 0;
31146 }
31147 _ACEOF
31148 rm -f conftest.$ac_objext conftest$ac_exeext
31149 if { (ac_try="$ac_link"
31150 case "(($ac_try" in
31151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31152   *) ac_try_echo=$ac_try;;
31153 esac
31154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31155   (eval "$ac_link") 2>conftest.er1
31156   ac_status=$?
31157   grep -v '^ *+' conftest.er1 >conftest.err
31158   rm -f conftest.er1
31159   cat conftest.err >&5
31160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31161   (exit $ac_status); } &&
31162          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31163   { (case "(($ac_try" in
31164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31165   *) ac_try_echo=$ac_try;;
31166 esac
31167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31168   (eval "$ac_try") 2>&5
31169   ac_status=$?
31170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31171   (exit $ac_status); }; } &&
31172          { ac_try='test -s conftest$ac_exeext'
31173   { (case "(($ac_try" in
31174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31175   *) ac_try_echo=$ac_try;;
31176 esac
31177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31178   (eval "$ac_try") 2>&5
31179   ac_status=$?
31180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31181   (exit $ac_status); }; }; then
31182   eval "$as_ac_var=yes"
31183 else
31184   echo "$as_me: failed program was:" >&5
31185 sed 's/^/| /' conftest.$ac_ext >&5
31186
31187         eval "$as_ac_var=no"
31188 fi
31189
31190 rm -f core conftest.err conftest.$ac_objext \
31191       conftest$ac_exeext conftest.$ac_ext
31192 fi
31193 ac_res=`eval echo '${'$as_ac_var'}'`
31194                { echo "$as_me:$LINENO: result: $ac_res" >&5
31195 echo "${ECHO_T}$ac_res" >&6; }
31196 if test `eval echo '${'$as_ac_var'}'` = yes; then
31197   cat >>confdefs.h <<_ACEOF
31198 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31199 _ACEOF
31200
31201 fi
31202 done
31203
31204 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31205 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
31206 if test "${llvm_cv_c_printf_a+set}" = set; then
31207   echo $ECHO_N "(cached) $ECHO_C" >&6
31208 else
31209   ac_ext=c
31210 ac_cpp='$CPP $CPPFLAGS'
31211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31214
31215  if test "$cross_compiling" = yes; then
31216   llvmac_cv_c_printf_a=no
31217 else
31218   cat >conftest.$ac_ext <<_ACEOF
31219
31220   /* confdefs.h.  */
31221 _ACEOF
31222 cat confdefs.h >>conftest.$ac_ext
31223 cat >>conftest.$ac_ext <<_ACEOF
31224 /* end confdefs.h.  */
31225
31226 #include <stdio.h>
31227 #include <stdlib.h>
31228
31229 int
31230 main ()
31231 {
31232
31233 volatile double A, B;
31234 char Buffer[100];
31235 A = 1;
31236 A /= 10.0;
31237 sprintf(Buffer, "%a", A);
31238 B = atof(Buffer);
31239 if (A != B)
31240   return (1);
31241 if (A != 0x1.999999999999ap-4)
31242   return (1);
31243 return (0);
31244   ;
31245   return 0;
31246 }
31247 _ACEOF
31248 rm -f conftest$ac_exeext
31249 if { (ac_try="$ac_link"
31250 case "(($ac_try" in
31251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31252   *) ac_try_echo=$ac_try;;
31253 esac
31254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31255   (eval "$ac_link") 2>&5
31256   ac_status=$?
31257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31258   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31259   { (case "(($ac_try" in
31260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31261   *) ac_try_echo=$ac_try;;
31262 esac
31263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31264   (eval "$ac_try") 2>&5
31265   ac_status=$?
31266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31267   (exit $ac_status); }; }; then
31268   llvm_cv_c_printf_a=yes
31269 else
31270   echo "$as_me: program exited with status $ac_status" >&5
31271 echo "$as_me: failed program was:" >&5
31272 sed 's/^/| /' conftest.$ac_ext >&5
31273
31274 ( exit $ac_status )
31275 llvmac_cv_c_printf_a=no
31276 fi
31277 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31278 fi
31279
31280
31281  ac_ext=c
31282 ac_cpp='$CPP $CPPFLAGS'
31283 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31284 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31285 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31286
31287 fi
31288 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31289 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
31290  if test "$llvm_cv_c_printf_a" = "yes"; then
31291
31292 cat >>confdefs.h <<\_ACEOF
31293 #define HAVE_PRINTF_A 1
31294 _ACEOF
31295
31296  fi
31297
31298 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31299 # for constant arguments.  Useless!
31300 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
31301 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
31302 if test "${ac_cv_working_alloca_h+set}" = set; then
31303   echo $ECHO_N "(cached) $ECHO_C" >&6
31304 else
31305   cat >conftest.$ac_ext <<_ACEOF
31306 /* confdefs.h.  */
31307 _ACEOF
31308 cat confdefs.h >>conftest.$ac_ext
31309 cat >>conftest.$ac_ext <<_ACEOF
31310 /* end confdefs.h.  */
31311 #include <alloca.h>
31312 int
31313 main ()
31314 {
31315 char *p = (char *) alloca (2 * sizeof (int));
31316                           if (p) return 0;
31317   ;
31318   return 0;
31319 }
31320 _ACEOF
31321 rm -f conftest.$ac_objext conftest$ac_exeext
31322 if { (ac_try="$ac_link"
31323 case "(($ac_try" in
31324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31325   *) ac_try_echo=$ac_try;;
31326 esac
31327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31328   (eval "$ac_link") 2>conftest.er1
31329   ac_status=$?
31330   grep -v '^ *+' conftest.er1 >conftest.err
31331   rm -f conftest.er1
31332   cat conftest.err >&5
31333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31334   (exit $ac_status); } &&
31335          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31336   { (case "(($ac_try" in
31337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31338   *) ac_try_echo=$ac_try;;
31339 esac
31340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31341   (eval "$ac_try") 2>&5
31342   ac_status=$?
31343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31344   (exit $ac_status); }; } &&
31345          { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
31352   ac_status=$?
31353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31354   (exit $ac_status); }; }; then
31355   ac_cv_working_alloca_h=yes
31356 else
31357   echo "$as_me: failed program was:" >&5
31358 sed 's/^/| /' conftest.$ac_ext >&5
31359
31360         ac_cv_working_alloca_h=no
31361 fi
31362
31363 rm -f core conftest.err conftest.$ac_objext \
31364       conftest$ac_exeext conftest.$ac_ext
31365 fi
31366 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31367 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
31368 if test $ac_cv_working_alloca_h = yes; then
31369
31370 cat >>confdefs.h <<\_ACEOF
31371 #define HAVE_ALLOCA_H 1
31372 _ACEOF
31373
31374 fi
31375
31376 { echo "$as_me:$LINENO: checking for alloca" >&5
31377 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
31378 if test "${ac_cv_func_alloca_works+set}" = set; then
31379   echo $ECHO_N "(cached) $ECHO_C" >&6
31380 else
31381   cat >conftest.$ac_ext <<_ACEOF
31382 /* confdefs.h.  */
31383 _ACEOF
31384 cat confdefs.h >>conftest.$ac_ext
31385 cat >>conftest.$ac_ext <<_ACEOF
31386 /* end confdefs.h.  */
31387 #ifdef __GNUC__
31388 # define alloca __builtin_alloca
31389 #else
31390 # ifdef _MSC_VER
31391 #  include <malloc.h>
31392 #  define alloca _alloca
31393 # else
31394 #  if HAVE_ALLOCA_H
31395 #   include <alloca.h>
31396 #  else
31397 #   ifdef _AIX
31398  #pragma alloca
31399 #   else
31400 #    ifndef alloca /* predefined by HP cc +Olibcalls */
31401 char *alloca ();
31402 #    endif
31403 #   endif
31404 #  endif
31405 # endif
31406 #endif
31407
31408 int
31409 main ()
31410 {
31411 char *p = (char *) alloca (1);
31412                                     if (p) return 0;
31413   ;
31414   return 0;
31415 }
31416 _ACEOF
31417 rm -f conftest.$ac_objext conftest$ac_exeext
31418 if { (ac_try="$ac_link"
31419 case "(($ac_try" in
31420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31421   *) ac_try_echo=$ac_try;;
31422 esac
31423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31424   (eval "$ac_link") 2>conftest.er1
31425   ac_status=$?
31426   grep -v '^ *+' conftest.er1 >conftest.err
31427   rm -f conftest.er1
31428   cat conftest.err >&5
31429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31430   (exit $ac_status); } &&
31431          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31432   { (case "(($ac_try" in
31433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31434   *) ac_try_echo=$ac_try;;
31435 esac
31436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31437   (eval "$ac_try") 2>&5
31438   ac_status=$?
31439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31440   (exit $ac_status); }; } &&
31441          { ac_try='test -s conftest$ac_exeext'
31442   { (case "(($ac_try" in
31443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31444   *) ac_try_echo=$ac_try;;
31445 esac
31446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31447   (eval "$ac_try") 2>&5
31448   ac_status=$?
31449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31450   (exit $ac_status); }; }; then
31451   ac_cv_func_alloca_works=yes
31452 else
31453   echo "$as_me: failed program was:" >&5
31454 sed 's/^/| /' conftest.$ac_ext >&5
31455
31456         ac_cv_func_alloca_works=no
31457 fi
31458
31459 rm -f core conftest.err conftest.$ac_objext \
31460       conftest$ac_exeext conftest.$ac_ext
31461 fi
31462 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31463 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
31464
31465 if test $ac_cv_func_alloca_works = yes; then
31466
31467 cat >>confdefs.h <<\_ACEOF
31468 #define HAVE_ALLOCA 1
31469 _ACEOF
31470
31471 else
31472   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31473 # that cause trouble.  Some versions do not even contain alloca or
31474 # contain a buggy version.  If you still want to use their alloca,
31475 # use ar to extract alloca.o from them instead of compiling alloca.c.
31476
31477 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
31478
31479 cat >>confdefs.h <<\_ACEOF
31480 #define C_ALLOCA 1
31481 _ACEOF
31482
31483
31484 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31485 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
31486 if test "${ac_cv_os_cray+set}" = set; then
31487   echo $ECHO_N "(cached) $ECHO_C" >&6
31488 else
31489   cat >conftest.$ac_ext <<_ACEOF
31490 /* confdefs.h.  */
31491 _ACEOF
31492 cat confdefs.h >>conftest.$ac_ext
31493 cat >>conftest.$ac_ext <<_ACEOF
31494 /* end confdefs.h.  */
31495 #if defined CRAY && ! defined CRAY2
31496 webecray
31497 #else
31498 wenotbecray
31499 #endif
31500
31501 _ACEOF
31502 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31503   $EGREP "webecray" >/dev/null 2>&1; then
31504   ac_cv_os_cray=yes
31505 else
31506   ac_cv_os_cray=no
31507 fi
31508 rm -f conftest*
31509
31510 fi
31511 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31512 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
31513 if test $ac_cv_os_cray = yes; then
31514   for ac_func in _getb67 GETB67 getb67; do
31515     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31516 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31517 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31518 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31519   echo $ECHO_N "(cached) $ECHO_C" >&6
31520 else
31521   cat >conftest.$ac_ext <<_ACEOF
31522 /* confdefs.h.  */
31523 _ACEOF
31524 cat confdefs.h >>conftest.$ac_ext
31525 cat >>conftest.$ac_ext <<_ACEOF
31526 /* end confdefs.h.  */
31527 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31528    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31529 #define $ac_func innocuous_$ac_func
31530
31531 /* System header to define __stub macros and hopefully few prototypes,
31532     which can conflict with char $ac_func (); below.
31533     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31534     <limits.h> exists even on freestanding compilers.  */
31535
31536 #ifdef __STDC__
31537 # include <limits.h>
31538 #else
31539 # include <assert.h>
31540 #endif
31541
31542 #undef $ac_func
31543
31544 /* Override any GCC internal prototype to avoid an error.
31545    Use char because int might match the return type of a GCC
31546    builtin and then its argument prototype would still apply.  */
31547 #ifdef __cplusplus
31548 extern "C"
31549 #endif
31550 char $ac_func ();
31551 /* The GNU C library defines this for functions which it implements
31552     to always fail with ENOSYS.  Some functions are actually named
31553     something starting with __ and the normal name is an alias.  */
31554 #if defined __stub_$ac_func || defined __stub___$ac_func
31555 choke me
31556 #endif
31557
31558 int
31559 main ()
31560 {
31561 return $ac_func ();
31562   ;
31563   return 0;
31564 }
31565 _ACEOF
31566 rm -f conftest.$ac_objext conftest$ac_exeext
31567 if { (ac_try="$ac_link"
31568 case "(($ac_try" in
31569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31570   *) ac_try_echo=$ac_try;;
31571 esac
31572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31573   (eval "$ac_link") 2>conftest.er1
31574   ac_status=$?
31575   grep -v '^ *+' conftest.er1 >conftest.err
31576   rm -f conftest.er1
31577   cat conftest.err >&5
31578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31579   (exit $ac_status); } &&
31580          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31581   { (case "(($ac_try" in
31582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31583   *) ac_try_echo=$ac_try;;
31584 esac
31585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31586   (eval "$ac_try") 2>&5
31587   ac_status=$?
31588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31589   (exit $ac_status); }; } &&
31590          { ac_try='test -s conftest$ac_exeext'
31591   { (case "(($ac_try" in
31592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31593   *) ac_try_echo=$ac_try;;
31594 esac
31595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31596   (eval "$ac_try") 2>&5
31597   ac_status=$?
31598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31599   (exit $ac_status); }; }; then
31600   eval "$as_ac_var=yes"
31601 else
31602   echo "$as_me: failed program was:" >&5
31603 sed 's/^/| /' conftest.$ac_ext >&5
31604
31605         eval "$as_ac_var=no"
31606 fi
31607
31608 rm -f core conftest.err conftest.$ac_objext \
31609       conftest$ac_exeext conftest.$ac_ext
31610 fi
31611 ac_res=`eval echo '${'$as_ac_var'}'`
31612                { echo "$as_me:$LINENO: result: $ac_res" >&5
31613 echo "${ECHO_T}$ac_res" >&6; }
31614 if test `eval echo '${'$as_ac_var'}'` = yes; then
31615
31616 cat >>confdefs.h <<_ACEOF
31617 #define CRAY_STACKSEG_END $ac_func
31618 _ACEOF
31619
31620     break
31621 fi
31622
31623   done
31624 fi
31625
31626 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31627 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
31628 if test "${ac_cv_c_stack_direction+set}" = set; then
31629   echo $ECHO_N "(cached) $ECHO_C" >&6
31630 else
31631   if test "$cross_compiling" = yes; then
31632   ac_cv_c_stack_direction=0
31633 else
31634   cat >conftest.$ac_ext <<_ACEOF
31635 /* confdefs.h.  */
31636 _ACEOF
31637 cat confdefs.h >>conftest.$ac_ext
31638 cat >>conftest.$ac_ext <<_ACEOF
31639 /* end confdefs.h.  */
31640 $ac_includes_default
31641 int
31642 find_stack_direction ()
31643 {
31644   static char *addr = 0;
31645   auto char dummy;
31646   if (addr == 0)
31647     {
31648       addr = &dummy;
31649       return find_stack_direction ();
31650     }
31651   else
31652     return (&dummy > addr) ? 1 : -1;
31653 }
31654
31655 int
31656 main ()
31657 {
31658   return find_stack_direction () < 0;
31659 }
31660 _ACEOF
31661 rm -f conftest$ac_exeext
31662 if { (ac_try="$ac_link"
31663 case "(($ac_try" in
31664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31665   *) ac_try_echo=$ac_try;;
31666 esac
31667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31668   (eval "$ac_link") 2>&5
31669   ac_status=$?
31670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31671   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31672   { (case "(($ac_try" in
31673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31674   *) ac_try_echo=$ac_try;;
31675 esac
31676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31677   (eval "$ac_try") 2>&5
31678   ac_status=$?
31679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31680   (exit $ac_status); }; }; then
31681   ac_cv_c_stack_direction=1
31682 else
31683   echo "$as_me: program exited with status $ac_status" >&5
31684 echo "$as_me: failed program was:" >&5
31685 sed 's/^/| /' conftest.$ac_ext >&5
31686
31687 ( exit $ac_status )
31688 ac_cv_c_stack_direction=-1
31689 fi
31690 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31691 fi
31692
31693
31694 fi
31695 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31696 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
31697
31698 cat >>confdefs.h <<_ACEOF
31699 #define STACK_DIRECTION $ac_cv_c_stack_direction
31700 _ACEOF
31701
31702
31703 fi
31704
31705
31706 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
31707 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
31708 if test "${ac_cv_func_rand48+set}" = set; then
31709   echo $ECHO_N "(cached) $ECHO_C" >&6
31710 else
31711   ac_ext=cpp
31712 ac_cpp='$CXXCPP $CPPFLAGS'
31713 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31714 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31715 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31716
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 #include <stdlib.h>
31724 int
31725 main ()
31726 {
31727 srand48(0);lrand48();drand48();
31728   ;
31729   return 0;
31730 }
31731 _ACEOF
31732 rm -f conftest.$ac_objext
31733 if { (ac_try="$ac_compile"
31734 case "(($ac_try" in
31735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31736   *) ac_try_echo=$ac_try;;
31737 esac
31738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31739   (eval "$ac_compile") 2>conftest.er1
31740   ac_status=$?
31741   grep -v '^ *+' conftest.er1 >conftest.err
31742   rm -f conftest.er1
31743   cat conftest.err >&5
31744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31745   (exit $ac_status); } &&
31746          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31747   { (case "(($ac_try" in
31748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31749   *) ac_try_echo=$ac_try;;
31750 esac
31751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31752   (eval "$ac_try") 2>&5
31753   ac_status=$?
31754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31755   (exit $ac_status); }; } &&
31756          { ac_try='test -s conftest.$ac_objext'
31757   { (case "(($ac_try" in
31758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31759   *) ac_try_echo=$ac_try;;
31760 esac
31761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31762   (eval "$ac_try") 2>&5
31763   ac_status=$?
31764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31765   (exit $ac_status); }; }; then
31766   ac_cv_func_rand48=yes
31767 else
31768   echo "$as_me: failed program was:" >&5
31769 sed 's/^/| /' conftest.$ac_ext >&5
31770
31771         ac_cv_func_rand48=no
31772 fi
31773
31774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31775   ac_ext=c
31776 ac_cpp='$CPP $CPPFLAGS'
31777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31780
31781 fi
31782 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
31783 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
31784
31785 if test "$ac_cv_func_rand48" = "yes" ; then
31786
31787 cat >>confdefs.h <<\_ACEOF
31788 #define HAVE_RAND48 1
31789 _ACEOF
31790
31791 fi
31792
31793
31794 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31795 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
31796 if test "${ac_cv_cxx_namespaces+set}" = set; then
31797   echo $ECHO_N "(cached) $ECHO_C" >&6
31798 else
31799   ac_ext=cpp
31800 ac_cpp='$CXXCPP $CPPFLAGS'
31801 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31802 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31803 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31804
31805  cat >conftest.$ac_ext <<_ACEOF
31806 /* confdefs.h.  */
31807 _ACEOF
31808 cat confdefs.h >>conftest.$ac_ext
31809 cat >>conftest.$ac_ext <<_ACEOF
31810 /* end confdefs.h.  */
31811 namespace Outer { namespace Inner { int i = 0; }}
31812 int
31813 main ()
31814 {
31815 using namespace Outer::Inner; return i;
31816   ;
31817   return 0;
31818 }
31819 _ACEOF
31820 rm -f conftest.$ac_objext
31821 if { (ac_try="$ac_compile"
31822 case "(($ac_try" in
31823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31824   *) ac_try_echo=$ac_try;;
31825 esac
31826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31827   (eval "$ac_compile") 2>conftest.er1
31828   ac_status=$?
31829   grep -v '^ *+' conftest.er1 >conftest.err
31830   rm -f conftest.er1
31831   cat conftest.err >&5
31832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31833   (exit $ac_status); } &&
31834          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31835   { (case "(($ac_try" in
31836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31837   *) ac_try_echo=$ac_try;;
31838 esac
31839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31840   (eval "$ac_try") 2>&5
31841   ac_status=$?
31842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31843   (exit $ac_status); }; } &&
31844          { ac_try='test -s conftest.$ac_objext'
31845   { (case "(($ac_try" in
31846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31847   *) ac_try_echo=$ac_try;;
31848 esac
31849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31850   (eval "$ac_try") 2>&5
31851   ac_status=$?
31852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31853   (exit $ac_status); }; }; then
31854   ac_cv_cxx_namespaces=yes
31855 else
31856   echo "$as_me: failed program was:" >&5
31857 sed 's/^/| /' conftest.$ac_ext >&5
31858
31859         ac_cv_cxx_namespaces=no
31860 fi
31861
31862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31863  ac_ext=c
31864 ac_cpp='$CPP $CPPFLAGS'
31865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31868
31869
31870 fi
31871 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
31872 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
31873 if test "$ac_cv_cxx_namespaces" = yes; then
31874
31875 cat >>confdefs.h <<\_ACEOF
31876 #define HAVE_NAMESPACES
31877 _ACEOF
31878
31879 fi
31880
31881 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
31882 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6; }
31883 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
31884   echo $ECHO_N "(cached) $ECHO_C" >&6
31885 else
31886
31887   ac_ext=cpp
31888 ac_cpp='$CXXCPP $CPPFLAGS'
31889 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31890 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31891 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31892
31893   cat >conftest.$ac_ext <<_ACEOF
31894 /* confdefs.h.  */
31895 _ACEOF
31896 cat confdefs.h >>conftest.$ac_ext
31897 cat >>conftest.$ac_ext <<_ACEOF
31898 /* end confdefs.h.  */
31899 #include <ext/hash_map>
31900 #ifdef HAVE_NAMESPACES
31901 using namespace std;
31902 #endif
31903 int
31904 main ()
31905 {
31906 hash_map<int, int> t;
31907   ;
31908   return 0;
31909 }
31910 _ACEOF
31911 rm -f conftest.$ac_objext
31912 if { (ac_try="$ac_compile"
31913 case "(($ac_try" in
31914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31915   *) ac_try_echo=$ac_try;;
31916 esac
31917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31918   (eval "$ac_compile") 2>conftest.er1
31919   ac_status=$?
31920   grep -v '^ *+' conftest.er1 >conftest.err
31921   rm -f conftest.er1
31922   cat conftest.err >&5
31923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31924   (exit $ac_status); } &&
31925          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31926   { (case "(($ac_try" in
31927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31928   *) ac_try_echo=$ac_try;;
31929 esac
31930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31931   (eval "$ac_try") 2>&5
31932   ac_status=$?
31933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31934   (exit $ac_status); }; } &&
31935          { ac_try='test -s conftest.$ac_objext'
31936   { (case "(($ac_try" in
31937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31938   *) ac_try_echo=$ac_try;;
31939 esac
31940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31941   (eval "$ac_try") 2>&5
31942   ac_status=$?
31943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31944   (exit $ac_status); }; }; then
31945   ac_cv_cxx_have_std_ext_hash_map=yes
31946 else
31947   echo "$as_me: failed program was:" >&5
31948 sed 's/^/| /' conftest.$ac_ext >&5
31949
31950         ac_cv_cxx_have_std_ext_hash_map=no
31951 fi
31952
31953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31954   ac_ext=c
31955 ac_cpp='$CPP $CPPFLAGS'
31956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31959
31960 fi
31961 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
31962 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
31963  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
31964  then
31965
31966 cat >>confdefs.h <<\_ACEOF
31967 #define HAVE_STD_EXT_HASH_MAP 1
31968 _ACEOF
31969
31970  else
31971
31972 cat >>confdefs.h <<\_ACEOF
31973 #define HAVE_STD_EXT_HASH_MAP 0
31974 _ACEOF
31975
31976  fi
31977
31978  { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
31979 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6; }
31980 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
31981   echo $ECHO_N "(cached) $ECHO_C" >&6
31982 else
31983
31984   ac_ext=cpp
31985 ac_cpp='$CXXCPP $CPPFLAGS'
31986 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31987 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31988 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31989
31990   cat >conftest.$ac_ext <<_ACEOF
31991 /* confdefs.h.  */
31992 _ACEOF
31993 cat confdefs.h >>conftest.$ac_ext
31994 cat >>conftest.$ac_ext <<_ACEOF
31995 /* end confdefs.h.  */
31996 #include <ext/hash_map>
31997 #ifdef HAVE_NAMESPACES
31998 using namespace __gnu_cxx;
31999 #endif
32000 int
32001 main ()
32002 {
32003 hash_map<int,int> t;
32004   ;
32005   return 0;
32006 }
32007 _ACEOF
32008 rm -f conftest.$ac_objext
32009 if { (ac_try="$ac_compile"
32010 case "(($ac_try" in
32011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32012   *) ac_try_echo=$ac_try;;
32013 esac
32014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32015   (eval "$ac_compile") 2>conftest.er1
32016   ac_status=$?
32017   grep -v '^ *+' conftest.er1 >conftest.err
32018   rm -f conftest.er1
32019   cat conftest.err >&5
32020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32021   (exit $ac_status); } &&
32022          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32023   { (case "(($ac_try" in
32024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32025   *) ac_try_echo=$ac_try;;
32026 esac
32027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32028   (eval "$ac_try") 2>&5
32029   ac_status=$?
32030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32031   (exit $ac_status); }; } &&
32032          { ac_try='test -s conftest.$ac_objext'
32033   { (case "(($ac_try" in
32034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32035   *) ac_try_echo=$ac_try;;
32036 esac
32037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32038   (eval "$ac_try") 2>&5
32039   ac_status=$?
32040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32041   (exit $ac_status); }; }; then
32042   ac_cv_cxx_have_gnu_ext_hash_map=yes
32043 else
32044   echo "$as_me: failed program was:" >&5
32045 sed 's/^/| /' conftest.$ac_ext >&5
32046
32047         ac_cv_cxx_have_gnu_ext_hash_map=no
32048 fi
32049
32050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32051   ac_ext=c
32052 ac_cpp='$CPP $CPPFLAGS'
32053 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32054 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32056
32057 fi
32058 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
32059 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
32060  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
32061  then
32062
32063 cat >>confdefs.h <<\_ACEOF
32064 #define HAVE_GNU_EXT_HASH_MAP 1
32065 _ACEOF
32066
32067  else
32068
32069 cat >>confdefs.h <<\_ACEOF
32070 #define HAVE_GNU_EXT_HASH_MAP 0
32071 _ACEOF
32072
32073  fi
32074
32075  { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
32076 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
32077 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
32078   echo $ECHO_N "(cached) $ECHO_C" >&6
32079 else
32080
32081   ac_ext=cpp
32082 ac_cpp='$CXXCPP $CPPFLAGS'
32083 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32084 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32085 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32086
32087   cat >conftest.$ac_ext <<_ACEOF
32088 /* confdefs.h.  */
32089 _ACEOF
32090 cat confdefs.h >>conftest.$ac_ext
32091 cat >>conftest.$ac_ext <<_ACEOF
32092 /* end confdefs.h.  */
32093 #include <hash_map>
32094 int
32095 main ()
32096 {
32097 hash_map<int,int> t;
32098   ;
32099   return 0;
32100 }
32101 _ACEOF
32102 rm -f conftest.$ac_objext
32103 if { (ac_try="$ac_compile"
32104 case "(($ac_try" in
32105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32106   *) ac_try_echo=$ac_try;;
32107 esac
32108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32109   (eval "$ac_compile") 2>conftest.er1
32110   ac_status=$?
32111   grep -v '^ *+' conftest.er1 >conftest.err
32112   rm -f conftest.er1
32113   cat conftest.err >&5
32114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32115   (exit $ac_status); } &&
32116          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32117   { (case "(($ac_try" in
32118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32119   *) ac_try_echo=$ac_try;;
32120 esac
32121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32122   (eval "$ac_try") 2>&5
32123   ac_status=$?
32124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32125   (exit $ac_status); }; } &&
32126          { ac_try='test -s conftest.$ac_objext'
32127   { (case "(($ac_try" in
32128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32129   *) ac_try_echo=$ac_try;;
32130 esac
32131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32132   (eval "$ac_try") 2>&5
32133   ac_status=$?
32134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32135   (exit $ac_status); }; }; then
32136   ac_cv_cxx_have_global_hash_map=yes
32137 else
32138   echo "$as_me: failed program was:" >&5
32139 sed 's/^/| /' conftest.$ac_ext >&5
32140
32141         ac_cv_cxx_have_global_hash_map=no
32142 fi
32143
32144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32145   ac_ext=c
32146 ac_cpp='$CPP $CPPFLAGS'
32147 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32148 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32149 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32150
32151 fi
32152 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
32153 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
32154  if test "$ac_cv_cxx_have_global_hash_map" = yes
32155  then
32156
32157 cat >>confdefs.h <<\_ACEOF
32158 #define HAVE_GLOBAL_HASH_MAP 1
32159 _ACEOF
32160
32161  else
32162
32163 cat >>confdefs.h <<\_ACEOF
32164 #define HAVE_GLOBAL_HASH_MAP 0
32165 _ACEOF
32166
32167  fi
32168
32169 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
32170 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6; }
32171 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
32172   echo $ECHO_N "(cached) $ECHO_C" >&6
32173 else
32174
32175   ac_ext=cpp
32176 ac_cpp='$CXXCPP $CPPFLAGS'
32177 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32178 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32179 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32180
32181   cat >conftest.$ac_ext <<_ACEOF
32182 /* confdefs.h.  */
32183 _ACEOF
32184 cat confdefs.h >>conftest.$ac_ext
32185 cat >>conftest.$ac_ext <<_ACEOF
32186 /* end confdefs.h.  */
32187 #include <ext/hash_set>
32188 #ifdef HAVE_NAMESPACES
32189 using namespace std;
32190 #endif
32191 int
32192 main ()
32193 {
32194 hash_set<int> t;
32195   ;
32196   return 0;
32197 }
32198 _ACEOF
32199 rm -f conftest.$ac_objext
32200 if { (ac_try="$ac_compile"
32201 case "(($ac_try" in
32202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32203   *) ac_try_echo=$ac_try;;
32204 esac
32205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32206   (eval "$ac_compile") 2>conftest.er1
32207   ac_status=$?
32208   grep -v '^ *+' conftest.er1 >conftest.err
32209   rm -f conftest.er1
32210   cat conftest.err >&5
32211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32212   (exit $ac_status); } &&
32213          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32214   { (case "(($ac_try" in
32215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32216   *) ac_try_echo=$ac_try;;
32217 esac
32218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32219   (eval "$ac_try") 2>&5
32220   ac_status=$?
32221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32222   (exit $ac_status); }; } &&
32223          { ac_try='test -s conftest.$ac_objext'
32224   { (case "(($ac_try" in
32225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32226   *) ac_try_echo=$ac_try;;
32227 esac
32228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32229   (eval "$ac_try") 2>&5
32230   ac_status=$?
32231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32232   (exit $ac_status); }; }; then
32233   ac_cv_cxx_have_std_ext_hash_set=yes
32234 else
32235   echo "$as_me: failed program was:" >&5
32236 sed 's/^/| /' conftest.$ac_ext >&5
32237
32238         ac_cv_cxx_have_std_ext_hash_set=no
32239 fi
32240
32241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32242   ac_ext=c
32243 ac_cpp='$CPP $CPPFLAGS'
32244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32247
32248 fi
32249 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
32250 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
32251  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
32252  then
32253
32254 cat >>confdefs.h <<\_ACEOF
32255 #define HAVE_STD_EXT_HASH_SET 1
32256 _ACEOF
32257
32258  else
32259
32260 cat >>confdefs.h <<\_ACEOF
32261 #define HAVE_STD_EXT_HASH_SET 0
32262 _ACEOF
32263
32264  fi
32265
32266  { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
32267 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6; }
32268 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
32269   echo $ECHO_N "(cached) $ECHO_C" >&6
32270 else
32271
32272   ac_ext=cpp
32273 ac_cpp='$CXXCPP $CPPFLAGS'
32274 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32275 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32276 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32277
32278   cat >conftest.$ac_ext <<_ACEOF
32279 /* confdefs.h.  */
32280 _ACEOF
32281 cat confdefs.h >>conftest.$ac_ext
32282 cat >>conftest.$ac_ext <<_ACEOF
32283 /* end confdefs.h.  */
32284 #include <ext/hash_set>
32285 #ifdef HAVE_NAMESPACES
32286 using namespace __gnu_cxx;
32287 #endif
32288 int
32289 main ()
32290 {
32291 hash_set<int> t;
32292   ;
32293   return 0;
32294 }
32295 _ACEOF
32296 rm -f conftest.$ac_objext
32297 if { (ac_try="$ac_compile"
32298 case "(($ac_try" in
32299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32300   *) ac_try_echo=$ac_try;;
32301 esac
32302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32303   (eval "$ac_compile") 2>conftest.er1
32304   ac_status=$?
32305   grep -v '^ *+' conftest.er1 >conftest.err
32306   rm -f conftest.er1
32307   cat conftest.err >&5
32308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32309   (exit $ac_status); } &&
32310          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32311   { (case "(($ac_try" in
32312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32313   *) ac_try_echo=$ac_try;;
32314 esac
32315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32316   (eval "$ac_try") 2>&5
32317   ac_status=$?
32318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32319   (exit $ac_status); }; } &&
32320          { ac_try='test -s conftest.$ac_objext'
32321   { (case "(($ac_try" in
32322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32323   *) ac_try_echo=$ac_try;;
32324 esac
32325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32326   (eval "$ac_try") 2>&5
32327   ac_status=$?
32328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32329   (exit $ac_status); }; }; then
32330   ac_cv_cxx_have_gnu_ext_hash_set=yes
32331 else
32332   echo "$as_me: failed program was:" >&5
32333 sed 's/^/| /' conftest.$ac_ext >&5
32334
32335         ac_cv_cxx_have_gnu_ext_hash_set=no
32336 fi
32337
32338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32339   ac_ext=c
32340 ac_cpp='$CPP $CPPFLAGS'
32341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32344
32345 fi
32346 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
32347 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
32348  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
32349  then
32350
32351 cat >>confdefs.h <<\_ACEOF
32352 #define HAVE_GNU_EXT_HASH_SET 1
32353 _ACEOF
32354
32355  else
32356
32357 cat >>confdefs.h <<\_ACEOF
32358 #define HAVE_GNU_EXT_HASH_SET 0
32359 _ACEOF
32360
32361  fi
32362
32363  { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
32364 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
32365 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
32366   echo $ECHO_N "(cached) $ECHO_C" >&6
32367 else
32368
32369   ac_ext=cpp
32370 ac_cpp='$CXXCPP $CPPFLAGS'
32371 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32372 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32373 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32374
32375   cat >conftest.$ac_ext <<_ACEOF
32376 /* confdefs.h.  */
32377 _ACEOF
32378 cat confdefs.h >>conftest.$ac_ext
32379 cat >>conftest.$ac_ext <<_ACEOF
32380 /* end confdefs.h.  */
32381 #include <hash_set>
32382 int
32383 main ()
32384 {
32385 hash_set<int> t; return 0;
32386   ;
32387   return 0;
32388 }
32389 _ACEOF
32390 rm -f conftest.$ac_objext
32391 if { (ac_try="$ac_compile"
32392 case "(($ac_try" in
32393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32394   *) ac_try_echo=$ac_try;;
32395 esac
32396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32397   (eval "$ac_compile") 2>conftest.er1
32398   ac_status=$?
32399   grep -v '^ *+' conftest.er1 >conftest.err
32400   rm -f conftest.er1
32401   cat conftest.err >&5
32402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32403   (exit $ac_status); } &&
32404          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32405   { (case "(($ac_try" in
32406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32407   *) ac_try_echo=$ac_try;;
32408 esac
32409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32410   (eval "$ac_try") 2>&5
32411   ac_status=$?
32412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32413   (exit $ac_status); }; } &&
32414          { ac_try='test -s conftest.$ac_objext'
32415   { (case "(($ac_try" in
32416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32417   *) ac_try_echo=$ac_try;;
32418 esac
32419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32420   (eval "$ac_try") 2>&5
32421   ac_status=$?
32422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32423   (exit $ac_status); }; }; then
32424   ac_cv_cxx_have_global_hash_set=yes
32425 else
32426   echo "$as_me: failed program was:" >&5
32427 sed 's/^/| /' conftest.$ac_ext >&5
32428
32429         ac_cv_cxx_have_global_hash_set=no
32430 fi
32431
32432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32433   ac_ext=c
32434 ac_cpp='$CPP $CPPFLAGS'
32435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32438
32439 fi
32440 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
32441 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
32442  if test "$ac_cv_cxx_have_global_hash_set" = yes
32443  then
32444
32445 cat >>confdefs.h <<\_ACEOF
32446 #define HAVE_GLOBAL_HASH_SET 1
32447 _ACEOF
32448
32449  else
32450
32451 cat >>confdefs.h <<\_ACEOF
32452 #define HAVE_GLOBAL_HASH_SET 0
32453 _ACEOF
32454
32455  fi
32456
32457 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32458 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
32459 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32460   echo $ECHO_N "(cached) $ECHO_C" >&6
32461 else
32462
32463   ac_ext=cpp
32464 ac_cpp='$CXXCPP $CPPFLAGS'
32465 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32466 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32467 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32468
32469   cat >conftest.$ac_ext <<_ACEOF
32470 /* confdefs.h.  */
32471 _ACEOF
32472 cat confdefs.h >>conftest.$ac_ext
32473 cat >>conftest.$ac_ext <<_ACEOF
32474 /* end confdefs.h.  */
32475 #include <iterator>
32476 #ifdef HAVE_NAMESPACES
32477 using namespace std;
32478 #endif
32479 int
32480 main ()
32481 {
32482 iterator<int,int,int> t; return 0;
32483   ;
32484   return 0;
32485 }
32486 _ACEOF
32487 rm -f conftest.$ac_objext
32488 if { (ac_try="$ac_compile"
32489 case "(($ac_try" in
32490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32491   *) ac_try_echo=$ac_try;;
32492 esac
32493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32494   (eval "$ac_compile") 2>conftest.er1
32495   ac_status=$?
32496   grep -v '^ *+' conftest.er1 >conftest.err
32497   rm -f conftest.er1
32498   cat conftest.err >&5
32499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32500   (exit $ac_status); } &&
32501          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32502   { (case "(($ac_try" in
32503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32504   *) ac_try_echo=$ac_try;;
32505 esac
32506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32507   (eval "$ac_try") 2>&5
32508   ac_status=$?
32509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32510   (exit $ac_status); }; } &&
32511          { ac_try='test -s conftest.$ac_objext'
32512   { (case "(($ac_try" in
32513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32514   *) ac_try_echo=$ac_try;;
32515 esac
32516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32517   (eval "$ac_try") 2>&5
32518   ac_status=$?
32519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32520   (exit $ac_status); }; }; then
32521   ac_cv_cxx_have_std_iterator=yes
32522 else
32523   echo "$as_me: failed program was:" >&5
32524 sed 's/^/| /' conftest.$ac_ext >&5
32525
32526         ac_cv_cxx_have_std_iterator=no
32527 fi
32528
32529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32530   ac_ext=c
32531 ac_cpp='$CPP $CPPFLAGS'
32532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32535
32536
32537 fi
32538 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32539 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
32540 if test "$ac_cv_cxx_have_std_iterator" = yes
32541 then
32542
32543 cat >>confdefs.h <<\_ACEOF
32544 #define HAVE_STD_ITERATOR 1
32545 _ACEOF
32546
32547 else
32548
32549 cat >>confdefs.h <<\_ACEOF
32550 #define HAVE_STD_ITERATOR 0
32551 _ACEOF
32552
32553 fi
32554
32555 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32556 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
32557 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32558   echo $ECHO_N "(cached) $ECHO_C" >&6
32559 else
32560
32561   ac_ext=cpp
32562 ac_cpp='$CXXCPP $CPPFLAGS'
32563 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32564 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32565 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32566
32567   cat >conftest.$ac_ext <<_ACEOF
32568 /* confdefs.h.  */
32569 _ACEOF
32570 cat confdefs.h >>conftest.$ac_ext
32571 cat >>conftest.$ac_ext <<_ACEOF
32572 /* end confdefs.h.  */
32573 #include <iterator>
32574 #ifdef HAVE_NAMESPACES
32575 using namespace std;
32576 #endif
32577 int
32578 main ()
32579 {
32580 bidirectional_iterator<int,int> t; return 0;
32581   ;
32582   return 0;
32583 }
32584 _ACEOF
32585 rm -f conftest.$ac_objext
32586 if { (ac_try="$ac_compile"
32587 case "(($ac_try" in
32588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32589   *) ac_try_echo=$ac_try;;
32590 esac
32591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32592   (eval "$ac_compile") 2>conftest.er1
32593   ac_status=$?
32594   grep -v '^ *+' conftest.er1 >conftest.err
32595   rm -f conftest.er1
32596   cat conftest.err >&5
32597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32598   (exit $ac_status); } &&
32599          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32600   { (case "(($ac_try" in
32601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32602   *) ac_try_echo=$ac_try;;
32603 esac
32604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32605   (eval "$ac_try") 2>&5
32606   ac_status=$?
32607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32608   (exit $ac_status); }; } &&
32609          { ac_try='test -s conftest.$ac_objext'
32610   { (case "(($ac_try" in
32611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32612   *) ac_try_echo=$ac_try;;
32613 esac
32614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32615   (eval "$ac_try") 2>&5
32616   ac_status=$?
32617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32618   (exit $ac_status); }; }; then
32619   ac_cv_cxx_have_bi_iterator=yes
32620 else
32621   echo "$as_me: failed program was:" >&5
32622 sed 's/^/| /' conftest.$ac_ext >&5
32623
32624         ac_cv_cxx_have_bi_iterator=no
32625 fi
32626
32627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32628   ac_ext=c
32629 ac_cpp='$CPP $CPPFLAGS'
32630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32633
32634
32635 fi
32636 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32637 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
32638 if test "$ac_cv_cxx_have_bi_iterator" = yes
32639 then
32640
32641 cat >>confdefs.h <<\_ACEOF
32642 #define HAVE_BI_ITERATOR 1
32643 _ACEOF
32644
32645 else
32646
32647 cat >>confdefs.h <<\_ACEOF
32648 #define HAVE_BI_ITERATOR 0
32649 _ACEOF
32650
32651 fi
32652
32653 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32654 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
32655 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32656   echo $ECHO_N "(cached) $ECHO_C" >&6
32657 else
32658
32659   ac_ext=cpp
32660 ac_cpp='$CXXCPP $CPPFLAGS'
32661 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32662 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32663 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32664
32665   cat >conftest.$ac_ext <<_ACEOF
32666 /* confdefs.h.  */
32667 _ACEOF
32668 cat confdefs.h >>conftest.$ac_ext
32669 cat >>conftest.$ac_ext <<_ACEOF
32670 /* end confdefs.h.  */
32671 #include <iterator>
32672 #ifdef HAVE_NAMESPACES
32673 using namespace std;
32674 #endif
32675 int
32676 main ()
32677 {
32678 forward_iterator<int,int> t; return 0;
32679   ;
32680   return 0;
32681 }
32682 _ACEOF
32683 rm -f conftest.$ac_objext
32684 if { (ac_try="$ac_compile"
32685 case "(($ac_try" in
32686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32687   *) ac_try_echo=$ac_try;;
32688 esac
32689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32690   (eval "$ac_compile") 2>conftest.er1
32691   ac_status=$?
32692   grep -v '^ *+' conftest.er1 >conftest.err
32693   rm -f conftest.er1
32694   cat conftest.err >&5
32695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32696   (exit $ac_status); } &&
32697          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32698   { (case "(($ac_try" in
32699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32700   *) ac_try_echo=$ac_try;;
32701 esac
32702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32703   (eval "$ac_try") 2>&5
32704   ac_status=$?
32705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32706   (exit $ac_status); }; } &&
32707          { ac_try='test -s conftest.$ac_objext'
32708   { (case "(($ac_try" in
32709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32710   *) ac_try_echo=$ac_try;;
32711 esac
32712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32713   (eval "$ac_try") 2>&5
32714   ac_status=$?
32715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32716   (exit $ac_status); }; }; then
32717   ac_cv_cxx_have_fwd_iterator=yes
32718 else
32719   echo "$as_me: failed program was:" >&5
32720 sed 's/^/| /' conftest.$ac_ext >&5
32721
32722         ac_cv_cxx_have_fwd_iterator=no
32723 fi
32724
32725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32726   ac_ext=c
32727 ac_cpp='$CPP $CPPFLAGS'
32728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32731
32732
32733 fi
32734 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32735 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
32736 if test "$ac_cv_cxx_have_fwd_iterator" = yes
32737 then
32738
32739 cat >>confdefs.h <<\_ACEOF
32740 #define HAVE_FWD_ITERATOR 1
32741 _ACEOF
32742
32743 else
32744
32745 cat >>confdefs.h <<\_ACEOF
32746 #define HAVE_FWD_ITERATOR 0
32747 _ACEOF
32748
32749 fi
32750
32751
32752 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32753 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
32754 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32755   echo $ECHO_N "(cached) $ECHO_C" >&6
32756 else
32757   ac_ext=cpp
32758 ac_cpp='$CXXCPP $CPPFLAGS'
32759 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32760 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32761 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32762
32763    cat >conftest.$ac_ext <<_ACEOF
32764 /* confdefs.h.  */
32765 _ACEOF
32766 cat confdefs.h >>conftest.$ac_ext
32767 cat >>conftest.$ac_ext <<_ACEOF
32768 /* end confdefs.h.  */
32769 #include <math.h>
32770 int
32771 main ()
32772 {
32773 float f; isnan(f);
32774   ;
32775   return 0;
32776 }
32777 _ACEOF
32778 rm -f conftest.$ac_objext
32779 if { (ac_try="$ac_compile"
32780 case "(($ac_try" in
32781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32782   *) ac_try_echo=$ac_try;;
32783 esac
32784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32785   (eval "$ac_compile") 2>conftest.er1
32786   ac_status=$?
32787   grep -v '^ *+' conftest.er1 >conftest.err
32788   rm -f conftest.er1
32789   cat conftest.err >&5
32790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32791   (exit $ac_status); } &&
32792          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32793   { (case "(($ac_try" in
32794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32795   *) ac_try_echo=$ac_try;;
32796 esac
32797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32798   (eval "$ac_try") 2>&5
32799   ac_status=$?
32800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32801   (exit $ac_status); }; } &&
32802          { ac_try='test -s conftest.$ac_objext'
32803   { (case "(($ac_try" in
32804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32805   *) ac_try_echo=$ac_try;;
32806 esac
32807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32808   (eval "$ac_try") 2>&5
32809   ac_status=$?
32810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32811   (exit $ac_status); }; }; then
32812   ac_cv_func_isnan_in_math_h=yes
32813 else
32814   echo "$as_me: failed program was:" >&5
32815 sed 's/^/| /' conftest.$ac_ext >&5
32816
32817         ac_cv_func_isnan_in_math_h=no
32818 fi
32819
32820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32821   ac_ext=c
32822 ac_cpp='$CPP $CPPFLAGS'
32823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32826
32827 fi
32828 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32829 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
32830
32831
32832 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
32833
32834 cat >>confdefs.h <<\_ACEOF
32835 #define HAVE_ISNAN_IN_MATH_H 1
32836 _ACEOF
32837
32838 fi
32839
32840 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32841 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
32842 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32843   echo $ECHO_N "(cached) $ECHO_C" >&6
32844 else
32845   ac_ext=cpp
32846 ac_cpp='$CXXCPP $CPPFLAGS'
32847 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32848 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32849 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32850
32851    cat >conftest.$ac_ext <<_ACEOF
32852 /* confdefs.h.  */
32853 _ACEOF
32854 cat confdefs.h >>conftest.$ac_ext
32855 cat >>conftest.$ac_ext <<_ACEOF
32856 /* end confdefs.h.  */
32857 #include <cmath>
32858 int
32859 main ()
32860 {
32861 float f; isnan(f);
32862   ;
32863   return 0;
32864 }
32865 _ACEOF
32866 rm -f conftest.$ac_objext
32867 if { (ac_try="$ac_compile"
32868 case "(($ac_try" in
32869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32870   *) ac_try_echo=$ac_try;;
32871 esac
32872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32873   (eval "$ac_compile") 2>conftest.er1
32874   ac_status=$?
32875   grep -v '^ *+' conftest.er1 >conftest.err
32876   rm -f conftest.er1
32877   cat conftest.err >&5
32878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32879   (exit $ac_status); } &&
32880          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32881   { (case "(($ac_try" in
32882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32883   *) ac_try_echo=$ac_try;;
32884 esac
32885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32886   (eval "$ac_try") 2>&5
32887   ac_status=$?
32888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32889   (exit $ac_status); }; } &&
32890          { ac_try='test -s conftest.$ac_objext'
32891   { (case "(($ac_try" in
32892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32893   *) ac_try_echo=$ac_try;;
32894 esac
32895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32896   (eval "$ac_try") 2>&5
32897   ac_status=$?
32898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32899   (exit $ac_status); }; }; then
32900   ac_cv_func_isnan_in_cmath=yes
32901 else
32902   echo "$as_me: failed program was:" >&5
32903 sed 's/^/| /' conftest.$ac_ext >&5
32904
32905         ac_cv_func_isnan_in_cmath=no
32906 fi
32907
32908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32909   ac_ext=c
32910 ac_cpp='$CPP $CPPFLAGS'
32911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32914
32915 fi
32916 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32917 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
32918
32919 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
32920
32921 cat >>confdefs.h <<\_ACEOF
32922 #define HAVE_ISNAN_IN_CMATH 1
32923 _ACEOF
32924
32925 fi
32926
32927 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32928 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
32929 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32930   echo $ECHO_N "(cached) $ECHO_C" >&6
32931 else
32932   ac_ext=cpp
32933 ac_cpp='$CXXCPP $CPPFLAGS'
32934 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32935 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32936 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32937
32938    cat >conftest.$ac_ext <<_ACEOF
32939 /* confdefs.h.  */
32940 _ACEOF
32941 cat confdefs.h >>conftest.$ac_ext
32942 cat >>conftest.$ac_ext <<_ACEOF
32943 /* end confdefs.h.  */
32944 #include <cmath>
32945 int
32946 main ()
32947 {
32948 float f; std::isnan(f);
32949   ;
32950   return 0;
32951 }
32952 _ACEOF
32953 rm -f conftest.$ac_objext
32954 if { (ac_try="$ac_compile"
32955 case "(($ac_try" in
32956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32957   *) ac_try_echo=$ac_try;;
32958 esac
32959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32960   (eval "$ac_compile") 2>conftest.er1
32961   ac_status=$?
32962   grep -v '^ *+' conftest.er1 >conftest.err
32963   rm -f conftest.er1
32964   cat conftest.err >&5
32965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32966   (exit $ac_status); } &&
32967          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32968   { (case "(($ac_try" in
32969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32970   *) ac_try_echo=$ac_try;;
32971 esac
32972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32973   (eval "$ac_try") 2>&5
32974   ac_status=$?
32975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32976   (exit $ac_status); }; } &&
32977          { ac_try='test -s conftest.$ac_objext'
32978   { (case "(($ac_try" in
32979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32980   *) ac_try_echo=$ac_try;;
32981 esac
32982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32983   (eval "$ac_try") 2>&5
32984   ac_status=$?
32985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32986   (exit $ac_status); }; }; then
32987   ac_cv_func_std_isnan_in_cmath=yes
32988 else
32989   echo "$as_me: failed program was:" >&5
32990 sed 's/^/| /' conftest.$ac_ext >&5
32991
32992         ac_cv_func_std_isnan_in_cmath=no
32993 fi
32994
32995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32996   ac_ext=c
32997 ac_cpp='$CPP $CPPFLAGS'
32998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33001
33002 fi
33003 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
33004 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
33005
33006 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
33007
33008 cat >>confdefs.h <<\_ACEOF
33009 #define HAVE_STD_ISNAN_IN_CMATH 1
33010 _ACEOF
33011
33012 fi
33013
33014
33015 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33016 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
33017 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33018   echo $ECHO_N "(cached) $ECHO_C" >&6
33019 else
33020   ac_ext=cpp
33021 ac_cpp='$CXXCPP $CPPFLAGS'
33022 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33023 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33024 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33025
33026    cat >conftest.$ac_ext <<_ACEOF
33027 /* confdefs.h.  */
33028 _ACEOF
33029 cat confdefs.h >>conftest.$ac_ext
33030 cat >>conftest.$ac_ext <<_ACEOF
33031 /* end confdefs.h.  */
33032 #include <math.h>
33033 int
33034 main ()
33035 {
33036 float f; isinf(f);
33037   ;
33038   return 0;
33039 }
33040 _ACEOF
33041 rm -f conftest.$ac_objext
33042 if { (ac_try="$ac_compile"
33043 case "(($ac_try" in
33044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33045   *) ac_try_echo=$ac_try;;
33046 esac
33047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33048   (eval "$ac_compile") 2>conftest.er1
33049   ac_status=$?
33050   grep -v '^ *+' conftest.er1 >conftest.err
33051   rm -f conftest.er1
33052   cat conftest.err >&5
33053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33054   (exit $ac_status); } &&
33055          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33056   { (case "(($ac_try" in
33057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33058   *) ac_try_echo=$ac_try;;
33059 esac
33060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33061   (eval "$ac_try") 2>&5
33062   ac_status=$?
33063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33064   (exit $ac_status); }; } &&
33065          { ac_try='test -s conftest.$ac_objext'
33066   { (case "(($ac_try" in
33067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33068   *) ac_try_echo=$ac_try;;
33069 esac
33070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33071   (eval "$ac_try") 2>&5
33072   ac_status=$?
33073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33074   (exit $ac_status); }; }; then
33075   ac_cv_func_isinf_in_math_h=yes
33076 else
33077   echo "$as_me: failed program was:" >&5
33078 sed 's/^/| /' conftest.$ac_ext >&5
33079
33080         ac_cv_func_isinf_in_math_h=no
33081 fi
33082
33083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33084   ac_ext=c
33085 ac_cpp='$CPP $CPPFLAGS'
33086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33089
33090 fi
33091 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33092 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
33093
33094 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
33095
33096 cat >>confdefs.h <<\_ACEOF
33097 #define HAVE_ISINF_IN_MATH_H 1
33098 _ACEOF
33099
33100 fi
33101
33102 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33103 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
33104 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33105   echo $ECHO_N "(cached) $ECHO_C" >&6
33106 else
33107   ac_ext=cpp
33108 ac_cpp='$CXXCPP $CPPFLAGS'
33109 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33110 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33111 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33112
33113    cat >conftest.$ac_ext <<_ACEOF
33114 /* confdefs.h.  */
33115 _ACEOF
33116 cat confdefs.h >>conftest.$ac_ext
33117 cat >>conftest.$ac_ext <<_ACEOF
33118 /* end confdefs.h.  */
33119 #include <cmath>
33120 int
33121 main ()
33122 {
33123 float f; isinf(f);
33124   ;
33125   return 0;
33126 }
33127 _ACEOF
33128 rm -f conftest.$ac_objext
33129 if { (ac_try="$ac_compile"
33130 case "(($ac_try" in
33131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33132   *) ac_try_echo=$ac_try;;
33133 esac
33134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33135   (eval "$ac_compile") 2>conftest.er1
33136   ac_status=$?
33137   grep -v '^ *+' conftest.er1 >conftest.err
33138   rm -f conftest.er1
33139   cat conftest.err >&5
33140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33141   (exit $ac_status); } &&
33142          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33143   { (case "(($ac_try" in
33144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33145   *) ac_try_echo=$ac_try;;
33146 esac
33147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33148   (eval "$ac_try") 2>&5
33149   ac_status=$?
33150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33151   (exit $ac_status); }; } &&
33152          { ac_try='test -s conftest.$ac_objext'
33153   { (case "(($ac_try" in
33154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33155   *) ac_try_echo=$ac_try;;
33156 esac
33157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33158   (eval "$ac_try") 2>&5
33159   ac_status=$?
33160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33161   (exit $ac_status); }; }; then
33162   ac_cv_func_isinf_in_cmath=yes
33163 else
33164   echo "$as_me: failed program was:" >&5
33165 sed 's/^/| /' conftest.$ac_ext >&5
33166
33167         ac_cv_func_isinf_in_cmath=no
33168 fi
33169
33170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33171   ac_ext=c
33172 ac_cpp='$CPP $CPPFLAGS'
33173 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33174 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33175 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33176
33177 fi
33178 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
33179 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
33180
33181 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
33182
33183 cat >>confdefs.h <<\_ACEOF
33184 #define HAVE_ISINF_IN_CMATH 1
33185 _ACEOF
33186
33187 fi
33188
33189 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33190 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
33191 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33192   echo $ECHO_N "(cached) $ECHO_C" >&6
33193 else
33194   ac_ext=cpp
33195 ac_cpp='$CXXCPP $CPPFLAGS'
33196 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33197 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33198 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33199
33200    cat >conftest.$ac_ext <<_ACEOF
33201 /* confdefs.h.  */
33202 _ACEOF
33203 cat confdefs.h >>conftest.$ac_ext
33204 cat >>conftest.$ac_ext <<_ACEOF
33205 /* end confdefs.h.  */
33206 #include <cmath>
33207 int
33208 main ()
33209 {
33210 float f; std::isinf(f)}
33211   ;
33212   return 0;
33213 }
33214 _ACEOF
33215 rm -f conftest.$ac_objext
33216 if { (ac_try="$ac_compile"
33217 case "(($ac_try" in
33218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33219   *) ac_try_echo=$ac_try;;
33220 esac
33221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33222   (eval "$ac_compile") 2>conftest.er1
33223   ac_status=$?
33224   grep -v '^ *+' conftest.er1 >conftest.err
33225   rm -f conftest.er1
33226   cat conftest.err >&5
33227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33228   (exit $ac_status); } &&
33229          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33230   { (case "(($ac_try" in
33231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33232   *) ac_try_echo=$ac_try;;
33233 esac
33234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33235   (eval "$ac_try") 2>&5
33236   ac_status=$?
33237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33238   (exit $ac_status); }; } &&
33239          { ac_try='test -s conftest.$ac_objext'
33240   { (case "(($ac_try" in
33241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33242   *) ac_try_echo=$ac_try;;
33243 esac
33244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33245   (eval "$ac_try") 2>&5
33246   ac_status=$?
33247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33248   (exit $ac_status); }; }; then
33249   ac_cv_func_std_isinf_in_cmath=yes
33250 else
33251   echo "$as_me: failed program was:" >&5
33252 sed 's/^/| /' conftest.$ac_ext >&5
33253
33254         ac_cv_func_std_isinf_in_cmath=no
33255 fi
33256
33257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33258   ac_ext=c
33259 ac_cpp='$CPP $CPPFLAGS'
33260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33263
33264 fi
33265 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
33266 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
33267
33268 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
33269
33270 cat >>confdefs.h <<\_ACEOF
33271 #define HAVE_STD_ISINF_IN_CMATH 1
33272 _ACEOF
33273
33274 fi
33275
33276 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
33277 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
33278 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
33279   echo $ECHO_N "(cached) $ECHO_C" >&6
33280 else
33281   ac_ext=cpp
33282 ac_cpp='$CXXCPP $CPPFLAGS'
33283 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33284 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33285 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33286
33287    cat >conftest.$ac_ext <<_ACEOF
33288 /* confdefs.h.  */
33289 _ACEOF
33290 cat confdefs.h >>conftest.$ac_ext
33291 cat >>conftest.$ac_ext <<_ACEOF
33292 /* end confdefs.h.  */
33293 #include <ieeefp.h>
33294 int
33295 main ()
33296 {
33297 float f; finite(f);
33298   ;
33299   return 0;
33300 }
33301 _ACEOF
33302 rm -f conftest.$ac_objext
33303 if { (ac_try="$ac_compile"
33304 case "(($ac_try" in
33305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33306   *) ac_try_echo=$ac_try;;
33307 esac
33308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33309   (eval "$ac_compile") 2>conftest.er1
33310   ac_status=$?
33311   grep -v '^ *+' conftest.er1 >conftest.err
33312   rm -f conftest.er1
33313   cat conftest.err >&5
33314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33315   (exit $ac_status); } &&
33316          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33317   { (case "(($ac_try" in
33318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33319   *) ac_try_echo=$ac_try;;
33320 esac
33321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33322   (eval "$ac_try") 2>&5
33323   ac_status=$?
33324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33325   (exit $ac_status); }; } &&
33326          { ac_try='test -s conftest.$ac_objext'
33327   { (case "(($ac_try" in
33328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33329   *) ac_try_echo=$ac_try;;
33330 esac
33331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33332   (eval "$ac_try") 2>&5
33333   ac_status=$?
33334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33335   (exit $ac_status); }; }; then
33336   ac_cv_func_finite_in_ieeefp_h=yes
33337 else
33338   echo "$as_me: failed program was:" >&5
33339 sed 's/^/| /' conftest.$ac_ext >&5
33340
33341         ac_cv_func_finite_in_ieeefp_h=no
33342 fi
33343
33344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33345   ac_ext=c
33346 ac_cpp='$CPP $CPPFLAGS'
33347 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33348 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33349 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33350
33351 fi
33352 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
33353 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
33354
33355 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
33356
33357 cat >>confdefs.h <<\_ACEOF
33358 #define HAVE_FINITE_IN_IEEEFP_H 1
33359 _ACEOF
33360
33361 fi
33362
33363
33364
33365 if test "$llvm_cv_platform_type" = "Unix" ; then
33366
33367
33368 for ac_header in stdlib.h unistd.h
33369 do
33370 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33371 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33372   { echo "$as_me:$LINENO: checking for $ac_header" >&5
33373 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33374 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33375   echo $ECHO_N "(cached) $ECHO_C" >&6
33376 fi
33377 ac_res=`eval echo '${'$as_ac_Header'}'`
33378                { echo "$as_me:$LINENO: result: $ac_res" >&5
33379 echo "${ECHO_T}$ac_res" >&6; }
33380 else
33381   # Is the header compilable?
33382 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
33383 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33384 cat >conftest.$ac_ext <<_ACEOF
33385 /* confdefs.h.  */
33386 _ACEOF
33387 cat confdefs.h >>conftest.$ac_ext
33388 cat >>conftest.$ac_ext <<_ACEOF
33389 /* end confdefs.h.  */
33390 $ac_includes_default
33391 #include <$ac_header>
33392 _ACEOF
33393 rm -f conftest.$ac_objext
33394 if { (ac_try="$ac_compile"
33395 case "(($ac_try" in
33396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33397   *) ac_try_echo=$ac_try;;
33398 esac
33399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33400   (eval "$ac_compile") 2>conftest.er1
33401   ac_status=$?
33402   grep -v '^ *+' conftest.er1 >conftest.err
33403   rm -f conftest.er1
33404   cat conftest.err >&5
33405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33406   (exit $ac_status); } &&
33407          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33408   { (case "(($ac_try" in
33409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33410   *) ac_try_echo=$ac_try;;
33411 esac
33412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33413   (eval "$ac_try") 2>&5
33414   ac_status=$?
33415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33416   (exit $ac_status); }; } &&
33417          { ac_try='test -s conftest.$ac_objext'
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_header_compiler=yes
33428 else
33429   echo "$as_me: failed program was:" >&5
33430 sed 's/^/| /' conftest.$ac_ext >&5
33431
33432         ac_header_compiler=no
33433 fi
33434
33435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33436 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33437 echo "${ECHO_T}$ac_header_compiler" >&6; }
33438
33439 # Is the header present?
33440 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
33441 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33442 cat >conftest.$ac_ext <<_ACEOF
33443 /* confdefs.h.  */
33444 _ACEOF
33445 cat confdefs.h >>conftest.$ac_ext
33446 cat >>conftest.$ac_ext <<_ACEOF
33447 /* end confdefs.h.  */
33448 #include <$ac_header>
33449 _ACEOF
33450 if { (ac_try="$ac_cpp conftest.$ac_ext"
33451 case "(($ac_try" in
33452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33453   *) ac_try_echo=$ac_try;;
33454 esac
33455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33456   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33457   ac_status=$?
33458   grep -v '^ *+' conftest.er1 >conftest.err
33459   rm -f conftest.er1
33460   cat conftest.err >&5
33461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33462   (exit $ac_status); } >/dev/null; then
33463   if test -s conftest.err; then
33464     ac_cpp_err=$ac_c_preproc_warn_flag
33465     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33466   else
33467     ac_cpp_err=
33468   fi
33469 else
33470   ac_cpp_err=yes
33471 fi
33472 if test -z "$ac_cpp_err"; then
33473   ac_header_preproc=yes
33474 else
33475   echo "$as_me: failed program was:" >&5
33476 sed 's/^/| /' conftest.$ac_ext >&5
33477
33478   ac_header_preproc=no
33479 fi
33480
33481 rm -f conftest.err conftest.$ac_ext
33482 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33483 echo "${ECHO_T}$ac_header_preproc" >&6; }
33484
33485 # So?  What about this header?
33486 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33487   yes:no: )
33488     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33489 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33490     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33491 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33492     ac_header_preproc=yes
33493     ;;
33494   no:yes:* )
33495     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33496 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33497     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33498 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33499     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33500 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33501     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33502 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33503     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33504 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33505     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33506 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33507     ( cat <<\_ASBOX
33508 ## ----------------------------------- ##
33509 ## Report this to llvmbugs@cs.uiuc.edu ##
33510 ## ----------------------------------- ##
33511 _ASBOX
33512      ) | sed "s/^/$as_me: WARNING:     /" >&2
33513     ;;
33514 esac
33515 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33516 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33517 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33518   echo $ECHO_N "(cached) $ECHO_C" >&6
33519 else
33520   eval "$as_ac_Header=\$ac_header_preproc"
33521 fi
33522 ac_res=`eval echo '${'$as_ac_Header'}'`
33523                { echo "$as_me:$LINENO: result: $ac_res" >&5
33524 echo "${ECHO_T}$ac_res" >&6; }
33525
33526 fi
33527 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33528   cat >>confdefs.h <<_ACEOF
33529 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33530 _ACEOF
33531
33532 fi
33533
33534 done
33535
33536
33537 for ac_func in getpagesize
33538 do
33539 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33540 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33541 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33542 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33543   echo $ECHO_N "(cached) $ECHO_C" >&6
33544 else
33545   cat >conftest.$ac_ext <<_ACEOF
33546 /* confdefs.h.  */
33547 _ACEOF
33548 cat confdefs.h >>conftest.$ac_ext
33549 cat >>conftest.$ac_ext <<_ACEOF
33550 /* end confdefs.h.  */
33551 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33552    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33553 #define $ac_func innocuous_$ac_func
33554
33555 /* System header to define __stub macros and hopefully few prototypes,
33556     which can conflict with char $ac_func (); below.
33557     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33558     <limits.h> exists even on freestanding compilers.  */
33559
33560 #ifdef __STDC__
33561 # include <limits.h>
33562 #else
33563 # include <assert.h>
33564 #endif
33565
33566 #undef $ac_func
33567
33568 /* Override any GCC internal prototype to avoid an error.
33569    Use char because int might match the return type of a GCC
33570    builtin and then its argument prototype would still apply.  */
33571 #ifdef __cplusplus
33572 extern "C"
33573 #endif
33574 char $ac_func ();
33575 /* The GNU C library defines this for functions which it implements
33576     to always fail with ENOSYS.  Some functions are actually named
33577     something starting with __ and the normal name is an alias.  */
33578 #if defined __stub_$ac_func || defined __stub___$ac_func
33579 choke me
33580 #endif
33581
33582 int
33583 main ()
33584 {
33585 return $ac_func ();
33586   ;
33587   return 0;
33588 }
33589 _ACEOF
33590 rm -f conftest.$ac_objext conftest$ac_exeext
33591 if { (ac_try="$ac_link"
33592 case "(($ac_try" in
33593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33594   *) ac_try_echo=$ac_try;;
33595 esac
33596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33597   (eval "$ac_link") 2>conftest.er1
33598   ac_status=$?
33599   grep -v '^ *+' conftest.er1 >conftest.err
33600   rm -f conftest.er1
33601   cat conftest.err >&5
33602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33603   (exit $ac_status); } &&
33604          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33605   { (case "(($ac_try" in
33606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33607   *) ac_try_echo=$ac_try;;
33608 esac
33609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33610   (eval "$ac_try") 2>&5
33611   ac_status=$?
33612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33613   (exit $ac_status); }; } &&
33614          { ac_try='test -s conftest$ac_exeext'
33615   { (case "(($ac_try" in
33616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33617   *) ac_try_echo=$ac_try;;
33618 esac
33619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33620   (eval "$ac_try") 2>&5
33621   ac_status=$?
33622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33623   (exit $ac_status); }; }; then
33624   eval "$as_ac_var=yes"
33625 else
33626   echo "$as_me: failed program was:" >&5
33627 sed 's/^/| /' conftest.$ac_ext >&5
33628
33629         eval "$as_ac_var=no"
33630 fi
33631
33632 rm -f core conftest.err conftest.$ac_objext \
33633       conftest$ac_exeext conftest.$ac_ext
33634 fi
33635 ac_res=`eval echo '${'$as_ac_var'}'`
33636                { echo "$as_me:$LINENO: result: $ac_res" >&5
33637 echo "${ECHO_T}$ac_res" >&6; }
33638 if test `eval echo '${'$as_ac_var'}'` = yes; then
33639   cat >>confdefs.h <<_ACEOF
33640 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33641 _ACEOF
33642
33643 fi
33644 done
33645
33646 { echo "$as_me:$LINENO: checking for working mmap" >&5
33647 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
33648 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33649   echo $ECHO_N "(cached) $ECHO_C" >&6
33650 else
33651   if test "$cross_compiling" = yes; then
33652   ac_cv_func_mmap_fixed_mapped=no
33653 else
33654   cat >conftest.$ac_ext <<_ACEOF
33655 /* confdefs.h.  */
33656 _ACEOF
33657 cat confdefs.h >>conftest.$ac_ext
33658 cat >>conftest.$ac_ext <<_ACEOF
33659 /* end confdefs.h.  */
33660 $ac_includes_default
33661 /* malloc might have been renamed as rpl_malloc. */
33662 #undef malloc
33663
33664 /* Thanks to Mike Haertel and Jim Avera for this test.
33665    Here is a matrix of mmap possibilities:
33666         mmap private not fixed
33667         mmap private fixed at somewhere currently unmapped
33668         mmap private fixed at somewhere already mapped
33669         mmap shared not fixed
33670         mmap shared fixed at somewhere currently unmapped
33671         mmap shared fixed at somewhere already mapped
33672    For private mappings, we should verify that changes cannot be read()
33673    back from the file, nor mmap's back from the file at a different
33674    address.  (There have been systems where private was not correctly
33675    implemented like the infamous i386 svr4.0, and systems where the
33676    VM page cache was not coherent with the file system buffer cache
33677    like early versions of FreeBSD and possibly contemporary NetBSD.)
33678    For shared mappings, we should conversely verify that changes get
33679    propagated back to all the places they're supposed to be.
33680
33681    Grep wants private fixed already mapped.
33682    The main things grep needs to know about mmap are:
33683    * does it exist and is it safe to write into the mmap'd area
33684    * how to use it (BSD variants)  */
33685
33686 #include <fcntl.h>
33687 #include <sys/mman.h>
33688
33689 #if !STDC_HEADERS && !HAVE_STDLIB_H
33690 char *malloc ();
33691 #endif
33692
33693 /* This mess was copied from the GNU getpagesize.h.  */
33694 #if !HAVE_GETPAGESIZE
33695 /* Assume that all systems that can run configure have sys/param.h.  */
33696 # if !HAVE_SYS_PARAM_H
33697 #  define HAVE_SYS_PARAM_H 1
33698 # endif
33699
33700 # ifdef _SC_PAGESIZE
33701 #  define getpagesize() sysconf(_SC_PAGESIZE)
33702 # else /* no _SC_PAGESIZE */
33703 #  if HAVE_SYS_PARAM_H
33704 #   include <sys/param.h>
33705 #   ifdef EXEC_PAGESIZE
33706 #    define getpagesize() EXEC_PAGESIZE
33707 #   else /* no EXEC_PAGESIZE */
33708 #    ifdef NBPG
33709 #     define getpagesize() NBPG * CLSIZE
33710 #     ifndef CLSIZE
33711 #      define CLSIZE 1
33712 #     endif /* no CLSIZE */
33713 #    else /* no NBPG */
33714 #     ifdef NBPC
33715 #      define getpagesize() NBPC
33716 #     else /* no NBPC */
33717 #      ifdef PAGESIZE
33718 #       define getpagesize() PAGESIZE
33719 #      endif /* PAGESIZE */
33720 #     endif /* no NBPC */
33721 #    endif /* no NBPG */
33722 #   endif /* no EXEC_PAGESIZE */
33723 #  else /* no HAVE_SYS_PARAM_H */
33724 #   define getpagesize() 8192   /* punt totally */
33725 #  endif /* no HAVE_SYS_PARAM_H */
33726 # endif /* no _SC_PAGESIZE */
33727
33728 #endif /* no HAVE_GETPAGESIZE */
33729
33730 int
33731 main ()
33732 {
33733   char *data, *data2, *data3;
33734   int i, pagesize;
33735   int fd;
33736
33737   pagesize = getpagesize ();
33738
33739   /* First, make a file with some known garbage in it. */
33740   data = (char *) malloc (pagesize);
33741   if (!data)
33742     return 1;
33743   for (i = 0; i < pagesize; ++i)
33744     *(data + i) = rand ();
33745   umask (0);
33746   fd = creat ("conftest.mmap", 0600);
33747   if (fd < 0)
33748     return 1;
33749   if (write (fd, data, pagesize) != pagesize)
33750     return 1;
33751   close (fd);
33752
33753   /* Next, try to mmap the file at a fixed address which already has
33754      something else allocated at it.  If we can, also make sure that
33755      we see the same garbage.  */
33756   fd = open ("conftest.mmap", O_RDWR);
33757   if (fd < 0)
33758     return 1;
33759   data2 = (char *) malloc (2 * pagesize);
33760   if (!data2)
33761     return 1;
33762   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
33763   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
33764                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
33765     return 1;
33766   for (i = 0; i < pagesize; ++i)
33767     if (*(data + i) != *(data2 + i))
33768       return 1;
33769
33770   /* Finally, make sure that changes to the mapped area do not
33771      percolate back to the file as seen by read().  (This is a bug on
33772      some variants of i386 svr4.0.)  */
33773   for (i = 0; i < pagesize; ++i)
33774     *(data2 + i) = *(data2 + i) + 1;
33775   data3 = (char *) malloc (pagesize);
33776   if (!data3)
33777     return 1;
33778   if (read (fd, data3, pagesize) != pagesize)
33779     return 1;
33780   for (i = 0; i < pagesize; ++i)
33781     if (*(data + i) != *(data3 + i))
33782       return 1;
33783   close (fd);
33784   return 0;
33785 }
33786 _ACEOF
33787 rm -f conftest$ac_exeext
33788 if { (ac_try="$ac_link"
33789 case "(($ac_try" in
33790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33791   *) ac_try_echo=$ac_try;;
33792 esac
33793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33794   (eval "$ac_link") 2>&5
33795   ac_status=$?
33796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33797   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33798   { (case "(($ac_try" in
33799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33800   *) ac_try_echo=$ac_try;;
33801 esac
33802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33803   (eval "$ac_try") 2>&5
33804   ac_status=$?
33805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33806   (exit $ac_status); }; }; then
33807   ac_cv_func_mmap_fixed_mapped=yes
33808 else
33809   echo "$as_me: program exited with status $ac_status" >&5
33810 echo "$as_me: failed program was:" >&5
33811 sed 's/^/| /' conftest.$ac_ext >&5
33812
33813 ( exit $ac_status )
33814 ac_cv_func_mmap_fixed_mapped=no
33815 fi
33816 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33817 fi
33818
33819
33820 fi
33821 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33822 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
33823 if test $ac_cv_func_mmap_fixed_mapped = yes; then
33824
33825 cat >>confdefs.h <<\_ACEOF
33826 #define HAVE_MMAP 1
33827 _ACEOF
33828
33829 fi
33830 rm -f conftest.mmap
33831
33832   { echo "$as_me:$LINENO: checking for mmap of files" >&5
33833 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
33834 if test "${ac_cv_func_mmap_file+set}" = set; then
33835   echo $ECHO_N "(cached) $ECHO_C" >&6
33836 else
33837    ac_ext=c
33838 ac_cpp='$CPP $CPPFLAGS'
33839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33842
33843   if test "$cross_compiling" = yes; then
33844   ac_cv_func_mmap_file=no
33845 else
33846   cat >conftest.$ac_ext <<_ACEOF
33847
33848     /* confdefs.h.  */
33849 _ACEOF
33850 cat confdefs.h >>conftest.$ac_ext
33851 cat >>conftest.$ac_ext <<_ACEOF
33852 /* end confdefs.h.  */
33853
33854 #include <sys/types.h>
33855 #include <sys/mman.h>
33856 #include <fcntl.h>
33857
33858 int
33859 main ()
33860 {
33861
33862   int fd;
33863   fd = creat ("foo",0777);
33864   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33865   unlink ("foo");
33866   return (fd != (int) MAP_FAILED);
33867   ;
33868   return 0;
33869 }
33870 _ACEOF
33871 rm -f conftest$ac_exeext
33872 if { (ac_try="$ac_link"
33873 case "(($ac_try" in
33874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33875   *) ac_try_echo=$ac_try;;
33876 esac
33877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33878   (eval "$ac_link") 2>&5
33879   ac_status=$?
33880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33881   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33882   { (case "(($ac_try" in
33883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33884   *) ac_try_echo=$ac_try;;
33885 esac
33886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33887   (eval "$ac_try") 2>&5
33888   ac_status=$?
33889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33890   (exit $ac_status); }; }; then
33891   ac_cv_func_mmap_file=yes
33892 else
33893   echo "$as_me: program exited with status $ac_status" >&5
33894 echo "$as_me: failed program was:" >&5
33895 sed 's/^/| /' conftest.$ac_ext >&5
33896
33897 ( exit $ac_status )
33898 ac_cv_func_mmap_file=no
33899 fi
33900 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33901 fi
33902
33903
33904   ac_ext=c
33905 ac_cpp='$CPP $CPPFLAGS'
33906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33909
33910
33911 fi
33912 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33913 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
33914 if test "$ac_cv_func_mmap_file" = yes; then
33915
33916 cat >>confdefs.h <<\_ACEOF
33917 #define HAVE_MMAP_FILE
33918 _ACEOF
33919
33920    MMAP_FILE=yes
33921
33922 fi
33923
33924   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
33925 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
33926 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33927   echo $ECHO_N "(cached) $ECHO_C" >&6
33928 else
33929   if test "$llvm_cv_os_type" = "Interix" ; then
33930    ac_cv_need_dev_zero_for_mmap=yes
33931  else
33932    ac_cv_need_dev_zero_for_mmap=no
33933  fi
33934
33935 fi
33936 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33937 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
33938 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33939
33940 cat >>confdefs.h <<\_ACEOF
33941 #define NEED_DEV_ZERO_FOR_MMAP 1
33942 _ACEOF
33943
33944 fi
33945
33946   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33947   then
33948     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
33949 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
33950   fi
33951   if test "$ac_cv_func_mmap_file" = "no"
33952   then
33953     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
33954 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
33955   fi
33956 fi
33957
33958
33959
33960 for ac_func in __dso_handle
33961 do
33962 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33963 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33964 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33965 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33966   echo $ECHO_N "(cached) $ECHO_C" >&6
33967 else
33968   cat >conftest.$ac_ext <<_ACEOF
33969 /* confdefs.h.  */
33970 _ACEOF
33971 cat confdefs.h >>conftest.$ac_ext
33972 cat >>conftest.$ac_ext <<_ACEOF
33973 /* end confdefs.h.  */
33974 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33975    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33976 #define $ac_func innocuous_$ac_func
33977
33978 /* System header to define __stub macros and hopefully few prototypes,
33979     which can conflict with char $ac_func (); below.
33980     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33981     <limits.h> exists even on freestanding compilers.  */
33982
33983 #ifdef __STDC__
33984 # include <limits.h>
33985 #else
33986 # include <assert.h>
33987 #endif
33988
33989 #undef $ac_func
33990
33991 /* Override any GCC internal prototype to avoid an error.
33992    Use char because int might match the return type of a GCC
33993    builtin and then its argument prototype would still apply.  */
33994 #ifdef __cplusplus
33995 extern "C"
33996 #endif
33997 char $ac_func ();
33998 /* The GNU C library defines this for functions which it implements
33999     to always fail with ENOSYS.  Some functions are actually named
34000     something starting with __ and the normal name is an alias.  */
34001 #if defined __stub_$ac_func || defined __stub___$ac_func
34002 choke me
34003 #endif
34004
34005 int
34006 main ()
34007 {
34008 return $ac_func ();
34009   ;
34010   return 0;
34011 }
34012 _ACEOF
34013 rm -f conftest.$ac_objext conftest$ac_exeext
34014 if { (ac_try="$ac_link"
34015 case "(($ac_try" in
34016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34017   *) ac_try_echo=$ac_try;;
34018 esac
34019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34020   (eval "$ac_link") 2>conftest.er1
34021   ac_status=$?
34022   grep -v '^ *+' conftest.er1 >conftest.err
34023   rm -f conftest.er1
34024   cat conftest.err >&5
34025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34026   (exit $ac_status); } &&
34027          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34028   { (case "(($ac_try" in
34029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34030   *) ac_try_echo=$ac_try;;
34031 esac
34032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34033   (eval "$ac_try") 2>&5
34034   ac_status=$?
34035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34036   (exit $ac_status); }; } &&
34037          { ac_try='test -s conftest$ac_exeext'
34038   { (case "(($ac_try" in
34039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34040   *) ac_try_echo=$ac_try;;
34041 esac
34042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34043   (eval "$ac_try") 2>&5
34044   ac_status=$?
34045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34046   (exit $ac_status); }; }; then
34047   eval "$as_ac_var=yes"
34048 else
34049   echo "$as_me: failed program was:" >&5
34050 sed 's/^/| /' conftest.$ac_ext >&5
34051
34052         eval "$as_ac_var=no"
34053 fi
34054
34055 rm -f core conftest.err conftest.$ac_objext \
34056       conftest$ac_exeext conftest.$ac_ext
34057 fi
34058 ac_res=`eval echo '${'$as_ac_var'}'`
34059                { echo "$as_me:$LINENO: result: $ac_res" >&5
34060 echo "${ECHO_T}$ac_res" >&6; }
34061 if test `eval echo '${'$as_ac_var'}'` = yes; then
34062   cat >>confdefs.h <<_ACEOF
34063 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34064 _ACEOF
34065
34066 fi
34067 done
34068
34069
34070 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
34071 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
34072 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
34073   echo $ECHO_N "(cached) $ECHO_C" >&6
34074 else
34075   llvm_cv_llvmgcc_sanity="no"
34076 if test -x "$LLVMGCC" ; then
34077   cp /dev/null conftest.c
34078   "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
34079       grep 'target datalayout =' > /dev/null 2>&1
34080   if test $? -eq 0 ; then
34081     llvm_cv_llvmgcc_sanity="yes"
34082   fi
34083   rm conftest.c
34084 fi
34085 fi
34086 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
34087 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
34088
34089 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
34090   { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
34091 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
34092   llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
34093   LLVMCC1=$llvmcc1path
34094
34095   llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
34096   LLVMCC1PLUS=$llvmcc1pluspath
34097
34098   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
34099   LLVMGCCDIR=$llvmgccdir
34100
34101   llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
34102   LLVMGCCLIBEXEC=$llvmgcclibexec
34103
34104   llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
34105   llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
34106   LLVMGCC_VERSION=$llvmgccversion
34107
34108   LLVMGCC_MAJVERS=$llvmgccmajvers
34109
34110   llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ -]*\).*/\1/'`
34111   LLVMGCC_LANGS=$llvmgcclangs
34112
34113   { echo "$as_me:$LINENO: result: ok" >&5
34114 echo "${ECHO_T}ok" >&6; }
34115 fi
34116
34117 SHLIBEXT=$libltdl_cv_shlibext
34118
34119
34120 # Translate the various configuration directories and other basic
34121 # information into substitutions that will end up in Makefile.config.in
34122 # that these configured values can be used by the makefiles
34123 if test "${prefix}" = "NONE" ; then
34124   prefix="/usr/local"
34125 fi
34126 eval LLVM_PREFIX="${prefix}";
34127 eval LLVM_BINDIR="${prefix}/bin";
34128 eval LLVM_LIBDIR="${prefix}/lib";
34129 eval LLVM_DATADIR="${prefix}/share/llvm";
34130 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
34131 eval LLVM_ETCDIR="${prefix}/etc/llvm";
34132 eval LLVM_INCLUDEDIR="${prefix}/include";
34133 eval LLVM_INFODIR="${prefix}/info";
34134 eval LLVM_MANDIR="${prefix}/man";
34135 LLVM_CONFIGTIME=`date`
34136
34137
34138
34139
34140
34141
34142
34143
34144
34145
34146
34147 # Place the various directores into the config.h file as #defines so that we
34148 # can know about the installation paths within LLVM.
34149
34150 cat >>confdefs.h <<_ACEOF
34151 #define LLVM_PREFIX "$LLVM_PREFIX"
34152 _ACEOF
34153
34154
34155 cat >>confdefs.h <<_ACEOF
34156 #define LLVM_BINDIR "$LLVM_BINDIR"
34157 _ACEOF
34158
34159
34160 cat >>confdefs.h <<_ACEOF
34161 #define LLVM_LIBDIR "$LLVM_LIBDIR"
34162 _ACEOF
34163
34164
34165 cat >>confdefs.h <<_ACEOF
34166 #define LLVM_DATADIR "$LLVM_DATADIR"
34167 _ACEOF
34168
34169
34170 cat >>confdefs.h <<_ACEOF
34171 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
34172 _ACEOF
34173
34174
34175 cat >>confdefs.h <<_ACEOF
34176 #define LLVM_ETCDIR "$LLVM_ETCDIR"
34177 _ACEOF
34178
34179
34180 cat >>confdefs.h <<_ACEOF
34181 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
34182 _ACEOF
34183
34184
34185 cat >>confdefs.h <<_ACEOF
34186 #define LLVM_INFODIR "$LLVM_INFODIR"
34187 _ACEOF
34188
34189
34190 cat >>confdefs.h <<_ACEOF
34191 #define LLVM_MANDIR "$LLVM_MANDIR"
34192 _ACEOF
34193
34194
34195 cat >>confdefs.h <<_ACEOF
34196 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
34197 _ACEOF
34198
34199
34200 cat >>confdefs.h <<_ACEOF
34201 #define LLVM_HOSTTRIPLE "$host"
34202 _ACEOF
34203
34204
34205 # Determine which bindings to build.
34206 if test "$BINDINGS_TO_BUILD" = auto ; then
34207   BINDINGS_TO_BUILD=""
34208   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
34209     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
34210   fi
34211 fi
34212 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
34213
34214
34215 # This isn't really configurey, but it avoids having to repeat the list in
34216 # other files.
34217 ALL_BINDINGS=ocaml
34218
34219
34220 # Do any work necessary to ensure that bindings have what they need.
34221 binding_prereqs_failed=0
34222 for a_binding in $BINDINGS_TO_BUILD ; do
34223   case "$a_binding" in
34224   ocaml)
34225     if test "x$OCAMLC" = x ; then
34226       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
34227 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
34228       binding_prereqs_failed=1
34229     fi
34230     if test "x$OCAMLDEP" = x ; then
34231       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
34232 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
34233       binding_prereqs_failed=1
34234     fi
34235     if test "x$OCAMLOPT" = x ; then
34236       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
34237 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
34238           fi
34239     if test "x$with_ocaml_libdir" != xauto ; then
34240       OCAML_LIBDIR=$with_ocaml_libdir
34241
34242     else
34243       ocaml_stdlib="`"$OCAMLC" -where`"
34244       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
34245       then
34246         # ocaml stdlib is beneath our prefix; use stdlib
34247         OCAML_LIBDIR=$ocaml_stdlib
34248
34249       else
34250         # ocaml stdlib is outside our prefix; use libdir/ocaml
34251         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
34252
34253       fi
34254     fi
34255     ;;
34256   esac
34257 done
34258 if test "$binding_prereqs_failed" = 1 ; then
34259   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
34260 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
34261    { (exit 1); exit 1; }; }
34262 fi
34263
34264
34265
34266 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
34267
34268 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
34269
34270 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
34271
34272 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
34273
34274 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
34275
34276
34277 ac_config_files="$ac_config_files Makefile.config"
34278
34279
34280 ac_config_files="$ac_config_files llvm.spec"
34281
34282
34283 ac_config_files="$ac_config_files docs/doxygen.cfg"
34284
34285
34286 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
34287
34288
34289 ac_config_commands="$ac_config_commands setup"
34290
34291 ac_config_commands="$ac_config_commands Makefile"
34292
34293
34294 ac_config_commands="$ac_config_commands Makefile.common"
34295
34296
34297 ac_config_commands="$ac_config_commands examples/Makefile"
34298
34299
34300 ac_config_commands="$ac_config_commands lib/Makefile"
34301
34302
34303 ac_config_commands="$ac_config_commands runtime/Makefile"
34304
34305
34306 ac_config_commands="$ac_config_commands test/Makefile"
34307
34308
34309 ac_config_commands="$ac_config_commands test/Makefile.tests"
34310
34311
34312 ac_config_commands="$ac_config_commands tools/Makefile"
34313
34314
34315 ac_config_commands="$ac_config_commands utils/Makefile"
34316
34317
34318 ac_config_commands="$ac_config_commands projects/Makefile"
34319
34320
34321 ac_config_commands="$ac_config_commands bindings/Makefile"
34322
34323
34324 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
34325
34326
34327
34328 cat >confcache <<\_ACEOF
34329 # This file is a shell script that caches the results of configure
34330 # tests run on this system so they can be shared between configure
34331 # scripts and configure runs, see configure's option --config-cache.
34332 # It is not useful on other systems.  If it contains results you don't
34333 # want to keep, you may remove or edit it.
34334 #
34335 # config.status only pays attention to the cache file if you give it
34336 # the --recheck option to rerun configure.
34337 #
34338 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34339 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34340 # following values.
34341
34342 _ACEOF
34343
34344 # The following way of writing the cache mishandles newlines in values,
34345 # but we know of no workaround that is simple, portable, and efficient.
34346 # So, we kill variables containing newlines.
34347 # Ultrix sh set writes to stderr and can't be redirected directly,
34348 # and sets the high bit in the cache file unless we assign to the vars.
34349 (
34350   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34351     eval ac_val=\$$ac_var
34352     case $ac_val in #(
34353     *${as_nl}*)
34354       case $ac_var in #(
34355       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34356 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34357       esac
34358       case $ac_var in #(
34359       _ | IFS | as_nl) ;; #(
34360       *) $as_unset $ac_var ;;
34361       esac ;;
34362     esac
34363   done
34364
34365   (set) 2>&1 |
34366     case $as_nl`(ac_space=' '; set) 2>&1` in #(
34367     *${as_nl}ac_space=\ *)
34368       # `set' does not quote correctly, so add quotes (double-quote
34369       # substitution turns \\\\ into \\, and sed turns \\ into \).
34370       sed -n \
34371         "s/'/'\\\\''/g;
34372           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34373       ;; #(
34374     *)
34375       # `set' quotes correctly as required by POSIX, so do not add quotes.
34376       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34377       ;;
34378     esac |
34379     sort
34380 ) |
34381   sed '
34382      /^ac_cv_env_/b end
34383      t clear
34384      :clear
34385      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34386      t end
34387      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34388      :end' >>confcache
34389 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34390   if test -w "$cache_file"; then
34391     test "x$cache_file" != "x/dev/null" &&
34392       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34393 echo "$as_me: updating cache $cache_file" >&6;}
34394     cat confcache >$cache_file
34395   else
34396     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34397 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34398   fi
34399 fi
34400 rm -f confcache
34401
34402 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34403 # Let make expand exec_prefix.
34404 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34405
34406 DEFS=-DHAVE_CONFIG_H
34407
34408 ac_libobjs=
34409 ac_ltlibobjs=
34410 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34411   # 1. Remove the extension, and $U if already installed.
34412   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34413   ac_i=`echo "$ac_i" | sed "$ac_script"`
34414   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
34415   #    will be set to the directory where LIBOBJS objects are built.
34416   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34417   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34418 done
34419 LIBOBJS=$ac_libobjs
34420
34421 LTLIBOBJS=$ac_ltlibobjs
34422
34423
34424 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34425   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34426 Usually this means the macro was only invoked conditionally." >&5
34427 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34428 Usually this means the macro was only invoked conditionally." >&2;}
34429    { (exit 1); exit 1; }; }
34430 fi
34431 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34432   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34433 Usually this means the macro was only invoked conditionally." >&5
34434 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34435 Usually this means the macro was only invoked conditionally." >&2;}
34436    { (exit 1); exit 1; }; }
34437 fi
34438
34439 : ${CONFIG_STATUS=./config.status}
34440 ac_clean_files_save=$ac_clean_files
34441 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34442 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34443 echo "$as_me: creating $CONFIG_STATUS" >&6;}
34444 cat >$CONFIG_STATUS <<_ACEOF
34445 #! $SHELL
34446 # Generated by $as_me.
34447 # Run this file to recreate the current configuration.
34448 # Compiler output produced by configure, useful for debugging
34449 # configure, is in config.log if it exists.
34450
34451 debug=false
34452 ac_cs_recheck=false
34453 ac_cs_silent=false
34454 SHELL=\${CONFIG_SHELL-$SHELL}
34455 _ACEOF
34456
34457 cat >>$CONFIG_STATUS <<\_ACEOF
34458 ## --------------------- ##
34459 ## M4sh Initialization.  ##
34460 ## --------------------- ##
34461
34462 # Be Bourne compatible
34463 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34464   emulate sh
34465   NULLCMD=:
34466   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34467   # is contrary to our usage.  Disable this feature.
34468   alias -g '${1+"$@"}'='"$@"'
34469   setopt NO_GLOB_SUBST
34470 else
34471   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
34472 fi
34473 BIN_SH=xpg4; export BIN_SH # for Tru64
34474 DUALCASE=1; export DUALCASE # for MKS sh
34475
34476
34477 # PATH needs CR
34478 # Avoid depending upon Character Ranges.
34479 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34480 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34481 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34482 as_cr_digits='0123456789'
34483 as_cr_alnum=$as_cr_Letters$as_cr_digits
34484
34485 # The user is always right.
34486 if test "${PATH_SEPARATOR+set}" != set; then
34487   echo "#! /bin/sh" >conf$$.sh
34488   echo  "exit 0"   >>conf$$.sh
34489   chmod +x conf$$.sh
34490   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34491     PATH_SEPARATOR=';'
34492   else
34493     PATH_SEPARATOR=:
34494   fi
34495   rm -f conf$$.sh
34496 fi
34497
34498 # Support unset when possible.
34499 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34500   as_unset=unset
34501 else
34502   as_unset=false
34503 fi
34504
34505
34506 # IFS
34507 # We need space, tab and new line, in precisely that order.  Quoting is
34508 # there to prevent editors from complaining about space-tab.
34509 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34510 # splitting by setting IFS to empty value.)
34511 as_nl='
34512 '
34513 IFS=" ""        $as_nl"
34514
34515 # Find who we are.  Look in the path if we contain no directory separator.
34516 case $0 in
34517   *[\\/]* ) as_myself=$0 ;;
34518   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34519 for as_dir in $PATH
34520 do
34521   IFS=$as_save_IFS
34522   test -z "$as_dir" && as_dir=.
34523   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34524 done
34525 IFS=$as_save_IFS
34526
34527      ;;
34528 esac
34529 # We did not find ourselves, most probably we were run as `sh COMMAND'
34530 # in which case we are not to be found in the path.
34531 if test "x$as_myself" = x; then
34532   as_myself=$0
34533 fi
34534 if test ! -f "$as_myself"; then
34535   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34536   { (exit 1); exit 1; }
34537 fi
34538
34539 # Work around bugs in pre-3.0 UWIN ksh.
34540 for as_var in ENV MAIL MAILPATH
34541 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34542 done
34543 PS1='$ '
34544 PS2='> '
34545 PS4='+ '
34546
34547 # NLS nuisances.
34548 for as_var in \
34549   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34550   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34551   LC_TELEPHONE LC_TIME
34552 do
34553   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34554     eval $as_var=C; export $as_var
34555   else
34556     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34557   fi
34558 done
34559
34560 # Required to use basename.
34561 if expr a : '\(a\)' >/dev/null 2>&1 &&
34562    test "X`expr 00001 : '.*\(...\)'`" = X001; then
34563   as_expr=expr
34564 else
34565   as_expr=false
34566 fi
34567
34568 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34569   as_basename=basename
34570 else
34571   as_basename=false
34572 fi
34573
34574
34575 # Name of the executable.
34576 as_me=`$as_basename -- "$0" ||
34577 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34578          X"$0" : 'X\(//\)$' \| \
34579          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34580 echo X/"$0" |
34581     sed '/^.*\/\([^/][^/]*\)\/*$/{
34582             s//\1/
34583             q
34584           }
34585           /^X\/\(\/\/\)$/{
34586             s//\1/
34587             q
34588           }
34589           /^X\/\(\/\).*/{
34590             s//\1/
34591             q
34592           }
34593           s/.*/./; q'`
34594
34595 # CDPATH.
34596 $as_unset CDPATH
34597
34598
34599
34600   as_lineno_1=$LINENO
34601   as_lineno_2=$LINENO
34602   test "x$as_lineno_1" != "x$as_lineno_2" &&
34603   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
34604
34605   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34606   # uniformly replaced by the line number.  The first 'sed' inserts a
34607   # line-number line after each line using $LINENO; the second 'sed'
34608   # does the real work.  The second script uses 'N' to pair each
34609   # line-number line with the line containing $LINENO, and appends
34610   # trailing '-' during substitution so that $LINENO is not a special
34611   # case at line end.
34612   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34613   # scripts with optimization help from Paolo Bonzini.  Blame Lee
34614   # E. McMahon (1931-1989) for sed's syntax.  :-)
34615   sed -n '
34616     p
34617     /[$]LINENO/=
34618   ' <$as_myself |
34619     sed '
34620       s/[$]LINENO.*/&-/
34621       t lineno
34622       b
34623       :lineno
34624       N
34625       :loop
34626       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34627       t loop
34628       s/-\n.*//
34629     ' >$as_me.lineno &&
34630   chmod +x "$as_me.lineno" ||
34631     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34632    { (exit 1); exit 1; }; }
34633
34634   # Don't try to exec as it changes $[0], causing all sort of problems
34635   # (the dirname of $[0] is not the place where we might find the
34636   # original and so on.  Autoconf is especially sensitive to this).
34637   . "./$as_me.lineno"
34638   # Exit status is that of the last command.
34639   exit
34640 }
34641
34642
34643 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34644   as_dirname=dirname
34645 else
34646   as_dirname=false
34647 fi
34648
34649 ECHO_C= ECHO_N= ECHO_T=
34650 case `echo -n x` in
34651 -n*)
34652   case `echo 'x\c'` in
34653   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
34654   *)   ECHO_C='\c';;
34655   esac;;
34656 *)
34657   ECHO_N='-n';;
34658 esac
34659
34660 if expr a : '\(a\)' >/dev/null 2>&1 &&
34661    test "X`expr 00001 : '.*\(...\)'`" = X001; then
34662   as_expr=expr
34663 else
34664   as_expr=false
34665 fi
34666
34667 rm -f conf$$ conf$$.exe conf$$.file
34668 if test -d conf$$.dir; then
34669   rm -f conf$$.dir/conf$$.file
34670 else
34671   rm -f conf$$.dir
34672   mkdir conf$$.dir
34673 fi
34674 echo >conf$$.file
34675 if ln -s conf$$.file conf$$ 2>/dev/null; then
34676   as_ln_s='ln -s'
34677   # ... but there are two gotchas:
34678   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34679   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34680   # In both cases, we have to default to `cp -p'.
34681   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34682     as_ln_s='cp -p'
34683 elif ln conf$$.file conf$$ 2>/dev/null; then
34684   as_ln_s=ln
34685 else
34686   as_ln_s='cp -p'
34687 fi
34688 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34689 rmdir conf$$.dir 2>/dev/null
34690
34691 if mkdir -p . 2>/dev/null; then
34692   as_mkdir_p=:
34693 else
34694   test -d ./-p && rmdir ./-p
34695   as_mkdir_p=false
34696 fi
34697
34698 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
34699 # systems may use methods other than mode bits to determine executability.
34700 cat >conf$$.file <<_ASEOF
34701 #! /bin/sh
34702 exit 0
34703 _ASEOF
34704 chmod +x conf$$.file
34705 if test -x conf$$.file >/dev/null 2>&1; then
34706   as_executable_p="test -x"
34707 else
34708   as_executable_p=:
34709 fi
34710 rm -f conf$$.file
34711
34712 # Sed expression to map a string onto a valid CPP name.
34713 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34714
34715 # Sed expression to map a string onto a valid variable name.
34716 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34717
34718
34719 exec 6>&1
34720
34721 # Save the log message, to keep $[0] and so on meaningful, and to
34722 # report actual input values of CONFIG_FILES etc. instead of their
34723 # values after options handling.
34724 ac_log="
34725 This file was extended by llvm $as_me 2.2svn, which was
34726 generated by GNU Autoconf 2.60.  Invocation command line was
34727
34728   CONFIG_FILES    = $CONFIG_FILES
34729   CONFIG_HEADERS  = $CONFIG_HEADERS
34730   CONFIG_LINKS    = $CONFIG_LINKS
34731   CONFIG_COMMANDS = $CONFIG_COMMANDS
34732   $ $0 $@
34733
34734 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34735 "
34736
34737 _ACEOF
34738
34739 cat >>$CONFIG_STATUS <<_ACEOF
34740 # Files that config.status was made for.
34741 config_files="$ac_config_files"
34742 config_headers="$ac_config_headers"
34743 config_commands="$ac_config_commands"
34744
34745 _ACEOF
34746
34747 cat >>$CONFIG_STATUS <<\_ACEOF
34748 ac_cs_usage="\
34749 \`$as_me' instantiates files from templates according to the
34750 current configuration.
34751
34752 Usage: $0 [OPTIONS] [FILE]...
34753
34754   -h, --help       print this help, then exit
34755   -V, --version    print version number, then exit
34756   -q, --quiet      do not print progress messages
34757   -d, --debug      don't remove temporary files
34758       --recheck    update $as_me by reconfiguring in the same conditions
34759   --file=FILE[:TEMPLATE]
34760                    instantiate the configuration file FILE
34761   --header=FILE[:TEMPLATE]
34762                    instantiate the configuration header FILE
34763
34764 Configuration files:
34765 $config_files
34766
34767 Configuration headers:
34768 $config_headers
34769
34770 Configuration commands:
34771 $config_commands
34772
34773 Report bugs to <bug-autoconf@gnu.org>."
34774
34775 _ACEOF
34776 cat >>$CONFIG_STATUS <<_ACEOF
34777 ac_cs_version="\\
34778 llvm config.status 2.2svn
34779 configured by $0, generated by GNU Autoconf 2.60,
34780   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
34781
34782 Copyright (C) 2006 Free Software Foundation, Inc.
34783 This config.status script is free software; the Free Software Foundation
34784 gives unlimited permission to copy, distribute and modify it."
34785
34786 ac_pwd='$ac_pwd'
34787 srcdir='$srcdir'
34788 INSTALL='$INSTALL'
34789 _ACEOF
34790
34791 cat >>$CONFIG_STATUS <<\_ACEOF
34792 # If no file are specified by the user, then we need to provide default
34793 # value.  By we need to know if files were specified by the user.
34794 ac_need_defaults=:
34795 while test $# != 0
34796 do
34797   case $1 in
34798   --*=*)
34799     ac_option=`expr "X$1" : 'X\([^=]*\)='`
34800     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34801     ac_shift=:
34802     ;;
34803   *)
34804     ac_option=$1
34805     ac_optarg=$2
34806     ac_shift=shift
34807     ;;
34808   esac
34809
34810   case $ac_option in
34811   # Handling of the options.
34812   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34813     ac_cs_recheck=: ;;
34814   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34815     echo "$ac_cs_version"; exit ;;
34816   --debug | --debu | --deb | --de | --d | -d )
34817     debug=: ;;
34818   --file | --fil | --fi | --f )
34819     $ac_shift
34820     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
34821     ac_need_defaults=false;;
34822   --header | --heade | --head | --hea )
34823     $ac_shift
34824     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
34825     ac_need_defaults=false;;
34826   --he | --h)
34827     # Conflict between --help and --header
34828     { echo "$as_me: error: ambiguous option: $1
34829 Try \`$0 --help' for more information." >&2
34830    { (exit 1); exit 1; }; };;
34831   --help | --hel | -h )
34832     echo "$ac_cs_usage"; exit ;;
34833   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34834   | -silent | --silent | --silen | --sile | --sil | --si | --s)
34835     ac_cs_silent=: ;;
34836
34837   # This is an error.
34838   -*) { echo "$as_me: error: unrecognized option: $1
34839 Try \`$0 --help' for more information." >&2
34840    { (exit 1); exit 1; }; } ;;
34841
34842   *) ac_config_targets="$ac_config_targets $1"
34843      ac_need_defaults=false ;;
34844
34845   esac
34846   shift
34847 done
34848
34849 ac_configure_extra_args=
34850
34851 if $ac_cs_silent; then
34852   exec 6>/dev/null
34853   ac_configure_extra_args="$ac_configure_extra_args --silent"
34854 fi
34855
34856 _ACEOF
34857 cat >>$CONFIG_STATUS <<_ACEOF
34858 if \$ac_cs_recheck; then
34859   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34860   CONFIG_SHELL=$SHELL
34861   export CONFIG_SHELL
34862   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34863 fi
34864
34865 _ACEOF
34866 cat >>$CONFIG_STATUS <<\_ACEOF
34867 exec 5>>config.log
34868 {
34869   echo
34870   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34871 ## Running $as_me. ##
34872 _ASBOX
34873   echo "$ac_log"
34874 } >&5
34875
34876 _ACEOF
34877 cat >>$CONFIG_STATUS <<_ACEOF
34878 #
34879 # INIT-COMMANDS
34880 #
34881 llvm_src="${srcdir}"
34882
34883 _ACEOF
34884
34885 cat >>$CONFIG_STATUS <<\_ACEOF
34886
34887 # Handling of arguments.
34888 for ac_config_target in $ac_config_targets
34889 do
34890   case $ac_config_target in
34891     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34892     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
34893     "include/llvm/ADT/hash_map") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
34894     "include/llvm/ADT/hash_set") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
34895     "include/llvm/ADT/iterator") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
34896     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
34897     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
34898     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
34899     "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34900     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34901     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34902     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34903     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34904     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
34905     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
34906     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34907     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
34908     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34909     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34910     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
34911     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
34912     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
34913
34914   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34915 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34916    { (exit 1); exit 1; }; };;
34917   esac
34918 done
34919
34920
34921 # If the user did not use the arguments to specify the items to instantiate,
34922 # then the envvar interface is used.  Set only those that are not.
34923 # We use the long form for the default assignment because of an extremely
34924 # bizarre bug on SunOS 4.1.3.
34925 if $ac_need_defaults; then
34926   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34927   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34928   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34929 fi
34930
34931 # Have a temporary directory for convenience.  Make it in the build tree
34932 # simply because there is no reason against having it here, and in addition,
34933 # creating and moving files from /tmp can sometimes cause problems.
34934 # Hook for its removal unless debugging.
34935 # Note that there is a small window in which the directory will not be cleaned:
34936 # after its creation but before its name has been assigned to `$tmp'.
34937 $debug ||
34938 {
34939   tmp=
34940   trap 'exit_status=$?
34941   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34942 ' 0
34943   trap '{ (exit 1); exit 1; }' 1 2 13 15
34944 }
34945 # Create a (secure) tmp directory for tmp files.
34946
34947 {
34948   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34949   test -n "$tmp" && test -d "$tmp"
34950 }  ||
34951 {
34952   tmp=./conf$$-$RANDOM
34953   (umask 077 && mkdir "$tmp")
34954 } ||
34955 {
34956    echo "$me: cannot create a temporary directory in ." >&2
34957    { (exit 1); exit 1; }
34958 }
34959
34960 #
34961 # Set up the sed scripts for CONFIG_FILES section.
34962 #
34963
34964 # No need to generate the scripts if there are no CONFIG_FILES.
34965 # This happens for instance when ./config.status config.h
34966 if test -n "$CONFIG_FILES"; then
34967
34968 _ACEOF
34969
34970
34971
34972 ac_delim='%!_!# '
34973 for ac_last_try in false false false false false :; do
34974   cat >conf$$subs.sed <<_ACEOF
34975 SHELL!$SHELL$ac_delim
34976 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34977 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34978 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34979 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34980 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34981 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34982 exec_prefix!$exec_prefix$ac_delim
34983 prefix!$prefix$ac_delim
34984 program_transform_name!$program_transform_name$ac_delim
34985 bindir!$bindir$ac_delim
34986 sbindir!$sbindir$ac_delim
34987 libexecdir!$libexecdir$ac_delim
34988 datarootdir!$datarootdir$ac_delim
34989 datadir!$datadir$ac_delim
34990 sysconfdir!$sysconfdir$ac_delim
34991 sharedstatedir!$sharedstatedir$ac_delim
34992 localstatedir!$localstatedir$ac_delim
34993 includedir!$includedir$ac_delim
34994 oldincludedir!$oldincludedir$ac_delim
34995 docdir!$docdir$ac_delim
34996 infodir!$infodir$ac_delim
34997 htmldir!$htmldir$ac_delim
34998 dvidir!$dvidir$ac_delim
34999 pdfdir!$pdfdir$ac_delim
35000 psdir!$psdir$ac_delim
35001 libdir!$libdir$ac_delim
35002 localedir!$localedir$ac_delim
35003 mandir!$mandir$ac_delim
35004 DEFS!$DEFS$ac_delim
35005 ECHO_C!$ECHO_C$ac_delim
35006 ECHO_N!$ECHO_N$ac_delim
35007 ECHO_T!$ECHO_T$ac_delim
35008 LIBS!$LIBS$ac_delim
35009 build_alias!$build_alias$ac_delim
35010 host_alias!$host_alias$ac_delim
35011 target_alias!$target_alias$ac_delim
35012 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
35013 subdirs!$subdirs$ac_delim
35014 build!$build$ac_delim
35015 build_cpu!$build_cpu$ac_delim
35016 build_vendor!$build_vendor$ac_delim
35017 build_os!$build_os$ac_delim
35018 host!$host$ac_delim
35019 host_cpu!$host_cpu$ac_delim
35020 host_vendor!$host_vendor$ac_delim
35021 host_os!$host_os$ac_delim
35022 target!$target$ac_delim
35023 target_cpu!$target_cpu$ac_delim
35024 target_vendor!$target_vendor$ac_delim
35025 target_os!$target_os$ac_delim
35026 OS!$OS$ac_delim
35027 LINKALL!$LINKALL$ac_delim
35028 NOLINKALL!$NOLINKALL$ac_delim
35029 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
35030 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
35031 ARCH!$ARCH$ac_delim
35032 ENDIAN!$ENDIAN$ac_delim
35033 CC!$CC$ac_delim
35034 CFLAGS!$CFLAGS$ac_delim
35035 LDFLAGS!$LDFLAGS$ac_delim
35036 CPPFLAGS!$CPPFLAGS$ac_delim
35037 ac_ct_CC!$ac_ct_CC$ac_delim
35038 EXEEXT!$EXEEXT$ac_delim
35039 OBJEXT!$OBJEXT$ac_delim
35040 CPP!$CPP$ac_delim
35041 GREP!$GREP$ac_delim
35042 EGREP!$EGREP$ac_delim
35043 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
35044 BUILD_CC!$BUILD_CC$ac_delim
35045 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
35046 CVSBUILD!$CVSBUILD$ac_delim
35047 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
35048 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
35049 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
35050 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
35051 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
35052 JIT!$JIT$ac_delim
35053 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
35054 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
35055 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
35056 ENABLE_PIC!$ENABLE_PIC$ac_delim
35057 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
35058 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
35059 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
35060 CXX!$CXX$ac_delim
35061 CXXFLAGS!$CXXFLAGS$ac_delim
35062 ac_ct_CXX!$ac_ct_CXX$ac_delim
35063 LEX!$LEX$ac_delim
35064 LEXLIB!$LEXLIB$ac_delim
35065 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
35066 FLEX!$FLEX$ac_delim
35067 YACC!$YACC$ac_delim
35068 YFLAGS!$YFLAGS$ac_delim
35069 BISON!$BISON$ac_delim
35070 NM!$NM$ac_delim
35071 ifGNUmake!$ifGNUmake$ac_delim
35072 _ACEOF
35073
35074   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35075     break
35076   elif $ac_last_try; then
35077     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35078 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35079    { (exit 1); exit 1; }; }
35080   else
35081     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35082   fi
35083 done
35084
35085 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35086 if test -n "$ac_eof"; then
35087   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35088   ac_eof=`expr $ac_eof + 1`
35089 fi
35090
35091 cat >>$CONFIG_STATUS <<_ACEOF
35092 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
35093 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35094 _ACEOF
35095 sed '
35096 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35097 s/^/s,@/; s/!/@,|#_!!_#|/
35098 :n
35099 t n
35100 s/'"$ac_delim"'$/,g/; t
35101 s/$/\\/; p
35102 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35103 ' >>$CONFIG_STATUS <conf$$subs.sed
35104 rm -f conf$$subs.sed
35105 cat >>$CONFIG_STATUS <<_ACEOF
35106 CEOF$ac_eof
35107 _ACEOF
35108
35109
35110 ac_delim='%!_!# '
35111 for ac_last_try in false false false false false :; do
35112   cat >conf$$subs.sed <<_ACEOF
35113 LN_S!$LN_S$ac_delim
35114 CMP!$CMP$ac_delim
35115 CP!$CP$ac_delim
35116 DATE!$DATE$ac_delim
35117 FIND!$FIND$ac_delim
35118 MKDIR!$MKDIR$ac_delim
35119 MV!$MV$ac_delim
35120 RANLIB!$RANLIB$ac_delim
35121 RM!$RM$ac_delim
35122 SED!$SED$ac_delim
35123 TAR!$TAR$ac_delim
35124 BINPWD!$BINPWD$ac_delim
35125 GRAPHVIZ!$GRAPHVIZ$ac_delim
35126 DOT!$DOT$ac_delim
35127 GV!$GV$ac_delim
35128 DOTTY!$DOTTY$ac_delim
35129 PERL!$PERL$ac_delim
35130 HAVE_PERL!$HAVE_PERL$ac_delim
35131 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
35132 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
35133 INSTALL_DATA!$INSTALL_DATA$ac_delim
35134 BZIP2!$BZIP2$ac_delim
35135 DOXYGEN!$DOXYGEN$ac_delim
35136 GROFF!$GROFF$ac_delim
35137 GZIP!$GZIP$ac_delim
35138 POD2HTML!$POD2HTML$ac_delim
35139 POD2MAN!$POD2MAN$ac_delim
35140 RUNTEST!$RUNTEST$ac_delim
35141 TCLSH!$TCLSH$ac_delim
35142 ZIP!$ZIP$ac_delim
35143 OCAMLC!$OCAMLC$ac_delim
35144 OCAMLOPT!$OCAMLOPT$ac_delim
35145 OCAMLDEP!$OCAMLDEP$ac_delim
35146 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
35147 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
35148 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
35149 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
35150 LIBADD_DL!$LIBADD_DL$ac_delim
35151 ECHO!$ECHO$ac_delim
35152 AR!$AR$ac_delim
35153 STRIP!$STRIP$ac_delim
35154 CXXCPP!$CXXCPP$ac_delim
35155 F77!$F77$ac_delim
35156 FFLAGS!$FFLAGS$ac_delim
35157 ac_ct_F77!$ac_ct_F77$ac_delim
35158 LIBTOOL!$LIBTOOL$ac_delim
35159 LLVMGCC!$LLVMGCC$ac_delim
35160 LLVMGXX!$LLVMGXX$ac_delim
35161 USE_UDIS86!$USE_UDIS86$ac_delim
35162 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
35163 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
35164 ALLOCA!$ALLOCA$ac_delim
35165 MMAP_FILE!$MMAP_FILE$ac_delim
35166 LLVMCC1!$LLVMCC1$ac_delim
35167 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
35168 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
35169 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
35170 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
35171 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
35172 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
35173 SHLIBEXT!$SHLIBEXT$ac_delim
35174 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
35175 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
35176 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
35177 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
35178 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
35179 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
35180 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
35181 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
35182 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
35183 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
35184 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
35185 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
35186 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
35187 LIBOBJS!$LIBOBJS$ac_delim
35188 LTLIBOBJS!$LTLIBOBJS$ac_delim
35189 _ACEOF
35190
35191   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 76; then
35192     break
35193   elif $ac_last_try; then
35194     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35195 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35196    { (exit 1); exit 1; }; }
35197   else
35198     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35199   fi
35200 done
35201
35202 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35203 if test -n "$ac_eof"; then
35204   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35205   ac_eof=`expr $ac_eof + 1`
35206 fi
35207
35208 cat >>$CONFIG_STATUS <<_ACEOF
35209 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35210 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35211 _ACEOF
35212 sed '
35213 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35214 s/^/s,@/; s/!/@,|#_!!_#|/
35215 :n
35216 t n
35217 s/'"$ac_delim"'$/,g/; t
35218 s/$/\\/; p
35219 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35220 ' >>$CONFIG_STATUS <conf$$subs.sed
35221 rm -f conf$$subs.sed
35222 cat >>$CONFIG_STATUS <<_ACEOF
35223 :end
35224 s/|#_!!_#|//g
35225 CEOF$ac_eof
35226 _ACEOF
35227
35228
35229 # VPATH may cause trouble with some makes, so we remove $(srcdir),
35230 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35231 # trailing colons and then remove the whole line if VPATH becomes empty
35232 # (actually we leave an empty line to preserve line numbers).
35233 if test "x$srcdir" = x.; then
35234   ac_vpsub='/^[  ]*VPATH[        ]*=/{
35235 s/:*\$(srcdir):*/:/
35236 s/:*\${srcdir}:*/:/
35237 s/:*@srcdir@:*/:/
35238 s/^\([^=]*=[     ]*\):*/\1/
35239 s/:*$//
35240 s/^[^=]*=[       ]*$//
35241 }'
35242 fi
35243
35244 cat >>$CONFIG_STATUS <<\_ACEOF
35245 fi # test -n "$CONFIG_FILES"
35246
35247
35248 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
35249 do
35250   case $ac_tag in
35251   :[FHLC]) ac_mode=$ac_tag; continue;;
35252   esac
35253   case $ac_mode$ac_tag in
35254   :[FHL]*:*);;
35255   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35256 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35257    { (exit 1); exit 1; }; };;
35258   :[FH]-) ac_tag=-:-;;
35259   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35260   esac
35261   ac_save_IFS=$IFS
35262   IFS=:
35263   set x $ac_tag
35264   IFS=$ac_save_IFS
35265   shift
35266   ac_file=$1
35267   shift
35268
35269   case $ac_mode in
35270   :L) ac_source=$1;;
35271   :[FH])
35272     ac_file_inputs=
35273     for ac_f
35274     do
35275       case $ac_f in
35276       -) ac_f="$tmp/stdin";;
35277       *) # Look for the file first in the build tree, then in the source tree
35278          # (if the path is not absolute).  The absolute path cannot be DOS-style,
35279          # because $ac_f cannot contain `:'.
35280          test -f "$ac_f" ||
35281            case $ac_f in
35282            [\\/$]*) false;;
35283            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35284            esac ||
35285            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35286 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35287    { (exit 1); exit 1; }; };;
35288       esac
35289       ac_file_inputs="$ac_file_inputs $ac_f"
35290     done
35291
35292     # Let's still pretend it is `configure' which instantiates (i.e., don't
35293     # use $as_me), people would be surprised to read:
35294     #    /* config.h.  Generated by config.status.  */
35295     configure_input="Generated from "`IFS=:
35296           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35297     if test x"$ac_file" != x-; then
35298       configure_input="$ac_file.  $configure_input"
35299       { echo "$as_me:$LINENO: creating $ac_file" >&5
35300 echo "$as_me: creating $ac_file" >&6;}
35301     fi
35302
35303     case $ac_tag in
35304     *:-:* | *:-) cat >"$tmp/stdin";;
35305     esac
35306     ;;
35307   esac
35308
35309   ac_dir=`$as_dirname -- "$ac_file" ||
35310 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35311          X"$ac_file" : 'X\(//\)[^/]' \| \
35312          X"$ac_file" : 'X\(//\)$' \| \
35313          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35314 echo X"$ac_file" |
35315     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35316             s//\1/
35317             q
35318           }
35319           /^X\(\/\/\)[^/].*/{
35320             s//\1/
35321             q
35322           }
35323           /^X\(\/\/\)$/{
35324             s//\1/
35325             q
35326           }
35327           /^X\(\/\).*/{
35328             s//\1/
35329             q
35330           }
35331           s/.*/./; q'`
35332   { as_dir="$ac_dir"
35333   case $as_dir in #(
35334   -*) as_dir=./$as_dir;;
35335   esac
35336   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35337     as_dirs=
35338     while :; do
35339       case $as_dir in #(
35340       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35341       *) as_qdir=$as_dir;;
35342       esac
35343       as_dirs="'$as_qdir' $as_dirs"
35344       as_dir=`$as_dirname -- "$as_dir" ||
35345 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35346          X"$as_dir" : 'X\(//\)[^/]' \| \
35347          X"$as_dir" : 'X\(//\)$' \| \
35348          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35349 echo X"$as_dir" |
35350     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35351             s//\1/
35352             q
35353           }
35354           /^X\(\/\/\)[^/].*/{
35355             s//\1/
35356             q
35357           }
35358           /^X\(\/\/\)$/{
35359             s//\1/
35360             q
35361           }
35362           /^X\(\/\).*/{
35363             s//\1/
35364             q
35365           }
35366           s/.*/./; q'`
35367       test -d "$as_dir" && break
35368     done
35369     test -z "$as_dirs" || eval "mkdir $as_dirs"
35370   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35371 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35372    { (exit 1); exit 1; }; }; }
35373   ac_builddir=.
35374
35375 case "$ac_dir" in
35376 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35377 *)
35378   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35379   # A ".." for each directory in $ac_dir_suffix.
35380   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35381   case $ac_top_builddir_sub in
35382   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35383   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35384   esac ;;
35385 esac
35386 ac_abs_top_builddir=$ac_pwd
35387 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35388 # for backward compatibility:
35389 ac_top_builddir=$ac_top_build_prefix
35390
35391 case $srcdir in
35392   .)  # We are building in place.
35393     ac_srcdir=.
35394     ac_top_srcdir=$ac_top_builddir_sub
35395     ac_abs_top_srcdir=$ac_pwd ;;
35396   [\\/]* | ?:[\\/]* )  # Absolute name.
35397     ac_srcdir=$srcdir$ac_dir_suffix;
35398     ac_top_srcdir=$srcdir
35399     ac_abs_top_srcdir=$srcdir ;;
35400   *) # Relative name.
35401     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35402     ac_top_srcdir=$ac_top_build_prefix$srcdir
35403     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35404 esac
35405 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35406
35407
35408   case $ac_mode in
35409   :F)
35410   #
35411   # CONFIG_FILE
35412   #
35413
35414   case $INSTALL in
35415   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35416   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35417   esac
35418 _ACEOF
35419
35420 cat >>$CONFIG_STATUS <<\_ACEOF
35421 # If the template does not know about datarootdir, expand it.
35422 # FIXME: This hack should be removed a few years after 2.60.
35423 ac_datarootdir_hack=; ac_datarootdir_seen=
35424
35425 case `sed -n '/datarootdir/ {
35426   p
35427   q
35428 }
35429 /@datadir@/p
35430 /@docdir@/p
35431 /@infodir@/p
35432 /@localedir@/p
35433 /@mandir@/p
35434 ' $ac_file_inputs` in
35435 *datarootdir*) ac_datarootdir_seen=yes;;
35436 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35437   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35438 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35439 _ACEOF
35440 cat >>$CONFIG_STATUS <<_ACEOF
35441   ac_datarootdir_hack='
35442   s&@datadir@&$datadir&g
35443   s&@docdir@&$docdir&g
35444   s&@infodir@&$infodir&g
35445   s&@localedir@&$localedir&g
35446   s&@mandir@&$mandir&g
35447     s&\\\${datarootdir}&$datarootdir&g' ;;
35448 esac
35449 _ACEOF
35450
35451 # Neutralize VPATH when `$srcdir' = `.'.
35452 # Shell code in configure.ac might set extrasub.
35453 # FIXME: do we really want to maintain this feature?
35454 cat >>$CONFIG_STATUS <<_ACEOF
35455   sed "$ac_vpsub
35456 $extrasub
35457 _ACEOF
35458 cat >>$CONFIG_STATUS <<\_ACEOF
35459 :t
35460 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35461 s&@configure_input@&$configure_input&;t t
35462 s&@top_builddir@&$ac_top_builddir_sub&;t t
35463 s&@srcdir@&$ac_srcdir&;t t
35464 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35465 s&@top_srcdir@&$ac_top_srcdir&;t t
35466 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35467 s&@builddir@&$ac_builddir&;t t
35468 s&@abs_builddir@&$ac_abs_builddir&;t t
35469 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35470 s&@INSTALL@&$ac_INSTALL&;t t
35471 $ac_datarootdir_hack
35472 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
35473
35474 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35475   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35476   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35477   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35478 which seems to be undefined.  Please make sure it is defined." >&5
35479 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35480 which seems to be undefined.  Please make sure it is defined." >&2;}
35481
35482   rm -f "$tmp/stdin"
35483   case $ac_file in
35484   -) cat "$tmp/out"; rm -f "$tmp/out";;
35485   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35486   esac
35487  ;;
35488   :H)
35489   #
35490   # CONFIG_HEADER
35491   #
35492 _ACEOF
35493
35494 # Transform confdefs.h into a sed script `conftest.defines', that
35495 # substitutes the proper values into config.h.in to produce config.h.
35496 rm -f conftest.defines conftest.tail
35497 # First, append a space to every undef/define line, to ease matching.
35498 echo 's/$/ /' >conftest.defines
35499 # Then, protect against being on the right side of a sed subst, or in
35500 # an unquoted here document, in config.status.  If some macros were
35501 # called several times there might be several #defines for the same
35502 # symbol, which is useless.  But do not sort them, since the last
35503 # AC_DEFINE must be honored.
35504 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35505 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35506 # NAME is the cpp macro being defined, VALUE is the value it is being given.
35507 # PARAMS is the parameter list in the macro definition--in most cases, it's
35508 # just an empty string.
35509 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
35510 ac_dB='\\)[      (].*,\\1define\\2'
35511 ac_dC=' '
35512 ac_dD=' ,'
35513
35514 uniq confdefs.h |
35515   sed -n '
35516         t rset
35517         :rset
35518         s/^[     ]*#[    ]*define[       ][      ]*//
35519         t ok
35520         d
35521         :ok
35522         s/[\\&,]/\\&/g
35523         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35524         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35525   ' >>conftest.defines
35526
35527 # Remove the space that was appended to ease matching.
35528 # Then replace #undef with comments.  This is necessary, for
35529 # example, in the case of _POSIX_SOURCE, which is predefined and required
35530 # on some systems where configure will not decide to define it.
35531 # (The regexp can be short, since the line contains either #define or #undef.)
35532 echo 's/ $//
35533 s,^[     #]*u.*,/* & */,' >>conftest.defines
35534
35535 # Break up conftest.defines:
35536 ac_max_sed_lines=50
35537
35538 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35539 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35540 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35541 # et cetera.
35542 ac_in='$ac_file_inputs'
35543 ac_out='"$tmp/out1"'
35544 ac_nxt='"$tmp/out2"'
35545
35546 while :
35547 do
35548   # Write a here document:
35549     cat >>$CONFIG_STATUS <<_ACEOF
35550     # First, check the format of the line:
35551     cat >"\$tmp/defines.sed" <<\\CEOF
35552 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
35553 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
35554 b
35555 :def
35556 _ACEOF
35557   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
35558   echo 'CEOF
35559     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35560   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35561   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35562   grep . conftest.tail >/dev/null || break
35563   rm -f conftest.defines
35564   mv conftest.tail conftest.defines
35565 done
35566 rm -f conftest.defines conftest.tail
35567
35568 echo "ac_result=$ac_in" >>$CONFIG_STATUS
35569 cat >>$CONFIG_STATUS <<\_ACEOF
35570   if test x"$ac_file" != x-; then
35571     echo "/* $configure_input  */" >"$tmp/config.h"
35572     cat "$ac_result" >>"$tmp/config.h"
35573     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
35574       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35575 echo "$as_me: $ac_file is unchanged" >&6;}
35576     else
35577       rm -f $ac_file
35578       mv "$tmp/config.h" $ac_file
35579     fi
35580   else
35581     echo "/* $configure_input  */"
35582     cat "$ac_result"
35583   fi
35584   rm -f "$tmp/out12"
35585  ;;
35586
35587   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35588 echo "$as_me: executing $ac_file commands" >&6;}
35589  ;;
35590   esac
35591
35592
35593   case $ac_file$ac_mode in
35594     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
35595    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
35596     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
35597    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
35598     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
35599    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
35600     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
35601    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
35602     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
35603    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
35604     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
35605    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
35606     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
35607    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
35608     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
35609    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
35610     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
35611    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
35612     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
35613    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
35614     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
35615    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
35616     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
35617    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
35618
35619   esac
35620 done # for ac_tag
35621
35622
35623 { (exit 0); exit 0; }
35624 _ACEOF
35625 chmod +x $CONFIG_STATUS
35626 ac_clean_files=$ac_clean_files_save
35627
35628
35629 # configure is writing to config.log, and then calls config.status.
35630 # config.status does its own redirection, appending to config.log.
35631 # Unfortunately, on DOS this fails, as config.log is still kept open
35632 # by configure, so config.status won't be able to write to it; its
35633 # output is simply discarded.  So we exec the FD to /dev/null,
35634 # effectively closing config.log, so it can be properly (re)opened and
35635 # appended to by config.status.  When coming back to configure, we
35636 # need to make the FD available again.
35637 if test "$no_create" != yes; then
35638   ac_cs_success=:
35639   ac_config_status_args=
35640   test "$silent" = yes &&
35641     ac_config_status_args="$ac_config_status_args --quiet"
35642   exec 5>/dev/null
35643   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35644   exec 5>>config.log
35645   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35646   # would make configure fail if this is the last instruction.
35647   $ac_cs_success || { (exit 1); exit 1; }
35648 fi
35649
35650 #
35651 # CONFIG_SUBDIRS section.
35652 #
35653 if test "$no_recursion" != yes; then
35654
35655   # Remove --cache-file and --srcdir arguments so they do not pile up.
35656   ac_sub_configure_args=
35657   ac_prev=
35658   eval "set x $ac_configure_args"
35659   shift
35660   for ac_arg
35661   do
35662     if test -n "$ac_prev"; then
35663       ac_prev=
35664       continue
35665     fi
35666     case $ac_arg in
35667     -cache-file | --cache-file | --cache-fil | --cache-fi \
35668     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35669       ac_prev=cache_file ;;
35670     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35671     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35672     | --c=*)
35673       ;;
35674     --config-cache | -C)
35675       ;;
35676     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35677       ac_prev=srcdir ;;
35678     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35679       ;;
35680     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35681       ac_prev=prefix ;;
35682     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35683       ;;
35684     *)
35685       case $ac_arg in
35686       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35687       esac
35688       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
35689     esac
35690   done
35691
35692   # Always prepend --prefix to ensure using the same prefix
35693   # in subdir configurations.
35694   ac_arg="--prefix=$prefix"
35695   case $ac_arg in
35696   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35697   esac
35698   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
35699
35700   ac_popdir=`pwd`
35701   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35702
35703     # Do not complain, so a configure script can configure whichever
35704     # parts of a large source tree are present.
35705     test -d "$srcdir/$ac_dir" || continue
35706
35707     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35708     echo "$as_me:$LINENO: $ac_msg" >&5
35709     echo "$ac_msg" >&6
35710     { as_dir="$ac_dir"
35711   case $as_dir in #(
35712   -*) as_dir=./$as_dir;;
35713   esac
35714   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35715     as_dirs=
35716     while :; do
35717       case $as_dir in #(
35718       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35719       *) as_qdir=$as_dir;;
35720       esac
35721       as_dirs="'$as_qdir' $as_dirs"
35722       as_dir=`$as_dirname -- "$as_dir" ||
35723 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35724          X"$as_dir" : 'X\(//\)[^/]' \| \
35725          X"$as_dir" : 'X\(//\)$' \| \
35726          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35727 echo X"$as_dir" |
35728     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35729             s//\1/
35730             q
35731           }
35732           /^X\(\/\/\)[^/].*/{
35733             s//\1/
35734             q
35735           }
35736           /^X\(\/\/\)$/{
35737             s//\1/
35738             q
35739           }
35740           /^X\(\/\).*/{
35741             s//\1/
35742             q
35743           }
35744           s/.*/./; q'`
35745       test -d "$as_dir" && break
35746     done
35747     test -z "$as_dirs" || eval "mkdir $as_dirs"
35748   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35749 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35750    { (exit 1); exit 1; }; }; }
35751     ac_builddir=.
35752
35753 case "$ac_dir" in
35754 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35755 *)
35756   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35757   # A ".." for each directory in $ac_dir_suffix.
35758   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35759   case $ac_top_builddir_sub in
35760   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35761   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35762   esac ;;
35763 esac
35764 ac_abs_top_builddir=$ac_pwd
35765 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35766 # for backward compatibility:
35767 ac_top_builddir=$ac_top_build_prefix
35768
35769 case $srcdir in
35770   .)  # We are building in place.
35771     ac_srcdir=.
35772     ac_top_srcdir=$ac_top_builddir_sub
35773     ac_abs_top_srcdir=$ac_pwd ;;
35774   [\\/]* | ?:[\\/]* )  # Absolute name.
35775     ac_srcdir=$srcdir$ac_dir_suffix;
35776     ac_top_srcdir=$srcdir
35777     ac_abs_top_srcdir=$srcdir ;;
35778   *) # Relative name.
35779     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35780     ac_top_srcdir=$ac_top_build_prefix$srcdir
35781     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35782 esac
35783 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35784
35785
35786     cd "$ac_dir"
35787
35788     # Check for guested configure; otherwise get Cygnus style configure.
35789     if test -f "$ac_srcdir/configure.gnu"; then
35790       ac_sub_configure=$ac_srcdir/configure.gnu
35791     elif test -f "$ac_srcdir/configure"; then
35792       ac_sub_configure=$ac_srcdir/configure
35793     elif test -f "$ac_srcdir/configure.in"; then
35794       # This should be Cygnus configure.
35795       ac_sub_configure=$ac_aux_dir/configure
35796     else
35797       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
35798 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
35799       ac_sub_configure=
35800     fi
35801
35802     # The recursion is here.
35803     if test -n "$ac_sub_configure"; then
35804       # Make the cache file name correct relative to the subdirectory.
35805       case $cache_file in
35806       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
35807       *) # Relative name.
35808         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
35809       esac
35810
35811       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
35812 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
35813       # The eval makes quoting arguments work.
35814       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
35815            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
35816         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
35817 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
35818    { (exit 1); exit 1; }; }
35819     fi
35820
35821     cd "$ac_popdir"
35822   done
35823 fi
35824