Tweak build system to allow for installing the tutorial and uninstalling the docs.
[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.3svn.
4 #
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 #
12 # Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization.  ##
15 ## --------------------- ##
16
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19   emulate sh
20   NULLCMD=:
21   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22   # is contrary to our usage.  Disable this feature.
23   alias -g '${1+"$@"}'='"$@"'
24   setopt NO_GLOB_SUBST
25 else
26   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
27 fi
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242   emulate sh
243   NULLCMD=:
244   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245   # is contrary to our usage.  Disable this feature.
246   alias -g '${1+"$@"}'='"$@"'
247   setopt NO_GLOB_SUBST
248 else
249   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250 fi
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
253
254 :
255 _ASEOF
256 }; then
257   CONFIG_SHELL=$as_shell
258                as_have_required=yes
259                if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270 fi
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
273
274 :
275 (as_func_return () {
276   (exit $1)
277 }
278 as_func_success () {
279   as_func_return 0
280 }
281 as_func_failure () {
282   as_func_return 1
283 }
284 as_func_ret_success () {
285   return 0
286 }
287 as_func_ret_failure () {
288   return 1
289 }
290
291 exitcode=0
292 if as_func_success; then
293   :
294 else
295   exitcode=1
296   echo as_func_success failed.
297 fi
298
299 if as_func_failure; then
300   exitcode=1
301   echo as_func_failure succeeded.
302 fi
303
304 if as_func_ret_success; then
305   :
306 else
307   exitcode=1
308   echo as_func_ret_success failed.
309 fi
310
311 if as_func_ret_failure; then
312   exitcode=1
313   echo as_func_ret_failure succeeded.
314 fi
315
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
317   :
318 else
319   exitcode=1
320   echo positional parameters were not saved.
321 fi
322
323 test $exitcode = 0) || { (exit 1); exit 1; }
324
325 (
326   as_lineno_1=$LINENO
327   as_lineno_2=$LINENO
328   test "x$as_lineno_1" != "x$as_lineno_2" &&
329   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331 _ASEOF
332 }; then
333   break
334 fi
335
336 fi
337
338       done
339
340       if test "x$CONFIG_SHELL" != x; then
341   for as_var in BASH_ENV ENV
342         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343         done
344         export CONFIG_SHELL
345         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346 fi
347
348
349     if test $as_have_required = no; then
350   echo This script requires a shell more modern than all the
351       echo shells that I found on your system.  Please install a
352       echo modern shell, or manually run the script under such a
353       echo shell if you do have one.
354       { (exit 1); exit 1; }
355 fi
356
357
358 fi
359
360 fi
361
362
363
364 (eval "as_func_return () {
365   (exit \$1)
366 }
367 as_func_success () {
368   as_func_return 0
369 }
370 as_func_failure () {
371   as_func_return 1
372 }
373 as_func_ret_success () {
374   return 0
375 }
376 as_func_ret_failure () {
377   return 1
378 }
379
380 exitcode=0
381 if as_func_success; then
382   :
383 else
384   exitcode=1
385   echo as_func_success failed.
386 fi
387
388 if as_func_failure; then
389   exitcode=1
390   echo as_func_failure succeeded.
391 fi
392
393 if as_func_ret_success; then
394   :
395 else
396   exitcode=1
397   echo as_func_ret_success failed.
398 fi
399
400 if as_func_ret_failure; then
401   exitcode=1
402   echo as_func_ret_failure succeeded.
403 fi
404
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406   :
407 else
408   exitcode=1
409   echo positional parameters were not saved.
410 fi
411
412 test \$exitcode = 0") || {
413   echo No shell found that supports shell functions.
414   echo Please tell autoconf@gnu.org about your system,
415   echo including any error possibly output before this
416   echo message
417 }
418
419
420
421   as_lineno_1=$LINENO
422   as_lineno_2=$LINENO
423   test "x$as_lineno_1" != "x$as_lineno_2" &&
424   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
425
426   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427   # uniformly replaced by the line number.  The first 'sed' inserts a
428   # line-number line after each line using $LINENO; the second 'sed'
429   # does the real work.  The second script uses 'N' to pair each
430   # line-number line with the line containing $LINENO, and appends
431   # trailing '-' during substitution so that $LINENO is not a special
432   # case at line end.
433   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434   # scripts with optimization help from Paolo Bonzini.  Blame Lee
435   # E. McMahon (1931-1989) for sed's syntax.  :-)
436   sed -n '
437     p
438     /[$]LINENO/=
439   ' <$as_myself |
440     sed '
441       s/[$]LINENO.*/&-/
442       t lineno
443       b
444       :lineno
445       N
446       :loop
447       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
448       t loop
449       s/-\n.*//
450     ' >$as_me.lineno &&
451   chmod +x "$as_me.lineno" ||
452     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453    { (exit 1); exit 1; }; }
454
455   # Don't try to exec as it changes $[0], causing all sort of problems
456   # (the dirname of $[0] is not the place where we might find the
457   # original and so on.  Autoconf is especially sensitive to this).
458   . "./$as_me.lineno"
459   # Exit status is that of the last command.
460   exit
461 }
462
463
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465   as_dirname=dirname
466 else
467   as_dirname=false
468 fi
469
470 ECHO_C= ECHO_N= ECHO_T=
471 case `echo -n x` in
472 -n*)
473   case `echo 'x\c'` in
474   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
475   *)   ECHO_C='\c';;
476   esac;;
477 *)
478   ECHO_N='-n';;
479 esac
480
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482    test "X`expr 00001 : '.*\(...\)'`" = X001; then
483   as_expr=expr
484 else
485   as_expr=false
486 fi
487
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490   rm -f conf$$.dir/conf$$.file
491 else
492   rm -f conf$$.dir
493   mkdir conf$$.dir
494 fi
495 echo >conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
497   as_ln_s='ln -s'
498   # ... but there are two gotchas:
499   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501   # In both cases, we have to default to `cp -p'.
502   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
503     as_ln_s='cp -p'
504 elif ln conf$$.file conf$$ 2>/dev/null; then
505   as_ln_s=ln
506 else
507   as_ln_s='cp -p'
508 fi
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
511
512 if mkdir -p . 2>/dev/null; then
513   as_mkdir_p=:
514 else
515   test -d ./-p && rmdir ./-p
516   as_mkdir_p=false
517 fi
518
519 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
522 #! /bin/sh
523 exit 0
524 _ASEOF
525 chmod +x conf$$.file
526 if test -x conf$$.file >/dev/null 2>&1; then
527   as_executable_p="test -x"
528 else
529   as_executable_p=:
530 fi
531 rm -f conf$$.file
532
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539
540
541
542 # Check that we are running under the correct shell.
543 SHELL=${CONFIG_SHELL-/bin/sh}
544
545 case X$ECHO in
546 X*--fallback-echo)
547   # Remove one level of quotation (which was required for Make).
548   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
549   ;;
550 esac
551
552 echo=${ECHO-echo}
553 if test "X$1" = X--no-reexec; then
554   # Discard the --no-reexec flag, and continue.
555   shift
556 elif test "X$1" = X--fallback-echo; then
557   # Avoid inline document here, it may be left over
558   :
559 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
560   # Yippee, $echo works!
561   :
562 else
563   # Restart under the correct shell.
564   exec $SHELL "$0" --no-reexec ${1+"$@"}
565 fi
566
567 if test "X$1" = X--fallback-echo; then
568   # used as fallback echo
569   shift
570   cat <<EOF
571 $*
572 EOF
573   exit 0
574 fi
575
576 # The HP-UX ksh and POSIX shell print the target directory to stdout
577 # if CDPATH is set.
578 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
579
580 if test -z "$ECHO"; then
581 if test "X${echo_test_string+set}" != Xset; then
582 # find a string as large as possible, as long as the shell can cope with it
583   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
584     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
585     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
586        echo_test_string=`eval $cmd` &&
587        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
588     then
589       break
590     fi
591   done
592 fi
593
594 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
595    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
596    test "X$echo_testing_string" = "X$echo_test_string"; then
597   :
598 else
599   # The Solaris, AIX, and Digital Unix default echo programs unquote
600   # backslashes.  This makes it impossible to quote backslashes using
601   #   echo "$something" | sed 's/\\/\\\\/g'
602   #
603   # So, first we look for a working echo in the user's PATH.
604
605   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
606   for dir in $PATH /usr/ucb; do
607     IFS="$lt_save_ifs"
608     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
609        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
610        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
611        test "X$echo_testing_string" = "X$echo_test_string"; then
612       echo="$dir/echo"
613       break
614     fi
615   done
616   IFS="$lt_save_ifs"
617
618   if test "X$echo" = Xecho; then
619     # We didn't find a better echo, so look for alternatives.
620     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
621        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
622        test "X$echo_testing_string" = "X$echo_test_string"; then
623       # This shell has a builtin print -r that does the trick.
624       echo='print -r'
625     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
626          test "X$CONFIG_SHELL" != X/bin/ksh; then
627       # If we have ksh, try running configure again with it.
628       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
629       export ORIGINAL_CONFIG_SHELL
630       CONFIG_SHELL=/bin/ksh
631       export CONFIG_SHELL
632       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
633     else
634       # Try using printf.
635       echo='printf %s\n'
636       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
637          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
638          test "X$echo_testing_string" = "X$echo_test_string"; then
639         # Cool, printf works
640         :
641       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642            test "X$echo_testing_string" = 'X\t' &&
643            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644            test "X$echo_testing_string" = "X$echo_test_string"; then
645         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
646         export CONFIG_SHELL
647         SHELL="$CONFIG_SHELL"
648         export SHELL
649         echo="$CONFIG_SHELL $0 --fallback-echo"
650       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
651            test "X$echo_testing_string" = 'X\t' &&
652            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
653            test "X$echo_testing_string" = "X$echo_test_string"; then
654         echo="$CONFIG_SHELL $0 --fallback-echo"
655       else
656         # maybe with a smaller string...
657         prev=:
658
659         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
660           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
661           then
662             break
663           fi
664           prev="$cmd"
665         done
666
667         if test "$prev" != 'sed 50q "$0"'; then
668           echo_test_string=`eval $prev`
669           export echo_test_string
670           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
671         else
672           # Oops.  We lost completely, so just stick with echo.
673           echo=echo
674         fi
675       fi
676     fi
677   fi
678 fi
679 fi
680
681 # Copy echo and quote the copy suitably for passing to libtool from
682 # the Makefile, instead of quoting the original, which is used later.
683 ECHO=$echo
684 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
685    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
686 fi
687
688
689
690
691 tagnames=${tagnames+${tagnames},}CXX
692
693 tagnames=${tagnames+${tagnames},}F77
694
695 exec 7<&0 </dev/null 6>&1
696
697 # Name of the host.
698 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
699 # so uname gets run too.
700 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
701
702 #
703 # Initializations.
704 #
705 ac_default_prefix=/usr/local
706 ac_clean_files=
707 ac_config_libobj_dir=.
708 LIBOBJS=
709 cross_compiling=no
710 subdirs=
711 MFLAGS=
712 MAKEFLAGS=
713 SHELL=${CONFIG_SHELL-/bin/sh}
714
715 # Identity of this package.
716 PACKAGE_NAME='llvm'
717 PACKAGE_TARNAME='-llvm-'
718 PACKAGE_VERSION='2.3svn'
719 PACKAGE_STRING='llvm 2.3svn'
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 OCAMLDOC
890 INSTALL_LTDL_TRUE
891 INSTALL_LTDL_FALSE
892 CONVENIENCE_LTDL_TRUE
893 CONVENIENCE_LTDL_FALSE
894 LIBADD_DL
895 ECHO
896 AR
897 STRIP
898 CXXCPP
899 F77
900 FFLAGS
901 ac_ct_F77
902 LIBTOOL
903 LLVMGCC
904 LLVMGXX
905 USE_UDIS86
906 HAVE_PTHREAD
907 HUGE_VAL_SANITY
908 ALLOCA
909 MMAP_FILE
910 LLVMCC1
911 LLVMCC1PLUS
912 LLVMGCCDIR
913 LLVMGCCLIBEXEC
914 LLVMGCC_VERSION
915 LLVMGCC_MAJVERS
916 LLVMGCC_LANGS
917 SHLIBEXT
918 LLVM_PREFIX
919 LLVM_BINDIR
920 LLVM_LIBDIR
921 LLVM_DATADIR
922 LLVM_DOCSDIR
923 LLVM_ETCDIR
924 LLVM_INCLUDEDIR
925 LLVM_INFODIR
926 LLVM_MANDIR
927 LLVM_CONFIGTIME
928 BINDINGS_TO_BUILD
929 ALL_BINDINGS
930 OCAML_LIBDIR
931 LIBOBJS
932 LTLIBOBJS'
933 ac_subst_files=''
934       ac_precious_vars='build_alias
935 host_alias
936 target_alias
937 CC
938 CFLAGS
939 LDFLAGS
940 CPPFLAGS
941 CPP
942 CXX
943 CXXFLAGS
944 CCC
945 YACC
946 YFLAGS
947 CXXCPP
948 F77
949 FFLAGS'
950 ac_subdirs_all='projects/sample
951 projects/privbracket
952 projects/llvm-stacker
953 projects/llvm-test
954 projects/llvm-reopt
955 projects/llvm-gcc
956 projects/llvm-java
957 projects/llvm-tv
958 projects/llvm-poolalloc
959 projects/poolalloc
960 projects/llvm-kernel'
961
962 # Initialize some variables set by options.
963 ac_init_help=
964 ac_init_version=false
965 # The variables have the same names as the options, with
966 # dashes changed to underlines.
967 cache_file=/dev/null
968 exec_prefix=NONE
969 no_create=
970 no_recursion=
971 prefix=NONE
972 program_prefix=NONE
973 program_suffix=NONE
974 program_transform_name=s,x,x,
975 silent=
976 site=
977 srcdir=
978 verbose=
979 x_includes=NONE
980 x_libraries=NONE
981
982 # Installation directory options.
983 # These are left unexpanded so users can "make install exec_prefix=/foo"
984 # and all the variables that are supposed to be based on exec_prefix
985 # by default will actually change.
986 # Use braces instead of parens because sh, perl, etc. also accept them.
987 # (The list follows the same order as the GNU Coding Standards.)
988 bindir='${exec_prefix}/bin'
989 sbindir='${exec_prefix}/sbin'
990 libexecdir='${exec_prefix}/libexec'
991 datarootdir='${prefix}/share'
992 datadir='${datarootdir}'
993 sysconfdir='${prefix}/etc'
994 sharedstatedir='${prefix}/com'
995 localstatedir='${prefix}/var'
996 includedir='${prefix}/include'
997 oldincludedir='/usr/include'
998 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
999 infodir='${datarootdir}/info'
1000 htmldir='${docdir}'
1001 dvidir='${docdir}'
1002 pdfdir='${docdir}'
1003 psdir='${docdir}'
1004 libdir='${exec_prefix}/lib'
1005 localedir='${datarootdir}/locale'
1006 mandir='${datarootdir}/man'
1007
1008 ac_prev=
1009 ac_dashdash=
1010 for ac_option
1011 do
1012   # If the previous option needs an argument, assign it.
1013   if test -n "$ac_prev"; then
1014     eval $ac_prev=\$ac_option
1015     ac_prev=
1016     continue
1017   fi
1018
1019   case $ac_option in
1020   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1021   *)    ac_optarg=yes ;;
1022   esac
1023
1024   # Accept the important Cygnus configure options, so we can diagnose typos.
1025
1026   case $ac_dashdash$ac_option in
1027   --)
1028     ac_dashdash=yes ;;
1029
1030   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1031     ac_prev=bindir ;;
1032   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1033     bindir=$ac_optarg ;;
1034
1035   -build | --build | --buil | --bui | --bu)
1036     ac_prev=build_alias ;;
1037   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1038     build_alias=$ac_optarg ;;
1039
1040   -cache-file | --cache-file | --cache-fil | --cache-fi \
1041   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1042     ac_prev=cache_file ;;
1043   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1044   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1045     cache_file=$ac_optarg ;;
1046
1047   --config-cache | -C)
1048     cache_file=config.cache ;;
1049
1050   -datadir | --datadir | --datadi | --datad)
1051     ac_prev=datadir ;;
1052   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1053     datadir=$ac_optarg ;;
1054
1055   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1056   | --dataroo | --dataro | --datar)
1057     ac_prev=datarootdir ;;
1058   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1059   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1060     datarootdir=$ac_optarg ;;
1061
1062   -disable-* | --disable-*)
1063     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1064     # Reject names that are not valid shell variable names.
1065     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1066       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1067    { (exit 1); exit 1; }; }
1068     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1069     eval enable_$ac_feature=no ;;
1070
1071   -docdir | --docdir | --docdi | --doc | --do)
1072     ac_prev=docdir ;;
1073   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1074     docdir=$ac_optarg ;;
1075
1076   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1077     ac_prev=dvidir ;;
1078   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1079     dvidir=$ac_optarg ;;
1080
1081   -enable-* | --enable-*)
1082     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1083     # Reject names that are not valid shell variable names.
1084     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1085       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1086    { (exit 1); exit 1; }; }
1087     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1088     eval enable_$ac_feature=\$ac_optarg ;;
1089
1090   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1091   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1092   | --exec | --exe | --ex)
1093     ac_prev=exec_prefix ;;
1094   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1095   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1096   | --exec=* | --exe=* | --ex=*)
1097     exec_prefix=$ac_optarg ;;
1098
1099   -gas | --gas | --ga | --g)
1100     # Obsolete; use --with-gas.
1101     with_gas=yes ;;
1102
1103   -help | --help | --hel | --he | -h)
1104     ac_init_help=long ;;
1105   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1106     ac_init_help=recursive ;;
1107   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1108     ac_init_help=short ;;
1109
1110   -host | --host | --hos | --ho)
1111     ac_prev=host_alias ;;
1112   -host=* | --host=* | --hos=* | --ho=*)
1113     host_alias=$ac_optarg ;;
1114
1115   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1116     ac_prev=htmldir ;;
1117   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1118   | --ht=*)
1119     htmldir=$ac_optarg ;;
1120
1121   -includedir | --includedir | --includedi | --included | --include \
1122   | --includ | --inclu | --incl | --inc)
1123     ac_prev=includedir ;;
1124   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1125   | --includ=* | --inclu=* | --incl=* | --inc=*)
1126     includedir=$ac_optarg ;;
1127
1128   -infodir | --infodir | --infodi | --infod | --info | --inf)
1129     ac_prev=infodir ;;
1130   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1131     infodir=$ac_optarg ;;
1132
1133   -libdir | --libdir | --libdi | --libd)
1134     ac_prev=libdir ;;
1135   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1136     libdir=$ac_optarg ;;
1137
1138   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1139   | --libexe | --libex | --libe)
1140     ac_prev=libexecdir ;;
1141   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1142   | --libexe=* | --libex=* | --libe=*)
1143     libexecdir=$ac_optarg ;;
1144
1145   -localedir | --localedir | --localedi | --localed | --locale)
1146     ac_prev=localedir ;;
1147   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1148     localedir=$ac_optarg ;;
1149
1150   -localstatedir | --localstatedir | --localstatedi | --localstated \
1151   | --localstate | --localstat | --localsta | --localst | --locals)
1152     ac_prev=localstatedir ;;
1153   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1154   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1155     localstatedir=$ac_optarg ;;
1156
1157   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1158     ac_prev=mandir ;;
1159   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1160     mandir=$ac_optarg ;;
1161
1162   -nfp | --nfp | --nf)
1163     # Obsolete; use --without-fp.
1164     with_fp=no ;;
1165
1166   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1167   | --no-cr | --no-c | -n)
1168     no_create=yes ;;
1169
1170   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1171   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1172     no_recursion=yes ;;
1173
1174   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1175   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1176   | --oldin | --oldi | --old | --ol | --o)
1177     ac_prev=oldincludedir ;;
1178   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1179   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1180   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1181     oldincludedir=$ac_optarg ;;
1182
1183   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1184     ac_prev=prefix ;;
1185   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1186     prefix=$ac_optarg ;;
1187
1188   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1189   | --program-pre | --program-pr | --program-p)
1190     ac_prev=program_prefix ;;
1191   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1192   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1193     program_prefix=$ac_optarg ;;
1194
1195   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1196   | --program-suf | --program-su | --program-s)
1197     ac_prev=program_suffix ;;
1198   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1199   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1200     program_suffix=$ac_optarg ;;
1201
1202   -program-transform-name | --program-transform-name \
1203   | --program-transform-nam | --program-transform-na \
1204   | --program-transform-n | --program-transform- \
1205   | --program-transform | --program-transfor \
1206   | --program-transfo | --program-transf \
1207   | --program-trans | --program-tran \
1208   | --progr-tra | --program-tr | --program-t)
1209     ac_prev=program_transform_name ;;
1210   -program-transform-name=* | --program-transform-name=* \
1211   | --program-transform-nam=* | --program-transform-na=* \
1212   | --program-transform-n=* | --program-transform-=* \
1213   | --program-transform=* | --program-transfor=* \
1214   | --program-transfo=* | --program-transf=* \
1215   | --program-trans=* | --program-tran=* \
1216   | --progr-tra=* | --program-tr=* | --program-t=*)
1217     program_transform_name=$ac_optarg ;;
1218
1219   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1220     ac_prev=pdfdir ;;
1221   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1222     pdfdir=$ac_optarg ;;
1223
1224   -psdir | --psdir | --psdi | --psd | --ps)
1225     ac_prev=psdir ;;
1226   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1227     psdir=$ac_optarg ;;
1228
1229   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1230   | -silent | --silent | --silen | --sile | --sil)
1231     silent=yes ;;
1232
1233   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1234     ac_prev=sbindir ;;
1235   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1236   | --sbi=* | --sb=*)
1237     sbindir=$ac_optarg ;;
1238
1239   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1240   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1241   | --sharedst | --shareds | --shared | --share | --shar \
1242   | --sha | --sh)
1243     ac_prev=sharedstatedir ;;
1244   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1245   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1246   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1247   | --sha=* | --sh=*)
1248     sharedstatedir=$ac_optarg ;;
1249
1250   -site | --site | --sit)
1251     ac_prev=site ;;
1252   -site=* | --site=* | --sit=*)
1253     site=$ac_optarg ;;
1254
1255   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1256     ac_prev=srcdir ;;
1257   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1258     srcdir=$ac_optarg ;;
1259
1260   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1261   | --syscon | --sysco | --sysc | --sys | --sy)
1262     ac_prev=sysconfdir ;;
1263   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1264   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1265     sysconfdir=$ac_optarg ;;
1266
1267   -target | --target | --targe | --targ | --tar | --ta | --t)
1268     ac_prev=target_alias ;;
1269   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1270     target_alias=$ac_optarg ;;
1271
1272   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1273     verbose=yes ;;
1274
1275   -version | --version | --versio | --versi | --vers | -V)
1276     ac_init_version=: ;;
1277
1278   -with-* | --with-*)
1279     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1280     # Reject names that are not valid shell variable names.
1281     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1282       { echo "$as_me: error: invalid package name: $ac_package" >&2
1283    { (exit 1); exit 1; }; }
1284     ac_package=`echo $ac_package| sed 's/-/_/g'`
1285     eval with_$ac_package=\$ac_optarg ;;
1286
1287   -without-* | --without-*)
1288     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1289     # Reject names that are not valid shell variable names.
1290     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1291       { echo "$as_me: error: invalid package name: $ac_package" >&2
1292    { (exit 1); exit 1; }; }
1293     ac_package=`echo $ac_package | sed 's/-/_/g'`
1294     eval with_$ac_package=no ;;
1295
1296   --x)
1297     # Obsolete; use --with-x.
1298     with_x=yes ;;
1299
1300   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1301   | --x-incl | --x-inc | --x-in | --x-i)
1302     ac_prev=x_includes ;;
1303   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1304   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1305     x_includes=$ac_optarg ;;
1306
1307   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1308   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1309     ac_prev=x_libraries ;;
1310   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1311   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1312     x_libraries=$ac_optarg ;;
1313
1314   -*) { echo "$as_me: error: unrecognized option: $ac_option
1315 Try \`$0 --help' for more information." >&2
1316    { (exit 1); exit 1; }; }
1317     ;;
1318
1319   *=*)
1320     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1321     # Reject names that are not valid shell variable names.
1322     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1323       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1324    { (exit 1); exit 1; }; }
1325     eval $ac_envvar=\$ac_optarg
1326     export $ac_envvar ;;
1327
1328   *)
1329     # FIXME: should be removed in autoconf 3.0.
1330     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1331     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1332       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1333     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1334     ;;
1335
1336   esac
1337 done
1338
1339 if test -n "$ac_prev"; then
1340   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1341   { echo "$as_me: error: missing argument to $ac_option" >&2
1342    { (exit 1); exit 1; }; }
1343 fi
1344
1345 # Be sure to have absolute directory names.
1346 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1347                 datadir sysconfdir sharedstatedir localstatedir includedir \
1348                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1349                 libdir localedir mandir
1350 do
1351   eval ac_val=\$$ac_var
1352   case $ac_val in
1353     [\\/$]* | ?:[\\/]* )  continue;;
1354     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1355   esac
1356   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1357    { (exit 1); exit 1; }; }
1358 done
1359
1360 # There might be people who depend on the old broken behavior: `$host'
1361 # used to hold the argument of --host etc.
1362 # FIXME: To remove some day.
1363 build=$build_alias
1364 host=$host_alias
1365 target=$target_alias
1366
1367 # FIXME: To remove some day.
1368 if test "x$host_alias" != x; then
1369   if test "x$build_alias" = x; then
1370     cross_compiling=maybe
1371     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1372     If a cross compiler is detected then cross compile mode will be used." >&2
1373   elif test "x$build_alias" != "x$host_alias"; then
1374     cross_compiling=yes
1375   fi
1376 fi
1377
1378 ac_tool_prefix=
1379 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1380
1381 test "$silent" = yes && exec 6>/dev/null
1382
1383
1384 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1385 ac_ls_di=`ls -di .` &&
1386 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1387   { echo "$as_me: error: Working directory cannot be determined" >&2
1388    { (exit 1); exit 1; }; }
1389 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1390   { echo "$as_me: error: pwd does not report name of working directory" >&2
1391    { (exit 1); exit 1; }; }
1392
1393
1394 # Find the source files, if location was not specified.
1395 if test -z "$srcdir"; then
1396   ac_srcdir_defaulted=yes
1397   # Try the directory containing this script, then the parent directory.
1398   ac_confdir=`$as_dirname -- "$0" ||
1399 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1400          X"$0" : 'X\(//\)[^/]' \| \
1401          X"$0" : 'X\(//\)$' \| \
1402          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1403 echo X"$0" |
1404     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1405             s//\1/
1406             q
1407           }
1408           /^X\(\/\/\)[^/].*/{
1409             s//\1/
1410             q
1411           }
1412           /^X\(\/\/\)$/{
1413             s//\1/
1414             q
1415           }
1416           /^X\(\/\).*/{
1417             s//\1/
1418             q
1419           }
1420           s/.*/./; q'`
1421   srcdir=$ac_confdir
1422   if test ! -r "$srcdir/$ac_unique_file"; then
1423     srcdir=..
1424   fi
1425 else
1426   ac_srcdir_defaulted=no
1427 fi
1428 if test ! -r "$srcdir/$ac_unique_file"; then
1429   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1430   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1431    { (exit 1); exit 1; }; }
1432 fi
1433 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1434 ac_abs_confdir=`(
1435         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1436    { (exit 1); exit 1; }; }
1437         pwd)`
1438 # When building in place, set srcdir=.
1439 if test "$ac_abs_confdir" = "$ac_pwd"; then
1440   srcdir=.
1441 fi
1442 # Remove unnecessary trailing slashes from srcdir.
1443 # Double slashes in file names in object file debugging info
1444 # mess up M-x gdb in Emacs.
1445 case $srcdir in
1446 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1447 esac
1448 for ac_var in $ac_precious_vars; do
1449   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1450   eval ac_env_${ac_var}_value=\$${ac_var}
1451   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1452   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1453 done
1454
1455 #
1456 # Report the --help message.
1457 #
1458 if test "$ac_init_help" = "long"; then
1459   # Omit some internal or obsolete options to make the list less imposing.
1460   # This message is too long to be a string in the A/UX 3.1 sh.
1461   cat <<_ACEOF
1462 \`configure' configures llvm 2.3svn to adapt to many kinds of systems.
1463
1464 Usage: $0 [OPTION]... [VAR=VALUE]...
1465
1466 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1467 VAR=VALUE.  See below for descriptions of some of the useful variables.
1468
1469 Defaults for the options are specified in brackets.
1470
1471 Configuration:
1472   -h, --help              display this help and exit
1473       --help=short        display options specific to this package
1474       --help=recursive    display the short help of all the included packages
1475   -V, --version           display version information and exit
1476   -q, --quiet, --silent   do not print \`checking...' messages
1477       --cache-file=FILE   cache test results in FILE [disabled]
1478   -C, --config-cache      alias for \`--cache-file=config.cache'
1479   -n, --no-create         do not create output files
1480       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1481
1482 Installation directories:
1483   --prefix=PREFIX         install architecture-independent files in PREFIX
1484                           [$ac_default_prefix]
1485   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1486                           [PREFIX]
1487
1488 By default, \`make install' will install all the files in
1489 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1490 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1491 for instance \`--prefix=\$HOME'.
1492
1493 For better control, use the options below.
1494
1495 Fine tuning of the installation directories:
1496   --bindir=DIR           user executables [EPREFIX/bin]
1497   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1498   --libexecdir=DIR       program executables [EPREFIX/libexec]
1499   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1500   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1501   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1502   --libdir=DIR           object code libraries [EPREFIX/lib]
1503   --includedir=DIR       C header files [PREFIX/include]
1504   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1505   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1506   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1507   --infodir=DIR          info documentation [DATAROOTDIR/info]
1508   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1509   --mandir=DIR           man documentation [DATAROOTDIR/man]
1510   --docdir=DIR           documentation root [DATAROOTDIR/doc/-llvm-]
1511   --htmldir=DIR          html documentation [DOCDIR]
1512   --dvidir=DIR           dvi documentation [DOCDIR]
1513   --pdfdir=DIR           pdf documentation [DOCDIR]
1514   --psdir=DIR            ps documentation [DOCDIR]
1515 _ACEOF
1516
1517   cat <<\_ACEOF
1518
1519 System types:
1520   --build=BUILD     configure for building on BUILD [guessed]
1521   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1522   --target=TARGET   configure for building compilers for TARGET [HOST]
1523 _ACEOF
1524 fi
1525
1526 if test -n "$ac_init_help"; then
1527   case $ac_init_help in
1528      short | recursive ) echo "Configuration of llvm 2.3svn:";;
1529    esac
1530   cat <<\_ACEOF
1531
1532 Optional Features:
1533   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1534   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1535   --enable-optimized
1536   --enable-assertions
1537   --enable-expensive-checks
1538
1539   --enable-debug-runtime
1540   --enable-jit            Enable Just In Time Compiling (default is YES)
1541   --enable-doxygen        Build doxygen documentation (default is NO)
1542   --enable-threads        Use threads if available (default is YES)
1543   --enable-pic            Build LLVM with Position Independent Code (default
1544                           is NO)
1545   --enable-targets        Build specific host targets:
1546                           all,host-only,{target-name} (default=all)
1547   --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1548                           %a (default is YES)
1549   --enable-bindings       Build specific language bindings:
1550                           all,auto,none,{binding-name} (default=auto)
1551   --enable-ltdl-install   install libltdl
1552   --enable-shared[=PKGS]  build shared libraries
1553                           [default=yes]
1554   --enable-static[=PKGS]  build static libraries
1555                           [default=yes]
1556   --enable-fast-install[=PKGS]
1557                           optimize for fast installation
1558                           [default=yes]
1559   --disable-libtool-lock  avoid locking (might break parallel builds)
1560
1561 Optional Packages:
1562   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1563   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1564   --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1565                           searches PATH)
1566   --with-llvmgcc          Specify location of llvm-gcc driver (default
1567                           searches PATH)
1568   --with-llvmgxx          Specify location of llvm-g++ driver (default
1569                           searches PATH)
1570   --with-extra-options    Specify addtional options to compile LLVM with
1571   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1572                           is stdlib)
1573   --with-tclinclude       directory where tcl headers are
1574   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1575   --with-pic              try to use only PIC/non-PIC objects [default=use
1576                           both]
1577   --with-tags[=TAGS]      include additional configurations [automatic]
1578   --with-udis86=<path>    Use udis86 external x86 disassembler library
1579
1580 Some influential environment variables:
1581   CC          C compiler command
1582   CFLAGS      C compiler flags
1583   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1584               nonstandard directory <lib dir>
1585   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1586               you have headers in a nonstandard directory <include dir>
1587   CPP         C preprocessor
1588   CXX         C++ compiler command
1589   CXXFLAGS    C++ compiler flags
1590   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1591               the first program found out of: `bison -y', `byacc', `yacc'.
1592   YFLAGS      The list of arguments that will be passed by default to $YACC.
1593               This script will default YFLAGS to the empty string to avoid a
1594               default value of `-d' given by some make applications.
1595   CXXCPP      C++ preprocessor
1596   F77         Fortran 77 compiler command
1597   FFLAGS      Fortran 77 compiler flags
1598
1599 Use these variables to override the choices made by `configure' or to help
1600 it to find libraries and programs with nonstandard names/locations.
1601
1602 Report bugs to <llvmbugs@cs.uiuc.edu>.
1603 _ACEOF
1604 ac_status=$?
1605 fi
1606
1607 if test "$ac_init_help" = "recursive"; then
1608   # If there are subdirs, report their specific --help.
1609   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1610     test -d "$ac_dir" || continue
1611     ac_builddir=.
1612
1613 case "$ac_dir" in
1614 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1615 *)
1616   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1617   # A ".." for each directory in $ac_dir_suffix.
1618   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1619   case $ac_top_builddir_sub in
1620   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1621   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1622   esac ;;
1623 esac
1624 ac_abs_top_builddir=$ac_pwd
1625 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1626 # for backward compatibility:
1627 ac_top_builddir=$ac_top_build_prefix
1628
1629 case $srcdir in
1630   .)  # We are building in place.
1631     ac_srcdir=.
1632     ac_top_srcdir=$ac_top_builddir_sub
1633     ac_abs_top_srcdir=$ac_pwd ;;
1634   [\\/]* | ?:[\\/]* )  # Absolute name.
1635     ac_srcdir=$srcdir$ac_dir_suffix;
1636     ac_top_srcdir=$srcdir
1637     ac_abs_top_srcdir=$srcdir ;;
1638   *) # Relative name.
1639     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1640     ac_top_srcdir=$ac_top_build_prefix$srcdir
1641     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1642 esac
1643 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1644
1645     cd "$ac_dir" || { ac_status=$?; continue; }
1646     # Check for guested configure.
1647     if test -f "$ac_srcdir/configure.gnu"; then
1648       echo &&
1649       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1650     elif test -f "$ac_srcdir/configure"; then
1651       echo &&
1652       $SHELL "$ac_srcdir/configure" --help=recursive
1653     else
1654       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1655     fi || ac_status=$?
1656     cd "$ac_pwd" || { ac_status=$?; break; }
1657   done
1658 fi
1659
1660 test -n "$ac_init_help" && exit $ac_status
1661 if $ac_init_version; then
1662   cat <<\_ACEOF
1663 llvm configure 2.3svn
1664 generated by GNU Autoconf 2.60
1665
1666 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1667 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1668 This configure script is free software; the Free Software Foundation
1669 gives unlimited permission to copy, distribute and modify it.
1670
1671 Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
1672 _ACEOF
1673   exit
1674 fi
1675 cat >config.log <<_ACEOF
1676 This file contains any messages produced by compilers while
1677 running configure, to aid debugging if configure makes a mistake.
1678
1679 It was created by llvm $as_me 2.3svn, which was
1680 generated by GNU Autoconf 2.60.  Invocation command line was
1681
1682   $ $0 $@
1683
1684 _ACEOF
1685 exec 5>>config.log
1686 {
1687 cat <<_ASUNAME
1688 ## --------- ##
1689 ## Platform. ##
1690 ## --------- ##
1691
1692 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1693 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1694 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1695 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1696 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1697
1698 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1699 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1700
1701 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1702 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1703 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1704 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1705 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1706 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1707 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1708
1709 _ASUNAME
1710
1711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1712 for as_dir in $PATH
1713 do
1714   IFS=$as_save_IFS
1715   test -z "$as_dir" && as_dir=.
1716   echo "PATH: $as_dir"
1717 done
1718 IFS=$as_save_IFS
1719
1720 } >&5
1721
1722 cat >&5 <<_ACEOF
1723
1724
1725 ## ----------- ##
1726 ## Core tests. ##
1727 ## ----------- ##
1728
1729 _ACEOF
1730
1731
1732 # Keep a trace of the command line.
1733 # Strip out --no-create and --no-recursion so they do not pile up.
1734 # Strip out --silent because we don't want to record it for future runs.
1735 # Also quote any args containing shell meta-characters.
1736 # Make two passes to allow for proper duplicate-argument suppression.
1737 ac_configure_args=
1738 ac_configure_args0=
1739 ac_configure_args1=
1740 ac_must_keep_next=false
1741 for ac_pass in 1 2
1742 do
1743   for ac_arg
1744   do
1745     case $ac_arg in
1746     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1747     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1748     | -silent | --silent | --silen | --sile | --sil)
1749       continue ;;
1750     *\'*)
1751       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1752     esac
1753     case $ac_pass in
1754     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1755     2)
1756       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1757       if test $ac_must_keep_next = true; then
1758         ac_must_keep_next=false # Got value, back to normal.
1759       else
1760         case $ac_arg in
1761           *=* | --config-cache | -C | -disable-* | --disable-* \
1762           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1763           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1764           | -with-* | --with-* | -without-* | --without-* | --x)
1765             case "$ac_configure_args0 " in
1766               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1767             esac
1768             ;;
1769           -* ) ac_must_keep_next=true ;;
1770         esac
1771       fi
1772       ac_configure_args="$ac_configure_args '$ac_arg'"
1773       ;;
1774     esac
1775   done
1776 done
1777 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1778 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1779
1780 # When interrupted or exit'd, cleanup temporary files, and complete
1781 # config.log.  We remove comments because anyway the quotes in there
1782 # would cause problems or look ugly.
1783 # WARNING: Use '\'' to represent an apostrophe within the trap.
1784 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1785 trap 'exit_status=$?
1786   # Save into config.log some information that might help in debugging.
1787   {
1788     echo
1789
1790     cat <<\_ASBOX
1791 ## ---------------- ##
1792 ## Cache variables. ##
1793 ## ---------------- ##
1794 _ASBOX
1795     echo
1796     # The following way of writing the cache mishandles newlines in values,
1797 (
1798   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1799     eval ac_val=\$$ac_var
1800     case $ac_val in #(
1801     *${as_nl}*)
1802       case $ac_var in #(
1803       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1804 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1805       esac
1806       case $ac_var in #(
1807       _ | IFS | as_nl) ;; #(
1808       *) $as_unset $ac_var ;;
1809       esac ;;
1810     esac
1811   done
1812   (set) 2>&1 |
1813     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1814     *${as_nl}ac_space=\ *)
1815       sed -n \
1816         "s/'\''/'\''\\\\'\'''\''/g;
1817           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1818       ;; #(
1819     *)
1820       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1821       ;;
1822     esac |
1823     sort
1824 )
1825     echo
1826
1827     cat <<\_ASBOX
1828 ## ----------------- ##
1829 ## Output variables. ##
1830 ## ----------------- ##
1831 _ASBOX
1832     echo
1833     for ac_var in $ac_subst_vars
1834     do
1835       eval ac_val=\$$ac_var
1836       case $ac_val in
1837       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1838       esac
1839       echo "$ac_var='\''$ac_val'\''"
1840     done | sort
1841     echo
1842
1843     if test -n "$ac_subst_files"; then
1844       cat <<\_ASBOX
1845 ## ------------------- ##
1846 ## File substitutions. ##
1847 ## ------------------- ##
1848 _ASBOX
1849       echo
1850       for ac_var in $ac_subst_files
1851       do
1852         eval ac_val=\$$ac_var
1853         case $ac_val in
1854         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1855         esac
1856         echo "$ac_var='\''$ac_val'\''"
1857       done | sort
1858       echo
1859     fi
1860
1861     if test -s confdefs.h; then
1862       cat <<\_ASBOX
1863 ## ----------- ##
1864 ## confdefs.h. ##
1865 ## ----------- ##
1866 _ASBOX
1867       echo
1868       cat confdefs.h
1869       echo
1870     fi
1871     test "$ac_signal" != 0 &&
1872       echo "$as_me: caught signal $ac_signal"
1873     echo "$as_me: exit $exit_status"
1874   } >&5
1875   rm -f core *.core core.conftest.* &&
1876     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1877     exit $exit_status
1878 ' 0
1879 for ac_signal in 1 2 13 15; do
1880   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1881 done
1882 ac_signal=0
1883
1884 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1885 rm -f -r conftest* confdefs.h
1886
1887 # Predefined preprocessor variables.
1888
1889 cat >>confdefs.h <<_ACEOF
1890 #define PACKAGE_NAME "$PACKAGE_NAME"
1891 _ACEOF
1892
1893
1894 cat >>confdefs.h <<_ACEOF
1895 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1896 _ACEOF
1897
1898
1899 cat >>confdefs.h <<_ACEOF
1900 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1901 _ACEOF
1902
1903
1904 cat >>confdefs.h <<_ACEOF
1905 #define PACKAGE_STRING "$PACKAGE_STRING"
1906 _ACEOF
1907
1908
1909 cat >>confdefs.h <<_ACEOF
1910 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1911 _ACEOF
1912
1913
1914 # Let the site file select an alternate cache file if it wants to.
1915 # Prefer explicitly selected file to automatically selected ones.
1916 if test -n "$CONFIG_SITE"; then
1917   set x "$CONFIG_SITE"
1918 elif test "x$prefix" != xNONE; then
1919   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1920 else
1921   set x "$ac_default_prefix/share/config.site" \
1922         "$ac_default_prefix/etc/config.site"
1923 fi
1924 shift
1925 for ac_site_file
1926 do
1927   if test -r "$ac_site_file"; then
1928     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1929 echo "$as_me: loading site script $ac_site_file" >&6;}
1930     sed 's/^/| /' "$ac_site_file" >&5
1931     . "$ac_site_file"
1932   fi
1933 done
1934
1935 if test -r "$cache_file"; then
1936   # Some versions of bash will fail to source /dev/null (special
1937   # files actually), so we avoid doing that.
1938   if test -f "$cache_file"; then
1939     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1940 echo "$as_me: loading cache $cache_file" >&6;}
1941     case $cache_file in
1942       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1943       *)                      . "./$cache_file";;
1944     esac
1945   fi
1946 else
1947   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1948 echo "$as_me: creating cache $cache_file" >&6;}
1949   >$cache_file
1950 fi
1951
1952 # Check that the precious variables saved in the cache have kept the same
1953 # value.
1954 ac_cache_corrupted=false
1955 for ac_var in $ac_precious_vars; do
1956   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1957   eval ac_new_set=\$ac_env_${ac_var}_set
1958   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1959   eval ac_new_val=\$ac_env_${ac_var}_value
1960   case $ac_old_set,$ac_new_set in
1961     set,)
1962       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1963 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1964       ac_cache_corrupted=: ;;
1965     ,set)
1966       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1967 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1968       ac_cache_corrupted=: ;;
1969     ,);;
1970     *)
1971       if test "x$ac_old_val" != "x$ac_new_val"; then
1972         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1973 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1974         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1975 echo "$as_me:   former value:  $ac_old_val" >&2;}
1976         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1977 echo "$as_me:   current value: $ac_new_val" >&2;}
1978         ac_cache_corrupted=:
1979       fi;;
1980   esac
1981   # Pass precious variables to config.status.
1982   if test "$ac_new_set" = set; then
1983     case $ac_new_val in
1984     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1985     *) ac_arg=$ac_var=$ac_new_val ;;
1986     esac
1987     case " $ac_configure_args " in
1988       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1989       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1990     esac
1991   fi
1992 done
1993 if $ac_cache_corrupted; then
1994   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1995 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1996   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1997 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1998    { (exit 1); exit 1; }; }
1999 fi
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
2025 ac_ext=c
2026 ac_cpp='$CPP $CPPFLAGS'
2027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2029 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2030
2031
2032
2033 LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
2034
2035
2036
2037
2038
2039
2040
2041 ac_aux_dir=
2042 for ac_dir in autoconf "$srcdir"/autoconf; do
2043   if test -f "$ac_dir/install-sh"; then
2044     ac_aux_dir=$ac_dir
2045     ac_install_sh="$ac_aux_dir/install-sh -c"
2046     break
2047   elif test -f "$ac_dir/install.sh"; then
2048     ac_aux_dir=$ac_dir
2049     ac_install_sh="$ac_aux_dir/install.sh -c"
2050     break
2051   elif test -f "$ac_dir/shtool"; then
2052     ac_aux_dir=$ac_dir
2053     ac_install_sh="$ac_aux_dir/shtool install -c"
2054     break
2055   fi
2056 done
2057 if test -z "$ac_aux_dir"; then
2058   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2059 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2060    { (exit 1); exit 1; }; }
2061 fi
2062
2063 # These three variables are undocumented and unsupported,
2064 # and are intended to be withdrawn in a future Autoconf release.
2065 # They can cause serious problems if a builder's source tree is in a directory
2066 # whose full name contains unusual characters.
2067 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2068 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2069 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2070
2071
2072
2073 if test ${srcdir} != "." ; then
2074   if test -f ${srcdir}/include/llvm/Config/config.h ; then
2075     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2076 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2077    { (exit 1); exit 1; }; }
2078   fi
2079 fi
2080
2081 for i in `ls ${srcdir}/projects`
2082 do
2083   if test -d ${srcdir}/projects/${i} ; then
2084     case ${i} in
2085       CVS) ;;
2086       sample)       subdirs="$subdirs projects/sample"
2087     ;;
2088       privbracket)  subdirs="$subdirs projects/privbracket"
2089  ;;
2090       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2091  ;;
2092       llvm-test)    subdirs="$subdirs projects/llvm-test"
2093  ;;
2094       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
2095 ;;
2096       llvm-gcc)     subdirs="$subdirs projects/llvm-gcc"
2097   ;;
2098       llvm-java)    subdirs="$subdirs projects/llvm-java"
2099  ;;
2100       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
2101    ;;
2102       llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2103  ;;
2104       poolalloc)    subdirs="$subdirs projects/poolalloc"
2105  ;;
2106       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
2107  ;;
2108       *)
2109         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2110 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2111         ;;
2112     esac
2113   fi
2114 done
2115
2116
2117 # Make sure we can run config.sub.
2118 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2119   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2120 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2121    { (exit 1); exit 1; }; }
2122
2123 { echo "$as_me:$LINENO: checking build system type" >&5
2124 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2125 if test "${ac_cv_build+set}" = set; then
2126   echo $ECHO_N "(cached) $ECHO_C" >&6
2127 else
2128   ac_build_alias=$build_alias
2129 test "x$ac_build_alias" = x &&
2130   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2131 test "x$ac_build_alias" = x &&
2132   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2133 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2134    { (exit 1); exit 1; }; }
2135 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2136   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2137 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2138    { (exit 1); exit 1; }; }
2139
2140 fi
2141 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2142 echo "${ECHO_T}$ac_cv_build" >&6; }
2143 case $ac_cv_build in
2144 *-*-*) ;;
2145 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2146 echo "$as_me: error: invalid value of canonical build" >&2;}
2147    { (exit 1); exit 1; }; };;
2148 esac
2149 build=$ac_cv_build
2150 ac_save_IFS=$IFS; IFS='-'
2151 set x $ac_cv_build
2152 shift
2153 build_cpu=$1
2154 build_vendor=$2
2155 shift; shift
2156 # Remember, the first character of IFS is used to create $*,
2157 # except with old shells:
2158 build_os=$*
2159 IFS=$ac_save_IFS
2160 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2161
2162
2163 { echo "$as_me:$LINENO: checking host system type" >&5
2164 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2165 if test "${ac_cv_host+set}" = set; then
2166   echo $ECHO_N "(cached) $ECHO_C" >&6
2167 else
2168   if test "x$host_alias" = x; then
2169   ac_cv_host=$ac_cv_build
2170 else
2171   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2172     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2173 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2174    { (exit 1); exit 1; }; }
2175 fi
2176
2177 fi
2178 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2179 echo "${ECHO_T}$ac_cv_host" >&6; }
2180 case $ac_cv_host in
2181 *-*-*) ;;
2182 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2183 echo "$as_me: error: invalid value of canonical host" >&2;}
2184    { (exit 1); exit 1; }; };;
2185 esac
2186 host=$ac_cv_host
2187 ac_save_IFS=$IFS; IFS='-'
2188 set x $ac_cv_host
2189 shift
2190 host_cpu=$1
2191 host_vendor=$2
2192 shift; shift
2193 # Remember, the first character of IFS is used to create $*,
2194 # except with old shells:
2195 host_os=$*
2196 IFS=$ac_save_IFS
2197 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2198
2199
2200 { echo "$as_me:$LINENO: checking target system type" >&5
2201 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2202 if test "${ac_cv_target+set}" = set; then
2203   echo $ECHO_N "(cached) $ECHO_C" >&6
2204 else
2205   if test "x$target_alias" = x; then
2206   ac_cv_target=$ac_cv_host
2207 else
2208   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2209     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2210 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2211    { (exit 1); exit 1; }; }
2212 fi
2213
2214 fi
2215 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2216 echo "${ECHO_T}$ac_cv_target" >&6; }
2217 case $ac_cv_target in
2218 *-*-*) ;;
2219 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2220 echo "$as_me: error: invalid value of canonical target" >&2;}
2221    { (exit 1); exit 1; }; };;
2222 esac
2223 target=$ac_cv_target
2224 ac_save_IFS=$IFS; IFS='-'
2225 set x $ac_cv_target
2226 shift
2227 target_cpu=$1
2228 target_vendor=$2
2229 shift; shift
2230 # Remember, the first character of IFS is used to create $*,
2231 # except with old shells:
2232 target_os=$*
2233 IFS=$ac_save_IFS
2234 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2235
2236
2237 # The aliases save the names the user supplied, while $host etc.
2238 # will get canonicalized.
2239 test -n "$target_alias" &&
2240   test "$program_prefix$program_suffix$program_transform_name" = \
2241     NONENONEs,x,x, &&
2242   program_prefix=${target_alias}-
2243
2244 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2245 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2246 if test "${llvm_cv_os_type+set}" = set; then
2247   echo $ECHO_N "(cached) $ECHO_C" >&6
2248 else
2249   case $host in
2250   *-*-aix*)
2251     llvm_cv_link_all_option="-Wl,--whole-archive"
2252     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2253     llvm_cv_os_type="AIX"
2254     llvm_cv_platform_type="Unix" ;;
2255   *-*-irix*)
2256     llvm_cv_link_all_option="-Wl,--whole-archive"
2257     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2258     llvm_cv_os_type="IRIX"
2259     llvm_cv_platform_type="Unix" ;;
2260   *-*-cygwin*)
2261     llvm_cv_link_all_option="-Wl,--whole-archive"
2262     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2263     llvm_cv_os_type="Cygwin"
2264     llvm_cv_platform_type="Unix" ;;
2265   *-*-darwin*)
2266     llvm_cv_link_all_option="-Wl,-all_load"
2267     llvm_cv_no_link_all_option="-Wl,-noall_load"
2268     llvm_cv_os_type="Darwin"
2269     llvm_cv_platform_type="Unix" ;;
2270   *-*-freebsd*)
2271     llvm_cv_link_all_option="-Wl,--whole-archive"
2272     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2273     llvm_cv_os_type="FreeBSD"
2274     llvm_cv_platform_type="Unix" ;;
2275   *-*-openbsd*)
2276     llvm_cv_link_all_option="-Wl,--whole-archive"
2277     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2278     llvm_cv_os_type="OpenBSD"
2279     llvm_cv_platform_type="Unix" ;;
2280   *-*-netbsd*)
2281     llvm_cv_link_all_option="-Wl,--whole-archive"
2282     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2283     llvm_cv_os_type="NetBSD"
2284     llvm_cv_platform_type="Unix" ;;
2285   *-*-hpux*)
2286     llvm_cv_link_all_option="-Wl,--whole-archive"
2287     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2288     llvm_cv_os_type="HP-UX"
2289     llvm_cv_platform_type="Unix" ;;
2290   *-*-interix*)
2291     llvm_cv_link_all_option="-Wl,--whole-archive"
2292     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2293     llvm_cv_os_type="Interix"
2294     llvm_cv_platform_type="Unix" ;;
2295   *-*-linux*)
2296     llvm_cv_link_all_option="-Wl,--whole-archive"
2297     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2298     llvm_cv_os_type="Linux"
2299     llvm_cv_platform_type="Unix" ;;
2300   *-*-solaris*)
2301     llvm_cv_link_all_option="-Wl,-z,allextract"
2302     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2303     llvm_cv_os_type="SunOS"
2304     llvm_cv_platform_type="Unix" ;;
2305   *-*-win32*)
2306     llvm_cv_link_all_option="-Wl,--whole-archive"
2307     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2308     llvm_cv_os_type="Win32"
2309     llvm_cv_platform_type="Win32" ;;
2310   *-*-mingw*)
2311     llvm_cv_link_all_option="-Wl,--whole-archive"
2312     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2313     llvm_cv_os_type="MingW"
2314     llvm_cv_platform_type="Win32" ;;
2315   *)
2316     llvm_cv_link_all_option=""
2317     llvm_cv_no_link_all_option=""
2318     llvm_cv_os_type="Unknown"
2319     llvm_cv_platform_type="Unknown" ;;
2320 esac
2321 fi
2322 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2323 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2324
2325 if test "$llvm_cv_os_type" = "Unknown" ; then
2326   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2327 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2328    { (exit 1); exit 1; }; }
2329 fi
2330
2331 OS=$llvm_cv_os_type
2332
2333
2334 LINKALL=$llvm_cv_link_all_option
2335
2336 NOLINKALL=$llvm_cv_no_link_all_option
2337
2338
2339 case $llvm_cv_platform_type in
2340   Unix)
2341
2342 cat >>confdefs.h <<\_ACEOF
2343 #define LLVM_ON_UNIX 1
2344 _ACEOF
2345
2346     LLVM_ON_UNIX=1
2347
2348     LLVM_ON_WIN32=0
2349
2350     ;;
2351   Win32)
2352
2353 cat >>confdefs.h <<\_ACEOF
2354 #define LLVM_ON_WIN32 1
2355 _ACEOF
2356
2357     LLVM_ON_UNIX=0
2358
2359     LLVM_ON_WIN32=1
2360
2361     ;;
2362 esac
2363
2364 { echo "$as_me:$LINENO: checking target architecture" >&5
2365 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2366 if test "${llvm_cv_target_arch+set}" = set; then
2367   echo $ECHO_N "(cached) $ECHO_C" >&6
2368 else
2369   case $target in
2370   i?86-*)                 llvm_cv_target_arch="x86" ;;
2371   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
2372   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
2373   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
2374   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
2375   ia64-*)                 llvm_cv_target_arch="IA64" ;;
2376   arm-*)                  llvm_cv_target_arch="ARM" ;;
2377   mips-*)                 llvm_cv_target_arch="Mips" ;;
2378   *)                      llvm_cv_target_arch="Unknown" ;;
2379 esac
2380 fi
2381 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2382 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2383
2384 if test "$llvm_cv_target_arch" = "Unknown" ; then
2385   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2386 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2387 fi
2388
2389 ARCH=$llvm_cv_target_arch
2390
2391
2392 ac_ext=c
2393 ac_cpp='$CPP $CPPFLAGS'
2394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2397 if test -n "$ac_tool_prefix"; then
2398   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2399 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2400 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2402 if test "${ac_cv_prog_CC+set}" = set; then
2403   echo $ECHO_N "(cached) $ECHO_C" >&6
2404 else
2405   if test -n "$CC"; then
2406   ac_cv_prog_CC="$CC" # Let the user override the test.
2407 else
2408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2409 for as_dir in $PATH
2410 do
2411   IFS=$as_save_IFS
2412   test -z "$as_dir" && as_dir=.
2413   for ac_exec_ext in '' $ac_executable_extensions; do
2414   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2415     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2416     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2417     break 2
2418   fi
2419 done
2420 done
2421 IFS=$as_save_IFS
2422
2423 fi
2424 fi
2425 CC=$ac_cv_prog_CC
2426 if test -n "$CC"; then
2427   { echo "$as_me:$LINENO: result: $CC" >&5
2428 echo "${ECHO_T}$CC" >&6; }
2429 else
2430   { echo "$as_me:$LINENO: result: no" >&5
2431 echo "${ECHO_T}no" >&6; }
2432 fi
2433
2434
2435 fi
2436 if test -z "$ac_cv_prog_CC"; then
2437   ac_ct_CC=$CC
2438   # Extract the first word of "gcc", so it can be a program name with args.
2439 set dummy gcc; ac_word=$2
2440 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2442 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2443   echo $ECHO_N "(cached) $ECHO_C" >&6
2444 else
2445   if test -n "$ac_ct_CC"; then
2446   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2447 else
2448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2449 for as_dir in $PATH
2450 do
2451   IFS=$as_save_IFS
2452   test -z "$as_dir" && as_dir=.
2453   for ac_exec_ext in '' $ac_executable_extensions; do
2454   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2455     ac_cv_prog_ac_ct_CC="gcc"
2456     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2457     break 2
2458   fi
2459 done
2460 done
2461 IFS=$as_save_IFS
2462
2463 fi
2464 fi
2465 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2466 if test -n "$ac_ct_CC"; then
2467   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2468 echo "${ECHO_T}$ac_ct_CC" >&6; }
2469 else
2470   { echo "$as_me:$LINENO: result: no" >&5
2471 echo "${ECHO_T}no" >&6; }
2472 fi
2473
2474   if test "x$ac_ct_CC" = x; then
2475     CC=""
2476   else
2477     case $cross_compiling:$ac_tool_warned in
2478 yes:)
2479 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2480 whose name does not start with the host triplet.  If you think this
2481 configuration is useful to you, please write to autoconf@gnu.org." >&5
2482 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2483 whose name does not start with the host triplet.  If you think this
2484 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2485 ac_tool_warned=yes ;;
2486 esac
2487     CC=$ac_ct_CC
2488   fi
2489 else
2490   CC="$ac_cv_prog_CC"
2491 fi
2492
2493 if test -z "$CC"; then
2494           if test -n "$ac_tool_prefix"; then
2495     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2496 set dummy ${ac_tool_prefix}cc; ac_word=$2
2497 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2499 if test "${ac_cv_prog_CC+set}" = set; then
2500   echo $ECHO_N "(cached) $ECHO_C" >&6
2501 else
2502   if test -n "$CC"; then
2503   ac_cv_prog_CC="$CC" # Let the user override the test.
2504 else
2505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2506 for as_dir in $PATH
2507 do
2508   IFS=$as_save_IFS
2509   test -z "$as_dir" && as_dir=.
2510   for ac_exec_ext in '' $ac_executable_extensions; do
2511   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2512     ac_cv_prog_CC="${ac_tool_prefix}cc"
2513     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2514     break 2
2515   fi
2516 done
2517 done
2518 IFS=$as_save_IFS
2519
2520 fi
2521 fi
2522 CC=$ac_cv_prog_CC
2523 if test -n "$CC"; then
2524   { echo "$as_me:$LINENO: result: $CC" >&5
2525 echo "${ECHO_T}$CC" >&6; }
2526 else
2527   { echo "$as_me:$LINENO: result: no" >&5
2528 echo "${ECHO_T}no" >&6; }
2529 fi
2530
2531
2532   fi
2533 fi
2534 if test -z "$CC"; then
2535   # Extract the first word of "cc", so it can be a program name with args.
2536 set dummy cc; ac_word=$2
2537 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2539 if test "${ac_cv_prog_CC+set}" = set; then
2540   echo $ECHO_N "(cached) $ECHO_C" >&6
2541 else
2542   if test -n "$CC"; then
2543   ac_cv_prog_CC="$CC" # Let the user override the test.
2544 else
2545   ac_prog_rejected=no
2546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2547 for as_dir in $PATH
2548 do
2549   IFS=$as_save_IFS
2550   test -z "$as_dir" && as_dir=.
2551   for ac_exec_ext in '' $ac_executable_extensions; do
2552   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2553     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2554        ac_prog_rejected=yes
2555        continue
2556      fi
2557     ac_cv_prog_CC="cc"
2558     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2559     break 2
2560   fi
2561 done
2562 done
2563 IFS=$as_save_IFS
2564
2565 if test $ac_prog_rejected = yes; then
2566   # We found a bogon in the path, so make sure we never use it.
2567   set dummy $ac_cv_prog_CC
2568   shift
2569   if test $# != 0; then
2570     # We chose a different compiler from the bogus one.
2571     # However, it has the same basename, so the bogon will be chosen
2572     # first if we set CC to just the basename; use the full file name.
2573     shift
2574     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2575   fi
2576 fi
2577 fi
2578 fi
2579 CC=$ac_cv_prog_CC
2580 if test -n "$CC"; then
2581   { echo "$as_me:$LINENO: result: $CC" >&5
2582 echo "${ECHO_T}$CC" >&6; }
2583 else
2584   { echo "$as_me:$LINENO: result: no" >&5
2585 echo "${ECHO_T}no" >&6; }
2586 fi
2587
2588
2589 fi
2590 if test -z "$CC"; then
2591   if test -n "$ac_tool_prefix"; then
2592   for ac_prog in cl.exe
2593   do
2594     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2595 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2596 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2598 if test "${ac_cv_prog_CC+set}" = set; then
2599   echo $ECHO_N "(cached) $ECHO_C" >&6
2600 else
2601   if test -n "$CC"; then
2602   ac_cv_prog_CC="$CC" # Let the user override the test.
2603 else
2604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2605 for as_dir in $PATH
2606 do
2607   IFS=$as_save_IFS
2608   test -z "$as_dir" && as_dir=.
2609   for ac_exec_ext in '' $ac_executable_extensions; do
2610   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2611     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2612     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2613     break 2
2614   fi
2615 done
2616 done
2617 IFS=$as_save_IFS
2618
2619 fi
2620 fi
2621 CC=$ac_cv_prog_CC
2622 if test -n "$CC"; then
2623   { echo "$as_me:$LINENO: result: $CC" >&5
2624 echo "${ECHO_T}$CC" >&6; }
2625 else
2626   { echo "$as_me:$LINENO: result: no" >&5
2627 echo "${ECHO_T}no" >&6; }
2628 fi
2629
2630
2631     test -n "$CC" && break
2632   done
2633 fi
2634 if test -z "$CC"; then
2635   ac_ct_CC=$CC
2636   for ac_prog in cl.exe
2637 do
2638   # Extract the first word of "$ac_prog", so it can be a program name with args.
2639 set dummy $ac_prog; ac_word=$2
2640 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2642 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2643   echo $ECHO_N "(cached) $ECHO_C" >&6
2644 else
2645   if test -n "$ac_ct_CC"; then
2646   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2647 else
2648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2649 for as_dir in $PATH
2650 do
2651   IFS=$as_save_IFS
2652   test -z "$as_dir" && as_dir=.
2653   for ac_exec_ext in '' $ac_executable_extensions; do
2654   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2655     ac_cv_prog_ac_ct_CC="$ac_prog"
2656     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2657     break 2
2658   fi
2659 done
2660 done
2661 IFS=$as_save_IFS
2662
2663 fi
2664 fi
2665 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2666 if test -n "$ac_ct_CC"; then
2667   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2668 echo "${ECHO_T}$ac_ct_CC" >&6; }
2669 else
2670   { echo "$as_me:$LINENO: result: no" >&5
2671 echo "${ECHO_T}no" >&6; }
2672 fi
2673
2674
2675   test -n "$ac_ct_CC" && break
2676 done
2677
2678   if test "x$ac_ct_CC" = x; then
2679     CC=""
2680   else
2681     case $cross_compiling:$ac_tool_warned in
2682 yes:)
2683 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2684 whose name does not start with the host triplet.  If you think this
2685 configuration is useful to you, please write to autoconf@gnu.org." >&5
2686 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2687 whose name does not start with the host triplet.  If you think this
2688 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2689 ac_tool_warned=yes ;;
2690 esac
2691     CC=$ac_ct_CC
2692   fi
2693 fi
2694
2695 fi
2696
2697
2698 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2699 See \`config.log' for more details." >&5
2700 echo "$as_me: error: no acceptable C compiler found in \$PATH
2701 See \`config.log' for more details." >&2;}
2702    { (exit 1); exit 1; }; }
2703
2704 # Provide some information about the compiler.
2705 echo "$as_me:$LINENO: checking for C compiler version" >&5
2706 ac_compiler=`set X $ac_compile; echo $2`
2707 { (ac_try="$ac_compiler --version >&5"
2708 case "(($ac_try" in
2709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2710   *) ac_try_echo=$ac_try;;
2711 esac
2712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2713   (eval "$ac_compiler --version >&5") 2>&5
2714   ac_status=$?
2715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716   (exit $ac_status); }
2717 { (ac_try="$ac_compiler -v >&5"
2718 case "(($ac_try" in
2719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2720   *) ac_try_echo=$ac_try;;
2721 esac
2722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2723   (eval "$ac_compiler -v >&5") 2>&5
2724   ac_status=$?
2725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726   (exit $ac_status); }
2727 { (ac_try="$ac_compiler -V >&5"
2728 case "(($ac_try" in
2729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2730   *) ac_try_echo=$ac_try;;
2731 esac
2732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2733   (eval "$ac_compiler -V >&5") 2>&5
2734   ac_status=$?
2735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736   (exit $ac_status); }
2737
2738 cat >conftest.$ac_ext <<_ACEOF
2739 /* confdefs.h.  */
2740 _ACEOF
2741 cat confdefs.h >>conftest.$ac_ext
2742 cat >>conftest.$ac_ext <<_ACEOF
2743 /* end confdefs.h.  */
2744
2745 int
2746 main ()
2747 {
2748
2749   ;
2750   return 0;
2751 }
2752 _ACEOF
2753 ac_clean_files_save=$ac_clean_files
2754 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2755 # Try to create an executable without -o first, disregard a.out.
2756 # It will help us diagnose broken compilers, and finding out an intuition
2757 # of exeext.
2758 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2759 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2760 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2761 #
2762 # List of possible output files, starting from the most likely.
2763 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2764 # only as a last resort.  b.out is created by i960 compilers.
2765 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2766 #
2767 # The IRIX 6 linker writes into existing files which may not be
2768 # executable, retaining their permissions.  Remove them first so a
2769 # subsequent execution test works.
2770 ac_rmfiles=
2771 for ac_file in $ac_files
2772 do
2773   case $ac_file in
2774     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2775     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2776   esac
2777 done
2778 rm -f $ac_rmfiles
2779
2780 if { (ac_try="$ac_link_default"
2781 case "(($ac_try" in
2782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2783   *) ac_try_echo=$ac_try;;
2784 esac
2785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2786   (eval "$ac_link_default") 2>&5
2787   ac_status=$?
2788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789   (exit $ac_status); }; then
2790   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2791 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2792 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2793 # so that the user can short-circuit this test for compilers unknown to
2794 # Autoconf.
2795 for ac_file in $ac_files
2796 do
2797   test -f "$ac_file" || continue
2798   case $ac_file in
2799     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2800         ;;
2801     [ab].out )
2802         # We found the default executable, but exeext='' is most
2803         # certainly right.
2804         break;;
2805     *.* )
2806         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2807         then :; else
2808            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2809         fi
2810         # We set ac_cv_exeext here because the later test for it is not
2811         # safe: cross compilers may not add the suffix if given an `-o'
2812         # argument, so we may need to know it at that point already.
2813         # Even if this section looks crufty: it has the advantage of
2814         # actually working.
2815         break;;
2816     * )
2817         break;;
2818   esac
2819 done
2820 test "$ac_cv_exeext" = no && ac_cv_exeext=
2821
2822 else
2823   echo "$as_me: failed program was:" >&5
2824 sed 's/^/| /' conftest.$ac_ext >&5
2825
2826 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2827 See \`config.log' for more details." >&5
2828 echo "$as_me: error: C compiler cannot create executables
2829 See \`config.log' for more details." >&2;}
2830    { (exit 77); exit 77; }; }
2831 fi
2832
2833 ac_exeext=$ac_cv_exeext
2834 { echo "$as_me:$LINENO: result: $ac_file" >&5
2835 echo "${ECHO_T}$ac_file" >&6; }
2836
2837 # Check that the compiler produces executables we can run.  If not, either
2838 # the compiler is broken, or we cross compile.
2839 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2840 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2841 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2842 # If not cross compiling, check that we can run a simple program.
2843 if test "$cross_compiling" != yes; then
2844   if { ac_try='./$ac_file'
2845   { (case "(($ac_try" in
2846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2847   *) ac_try_echo=$ac_try;;
2848 esac
2849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2850   (eval "$ac_try") 2>&5
2851   ac_status=$?
2852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2853   (exit $ac_status); }; }; then
2854     cross_compiling=no
2855   else
2856     if test "$cross_compiling" = maybe; then
2857         cross_compiling=yes
2858     else
2859         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2860 If you meant to cross compile, use \`--host'.
2861 See \`config.log' for more details." >&5
2862 echo "$as_me: error: cannot run C compiled programs.
2863 If you meant to cross compile, use \`--host'.
2864 See \`config.log' for more details." >&2;}
2865    { (exit 1); exit 1; }; }
2866     fi
2867   fi
2868 fi
2869 { echo "$as_me:$LINENO: result: yes" >&5
2870 echo "${ECHO_T}yes" >&6; }
2871
2872 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2873 ac_clean_files=$ac_clean_files_save
2874 # Check that the compiler produces executables we can run.  If not, either
2875 # the compiler is broken, or we cross compile.
2876 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2877 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2878 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2879 echo "${ECHO_T}$cross_compiling" >&6; }
2880
2881 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2882 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2883 if { (ac_try="$ac_link"
2884 case "(($ac_try" in
2885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2886   *) ac_try_echo=$ac_try;;
2887 esac
2888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2889   (eval "$ac_link") 2>&5
2890   ac_status=$?
2891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892   (exit $ac_status); }; then
2893   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2894 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2895 # work properly (i.e., refer to `conftest.exe'), while it won't with
2896 # `rm'.
2897 for ac_file in conftest.exe conftest conftest.*; do
2898   test -f "$ac_file" || continue
2899   case $ac_file in
2900     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2901     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2902           break;;
2903     * ) break;;
2904   esac
2905 done
2906 else
2907   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2908 See \`config.log' for more details." >&5
2909 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2910 See \`config.log' for more details." >&2;}
2911    { (exit 1); exit 1; }; }
2912 fi
2913
2914 rm -f conftest$ac_cv_exeext
2915 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2916 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2917
2918 rm -f conftest.$ac_ext
2919 EXEEXT=$ac_cv_exeext
2920 ac_exeext=$EXEEXT
2921 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2922 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2923 if test "${ac_cv_objext+set}" = set; then
2924   echo $ECHO_N "(cached) $ECHO_C" >&6
2925 else
2926   cat >conftest.$ac_ext <<_ACEOF
2927 /* confdefs.h.  */
2928 _ACEOF
2929 cat confdefs.h >>conftest.$ac_ext
2930 cat >>conftest.$ac_ext <<_ACEOF
2931 /* end confdefs.h.  */
2932
2933 int
2934 main ()
2935 {
2936
2937   ;
2938   return 0;
2939 }
2940 _ACEOF
2941 rm -f conftest.o conftest.obj
2942 if { (ac_try="$ac_compile"
2943 case "(($ac_try" in
2944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2945   *) ac_try_echo=$ac_try;;
2946 esac
2947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2948   (eval "$ac_compile") 2>&5
2949   ac_status=$?
2950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951   (exit $ac_status); }; then
2952   for ac_file in conftest.o conftest.obj conftest.*; do
2953   test -f "$ac_file" || continue;
2954   case $ac_file in
2955     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2956     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2957        break;;
2958   esac
2959 done
2960 else
2961   echo "$as_me: failed program was:" >&5
2962 sed 's/^/| /' conftest.$ac_ext >&5
2963
2964 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2965 See \`config.log' for more details." >&5
2966 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2967 See \`config.log' for more details." >&2;}
2968    { (exit 1); exit 1; }; }
2969 fi
2970
2971 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2972 fi
2973 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2974 echo "${ECHO_T}$ac_cv_objext" >&6; }
2975 OBJEXT=$ac_cv_objext
2976 ac_objext=$OBJEXT
2977 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2978 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2979 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2980   echo $ECHO_N "(cached) $ECHO_C" >&6
2981 else
2982   cat >conftest.$ac_ext <<_ACEOF
2983 /* confdefs.h.  */
2984 _ACEOF
2985 cat confdefs.h >>conftest.$ac_ext
2986 cat >>conftest.$ac_ext <<_ACEOF
2987 /* end confdefs.h.  */
2988
2989 int
2990 main ()
2991 {
2992 #ifndef __GNUC__
2993        choke me
2994 #endif
2995
2996   ;
2997   return 0;
2998 }
2999 _ACEOF
3000 rm -f conftest.$ac_objext
3001 if { (ac_try="$ac_compile"
3002 case "(($ac_try" in
3003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3004   *) ac_try_echo=$ac_try;;
3005 esac
3006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3007   (eval "$ac_compile") 2>conftest.er1
3008   ac_status=$?
3009   grep -v '^ *+' conftest.er1 >conftest.err
3010   rm -f conftest.er1
3011   cat conftest.err >&5
3012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013   (exit $ac_status); } &&
3014          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3015   { (case "(($ac_try" in
3016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3017   *) ac_try_echo=$ac_try;;
3018 esac
3019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3020   (eval "$ac_try") 2>&5
3021   ac_status=$?
3022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3023   (exit $ac_status); }; } &&
3024          { ac_try='test -s conftest.$ac_objext'
3025   { (case "(($ac_try" in
3026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3027   *) ac_try_echo=$ac_try;;
3028 esac
3029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3030   (eval "$ac_try") 2>&5
3031   ac_status=$?
3032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033   (exit $ac_status); }; }; then
3034   ac_compiler_gnu=yes
3035 else
3036   echo "$as_me: failed program was:" >&5
3037 sed 's/^/| /' conftest.$ac_ext >&5
3038
3039         ac_compiler_gnu=no
3040 fi
3041
3042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3043 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3044
3045 fi
3046 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3047 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3048 GCC=`test $ac_compiler_gnu = yes && echo yes`
3049 ac_test_CFLAGS=${CFLAGS+set}
3050 ac_save_CFLAGS=$CFLAGS
3051 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3052 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3053 if test "${ac_cv_prog_cc_g+set}" = set; then
3054   echo $ECHO_N "(cached) $ECHO_C" >&6
3055 else
3056   ac_save_c_werror_flag=$ac_c_werror_flag
3057    ac_c_werror_flag=yes
3058    ac_cv_prog_cc_g=no
3059    CFLAGS="-g"
3060    cat >conftest.$ac_ext <<_ACEOF
3061 /* confdefs.h.  */
3062 _ACEOF
3063 cat confdefs.h >>conftest.$ac_ext
3064 cat >>conftest.$ac_ext <<_ACEOF
3065 /* end confdefs.h.  */
3066
3067 int
3068 main ()
3069 {
3070
3071   ;
3072   return 0;
3073 }
3074 _ACEOF
3075 rm -f conftest.$ac_objext
3076 if { (ac_try="$ac_compile"
3077 case "(($ac_try" in
3078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3079   *) ac_try_echo=$ac_try;;
3080 esac
3081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3082   (eval "$ac_compile") 2>conftest.er1
3083   ac_status=$?
3084   grep -v '^ *+' conftest.er1 >conftest.err
3085   rm -f conftest.er1
3086   cat conftest.err >&5
3087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088   (exit $ac_status); } &&
3089          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3090   { (case "(($ac_try" in
3091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3092   *) ac_try_echo=$ac_try;;
3093 esac
3094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3095   (eval "$ac_try") 2>&5
3096   ac_status=$?
3097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098   (exit $ac_status); }; } &&
3099          { ac_try='test -s conftest.$ac_objext'
3100   { (case "(($ac_try" in
3101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3102   *) ac_try_echo=$ac_try;;
3103 esac
3104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3105   (eval "$ac_try") 2>&5
3106   ac_status=$?
3107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108   (exit $ac_status); }; }; then
3109   ac_cv_prog_cc_g=yes
3110 else
3111   echo "$as_me: failed program was:" >&5
3112 sed 's/^/| /' conftest.$ac_ext >&5
3113
3114         CFLAGS=""
3115       cat >conftest.$ac_ext <<_ACEOF
3116 /* confdefs.h.  */
3117 _ACEOF
3118 cat confdefs.h >>conftest.$ac_ext
3119 cat >>conftest.$ac_ext <<_ACEOF
3120 /* end confdefs.h.  */
3121
3122 int
3123 main ()
3124 {
3125
3126   ;
3127   return 0;
3128 }
3129 _ACEOF
3130 rm -f conftest.$ac_objext
3131 if { (ac_try="$ac_compile"
3132 case "(($ac_try" in
3133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3134   *) ac_try_echo=$ac_try;;
3135 esac
3136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3137   (eval "$ac_compile") 2>conftest.er1
3138   ac_status=$?
3139   grep -v '^ *+' conftest.er1 >conftest.err
3140   rm -f conftest.er1
3141   cat conftest.err >&5
3142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143   (exit $ac_status); } &&
3144          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3145   { (case "(($ac_try" in
3146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3147   *) ac_try_echo=$ac_try;;
3148 esac
3149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3150   (eval "$ac_try") 2>&5
3151   ac_status=$?
3152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153   (exit $ac_status); }; } &&
3154          { ac_try='test -s conftest.$ac_objext'
3155   { (case "(($ac_try" in
3156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3157   *) ac_try_echo=$ac_try;;
3158 esac
3159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3160   (eval "$ac_try") 2>&5
3161   ac_status=$?
3162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163   (exit $ac_status); }; }; then
3164   :
3165 else
3166   echo "$as_me: failed program was:" >&5
3167 sed 's/^/| /' conftest.$ac_ext >&5
3168
3169         ac_c_werror_flag=$ac_save_c_werror_flag
3170          CFLAGS="-g"
3171          cat >conftest.$ac_ext <<_ACEOF
3172 /* confdefs.h.  */
3173 _ACEOF
3174 cat confdefs.h >>conftest.$ac_ext
3175 cat >>conftest.$ac_ext <<_ACEOF
3176 /* end confdefs.h.  */
3177
3178 int
3179 main ()
3180 {
3181
3182   ;
3183   return 0;
3184 }
3185 _ACEOF
3186 rm -f conftest.$ac_objext
3187 if { (ac_try="$ac_compile"
3188 case "(($ac_try" in
3189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3190   *) ac_try_echo=$ac_try;;
3191 esac
3192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3193   (eval "$ac_compile") 2>conftest.er1
3194   ac_status=$?
3195   grep -v '^ *+' conftest.er1 >conftest.err
3196   rm -f conftest.er1
3197   cat conftest.err >&5
3198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199   (exit $ac_status); } &&
3200          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3201   { (case "(($ac_try" in
3202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3203   *) ac_try_echo=$ac_try;;
3204 esac
3205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3206   (eval "$ac_try") 2>&5
3207   ac_status=$?
3208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209   (exit $ac_status); }; } &&
3210          { ac_try='test -s conftest.$ac_objext'
3211   { (case "(($ac_try" in
3212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3213   *) ac_try_echo=$ac_try;;
3214 esac
3215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3216   (eval "$ac_try") 2>&5
3217   ac_status=$?
3218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219   (exit $ac_status); }; }; then
3220   ac_cv_prog_cc_g=yes
3221 else
3222   echo "$as_me: failed program was:" >&5
3223 sed 's/^/| /' conftest.$ac_ext >&5
3224
3225
3226 fi
3227
3228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3229 fi
3230
3231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3232 fi
3233
3234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3235    ac_c_werror_flag=$ac_save_c_werror_flag
3236 fi
3237 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3238 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3239 if test "$ac_test_CFLAGS" = set; then
3240   CFLAGS=$ac_save_CFLAGS
3241 elif test $ac_cv_prog_cc_g = yes; then
3242   if test "$GCC" = yes; then
3243     CFLAGS="-g -O2"
3244   else
3245     CFLAGS="-g"
3246   fi
3247 else
3248   if test "$GCC" = yes; then
3249     CFLAGS="-O2"
3250   else
3251     CFLAGS=
3252   fi
3253 fi
3254 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3255 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3256 if test "${ac_cv_prog_cc_c89+set}" = set; then
3257   echo $ECHO_N "(cached) $ECHO_C" >&6
3258 else
3259   ac_cv_prog_cc_c89=no
3260 ac_save_CC=$CC
3261 cat >conftest.$ac_ext <<_ACEOF
3262 /* confdefs.h.  */
3263 _ACEOF
3264 cat confdefs.h >>conftest.$ac_ext
3265 cat >>conftest.$ac_ext <<_ACEOF
3266 /* end confdefs.h.  */
3267 #include <stdarg.h>
3268 #include <stdio.h>
3269 #include <sys/types.h>
3270 #include <sys/stat.h>
3271 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3272 struct buf { int x; };
3273 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3274 static char *e (p, i)
3275      char **p;
3276      int i;
3277 {
3278   return p[i];
3279 }
3280 static char *f (char * (*g) (char **, int), char **p, ...)
3281 {
3282   char *s;
3283   va_list v;
3284   va_start (v,p);
3285   s = g (p, va_arg (v,int));
3286   va_end (v);
3287   return s;
3288 }
3289
3290 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3291    function prototypes and stuff, but not '\xHH' hex character constants.
3292    These don't provoke an error unfortunately, instead are silently treated
3293    as 'x'.  The following induces an error, until -std is added to get
3294    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3295    array size at least.  It's necessary to write '\x00'==0 to get something
3296    that's true only with -std.  */
3297 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3298
3299 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3300    inside strings and character constants.  */
3301 #define FOO(x) 'x'
3302 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3303
3304 int test (int i, double x);
3305 struct s1 {int (*f) (int a);};
3306 struct s2 {int (*f) (double a);};
3307 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3308 int argc;
3309 char **argv;
3310 int
3311 main ()
3312 {
3313 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3314   ;
3315   return 0;
3316 }
3317 _ACEOF
3318 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3319         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3320 do
3321   CC="$ac_save_CC $ac_arg"
3322   rm -f conftest.$ac_objext
3323 if { (ac_try="$ac_compile"
3324 case "(($ac_try" in
3325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3326   *) ac_try_echo=$ac_try;;
3327 esac
3328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3329   (eval "$ac_compile") 2>conftest.er1
3330   ac_status=$?
3331   grep -v '^ *+' conftest.er1 >conftest.err
3332   rm -f conftest.er1
3333   cat conftest.err >&5
3334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3335   (exit $ac_status); } &&
3336          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3337   { (case "(($ac_try" in
3338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3339   *) ac_try_echo=$ac_try;;
3340 esac
3341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3342   (eval "$ac_try") 2>&5
3343   ac_status=$?
3344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345   (exit $ac_status); }; } &&
3346          { ac_try='test -s conftest.$ac_objext'
3347   { (case "(($ac_try" in
3348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3349   *) ac_try_echo=$ac_try;;
3350 esac
3351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3352   (eval "$ac_try") 2>&5
3353   ac_status=$?
3354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355   (exit $ac_status); }; }; then
3356   ac_cv_prog_cc_c89=$ac_arg
3357 else
3358   echo "$as_me: failed program was:" >&5
3359 sed 's/^/| /' conftest.$ac_ext >&5
3360
3361
3362 fi
3363
3364 rm -f core conftest.err conftest.$ac_objext
3365   test "x$ac_cv_prog_cc_c89" != "xno" && break
3366 done
3367 rm -f conftest.$ac_ext
3368 CC=$ac_save_CC
3369
3370 fi
3371 # AC_CACHE_VAL
3372 case "x$ac_cv_prog_cc_c89" in
3373   x)
3374     { echo "$as_me:$LINENO: result: none needed" >&5
3375 echo "${ECHO_T}none needed" >&6; } ;;
3376   xno)
3377     { echo "$as_me:$LINENO: result: unsupported" >&5
3378 echo "${ECHO_T}unsupported" >&6; } ;;
3379   *)
3380     CC="$CC $ac_cv_prog_cc_c89"
3381     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3382 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3383 esac
3384
3385
3386 ac_ext=c
3387 ac_cpp='$CPP $CPPFLAGS'
3388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3391
3392
3393 ac_ext=c
3394 ac_cpp='$CPP $CPPFLAGS'
3395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3398 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3399 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3400 # On Suns, sometimes $CPP names a directory.
3401 if test -n "$CPP" && test -d "$CPP"; then
3402   CPP=
3403 fi
3404 if test -z "$CPP"; then
3405   if test "${ac_cv_prog_CPP+set}" = set; then
3406   echo $ECHO_N "(cached) $ECHO_C" >&6
3407 else
3408       # Double quotes because CPP needs to be expanded
3409     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3410     do
3411       ac_preproc_ok=false
3412 for ac_c_preproc_warn_flag in '' yes
3413 do
3414   # Use a header file that comes with gcc, so configuring glibc
3415   # with a fresh cross-compiler works.
3416   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3417   # <limits.h> exists even on freestanding compilers.
3418   # On the NeXT, cc -E runs the code through the compiler's parser,
3419   # not just through cpp. "Syntax error" is here to catch this case.
3420   cat >conftest.$ac_ext <<_ACEOF
3421 /* confdefs.h.  */
3422 _ACEOF
3423 cat confdefs.h >>conftest.$ac_ext
3424 cat >>conftest.$ac_ext <<_ACEOF
3425 /* end confdefs.h.  */
3426 #ifdef __STDC__
3427 # include <limits.h>
3428 #else
3429 # include <assert.h>
3430 #endif
3431                      Syntax error
3432 _ACEOF
3433 if { (ac_try="$ac_cpp conftest.$ac_ext"
3434 case "(($ac_try" in
3435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3436   *) ac_try_echo=$ac_try;;
3437 esac
3438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3439   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3440   ac_status=$?
3441   grep -v '^ *+' conftest.er1 >conftest.err
3442   rm -f conftest.er1
3443   cat conftest.err >&5
3444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445   (exit $ac_status); } >/dev/null; then
3446   if test -s conftest.err; then
3447     ac_cpp_err=$ac_c_preproc_warn_flag
3448     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3449   else
3450     ac_cpp_err=
3451   fi
3452 else
3453   ac_cpp_err=yes
3454 fi
3455 if test -z "$ac_cpp_err"; then
3456   :
3457 else
3458   echo "$as_me: failed program was:" >&5
3459 sed 's/^/| /' conftest.$ac_ext >&5
3460
3461   # Broken: fails on valid input.
3462 continue
3463 fi
3464
3465 rm -f conftest.err conftest.$ac_ext
3466
3467   # OK, works on sane cases.  Now check whether nonexistent headers
3468   # can be detected and how.
3469   cat >conftest.$ac_ext <<_ACEOF
3470 /* confdefs.h.  */
3471 _ACEOF
3472 cat confdefs.h >>conftest.$ac_ext
3473 cat >>conftest.$ac_ext <<_ACEOF
3474 /* end confdefs.h.  */
3475 #include <ac_nonexistent.h>
3476 _ACEOF
3477 if { (ac_try="$ac_cpp conftest.$ac_ext"
3478 case "(($ac_try" in
3479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3480   *) ac_try_echo=$ac_try;;
3481 esac
3482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3483   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3484   ac_status=$?
3485   grep -v '^ *+' conftest.er1 >conftest.err
3486   rm -f conftest.er1
3487   cat conftest.err >&5
3488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489   (exit $ac_status); } >/dev/null; then
3490   if test -s conftest.err; then
3491     ac_cpp_err=$ac_c_preproc_warn_flag
3492     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3493   else
3494     ac_cpp_err=
3495   fi
3496 else
3497   ac_cpp_err=yes
3498 fi
3499 if test -z "$ac_cpp_err"; then
3500   # Broken: success on invalid input.
3501 continue
3502 else
3503   echo "$as_me: failed program was:" >&5
3504 sed 's/^/| /' conftest.$ac_ext >&5
3505
3506   # Passes both tests.
3507 ac_preproc_ok=:
3508 break
3509 fi
3510
3511 rm -f conftest.err conftest.$ac_ext
3512
3513 done
3514 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3515 rm -f conftest.err conftest.$ac_ext
3516 if $ac_preproc_ok; then
3517   break
3518 fi
3519
3520     done
3521     ac_cv_prog_CPP=$CPP
3522
3523 fi
3524   CPP=$ac_cv_prog_CPP
3525 else
3526   ac_cv_prog_CPP=$CPP
3527 fi
3528 { echo "$as_me:$LINENO: result: $CPP" >&5
3529 echo "${ECHO_T}$CPP" >&6; }
3530 ac_preproc_ok=false
3531 for ac_c_preproc_warn_flag in '' yes
3532 do
3533   # Use a header file that comes with gcc, so configuring glibc
3534   # with a fresh cross-compiler works.
3535   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3536   # <limits.h> exists even on freestanding compilers.
3537   # On the NeXT, cc -E runs the code through the compiler's parser,
3538   # not just through cpp. "Syntax error" is here to catch this case.
3539   cat >conftest.$ac_ext <<_ACEOF
3540 /* confdefs.h.  */
3541 _ACEOF
3542 cat confdefs.h >>conftest.$ac_ext
3543 cat >>conftest.$ac_ext <<_ACEOF
3544 /* end confdefs.h.  */
3545 #ifdef __STDC__
3546 # include <limits.h>
3547 #else
3548 # include <assert.h>
3549 #endif
3550                      Syntax error
3551 _ACEOF
3552 if { (ac_try="$ac_cpp conftest.$ac_ext"
3553 case "(($ac_try" in
3554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3555   *) ac_try_echo=$ac_try;;
3556 esac
3557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3558   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3559   ac_status=$?
3560   grep -v '^ *+' conftest.er1 >conftest.err
3561   rm -f conftest.er1
3562   cat conftest.err >&5
3563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564   (exit $ac_status); } >/dev/null; then
3565   if test -s conftest.err; then
3566     ac_cpp_err=$ac_c_preproc_warn_flag
3567     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3568   else
3569     ac_cpp_err=
3570   fi
3571 else
3572   ac_cpp_err=yes
3573 fi
3574 if test -z "$ac_cpp_err"; then
3575   :
3576 else
3577   echo "$as_me: failed program was:" >&5
3578 sed 's/^/| /' conftest.$ac_ext >&5
3579
3580   # Broken: fails on valid input.
3581 continue
3582 fi
3583
3584 rm -f conftest.err conftest.$ac_ext
3585
3586   # OK, works on sane cases.  Now check whether nonexistent headers
3587   # can be detected and how.
3588   cat >conftest.$ac_ext <<_ACEOF
3589 /* confdefs.h.  */
3590 _ACEOF
3591 cat confdefs.h >>conftest.$ac_ext
3592 cat >>conftest.$ac_ext <<_ACEOF
3593 /* end confdefs.h.  */
3594 #include <ac_nonexistent.h>
3595 _ACEOF
3596 if { (ac_try="$ac_cpp conftest.$ac_ext"
3597 case "(($ac_try" in
3598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3599   *) ac_try_echo=$ac_try;;
3600 esac
3601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3602   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3603   ac_status=$?
3604   grep -v '^ *+' conftest.er1 >conftest.err
3605   rm -f conftest.er1
3606   cat conftest.err >&5
3607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608   (exit $ac_status); } >/dev/null; then
3609   if test -s conftest.err; then
3610     ac_cpp_err=$ac_c_preproc_warn_flag
3611     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3612   else
3613     ac_cpp_err=
3614   fi
3615 else
3616   ac_cpp_err=yes
3617 fi
3618 if test -z "$ac_cpp_err"; then
3619   # Broken: success on invalid input.
3620 continue
3621 else
3622   echo "$as_me: failed program was:" >&5
3623 sed 's/^/| /' conftest.$ac_ext >&5
3624
3625   # Passes both tests.
3626 ac_preproc_ok=:
3627 break
3628 fi
3629
3630 rm -f conftest.err conftest.$ac_ext
3631
3632 done
3633 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3634 rm -f conftest.err conftest.$ac_ext
3635 if $ac_preproc_ok; then
3636   :
3637 else
3638   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3639 See \`config.log' for more details." >&5
3640 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3641 See \`config.log' for more details." >&2;}
3642    { (exit 1); exit 1; }; }
3643 fi
3644
3645 ac_ext=c
3646 ac_cpp='$CPP $CPPFLAGS'
3647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3650
3651
3652 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3653 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3654 if test "${ac_cv_path_GREP+set}" = set; then
3655   echo $ECHO_N "(cached) $ECHO_C" >&6
3656 else
3657   # Extract the first word of "grep ggrep" to use in msg output
3658 if test -z "$GREP"; then
3659 set dummy grep ggrep; ac_prog_name=$2
3660 if test "${ac_cv_path_GREP+set}" = set; then
3661   echo $ECHO_N "(cached) $ECHO_C" >&6
3662 else
3663   ac_path_GREP_found=false
3664 # Loop through the user's path and test for each of PROGNAME-LIST
3665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3666 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3667 do
3668   IFS=$as_save_IFS
3669   test -z "$as_dir" && as_dir=.
3670   for ac_prog in grep ggrep; do
3671   for ac_exec_ext in '' $ac_executable_extensions; do
3672     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3673     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3674     # Check for GNU ac_path_GREP and select it if it is found.
3675   # Check for GNU $ac_path_GREP
3676 case `"$ac_path_GREP" --version 2>&1` in
3677 *GNU*)
3678   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3679 *)
3680   ac_count=0
3681   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3682   while :
3683   do
3684     cat "conftest.in" "conftest.in" >"conftest.tmp"
3685     mv "conftest.tmp" "conftest.in"
3686     cp "conftest.in" "conftest.nl"
3687     echo 'GREP' >> "conftest.nl"
3688     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3689     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3690     ac_count=`expr $ac_count + 1`
3691     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3692       # Best one so far, save it but keep looking for a better one
3693       ac_cv_path_GREP="$ac_path_GREP"
3694       ac_path_GREP_max=$ac_count
3695     fi
3696     # 10*(2^10) chars as input seems more than enough
3697     test $ac_count -gt 10 && break
3698   done
3699   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3700 esac
3701
3702
3703     $ac_path_GREP_found && break 3
3704   done
3705 done
3706
3707 done
3708 IFS=$as_save_IFS
3709
3710
3711 fi
3712
3713 GREP="$ac_cv_path_GREP"
3714 if test -z "$GREP"; then
3715   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3716 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3717    { (exit 1); exit 1; }; }
3718 fi
3719
3720 else
3721   ac_cv_path_GREP=$GREP
3722 fi
3723
3724
3725 fi
3726 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3727 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3728  GREP="$ac_cv_path_GREP"
3729
3730
3731 { echo "$as_me:$LINENO: checking for egrep" >&5
3732 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3733 if test "${ac_cv_path_EGREP+set}" = set; then
3734   echo $ECHO_N "(cached) $ECHO_C" >&6
3735 else
3736   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3737    then ac_cv_path_EGREP="$GREP -E"
3738    else
3739      # Extract the first word of "egrep" to use in msg output
3740 if test -z "$EGREP"; then
3741 set dummy egrep; ac_prog_name=$2
3742 if test "${ac_cv_path_EGREP+set}" = set; then
3743   echo $ECHO_N "(cached) $ECHO_C" >&6
3744 else
3745   ac_path_EGREP_found=false
3746 # Loop through the user's path and test for each of PROGNAME-LIST
3747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3748 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3749 do
3750   IFS=$as_save_IFS
3751   test -z "$as_dir" && as_dir=.
3752   for ac_prog in egrep; do
3753   for ac_exec_ext in '' $ac_executable_extensions; do
3754     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3755     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3756     # Check for GNU ac_path_EGREP and select it if it is found.
3757   # Check for GNU $ac_path_EGREP
3758 case `"$ac_path_EGREP" --version 2>&1` in
3759 *GNU*)
3760   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3761 *)
3762   ac_count=0
3763   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3764   while :
3765   do
3766     cat "conftest.in" "conftest.in" >"conftest.tmp"
3767     mv "conftest.tmp" "conftest.in"
3768     cp "conftest.in" "conftest.nl"
3769     echo 'EGREP' >> "conftest.nl"
3770     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3771     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3772     ac_count=`expr $ac_count + 1`
3773     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3774       # Best one so far, save it but keep looking for a better one
3775       ac_cv_path_EGREP="$ac_path_EGREP"
3776       ac_path_EGREP_max=$ac_count
3777     fi
3778     # 10*(2^10) chars as input seems more than enough
3779     test $ac_count -gt 10 && break
3780   done
3781   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3782 esac
3783
3784
3785     $ac_path_EGREP_found && break 3
3786   done
3787 done
3788
3789 done
3790 IFS=$as_save_IFS
3791
3792
3793 fi
3794
3795 EGREP="$ac_cv_path_EGREP"
3796 if test -z "$EGREP"; then
3797   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3798 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3799    { (exit 1); exit 1; }; }
3800 fi
3801
3802 else
3803   ac_cv_path_EGREP=$EGREP
3804 fi
3805
3806
3807    fi
3808 fi
3809 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3810 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3811  EGREP="$ac_cv_path_EGREP"
3812
3813
3814 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3815 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3816 if test "${ac_cv_header_stdc+set}" = set; then
3817   echo $ECHO_N "(cached) $ECHO_C" >&6
3818 else
3819   cat >conftest.$ac_ext <<_ACEOF
3820 /* confdefs.h.  */
3821 _ACEOF
3822 cat confdefs.h >>conftest.$ac_ext
3823 cat >>conftest.$ac_ext <<_ACEOF
3824 /* end confdefs.h.  */
3825 #include <stdlib.h>
3826 #include <stdarg.h>
3827 #include <string.h>
3828 #include <float.h>
3829
3830 int
3831 main ()
3832 {
3833
3834   ;
3835   return 0;
3836 }
3837 _ACEOF
3838 rm -f conftest.$ac_objext
3839 if { (ac_try="$ac_compile"
3840 case "(($ac_try" in
3841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3842   *) ac_try_echo=$ac_try;;
3843 esac
3844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3845   (eval "$ac_compile") 2>conftest.er1
3846   ac_status=$?
3847   grep -v '^ *+' conftest.er1 >conftest.err
3848   rm -f conftest.er1
3849   cat conftest.err >&5
3850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851   (exit $ac_status); } &&
3852          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3853   { (case "(($ac_try" in
3854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3855   *) ac_try_echo=$ac_try;;
3856 esac
3857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3858   (eval "$ac_try") 2>&5
3859   ac_status=$?
3860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861   (exit $ac_status); }; } &&
3862          { ac_try='test -s conftest.$ac_objext'
3863   { (case "(($ac_try" in
3864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3865   *) ac_try_echo=$ac_try;;
3866 esac
3867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3868   (eval "$ac_try") 2>&5
3869   ac_status=$?
3870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3871   (exit $ac_status); }; }; then
3872   ac_cv_header_stdc=yes
3873 else
3874   echo "$as_me: failed program was:" >&5
3875 sed 's/^/| /' conftest.$ac_ext >&5
3876
3877         ac_cv_header_stdc=no
3878 fi
3879
3880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3881
3882 if test $ac_cv_header_stdc = yes; then
3883   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3884   cat >conftest.$ac_ext <<_ACEOF
3885 /* confdefs.h.  */
3886 _ACEOF
3887 cat confdefs.h >>conftest.$ac_ext
3888 cat >>conftest.$ac_ext <<_ACEOF
3889 /* end confdefs.h.  */
3890 #include <string.h>
3891
3892 _ACEOF
3893 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3894   $EGREP "memchr" >/dev/null 2>&1; then
3895   :
3896 else
3897   ac_cv_header_stdc=no
3898 fi
3899 rm -f conftest*
3900
3901 fi
3902
3903 if test $ac_cv_header_stdc = yes; then
3904   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3905   cat >conftest.$ac_ext <<_ACEOF
3906 /* confdefs.h.  */
3907 _ACEOF
3908 cat confdefs.h >>conftest.$ac_ext
3909 cat >>conftest.$ac_ext <<_ACEOF
3910 /* end confdefs.h.  */
3911 #include <stdlib.h>
3912
3913 _ACEOF
3914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3915   $EGREP "free" >/dev/null 2>&1; then
3916   :
3917 else
3918   ac_cv_header_stdc=no
3919 fi
3920 rm -f conftest*
3921
3922 fi
3923
3924 if test $ac_cv_header_stdc = yes; then
3925   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3926   if test "$cross_compiling" = yes; then
3927   :
3928 else
3929   cat >conftest.$ac_ext <<_ACEOF
3930 /* confdefs.h.  */
3931 _ACEOF
3932 cat confdefs.h >>conftest.$ac_ext
3933 cat >>conftest.$ac_ext <<_ACEOF
3934 /* end confdefs.h.  */
3935 #include <ctype.h>
3936 #include <stdlib.h>
3937 #if ((' ' & 0x0FF) == 0x020)
3938 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3939 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3940 #else
3941 # define ISLOWER(c) \
3942                    (('a' <= (c) && (c) <= 'i') \
3943                      || ('j' <= (c) && (c) <= 'r') \
3944                      || ('s' <= (c) && (c) <= 'z'))
3945 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3946 #endif
3947
3948 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3949 int
3950 main ()
3951 {
3952   int i;
3953   for (i = 0; i < 256; i++)
3954     if (XOR (islower (i), ISLOWER (i))
3955         || toupper (i) != TOUPPER (i))
3956       return 2;
3957   return 0;
3958 }
3959 _ACEOF
3960 rm -f conftest$ac_exeext
3961 if { (ac_try="$ac_link"
3962 case "(($ac_try" in
3963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3964   *) ac_try_echo=$ac_try;;
3965 esac
3966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3967   (eval "$ac_link") 2>&5
3968   ac_status=$?
3969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3971   { (case "(($ac_try" in
3972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3973   *) ac_try_echo=$ac_try;;
3974 esac
3975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3976   (eval "$ac_try") 2>&5
3977   ac_status=$?
3978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3979   (exit $ac_status); }; }; then
3980   :
3981 else
3982   echo "$as_me: program exited with status $ac_status" >&5
3983 echo "$as_me: failed program was:" >&5
3984 sed 's/^/| /' conftest.$ac_ext >&5
3985
3986 ( exit $ac_status )
3987 ac_cv_header_stdc=no
3988 fi
3989 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3990 fi
3991
3992
3993 fi
3994 fi
3995 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3996 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3997 if test $ac_cv_header_stdc = yes; then
3998
3999 cat >>confdefs.h <<\_ACEOF
4000 #define STDC_HEADERS 1
4001 _ACEOF
4002
4003 fi
4004
4005 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4016                   inttypes.h stdint.h unistd.h
4017 do
4018 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4019 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4020 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4021 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4022   echo $ECHO_N "(cached) $ECHO_C" >&6
4023 else
4024   cat >conftest.$ac_ext <<_ACEOF
4025 /* confdefs.h.  */
4026 _ACEOF
4027 cat confdefs.h >>conftest.$ac_ext
4028 cat >>conftest.$ac_ext <<_ACEOF
4029 /* end confdefs.h.  */
4030 $ac_includes_default
4031
4032 #include <$ac_header>
4033 _ACEOF
4034 rm -f conftest.$ac_objext
4035 if { (ac_try="$ac_compile"
4036 case "(($ac_try" in
4037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4038   *) ac_try_echo=$ac_try;;
4039 esac
4040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4041   (eval "$ac_compile") 2>conftest.er1
4042   ac_status=$?
4043   grep -v '^ *+' conftest.er1 >conftest.err
4044   rm -f conftest.er1
4045   cat conftest.err >&5
4046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047   (exit $ac_status); } &&
4048          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4049   { (case "(($ac_try" in
4050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4051   *) ac_try_echo=$ac_try;;
4052 esac
4053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4054   (eval "$ac_try") 2>&5
4055   ac_status=$?
4056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4057   (exit $ac_status); }; } &&
4058          { ac_try='test -s conftest.$ac_objext'
4059   { (case "(($ac_try" in
4060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4061   *) ac_try_echo=$ac_try;;
4062 esac
4063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4064   (eval "$ac_try") 2>&5
4065   ac_status=$?
4066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067   (exit $ac_status); }; }; then
4068   eval "$as_ac_Header=yes"
4069 else
4070   echo "$as_me: failed program was:" >&5
4071 sed 's/^/| /' conftest.$ac_ext >&5
4072
4073         eval "$as_ac_Header=no"
4074 fi
4075
4076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4077 fi
4078 ac_res=`eval echo '${'$as_ac_Header'}'`
4079                { echo "$as_me:$LINENO: result: $ac_res" >&5
4080 echo "${ECHO_T}$ac_res" >&6; }
4081 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4082   cat >>confdefs.h <<_ACEOF
4083 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4084 _ACEOF
4085
4086 fi
4087
4088 done
4089
4090
4091 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4092 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4093 if test "${ac_cv_c_bigendian+set}" = set; then
4094   echo $ECHO_N "(cached) $ECHO_C" >&6
4095 else
4096   # See if sys/param.h defines the BYTE_ORDER macro.
4097 cat >conftest.$ac_ext <<_ACEOF
4098 /* confdefs.h.  */
4099 _ACEOF
4100 cat confdefs.h >>conftest.$ac_ext
4101 cat >>conftest.$ac_ext <<_ACEOF
4102 /* end confdefs.h.  */
4103 #include <sys/types.h>
4104 #include <sys/param.h>
4105
4106 int
4107 main ()
4108 {
4109 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4110  bogus endian macros
4111 #endif
4112
4113   ;
4114   return 0;
4115 }
4116 _ACEOF
4117 rm -f conftest.$ac_objext
4118 if { (ac_try="$ac_compile"
4119 case "(($ac_try" in
4120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4121   *) ac_try_echo=$ac_try;;
4122 esac
4123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4124   (eval "$ac_compile") 2>conftest.er1
4125   ac_status=$?
4126   grep -v '^ *+' conftest.er1 >conftest.err
4127   rm -f conftest.er1
4128   cat conftest.err >&5
4129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4130   (exit $ac_status); } &&
4131          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4132   { (case "(($ac_try" in
4133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4134   *) ac_try_echo=$ac_try;;
4135 esac
4136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4137   (eval "$ac_try") 2>&5
4138   ac_status=$?
4139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4140   (exit $ac_status); }; } &&
4141          { ac_try='test -s conftest.$ac_objext'
4142   { (case "(($ac_try" in
4143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4144   *) ac_try_echo=$ac_try;;
4145 esac
4146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4147   (eval "$ac_try") 2>&5
4148   ac_status=$?
4149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4150   (exit $ac_status); }; }; then
4151   # It does; now see whether it defined to BIG_ENDIAN or not.
4152 cat >conftest.$ac_ext <<_ACEOF
4153 /* confdefs.h.  */
4154 _ACEOF
4155 cat confdefs.h >>conftest.$ac_ext
4156 cat >>conftest.$ac_ext <<_ACEOF
4157 /* end confdefs.h.  */
4158 #include <sys/types.h>
4159 #include <sys/param.h>
4160
4161 int
4162 main ()
4163 {
4164 #if BYTE_ORDER != BIG_ENDIAN
4165  not big endian
4166 #endif
4167
4168   ;
4169   return 0;
4170 }
4171 _ACEOF
4172 rm -f conftest.$ac_objext
4173 if { (ac_try="$ac_compile"
4174 case "(($ac_try" in
4175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4176   *) ac_try_echo=$ac_try;;
4177 esac
4178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4179   (eval "$ac_compile") 2>conftest.er1
4180   ac_status=$?
4181   grep -v '^ *+' conftest.er1 >conftest.err
4182   rm -f conftest.er1
4183   cat conftest.err >&5
4184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4185   (exit $ac_status); } &&
4186          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4187   { (case "(($ac_try" in
4188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4189   *) ac_try_echo=$ac_try;;
4190 esac
4191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4192   (eval "$ac_try") 2>&5
4193   ac_status=$?
4194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195   (exit $ac_status); }; } &&
4196          { ac_try='test -s conftest.$ac_objext'
4197   { (case "(($ac_try" in
4198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4199   *) ac_try_echo=$ac_try;;
4200 esac
4201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4202   (eval "$ac_try") 2>&5
4203   ac_status=$?
4204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4205   (exit $ac_status); }; }; then
4206   ac_cv_c_bigendian=yes
4207 else
4208   echo "$as_me: failed program was:" >&5
4209 sed 's/^/| /' conftest.$ac_ext >&5
4210
4211         ac_cv_c_bigendian=no
4212 fi
4213
4214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4215 else
4216   echo "$as_me: failed program was:" >&5
4217 sed 's/^/| /' conftest.$ac_ext >&5
4218
4219         # It does not; compile a test program.
4220 if test "$cross_compiling" = yes; then
4221   # try to guess the endianness by grepping values into an object file
4222   ac_cv_c_bigendian=unknown
4223   cat >conftest.$ac_ext <<_ACEOF
4224 /* confdefs.h.  */
4225 _ACEOF
4226 cat confdefs.h >>conftest.$ac_ext
4227 cat >>conftest.$ac_ext <<_ACEOF
4228 /* end confdefs.h.  */
4229 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4230 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4231 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4232 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4233 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4234 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4235 int
4236 main ()
4237 {
4238  _ascii (); _ebcdic ();
4239   ;
4240   return 0;
4241 }
4242 _ACEOF
4243 rm -f conftest.$ac_objext
4244 if { (ac_try="$ac_compile"
4245 case "(($ac_try" in
4246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4247   *) ac_try_echo=$ac_try;;
4248 esac
4249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4250   (eval "$ac_compile") 2>conftest.er1
4251   ac_status=$?
4252   grep -v '^ *+' conftest.er1 >conftest.err
4253   rm -f conftest.er1
4254   cat conftest.err >&5
4255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4256   (exit $ac_status); } &&
4257          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4258   { (case "(($ac_try" in
4259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4260   *) ac_try_echo=$ac_try;;
4261 esac
4262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4263   (eval "$ac_try") 2>&5
4264   ac_status=$?
4265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4266   (exit $ac_status); }; } &&
4267          { ac_try='test -s conftest.$ac_objext'
4268   { (case "(($ac_try" in
4269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4270   *) ac_try_echo=$ac_try;;
4271 esac
4272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4273   (eval "$ac_try") 2>&5
4274   ac_status=$?
4275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276   (exit $ac_status); }; }; then
4277   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4278   ac_cv_c_bigendian=yes
4279 fi
4280 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4281   if test "$ac_cv_c_bigendian" = unknown; then
4282     ac_cv_c_bigendian=no
4283   else
4284     # finding both strings is unlikely to happen, but who knows?
4285     ac_cv_c_bigendian=unknown
4286   fi
4287 fi
4288 else
4289   echo "$as_me: failed program was:" >&5
4290 sed 's/^/| /' conftest.$ac_ext >&5
4291
4292
4293 fi
4294
4295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4296 else
4297   cat >conftest.$ac_ext <<_ACEOF
4298 /* confdefs.h.  */
4299 _ACEOF
4300 cat confdefs.h >>conftest.$ac_ext
4301 cat >>conftest.$ac_ext <<_ACEOF
4302 /* end confdefs.h.  */
4303 $ac_includes_default
4304 int
4305 main ()
4306 {
4307
4308   /* Are we little or big endian?  From Harbison&Steele.  */
4309   union
4310   {
4311     long int l;
4312     char c[sizeof (long int)];
4313   } u;
4314   u.l = 1;
4315   return u.c[sizeof (long int) - 1] == 1;
4316
4317   ;
4318   return 0;
4319 }
4320 _ACEOF
4321 rm -f conftest$ac_exeext
4322 if { (ac_try="$ac_link"
4323 case "(($ac_try" in
4324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4325   *) ac_try_echo=$ac_try;;
4326 esac
4327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4328   (eval "$ac_link") 2>&5
4329   ac_status=$?
4330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4331   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4332   { (case "(($ac_try" in
4333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4334   *) ac_try_echo=$ac_try;;
4335 esac
4336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4337   (eval "$ac_try") 2>&5
4338   ac_status=$?
4339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340   (exit $ac_status); }; }; then
4341   ac_cv_c_bigendian=no
4342 else
4343   echo "$as_me: program exited with status $ac_status" >&5
4344 echo "$as_me: failed program was:" >&5
4345 sed 's/^/| /' conftest.$ac_ext >&5
4346
4347 ( exit $ac_status )
4348 ac_cv_c_bigendian=yes
4349 fi
4350 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4351 fi
4352
4353
4354 fi
4355
4356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4357 fi
4358 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4359 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4360 case $ac_cv_c_bigendian in
4361   yes)
4362     ENDIAN=big
4363  ;;
4364   no)
4365     ENDIAN=little
4366  ;;
4367   *)
4368     { { echo "$as_me:$LINENO: error: unknown endianness
4369 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4370 echo "$as_me: error: unknown endianness
4371 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4372    { (exit 1); exit 1; }; } ;;
4373 esac
4374
4375
4376 if test "$cross_compiling" = yes; then
4377   LLVM_CROSS_COMPILING=1
4378
4379
4380 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4381 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4382 if test "${ac_cv_build_exeext+set}" = set; then
4383   echo $ECHO_N "(cached) $ECHO_C" >&6
4384 else
4385   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4386   ac_cv_build_exeext=.exe
4387 else
4388   ac_build_prefix=${build_alias}-
4389
4390   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4391 set dummy ${ac_build_prefix}gcc; ac_word=$2
4392 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4394 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4395   echo $ECHO_N "(cached) $ECHO_C" >&6
4396 else
4397   if test -n "$BUILD_CC"; then
4398   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4399 else
4400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4401 for as_dir in $PATH
4402 do
4403   IFS=$as_save_IFS
4404   test -z "$as_dir" && as_dir=.
4405   for ac_exec_ext in '' $ac_executable_extensions; do
4406   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4407     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4408     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4409     break 2
4410   fi
4411 done
4412 done
4413 IFS=$as_save_IFS
4414
4415 fi
4416 fi
4417 BUILD_CC=$ac_cv_prog_BUILD_CC
4418 if test -n "$BUILD_CC"; then
4419   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4420 echo "${ECHO_T}$BUILD_CC" >&6; }
4421 else
4422   { echo "$as_me:$LINENO: result: no" >&5
4423 echo "${ECHO_T}no" >&6; }
4424 fi
4425
4426
4427   if test -z "$BUILD_CC"; then
4428      # Extract the first word of "gcc", so it can be a program name with args.
4429 set dummy gcc; ac_word=$2
4430 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4432 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4433   echo $ECHO_N "(cached) $ECHO_C" >&6
4434 else
4435   if test -n "$BUILD_CC"; then
4436   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4437 else
4438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4439 for as_dir in $PATH
4440 do
4441   IFS=$as_save_IFS
4442   test -z "$as_dir" && as_dir=.
4443   for ac_exec_ext in '' $ac_executable_extensions; do
4444   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4445     ac_cv_prog_BUILD_CC="gcc"
4446     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4447     break 2
4448   fi
4449 done
4450 done
4451 IFS=$as_save_IFS
4452
4453 fi
4454 fi
4455 BUILD_CC=$ac_cv_prog_BUILD_CC
4456 if test -n "$BUILD_CC"; then
4457   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4458 echo "${ECHO_T}$BUILD_CC" >&6; }
4459 else
4460   { echo "$as_me:$LINENO: result: no" >&5
4461 echo "${ECHO_T}no" >&6; }
4462 fi
4463
4464
4465      if test -z "$BUILD_CC"; then
4466        # Extract the first word of "cc", so it can be a program name with args.
4467 set dummy cc; ac_word=$2
4468 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4470 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4471   echo $ECHO_N "(cached) $ECHO_C" >&6
4472 else
4473   if test -n "$BUILD_CC"; then
4474   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4475 else
4476   ac_prog_rejected=no
4477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4478 for as_dir in $PATH
4479 do
4480   IFS=$as_save_IFS
4481   test -z "$as_dir" && as_dir=.
4482   for ac_exec_ext in '' $ac_executable_extensions; do
4483   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4484     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4485        ac_prog_rejected=yes
4486        continue
4487      fi
4488     ac_cv_prog_BUILD_CC="cc"
4489     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4490     break 2
4491   fi
4492 done
4493 done
4494 IFS=$as_save_IFS
4495
4496 if test $ac_prog_rejected = yes; then
4497   # We found a bogon in the path, so make sure we never use it.
4498   set dummy $ac_cv_prog_BUILD_CC
4499   shift
4500   if test $# != 0; then
4501     # We chose a different compiler from the bogus one.
4502     # However, it has the same basename, so the bogon will be chosen
4503     # first if we set BUILD_CC to just the basename; use the full file name.
4504     shift
4505     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4506   fi
4507 fi
4508 fi
4509 fi
4510 BUILD_CC=$ac_cv_prog_BUILD_CC
4511 if test -n "$BUILD_CC"; then
4512   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4513 echo "${ECHO_T}$BUILD_CC" >&6; }
4514 else
4515   { echo "$as_me:$LINENO: result: no" >&5
4516 echo "${ECHO_T}no" >&6; }
4517 fi
4518
4519
4520      fi
4521   fi
4522   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4523 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4524    { (exit 1); exit 1; }; }
4525   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4526   rm -f conftest*
4527   echo 'int main () { return 0; }' > conftest.$ac_ext
4528   ac_cv_build_exeext=
4529   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4530   (eval $ac_build_link) 2>&5
4531   ac_status=$?
4532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533   (exit $ac_status); }; then
4534     for file in conftest.*; do
4535       case $file in
4536       *.c | *.o | *.obj) ;;
4537       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4538       esac
4539     done
4540   else
4541     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4542 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4543    { (exit 1); exit 1; }; }
4544   fi
4545   rm -f conftest*
4546   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4547 fi
4548 fi
4549
4550 BUILD_EXEEXT=""
4551 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4552 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4553 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4554 ac_build_exeext=$BUILD_EXEEXT
4555
4556 else
4557   LLVM_CROSS_COMPILING=0
4558
4559 fi
4560
4561 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then
4562   cvsbuild="yes"
4563   optimize="no"
4564   CVSBUILD=CVSBUILD=1
4565
4566 else
4567   cvsbuild="no"
4568   optimize="yes"
4569 fi
4570
4571
4572 # Check whether --enable-optimized was given.
4573 if test "${enable_optimized+set}" = set; then
4574   enableval=$enable_optimized;
4575 else
4576   enableval=$optimize
4577 fi
4578
4579 if test ${enableval} = "no" ; then
4580   ENABLE_OPTIMIZED=
4581
4582 else
4583   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4584
4585 fi
4586
4587 # Check whether --enable-assertions was given.
4588 if test "${enable_assertions+set}" = set; then
4589   enableval=$enable_assertions;
4590 else
4591   enableval="yes"
4592 fi
4593
4594 if test ${enableval} = "yes" ; then
4595   DISABLE_ASSERTIONS=
4596
4597 else
4598   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4599
4600 fi
4601
4602 # Check whether --enable-expensive-checks was given.
4603 if test "${enable_expensive_checks+set}" = set; then
4604   enableval=$enable_expensive_checks;
4605 else
4606   enableval="no"
4607 fi
4608
4609 if test ${enableval} = "yes" ; then
4610   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4611
4612   EXPENSIVE_CHECKS=yes
4613
4614 else
4615   ENABLE_EXPENSIVE_CHECKS=
4616
4617   EXPENSIVE_CHECKS=no
4618
4619 fi
4620
4621 # Check whether --enable-debug-runtime was given.
4622 if test "${enable_debug_runtime+set}" = set; then
4623   enableval=$enable_debug_runtime;
4624 else
4625   enableval=no
4626 fi
4627
4628 if test ${enableval} = "no" ; then
4629   DEBUG_RUNTIME=
4630
4631 else
4632   DEBUG_RUNTIME=DEBUG_RUNTIME=1
4633
4634 fi
4635
4636 # Check whether --enable-jit was given.
4637 if test "${enable_jit+set}" = set; then
4638   enableval=$enable_jit;
4639 else
4640   enableval=default
4641 fi
4642
4643 if test ${enableval} = "no"
4644 then
4645   JIT=
4646
4647 else
4648   case "$llvm_cv_target_arch" in
4649     x86)     TARGET_HAS_JIT=1
4650  ;;
4651     Sparc)   TARGET_HAS_JIT=0
4652  ;;
4653     PowerPC) TARGET_HAS_JIT=1
4654  ;;
4655     x86_64)  TARGET_HAS_JIT=1
4656  ;;
4657     Alpha)   TARGET_HAS_JIT=1
4658  ;;
4659     IA64)    TARGET_HAS_JIT=0
4660  ;;
4661     ARM)     TARGET_HAS_JIT=0
4662  ;;
4663     Mips)    TARGET_HAS_JIT=0
4664  ;;
4665     *)       TARGET_HAS_JIT=0
4666  ;;
4667   esac
4668 fi
4669
4670 # Check whether --enable-doxygen was given.
4671 if test "${enable_doxygen+set}" = set; then
4672   enableval=$enable_doxygen;
4673 else
4674   enableval=default
4675 fi
4676
4677 case "$enableval" in
4678   yes) ENABLE_DOXYGEN=1
4679  ;;
4680   no)  ENABLE_DOXYGEN=0
4681  ;;
4682   default) ENABLE_DOXYGEN=0
4683  ;;
4684   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4685 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4686    { (exit 1); exit 1; }; } ;;
4687 esac
4688
4689 # Check whether --enable-threads was given.
4690 if test "${enable_threads+set}" = set; then
4691   enableval=$enable_threads;
4692 else
4693   enableval=default
4694 fi
4695
4696 case "$enableval" in
4697   yes) ENABLE_THREADS=1
4698  ;;
4699   no)  ENABLE_THREADS=0
4700  ;;
4701   default) ENABLE_THREADS=1
4702  ;;
4703   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4704 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4705    { (exit 1); exit 1; }; } ;;
4706 esac
4707
4708 cat >>confdefs.h <<_ACEOF
4709 #define ENABLE_THREADS $ENABLE_THREADS
4710 _ACEOF
4711
4712
4713 # Check whether --enable-pic was given.
4714 if test "${enable_pic+set}" = set; then
4715   enableval=$enable_pic;
4716 else
4717   enableval=default
4718 fi
4719
4720 case "$enableval" in
4721   yes) ENABLE_PIC=1
4722  ;;
4723   no)  ENABLE_PIC=0
4724  ;;
4725   default) ENABLE_PIC=0
4726  ;;
4727   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4728 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4729    { (exit 1); exit 1; }; } ;;
4730 esac
4731
4732 cat >>confdefs.h <<_ACEOF
4733 #define ENABLE_PIC $ENABLE_PIC
4734 _ACEOF
4735
4736
4737 TARGETS_TO_BUILD=""
4738 # Check whether --enable-targets was given.
4739 if test "${enable_targets+set}" = set; then
4740   enableval=$enable_targets;
4741 else
4742   enableval=all
4743 fi
4744
4745 case "$enableval" in
4746   all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU CBackend MSIL" ;;
4747   host-only)
4748     case "$llvm_cv_target_arch" in
4749       x86)     TARGETS_TO_BUILD="X86" ;;
4750       x86_64)  TARGETS_TO_BUILD="X86" ;;
4751       Sparc)   TARGETS_TO_BUILD="Sparc" ;;
4752       PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4753       Alpha)   TARGETS_TO_BUILD="Alpha" ;;
4754       IA64)    TARGETS_TO_BUILD="IA64" ;;
4755       ARM)     TARGETS_TO_BUILD="ARM" ;;
4756       Mips)    TARGETS_TO_BUILD="Mips" ;;
4757       CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
4758       *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4759 echo "$as_me: error: Can not set target to build" >&2;}
4760    { (exit 1); exit 1; }; } ;;
4761     esac
4762     ;;
4763   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4764       case "$a_target" in
4765         x86)     TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4766         x86_64)  TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4767         sparc)   TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4768         powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4769         alpha)   TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4770         ia64)    TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4771         arm)     TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4772         mips)    TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4773         spu)     TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4774         cbe)     TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4775         msil)    TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4776         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4777 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4778    { (exit 1); exit 1; }; } ;;
4779       esac
4780   done
4781   ;;
4782 esac
4783 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4784
4785
4786 # Check whether --enable-cbe-printf-a was given.
4787 if test "${enable_cbe_printf_a+set}" = set; then
4788   enableval=$enable_cbe_printf_a;
4789 else
4790   enableval=default
4791 fi
4792
4793 case "$enableval" in
4794   yes) ENABLE_CBE_PRINTF_A=1
4795  ;;
4796   no)  ENABLE_CBE_PRINTF_A=0
4797  ;;
4798   default)  ENABLE_CBE_PRINTF_A=1
4799  ;;
4800   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4801 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4802    { (exit 1); exit 1; }; } ;;
4803 esac
4804
4805 cat >>confdefs.h <<_ACEOF
4806 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4807 _ACEOF
4808
4809
4810
4811 # Check whether --with-llvmgccdir was given.
4812 if test "${with_llvmgccdir+set}" = set; then
4813   withval=$with_llvmgccdir;
4814 else
4815   withval=default
4816 fi
4817
4818 case "$withval" in
4819   default) WITH_LLVMGCCDIR=default ;;
4820   /* | [A-Za-z]:[\\/]*)      WITH_LLVMGCCDIR=$withval ;;
4821   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4822 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4823    { (exit 1); exit 1; }; } ;;
4824 esac
4825
4826
4827 # Check whether --with-llvmgcc was given.
4828 if test "${with_llvmgcc+set}" = set; then
4829   withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
4830       WITH_LLVMGCCDIR=""
4831 fi
4832
4833
4834
4835 # Check whether --with-llvmgxx was given.
4836 if test "${with_llvmgxx+set}" = set; then
4837   withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
4838     WITH_LLVMGCCDIR=""
4839 fi
4840
4841
4842 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
4843    { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
4844 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
4845    { (exit 1); exit 1; }; };
4846 fi
4847
4848 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
4849    { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
4850 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
4851    { (exit 1); exit 1; }; };
4852 fi
4853
4854
4855 # Check whether --with-extra-options was given.
4856 if test "${with_extra_options+set}" = set; then
4857   withval=$with_extra_options;
4858 else
4859   withval=default
4860 fi
4861
4862 case "$withval" in
4863   default) EXTRA_OPTIONS= ;;
4864   *) EXTRA_OPTIONS=$withval ;;
4865 esac
4866 EXTRA_OPTIONS=$EXTRA_OPTIONS
4867
4868
4869 # Check whether --enable-bindings was given.
4870 if test "${enable_bindings+set}" = set; then
4871   enableval=$enable_bindings;
4872 else
4873   enableval=default
4874 fi
4875
4876 BINDINGS_TO_BUILD=""
4877 case "$enableval" in
4878   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
4879   all ) BINDINGS_TO_BUILD="ocaml" ;;
4880   none | no) BINDINGS_TO_BUILD="" ;;
4881   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
4882       case "$a_binding" in
4883         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
4884         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
4885 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
4886    { (exit 1); exit 1; }; } ;;
4887       esac
4888   done
4889   ;;
4890 esac
4891
4892
4893 # Check whether --with-ocaml-libdir was given.
4894 if test "${with_ocaml_libdir+set}" = set; then
4895   withval=$with_ocaml_libdir;
4896 else
4897   withval=auto
4898 fi
4899
4900 case "$withval" in
4901   auto) with_ocaml_libdir="$withval" ;;
4902   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
4903   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
4904 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
4905    { (exit 1); exit 1; }; } ;;
4906 esac
4907
4908
4909 ac_ext=c
4910 ac_cpp='$CPP $CPPFLAGS'
4911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4914 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4915 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4916 # On Suns, sometimes $CPP names a directory.
4917 if test -n "$CPP" && test -d "$CPP"; then
4918   CPP=
4919 fi
4920 if test -z "$CPP"; then
4921   if test "${ac_cv_prog_CPP+set}" = set; then
4922   echo $ECHO_N "(cached) $ECHO_C" >&6
4923 else
4924       # Double quotes because CPP needs to be expanded
4925     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4926     do
4927       ac_preproc_ok=false
4928 for ac_c_preproc_warn_flag in '' yes
4929 do
4930   # Use a header file that comes with gcc, so configuring glibc
4931   # with a fresh cross-compiler works.
4932   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4933   # <limits.h> exists even on freestanding compilers.
4934   # On the NeXT, cc -E runs the code through the compiler's parser,
4935   # not just through cpp. "Syntax error" is here to catch this case.
4936   cat >conftest.$ac_ext <<_ACEOF
4937 /* confdefs.h.  */
4938 _ACEOF
4939 cat confdefs.h >>conftest.$ac_ext
4940 cat >>conftest.$ac_ext <<_ACEOF
4941 /* end confdefs.h.  */
4942 #ifdef __STDC__
4943 # include <limits.h>
4944 #else
4945 # include <assert.h>
4946 #endif
4947                      Syntax error
4948 _ACEOF
4949 if { (ac_try="$ac_cpp conftest.$ac_ext"
4950 case "(($ac_try" in
4951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4952   *) ac_try_echo=$ac_try;;
4953 esac
4954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4955   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4956   ac_status=$?
4957   grep -v '^ *+' conftest.er1 >conftest.err
4958   rm -f conftest.er1
4959   cat conftest.err >&5
4960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961   (exit $ac_status); } >/dev/null; then
4962   if test -s conftest.err; then
4963     ac_cpp_err=$ac_c_preproc_warn_flag
4964     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4965   else
4966     ac_cpp_err=
4967   fi
4968 else
4969   ac_cpp_err=yes
4970 fi
4971 if test -z "$ac_cpp_err"; then
4972   :
4973 else
4974   echo "$as_me: failed program was:" >&5
4975 sed 's/^/| /' conftest.$ac_ext >&5
4976
4977   # Broken: fails on valid input.
4978 continue
4979 fi
4980
4981 rm -f conftest.err conftest.$ac_ext
4982
4983   # OK, works on sane cases.  Now check whether nonexistent headers
4984   # can be detected and how.
4985   cat >conftest.$ac_ext <<_ACEOF
4986 /* confdefs.h.  */
4987 _ACEOF
4988 cat confdefs.h >>conftest.$ac_ext
4989 cat >>conftest.$ac_ext <<_ACEOF
4990 /* end confdefs.h.  */
4991 #include <ac_nonexistent.h>
4992 _ACEOF
4993 if { (ac_try="$ac_cpp conftest.$ac_ext"
4994 case "(($ac_try" in
4995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4996   *) ac_try_echo=$ac_try;;
4997 esac
4998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4999   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5000   ac_status=$?
5001   grep -v '^ *+' conftest.er1 >conftest.err
5002   rm -f conftest.er1
5003   cat conftest.err >&5
5004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5005   (exit $ac_status); } >/dev/null; then
5006   if test -s conftest.err; then
5007     ac_cpp_err=$ac_c_preproc_warn_flag
5008     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5009   else
5010     ac_cpp_err=
5011   fi
5012 else
5013   ac_cpp_err=yes
5014 fi
5015 if test -z "$ac_cpp_err"; then
5016   # Broken: success on invalid input.
5017 continue
5018 else
5019   echo "$as_me: failed program was:" >&5
5020 sed 's/^/| /' conftest.$ac_ext >&5
5021
5022   # Passes both tests.
5023 ac_preproc_ok=:
5024 break
5025 fi
5026
5027 rm -f conftest.err conftest.$ac_ext
5028
5029 done
5030 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5031 rm -f conftest.err conftest.$ac_ext
5032 if $ac_preproc_ok; then
5033   break
5034 fi
5035
5036     done
5037     ac_cv_prog_CPP=$CPP
5038
5039 fi
5040   CPP=$ac_cv_prog_CPP
5041 else
5042   ac_cv_prog_CPP=$CPP
5043 fi
5044 { echo "$as_me:$LINENO: result: $CPP" >&5
5045 echo "${ECHO_T}$CPP" >&6; }
5046 ac_preproc_ok=false
5047 for ac_c_preproc_warn_flag in '' yes
5048 do
5049   # Use a header file that comes with gcc, so configuring glibc
5050   # with a fresh cross-compiler works.
5051   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5052   # <limits.h> exists even on freestanding compilers.
5053   # On the NeXT, cc -E runs the code through the compiler's parser,
5054   # not just through cpp. "Syntax error" is here to catch this case.
5055   cat >conftest.$ac_ext <<_ACEOF
5056 /* confdefs.h.  */
5057 _ACEOF
5058 cat confdefs.h >>conftest.$ac_ext
5059 cat >>conftest.$ac_ext <<_ACEOF
5060 /* end confdefs.h.  */
5061 #ifdef __STDC__
5062 # include <limits.h>
5063 #else
5064 # include <assert.h>
5065 #endif
5066                      Syntax error
5067 _ACEOF
5068 if { (ac_try="$ac_cpp conftest.$ac_ext"
5069 case "(($ac_try" in
5070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5071   *) ac_try_echo=$ac_try;;
5072 esac
5073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5074   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5075   ac_status=$?
5076   grep -v '^ *+' conftest.er1 >conftest.err
5077   rm -f conftest.er1
5078   cat conftest.err >&5
5079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5080   (exit $ac_status); } >/dev/null; then
5081   if test -s conftest.err; then
5082     ac_cpp_err=$ac_c_preproc_warn_flag
5083     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5084   else
5085     ac_cpp_err=
5086   fi
5087 else
5088   ac_cpp_err=yes
5089 fi
5090 if test -z "$ac_cpp_err"; then
5091   :
5092 else
5093   echo "$as_me: failed program was:" >&5
5094 sed 's/^/| /' conftest.$ac_ext >&5
5095
5096   # Broken: fails on valid input.
5097 continue
5098 fi
5099
5100 rm -f conftest.err conftest.$ac_ext
5101
5102   # OK, works on sane cases.  Now check whether nonexistent headers
5103   # can be detected and how.
5104   cat >conftest.$ac_ext <<_ACEOF
5105 /* confdefs.h.  */
5106 _ACEOF
5107 cat confdefs.h >>conftest.$ac_ext
5108 cat >>conftest.$ac_ext <<_ACEOF
5109 /* end confdefs.h.  */
5110 #include <ac_nonexistent.h>
5111 _ACEOF
5112 if { (ac_try="$ac_cpp conftest.$ac_ext"
5113 case "(($ac_try" in
5114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5115   *) ac_try_echo=$ac_try;;
5116 esac
5117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5118   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5119   ac_status=$?
5120   grep -v '^ *+' conftest.er1 >conftest.err
5121   rm -f conftest.er1
5122   cat conftest.err >&5
5123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5124   (exit $ac_status); } >/dev/null; then
5125   if test -s conftest.err; then
5126     ac_cpp_err=$ac_c_preproc_warn_flag
5127     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5128   else
5129     ac_cpp_err=
5130   fi
5131 else
5132   ac_cpp_err=yes
5133 fi
5134 if test -z "$ac_cpp_err"; then
5135   # Broken: success on invalid input.
5136 continue
5137 else
5138   echo "$as_me: failed program was:" >&5
5139 sed 's/^/| /' conftest.$ac_ext >&5
5140
5141   # Passes both tests.
5142 ac_preproc_ok=:
5143 break
5144 fi
5145
5146 rm -f conftest.err conftest.$ac_ext
5147
5148 done
5149 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5150 rm -f conftest.err conftest.$ac_ext
5151 if $ac_preproc_ok; then
5152   :
5153 else
5154   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5155 See \`config.log' for more details." >&5
5156 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5157 See \`config.log' for more details." >&2;}
5158    { (exit 1); exit 1; }; }
5159 fi
5160
5161 ac_ext=c
5162 ac_cpp='$CPP $CPPFLAGS'
5163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5166
5167 ac_ext=c
5168 ac_cpp='$CPP $CPPFLAGS'
5169 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5170 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5171 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5172 if test -n "$ac_tool_prefix"; then
5173   for ac_prog in gcc
5174   do
5175     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5176 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5177 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5179 if test "${ac_cv_prog_CC+set}" = set; then
5180   echo $ECHO_N "(cached) $ECHO_C" >&6
5181 else
5182   if test -n "$CC"; then
5183   ac_cv_prog_CC="$CC" # Let the user override the test.
5184 else
5185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5186 for as_dir in $PATH
5187 do
5188   IFS=$as_save_IFS
5189   test -z "$as_dir" && as_dir=.
5190   for ac_exec_ext in '' $ac_executable_extensions; do
5191   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5192     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5193     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5194     break 2
5195   fi
5196 done
5197 done
5198 IFS=$as_save_IFS
5199
5200 fi
5201 fi
5202 CC=$ac_cv_prog_CC
5203 if test -n "$CC"; then
5204   { echo "$as_me:$LINENO: result: $CC" >&5
5205 echo "${ECHO_T}$CC" >&6; }
5206 else
5207   { echo "$as_me:$LINENO: result: no" >&5
5208 echo "${ECHO_T}no" >&6; }
5209 fi
5210
5211
5212     test -n "$CC" && break
5213   done
5214 fi
5215 if test -z "$CC"; then
5216   ac_ct_CC=$CC
5217   for ac_prog in gcc
5218 do
5219   # Extract the first word of "$ac_prog", so it can be a program name with args.
5220 set dummy $ac_prog; ac_word=$2
5221 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5223 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5224   echo $ECHO_N "(cached) $ECHO_C" >&6
5225 else
5226   if test -n "$ac_ct_CC"; then
5227   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5228 else
5229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5230 for as_dir in $PATH
5231 do
5232   IFS=$as_save_IFS
5233   test -z "$as_dir" && as_dir=.
5234   for ac_exec_ext in '' $ac_executable_extensions; do
5235   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5236     ac_cv_prog_ac_ct_CC="$ac_prog"
5237     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5238     break 2
5239   fi
5240 done
5241 done
5242 IFS=$as_save_IFS
5243
5244 fi
5245 fi
5246 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5247 if test -n "$ac_ct_CC"; then
5248   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5249 echo "${ECHO_T}$ac_ct_CC" >&6; }
5250 else
5251   { echo "$as_me:$LINENO: result: no" >&5
5252 echo "${ECHO_T}no" >&6; }
5253 fi
5254
5255
5256   test -n "$ac_ct_CC" && break
5257 done
5258
5259   if test "x$ac_ct_CC" = x; then
5260     CC=""
5261   else
5262     case $cross_compiling:$ac_tool_warned in
5263 yes:)
5264 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5265 whose name does not start with the host triplet.  If you think this
5266 configuration is useful to you, please write to autoconf@gnu.org." >&5
5267 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5268 whose name does not start with the host triplet.  If you think this
5269 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5270 ac_tool_warned=yes ;;
5271 esac
5272     CC=$ac_ct_CC
5273   fi
5274 fi
5275
5276
5277 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5278 See \`config.log' for more details." >&5
5279 echo "$as_me: error: no acceptable C compiler found in \$PATH
5280 See \`config.log' for more details." >&2;}
5281    { (exit 1); exit 1; }; }
5282
5283 # Provide some information about the compiler.
5284 echo "$as_me:$LINENO: checking for C compiler version" >&5
5285 ac_compiler=`set X $ac_compile; echo $2`
5286 { (ac_try="$ac_compiler --version >&5"
5287 case "(($ac_try" in
5288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5289   *) ac_try_echo=$ac_try;;
5290 esac
5291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5292   (eval "$ac_compiler --version >&5") 2>&5
5293   ac_status=$?
5294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5295   (exit $ac_status); }
5296 { (ac_try="$ac_compiler -v >&5"
5297 case "(($ac_try" in
5298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5299   *) ac_try_echo=$ac_try;;
5300 esac
5301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5302   (eval "$ac_compiler -v >&5") 2>&5
5303   ac_status=$?
5304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5305   (exit $ac_status); }
5306 { (ac_try="$ac_compiler -V >&5"
5307 case "(($ac_try" in
5308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5309   *) ac_try_echo=$ac_try;;
5310 esac
5311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5312   (eval "$ac_compiler -V >&5") 2>&5
5313   ac_status=$?
5314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5315   (exit $ac_status); }
5316
5317 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5318 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5319 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5320   echo $ECHO_N "(cached) $ECHO_C" >&6
5321 else
5322   cat >conftest.$ac_ext <<_ACEOF
5323 /* confdefs.h.  */
5324 _ACEOF
5325 cat confdefs.h >>conftest.$ac_ext
5326 cat >>conftest.$ac_ext <<_ACEOF
5327 /* end confdefs.h.  */
5328
5329 int
5330 main ()
5331 {
5332 #ifndef __GNUC__
5333        choke me
5334 #endif
5335
5336   ;
5337   return 0;
5338 }
5339 _ACEOF
5340 rm -f conftest.$ac_objext
5341 if { (ac_try="$ac_compile"
5342 case "(($ac_try" in
5343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5344   *) ac_try_echo=$ac_try;;
5345 esac
5346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5347   (eval "$ac_compile") 2>conftest.er1
5348   ac_status=$?
5349   grep -v '^ *+' conftest.er1 >conftest.err
5350   rm -f conftest.er1
5351   cat conftest.err >&5
5352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353   (exit $ac_status); } &&
5354          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5355   { (case "(($ac_try" in
5356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5357   *) ac_try_echo=$ac_try;;
5358 esac
5359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5360   (eval "$ac_try") 2>&5
5361   ac_status=$?
5362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5363   (exit $ac_status); }; } &&
5364          { ac_try='test -s conftest.$ac_objext'
5365   { (case "(($ac_try" in
5366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5367   *) ac_try_echo=$ac_try;;
5368 esac
5369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5370   (eval "$ac_try") 2>&5
5371   ac_status=$?
5372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5373   (exit $ac_status); }; }; then
5374   ac_compiler_gnu=yes
5375 else
5376   echo "$as_me: failed program was:" >&5
5377 sed 's/^/| /' conftest.$ac_ext >&5
5378
5379         ac_compiler_gnu=no
5380 fi
5381
5382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5383 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5384
5385 fi
5386 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5387 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5388 GCC=`test $ac_compiler_gnu = yes && echo yes`
5389 ac_test_CFLAGS=${CFLAGS+set}
5390 ac_save_CFLAGS=$CFLAGS
5391 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5392 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5393 if test "${ac_cv_prog_cc_g+set}" = set; then
5394   echo $ECHO_N "(cached) $ECHO_C" >&6
5395 else
5396   ac_save_c_werror_flag=$ac_c_werror_flag
5397    ac_c_werror_flag=yes
5398    ac_cv_prog_cc_g=no
5399    CFLAGS="-g"
5400    cat >conftest.$ac_ext <<_ACEOF
5401 /* confdefs.h.  */
5402 _ACEOF
5403 cat confdefs.h >>conftest.$ac_ext
5404 cat >>conftest.$ac_ext <<_ACEOF
5405 /* end confdefs.h.  */
5406
5407 int
5408 main ()
5409 {
5410
5411   ;
5412   return 0;
5413 }
5414 _ACEOF
5415 rm -f conftest.$ac_objext
5416 if { (ac_try="$ac_compile"
5417 case "(($ac_try" in
5418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5419   *) ac_try_echo=$ac_try;;
5420 esac
5421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5422   (eval "$ac_compile") 2>conftest.er1
5423   ac_status=$?
5424   grep -v '^ *+' conftest.er1 >conftest.err
5425   rm -f conftest.er1
5426   cat conftest.err >&5
5427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5428   (exit $ac_status); } &&
5429          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5430   { (case "(($ac_try" in
5431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5432   *) ac_try_echo=$ac_try;;
5433 esac
5434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5435   (eval "$ac_try") 2>&5
5436   ac_status=$?
5437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438   (exit $ac_status); }; } &&
5439          { ac_try='test -s conftest.$ac_objext'
5440   { (case "(($ac_try" in
5441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5442   *) ac_try_echo=$ac_try;;
5443 esac
5444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5445   (eval "$ac_try") 2>&5
5446   ac_status=$?
5447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5448   (exit $ac_status); }; }; then
5449   ac_cv_prog_cc_g=yes
5450 else
5451   echo "$as_me: failed program was:" >&5
5452 sed 's/^/| /' conftest.$ac_ext >&5
5453
5454         CFLAGS=""
5455       cat >conftest.$ac_ext <<_ACEOF
5456 /* confdefs.h.  */
5457 _ACEOF
5458 cat confdefs.h >>conftest.$ac_ext
5459 cat >>conftest.$ac_ext <<_ACEOF
5460 /* end confdefs.h.  */
5461
5462 int
5463 main ()
5464 {
5465
5466   ;
5467   return 0;
5468 }
5469 _ACEOF
5470 rm -f conftest.$ac_objext
5471 if { (ac_try="$ac_compile"
5472 case "(($ac_try" in
5473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5474   *) ac_try_echo=$ac_try;;
5475 esac
5476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5477   (eval "$ac_compile") 2>conftest.er1
5478   ac_status=$?
5479   grep -v '^ *+' conftest.er1 >conftest.err
5480   rm -f conftest.er1
5481   cat conftest.err >&5
5482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5483   (exit $ac_status); } &&
5484          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5485   { (case "(($ac_try" in
5486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5487   *) ac_try_echo=$ac_try;;
5488 esac
5489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5490   (eval "$ac_try") 2>&5
5491   ac_status=$?
5492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5493   (exit $ac_status); }; } &&
5494          { ac_try='test -s conftest.$ac_objext'
5495   { (case "(($ac_try" in
5496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5497   *) ac_try_echo=$ac_try;;
5498 esac
5499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5500   (eval "$ac_try") 2>&5
5501   ac_status=$?
5502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5503   (exit $ac_status); }; }; then
5504   :
5505 else
5506   echo "$as_me: failed program was:" >&5
5507 sed 's/^/| /' conftest.$ac_ext >&5
5508
5509         ac_c_werror_flag=$ac_save_c_werror_flag
5510          CFLAGS="-g"
5511          cat >conftest.$ac_ext <<_ACEOF
5512 /* confdefs.h.  */
5513 _ACEOF
5514 cat confdefs.h >>conftest.$ac_ext
5515 cat >>conftest.$ac_ext <<_ACEOF
5516 /* end confdefs.h.  */
5517
5518 int
5519 main ()
5520 {
5521
5522   ;
5523   return 0;
5524 }
5525 _ACEOF
5526 rm -f conftest.$ac_objext
5527 if { (ac_try="$ac_compile"
5528 case "(($ac_try" in
5529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5530   *) ac_try_echo=$ac_try;;
5531 esac
5532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5533   (eval "$ac_compile") 2>conftest.er1
5534   ac_status=$?
5535   grep -v '^ *+' conftest.er1 >conftest.err
5536   rm -f conftest.er1
5537   cat conftest.err >&5
5538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539   (exit $ac_status); } &&
5540          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5541   { (case "(($ac_try" in
5542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5543   *) ac_try_echo=$ac_try;;
5544 esac
5545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5546   (eval "$ac_try") 2>&5
5547   ac_status=$?
5548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5549   (exit $ac_status); }; } &&
5550          { ac_try='test -s conftest.$ac_objext'
5551   { (case "(($ac_try" in
5552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5553   *) ac_try_echo=$ac_try;;
5554 esac
5555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5556   (eval "$ac_try") 2>&5
5557   ac_status=$?
5558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5559   (exit $ac_status); }; }; then
5560   ac_cv_prog_cc_g=yes
5561 else
5562   echo "$as_me: failed program was:" >&5
5563 sed 's/^/| /' conftest.$ac_ext >&5
5564
5565
5566 fi
5567
5568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5569 fi
5570
5571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5572 fi
5573
5574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5575    ac_c_werror_flag=$ac_save_c_werror_flag
5576 fi
5577 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5578 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5579 if test "$ac_test_CFLAGS" = set; then
5580   CFLAGS=$ac_save_CFLAGS
5581 elif test $ac_cv_prog_cc_g = yes; then
5582   if test "$GCC" = yes; then
5583     CFLAGS="-g -O2"
5584   else
5585     CFLAGS="-g"
5586   fi
5587 else
5588   if test "$GCC" = yes; then
5589     CFLAGS="-O2"
5590   else
5591     CFLAGS=
5592   fi
5593 fi
5594 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5595 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5596 if test "${ac_cv_prog_cc_c89+set}" = set; then
5597   echo $ECHO_N "(cached) $ECHO_C" >&6
5598 else
5599   ac_cv_prog_cc_c89=no
5600 ac_save_CC=$CC
5601 cat >conftest.$ac_ext <<_ACEOF
5602 /* confdefs.h.  */
5603 _ACEOF
5604 cat confdefs.h >>conftest.$ac_ext
5605 cat >>conftest.$ac_ext <<_ACEOF
5606 /* end confdefs.h.  */
5607 #include <stdarg.h>
5608 #include <stdio.h>
5609 #include <sys/types.h>
5610 #include <sys/stat.h>
5611 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5612 struct buf { int x; };
5613 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5614 static char *e (p, i)
5615      char **p;
5616      int i;
5617 {
5618   return p[i];
5619 }
5620 static char *f (char * (*g) (char **, int), char **p, ...)
5621 {
5622   char *s;
5623   va_list v;
5624   va_start (v,p);
5625   s = g (p, va_arg (v,int));
5626   va_end (v);
5627   return s;
5628 }
5629
5630 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5631    function prototypes and stuff, but not '\xHH' hex character constants.
5632    These don't provoke an error unfortunately, instead are silently treated
5633    as 'x'.  The following induces an error, until -std is added to get
5634    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5635    array size at least.  It's necessary to write '\x00'==0 to get something
5636    that's true only with -std.  */
5637 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5638
5639 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5640    inside strings and character constants.  */
5641 #define FOO(x) 'x'
5642 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5643
5644 int test (int i, double x);
5645 struct s1 {int (*f) (int a);};
5646 struct s2 {int (*f) (double a);};
5647 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5648 int argc;
5649 char **argv;
5650 int
5651 main ()
5652 {
5653 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5654   ;
5655   return 0;
5656 }
5657 _ACEOF
5658 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5659         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5660 do
5661   CC="$ac_save_CC $ac_arg"
5662   rm -f conftest.$ac_objext
5663 if { (ac_try="$ac_compile"
5664 case "(($ac_try" in
5665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5666   *) ac_try_echo=$ac_try;;
5667 esac
5668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5669   (eval "$ac_compile") 2>conftest.er1
5670   ac_status=$?
5671   grep -v '^ *+' conftest.er1 >conftest.err
5672   rm -f conftest.er1
5673   cat conftest.err >&5
5674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675   (exit $ac_status); } &&
5676          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5677   { (case "(($ac_try" in
5678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5679   *) ac_try_echo=$ac_try;;
5680 esac
5681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5682   (eval "$ac_try") 2>&5
5683   ac_status=$?
5684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685   (exit $ac_status); }; } &&
5686          { ac_try='test -s conftest.$ac_objext'
5687   { (case "(($ac_try" in
5688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5689   *) ac_try_echo=$ac_try;;
5690 esac
5691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5692   (eval "$ac_try") 2>&5
5693   ac_status=$?
5694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5695   (exit $ac_status); }; }; then
5696   ac_cv_prog_cc_c89=$ac_arg
5697 else
5698   echo "$as_me: failed program was:" >&5
5699 sed 's/^/| /' conftest.$ac_ext >&5
5700
5701
5702 fi
5703
5704 rm -f core conftest.err conftest.$ac_objext
5705   test "x$ac_cv_prog_cc_c89" != "xno" && break
5706 done
5707 rm -f conftest.$ac_ext
5708 CC=$ac_save_CC
5709
5710 fi
5711 # AC_CACHE_VAL
5712 case "x$ac_cv_prog_cc_c89" in
5713   x)
5714     { echo "$as_me:$LINENO: result: none needed" >&5
5715 echo "${ECHO_T}none needed" >&6; } ;;
5716   xno)
5717     { echo "$as_me:$LINENO: result: unsupported" >&5
5718 echo "${ECHO_T}unsupported" >&6; } ;;
5719   *)
5720     CC="$CC $ac_cv_prog_cc_c89"
5721     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5722 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5723 esac
5724
5725
5726 ac_ext=c
5727 ac_cpp='$CPP $CPPFLAGS'
5728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5731
5732 ac_ext=cpp
5733 ac_cpp='$CXXCPP $CPPFLAGS'
5734 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5735 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5736 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5737 if test -z "$CXX"; then
5738   if test -n "$CCC"; then
5739     CXX=$CCC
5740   else
5741     if test -n "$ac_tool_prefix"; then
5742   for ac_prog in g++
5743   do
5744     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5745 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5746 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5748 if test "${ac_cv_prog_CXX+set}" = set; then
5749   echo $ECHO_N "(cached) $ECHO_C" >&6
5750 else
5751   if test -n "$CXX"; then
5752   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5753 else
5754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5755 for as_dir in $PATH
5756 do
5757   IFS=$as_save_IFS
5758   test -z "$as_dir" && as_dir=.
5759   for ac_exec_ext in '' $ac_executable_extensions; do
5760   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5761     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5762     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5763     break 2
5764   fi
5765 done
5766 done
5767 IFS=$as_save_IFS
5768
5769 fi
5770 fi
5771 CXX=$ac_cv_prog_CXX
5772 if test -n "$CXX"; then
5773   { echo "$as_me:$LINENO: result: $CXX" >&5
5774 echo "${ECHO_T}$CXX" >&6; }
5775 else
5776   { echo "$as_me:$LINENO: result: no" >&5
5777 echo "${ECHO_T}no" >&6; }
5778 fi
5779
5780
5781     test -n "$CXX" && break
5782   done
5783 fi
5784 if test -z "$CXX"; then
5785   ac_ct_CXX=$CXX
5786   for ac_prog in g++
5787 do
5788   # Extract the first word of "$ac_prog", so it can be a program name with args.
5789 set dummy $ac_prog; ac_word=$2
5790 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5792 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5793   echo $ECHO_N "(cached) $ECHO_C" >&6
5794 else
5795   if test -n "$ac_ct_CXX"; then
5796   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5797 else
5798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5799 for as_dir in $PATH
5800 do
5801   IFS=$as_save_IFS
5802   test -z "$as_dir" && as_dir=.
5803   for ac_exec_ext in '' $ac_executable_extensions; do
5804   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5805     ac_cv_prog_ac_ct_CXX="$ac_prog"
5806     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5807     break 2
5808   fi
5809 done
5810 done
5811 IFS=$as_save_IFS
5812
5813 fi
5814 fi
5815 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5816 if test -n "$ac_ct_CXX"; then
5817   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5818 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5819 else
5820   { echo "$as_me:$LINENO: result: no" >&5
5821 echo "${ECHO_T}no" >&6; }
5822 fi
5823
5824
5825   test -n "$ac_ct_CXX" && break
5826 done
5827
5828   if test "x$ac_ct_CXX" = x; then
5829     CXX="g++"
5830   else
5831     case $cross_compiling:$ac_tool_warned in
5832 yes:)
5833 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5834 whose name does not start with the host triplet.  If you think this
5835 configuration is useful to you, please write to autoconf@gnu.org." >&5
5836 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5837 whose name does not start with the host triplet.  If you think this
5838 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5839 ac_tool_warned=yes ;;
5840 esac
5841     CXX=$ac_ct_CXX
5842   fi
5843 fi
5844
5845   fi
5846 fi
5847 # Provide some information about the compiler.
5848 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5849 ac_compiler=`set X $ac_compile; echo $2`
5850 { (ac_try="$ac_compiler --version >&5"
5851 case "(($ac_try" in
5852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5853   *) ac_try_echo=$ac_try;;
5854 esac
5855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5856   (eval "$ac_compiler --version >&5") 2>&5
5857   ac_status=$?
5858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859   (exit $ac_status); }
5860 { (ac_try="$ac_compiler -v >&5"
5861 case "(($ac_try" in
5862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5863   *) ac_try_echo=$ac_try;;
5864 esac
5865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5866   (eval "$ac_compiler -v >&5") 2>&5
5867   ac_status=$?
5868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5869   (exit $ac_status); }
5870 { (ac_try="$ac_compiler -V >&5"
5871 case "(($ac_try" in
5872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5873   *) ac_try_echo=$ac_try;;
5874 esac
5875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5876   (eval "$ac_compiler -V >&5") 2>&5
5877   ac_status=$?
5878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879   (exit $ac_status); }
5880
5881 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5882 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5883 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5884   echo $ECHO_N "(cached) $ECHO_C" >&6
5885 else
5886   cat >conftest.$ac_ext <<_ACEOF
5887 /* confdefs.h.  */
5888 _ACEOF
5889 cat confdefs.h >>conftest.$ac_ext
5890 cat >>conftest.$ac_ext <<_ACEOF
5891 /* end confdefs.h.  */
5892
5893 int
5894 main ()
5895 {
5896 #ifndef __GNUC__
5897        choke me
5898 #endif
5899
5900   ;
5901   return 0;
5902 }
5903 _ACEOF
5904 rm -f conftest.$ac_objext
5905 if { (ac_try="$ac_compile"
5906 case "(($ac_try" in
5907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5908   *) ac_try_echo=$ac_try;;
5909 esac
5910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5911   (eval "$ac_compile") 2>conftest.er1
5912   ac_status=$?
5913   grep -v '^ *+' conftest.er1 >conftest.err
5914   rm -f conftest.er1
5915   cat conftest.err >&5
5916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5917   (exit $ac_status); } &&
5918          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5919   { (case "(($ac_try" in
5920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5921   *) ac_try_echo=$ac_try;;
5922 esac
5923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5924   (eval "$ac_try") 2>&5
5925   ac_status=$?
5926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5927   (exit $ac_status); }; } &&
5928          { ac_try='test -s conftest.$ac_objext'
5929   { (case "(($ac_try" in
5930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5931   *) ac_try_echo=$ac_try;;
5932 esac
5933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5934   (eval "$ac_try") 2>&5
5935   ac_status=$?
5936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937   (exit $ac_status); }; }; then
5938   ac_compiler_gnu=yes
5939 else
5940   echo "$as_me: failed program was:" >&5
5941 sed 's/^/| /' conftest.$ac_ext >&5
5942
5943         ac_compiler_gnu=no
5944 fi
5945
5946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5947 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5948
5949 fi
5950 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5951 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5952 GXX=`test $ac_compiler_gnu = yes && echo yes`
5953 ac_test_CXXFLAGS=${CXXFLAGS+set}
5954 ac_save_CXXFLAGS=$CXXFLAGS
5955 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5956 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5957 if test "${ac_cv_prog_cxx_g+set}" = set; then
5958   echo $ECHO_N "(cached) $ECHO_C" >&6
5959 else
5960   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5961    ac_cxx_werror_flag=yes
5962    ac_cv_prog_cxx_g=no
5963    CXXFLAGS="-g"
5964    cat >conftest.$ac_ext <<_ACEOF
5965 /* confdefs.h.  */
5966 _ACEOF
5967 cat confdefs.h >>conftest.$ac_ext
5968 cat >>conftest.$ac_ext <<_ACEOF
5969 /* end confdefs.h.  */
5970
5971 int
5972 main ()
5973 {
5974
5975   ;
5976   return 0;
5977 }
5978 _ACEOF
5979 rm -f conftest.$ac_objext
5980 if { (ac_try="$ac_compile"
5981 case "(($ac_try" in
5982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5983   *) ac_try_echo=$ac_try;;
5984 esac
5985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5986   (eval "$ac_compile") 2>conftest.er1
5987   ac_status=$?
5988   grep -v '^ *+' conftest.er1 >conftest.err
5989   rm -f conftest.er1
5990   cat conftest.err >&5
5991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992   (exit $ac_status); } &&
5993          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5994   { (case "(($ac_try" in
5995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5996   *) ac_try_echo=$ac_try;;
5997 esac
5998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5999   (eval "$ac_try") 2>&5
6000   ac_status=$?
6001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002   (exit $ac_status); }; } &&
6003          { ac_try='test -s conftest.$ac_objext'
6004   { (case "(($ac_try" in
6005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6006   *) ac_try_echo=$ac_try;;
6007 esac
6008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6009   (eval "$ac_try") 2>&5
6010   ac_status=$?
6011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012   (exit $ac_status); }; }; then
6013   ac_cv_prog_cxx_g=yes
6014 else
6015   echo "$as_me: failed program was:" >&5
6016 sed 's/^/| /' conftest.$ac_ext >&5
6017
6018         CXXFLAGS=""
6019       cat >conftest.$ac_ext <<_ACEOF
6020 /* confdefs.h.  */
6021 _ACEOF
6022 cat confdefs.h >>conftest.$ac_ext
6023 cat >>conftest.$ac_ext <<_ACEOF
6024 /* end confdefs.h.  */
6025
6026 int
6027 main ()
6028 {
6029
6030   ;
6031   return 0;
6032 }
6033 _ACEOF
6034 rm -f conftest.$ac_objext
6035 if { (ac_try="$ac_compile"
6036 case "(($ac_try" in
6037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6038   *) ac_try_echo=$ac_try;;
6039 esac
6040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6041   (eval "$ac_compile") 2>conftest.er1
6042   ac_status=$?
6043   grep -v '^ *+' conftest.er1 >conftest.err
6044   rm -f conftest.er1
6045   cat conftest.err >&5
6046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6047   (exit $ac_status); } &&
6048          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6049   { (case "(($ac_try" in
6050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6051   *) ac_try_echo=$ac_try;;
6052 esac
6053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6054   (eval "$ac_try") 2>&5
6055   ac_status=$?
6056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6057   (exit $ac_status); }; } &&
6058          { ac_try='test -s conftest.$ac_objext'
6059   { (case "(($ac_try" in
6060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6061   *) ac_try_echo=$ac_try;;
6062 esac
6063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6064   (eval "$ac_try") 2>&5
6065   ac_status=$?
6066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067   (exit $ac_status); }; }; then
6068   :
6069 else
6070   echo "$as_me: failed program was:" >&5
6071 sed 's/^/| /' conftest.$ac_ext >&5
6072
6073         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6074          CXXFLAGS="-g"
6075          cat >conftest.$ac_ext <<_ACEOF
6076 /* confdefs.h.  */
6077 _ACEOF
6078 cat confdefs.h >>conftest.$ac_ext
6079 cat >>conftest.$ac_ext <<_ACEOF
6080 /* end confdefs.h.  */
6081
6082 int
6083 main ()
6084 {
6085
6086   ;
6087   return 0;
6088 }
6089 _ACEOF
6090 rm -f conftest.$ac_objext
6091 if { (ac_try="$ac_compile"
6092 case "(($ac_try" in
6093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6094   *) ac_try_echo=$ac_try;;
6095 esac
6096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6097   (eval "$ac_compile") 2>conftest.er1
6098   ac_status=$?
6099   grep -v '^ *+' conftest.er1 >conftest.err
6100   rm -f conftest.er1
6101   cat conftest.err >&5
6102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6103   (exit $ac_status); } &&
6104          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6105   { (case "(($ac_try" in
6106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6107   *) ac_try_echo=$ac_try;;
6108 esac
6109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6110   (eval "$ac_try") 2>&5
6111   ac_status=$?
6112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113   (exit $ac_status); }; } &&
6114          { ac_try='test -s conftest.$ac_objext'
6115   { (case "(($ac_try" in
6116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6117   *) ac_try_echo=$ac_try;;
6118 esac
6119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6120   (eval "$ac_try") 2>&5
6121   ac_status=$?
6122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123   (exit $ac_status); }; }; then
6124   ac_cv_prog_cxx_g=yes
6125 else
6126   echo "$as_me: failed program was:" >&5
6127 sed 's/^/| /' conftest.$ac_ext >&5
6128
6129
6130 fi
6131
6132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6133 fi
6134
6135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6136 fi
6137
6138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6139    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6140 fi
6141 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6142 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6143 if test "$ac_test_CXXFLAGS" = set; then
6144   CXXFLAGS=$ac_save_CXXFLAGS
6145 elif test $ac_cv_prog_cxx_g = yes; then
6146   if test "$GXX" = yes; then
6147     CXXFLAGS="-g -O2"
6148   else
6149     CXXFLAGS="-g"
6150   fi
6151 else
6152   if test "$GXX" = yes; then
6153     CXXFLAGS="-O2"
6154   else
6155     CXXFLAGS=
6156   fi
6157 fi
6158 ac_ext=c
6159 ac_cpp='$CPP $CPPFLAGS'
6160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6163
6164 { echo "$as_me:$LINENO: checking " >&5
6165 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6166 if test "${ac_cv_has_flex+set}" = set; then
6167   echo $ECHO_N "(cached) $ECHO_C" >&6
6168 else
6169   for ac_prog in flex lex
6170 do
6171   # Extract the first word of "$ac_prog", so it can be a program name with args.
6172 set dummy $ac_prog; ac_word=$2
6173 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6175 if test "${ac_cv_prog_LEX+set}" = set; then
6176   echo $ECHO_N "(cached) $ECHO_C" >&6
6177 else
6178   if test -n "$LEX"; then
6179   ac_cv_prog_LEX="$LEX" # Let the user override the test.
6180 else
6181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6182 for as_dir in $PATH
6183 do
6184   IFS=$as_save_IFS
6185   test -z "$as_dir" && as_dir=.
6186   for ac_exec_ext in '' $ac_executable_extensions; do
6187   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6188     ac_cv_prog_LEX="$ac_prog"
6189     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6190     break 2
6191   fi
6192 done
6193 done
6194 IFS=$as_save_IFS
6195
6196 fi
6197 fi
6198 LEX=$ac_cv_prog_LEX
6199 if test -n "$LEX"; then
6200   { echo "$as_me:$LINENO: result: $LEX" >&5
6201 echo "${ECHO_T}$LEX" >&6; }
6202 else
6203   { echo "$as_me:$LINENO: result: no" >&5
6204 echo "${ECHO_T}no" >&6; }
6205 fi
6206
6207
6208   test -n "$LEX" && break
6209 done
6210 test -n "$LEX" || LEX=":"
6211
6212 if test -z "$LEXLIB"
6213 then
6214   { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6215 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6216 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6217   echo $ECHO_N "(cached) $ECHO_C" >&6
6218 else
6219   ac_check_lib_save_LIBS=$LIBS
6220 LIBS="-lfl  $LIBS"
6221 cat >conftest.$ac_ext <<_ACEOF
6222 /* confdefs.h.  */
6223 _ACEOF
6224 cat confdefs.h >>conftest.$ac_ext
6225 cat >>conftest.$ac_ext <<_ACEOF
6226 /* end confdefs.h.  */
6227
6228 /* Override any GCC internal prototype to avoid an error.
6229    Use char because int might match the return type of a GCC
6230    builtin and then its argument prototype would still apply.  */
6231 #ifdef __cplusplus
6232 extern "C"
6233 #endif
6234 char yywrap ();
6235 int
6236 main ()
6237 {
6238 return yywrap ();
6239   ;
6240   return 0;
6241 }
6242 _ACEOF
6243 rm -f conftest.$ac_objext conftest$ac_exeext
6244 if { (ac_try="$ac_link"
6245 case "(($ac_try" in
6246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6247   *) ac_try_echo=$ac_try;;
6248 esac
6249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6250   (eval "$ac_link") 2>conftest.er1
6251   ac_status=$?
6252   grep -v '^ *+' conftest.er1 >conftest.err
6253   rm -f conftest.er1
6254   cat conftest.err >&5
6255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256   (exit $ac_status); } &&
6257          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6258   { (case "(($ac_try" in
6259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6260   *) ac_try_echo=$ac_try;;
6261 esac
6262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6263   (eval "$ac_try") 2>&5
6264   ac_status=$?
6265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266   (exit $ac_status); }; } &&
6267          { ac_try='test -s conftest$ac_exeext'
6268   { (case "(($ac_try" in
6269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6270   *) ac_try_echo=$ac_try;;
6271 esac
6272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6273   (eval "$ac_try") 2>&5
6274   ac_status=$?
6275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6276   (exit $ac_status); }; }; then
6277   ac_cv_lib_fl_yywrap=yes
6278 else
6279   echo "$as_me: failed program was:" >&5
6280 sed 's/^/| /' conftest.$ac_ext >&5
6281
6282         ac_cv_lib_fl_yywrap=no
6283 fi
6284
6285 rm -f core conftest.err conftest.$ac_objext \
6286       conftest$ac_exeext conftest.$ac_ext
6287 LIBS=$ac_check_lib_save_LIBS
6288 fi
6289 { echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6290 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6291 if test $ac_cv_lib_fl_yywrap = yes; then
6292   LEXLIB="-lfl"
6293 else
6294   { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6295 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6296 if test "${ac_cv_lib_l_yywrap+set}" = set; then
6297   echo $ECHO_N "(cached) $ECHO_C" >&6
6298 else
6299   ac_check_lib_save_LIBS=$LIBS
6300 LIBS="-ll  $LIBS"
6301 cat >conftest.$ac_ext <<_ACEOF
6302 /* confdefs.h.  */
6303 _ACEOF
6304 cat confdefs.h >>conftest.$ac_ext
6305 cat >>conftest.$ac_ext <<_ACEOF
6306 /* end confdefs.h.  */
6307
6308 /* Override any GCC internal prototype to avoid an error.
6309    Use char because int might match the return type of a GCC
6310    builtin and then its argument prototype would still apply.  */
6311 #ifdef __cplusplus
6312 extern "C"
6313 #endif
6314 char yywrap ();
6315 int
6316 main ()
6317 {
6318 return yywrap ();
6319   ;
6320   return 0;
6321 }
6322 _ACEOF
6323 rm -f conftest.$ac_objext conftest$ac_exeext
6324 if { (ac_try="$ac_link"
6325 case "(($ac_try" in
6326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6327   *) ac_try_echo=$ac_try;;
6328 esac
6329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6330   (eval "$ac_link") 2>conftest.er1
6331   ac_status=$?
6332   grep -v '^ *+' conftest.er1 >conftest.err
6333   rm -f conftest.er1
6334   cat conftest.err >&5
6335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6336   (exit $ac_status); } &&
6337          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6338   { (case "(($ac_try" in
6339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6340   *) ac_try_echo=$ac_try;;
6341 esac
6342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6343   (eval "$ac_try") 2>&5
6344   ac_status=$?
6345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6346   (exit $ac_status); }; } &&
6347          { ac_try='test -s conftest$ac_exeext'
6348   { (case "(($ac_try" in
6349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6350   *) ac_try_echo=$ac_try;;
6351 esac
6352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6353   (eval "$ac_try") 2>&5
6354   ac_status=$?
6355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356   (exit $ac_status); }; }; then
6357   ac_cv_lib_l_yywrap=yes
6358 else
6359   echo "$as_me: failed program was:" >&5
6360 sed 's/^/| /' conftest.$ac_ext >&5
6361
6362         ac_cv_lib_l_yywrap=no
6363 fi
6364
6365 rm -f core conftest.err conftest.$ac_objext \
6366       conftest$ac_exeext conftest.$ac_ext
6367 LIBS=$ac_check_lib_save_LIBS
6368 fi
6369 { echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6370 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6371 if test $ac_cv_lib_l_yywrap = yes; then
6372   LEXLIB="-ll"
6373 fi
6374
6375 fi
6376
6377 fi
6378
6379 if test "x$LEX" != "x:"; then
6380   { echo "$as_me:$LINENO: checking lex output file root" >&5
6381 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6382 if test "${ac_cv_prog_lex_root+set}" = set; then
6383   echo $ECHO_N "(cached) $ECHO_C" >&6
6384 else
6385   # The minimal lex program is just a single line: %%.  But some broken lexes
6386 # (Solaris, I think it was) want two %% lines, so accommodate them.
6387 cat >conftest.l <<_ACEOF
6388 %%
6389 %%
6390 _ACEOF
6391 { (ac_try="$LEX conftest.l"
6392 case "(($ac_try" in
6393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6394   *) ac_try_echo=$ac_try;;
6395 esac
6396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6397   (eval "$LEX conftest.l") 2>&5
6398   ac_status=$?
6399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400   (exit $ac_status); }
6401 if test -f lex.yy.c; then
6402   ac_cv_prog_lex_root=lex.yy
6403 elif test -f lexyy.c; then
6404   ac_cv_prog_lex_root=lexyy
6405 else
6406   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6407 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6408    { (exit 1); exit 1; }; }
6409 fi
6410 fi
6411 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6412 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
6413 rm -f conftest.l
6414 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6415
6416 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6417 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6418 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6419   echo $ECHO_N "(cached) $ECHO_C" >&6
6420 else
6421   # POSIX says lex can declare yytext either as a pointer or an array; the
6422 # default is implementation-dependent. Figure out which it is, since
6423 # not all implementations provide the %pointer and %array declarations.
6424 ac_cv_prog_lex_yytext_pointer=no
6425 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6426 ac_save_LIBS=$LIBS
6427 LIBS="$LIBS $LEXLIB"
6428 cat >conftest.$ac_ext <<_ACEOF
6429 `cat $LEX_OUTPUT_ROOT.c`
6430 _ACEOF
6431 rm -f conftest.$ac_objext conftest$ac_exeext
6432 if { (ac_try="$ac_link"
6433 case "(($ac_try" in
6434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6435   *) ac_try_echo=$ac_try;;
6436 esac
6437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6438   (eval "$ac_link") 2>conftest.er1
6439   ac_status=$?
6440   grep -v '^ *+' conftest.er1 >conftest.err
6441   rm -f conftest.er1
6442   cat conftest.err >&5
6443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6444   (exit $ac_status); } &&
6445          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6446   { (case "(($ac_try" in
6447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6448   *) ac_try_echo=$ac_try;;
6449 esac
6450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6451   (eval "$ac_try") 2>&5
6452   ac_status=$?
6453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6454   (exit $ac_status); }; } &&
6455          { ac_try='test -s conftest$ac_exeext'
6456   { (case "(($ac_try" in
6457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6458   *) ac_try_echo=$ac_try;;
6459 esac
6460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6461   (eval "$ac_try") 2>&5
6462   ac_status=$?
6463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464   (exit $ac_status); }; }; then
6465   ac_cv_prog_lex_yytext_pointer=yes
6466 else
6467   echo "$as_me: failed program was:" >&5
6468 sed 's/^/| /' conftest.$ac_ext >&5
6469
6470
6471 fi
6472
6473 rm -f core conftest.err conftest.$ac_objext \
6474       conftest$ac_exeext conftest.$ac_ext
6475 LIBS=$ac_save_LIBS
6476 rm -f "${LEX_OUTPUT_ROOT}.c"
6477
6478 fi
6479 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6480 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6481 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6482
6483 cat >>confdefs.h <<\_ACEOF
6484 #define YYTEXT_POINTER 1
6485 _ACEOF
6486
6487 fi
6488
6489 fi
6490
6491 fi
6492 { echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6493 echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6494 if test "$LEX" != "flex"; then
6495   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6496 echo "$as_me: error: flex not found but required" >&2;}
6497    { (exit 1); exit 1; }; }
6498 else
6499   FLEX=flex
6500
6501 fi
6502
6503 { echo "$as_me:$LINENO: checking " >&5
6504 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6505 if test "${llvm_cv_has_bison+set}" = set; then
6506   echo $ECHO_N "(cached) $ECHO_C" >&6
6507 else
6508   for ac_prog in 'bison -y' byacc
6509 do
6510   # Extract the first word of "$ac_prog", so it can be a program name with args.
6511 set dummy $ac_prog; ac_word=$2
6512 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6514 if test "${ac_cv_prog_YACC+set}" = set; then
6515   echo $ECHO_N "(cached) $ECHO_C" >&6
6516 else
6517   if test -n "$YACC"; then
6518   ac_cv_prog_YACC="$YACC" # Let the user override the test.
6519 else
6520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6521 for as_dir in $PATH
6522 do
6523   IFS=$as_save_IFS
6524   test -z "$as_dir" && as_dir=.
6525   for ac_exec_ext in '' $ac_executable_extensions; do
6526   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6527     ac_cv_prog_YACC="$ac_prog"
6528     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6529     break 2
6530   fi
6531 done
6532 done
6533 IFS=$as_save_IFS
6534
6535 fi
6536 fi
6537 YACC=$ac_cv_prog_YACC
6538 if test -n "$YACC"; then
6539   { echo "$as_me:$LINENO: result: $YACC" >&5
6540 echo "${ECHO_T}$YACC" >&6; }
6541 else
6542   { echo "$as_me:$LINENO: result: no" >&5
6543 echo "${ECHO_T}no" >&6; }
6544 fi
6545
6546
6547   test -n "$YACC" && break
6548 done
6549 test -n "$YACC" || YACC="yacc"
6550
6551 fi
6552 { echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6553 echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6554 if test "$YACC" != "bison -y"; then
6555
6556   { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6557 echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
6558 else
6559   BISON=bison
6560
6561 fi
6562
6563 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6564 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6565 if test "${lt_cv_path_NM+set}" = set; then
6566   echo $ECHO_N "(cached) $ECHO_C" >&6
6567 else
6568   if test -n "$NM"; then
6569   # Let the user override the test.
6570   lt_cv_path_NM="$NM"
6571 else
6572   lt_nm_to_check="${ac_tool_prefix}nm"
6573   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6574     lt_nm_to_check="$lt_nm_to_check nm"
6575   fi
6576   for lt_tmp_nm in $lt_nm_to_check; do
6577     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6578     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6579       IFS="$lt_save_ifs"
6580       test -z "$ac_dir" && ac_dir=.
6581       tmp_nm="$ac_dir/$lt_tmp_nm"
6582       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6583         # Check to see if the nm accepts a BSD-compat flag.
6584         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6585         #   nm: unknown option "B" ignored
6586         # Tru64's nm complains that /dev/null is an invalid object file
6587         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6588         */dev/null* | *'Invalid file or object type'*)
6589           lt_cv_path_NM="$tmp_nm -B"
6590           break
6591           ;;
6592         *)
6593           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6594           */dev/null*)
6595             lt_cv_path_NM="$tmp_nm -p"
6596             break
6597             ;;
6598           *)
6599             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6600             continue # so that we can try to find one that supports BSD flags
6601             ;;
6602           esac
6603           ;;
6604         esac
6605       fi
6606     done
6607     IFS="$lt_save_ifs"
6608   done
6609   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6610 fi
6611 fi
6612 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6613 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6614 NM="$lt_cv_path_NM"
6615
6616
6617
6618 { echo "$as_me:$LINENO: checking for GNU make" >&5
6619 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6620 if test "${llvm_cv_gnu_make_command+set}" = set; then
6621   echo $ECHO_N "(cached) $ECHO_C" >&6
6622 else
6623   llvm_cv_gnu_make_command=''
6624  for a in "$MAKE" make gmake gnumake ; do
6625   if test -z "$a" ; then continue ; fi ;
6626   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6627   then
6628    llvm_cv_gnu_make_command=$a ;
6629    break;
6630   fi
6631  done
6632 fi
6633 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6634 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6635  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6636    ifGNUmake='' ;
6637  else
6638    ifGNUmake='#' ;
6639    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6640 echo "${ECHO_T}\"Not found\"" >&6; };
6641  fi
6642
6643
6644 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6645 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6646 LN_S=$as_ln_s
6647 if test "$LN_S" = "ln -s"; then
6648   { echo "$as_me:$LINENO: result: yes" >&5
6649 echo "${ECHO_T}yes" >&6; }
6650 else
6651   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6652 echo "${ECHO_T}no, using $LN_S" >&6; }
6653 fi
6654
6655 # Extract the first word of "cmp", so it can be a program name with args.
6656 set dummy cmp; ac_word=$2
6657 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6659 if test "${ac_cv_path_CMP+set}" = set; then
6660   echo $ECHO_N "(cached) $ECHO_C" >&6
6661 else
6662   case $CMP in
6663   [\\/]* | ?:[\\/]*)
6664   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6665   ;;
6666   *)
6667   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6668 for as_dir in $PATH
6669 do
6670   IFS=$as_save_IFS
6671   test -z "$as_dir" && as_dir=.
6672   for ac_exec_ext in '' $ac_executable_extensions; do
6673   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6674     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6675     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6676     break 2
6677   fi
6678 done
6679 done
6680 IFS=$as_save_IFS
6681
6682   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6683   ;;
6684 esac
6685 fi
6686 CMP=$ac_cv_path_CMP
6687 if test -n "$CMP"; then
6688   { echo "$as_me:$LINENO: result: $CMP" >&5
6689 echo "${ECHO_T}$CMP" >&6; }
6690 else
6691   { echo "$as_me:$LINENO: result: no" >&5
6692 echo "${ECHO_T}no" >&6; }
6693 fi
6694
6695
6696 # Extract the first word of "cp", so it can be a program name with args.
6697 set dummy cp; ac_word=$2
6698 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6700 if test "${ac_cv_path_CP+set}" = set; then
6701   echo $ECHO_N "(cached) $ECHO_C" >&6
6702 else
6703   case $CP in
6704   [\\/]* | ?:[\\/]*)
6705   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6706   ;;
6707   *)
6708   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6709 for as_dir in $PATH
6710 do
6711   IFS=$as_save_IFS
6712   test -z "$as_dir" && as_dir=.
6713   for ac_exec_ext in '' $ac_executable_extensions; do
6714   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6715     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6716     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6717     break 2
6718   fi
6719 done
6720 done
6721 IFS=$as_save_IFS
6722
6723   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6724   ;;
6725 esac
6726 fi
6727 CP=$ac_cv_path_CP
6728 if test -n "$CP"; then
6729   { echo "$as_me:$LINENO: result: $CP" >&5
6730 echo "${ECHO_T}$CP" >&6; }
6731 else
6732   { echo "$as_me:$LINENO: result: no" >&5
6733 echo "${ECHO_T}no" >&6; }
6734 fi
6735
6736
6737 # Extract the first word of "date", so it can be a program name with args.
6738 set dummy date; ac_word=$2
6739 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6741 if test "${ac_cv_path_DATE+set}" = set; then
6742   echo $ECHO_N "(cached) $ECHO_C" >&6
6743 else
6744   case $DATE in
6745   [\\/]* | ?:[\\/]*)
6746   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6747   ;;
6748   *)
6749   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6750 for as_dir in $PATH
6751 do
6752   IFS=$as_save_IFS
6753   test -z "$as_dir" && as_dir=.
6754   for ac_exec_ext in '' $ac_executable_extensions; do
6755   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6756     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6757     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6758     break 2
6759   fi
6760 done
6761 done
6762 IFS=$as_save_IFS
6763
6764   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6765   ;;
6766 esac
6767 fi
6768 DATE=$ac_cv_path_DATE
6769 if test -n "$DATE"; then
6770   { echo "$as_me:$LINENO: result: $DATE" >&5
6771 echo "${ECHO_T}$DATE" >&6; }
6772 else
6773   { echo "$as_me:$LINENO: result: no" >&5
6774 echo "${ECHO_T}no" >&6; }
6775 fi
6776
6777
6778 # Extract the first word of "find", so it can be a program name with args.
6779 set dummy find; ac_word=$2
6780 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6782 if test "${ac_cv_path_FIND+set}" = set; then
6783   echo $ECHO_N "(cached) $ECHO_C" >&6
6784 else
6785   case $FIND in
6786   [\\/]* | ?:[\\/]*)
6787   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6788   ;;
6789   *)
6790   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6791 for as_dir in $PATH
6792 do
6793   IFS=$as_save_IFS
6794   test -z "$as_dir" && as_dir=.
6795   for ac_exec_ext in '' $ac_executable_extensions; do
6796   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6797     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6798     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6799     break 2
6800   fi
6801 done
6802 done
6803 IFS=$as_save_IFS
6804
6805   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6806   ;;
6807 esac
6808 fi
6809 FIND=$ac_cv_path_FIND
6810 if test -n "$FIND"; then
6811   { echo "$as_me:$LINENO: result: $FIND" >&5
6812 echo "${ECHO_T}$FIND" >&6; }
6813 else
6814   { echo "$as_me:$LINENO: result: no" >&5
6815 echo "${ECHO_T}no" >&6; }
6816 fi
6817
6818
6819 # Extract the first word of "grep", so it can be a program name with args.
6820 set dummy grep; ac_word=$2
6821 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6823 if test "${ac_cv_path_GREP+set}" = set; then
6824   echo $ECHO_N "(cached) $ECHO_C" >&6
6825 else
6826   case $GREP in
6827   [\\/]* | ?:[\\/]*)
6828   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6829   ;;
6830   *)
6831   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6832 for as_dir in $PATH
6833 do
6834   IFS=$as_save_IFS
6835   test -z "$as_dir" && as_dir=.
6836   for ac_exec_ext in '' $ac_executable_extensions; do
6837   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6838     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6839     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6840     break 2
6841   fi
6842 done
6843 done
6844 IFS=$as_save_IFS
6845
6846   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6847   ;;
6848 esac
6849 fi
6850 GREP=$ac_cv_path_GREP
6851 if test -n "$GREP"; then
6852   { echo "$as_me:$LINENO: result: $GREP" >&5
6853 echo "${ECHO_T}$GREP" >&6; }
6854 else
6855   { echo "$as_me:$LINENO: result: no" >&5
6856 echo "${ECHO_T}no" >&6; }
6857 fi
6858
6859
6860 # Extract the first word of "mkdir", so it can be a program name with args.
6861 set dummy mkdir; ac_word=$2
6862 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6864 if test "${ac_cv_path_MKDIR+set}" = set; then
6865   echo $ECHO_N "(cached) $ECHO_C" >&6
6866 else
6867   case $MKDIR in
6868   [\\/]* | ?:[\\/]*)
6869   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6870   ;;
6871   *)
6872   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6873 for as_dir in $PATH
6874 do
6875   IFS=$as_save_IFS
6876   test -z "$as_dir" && as_dir=.
6877   for ac_exec_ext in '' $ac_executable_extensions; do
6878   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6879     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6880     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6881     break 2
6882   fi
6883 done
6884 done
6885 IFS=$as_save_IFS
6886
6887   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6888   ;;
6889 esac
6890 fi
6891 MKDIR=$ac_cv_path_MKDIR
6892 if test -n "$MKDIR"; then
6893   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6894 echo "${ECHO_T}$MKDIR" >&6; }
6895 else
6896   { echo "$as_me:$LINENO: result: no" >&5
6897 echo "${ECHO_T}no" >&6; }
6898 fi
6899
6900
6901 # Extract the first word of "mv", so it can be a program name with args.
6902 set dummy mv; ac_word=$2
6903 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6905 if test "${ac_cv_path_MV+set}" = set; then
6906   echo $ECHO_N "(cached) $ECHO_C" >&6
6907 else
6908   case $MV in
6909   [\\/]* | ?:[\\/]*)
6910   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6911   ;;
6912   *)
6913   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6914 for as_dir in $PATH
6915 do
6916   IFS=$as_save_IFS
6917   test -z "$as_dir" && as_dir=.
6918   for ac_exec_ext in '' $ac_executable_extensions; do
6919   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6920     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6921     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6922     break 2
6923   fi
6924 done
6925 done
6926 IFS=$as_save_IFS
6927
6928   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6929   ;;
6930 esac
6931 fi
6932 MV=$ac_cv_path_MV
6933 if test -n "$MV"; then
6934   { echo "$as_me:$LINENO: result: $MV" >&5
6935 echo "${ECHO_T}$MV" >&6; }
6936 else
6937   { echo "$as_me:$LINENO: result: no" >&5
6938 echo "${ECHO_T}no" >&6; }
6939 fi
6940
6941
6942 if test -n "$ac_tool_prefix"; then
6943   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6944 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6945 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6947 if test "${ac_cv_prog_RANLIB+set}" = set; then
6948   echo $ECHO_N "(cached) $ECHO_C" >&6
6949 else
6950   if test -n "$RANLIB"; then
6951   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6952 else
6953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6954 for as_dir in $PATH
6955 do
6956   IFS=$as_save_IFS
6957   test -z "$as_dir" && as_dir=.
6958   for ac_exec_ext in '' $ac_executable_extensions; do
6959   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6960     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6961     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6962     break 2
6963   fi
6964 done
6965 done
6966 IFS=$as_save_IFS
6967
6968 fi
6969 fi
6970 RANLIB=$ac_cv_prog_RANLIB
6971 if test -n "$RANLIB"; then
6972   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6973 echo "${ECHO_T}$RANLIB" >&6; }
6974 else
6975   { echo "$as_me:$LINENO: result: no" >&5
6976 echo "${ECHO_T}no" >&6; }
6977 fi
6978
6979
6980 fi
6981 if test -z "$ac_cv_prog_RANLIB"; then
6982   ac_ct_RANLIB=$RANLIB
6983   # Extract the first word of "ranlib", so it can be a program name with args.
6984 set dummy ranlib; ac_word=$2
6985 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6987 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6988   echo $ECHO_N "(cached) $ECHO_C" >&6
6989 else
6990   if test -n "$ac_ct_RANLIB"; then
6991   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6992 else
6993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6994 for as_dir in $PATH
6995 do
6996   IFS=$as_save_IFS
6997   test -z "$as_dir" && as_dir=.
6998   for ac_exec_ext in '' $ac_executable_extensions; do
6999   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7000     ac_cv_prog_ac_ct_RANLIB="ranlib"
7001     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7002     break 2
7003   fi
7004 done
7005 done
7006 IFS=$as_save_IFS
7007
7008 fi
7009 fi
7010 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7011 if test -n "$ac_ct_RANLIB"; then
7012   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7013 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7014 else
7015   { echo "$as_me:$LINENO: result: no" >&5
7016 echo "${ECHO_T}no" >&6; }
7017 fi
7018
7019   if test "x$ac_ct_RANLIB" = x; then
7020     RANLIB=":"
7021   else
7022     case $cross_compiling:$ac_tool_warned in
7023 yes:)
7024 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7025 whose name does not start with the host triplet.  If you think this
7026 configuration is useful to you, please write to autoconf@gnu.org." >&5
7027 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7028 whose name does not start with the host triplet.  If you think this
7029 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7030 ac_tool_warned=yes ;;
7031 esac
7032     RANLIB=$ac_ct_RANLIB
7033   fi
7034 else
7035   RANLIB="$ac_cv_prog_RANLIB"
7036 fi
7037
7038 # Extract the first word of "rm", so it can be a program name with args.
7039 set dummy rm; ac_word=$2
7040 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7042 if test "${ac_cv_path_RM+set}" = set; then
7043   echo $ECHO_N "(cached) $ECHO_C" >&6
7044 else
7045   case $RM in
7046   [\\/]* | ?:[\\/]*)
7047   ac_cv_path_RM="$RM" # Let the user override the test with a path.
7048   ;;
7049   *)
7050   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7051 for as_dir in $PATH
7052 do
7053   IFS=$as_save_IFS
7054   test -z "$as_dir" && as_dir=.
7055   for ac_exec_ext in '' $ac_executable_extensions; do
7056   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7057     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7058     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7059     break 2
7060   fi
7061 done
7062 done
7063 IFS=$as_save_IFS
7064
7065   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7066   ;;
7067 esac
7068 fi
7069 RM=$ac_cv_path_RM
7070 if test -n "$RM"; then
7071   { echo "$as_me:$LINENO: result: $RM" >&5
7072 echo "${ECHO_T}$RM" >&6; }
7073 else
7074   { echo "$as_me:$LINENO: result: no" >&5
7075 echo "${ECHO_T}no" >&6; }
7076 fi
7077
7078
7079 # Extract the first word of "sed", so it can be a program name with args.
7080 set dummy sed; ac_word=$2
7081 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7083 if test "${ac_cv_path_SED+set}" = set; then
7084   echo $ECHO_N "(cached) $ECHO_C" >&6
7085 else
7086   case $SED in
7087   [\\/]* | ?:[\\/]*)
7088   ac_cv_path_SED="$SED" # Let the user override the test with a path.
7089   ;;
7090   *)
7091   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7092 for as_dir in $PATH
7093 do
7094   IFS=$as_save_IFS
7095   test -z "$as_dir" && as_dir=.
7096   for ac_exec_ext in '' $ac_executable_extensions; do
7097   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7098     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7099     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7100     break 2
7101   fi
7102 done
7103 done
7104 IFS=$as_save_IFS
7105
7106   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7107   ;;
7108 esac
7109 fi
7110 SED=$ac_cv_path_SED
7111 if test -n "$SED"; then
7112   { echo "$as_me:$LINENO: result: $SED" >&5
7113 echo "${ECHO_T}$SED" >&6; }
7114 else
7115   { echo "$as_me:$LINENO: result: no" >&5
7116 echo "${ECHO_T}no" >&6; }
7117 fi
7118
7119
7120 # Extract the first word of "tar", so it can be a program name with args.
7121 set dummy tar; ac_word=$2
7122 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7124 if test "${ac_cv_path_TAR+set}" = set; then
7125   echo $ECHO_N "(cached) $ECHO_C" >&6
7126 else
7127   case $TAR in
7128   [\\/]* | ?:[\\/]*)
7129   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7130   ;;
7131   *)
7132   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7133 for as_dir in $PATH
7134 do
7135   IFS=$as_save_IFS
7136   test -z "$as_dir" && as_dir=.
7137   for ac_exec_ext in '' $ac_executable_extensions; do
7138   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7139     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7140     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7141     break 2
7142   fi
7143 done
7144 done
7145 IFS=$as_save_IFS
7146
7147   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7148   ;;
7149 esac
7150 fi
7151 TAR=$ac_cv_path_TAR
7152 if test -n "$TAR"; then
7153   { echo "$as_me:$LINENO: result: $TAR" >&5
7154 echo "${ECHO_T}$TAR" >&6; }
7155 else
7156   { echo "$as_me:$LINENO: result: no" >&5
7157 echo "${ECHO_T}no" >&6; }
7158 fi
7159
7160
7161 # Extract the first word of "pwd", so it can be a program name with args.
7162 set dummy pwd; ac_word=$2
7163 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7165 if test "${ac_cv_path_BINPWD+set}" = set; then
7166   echo $ECHO_N "(cached) $ECHO_C" >&6
7167 else
7168   case $BINPWD in
7169   [\\/]* | ?:[\\/]*)
7170   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7171   ;;
7172   *)
7173   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7174 for as_dir in $PATH
7175 do
7176   IFS=$as_save_IFS
7177   test -z "$as_dir" && as_dir=.
7178   for ac_exec_ext in '' $ac_executable_extensions; do
7179   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7180     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7181     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7182     break 2
7183   fi
7184 done
7185 done
7186 IFS=$as_save_IFS
7187
7188   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7189   ;;
7190 esac
7191 fi
7192 BINPWD=$ac_cv_path_BINPWD
7193 if test -n "$BINPWD"; then
7194   { echo "$as_me:$LINENO: result: $BINPWD" >&5
7195 echo "${ECHO_T}$BINPWD" >&6; }
7196 else
7197   { echo "$as_me:$LINENO: result: no" >&5
7198 echo "${ECHO_T}no" >&6; }
7199 fi
7200
7201
7202
7203 # Extract the first word of "Graphviz", so it can be a program name with args.
7204 set dummy Graphviz; ac_word=$2
7205 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7207 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7208   echo $ECHO_N "(cached) $ECHO_C" >&6
7209 else
7210   case $GRAPHVIZ in
7211   [\\/]* | ?:[\\/]*)
7212   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7213   ;;
7214   *)
7215   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7216 for as_dir in $PATH
7217 do
7218   IFS=$as_save_IFS
7219   test -z "$as_dir" && as_dir=.
7220   for ac_exec_ext in '' $ac_executable_extensions; do
7221   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7222     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7223     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7224     break 2
7225   fi
7226 done
7227 done
7228 IFS=$as_save_IFS
7229
7230   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7231   ;;
7232 esac
7233 fi
7234 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7235 if test -n "$GRAPHVIZ"; then
7236   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7237 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7238 else
7239   { echo "$as_me:$LINENO: result: no" >&5
7240 echo "${ECHO_T}no" >&6; }
7241 fi
7242
7243
7244 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7245
7246 cat >>confdefs.h <<\_ACEOF
7247 #define HAVE_GRAPHVIZ 1
7248 _ACEOF
7249
7250     if test "$llvm_cv_os_type" = "MingW" ; then
7251     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7252   fi
7253
7254 cat >>confdefs.h <<_ACEOF
7255 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7256 _ACEOF
7257
7258 fi
7259 # Extract the first word of "dot", so it can be a program name with args.
7260 set dummy dot; ac_word=$2
7261 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7263 if test "${ac_cv_path_DOT+set}" = set; then
7264   echo $ECHO_N "(cached) $ECHO_C" >&6
7265 else
7266   case $DOT in
7267   [\\/]* | ?:[\\/]*)
7268   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7269   ;;
7270   *)
7271   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7272 for as_dir in $PATH
7273 do
7274   IFS=$as_save_IFS
7275   test -z "$as_dir" && as_dir=.
7276   for ac_exec_ext in '' $ac_executable_extensions; do
7277   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7278     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7279     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7280     break 2
7281   fi
7282 done
7283 done
7284 IFS=$as_save_IFS
7285
7286   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7287   ;;
7288 esac
7289 fi
7290 DOT=$ac_cv_path_DOT
7291 if test -n "$DOT"; then
7292   { echo "$as_me:$LINENO: result: $DOT" >&5
7293 echo "${ECHO_T}$DOT" >&6; }
7294 else
7295   { echo "$as_me:$LINENO: result: no" >&5
7296 echo "${ECHO_T}no" >&6; }
7297 fi
7298
7299
7300 if test "$DOT" != "echo dot" ; then
7301
7302 cat >>confdefs.h <<\_ACEOF
7303 #define HAVE_DOT 1
7304 _ACEOF
7305
7306     if test "$llvm_cv_os_type" = "MingW" ; then
7307     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7308   fi
7309
7310 cat >>confdefs.h <<_ACEOF
7311 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7312 _ACEOF
7313
7314 fi
7315 for ac_prog in gv gsview32
7316 do
7317   # Extract the first word of "$ac_prog", so it can be a program name with args.
7318 set dummy $ac_prog; ac_word=$2
7319 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7321 if test "${ac_cv_path_GV+set}" = set; then
7322   echo $ECHO_N "(cached) $ECHO_C" >&6
7323 else
7324   case $GV in
7325   [\\/]* | ?:[\\/]*)
7326   ac_cv_path_GV="$GV" # Let the user override the test with a path.
7327   ;;
7328   *)
7329   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7330 for as_dir in $PATH
7331 do
7332   IFS=$as_save_IFS
7333   test -z "$as_dir" && as_dir=.
7334   for ac_exec_ext in '' $ac_executable_extensions; do
7335   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7336     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7337     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7338     break 2
7339   fi
7340 done
7341 done
7342 IFS=$as_save_IFS
7343
7344   ;;
7345 esac
7346 fi
7347 GV=$ac_cv_path_GV
7348 if test -n "$GV"; then
7349   { echo "$as_me:$LINENO: result: $GV" >&5
7350 echo "${ECHO_T}$GV" >&6; }
7351 else
7352   { echo "$as_me:$LINENO: result: no" >&5
7353 echo "${ECHO_T}no" >&6; }
7354 fi
7355
7356
7357   test -n "$GV" && break
7358 done
7359 test -n "$GV" || GV="echo gv"
7360
7361 if test "$GV" != "echo gv" ; then
7362
7363 cat >>confdefs.h <<\_ACEOF
7364 #define HAVE_GV 1
7365 _ACEOF
7366
7367     if test "$llvm_cv_os_type" = "MingW" ; then
7368     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7369   fi
7370
7371 cat >>confdefs.h <<_ACEOF
7372 #define LLVM_PATH_GV "$GV${EXEEXT}"
7373 _ACEOF
7374
7375 fi
7376 # Extract the first word of "dotty", so it can be a program name with args.
7377 set dummy dotty; ac_word=$2
7378 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7380 if test "${ac_cv_path_DOTTY+set}" = set; then
7381   echo $ECHO_N "(cached) $ECHO_C" >&6
7382 else
7383   case $DOTTY in
7384   [\\/]* | ?:[\\/]*)
7385   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7386   ;;
7387   *)
7388   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7389 for as_dir in $PATH
7390 do
7391   IFS=$as_save_IFS
7392   test -z "$as_dir" && as_dir=.
7393   for ac_exec_ext in '' $ac_executable_extensions; do
7394   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7395     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7396     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7397     break 2
7398   fi
7399 done
7400 done
7401 IFS=$as_save_IFS
7402
7403   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7404   ;;
7405 esac
7406 fi
7407 DOTTY=$ac_cv_path_DOTTY
7408 if test -n "$DOTTY"; then
7409   { echo "$as_me:$LINENO: result: $DOTTY" >&5
7410 echo "${ECHO_T}$DOTTY" >&6; }
7411 else
7412   { echo "$as_me:$LINENO: result: no" >&5
7413 echo "${ECHO_T}no" >&6; }
7414 fi
7415
7416
7417 if test "$DOTTY" != "echo dotty" ; then
7418
7419 cat >>confdefs.h <<\_ACEOF
7420 #define HAVE_DOTTY 1
7421 _ACEOF
7422
7423     if test "$llvm_cv_os_type" = "MingW" ; then
7424     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7425   fi
7426
7427 cat >>confdefs.h <<_ACEOF
7428 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7429 _ACEOF
7430
7431 fi
7432
7433
7434 # Extract the first word of "perl", so it can be a program name with args.
7435 set dummy perl; ac_word=$2
7436 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7438 if test "${ac_cv_path_PERL+set}" = set; then
7439   echo $ECHO_N "(cached) $ECHO_C" >&6
7440 else
7441   case $PERL in
7442   [\\/]* | ?:[\\/]*)
7443   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7444   ;;
7445   *)
7446   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7447 for as_dir in $PATH
7448 do
7449   IFS=$as_save_IFS
7450   test -z "$as_dir" && as_dir=.
7451   for ac_exec_ext in '' $ac_executable_extensions; do
7452   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7453     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7454     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7455     break 2
7456   fi
7457 done
7458 done
7459 IFS=$as_save_IFS
7460
7461   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7462   ;;
7463 esac
7464 fi
7465 PERL=$ac_cv_path_PERL
7466 if test -n "$PERL"; then
7467   { echo "$as_me:$LINENO: result: $PERL" >&5
7468 echo "${ECHO_T}$PERL" >&6; }
7469 else
7470   { echo "$as_me:$LINENO: result: no" >&5
7471 echo "${ECHO_T}no" >&6; }
7472 fi
7473
7474
7475 if test "$PERL" != "none"; then
7476   { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7477 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7478   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7479     { echo "$as_me:$LINENO: result: yes" >&5
7480 echo "${ECHO_T}yes" >&6; }
7481   else
7482     PERL=none
7483     { echo "$as_me:$LINENO: result: not found" >&5
7484 echo "${ECHO_T}not found" >&6; }
7485   fi
7486 fi
7487
7488
7489 if test x"$PERL" = xnone; then
7490    HAVE_PERL=0
7491
7492    { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7493 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7494    { (exit 1); exit 1; }; }
7495 else
7496    HAVE_PERL=1
7497
7498 fi
7499
7500 # Find a good install program.  We prefer a C program (faster),
7501 # so one script is as good as another.  But avoid the broken or
7502 # incompatible versions:
7503 # SysV /etc/install, /usr/sbin/install
7504 # SunOS /usr/etc/install
7505 # IRIX /sbin/install
7506 # AIX /bin/install
7507 # AmigaOS /C/install, which installs bootblocks on floppy discs
7508 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7509 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7510 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7511 # OS/2's system install, which has a completely different semantic
7512 # ./install, which can be erroneously created by make from ./install.sh.
7513 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7514 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7515 if test -z "$INSTALL"; then
7516 if test "${ac_cv_path_install+set}" = set; then
7517   echo $ECHO_N "(cached) $ECHO_C" >&6
7518 else
7519   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7520 for as_dir in $PATH
7521 do
7522   IFS=$as_save_IFS
7523   test -z "$as_dir" && as_dir=.
7524   # Account for people who put trailing slashes in PATH elements.
7525 case $as_dir/ in
7526   ./ | .// | /cC/* | \
7527   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7528   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7529   /usr/ucb/* ) ;;
7530   *)
7531     # OSF1 and SCO ODT 3.0 have their own names for install.
7532     # Don't use installbsd from OSF since it installs stuff as root
7533     # by default.
7534     for ac_prog in ginstall scoinst install; do
7535       for ac_exec_ext in '' $ac_executable_extensions; do
7536         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7537           if test $ac_prog = install &&
7538             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7539             # AIX install.  It has an incompatible calling convention.
7540             :
7541           elif test $ac_prog = install &&
7542             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7543             # program-specific install script used by HP pwplus--don't use.
7544             :
7545           else
7546             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7547             break 3
7548           fi
7549         fi
7550       done
7551     done
7552     ;;
7553 esac
7554 done
7555 IFS=$as_save_IFS
7556
7557
7558 fi
7559   if test "${ac_cv_path_install+set}" = set; then
7560     INSTALL=$ac_cv_path_install
7561   else
7562     # As a last resort, use the slow shell script.  Don't cache a
7563     # value for INSTALL within a source directory, because that will
7564     # break other packages using the cache if that directory is
7565     # removed, or if the value is a relative name.
7566     INSTALL=$ac_install_sh
7567   fi
7568 fi
7569 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7570 echo "${ECHO_T}$INSTALL" >&6; }
7571
7572 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7573 # It thinks the first close brace ends the variable substitution.
7574 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7575
7576 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7577
7578 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7579
7580
7581 # Extract the first word of "bzip2", so it can be a program name with args.
7582 set dummy bzip2; ac_word=$2
7583 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7585 if test "${ac_cv_path_BZIP2+set}" = set; then
7586   echo $ECHO_N "(cached) $ECHO_C" >&6
7587 else
7588   case $BZIP2 in
7589   [\\/]* | ?:[\\/]*)
7590   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7591   ;;
7592   *)
7593   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7594 for as_dir in $PATH
7595 do
7596   IFS=$as_save_IFS
7597   test -z "$as_dir" && as_dir=.
7598   for ac_exec_ext in '' $ac_executable_extensions; do
7599   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7600     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7601     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7602     break 2
7603   fi
7604 done
7605 done
7606 IFS=$as_save_IFS
7607
7608   ;;
7609 esac
7610 fi
7611 BZIP2=$ac_cv_path_BZIP2
7612 if test -n "$BZIP2"; then
7613   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7614 echo "${ECHO_T}$BZIP2" >&6; }
7615 else
7616   { echo "$as_me:$LINENO: result: no" >&5
7617 echo "${ECHO_T}no" >&6; }
7618 fi
7619
7620
7621 # Extract the first word of "doxygen", so it can be a program name with args.
7622 set dummy doxygen; ac_word=$2
7623 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7625 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7626   echo $ECHO_N "(cached) $ECHO_C" >&6
7627 else
7628   case $DOXYGEN in
7629   [\\/]* | ?:[\\/]*)
7630   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7631   ;;
7632   *)
7633   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7634 for as_dir in $PATH
7635 do
7636   IFS=$as_save_IFS
7637   test -z "$as_dir" && as_dir=.
7638   for ac_exec_ext in '' $ac_executable_extensions; do
7639   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7640     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7641     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7642     break 2
7643   fi
7644 done
7645 done
7646 IFS=$as_save_IFS
7647
7648   ;;
7649 esac
7650 fi
7651 DOXYGEN=$ac_cv_path_DOXYGEN
7652 if test -n "$DOXYGEN"; then
7653   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7654 echo "${ECHO_T}$DOXYGEN" >&6; }
7655 else
7656   { echo "$as_me:$LINENO: result: no" >&5
7657 echo "${ECHO_T}no" >&6; }
7658 fi
7659
7660
7661 # Extract the first word of "groff", so it can be a program name with args.
7662 set dummy groff; ac_word=$2
7663 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7665 if test "${ac_cv_path_GROFF+set}" = set; then
7666   echo $ECHO_N "(cached) $ECHO_C" >&6
7667 else
7668   case $GROFF in
7669   [\\/]* | ?:[\\/]*)
7670   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7671   ;;
7672   *)
7673   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7674 for as_dir in $PATH
7675 do
7676   IFS=$as_save_IFS
7677   test -z "$as_dir" && as_dir=.
7678   for ac_exec_ext in '' $ac_executable_extensions; do
7679   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7680     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7681     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7682     break 2
7683   fi
7684 done
7685 done
7686 IFS=$as_save_IFS
7687
7688   ;;
7689 esac
7690 fi
7691 GROFF=$ac_cv_path_GROFF
7692 if test -n "$GROFF"; then
7693   { echo "$as_me:$LINENO: result: $GROFF" >&5
7694 echo "${ECHO_T}$GROFF" >&6; }
7695 else
7696   { echo "$as_me:$LINENO: result: no" >&5
7697 echo "${ECHO_T}no" >&6; }
7698 fi
7699
7700
7701 # Extract the first word of "gzip", so it can be a program name with args.
7702 set dummy gzip; ac_word=$2
7703 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7705 if test "${ac_cv_path_GZIP+set}" = set; then
7706   echo $ECHO_N "(cached) $ECHO_C" >&6
7707 else
7708   case $GZIP in
7709   [\\/]* | ?:[\\/]*)
7710   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7711   ;;
7712   *)
7713   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7714 for as_dir in $PATH
7715 do
7716   IFS=$as_save_IFS
7717   test -z "$as_dir" && as_dir=.
7718   for ac_exec_ext in '' $ac_executable_extensions; do
7719   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7720     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7721     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7722     break 2
7723   fi
7724 done
7725 done
7726 IFS=$as_save_IFS
7727
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   ;;
7769 esac
7770 fi
7771 POD2HTML=$ac_cv_path_POD2HTML
7772 if test -n "$POD2HTML"; then
7773   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7774 echo "${ECHO_T}$POD2HTML" >&6; }
7775 else
7776   { echo "$as_me:$LINENO: result: no" >&5
7777 echo "${ECHO_T}no" >&6; }
7778 fi
7779
7780
7781 # Extract the first word of "pod2man", so it can be a program name with args.
7782 set dummy pod2man; ac_word=$2
7783 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7785 if test "${ac_cv_path_POD2MAN+set}" = set; then
7786   echo $ECHO_N "(cached) $ECHO_C" >&6
7787 else
7788   case $POD2MAN in
7789   [\\/]* | ?:[\\/]*)
7790   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7791   ;;
7792   *)
7793   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7794 for as_dir in $PATH
7795 do
7796   IFS=$as_save_IFS
7797   test -z "$as_dir" && as_dir=.
7798   for ac_exec_ext in '' $ac_executable_extensions; do
7799   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7800     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7801     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7802     break 2
7803   fi
7804 done
7805 done
7806 IFS=$as_save_IFS
7807
7808   ;;
7809 esac
7810 fi
7811 POD2MAN=$ac_cv_path_POD2MAN
7812 if test -n "$POD2MAN"; then
7813   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7814 echo "${ECHO_T}$POD2MAN" >&6; }
7815 else
7816   { echo "$as_me:$LINENO: result: no" >&5
7817 echo "${ECHO_T}no" >&6; }
7818 fi
7819
7820
7821 # Extract the first word of "runtest", so it can be a program name with args.
7822 set dummy runtest; ac_word=$2
7823 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7825 if test "${ac_cv_path_RUNTEST+set}" = set; then
7826   echo $ECHO_N "(cached) $ECHO_C" >&6
7827 else
7828   case $RUNTEST in
7829   [\\/]* | ?:[\\/]*)
7830   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7831   ;;
7832   *)
7833   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7834 for as_dir in $PATH
7835 do
7836   IFS=$as_save_IFS
7837   test -z "$as_dir" && as_dir=.
7838   for ac_exec_ext in '' $ac_executable_extensions; do
7839   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7840     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7841     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7842     break 2
7843   fi
7844 done
7845 done
7846 IFS=$as_save_IFS
7847
7848   ;;
7849 esac
7850 fi
7851 RUNTEST=$ac_cv_path_RUNTEST
7852 if test -n "$RUNTEST"; then
7853   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7854 echo "${ECHO_T}$RUNTEST" >&6; }
7855 else
7856   { echo "$as_me:$LINENO: result: no" >&5
7857 echo "${ECHO_T}no" >&6; }
7858 fi
7859
7860
7861
7862 no_itcl=true
7863 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7864 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7865
7866 # Check whether --with-tclinclude was given.
7867 if test "${with_tclinclude+set}" = set; then
7868   withval=$with_tclinclude; with_tclinclude=${withval}
7869 else
7870   with_tclinclude=''
7871 fi
7872
7873 if test "${ac_cv_path_tclsh+set}" = set; then
7874   echo $ECHO_N "(cached) $ECHO_C" >&6
7875 else
7876
7877 if test x"${with_tclinclude}" != x ; then
7878   if test -f ${with_tclinclude}/tclsh ; then
7879     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7880   elif test -f ${with_tclinclude}/src/tclsh ; then
7881     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7882   else
7883     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7884 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7885    { (exit 1); exit 1; }; }
7886   fi
7887 fi
7888
7889 if test x"${ac_cv_path_tclsh}" = x ; then
7890   { echo "$as_me:$LINENO: result: none" >&5
7891 echo "${ECHO_T}none" >&6; }
7892   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
7893 do
7894   # Extract the first word of "$ac_prog", so it can be a program name with args.
7895 set dummy $ac_prog; ac_word=$2
7896 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7898 if test "${ac_cv_path_TCLSH+set}" = set; then
7899   echo $ECHO_N "(cached) $ECHO_C" >&6
7900 else
7901   case $TCLSH in
7902   [\\/]* | ?:[\\/]*)
7903   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7904   ;;
7905   *)
7906   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7907 for as_dir in $PATH
7908 do
7909   IFS=$as_save_IFS
7910   test -z "$as_dir" && as_dir=.
7911   for ac_exec_ext in '' $ac_executable_extensions; do
7912   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7913     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7914     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7915     break 2
7916   fi
7917 done
7918 done
7919 IFS=$as_save_IFS
7920
7921   ;;
7922 esac
7923 fi
7924 TCLSH=$ac_cv_path_TCLSH
7925 if test -n "$TCLSH"; then
7926   { echo "$as_me:$LINENO: result: $TCLSH" >&5
7927 echo "${ECHO_T}$TCLSH" >&6; }
7928 else
7929   { echo "$as_me:$LINENO: result: no" >&5
7930 echo "${ECHO_T}no" >&6; }
7931 fi
7932
7933
7934   test -n "$TCLSH" && break
7935 done
7936
7937   if test x"${TCLSH}" = x ; then
7938     ac_cv_path_tclsh='';
7939   else
7940     ac_cv_path_tclsh="${TCLSH}";
7941   fi
7942 else
7943   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7944 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7945   TCLSH="${ac_cv_path_tclsh}"
7946
7947 fi
7948
7949 fi
7950
7951 # Extract the first word of "zip", so it can be a program name with args.
7952 set dummy zip; ac_word=$2
7953 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7955 if test "${ac_cv_path_ZIP+set}" = set; then
7956   echo $ECHO_N "(cached) $ECHO_C" >&6
7957 else
7958   case $ZIP in
7959   [\\/]* | ?:[\\/]*)
7960   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7961   ;;
7962   *)
7963   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7964 for as_dir in $PATH
7965 do
7966   IFS=$as_save_IFS
7967   test -z "$as_dir" && as_dir=.
7968   for ac_exec_ext in '' $ac_executable_extensions; do
7969   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7970     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7971     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7972     break 2
7973   fi
7974 done
7975 done
7976 IFS=$as_save_IFS
7977
7978   ;;
7979 esac
7980 fi
7981 ZIP=$ac_cv_path_ZIP
7982 if test -n "$ZIP"; then
7983   { echo "$as_me:$LINENO: result: $ZIP" >&5
7984 echo "${ECHO_T}$ZIP" >&6; }
7985 else
7986   { echo "$as_me:$LINENO: result: no" >&5
7987 echo "${ECHO_T}no" >&6; }
7988 fi
7989
7990
7991 for ac_prog in ocamlc.opt ocamlc
7992 do
7993   # Extract the first word of "$ac_prog", so it can be a program name with args.
7994 set dummy $ac_prog; ac_word=$2
7995 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7997 if test "${ac_cv_path_OCAMLC+set}" = set; then
7998   echo $ECHO_N "(cached) $ECHO_C" >&6
7999 else
8000   case $OCAMLC in
8001   [\\/]* | ?:[\\/]*)
8002   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8003   ;;
8004   *)
8005   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8006 for as_dir in $PATH
8007 do
8008   IFS=$as_save_IFS
8009   test -z "$as_dir" && as_dir=.
8010   for ac_exec_ext in '' $ac_executable_extensions; do
8011   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8012     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8013     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8014     break 2
8015   fi
8016 done
8017 done
8018 IFS=$as_save_IFS
8019
8020   ;;
8021 esac
8022 fi
8023 OCAMLC=$ac_cv_path_OCAMLC
8024 if test -n "$OCAMLC"; then
8025   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8026 echo "${ECHO_T}$OCAMLC" >&6; }
8027 else
8028   { echo "$as_me:$LINENO: result: no" >&5
8029 echo "${ECHO_T}no" >&6; }
8030 fi
8031
8032
8033   test -n "$OCAMLC" && break
8034 done
8035
8036 for ac_prog in ocamlopt.opt ocamlopt
8037 do
8038   # Extract the first word of "$ac_prog", so it can be a program name with args.
8039 set dummy $ac_prog; ac_word=$2
8040 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8042 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8043   echo $ECHO_N "(cached) $ECHO_C" >&6
8044 else
8045   case $OCAMLOPT in
8046   [\\/]* | ?:[\\/]*)
8047   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8048   ;;
8049   *)
8050   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8051 for as_dir in $PATH
8052 do
8053   IFS=$as_save_IFS
8054   test -z "$as_dir" && as_dir=.
8055   for ac_exec_ext in '' $ac_executable_extensions; do
8056   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8057     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8058     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8059     break 2
8060   fi
8061 done
8062 done
8063 IFS=$as_save_IFS
8064
8065   ;;
8066 esac
8067 fi
8068 OCAMLOPT=$ac_cv_path_OCAMLOPT
8069 if test -n "$OCAMLOPT"; then
8070   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8071 echo "${ECHO_T}$OCAMLOPT" >&6; }
8072 else
8073   { echo "$as_me:$LINENO: result: no" >&5
8074 echo "${ECHO_T}no" >&6; }
8075 fi
8076
8077
8078   test -n "$OCAMLOPT" && break
8079 done
8080
8081 for ac_prog in ocamldep.opt ocamldep
8082 do
8083   # Extract the first word of "$ac_prog", so it can be a program name with args.
8084 set dummy $ac_prog; ac_word=$2
8085 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8087 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8088   echo $ECHO_N "(cached) $ECHO_C" >&6
8089 else
8090   case $OCAMLDEP in
8091   [\\/]* | ?:[\\/]*)
8092   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8093   ;;
8094   *)
8095   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8096 for as_dir in $PATH
8097 do
8098   IFS=$as_save_IFS
8099   test -z "$as_dir" && as_dir=.
8100   for ac_exec_ext in '' $ac_executable_extensions; do
8101   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8102     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8103     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8104     break 2
8105   fi
8106 done
8107 done
8108 IFS=$as_save_IFS
8109
8110   ;;
8111 esac
8112 fi
8113 OCAMLDEP=$ac_cv_path_OCAMLDEP
8114 if test -n "$OCAMLDEP"; then
8115   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8116 echo "${ECHO_T}$OCAMLDEP" >&6; }
8117 else
8118   { echo "$as_me:$LINENO: result: no" >&5
8119 echo "${ECHO_T}no" >&6; }
8120 fi
8121
8122
8123   test -n "$OCAMLDEP" && break
8124 done
8125
8126 for ac_prog in ocamldoc.opt ocamldoc
8127 do
8128   # Extract the first word of "$ac_prog", so it can be a program name with args.
8129 set dummy $ac_prog; ac_word=$2
8130 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8132 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8133   echo $ECHO_N "(cached) $ECHO_C" >&6
8134 else
8135   case $OCAMLDOC in
8136   [\\/]* | ?:[\\/]*)
8137   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8138   ;;
8139   *)
8140   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8141 for as_dir in $PATH
8142 do
8143   IFS=$as_save_IFS
8144   test -z "$as_dir" && as_dir=.
8145   for ac_exec_ext in '' $ac_executable_extensions; do
8146   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8147     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8148     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8149     break 2
8150   fi
8151 done
8152 done
8153 IFS=$as_save_IFS
8154
8155   ;;
8156 esac
8157 fi
8158 OCAMLDOC=$ac_cv_path_OCAMLDOC
8159 if test -n "$OCAMLDOC"; then
8160   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8161 echo "${ECHO_T}$OCAMLDOC" >&6; }
8162 else
8163   { echo "$as_me:$LINENO: result: no" >&5
8164 echo "${ECHO_T}no" >&6; }
8165 fi
8166
8167
8168   test -n "$OCAMLDOC" && break
8169 done
8170
8171
8172 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8173 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8174 if test "${llvm_cv_link_use_r+set}" = set; then
8175   echo $ECHO_N "(cached) $ECHO_C" >&6
8176 else
8177    ac_ext=c
8178 ac_cpp='$CPP $CPPFLAGS'
8179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8182
8183   oldcflags="$CFLAGS"
8184   CFLAGS="$CFLAGS -Wl,-R."
8185   cat >conftest.$ac_ext <<_ACEOF
8186 /* confdefs.h.  */
8187 _ACEOF
8188 cat confdefs.h >>conftest.$ac_ext
8189 cat >>conftest.$ac_ext <<_ACEOF
8190 /* end confdefs.h.  */
8191
8192 int
8193 main ()
8194 {
8195 int main() { return 0; }
8196   ;
8197   return 0;
8198 }
8199 _ACEOF
8200 rm -f conftest.$ac_objext conftest$ac_exeext
8201 if { (ac_try="$ac_link"
8202 case "(($ac_try" in
8203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8204   *) ac_try_echo=$ac_try;;
8205 esac
8206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8207   (eval "$ac_link") 2>conftest.er1
8208   ac_status=$?
8209   grep -v '^ *+' conftest.er1 >conftest.err
8210   rm -f conftest.er1
8211   cat conftest.err >&5
8212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8213   (exit $ac_status); } &&
8214          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8215   { (case "(($ac_try" in
8216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8217   *) ac_try_echo=$ac_try;;
8218 esac
8219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8220   (eval "$ac_try") 2>&5
8221   ac_status=$?
8222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223   (exit $ac_status); }; } &&
8224          { ac_try='test -s conftest$ac_exeext'
8225   { (case "(($ac_try" in
8226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8227   *) ac_try_echo=$ac_try;;
8228 esac
8229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8230   (eval "$ac_try") 2>&5
8231   ac_status=$?
8232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233   (exit $ac_status); }; }; then
8234   llvm_cv_link_use_r=yes
8235 else
8236   echo "$as_me: failed program was:" >&5
8237 sed 's/^/| /' conftest.$ac_ext >&5
8238
8239         llvm_cv_link_use_r=no
8240 fi
8241
8242 rm -f core conftest.err conftest.$ac_objext \
8243       conftest$ac_exeext conftest.$ac_ext
8244   CFLAGS="$oldcflags"
8245   ac_ext=c
8246 ac_cpp='$CPP $CPPFLAGS'
8247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8250
8251
8252 fi
8253 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8254 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8255 if test "$llvm_cv_link_use_r" = yes ; then
8256
8257 cat >>confdefs.h <<\_ACEOF
8258 #define HAVE_LINK_R 1
8259 _ACEOF
8260
8261   fi
8262
8263
8264
8265
8266 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8267 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8268 if test "${ac_cv_c_const+set}" = set; then
8269   echo $ECHO_N "(cached) $ECHO_C" >&6
8270 else
8271   cat >conftest.$ac_ext <<_ACEOF
8272 /* confdefs.h.  */
8273 _ACEOF
8274 cat confdefs.h >>conftest.$ac_ext
8275 cat >>conftest.$ac_ext <<_ACEOF
8276 /* end confdefs.h.  */
8277
8278 int
8279 main ()
8280 {
8281 /* FIXME: Include the comments suggested by Paul. */
8282 #ifndef __cplusplus
8283   /* Ultrix mips cc rejects this.  */
8284   typedef int charset[2];
8285   const charset x;
8286   /* SunOS 4.1.1 cc rejects this.  */
8287   char const *const *ccp;
8288   char **p;
8289   /* NEC SVR4.0.2 mips cc rejects this.  */
8290   struct point {int x, y;};
8291   static struct point const zero = {0,0};
8292   /* AIX XL C 1.02.0.0 rejects this.
8293      It does not let you subtract one const X* pointer from another in
8294      an arm of an if-expression whose if-part is not a constant
8295      expression */
8296   const char *g = "string";
8297   ccp = &g + (g ? g-g : 0);
8298   /* HPUX 7.0 cc rejects these. */
8299   ++ccp;
8300   p = (char**) ccp;
8301   ccp = (char const *const *) p;
8302   { /* SCO 3.2v4 cc rejects this.  */
8303     char *t;
8304     char const *s = 0 ? (char *) 0 : (char const *) 0;
8305
8306     *t++ = 0;
8307     if (s) return 0;
8308   }
8309   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8310     int x[] = {25, 17};
8311     const int *foo = &x[0];
8312     ++foo;
8313   }
8314   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8315     typedef const int *iptr;
8316     iptr p = 0;
8317     ++p;
8318   }
8319   { /* AIX XL C 1.02.0.0 rejects this saying
8320        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8321     struct s { int j; const int *ap[3]; };
8322     struct s *b; b->j = 5;
8323   }
8324   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8325     const int foo = 10;
8326     if (!foo) return 0;
8327   }
8328   return !x[0] && !zero.x;
8329 #endif
8330
8331   ;
8332   return 0;
8333 }
8334 _ACEOF
8335 rm -f conftest.$ac_objext
8336 if { (ac_try="$ac_compile"
8337 case "(($ac_try" in
8338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8339   *) ac_try_echo=$ac_try;;
8340 esac
8341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8342   (eval "$ac_compile") 2>conftest.er1
8343   ac_status=$?
8344   grep -v '^ *+' conftest.er1 >conftest.err
8345   rm -f conftest.er1
8346   cat conftest.err >&5
8347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8348   (exit $ac_status); } &&
8349          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8350   { (case "(($ac_try" in
8351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8352   *) ac_try_echo=$ac_try;;
8353 esac
8354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8355   (eval "$ac_try") 2>&5
8356   ac_status=$?
8357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8358   (exit $ac_status); }; } &&
8359          { ac_try='test -s conftest.$ac_objext'
8360   { (case "(($ac_try" in
8361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8362   *) ac_try_echo=$ac_try;;
8363 esac
8364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8365   (eval "$ac_try") 2>&5
8366   ac_status=$?
8367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8368   (exit $ac_status); }; }; then
8369   ac_cv_c_const=yes
8370 else
8371   echo "$as_me: failed program was:" >&5
8372 sed 's/^/| /' conftest.$ac_ext >&5
8373
8374         ac_cv_c_const=no
8375 fi
8376
8377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8378 fi
8379 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8380 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8381 if test $ac_cv_c_const = no; then
8382
8383 cat >>confdefs.h <<\_ACEOF
8384 #define const
8385 _ACEOF
8386
8387 fi
8388
8389
8390
8391
8392
8393
8394 ac_header_dirent=no
8395 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8396   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8397 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8398 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8399 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8400   echo $ECHO_N "(cached) $ECHO_C" >&6
8401 else
8402   cat >conftest.$ac_ext <<_ACEOF
8403 /* confdefs.h.  */
8404 _ACEOF
8405 cat confdefs.h >>conftest.$ac_ext
8406 cat >>conftest.$ac_ext <<_ACEOF
8407 /* end confdefs.h.  */
8408 #include <sys/types.h>
8409 #include <$ac_hdr>
8410
8411 int
8412 main ()
8413 {
8414 if ((DIR *) 0)
8415 return 0;
8416   ;
8417   return 0;
8418 }
8419 _ACEOF
8420 rm -f conftest.$ac_objext
8421 if { (ac_try="$ac_compile"
8422 case "(($ac_try" in
8423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8424   *) ac_try_echo=$ac_try;;
8425 esac
8426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8427   (eval "$ac_compile") 2>conftest.er1
8428   ac_status=$?
8429   grep -v '^ *+' conftest.er1 >conftest.err
8430   rm -f conftest.er1
8431   cat conftest.err >&5
8432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8433   (exit $ac_status); } &&
8434          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8435   { (case "(($ac_try" in
8436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8437   *) ac_try_echo=$ac_try;;
8438 esac
8439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8440   (eval "$ac_try") 2>&5
8441   ac_status=$?
8442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8443   (exit $ac_status); }; } &&
8444          { ac_try='test -s conftest.$ac_objext'
8445   { (case "(($ac_try" in
8446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8447   *) ac_try_echo=$ac_try;;
8448 esac
8449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8450   (eval "$ac_try") 2>&5
8451   ac_status=$?
8452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453   (exit $ac_status); }; }; then
8454   eval "$as_ac_Header=yes"
8455 else
8456   echo "$as_me: failed program was:" >&5
8457 sed 's/^/| /' conftest.$ac_ext >&5
8458
8459         eval "$as_ac_Header=no"
8460 fi
8461
8462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8463 fi
8464 ac_res=`eval echo '${'$as_ac_Header'}'`
8465                { echo "$as_me:$LINENO: result: $ac_res" >&5
8466 echo "${ECHO_T}$ac_res" >&6; }
8467 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8468   cat >>confdefs.h <<_ACEOF
8469 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8470 _ACEOF
8471
8472 ac_header_dirent=$ac_hdr; break
8473 fi
8474
8475 done
8476 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8477 if test $ac_header_dirent = dirent.h; then
8478   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8479 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8480 if test "${ac_cv_search_opendir+set}" = set; then
8481   echo $ECHO_N "(cached) $ECHO_C" >&6
8482 else
8483   ac_func_search_save_LIBS=$LIBS
8484 cat >conftest.$ac_ext <<_ACEOF
8485 /* confdefs.h.  */
8486 _ACEOF
8487 cat confdefs.h >>conftest.$ac_ext
8488 cat >>conftest.$ac_ext <<_ACEOF
8489 /* end confdefs.h.  */
8490
8491 /* Override any GCC internal prototype to avoid an error.
8492    Use char because int might match the return type of a GCC
8493    builtin and then its argument prototype would still apply.  */
8494 #ifdef __cplusplus
8495 extern "C"
8496 #endif
8497 char opendir ();
8498 int
8499 main ()
8500 {
8501 return opendir ();
8502   ;
8503   return 0;
8504 }
8505 _ACEOF
8506 for ac_lib in '' dir; do
8507   if test -z "$ac_lib"; then
8508     ac_res="none required"
8509   else
8510     ac_res=-l$ac_lib
8511     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8512   fi
8513   rm -f conftest.$ac_objext conftest$ac_exeext
8514 if { (ac_try="$ac_link"
8515 case "(($ac_try" in
8516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8517   *) ac_try_echo=$ac_try;;
8518 esac
8519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8520   (eval "$ac_link") 2>conftest.er1
8521   ac_status=$?
8522   grep -v '^ *+' conftest.er1 >conftest.err
8523   rm -f conftest.er1
8524   cat conftest.err >&5
8525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8526   (exit $ac_status); } &&
8527          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8528   { (case "(($ac_try" in
8529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8530   *) ac_try_echo=$ac_try;;
8531 esac
8532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8533   (eval "$ac_try") 2>&5
8534   ac_status=$?
8535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536   (exit $ac_status); }; } &&
8537          { ac_try='test -s conftest$ac_exeext'
8538   { (case "(($ac_try" in
8539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8540   *) ac_try_echo=$ac_try;;
8541 esac
8542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8543   (eval "$ac_try") 2>&5
8544   ac_status=$?
8545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546   (exit $ac_status); }; }; then
8547   ac_cv_search_opendir=$ac_res
8548 else
8549   echo "$as_me: failed program was:" >&5
8550 sed 's/^/| /' conftest.$ac_ext >&5
8551
8552
8553 fi
8554
8555 rm -f core conftest.err conftest.$ac_objext \
8556       conftest$ac_exeext
8557   if test "${ac_cv_search_opendir+set}" = set; then
8558   break
8559 fi
8560 done
8561 if test "${ac_cv_search_opendir+set}" = set; then
8562   :
8563 else
8564   ac_cv_search_opendir=no
8565 fi
8566 rm conftest.$ac_ext
8567 LIBS=$ac_func_search_save_LIBS
8568 fi
8569 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8570 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8571 ac_res=$ac_cv_search_opendir
8572 if test "$ac_res" != no; then
8573   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8574
8575 fi
8576
8577 else
8578   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8579 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8580 if test "${ac_cv_search_opendir+set}" = set; then
8581   echo $ECHO_N "(cached) $ECHO_C" >&6
8582 else
8583   ac_func_search_save_LIBS=$LIBS
8584 cat >conftest.$ac_ext <<_ACEOF
8585 /* confdefs.h.  */
8586 _ACEOF
8587 cat confdefs.h >>conftest.$ac_ext
8588 cat >>conftest.$ac_ext <<_ACEOF
8589 /* end confdefs.h.  */
8590
8591 /* Override any GCC internal prototype to avoid an error.
8592    Use char because int might match the return type of a GCC
8593    builtin and then its argument prototype would still apply.  */
8594 #ifdef __cplusplus
8595 extern "C"
8596 #endif
8597 char opendir ();
8598 int
8599 main ()
8600 {
8601 return opendir ();
8602   ;
8603   return 0;
8604 }
8605 _ACEOF
8606 for ac_lib in '' x; do
8607   if test -z "$ac_lib"; then
8608     ac_res="none required"
8609   else
8610     ac_res=-l$ac_lib
8611     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8612   fi
8613   rm -f conftest.$ac_objext conftest$ac_exeext
8614 if { (ac_try="$ac_link"
8615 case "(($ac_try" in
8616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8617   *) ac_try_echo=$ac_try;;
8618 esac
8619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8620   (eval "$ac_link") 2>conftest.er1
8621   ac_status=$?
8622   grep -v '^ *+' conftest.er1 >conftest.err
8623   rm -f conftest.er1
8624   cat conftest.err >&5
8625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626   (exit $ac_status); } &&
8627          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8628   { (case "(($ac_try" in
8629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8630   *) ac_try_echo=$ac_try;;
8631 esac
8632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8633   (eval "$ac_try") 2>&5
8634   ac_status=$?
8635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8636   (exit $ac_status); }; } &&
8637          { ac_try='test -s conftest$ac_exeext'
8638   { (case "(($ac_try" in
8639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8640   *) ac_try_echo=$ac_try;;
8641 esac
8642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8643   (eval "$ac_try") 2>&5
8644   ac_status=$?
8645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8646   (exit $ac_status); }; }; then
8647   ac_cv_search_opendir=$ac_res
8648 else
8649   echo "$as_me: failed program was:" >&5
8650 sed 's/^/| /' conftest.$ac_ext >&5
8651
8652
8653 fi
8654
8655 rm -f core conftest.err conftest.$ac_objext \
8656       conftest$ac_exeext
8657   if test "${ac_cv_search_opendir+set}" = set; then
8658   break
8659 fi
8660 done
8661 if test "${ac_cv_search_opendir+set}" = set; then
8662   :
8663 else
8664   ac_cv_search_opendir=no
8665 fi
8666 rm conftest.$ac_ext
8667 LIBS=$ac_func_search_save_LIBS
8668 fi
8669 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8670 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8671 ac_res=$ac_cv_search_opendir
8672 if test "$ac_res" != no; then
8673   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8674
8675 fi
8676
8677 fi
8678
8679
8680 for ac_header in dlfcn.h
8681 do
8682 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8683 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8684   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8685 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8686 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8687   echo $ECHO_N "(cached) $ECHO_C" >&6
8688 fi
8689 ac_res=`eval echo '${'$as_ac_Header'}'`
8690                { echo "$as_me:$LINENO: result: $ac_res" >&5
8691 echo "${ECHO_T}$ac_res" >&6; }
8692 else
8693   # Is the header compilable?
8694 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8695 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8696 cat >conftest.$ac_ext <<_ACEOF
8697 /* confdefs.h.  */
8698 _ACEOF
8699 cat confdefs.h >>conftest.$ac_ext
8700 cat >>conftest.$ac_ext <<_ACEOF
8701 /* end confdefs.h.  */
8702 $ac_includes_default
8703 #include <$ac_header>
8704 _ACEOF
8705 rm -f conftest.$ac_objext
8706 if { (ac_try="$ac_compile"
8707 case "(($ac_try" in
8708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8709   *) ac_try_echo=$ac_try;;
8710 esac
8711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8712   (eval "$ac_compile") 2>conftest.er1
8713   ac_status=$?
8714   grep -v '^ *+' conftest.er1 >conftest.err
8715   rm -f conftest.er1
8716   cat conftest.err >&5
8717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8718   (exit $ac_status); } &&
8719          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8720   { (case "(($ac_try" in
8721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8722   *) ac_try_echo=$ac_try;;
8723 esac
8724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8725   (eval "$ac_try") 2>&5
8726   ac_status=$?
8727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8728   (exit $ac_status); }; } &&
8729          { ac_try='test -s conftest.$ac_objext'
8730   { (case "(($ac_try" in
8731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8732   *) ac_try_echo=$ac_try;;
8733 esac
8734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8735   (eval "$ac_try") 2>&5
8736   ac_status=$?
8737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8738   (exit $ac_status); }; }; then
8739   ac_header_compiler=yes
8740 else
8741   echo "$as_me: failed program was:" >&5
8742 sed 's/^/| /' conftest.$ac_ext >&5
8743
8744         ac_header_compiler=no
8745 fi
8746
8747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8748 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8749 echo "${ECHO_T}$ac_header_compiler" >&6; }
8750
8751 # Is the header present?
8752 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8753 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8754 cat >conftest.$ac_ext <<_ACEOF
8755 /* confdefs.h.  */
8756 _ACEOF
8757 cat confdefs.h >>conftest.$ac_ext
8758 cat >>conftest.$ac_ext <<_ACEOF
8759 /* end confdefs.h.  */
8760 #include <$ac_header>
8761 _ACEOF
8762 if { (ac_try="$ac_cpp conftest.$ac_ext"
8763 case "(($ac_try" in
8764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8765   *) ac_try_echo=$ac_try;;
8766 esac
8767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8768   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8769   ac_status=$?
8770   grep -v '^ *+' conftest.er1 >conftest.err
8771   rm -f conftest.er1
8772   cat conftest.err >&5
8773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8774   (exit $ac_status); } >/dev/null; then
8775   if test -s conftest.err; then
8776     ac_cpp_err=$ac_c_preproc_warn_flag
8777     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8778   else
8779     ac_cpp_err=
8780   fi
8781 else
8782   ac_cpp_err=yes
8783 fi
8784 if test -z "$ac_cpp_err"; then
8785   ac_header_preproc=yes
8786 else
8787   echo "$as_me: failed program was:" >&5
8788 sed 's/^/| /' conftest.$ac_ext >&5
8789
8790   ac_header_preproc=no
8791 fi
8792
8793 rm -f conftest.err conftest.$ac_ext
8794 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8795 echo "${ECHO_T}$ac_header_preproc" >&6; }
8796
8797 # So?  What about this header?
8798 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8799   yes:no: )
8800     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8801 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8802     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8803 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8804     ac_header_preproc=yes
8805     ;;
8806   no:yes:* )
8807     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8808 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8809     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8810 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8811     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8812 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8813     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8814 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8815     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8816 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8817     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8818 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8819     ( cat <<\_ASBOX
8820 ## ----------------------------------- ##
8821 ## Report this to llvmbugs@cs.uiuc.edu ##
8822 ## ----------------------------------- ##
8823 _ASBOX
8824      ) | sed "s/^/$as_me: WARNING:     /" >&2
8825     ;;
8826 esac
8827 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8828 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8829 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8830   echo $ECHO_N "(cached) $ECHO_C" >&6
8831 else
8832   eval "$as_ac_Header=\$ac_header_preproc"
8833 fi
8834 ac_res=`eval echo '${'$as_ac_Header'}'`
8835                { echo "$as_me:$LINENO: result: $ac_res" >&5
8836 echo "${ECHO_T}$ac_res" >&6; }
8837
8838 fi
8839 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8840   cat >>confdefs.h <<_ACEOF
8841 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8842 _ACEOF
8843
8844 fi
8845
8846 done
8847
8848 # Check whether --enable-ltdl-install was given.
8849 if test "${enable_ltdl_install+set}" = set; then
8850   enableval=$enable_ltdl_install;
8851 fi
8852
8853
8854
8855
8856 if test x"${enable_ltdl_install-no}" != xno; then
8857   INSTALL_LTDL_TRUE=
8858   INSTALL_LTDL_FALSE='#'
8859 else
8860   INSTALL_LTDL_TRUE='#'
8861   INSTALL_LTDL_FALSE=
8862 fi
8863
8864
8865
8866 if test x"${enable_ltdl_convenience-no}" != xno; then
8867   CONVENIENCE_LTDL_TRUE=
8868   CONVENIENCE_LTDL_FALSE='#'
8869 else
8870   CONVENIENCE_LTDL_TRUE='#'
8871   CONVENIENCE_LTDL_FALSE=
8872 fi
8873
8874
8875 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8876 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8877 library_names_spec=
8878 libname_spec='lib$name'
8879 soname_spec=
8880 shrext_cmds=".so"
8881 postinstall_cmds=
8882 postuninstall_cmds=
8883 finish_cmds=
8884 finish_eval=
8885 shlibpath_var=
8886 shlibpath_overrides_runpath=unknown
8887 version_type=none
8888 dynamic_linker="$host_os ld.so"
8889 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8890 if test "$GCC" = yes; then
8891   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8892   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8893     # if the path contains ";" then we assume it to be the separator
8894     # otherwise default to the standard path separator (i.e. ":") - it is
8895     # assumed that no part of a normal pathname contains ";" but that should
8896     # okay in the real world where ";" in dirpaths is itself problematic.
8897     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8898   else
8899     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8900   fi
8901 else
8902   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8903 fi
8904 need_lib_prefix=unknown
8905 hardcode_into_libs=no
8906
8907 # when you set need_version to no, make sure it does not cause -set_version
8908 # flags to be left without arguments
8909 need_version=unknown
8910
8911 case $host_os in
8912 aix3*)
8913   version_type=linux
8914   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8915   shlibpath_var=LIBPATH
8916
8917   # AIX 3 has no versioning support, so we append a major version to the name.
8918   soname_spec='${libname}${release}${shared_ext}$major'
8919   ;;
8920
8921 aix4* | aix5*)
8922   version_type=linux
8923   need_lib_prefix=no
8924   need_version=no
8925   hardcode_into_libs=yes
8926   if test "$host_cpu" = ia64; then
8927     # AIX 5 supports IA64
8928     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8929     shlibpath_var=LD_LIBRARY_PATH
8930   else
8931     # With GCC up to 2.95.x, collect2 would create an import file
8932     # for dependence libraries.  The import file would start with
8933     # the line `#! .'.  This would cause the generated library to
8934     # depend on `.', always an invalid library.  This was fixed in
8935     # development snapshots of GCC prior to 3.0.
8936     case $host_os in
8937       aix4 | aix4.[01] | aix4.[01].*)
8938       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8939            echo ' yes '
8940            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8941         :
8942       else
8943         can_build_shared=no
8944       fi
8945       ;;
8946     esac
8947     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8948     # soname into executable. Probably we can add versioning support to
8949     # collect2, so additional links can be useful in future.
8950     if test "$aix_use_runtimelinking" = yes; then
8951       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8952       # instead of lib<name>.a to let people know that these are not
8953       # typical AIX shared libraries.
8954       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8955     else
8956       # We preserve .a as extension for shared libraries through AIX4.2
8957       # and later when we are not doing run time linking.
8958       library_names_spec='${libname}${release}.a $libname.a'
8959       soname_spec='${libname}${release}${shared_ext}$major'
8960     fi
8961     shlibpath_var=LIBPATH
8962   fi
8963   ;;
8964
8965 amigaos*)
8966   library_names_spec='$libname.ixlibrary $libname.a'
8967   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8968   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'
8969   ;;
8970
8971 beos*)
8972   library_names_spec='${libname}${shared_ext}'
8973   dynamic_linker="$host_os ld.so"
8974   shlibpath_var=LIBRARY_PATH
8975   ;;
8976
8977 bsdi[45]*)
8978   version_type=linux
8979   need_version=no
8980   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8981   soname_spec='${libname}${release}${shared_ext}$major'
8982   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8983   shlibpath_var=LD_LIBRARY_PATH
8984   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8985   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8986   # the default ld.so.conf also contains /usr/contrib/lib and
8987   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8988   # libtool to hard-code these into programs
8989   ;;
8990
8991 cygwin* | mingw* | pw32*)
8992   version_type=windows
8993   shrext_cmds=".dll"
8994   need_version=no
8995   need_lib_prefix=no
8996
8997   case $GCC,$host_os in
8998   yes,cygwin* | yes,mingw* | yes,pw32*)
8999     library_names_spec='$libname.dll.a'
9000     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9001     postinstall_cmds='base_file=`basename \${file}`~
9002       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9003       dldir=$destdir/`dirname \$dlpath`~
9004       test -d \$dldir || mkdir -p \$dldir~
9005       $install_prog $dir/$dlname \$dldir/$dlname~
9006       chmod a+x \$dldir/$dlname'
9007     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9008       dlpath=$dir/\$dldll~
9009        $rm \$dlpath'
9010     shlibpath_overrides_runpath=yes
9011
9012     case $host_os in
9013     cygwin*)
9014       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9015       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9016       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9017       ;;
9018     mingw*)
9019       # MinGW DLLs use traditional 'lib' prefix
9020       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9021       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9022       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9023         # It is most probably a Windows format PATH printed by
9024         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9025         # path with ; separators, and with drive letters. We can handle the
9026         # drive letters (cygwin fileutils understands them), so leave them,
9027         # especially as we might pass files found there to a mingw objdump,
9028         # which wouldn't understand a cygwinified path. Ahh.
9029         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9030       else
9031         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9032       fi
9033       ;;
9034     pw32*)
9035       # pw32 DLLs use 'pw' prefix rather than 'lib'
9036       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9037       ;;
9038     esac
9039     ;;
9040
9041   *)
9042     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9043     ;;
9044   esac
9045   dynamic_linker='Win32 ld.exe'
9046   # FIXME: first we should search . and the directory the executable is in
9047   shlibpath_var=PATH
9048   ;;
9049
9050 darwin* | rhapsody*)
9051   dynamic_linker="$host_os dyld"
9052   version_type=darwin
9053   need_lib_prefix=no
9054   need_version=no
9055   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9056   soname_spec='${libname}${release}${major}$shared_ext'
9057   shlibpath_overrides_runpath=yes
9058   shlibpath_var=DYLD_LIBRARY_PATH
9059   shrext_cmds='.dylib'
9060   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9061   if test "$GCC" = yes; then
9062     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"`
9063   else
9064     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9065   fi
9066   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9067   ;;
9068
9069 dgux*)
9070   version_type=linux
9071   need_lib_prefix=no
9072   need_version=no
9073   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9074   soname_spec='${libname}${release}${shared_ext}$major'
9075   shlibpath_var=LD_LIBRARY_PATH
9076   ;;
9077
9078 freebsd1*)
9079   dynamic_linker=no
9080   ;;
9081
9082 kfreebsd*-gnu)
9083   version_type=linux
9084   need_lib_prefix=no
9085   need_version=no
9086   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9087   soname_spec='${libname}${release}${shared_ext}$major'
9088   shlibpath_var=LD_LIBRARY_PATH
9089   shlibpath_overrides_runpath=no
9090   hardcode_into_libs=yes
9091   dynamic_linker='GNU ld.so'
9092   ;;
9093
9094 freebsd* | dragonfly*)
9095   # DragonFly does not have aout.  When/if they implement a new
9096   # versioning mechanism, adjust this.
9097   if test -x /usr/bin/objformat; then
9098     objformat=`/usr/bin/objformat`
9099   else
9100     case $host_os in
9101     freebsd[123]*) objformat=aout ;;
9102     *) objformat=elf ;;
9103     esac
9104   fi
9105   version_type=freebsd-$objformat
9106   case $version_type in
9107     freebsd-elf*)
9108       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9109       need_version=no
9110       need_lib_prefix=no
9111       ;;
9112     freebsd-*)
9113       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9114       need_version=yes
9115       ;;
9116   esac
9117   shlibpath_var=LD_LIBRARY_PATH
9118   case $host_os in
9119   freebsd2*)
9120     shlibpath_overrides_runpath=yes
9121     ;;
9122   freebsd3.[01]* | freebsdelf3.[01]*)
9123     shlibpath_overrides_runpath=yes
9124     hardcode_into_libs=yes
9125     ;;
9126   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9127   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9128     shlibpath_overrides_runpath=no
9129     hardcode_into_libs=yes
9130     ;;
9131   freebsd*) # from 4.6 on
9132     shlibpath_overrides_runpath=yes
9133     hardcode_into_libs=yes
9134     ;;
9135   esac
9136   ;;
9137
9138 gnu*)
9139   version_type=linux
9140   need_lib_prefix=no
9141   need_version=no
9142   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9143   soname_spec='${libname}${release}${shared_ext}$major'
9144   shlibpath_var=LD_LIBRARY_PATH
9145   hardcode_into_libs=yes
9146   ;;
9147
9148 hpux9* | hpux10* | hpux11*)
9149   # Give a soname corresponding to the major version so that dld.sl refuses to
9150   # link against other versions.
9151   version_type=sunos
9152   need_lib_prefix=no
9153   need_version=no
9154   case $host_cpu in
9155   ia64*)
9156     shrext_cmds='.so'
9157     hardcode_into_libs=yes
9158     dynamic_linker="$host_os dld.so"
9159     shlibpath_var=LD_LIBRARY_PATH
9160     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9161     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9162     soname_spec='${libname}${release}${shared_ext}$major'
9163     if test "X$HPUX_IA64_MODE" = X32; then
9164       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9165     else
9166       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9167     fi
9168     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9169     ;;
9170    hppa*64*)
9171      shrext_cmds='.sl'
9172      hardcode_into_libs=yes
9173      dynamic_linker="$host_os dld.sl"
9174      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9175      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9176      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9177      soname_spec='${libname}${release}${shared_ext}$major'
9178      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9179      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9180      ;;
9181    *)
9182     shrext_cmds='.sl'
9183     dynamic_linker="$host_os dld.sl"
9184     shlibpath_var=SHLIB_PATH
9185     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9186     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9187     soname_spec='${libname}${release}${shared_ext}$major'
9188     ;;
9189   esac
9190   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9191   postinstall_cmds='chmod 555 $lib'
9192   ;;
9193
9194 interix3*)
9195   version_type=linux
9196   need_lib_prefix=no
9197   need_version=no
9198   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9199   soname_spec='${libname}${release}${shared_ext}$major'
9200   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9201   shlibpath_var=LD_LIBRARY_PATH
9202   shlibpath_overrides_runpath=no
9203   hardcode_into_libs=yes
9204   ;;
9205
9206 irix5* | irix6* | nonstopux*)
9207   case $host_os in
9208     nonstopux*) version_type=nonstopux ;;
9209     *)
9210         if test "$lt_cv_prog_gnu_ld" = yes; then
9211                 version_type=linux
9212         else
9213                 version_type=irix
9214         fi ;;
9215   esac
9216   need_lib_prefix=no
9217   need_version=no
9218   soname_spec='${libname}${release}${shared_ext}$major'
9219   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9220   case $host_os in
9221   irix5* | nonstopux*)
9222     libsuff= shlibsuff=
9223     ;;
9224   *)
9225     case $LD in # libtool.m4 will add one of these switches to LD
9226     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9227       libsuff= shlibsuff= libmagic=32-bit;;
9228     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9229       libsuff=32 shlibsuff=N32 libmagic=N32;;
9230     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9231       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9232     *) libsuff= shlibsuff= libmagic=never-match;;
9233     esac
9234     ;;
9235   esac
9236   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9237   shlibpath_overrides_runpath=no
9238   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9239   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9240   hardcode_into_libs=yes
9241   ;;
9242
9243 # No shared lib support for Linux oldld, aout, or coff.
9244 linux*oldld* | linux*aout* | linux*coff*)
9245   dynamic_linker=no
9246   ;;
9247
9248 # This must be Linux ELF.
9249 linux*)
9250   version_type=linux
9251   need_lib_prefix=no
9252   need_version=no
9253   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9254   soname_spec='${libname}${release}${shared_ext}$major'
9255   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9256   shlibpath_var=LD_LIBRARY_PATH
9257   shlibpath_overrides_runpath=no
9258   # This implies no fast_install, which is unacceptable.
9259   # Some rework will be needed to allow for fast_install
9260   # before this can be enabled.
9261   hardcode_into_libs=yes
9262
9263   # Append ld.so.conf contents to the search path
9264   if test -f /etc/ld.so.conf; then
9265     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' ' '`
9266     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9267   fi
9268
9269   # We used to test for /lib/ld.so.1 and disable shared libraries on
9270   # powerpc, because MkLinux only supported shared libraries with the
9271   # GNU dynamic linker.  Since this was broken with cross compilers,
9272   # most powerpc-linux boxes support dynamic linking these days and
9273   # people can always --disable-shared, the test was removed, and we
9274   # assume the GNU/Linux dynamic linker is in use.
9275   dynamic_linker='GNU/Linux ld.so'
9276   ;;
9277
9278 knetbsd*-gnu)
9279   version_type=linux
9280   need_lib_prefix=no
9281   need_version=no
9282   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9283   soname_spec='${libname}${release}${shared_ext}$major'
9284   shlibpath_var=LD_LIBRARY_PATH
9285   shlibpath_overrides_runpath=no
9286   hardcode_into_libs=yes
9287   dynamic_linker='GNU ld.so'
9288   ;;
9289
9290 netbsd*)
9291   version_type=sunos
9292   need_lib_prefix=no
9293   need_version=no
9294   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9295     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9296     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9297     dynamic_linker='NetBSD (a.out) ld.so'
9298   else
9299     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9300     soname_spec='${libname}${release}${shared_ext}$major'
9301     dynamic_linker='NetBSD ld.elf_so'
9302   fi
9303   shlibpath_var=LD_LIBRARY_PATH
9304   shlibpath_overrides_runpath=yes
9305   hardcode_into_libs=yes
9306   ;;
9307
9308 newsos6)
9309   version_type=linux
9310   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9311   shlibpath_var=LD_LIBRARY_PATH
9312   shlibpath_overrides_runpath=yes
9313   ;;
9314
9315 nto-qnx*)
9316   version_type=linux
9317   need_lib_prefix=no
9318   need_version=no
9319   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9320   soname_spec='${libname}${release}${shared_ext}$major'
9321   shlibpath_var=LD_LIBRARY_PATH
9322   shlibpath_overrides_runpath=yes
9323   ;;
9324
9325 openbsd*)
9326   version_type=sunos
9327   sys_lib_dlsearch_path_spec="/usr/lib"
9328   need_lib_prefix=no
9329   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9330   case $host_os in
9331     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9332     *)                         need_version=no  ;;
9333   esac
9334   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9335   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9336   shlibpath_var=LD_LIBRARY_PATH
9337   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9338     case $host_os in
9339       openbsd2.[89] | openbsd2.[89].*)
9340         shlibpath_overrides_runpath=no
9341         ;;
9342       *)
9343         shlibpath_overrides_runpath=yes
9344         ;;
9345       esac
9346   else
9347     shlibpath_overrides_runpath=yes
9348   fi
9349   ;;
9350
9351 os2*)
9352   libname_spec='$name'
9353   shrext_cmds=".dll"
9354   need_lib_prefix=no
9355   library_names_spec='$libname${shared_ext} $libname.a'
9356   dynamic_linker='OS/2 ld.exe'
9357   shlibpath_var=LIBPATH
9358   ;;
9359
9360 osf3* | osf4* | osf5*)
9361   version_type=osf
9362   need_lib_prefix=no
9363   need_version=no
9364   soname_spec='${libname}${release}${shared_ext}$major'
9365   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9366   shlibpath_var=LD_LIBRARY_PATH
9367   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9368   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9369   ;;
9370
9371 solaris*)
9372   version_type=linux
9373   need_lib_prefix=no
9374   need_version=no
9375   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9376   soname_spec='${libname}${release}${shared_ext}$major'
9377   shlibpath_var=LD_LIBRARY_PATH
9378   shlibpath_overrides_runpath=yes
9379   hardcode_into_libs=yes
9380   # ldd complains unless libraries are executable
9381   postinstall_cmds='chmod +x $lib'
9382   ;;
9383
9384 sunos4*)
9385   version_type=sunos
9386   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9387   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9388   shlibpath_var=LD_LIBRARY_PATH
9389   shlibpath_overrides_runpath=yes
9390   if test "$with_gnu_ld" = yes; then
9391     need_lib_prefix=no
9392   fi
9393   need_version=yes
9394   ;;
9395
9396 sysv4 | sysv4.3*)
9397   version_type=linux
9398   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9399   soname_spec='${libname}${release}${shared_ext}$major'
9400   shlibpath_var=LD_LIBRARY_PATH
9401   case $host_vendor in
9402     sni)
9403       shlibpath_overrides_runpath=no
9404       need_lib_prefix=no
9405       export_dynamic_flag_spec='${wl}-Blargedynsym'
9406       runpath_var=LD_RUN_PATH
9407       ;;
9408     siemens)
9409       need_lib_prefix=no
9410       ;;
9411     motorola)
9412       need_lib_prefix=no
9413       need_version=no
9414       shlibpath_overrides_runpath=no
9415       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9416       ;;
9417   esac
9418   ;;
9419
9420 sysv4*MP*)
9421   if test -d /usr/nec ;then
9422     version_type=linux
9423     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9424     soname_spec='$libname${shared_ext}.$major'
9425     shlibpath_var=LD_LIBRARY_PATH
9426   fi
9427   ;;
9428
9429 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9430   version_type=freebsd-elf
9431   need_lib_prefix=no
9432   need_version=no
9433   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9434   soname_spec='${libname}${release}${shared_ext}$major'
9435   shlibpath_var=LD_LIBRARY_PATH
9436   hardcode_into_libs=yes
9437   if test "$with_gnu_ld" = yes; then
9438     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9439     shlibpath_overrides_runpath=no
9440   else
9441     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9442     shlibpath_overrides_runpath=yes
9443     case $host_os in
9444       sco3.2v5*)
9445         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9446         ;;
9447     esac
9448   fi
9449   sys_lib_dlsearch_path_spec='/usr/lib'
9450   ;;
9451
9452 uts4*)
9453   version_type=linux
9454   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9455   soname_spec='${libname}${release}${shared_ext}$major'
9456   shlibpath_var=LD_LIBRARY_PATH
9457   ;;
9458
9459 *)
9460   dynamic_linker=no
9461   ;;
9462 esac
9463 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9464 echo "${ECHO_T}$dynamic_linker" >&6; }
9465 test "$dynamic_linker" = no && can_build_shared=no
9466
9467 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9468 if test "$GCC" = yes; then
9469   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9470 fi
9471
9472
9473 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9474 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9475 if test "${libltdl_cv_shlibext+set}" = set; then
9476   echo $ECHO_N "(cached) $ECHO_C" >&6
9477 else
9478
9479 module=yes
9480 eval libltdl_cv_shlibext=$shrext_cmds
9481
9482 fi
9483 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9484 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9485 if test -n "$libltdl_cv_shlibext"; then
9486
9487 cat >>confdefs.h <<_ACEOF
9488 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9489 _ACEOF
9490
9491 fi
9492
9493
9494 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9495 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9496 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9497   echo $ECHO_N "(cached) $ECHO_C" >&6
9498 else
9499   libltdl_cv_shlibpath_var="$shlibpath_var"
9500 fi
9501 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9502 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9503 if test -n "$libltdl_cv_shlibpath_var"; then
9504
9505 cat >>confdefs.h <<_ACEOF
9506 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9507 _ACEOF
9508
9509 fi
9510
9511
9512 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9513 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9514 if test "${libltdl_cv_sys_search_path+set}" = set; then
9515   echo $ECHO_N "(cached) $ECHO_C" >&6
9516 else
9517   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9518 fi
9519 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9520 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9521 if test -n "$libltdl_cv_sys_search_path"; then
9522   sys_search_path=
9523   for dir in $libltdl_cv_sys_search_path; do
9524     if test -z "$sys_search_path"; then
9525       sys_search_path="$dir"
9526     else
9527       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9528     fi
9529   done
9530
9531 cat >>confdefs.h <<_ACEOF
9532 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9533 _ACEOF
9534
9535 fi
9536
9537 { echo "$as_me:$LINENO: checking for objdir" >&5
9538 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9539 if test "${libltdl_cv_objdir+set}" = set; then
9540   echo $ECHO_N "(cached) $ECHO_C" >&6
9541 else
9542   libltdl_cv_objdir="$objdir"
9543   if test -n "$objdir"; then
9544     :
9545   else
9546     rm -f .libs 2>/dev/null
9547     mkdir .libs 2>/dev/null
9548     if test -d .libs; then
9549       libltdl_cv_objdir=.libs
9550     else
9551       # MS-DOS does not allow filenames that begin with a dot.
9552       libltdl_cv_objdir=_libs
9553     fi
9554   rmdir .libs 2>/dev/null
9555   fi
9556
9557 fi
9558 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9559 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9560
9561 cat >>confdefs.h <<_ACEOF
9562 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9563 _ACEOF
9564
9565
9566
9567
9568
9569
9570 # Check for command to grab the raw symbol name followed by C symbol from nm.
9571 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9572 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9573 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9574   echo $ECHO_N "(cached) $ECHO_C" >&6
9575 else
9576
9577 # These are sane defaults that work on at least a few old systems.
9578 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9579
9580 # Character class describing NM global symbol codes.
9581 symcode='[BCDEGRST]'
9582
9583 # Regexp to match symbols that can be accessed directly from C.
9584 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9585
9586 # Transform an extracted symbol line into a proper C declaration
9587 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9588
9589 # Transform an extracted symbol line into symbol name and symbol address
9590 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'"
9591
9592 # Define system-specific variables.
9593 case $host_os in
9594 aix*)
9595   symcode='[BCDT]'
9596   ;;
9597 cygwin* | mingw* | pw32*)
9598   symcode='[ABCDGISTW]'
9599   ;;
9600 hpux*) # Its linker distinguishes data from code symbols
9601   if test "$host_cpu" = ia64; then
9602     symcode='[ABCDEGRST]'
9603   fi
9604   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9605   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'"
9606   ;;
9607 linux*)
9608   if test "$host_cpu" = ia64; then
9609     symcode='[ABCDGIRSTW]'
9610     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9611     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'"
9612   fi
9613   ;;
9614 irix* | nonstopux*)
9615   symcode='[BCDEGRST]'
9616   ;;
9617 osf*)
9618   symcode='[BCDEGQRST]'
9619   ;;
9620 solaris*)
9621   symcode='[BDRT]'
9622   ;;
9623 sco3.2v5*)
9624   symcode='[DT]'
9625   ;;
9626 sysv4.2uw2*)
9627   symcode='[DT]'
9628   ;;
9629 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9630   symcode='[ABDT]'
9631   ;;
9632 sysv4)
9633   symcode='[DFNSTU]'
9634   ;;
9635 esac
9636
9637 # Handle CRLF in mingw tool chain
9638 opt_cr=
9639 case $build_os in
9640 mingw*)
9641   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9642   ;;
9643 esac
9644
9645 # If we're using GNU nm, then use its standard symbol codes.
9646 case `$NM -V 2>&1` in
9647 *GNU* | *'with BFD'*)
9648   symcode='[ABCDGIRSTW]' ;;
9649 esac
9650
9651 # Try without a prefix undercore, then with it.
9652 for ac_symprfx in "" "_"; do
9653
9654   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9655   symxfrm="\\1 $ac_symprfx\\2 \\2"
9656
9657   # Write the raw and C identifiers.
9658   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9659
9660   # Check to see that the pipe works correctly.
9661   pipe_works=no
9662
9663   rm -f conftest*
9664   cat > conftest.$ac_ext <<EOF
9665 #ifdef __cplusplus
9666 extern "C" {
9667 #endif
9668 char nm_test_var;
9669 void nm_test_func(){}
9670 #ifdef __cplusplus
9671 }
9672 #endif
9673 int main(){nm_test_var='a';nm_test_func();return(0);}
9674 EOF
9675
9676   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9677   (eval $ac_compile) 2>&5
9678   ac_status=$?
9679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9680   (exit $ac_status); }; then
9681     # Now try to grab the symbols.
9682     nlist=conftest.nm
9683     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9684   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9685   ac_status=$?
9686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9687   (exit $ac_status); } && test -s "$nlist"; then
9688       # Try sorting and uniquifying the output.
9689       if sort "$nlist" | uniq > "$nlist"T; then
9690         mv -f "$nlist"T "$nlist"
9691       else
9692         rm -f "$nlist"T
9693       fi
9694
9695       # Make sure that we snagged all the symbols we need.
9696       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9697         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9698           cat <<EOF > conftest.$ac_ext
9699 #ifdef __cplusplus
9700 extern "C" {
9701 #endif
9702
9703 EOF
9704           # Now generate the symbol file.
9705           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9706
9707           cat <<EOF >> conftest.$ac_ext
9708 #if defined (__STDC__) && __STDC__
9709 # define lt_ptr_t void *
9710 #else
9711 # define lt_ptr_t char *
9712 # define const
9713 #endif
9714
9715 /* The mapping between symbol names and symbols. */
9716 const struct {
9717   const char *name;
9718   lt_ptr_t address;
9719 }
9720 lt_preloaded_symbols[] =
9721 {
9722 EOF
9723           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9724           cat <<\EOF >> conftest.$ac_ext
9725   {0, (lt_ptr_t) 0}
9726 };
9727
9728 #ifdef __cplusplus
9729 }
9730 #endif
9731 EOF
9732           # Now try linking the two files.
9733           mv conftest.$ac_objext conftstm.$ac_objext
9734           lt_save_LIBS="$LIBS"
9735           lt_save_CFLAGS="$CFLAGS"
9736           LIBS="conftstm.$ac_objext"
9737           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9738           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9739   (eval $ac_link) 2>&5
9740   ac_status=$?
9741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9742   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9743             pipe_works=yes
9744           fi
9745           LIBS="$lt_save_LIBS"
9746           CFLAGS="$lt_save_CFLAGS"
9747         else
9748           echo "cannot find nm_test_func in $nlist" >&5
9749         fi
9750       else
9751         echo "cannot find nm_test_var in $nlist" >&5
9752       fi
9753     else
9754       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9755     fi
9756   else
9757     echo "$progname: failed program was:" >&5
9758     cat conftest.$ac_ext >&5
9759   fi
9760   rm -f conftest* conftst*
9761
9762   # Do not use the global_symbol_pipe unless it works.
9763   if test "$pipe_works" = yes; then
9764     break
9765   else
9766     lt_cv_sys_global_symbol_pipe=
9767   fi
9768 done
9769
9770 fi
9771
9772 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9773   lt_cv_sys_global_symbol_to_cdecl=
9774 fi
9775 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9776   { echo "$as_me:$LINENO: result: failed" >&5
9777 echo "${ECHO_T}failed" >&6; }
9778 else
9779   { echo "$as_me:$LINENO: result: ok" >&5
9780 echo "${ECHO_T}ok" >&6; }
9781 fi
9782
9783
9784 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9785 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9786 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9787   echo $ECHO_N "(cached) $ECHO_C" >&6
9788 else
9789   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9790     libltdl_cv_preloaded_symbols=yes
9791   else
9792     libltdl_cv_preloaded_symbols=no
9793   fi
9794
9795 fi
9796 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9797 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9798 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9799
9800 cat >>confdefs.h <<\_ACEOF
9801 #define HAVE_PRELOADED_SYMBOLS 1
9802 _ACEOF
9803
9804 fi
9805
9806 LIBADD_DL=
9807
9808 ac_ext=c
9809 ac_cpp='$CPP $CPPFLAGS'
9810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9813
9814
9815 { echo "$as_me:$LINENO: checking for shl_load" >&5
9816 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9817 if test "${ac_cv_func_shl_load+set}" = set; then
9818   echo $ECHO_N "(cached) $ECHO_C" >&6
9819 else
9820   cat >conftest.$ac_ext <<_ACEOF
9821 /* confdefs.h.  */
9822 _ACEOF
9823 cat confdefs.h >>conftest.$ac_ext
9824 cat >>conftest.$ac_ext <<_ACEOF
9825 /* end confdefs.h.  */
9826 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9827    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9828 #define shl_load innocuous_shl_load
9829
9830 /* System header to define __stub macros and hopefully few prototypes,
9831     which can conflict with char shl_load (); below.
9832     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9833     <limits.h> exists even on freestanding compilers.  */
9834
9835 #ifdef __STDC__
9836 # include <limits.h>
9837 #else
9838 # include <assert.h>
9839 #endif
9840
9841 #undef shl_load
9842
9843 /* Override any GCC internal prototype to avoid an error.
9844    Use char because int might match the return type of a GCC
9845    builtin and then its argument prototype would still apply.  */
9846 #ifdef __cplusplus
9847 extern "C"
9848 #endif
9849 char shl_load ();
9850 /* The GNU C library defines this for functions which it implements
9851     to always fail with ENOSYS.  Some functions are actually named
9852     something starting with __ and the normal name is an alias.  */
9853 #if defined __stub_shl_load || defined __stub___shl_load
9854 choke me
9855 #endif
9856
9857 int
9858 main ()
9859 {
9860 return shl_load ();
9861   ;
9862   return 0;
9863 }
9864 _ACEOF
9865 rm -f conftest.$ac_objext conftest$ac_exeext
9866 if { (ac_try="$ac_link"
9867 case "(($ac_try" in
9868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9869   *) ac_try_echo=$ac_try;;
9870 esac
9871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9872   (eval "$ac_link") 2>conftest.er1
9873   ac_status=$?
9874   grep -v '^ *+' conftest.er1 >conftest.err
9875   rm -f conftest.er1
9876   cat conftest.err >&5
9877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9878   (exit $ac_status); } &&
9879          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9880   { (case "(($ac_try" in
9881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9882   *) ac_try_echo=$ac_try;;
9883 esac
9884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9885   (eval "$ac_try") 2>&5
9886   ac_status=$?
9887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9888   (exit $ac_status); }; } &&
9889          { ac_try='test -s conftest$ac_exeext'
9890   { (case "(($ac_try" in
9891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9892   *) ac_try_echo=$ac_try;;
9893 esac
9894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9895   (eval "$ac_try") 2>&5
9896   ac_status=$?
9897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9898   (exit $ac_status); }; }; then
9899   ac_cv_func_shl_load=yes
9900 else
9901   echo "$as_me: failed program was:" >&5
9902 sed 's/^/| /' conftest.$ac_ext >&5
9903
9904         ac_cv_func_shl_load=no
9905 fi
9906
9907 rm -f core conftest.err conftest.$ac_objext \
9908       conftest$ac_exeext conftest.$ac_ext
9909 fi
9910 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9911 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9912 if test $ac_cv_func_shl_load = yes; then
9913
9914 cat >>confdefs.h <<\_ACEOF
9915 #define HAVE_SHL_LOAD 1
9916 _ACEOF
9917
9918 else
9919   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9920 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9921 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9922   echo $ECHO_N "(cached) $ECHO_C" >&6
9923 else
9924   ac_check_lib_save_LIBS=$LIBS
9925 LIBS="-ldld  $LIBS"
9926 cat >conftest.$ac_ext <<_ACEOF
9927 /* confdefs.h.  */
9928 _ACEOF
9929 cat confdefs.h >>conftest.$ac_ext
9930 cat >>conftest.$ac_ext <<_ACEOF
9931 /* end confdefs.h.  */
9932
9933 /* Override any GCC internal prototype to avoid an error.
9934    Use char because int might match the return type of a GCC
9935    builtin and then its argument prototype would still apply.  */
9936 #ifdef __cplusplus
9937 extern "C"
9938 #endif
9939 char shl_load ();
9940 int
9941 main ()
9942 {
9943 return shl_load ();
9944   ;
9945   return 0;
9946 }
9947 _ACEOF
9948 rm -f conftest.$ac_objext conftest$ac_exeext
9949 if { (ac_try="$ac_link"
9950 case "(($ac_try" in
9951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9952   *) ac_try_echo=$ac_try;;
9953 esac
9954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9955   (eval "$ac_link") 2>conftest.er1
9956   ac_status=$?
9957   grep -v '^ *+' conftest.er1 >conftest.err
9958   rm -f conftest.er1
9959   cat conftest.err >&5
9960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961   (exit $ac_status); } &&
9962          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9963   { (case "(($ac_try" in
9964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9965   *) ac_try_echo=$ac_try;;
9966 esac
9967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9968   (eval "$ac_try") 2>&5
9969   ac_status=$?
9970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971   (exit $ac_status); }; } &&
9972          { ac_try='test -s conftest$ac_exeext'
9973   { (case "(($ac_try" in
9974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9975   *) ac_try_echo=$ac_try;;
9976 esac
9977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9978   (eval "$ac_try") 2>&5
9979   ac_status=$?
9980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9981   (exit $ac_status); }; }; then
9982   ac_cv_lib_dld_shl_load=yes
9983 else
9984   echo "$as_me: failed program was:" >&5
9985 sed 's/^/| /' conftest.$ac_ext >&5
9986
9987         ac_cv_lib_dld_shl_load=no
9988 fi
9989
9990 rm -f core conftest.err conftest.$ac_objext \
9991       conftest$ac_exeext conftest.$ac_ext
9992 LIBS=$ac_check_lib_save_LIBS
9993 fi
9994 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9995 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9996 if test $ac_cv_lib_dld_shl_load = yes; then
9997
9998 cat >>confdefs.h <<\_ACEOF
9999 #define HAVE_SHL_LOAD 1
10000 _ACEOF
10001
10002         LIBADD_DL="$LIBADD_DL -ldld"
10003 else
10004   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10005 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10006 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10007   echo $ECHO_N "(cached) $ECHO_C" >&6
10008 else
10009   ac_check_lib_save_LIBS=$LIBS
10010 LIBS="-ldl  $LIBS"
10011 cat >conftest.$ac_ext <<_ACEOF
10012 /* confdefs.h.  */
10013 _ACEOF
10014 cat confdefs.h >>conftest.$ac_ext
10015 cat >>conftest.$ac_ext <<_ACEOF
10016 /* end confdefs.h.  */
10017
10018 /* Override any GCC internal prototype to avoid an error.
10019    Use char because int might match the return type of a GCC
10020    builtin and then its argument prototype would still apply.  */
10021 #ifdef __cplusplus
10022 extern "C"
10023 #endif
10024 char dlopen ();
10025 int
10026 main ()
10027 {
10028 return dlopen ();
10029   ;
10030   return 0;
10031 }
10032 _ACEOF
10033 rm -f conftest.$ac_objext conftest$ac_exeext
10034 if { (ac_try="$ac_link"
10035 case "(($ac_try" in
10036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10037   *) ac_try_echo=$ac_try;;
10038 esac
10039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10040   (eval "$ac_link") 2>conftest.er1
10041   ac_status=$?
10042   grep -v '^ *+' conftest.er1 >conftest.err
10043   rm -f conftest.er1
10044   cat conftest.err >&5
10045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10046   (exit $ac_status); } &&
10047          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10048   { (case "(($ac_try" in
10049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10050   *) ac_try_echo=$ac_try;;
10051 esac
10052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10053   (eval "$ac_try") 2>&5
10054   ac_status=$?
10055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056   (exit $ac_status); }; } &&
10057          { ac_try='test -s conftest$ac_exeext'
10058   { (case "(($ac_try" in
10059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10060   *) ac_try_echo=$ac_try;;
10061 esac
10062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10063   (eval "$ac_try") 2>&5
10064   ac_status=$?
10065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10066   (exit $ac_status); }; }; then
10067   ac_cv_lib_dl_dlopen=yes
10068 else
10069   echo "$as_me: failed program was:" >&5
10070 sed 's/^/| /' conftest.$ac_ext >&5
10071
10072         ac_cv_lib_dl_dlopen=no
10073 fi
10074
10075 rm -f core conftest.err conftest.$ac_objext \
10076       conftest$ac_exeext conftest.$ac_ext
10077 LIBS=$ac_check_lib_save_LIBS
10078 fi
10079 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10080 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10081 if test $ac_cv_lib_dl_dlopen = yes; then
10082
10083 cat >>confdefs.h <<\_ACEOF
10084 #define HAVE_LIBDL 1
10085 _ACEOF
10086
10087                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10088 else
10089   cat >conftest.$ac_ext <<_ACEOF
10090 /* confdefs.h.  */
10091 _ACEOF
10092 cat confdefs.h >>conftest.$ac_ext
10093 cat >>conftest.$ac_ext <<_ACEOF
10094 /* end confdefs.h.  */
10095 #if HAVE_DLFCN_H
10096 #  include <dlfcn.h>
10097 #endif
10098
10099 int
10100 main ()
10101 {
10102 dlopen(0, 0);
10103   ;
10104   return 0;
10105 }
10106 _ACEOF
10107 rm -f conftest.$ac_objext conftest$ac_exeext
10108 if { (ac_try="$ac_link"
10109 case "(($ac_try" in
10110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10111   *) ac_try_echo=$ac_try;;
10112 esac
10113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10114   (eval "$ac_link") 2>conftest.er1
10115   ac_status=$?
10116   grep -v '^ *+' conftest.er1 >conftest.err
10117   rm -f conftest.er1
10118   cat conftest.err >&5
10119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10120   (exit $ac_status); } &&
10121          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10122   { (case "(($ac_try" in
10123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10124   *) ac_try_echo=$ac_try;;
10125 esac
10126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10127   (eval "$ac_try") 2>&5
10128   ac_status=$?
10129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10130   (exit $ac_status); }; } &&
10131          { ac_try='test -s conftest$ac_exeext'
10132   { (case "(($ac_try" in
10133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10134   *) ac_try_echo=$ac_try;;
10135 esac
10136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10137   (eval "$ac_try") 2>&5
10138   ac_status=$?
10139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10140   (exit $ac_status); }; }; then
10141
10142 cat >>confdefs.h <<\_ACEOF
10143 #define HAVE_LIBDL 1
10144 _ACEOF
10145  libltdl_cv_func_dlopen="yes"
10146 else
10147   echo "$as_me: failed program was:" >&5
10148 sed 's/^/| /' conftest.$ac_ext >&5
10149
10150         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10151 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10152 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10153   echo $ECHO_N "(cached) $ECHO_C" >&6
10154 else
10155   ac_check_lib_save_LIBS=$LIBS
10156 LIBS="-lsvld  $LIBS"
10157 cat >conftest.$ac_ext <<_ACEOF
10158 /* confdefs.h.  */
10159 _ACEOF
10160 cat confdefs.h >>conftest.$ac_ext
10161 cat >>conftest.$ac_ext <<_ACEOF
10162 /* end confdefs.h.  */
10163
10164 /* Override any GCC internal prototype to avoid an error.
10165    Use char because int might match the return type of a GCC
10166    builtin and then its argument prototype would still apply.  */
10167 #ifdef __cplusplus
10168 extern "C"
10169 #endif
10170 char dlopen ();
10171 int
10172 main ()
10173 {
10174 return dlopen ();
10175   ;
10176   return 0;
10177 }
10178 _ACEOF
10179 rm -f conftest.$ac_objext conftest$ac_exeext
10180 if { (ac_try="$ac_link"
10181 case "(($ac_try" in
10182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10183   *) ac_try_echo=$ac_try;;
10184 esac
10185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10186   (eval "$ac_link") 2>conftest.er1
10187   ac_status=$?
10188   grep -v '^ *+' conftest.er1 >conftest.err
10189   rm -f conftest.er1
10190   cat conftest.err >&5
10191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10192   (exit $ac_status); } &&
10193          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10194   { (case "(($ac_try" in
10195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10196   *) ac_try_echo=$ac_try;;
10197 esac
10198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10199   (eval "$ac_try") 2>&5
10200   ac_status=$?
10201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10202   (exit $ac_status); }; } &&
10203          { ac_try='test -s conftest$ac_exeext'
10204   { (case "(($ac_try" in
10205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10206   *) ac_try_echo=$ac_try;;
10207 esac
10208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10209   (eval "$ac_try") 2>&5
10210   ac_status=$?
10211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10212   (exit $ac_status); }; }; then
10213   ac_cv_lib_svld_dlopen=yes
10214 else
10215   echo "$as_me: failed program was:" >&5
10216 sed 's/^/| /' conftest.$ac_ext >&5
10217
10218         ac_cv_lib_svld_dlopen=no
10219 fi
10220
10221 rm -f core conftest.err conftest.$ac_objext \
10222       conftest$ac_exeext conftest.$ac_ext
10223 LIBS=$ac_check_lib_save_LIBS
10224 fi
10225 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10226 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10227 if test $ac_cv_lib_svld_dlopen = yes; then
10228
10229 cat >>confdefs.h <<\_ACEOF
10230 #define HAVE_LIBDL 1
10231 _ACEOF
10232
10233                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10234 else
10235   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10236 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10237 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10238   echo $ECHO_N "(cached) $ECHO_C" >&6
10239 else
10240   ac_check_lib_save_LIBS=$LIBS
10241 LIBS="-ldld  $LIBS"
10242 cat >conftest.$ac_ext <<_ACEOF
10243 /* confdefs.h.  */
10244 _ACEOF
10245 cat confdefs.h >>conftest.$ac_ext
10246 cat >>conftest.$ac_ext <<_ACEOF
10247 /* end confdefs.h.  */
10248
10249 /* Override any GCC internal prototype to avoid an error.
10250    Use char because int might match the return type of a GCC
10251    builtin and then its argument prototype would still apply.  */
10252 #ifdef __cplusplus
10253 extern "C"
10254 #endif
10255 char dld_link ();
10256 int
10257 main ()
10258 {
10259 return dld_link ();
10260   ;
10261   return 0;
10262 }
10263 _ACEOF
10264 rm -f conftest.$ac_objext conftest$ac_exeext
10265 if { (ac_try="$ac_link"
10266 case "(($ac_try" in
10267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10268   *) ac_try_echo=$ac_try;;
10269 esac
10270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10271   (eval "$ac_link") 2>conftest.er1
10272   ac_status=$?
10273   grep -v '^ *+' conftest.er1 >conftest.err
10274   rm -f conftest.er1
10275   cat conftest.err >&5
10276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10277   (exit $ac_status); } &&
10278          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10279   { (case "(($ac_try" in
10280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10281   *) ac_try_echo=$ac_try;;
10282 esac
10283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10284   (eval "$ac_try") 2>&5
10285   ac_status=$?
10286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10287   (exit $ac_status); }; } &&
10288          { ac_try='test -s conftest$ac_exeext'
10289   { (case "(($ac_try" in
10290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10291   *) ac_try_echo=$ac_try;;
10292 esac
10293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10294   (eval "$ac_try") 2>&5
10295   ac_status=$?
10296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10297   (exit $ac_status); }; }; then
10298   ac_cv_lib_dld_dld_link=yes
10299 else
10300   echo "$as_me: failed program was:" >&5
10301 sed 's/^/| /' conftest.$ac_ext >&5
10302
10303         ac_cv_lib_dld_dld_link=no
10304 fi
10305
10306 rm -f core conftest.err conftest.$ac_objext \
10307       conftest$ac_exeext conftest.$ac_ext
10308 LIBS=$ac_check_lib_save_LIBS
10309 fi
10310 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10311 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10312 if test $ac_cv_lib_dld_dld_link = yes; then
10313
10314 cat >>confdefs.h <<\_ACEOF
10315 #define HAVE_DLD 1
10316 _ACEOF
10317
10318                 LIBADD_DL="$LIBADD_DL -ldld"
10319 else
10320   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10321 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10322 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10323   echo $ECHO_N "(cached) $ECHO_C" >&6
10324 else
10325   cat >conftest.$ac_ext <<_ACEOF
10326 /* confdefs.h.  */
10327 _ACEOF
10328 cat confdefs.h >>conftest.$ac_ext
10329 cat >>conftest.$ac_ext <<_ACEOF
10330 /* end confdefs.h.  */
10331 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10332    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10333 #define _dyld_func_lookup innocuous__dyld_func_lookup
10334
10335 /* System header to define __stub macros and hopefully few prototypes,
10336     which can conflict with char _dyld_func_lookup (); below.
10337     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10338     <limits.h> exists even on freestanding compilers.  */
10339
10340 #ifdef __STDC__
10341 # include <limits.h>
10342 #else
10343 # include <assert.h>
10344 #endif
10345
10346 #undef _dyld_func_lookup
10347
10348 /* Override any GCC internal prototype to avoid an error.
10349    Use char because int might match the return type of a GCC
10350    builtin and then its argument prototype would still apply.  */
10351 #ifdef __cplusplus
10352 extern "C"
10353 #endif
10354 char _dyld_func_lookup ();
10355 /* The GNU C library defines this for functions which it implements
10356     to always fail with ENOSYS.  Some functions are actually named
10357     something starting with __ and the normal name is an alias.  */
10358 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10359 choke me
10360 #endif
10361
10362 int
10363 main ()
10364 {
10365 return _dyld_func_lookup ();
10366   ;
10367   return 0;
10368 }
10369 _ACEOF
10370 rm -f conftest.$ac_objext conftest$ac_exeext
10371 if { (ac_try="$ac_link"
10372 case "(($ac_try" in
10373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10374   *) ac_try_echo=$ac_try;;
10375 esac
10376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10377   (eval "$ac_link") 2>conftest.er1
10378   ac_status=$?
10379   grep -v '^ *+' conftest.er1 >conftest.err
10380   rm -f conftest.er1
10381   cat conftest.err >&5
10382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10383   (exit $ac_status); } &&
10384          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10385   { (case "(($ac_try" in
10386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10387   *) ac_try_echo=$ac_try;;
10388 esac
10389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10390   (eval "$ac_try") 2>&5
10391   ac_status=$?
10392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10393   (exit $ac_status); }; } &&
10394          { ac_try='test -s conftest$ac_exeext'
10395   { (case "(($ac_try" in
10396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10397   *) ac_try_echo=$ac_try;;
10398 esac
10399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10400   (eval "$ac_try") 2>&5
10401   ac_status=$?
10402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10403   (exit $ac_status); }; }; then
10404   ac_cv_func__dyld_func_lookup=yes
10405 else
10406   echo "$as_me: failed program was:" >&5
10407 sed 's/^/| /' conftest.$ac_ext >&5
10408
10409         ac_cv_func__dyld_func_lookup=no
10410 fi
10411
10412 rm -f core conftest.err conftest.$ac_objext \
10413       conftest$ac_exeext conftest.$ac_ext
10414 fi
10415 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10416 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10417 if test $ac_cv_func__dyld_func_lookup = yes; then
10418
10419 cat >>confdefs.h <<\_ACEOF
10420 #define HAVE_DYLD 1
10421 _ACEOF
10422
10423 fi
10424
10425
10426 fi
10427
10428
10429 fi
10430
10431
10432 fi
10433
10434 rm -f core conftest.err conftest.$ac_objext \
10435       conftest$ac_exeext conftest.$ac_ext
10436
10437 fi
10438
10439
10440 fi
10441
10442
10443 fi
10444
10445
10446 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10447 then
10448   lt_save_LIBS="$LIBS"
10449   LIBS="$LIBS $LIBADD_DL"
10450
10451 for ac_func in dlerror
10452 do
10453 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10454 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10455 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10456 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10457   echo $ECHO_N "(cached) $ECHO_C" >&6
10458 else
10459   cat >conftest.$ac_ext <<_ACEOF
10460 /* confdefs.h.  */
10461 _ACEOF
10462 cat confdefs.h >>conftest.$ac_ext
10463 cat >>conftest.$ac_ext <<_ACEOF
10464 /* end confdefs.h.  */
10465 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10466    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10467 #define $ac_func innocuous_$ac_func
10468
10469 /* System header to define __stub macros and hopefully few prototypes,
10470     which can conflict with char $ac_func (); below.
10471     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10472     <limits.h> exists even on freestanding compilers.  */
10473
10474 #ifdef __STDC__
10475 # include <limits.h>
10476 #else
10477 # include <assert.h>
10478 #endif
10479
10480 #undef $ac_func
10481
10482 /* Override any GCC internal prototype to avoid an error.
10483    Use char because int might match the return type of a GCC
10484    builtin and then its argument prototype would still apply.  */
10485 #ifdef __cplusplus
10486 extern "C"
10487 #endif
10488 char $ac_func ();
10489 /* The GNU C library defines this for functions which it implements
10490     to always fail with ENOSYS.  Some functions are actually named
10491     something starting with __ and the normal name is an alias.  */
10492 #if defined __stub_$ac_func || defined __stub___$ac_func
10493 choke me
10494 #endif
10495
10496 int
10497 main ()
10498 {
10499 return $ac_func ();
10500   ;
10501   return 0;
10502 }
10503 _ACEOF
10504 rm -f conftest.$ac_objext conftest$ac_exeext
10505 if { (ac_try="$ac_link"
10506 case "(($ac_try" in
10507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10508   *) ac_try_echo=$ac_try;;
10509 esac
10510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10511   (eval "$ac_link") 2>conftest.er1
10512   ac_status=$?
10513   grep -v '^ *+' conftest.er1 >conftest.err
10514   rm -f conftest.er1
10515   cat conftest.err >&5
10516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10517   (exit $ac_status); } &&
10518          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10519   { (case "(($ac_try" in
10520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10521   *) ac_try_echo=$ac_try;;
10522 esac
10523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10524   (eval "$ac_try") 2>&5
10525   ac_status=$?
10526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10527   (exit $ac_status); }; } &&
10528          { ac_try='test -s conftest$ac_exeext'
10529   { (case "(($ac_try" in
10530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10531   *) ac_try_echo=$ac_try;;
10532 esac
10533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10534   (eval "$ac_try") 2>&5
10535   ac_status=$?
10536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10537   (exit $ac_status); }; }; then
10538   eval "$as_ac_var=yes"
10539 else
10540   echo "$as_me: failed program was:" >&5
10541 sed 's/^/| /' conftest.$ac_ext >&5
10542
10543         eval "$as_ac_var=no"
10544 fi
10545
10546 rm -f core conftest.err conftest.$ac_objext \
10547       conftest$ac_exeext conftest.$ac_ext
10548 fi
10549 ac_res=`eval echo '${'$as_ac_var'}'`
10550                { echo "$as_me:$LINENO: result: $ac_res" >&5
10551 echo "${ECHO_T}$ac_res" >&6; }
10552 if test `eval echo '${'$as_ac_var'}'` = yes; then
10553   cat >>confdefs.h <<_ACEOF
10554 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10555 _ACEOF
10556
10557 fi
10558 done
10559
10560   LIBS="$lt_save_LIBS"
10561 fi
10562 ac_ext=c
10563 ac_cpp='$CPP $CPPFLAGS'
10564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10567
10568
10569
10570 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10571 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10572 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10573   echo $ECHO_N "(cached) $ECHO_C" >&6
10574 else
10575   ac_cv_sys_symbol_underscore=no
10576   cat > conftest.$ac_ext <<EOF
10577 void nm_test_func(){}
10578 int main(){nm_test_func;return 0;}
10579 EOF
10580   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10581   (eval $ac_compile) 2>&5
10582   ac_status=$?
10583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10584   (exit $ac_status); }; then
10585     # Now try to grab the symbols.
10586     ac_nlist=conftest.nm
10587     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10588   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10589   ac_status=$?
10590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10591   (exit $ac_status); } && test -s "$ac_nlist"; then
10592       # See whether the symbols have a leading underscore.
10593       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10594         ac_cv_sys_symbol_underscore=yes
10595       else
10596         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10597           :
10598         else
10599           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10600         fi
10601       fi
10602     else
10603       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10604     fi
10605   else
10606     echo "configure: failed program was:" >&5
10607     cat conftest.c >&5
10608   fi
10609   rm -rf conftest*
10610
10611 fi
10612 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10613 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10614
10615
10616 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10617   if test x"$libltdl_cv_func_dlopen" = xyes ||
10618      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10619         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10620 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10621 if test "${libltdl_cv_need_uscore+set}" = set; then
10622   echo $ECHO_N "(cached) $ECHO_C" >&6
10623 else
10624   libltdl_cv_need_uscore=unknown
10625           save_LIBS="$LIBS"
10626           LIBS="$LIBS $LIBADD_DL"
10627           if test "$cross_compiling" = yes; then :
10628   libltdl_cv_need_uscore=cross
10629 else
10630   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10631   lt_status=$lt_dlunknown
10632   cat > conftest.$ac_ext <<EOF
10633 #line 10633 "configure"
10634 #include "confdefs.h"
10635
10636 #if HAVE_DLFCN_H
10637 #include <dlfcn.h>
10638 #endif
10639
10640 #include <stdio.h>
10641
10642 #ifdef RTLD_GLOBAL
10643 #  define LT_DLGLOBAL           RTLD_GLOBAL
10644 #else
10645 #  ifdef DL_GLOBAL
10646 #    define LT_DLGLOBAL         DL_GLOBAL
10647 #  else
10648 #    define LT_DLGLOBAL         0
10649 #  endif
10650 #endif
10651
10652 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10653    find out it does not work in some platform. */
10654 #ifndef LT_DLLAZY_OR_NOW
10655 #  ifdef RTLD_LAZY
10656 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10657 #  else
10658 #    ifdef DL_LAZY
10659 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10660 #    else
10661 #      ifdef RTLD_NOW
10662 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10663 #      else
10664 #        ifdef DL_NOW
10665 #          define LT_DLLAZY_OR_NOW      DL_NOW
10666 #        else
10667 #          define LT_DLLAZY_OR_NOW      0
10668 #        endif
10669 #      endif
10670 #    endif
10671 #  endif
10672 #endif
10673
10674 #ifdef __cplusplus
10675 extern "C" void exit (int);
10676 #endif
10677
10678 void fnord() { int i=42;}
10679 int main ()
10680 {
10681   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10682   int status = $lt_dlunknown;
10683
10684   if (self)
10685     {
10686       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10687       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10688       /* dlclose (self); */
10689     }
10690   else
10691     puts (dlerror ());
10692
10693     exit (status);
10694 }
10695 EOF
10696   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10697   (eval $ac_link) 2>&5
10698   ac_status=$?
10699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10700   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10701     (./conftest; exit; ) >&5 2>/dev/null
10702     lt_status=$?
10703     case x$lt_status in
10704       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10705       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10706       x$lt_dlunknown|x*)  ;;
10707     esac
10708   else :
10709     # compilation failed
10710
10711   fi
10712 fi
10713 rm -fr conftest*
10714
10715           LIBS="$save_LIBS"
10716
10717 fi
10718 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10719 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10720   fi
10721 fi
10722
10723 if test x"$libltdl_cv_need_uscore" = xyes; then
10724
10725 cat >>confdefs.h <<\_ACEOF
10726 #define NEED_USCORE 1
10727 _ACEOF
10728
10729 fi
10730
10731
10732 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10733 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10734 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10735   echo $ECHO_N "(cached) $ECHO_C" >&6
10736 else
10737   # PORTME does your system automatically load deplibs for dlopen?
10738   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10739   # For now, we just catch OSes we know something about -- in the
10740   # future, we'll try test this programmatically.
10741   libltdl_cv_sys_dlopen_deplibs=unknown
10742   case "$host_os" in
10743   aix3*|aix4.1.*|aix4.2.*)
10744     # Unknown whether this is true for these versions of AIX, but
10745     # we want this `case' here to explicitly catch those versions.
10746     libltdl_cv_sys_dlopen_deplibs=unknown
10747     ;;
10748   aix[45]*)
10749     libltdl_cv_sys_dlopen_deplibs=yes
10750     ;;
10751   darwin*)
10752     # Assuming the user has installed a libdl from somewhere, this is true
10753     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10754     libltdl_cv_sys_dlopen_deplibs=yes
10755     ;;
10756   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10757     # GNU and its variants, using gnu ld.so (Glibc)
10758     libltdl_cv_sys_dlopen_deplibs=yes
10759     ;;
10760   hpux10*|hpux11*)
10761     libltdl_cv_sys_dlopen_deplibs=yes
10762     ;;
10763   interix*)
10764     libltdl_cv_sys_dlopen_deplibs=yes
10765     ;;
10766   irix[12345]*|irix6.[01]*)
10767     # Catch all versions of IRIX before 6.2, and indicate that we don't
10768     # know how it worked for any of those versions.
10769     libltdl_cv_sys_dlopen_deplibs=unknown
10770     ;;
10771   irix*)
10772     # The case above catches anything before 6.2, and it's known that
10773     # at 6.2 and later dlopen does load deplibs.
10774     libltdl_cv_sys_dlopen_deplibs=yes
10775     ;;
10776   netbsd*)
10777     libltdl_cv_sys_dlopen_deplibs=yes
10778     ;;
10779   openbsd*)
10780     libltdl_cv_sys_dlopen_deplibs=yes
10781     ;;
10782   osf[1234]*)
10783     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10784     # it did *not* use an RPATH in a shared library to find objects the
10785     # library depends on, so we explictly say `no'.
10786     libltdl_cv_sys_dlopen_deplibs=no
10787     ;;
10788   osf5.0|osf5.0a|osf5.1)
10789     # dlopen *does* load deplibs and with the right loader patch applied
10790     # it even uses RPATH in a shared library to search for shared objects
10791     # that the library depends on, but there's no easy way to know if that
10792     # patch is installed.  Since this is the case, all we can really
10793     # say is unknown -- it depends on the patch being installed.  If
10794     # it is, this changes to `yes'.  Without it, it would be `no'.
10795     libltdl_cv_sys_dlopen_deplibs=unknown
10796     ;;
10797   osf*)
10798     # the two cases above should catch all versions of osf <= 5.1.  Read
10799     # the comments above for what we know about them.
10800     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10801     # is used to find them so we can finally say `yes'.
10802     libltdl_cv_sys_dlopen_deplibs=yes
10803     ;;
10804   solaris*)
10805     libltdl_cv_sys_dlopen_deplibs=yes
10806     ;;
10807   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10808     libltdl_cv_sys_dlopen_deplibs=yes
10809     ;;
10810   esac
10811
10812 fi
10813 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10814 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10815 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10816
10817 cat >>confdefs.h <<\_ACEOF
10818 #define LTDL_DLOPEN_DEPLIBS 1
10819 _ACEOF
10820
10821 fi
10822
10823
10824 for ac_header in argz.h
10825 do
10826 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10827 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10828   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10829 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10830 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10831   echo $ECHO_N "(cached) $ECHO_C" >&6
10832 fi
10833 ac_res=`eval echo '${'$as_ac_Header'}'`
10834                { echo "$as_me:$LINENO: result: $ac_res" >&5
10835 echo "${ECHO_T}$ac_res" >&6; }
10836 else
10837   # Is the header compilable?
10838 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10839 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10840 cat >conftest.$ac_ext <<_ACEOF
10841 /* confdefs.h.  */
10842 _ACEOF
10843 cat confdefs.h >>conftest.$ac_ext
10844 cat >>conftest.$ac_ext <<_ACEOF
10845 /* end confdefs.h.  */
10846 $ac_includes_default
10847 #include <$ac_header>
10848 _ACEOF
10849 rm -f conftest.$ac_objext
10850 if { (ac_try="$ac_compile"
10851 case "(($ac_try" in
10852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10853   *) ac_try_echo=$ac_try;;
10854 esac
10855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10856   (eval "$ac_compile") 2>conftest.er1
10857   ac_status=$?
10858   grep -v '^ *+' conftest.er1 >conftest.err
10859   rm -f conftest.er1
10860   cat conftest.err >&5
10861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10862   (exit $ac_status); } &&
10863          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10864   { (case "(($ac_try" in
10865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10866   *) ac_try_echo=$ac_try;;
10867 esac
10868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10869   (eval "$ac_try") 2>&5
10870   ac_status=$?
10871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10872   (exit $ac_status); }; } &&
10873          { ac_try='test -s conftest.$ac_objext'
10874   { (case "(($ac_try" in
10875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10876   *) ac_try_echo=$ac_try;;
10877 esac
10878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10879   (eval "$ac_try") 2>&5
10880   ac_status=$?
10881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10882   (exit $ac_status); }; }; then
10883   ac_header_compiler=yes
10884 else
10885   echo "$as_me: failed program was:" >&5
10886 sed 's/^/| /' conftest.$ac_ext >&5
10887
10888         ac_header_compiler=no
10889 fi
10890
10891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10892 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10893 echo "${ECHO_T}$ac_header_compiler" >&6; }
10894
10895 # Is the header present?
10896 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10897 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10898 cat >conftest.$ac_ext <<_ACEOF
10899 /* confdefs.h.  */
10900 _ACEOF
10901 cat confdefs.h >>conftest.$ac_ext
10902 cat >>conftest.$ac_ext <<_ACEOF
10903 /* end confdefs.h.  */
10904 #include <$ac_header>
10905 _ACEOF
10906 if { (ac_try="$ac_cpp conftest.$ac_ext"
10907 case "(($ac_try" in
10908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10909   *) ac_try_echo=$ac_try;;
10910 esac
10911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10912   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10913   ac_status=$?
10914   grep -v '^ *+' conftest.er1 >conftest.err
10915   rm -f conftest.er1
10916   cat conftest.err >&5
10917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10918   (exit $ac_status); } >/dev/null; then
10919   if test -s conftest.err; then
10920     ac_cpp_err=$ac_c_preproc_warn_flag
10921     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10922   else
10923     ac_cpp_err=
10924   fi
10925 else
10926   ac_cpp_err=yes
10927 fi
10928 if test -z "$ac_cpp_err"; then
10929   ac_header_preproc=yes
10930 else
10931   echo "$as_me: failed program was:" >&5
10932 sed 's/^/| /' conftest.$ac_ext >&5
10933
10934   ac_header_preproc=no
10935 fi
10936
10937 rm -f conftest.err conftest.$ac_ext
10938 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10939 echo "${ECHO_T}$ac_header_preproc" >&6; }
10940
10941 # So?  What about this header?
10942 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10943   yes:no: )
10944     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10945 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10946     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10947 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10948     ac_header_preproc=yes
10949     ;;
10950   no:yes:* )
10951     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10952 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10953     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10954 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10955     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10956 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10957     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10958 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10959     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10960 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10961     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10962 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10963     ( cat <<\_ASBOX
10964 ## ----------------------------------- ##
10965 ## Report this to llvmbugs@cs.uiuc.edu ##
10966 ## ----------------------------------- ##
10967 _ASBOX
10968      ) | sed "s/^/$as_me: WARNING:     /" >&2
10969     ;;
10970 esac
10971 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10972 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10973 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10974   echo $ECHO_N "(cached) $ECHO_C" >&6
10975 else
10976   eval "$as_ac_Header=\$ac_header_preproc"
10977 fi
10978 ac_res=`eval echo '${'$as_ac_Header'}'`
10979                { echo "$as_me:$LINENO: result: $ac_res" >&5
10980 echo "${ECHO_T}$ac_res" >&6; }
10981
10982 fi
10983 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10984   cat >>confdefs.h <<_ACEOF
10985 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10986 _ACEOF
10987
10988 fi
10989
10990 done
10991
10992
10993 { echo "$as_me:$LINENO: checking for error_t" >&5
10994 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10995 if test "${ac_cv_type_error_t+set}" = set; then
10996   echo $ECHO_N "(cached) $ECHO_C" >&6
10997 else
10998   cat >conftest.$ac_ext <<_ACEOF
10999 /* confdefs.h.  */
11000 _ACEOF
11001 cat confdefs.h >>conftest.$ac_ext
11002 cat >>conftest.$ac_ext <<_ACEOF
11003 /* end confdefs.h.  */
11004 #if HAVE_ARGZ_H
11005 #  include <argz.h>
11006 #endif
11007
11008 typedef error_t ac__type_new_;
11009 int
11010 main ()
11011 {
11012 if ((ac__type_new_ *) 0)
11013   return 0;
11014 if (sizeof (ac__type_new_))
11015   return 0;
11016   ;
11017   return 0;
11018 }
11019 _ACEOF
11020 rm -f conftest.$ac_objext
11021 if { (ac_try="$ac_compile"
11022 case "(($ac_try" in
11023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11024   *) ac_try_echo=$ac_try;;
11025 esac
11026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11027   (eval "$ac_compile") 2>conftest.er1
11028   ac_status=$?
11029   grep -v '^ *+' conftest.er1 >conftest.err
11030   rm -f conftest.er1
11031   cat conftest.err >&5
11032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11033   (exit $ac_status); } &&
11034          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11035   { (case "(($ac_try" in
11036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11037   *) ac_try_echo=$ac_try;;
11038 esac
11039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11040   (eval "$ac_try") 2>&5
11041   ac_status=$?
11042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11043   (exit $ac_status); }; } &&
11044          { ac_try='test -s conftest.$ac_objext'
11045   { (case "(($ac_try" in
11046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11047   *) ac_try_echo=$ac_try;;
11048 esac
11049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11050   (eval "$ac_try") 2>&5
11051   ac_status=$?
11052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11053   (exit $ac_status); }; }; then
11054   ac_cv_type_error_t=yes
11055 else
11056   echo "$as_me: failed program was:" >&5
11057 sed 's/^/| /' conftest.$ac_ext >&5
11058
11059         ac_cv_type_error_t=no
11060 fi
11061
11062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11063 fi
11064 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11065 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11066 if test $ac_cv_type_error_t = yes; then
11067
11068 cat >>confdefs.h <<_ACEOF
11069 #define HAVE_ERROR_T 1
11070 _ACEOF
11071
11072
11073 else
11074
11075 cat >>confdefs.h <<\_ACEOF
11076 #define error_t int
11077 _ACEOF
11078
11079 fi
11080
11081
11082
11083
11084
11085
11086
11087 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11088 do
11089 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11090 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11091 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11092 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11093   echo $ECHO_N "(cached) $ECHO_C" >&6
11094 else
11095   cat >conftest.$ac_ext <<_ACEOF
11096 /* confdefs.h.  */
11097 _ACEOF
11098 cat confdefs.h >>conftest.$ac_ext
11099 cat >>conftest.$ac_ext <<_ACEOF
11100 /* end confdefs.h.  */
11101 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11102    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11103 #define $ac_func innocuous_$ac_func
11104
11105 /* System header to define __stub macros and hopefully few prototypes,
11106     which can conflict with char $ac_func (); below.
11107     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11108     <limits.h> exists even on freestanding compilers.  */
11109
11110 #ifdef __STDC__
11111 # include <limits.h>
11112 #else
11113 # include <assert.h>
11114 #endif
11115
11116 #undef $ac_func
11117
11118 /* Override any GCC internal prototype to avoid an error.
11119    Use char because int might match the return type of a GCC
11120    builtin and then its argument prototype would still apply.  */
11121 #ifdef __cplusplus
11122 extern "C"
11123 #endif
11124 char $ac_func ();
11125 /* The GNU C library defines this for functions which it implements
11126     to always fail with ENOSYS.  Some functions are actually named
11127     something starting with __ and the normal name is an alias.  */
11128 #if defined __stub_$ac_func || defined __stub___$ac_func
11129 choke me
11130 #endif
11131
11132 int
11133 main ()
11134 {
11135 return $ac_func ();
11136   ;
11137   return 0;
11138 }
11139 _ACEOF
11140 rm -f conftest.$ac_objext conftest$ac_exeext
11141 if { (ac_try="$ac_link"
11142 case "(($ac_try" in
11143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11144   *) ac_try_echo=$ac_try;;
11145 esac
11146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11147   (eval "$ac_link") 2>conftest.er1
11148   ac_status=$?
11149   grep -v '^ *+' conftest.er1 >conftest.err
11150   rm -f conftest.er1
11151   cat conftest.err >&5
11152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153   (exit $ac_status); } &&
11154          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11155   { (case "(($ac_try" in
11156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11157   *) ac_try_echo=$ac_try;;
11158 esac
11159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11160   (eval "$ac_try") 2>&5
11161   ac_status=$?
11162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11163   (exit $ac_status); }; } &&
11164          { ac_try='test -s conftest$ac_exeext'
11165   { (case "(($ac_try" in
11166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11167   *) ac_try_echo=$ac_try;;
11168 esac
11169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11170   (eval "$ac_try") 2>&5
11171   ac_status=$?
11172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11173   (exit $ac_status); }; }; then
11174   eval "$as_ac_var=yes"
11175 else
11176   echo "$as_me: failed program was:" >&5
11177 sed 's/^/| /' conftest.$ac_ext >&5
11178
11179         eval "$as_ac_var=no"
11180 fi
11181
11182 rm -f core conftest.err conftest.$ac_objext \
11183       conftest$ac_exeext conftest.$ac_ext
11184 fi
11185 ac_res=`eval echo '${'$as_ac_var'}'`
11186                { echo "$as_me:$LINENO: result: $ac_res" >&5
11187 echo "${ECHO_T}$ac_res" >&6; }
11188 if test `eval echo '${'$as_ac_var'}'` = yes; then
11189   cat >>confdefs.h <<_ACEOF
11190 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11191 _ACEOF
11192
11193 fi
11194 done
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11224                   stdio.h unistd.h
11225 do
11226 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11227 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11228   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11229 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11230 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11231   echo $ECHO_N "(cached) $ECHO_C" >&6
11232 fi
11233 ac_res=`eval echo '${'$as_ac_Header'}'`
11234                { echo "$as_me:$LINENO: result: $ac_res" >&5
11235 echo "${ECHO_T}$ac_res" >&6; }
11236 else
11237   # Is the header compilable?
11238 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11239 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11240 cat >conftest.$ac_ext <<_ACEOF
11241 /* confdefs.h.  */
11242 _ACEOF
11243 cat confdefs.h >>conftest.$ac_ext
11244 cat >>conftest.$ac_ext <<_ACEOF
11245 /* end confdefs.h.  */
11246 $ac_includes_default
11247 #include <$ac_header>
11248 _ACEOF
11249 rm -f conftest.$ac_objext
11250 if { (ac_try="$ac_compile"
11251 case "(($ac_try" in
11252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11253   *) ac_try_echo=$ac_try;;
11254 esac
11255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11256   (eval "$ac_compile") 2>conftest.er1
11257   ac_status=$?
11258   grep -v '^ *+' conftest.er1 >conftest.err
11259   rm -f conftest.er1
11260   cat conftest.err >&5
11261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11262   (exit $ac_status); } &&
11263          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11264   { (case "(($ac_try" in
11265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11266   *) ac_try_echo=$ac_try;;
11267 esac
11268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11269   (eval "$ac_try") 2>&5
11270   ac_status=$?
11271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11272   (exit $ac_status); }; } &&
11273          { ac_try='test -s conftest.$ac_objext'
11274   { (case "(($ac_try" in
11275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11276   *) ac_try_echo=$ac_try;;
11277 esac
11278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11279   (eval "$ac_try") 2>&5
11280   ac_status=$?
11281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11282   (exit $ac_status); }; }; then
11283   ac_header_compiler=yes
11284 else
11285   echo "$as_me: failed program was:" >&5
11286 sed 's/^/| /' conftest.$ac_ext >&5
11287
11288         ac_header_compiler=no
11289 fi
11290
11291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11292 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11293 echo "${ECHO_T}$ac_header_compiler" >&6; }
11294
11295 # Is the header present?
11296 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11297 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11298 cat >conftest.$ac_ext <<_ACEOF
11299 /* confdefs.h.  */
11300 _ACEOF
11301 cat confdefs.h >>conftest.$ac_ext
11302 cat >>conftest.$ac_ext <<_ACEOF
11303 /* end confdefs.h.  */
11304 #include <$ac_header>
11305 _ACEOF
11306 if { (ac_try="$ac_cpp conftest.$ac_ext"
11307 case "(($ac_try" in
11308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11309   *) ac_try_echo=$ac_try;;
11310 esac
11311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11312   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11313   ac_status=$?
11314   grep -v '^ *+' conftest.er1 >conftest.err
11315   rm -f conftest.er1
11316   cat conftest.err >&5
11317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11318   (exit $ac_status); } >/dev/null; then
11319   if test -s conftest.err; then
11320     ac_cpp_err=$ac_c_preproc_warn_flag
11321     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11322   else
11323     ac_cpp_err=
11324   fi
11325 else
11326   ac_cpp_err=yes
11327 fi
11328 if test -z "$ac_cpp_err"; then
11329   ac_header_preproc=yes
11330 else
11331   echo "$as_me: failed program was:" >&5
11332 sed 's/^/| /' conftest.$ac_ext >&5
11333
11334   ac_header_preproc=no
11335 fi
11336
11337 rm -f conftest.err conftest.$ac_ext
11338 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11339 echo "${ECHO_T}$ac_header_preproc" >&6; }
11340
11341 # So?  What about this header?
11342 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11343   yes:no: )
11344     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11345 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11346     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11347 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11348     ac_header_preproc=yes
11349     ;;
11350   no:yes:* )
11351     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11352 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11353     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11354 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11355     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11356 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11357     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11358 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11359     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11360 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11361     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11362 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11363     ( cat <<\_ASBOX
11364 ## ----------------------------------- ##
11365 ## Report this to llvmbugs@cs.uiuc.edu ##
11366 ## ----------------------------------- ##
11367 _ASBOX
11368      ) | sed "s/^/$as_me: WARNING:     /" >&2
11369     ;;
11370 esac
11371 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11372 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11373 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11374   echo $ECHO_N "(cached) $ECHO_C" >&6
11375 else
11376   eval "$as_ac_Header=\$ac_header_preproc"
11377 fi
11378 ac_res=`eval echo '${'$as_ac_Header'}'`
11379                { echo "$as_me:$LINENO: result: $ac_res" >&5
11380 echo "${ECHO_T}$ac_res" >&6; }
11381
11382 fi
11383 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11384   cat >>confdefs.h <<_ACEOF
11385 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11386 _ACEOF
11387
11388 fi
11389
11390 done
11391
11392
11393
11394
11395
11396 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11397 do
11398 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11399 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11400   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11401 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11402 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11403   echo $ECHO_N "(cached) $ECHO_C" >&6
11404 fi
11405 ac_res=`eval echo '${'$as_ac_Header'}'`
11406                { echo "$as_me:$LINENO: result: $ac_res" >&5
11407 echo "${ECHO_T}$ac_res" >&6; }
11408 else
11409   # Is the header compilable?
11410 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11411 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11412 cat >conftest.$ac_ext <<_ACEOF
11413 /* confdefs.h.  */
11414 _ACEOF
11415 cat confdefs.h >>conftest.$ac_ext
11416 cat >>conftest.$ac_ext <<_ACEOF
11417 /* end confdefs.h.  */
11418 $ac_includes_default
11419 #include <$ac_header>
11420 _ACEOF
11421 rm -f conftest.$ac_objext
11422 if { (ac_try="$ac_compile"
11423 case "(($ac_try" in
11424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11425   *) ac_try_echo=$ac_try;;
11426 esac
11427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11428   (eval "$ac_compile") 2>conftest.er1
11429   ac_status=$?
11430   grep -v '^ *+' conftest.er1 >conftest.err
11431   rm -f conftest.er1
11432   cat conftest.err >&5
11433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11434   (exit $ac_status); } &&
11435          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11436   { (case "(($ac_try" in
11437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11438   *) ac_try_echo=$ac_try;;
11439 esac
11440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11441   (eval "$ac_try") 2>&5
11442   ac_status=$?
11443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11444   (exit $ac_status); }; } &&
11445          { ac_try='test -s conftest.$ac_objext'
11446   { (case "(($ac_try" in
11447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11448   *) ac_try_echo=$ac_try;;
11449 esac
11450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11451   (eval "$ac_try") 2>&5
11452   ac_status=$?
11453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11454   (exit $ac_status); }; }; then
11455   ac_header_compiler=yes
11456 else
11457   echo "$as_me: failed program was:" >&5
11458 sed 's/^/| /' conftest.$ac_ext >&5
11459
11460         ac_header_compiler=no
11461 fi
11462
11463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11464 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11465 echo "${ECHO_T}$ac_header_compiler" >&6; }
11466
11467 # Is the header present?
11468 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11469 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11470 cat >conftest.$ac_ext <<_ACEOF
11471 /* confdefs.h.  */
11472 _ACEOF
11473 cat confdefs.h >>conftest.$ac_ext
11474 cat >>conftest.$ac_ext <<_ACEOF
11475 /* end confdefs.h.  */
11476 #include <$ac_header>
11477 _ACEOF
11478 if { (ac_try="$ac_cpp conftest.$ac_ext"
11479 case "(($ac_try" in
11480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11481   *) ac_try_echo=$ac_try;;
11482 esac
11483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11484   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11485   ac_status=$?
11486   grep -v '^ *+' conftest.er1 >conftest.err
11487   rm -f conftest.er1
11488   cat conftest.err >&5
11489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11490   (exit $ac_status); } >/dev/null; then
11491   if test -s conftest.err; then
11492     ac_cpp_err=$ac_c_preproc_warn_flag
11493     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11494   else
11495     ac_cpp_err=
11496   fi
11497 else
11498   ac_cpp_err=yes
11499 fi
11500 if test -z "$ac_cpp_err"; then
11501   ac_header_preproc=yes
11502 else
11503   echo "$as_me: failed program was:" >&5
11504 sed 's/^/| /' conftest.$ac_ext >&5
11505
11506   ac_header_preproc=no
11507 fi
11508
11509 rm -f conftest.err conftest.$ac_ext
11510 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11511 echo "${ECHO_T}$ac_header_preproc" >&6; }
11512
11513 # So?  What about this header?
11514 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11515   yes:no: )
11516     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11517 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11518     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11519 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11520     ac_header_preproc=yes
11521     ;;
11522   no:yes:* )
11523     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11524 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11525     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11526 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11527     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11528 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11529     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11530 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11531     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11532 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11533     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11534 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11535     ( cat <<\_ASBOX
11536 ## ----------------------------------- ##
11537 ## Report this to llvmbugs@cs.uiuc.edu ##
11538 ## ----------------------------------- ##
11539 _ASBOX
11540      ) | sed "s/^/$as_me: WARNING:     /" >&2
11541     ;;
11542 esac
11543 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11544 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11545 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11546   echo $ECHO_N "(cached) $ECHO_C" >&6
11547 else
11548   eval "$as_ac_Header=\$ac_header_preproc"
11549 fi
11550 ac_res=`eval echo '${'$as_ac_Header'}'`
11551                { echo "$as_me:$LINENO: result: $ac_res" >&5
11552 echo "${ECHO_T}$ac_res" >&6; }
11553
11554 fi
11555 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11556   cat >>confdefs.h <<_ACEOF
11557 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11558 _ACEOF
11559
11560 fi
11561
11562 done
11563
11564
11565
11566 for ac_header in string.h strings.h
11567 do
11568 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11569 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11570   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11572 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11573   echo $ECHO_N "(cached) $ECHO_C" >&6
11574 fi
11575 ac_res=`eval echo '${'$as_ac_Header'}'`
11576                { echo "$as_me:$LINENO: result: $ac_res" >&5
11577 echo "${ECHO_T}$ac_res" >&6; }
11578 else
11579   # Is the header compilable?
11580 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11581 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11582 cat >conftest.$ac_ext <<_ACEOF
11583 /* confdefs.h.  */
11584 _ACEOF
11585 cat confdefs.h >>conftest.$ac_ext
11586 cat >>conftest.$ac_ext <<_ACEOF
11587 /* end confdefs.h.  */
11588 $ac_includes_default
11589 #include <$ac_header>
11590 _ACEOF
11591 rm -f conftest.$ac_objext
11592 if { (ac_try="$ac_compile"
11593 case "(($ac_try" in
11594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11595   *) ac_try_echo=$ac_try;;
11596 esac
11597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11598   (eval "$ac_compile") 2>conftest.er1
11599   ac_status=$?
11600   grep -v '^ *+' conftest.er1 >conftest.err
11601   rm -f conftest.er1
11602   cat conftest.err >&5
11603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11604   (exit $ac_status); } &&
11605          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11606   { (case "(($ac_try" in
11607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11608   *) ac_try_echo=$ac_try;;
11609 esac
11610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11611   (eval "$ac_try") 2>&5
11612   ac_status=$?
11613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11614   (exit $ac_status); }; } &&
11615          { ac_try='test -s conftest.$ac_objext'
11616   { (case "(($ac_try" in
11617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11618   *) ac_try_echo=$ac_try;;
11619 esac
11620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11621   (eval "$ac_try") 2>&5
11622   ac_status=$?
11623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11624   (exit $ac_status); }; }; then
11625   ac_header_compiler=yes
11626 else
11627   echo "$as_me: failed program was:" >&5
11628 sed 's/^/| /' conftest.$ac_ext >&5
11629
11630         ac_header_compiler=no
11631 fi
11632
11633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11634 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11635 echo "${ECHO_T}$ac_header_compiler" >&6; }
11636
11637 # Is the header present?
11638 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11639 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11640 cat >conftest.$ac_ext <<_ACEOF
11641 /* confdefs.h.  */
11642 _ACEOF
11643 cat confdefs.h >>conftest.$ac_ext
11644 cat >>conftest.$ac_ext <<_ACEOF
11645 /* end confdefs.h.  */
11646 #include <$ac_header>
11647 _ACEOF
11648 if { (ac_try="$ac_cpp conftest.$ac_ext"
11649 case "(($ac_try" in
11650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11651   *) ac_try_echo=$ac_try;;
11652 esac
11653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11654   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11655   ac_status=$?
11656   grep -v '^ *+' conftest.er1 >conftest.err
11657   rm -f conftest.er1
11658   cat conftest.err >&5
11659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11660   (exit $ac_status); } >/dev/null; then
11661   if test -s conftest.err; then
11662     ac_cpp_err=$ac_c_preproc_warn_flag
11663     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11664   else
11665     ac_cpp_err=
11666   fi
11667 else
11668   ac_cpp_err=yes
11669 fi
11670 if test -z "$ac_cpp_err"; then
11671   ac_header_preproc=yes
11672 else
11673   echo "$as_me: failed program was:" >&5
11674 sed 's/^/| /' conftest.$ac_ext >&5
11675
11676   ac_header_preproc=no
11677 fi
11678
11679 rm -f conftest.err conftest.$ac_ext
11680 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11681 echo "${ECHO_T}$ac_header_preproc" >&6; }
11682
11683 # So?  What about this header?
11684 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11685   yes:no: )
11686     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11687 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11688     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11689 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11690     ac_header_preproc=yes
11691     ;;
11692   no:yes:* )
11693     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11694 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11695     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11696 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11697     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11698 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11699     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11700 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11701     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11702 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11703     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11704 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11705     ( cat <<\_ASBOX
11706 ## ----------------------------------- ##
11707 ## Report this to llvmbugs@cs.uiuc.edu ##
11708 ## ----------------------------------- ##
11709 _ASBOX
11710      ) | sed "s/^/$as_me: WARNING:     /" >&2
11711     ;;
11712 esac
11713 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11714 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11715 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11716   echo $ECHO_N "(cached) $ECHO_C" >&6
11717 else
11718   eval "$as_ac_Header=\$ac_header_preproc"
11719 fi
11720 ac_res=`eval echo '${'$as_ac_Header'}'`
11721                { echo "$as_me:$LINENO: result: $ac_res" >&5
11722 echo "${ECHO_T}$ac_res" >&6; }
11723
11724 fi
11725 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11726   cat >>confdefs.h <<_ACEOF
11727 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11728 _ACEOF
11729  break
11730 fi
11731
11732 done
11733
11734
11735
11736
11737 for ac_func in strchr index
11738 do
11739 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11740 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11741 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11742 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11743   echo $ECHO_N "(cached) $ECHO_C" >&6
11744 else
11745   cat >conftest.$ac_ext <<_ACEOF
11746 /* confdefs.h.  */
11747 _ACEOF
11748 cat confdefs.h >>conftest.$ac_ext
11749 cat >>conftest.$ac_ext <<_ACEOF
11750 /* end confdefs.h.  */
11751 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11752    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11753 #define $ac_func innocuous_$ac_func
11754
11755 /* System header to define __stub macros and hopefully few prototypes,
11756     which can conflict with char $ac_func (); below.
11757     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11758     <limits.h> exists even on freestanding compilers.  */
11759
11760 #ifdef __STDC__
11761 # include <limits.h>
11762 #else
11763 # include <assert.h>
11764 #endif
11765
11766 #undef $ac_func
11767
11768 /* Override any GCC internal prototype to avoid an error.
11769    Use char because int might match the return type of a GCC
11770    builtin and then its argument prototype would still apply.  */
11771 #ifdef __cplusplus
11772 extern "C"
11773 #endif
11774 char $ac_func ();
11775 /* The GNU C library defines this for functions which it implements
11776     to always fail with ENOSYS.  Some functions are actually named
11777     something starting with __ and the normal name is an alias.  */
11778 #if defined __stub_$ac_func || defined __stub___$ac_func
11779 choke me
11780 #endif
11781
11782 int
11783 main ()
11784 {
11785 return $ac_func ();
11786   ;
11787   return 0;
11788 }
11789 _ACEOF
11790 rm -f conftest.$ac_objext conftest$ac_exeext
11791 if { (ac_try="$ac_link"
11792 case "(($ac_try" in
11793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11794   *) ac_try_echo=$ac_try;;
11795 esac
11796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11797   (eval "$ac_link") 2>conftest.er1
11798   ac_status=$?
11799   grep -v '^ *+' conftest.er1 >conftest.err
11800   rm -f conftest.er1
11801   cat conftest.err >&5
11802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11803   (exit $ac_status); } &&
11804          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11805   { (case "(($ac_try" in
11806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11807   *) ac_try_echo=$ac_try;;
11808 esac
11809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11810   (eval "$ac_try") 2>&5
11811   ac_status=$?
11812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11813   (exit $ac_status); }; } &&
11814          { ac_try='test -s conftest$ac_exeext'
11815   { (case "(($ac_try" in
11816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11817   *) ac_try_echo=$ac_try;;
11818 esac
11819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11820   (eval "$ac_try") 2>&5
11821   ac_status=$?
11822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11823   (exit $ac_status); }; }; then
11824   eval "$as_ac_var=yes"
11825 else
11826   echo "$as_me: failed program was:" >&5
11827 sed 's/^/| /' conftest.$ac_ext >&5
11828
11829         eval "$as_ac_var=no"
11830 fi
11831
11832 rm -f core conftest.err conftest.$ac_objext \
11833       conftest$ac_exeext conftest.$ac_ext
11834 fi
11835 ac_res=`eval echo '${'$as_ac_var'}'`
11836                { echo "$as_me:$LINENO: result: $ac_res" >&5
11837 echo "${ECHO_T}$ac_res" >&6; }
11838 if test `eval echo '${'$as_ac_var'}'` = yes; then
11839   cat >>confdefs.h <<_ACEOF
11840 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11841 _ACEOF
11842  break
11843 fi
11844 done
11845
11846
11847
11848 for ac_func in strrchr rindex
11849 do
11850 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11851 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11852 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11853 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11854   echo $ECHO_N "(cached) $ECHO_C" >&6
11855 else
11856   cat >conftest.$ac_ext <<_ACEOF
11857 /* confdefs.h.  */
11858 _ACEOF
11859 cat confdefs.h >>conftest.$ac_ext
11860 cat >>conftest.$ac_ext <<_ACEOF
11861 /* end confdefs.h.  */
11862 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11863    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11864 #define $ac_func innocuous_$ac_func
11865
11866 /* System header to define __stub macros and hopefully few prototypes,
11867     which can conflict with char $ac_func (); below.
11868     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11869     <limits.h> exists even on freestanding compilers.  */
11870
11871 #ifdef __STDC__
11872 # include <limits.h>
11873 #else
11874 # include <assert.h>
11875 #endif
11876
11877 #undef $ac_func
11878
11879 /* Override any GCC internal prototype to avoid an error.
11880    Use char because int might match the return type of a GCC
11881    builtin and then its argument prototype would still apply.  */
11882 #ifdef __cplusplus
11883 extern "C"
11884 #endif
11885 char $ac_func ();
11886 /* The GNU C library defines this for functions which it implements
11887     to always fail with ENOSYS.  Some functions are actually named
11888     something starting with __ and the normal name is an alias.  */
11889 #if defined __stub_$ac_func || defined __stub___$ac_func
11890 choke me
11891 #endif
11892
11893 int
11894 main ()
11895 {
11896 return $ac_func ();
11897   ;
11898   return 0;
11899 }
11900 _ACEOF
11901 rm -f conftest.$ac_objext conftest$ac_exeext
11902 if { (ac_try="$ac_link"
11903 case "(($ac_try" in
11904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11905   *) ac_try_echo=$ac_try;;
11906 esac
11907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11908   (eval "$ac_link") 2>conftest.er1
11909   ac_status=$?
11910   grep -v '^ *+' conftest.er1 >conftest.err
11911   rm -f conftest.er1
11912   cat conftest.err >&5
11913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11914   (exit $ac_status); } &&
11915          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11916   { (case "(($ac_try" in
11917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11918   *) ac_try_echo=$ac_try;;
11919 esac
11920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11921   (eval "$ac_try") 2>&5
11922   ac_status=$?
11923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11924   (exit $ac_status); }; } &&
11925          { ac_try='test -s conftest$ac_exeext'
11926   { (case "(($ac_try" in
11927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11928   *) ac_try_echo=$ac_try;;
11929 esac
11930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11931   (eval "$ac_try") 2>&5
11932   ac_status=$?
11933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11934   (exit $ac_status); }; }; then
11935   eval "$as_ac_var=yes"
11936 else
11937   echo "$as_me: failed program was:" >&5
11938 sed 's/^/| /' conftest.$ac_ext >&5
11939
11940         eval "$as_ac_var=no"
11941 fi
11942
11943 rm -f core conftest.err conftest.$ac_objext \
11944       conftest$ac_exeext conftest.$ac_ext
11945 fi
11946 ac_res=`eval echo '${'$as_ac_var'}'`
11947                { echo "$as_me:$LINENO: result: $ac_res" >&5
11948 echo "${ECHO_T}$ac_res" >&6; }
11949 if test `eval echo '${'$as_ac_var'}'` = yes; then
11950   cat >>confdefs.h <<_ACEOF
11951 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11952 _ACEOF
11953  break
11954 fi
11955 done
11956
11957
11958
11959 for ac_func in memcpy bcopy
11960 do
11961 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11962 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11963 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11964 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11965   echo $ECHO_N "(cached) $ECHO_C" >&6
11966 else
11967   cat >conftest.$ac_ext <<_ACEOF
11968 /* confdefs.h.  */
11969 _ACEOF
11970 cat confdefs.h >>conftest.$ac_ext
11971 cat >>conftest.$ac_ext <<_ACEOF
11972 /* end confdefs.h.  */
11973 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11974    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11975 #define $ac_func innocuous_$ac_func
11976
11977 /* System header to define __stub macros and hopefully few prototypes,
11978     which can conflict with char $ac_func (); below.
11979     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11980     <limits.h> exists even on freestanding compilers.  */
11981
11982 #ifdef __STDC__
11983 # include <limits.h>
11984 #else
11985 # include <assert.h>
11986 #endif
11987
11988 #undef $ac_func
11989
11990 /* Override any GCC internal prototype to avoid an error.
11991    Use char because int might match the return type of a GCC
11992    builtin and then its argument prototype would still apply.  */
11993 #ifdef __cplusplus
11994 extern "C"
11995 #endif
11996 char $ac_func ();
11997 /* The GNU C library defines this for functions which it implements
11998     to always fail with ENOSYS.  Some functions are actually named
11999     something starting with __ and the normal name is an alias.  */
12000 #if defined __stub_$ac_func || defined __stub___$ac_func
12001 choke me
12002 #endif
12003
12004 int
12005 main ()
12006 {
12007 return $ac_func ();
12008   ;
12009   return 0;
12010 }
12011 _ACEOF
12012 rm -f conftest.$ac_objext conftest$ac_exeext
12013 if { (ac_try="$ac_link"
12014 case "(($ac_try" in
12015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12016   *) ac_try_echo=$ac_try;;
12017 esac
12018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12019   (eval "$ac_link") 2>conftest.er1
12020   ac_status=$?
12021   grep -v '^ *+' conftest.er1 >conftest.err
12022   rm -f conftest.er1
12023   cat conftest.err >&5
12024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12025   (exit $ac_status); } &&
12026          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12027   { (case "(($ac_try" in
12028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12029   *) ac_try_echo=$ac_try;;
12030 esac
12031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12032   (eval "$ac_try") 2>&5
12033   ac_status=$?
12034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12035   (exit $ac_status); }; } &&
12036          { ac_try='test -s conftest$ac_exeext'
12037   { (case "(($ac_try" in
12038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12039   *) ac_try_echo=$ac_try;;
12040 esac
12041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12042   (eval "$ac_try") 2>&5
12043   ac_status=$?
12044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12045   (exit $ac_status); }; }; then
12046   eval "$as_ac_var=yes"
12047 else
12048   echo "$as_me: failed program was:" >&5
12049 sed 's/^/| /' conftest.$ac_ext >&5
12050
12051         eval "$as_ac_var=no"
12052 fi
12053
12054 rm -f core conftest.err conftest.$ac_objext \
12055       conftest$ac_exeext conftest.$ac_ext
12056 fi
12057 ac_res=`eval echo '${'$as_ac_var'}'`
12058                { echo "$as_me:$LINENO: result: $ac_res" >&5
12059 echo "${ECHO_T}$ac_res" >&6; }
12060 if test `eval echo '${'$as_ac_var'}'` = yes; then
12061   cat >>confdefs.h <<_ACEOF
12062 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12063 _ACEOF
12064  break
12065 fi
12066 done
12067
12068
12069
12070 for ac_func in memmove strcmp
12071 do
12072 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12073 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12074 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12075 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12076   echo $ECHO_N "(cached) $ECHO_C" >&6
12077 else
12078   cat >conftest.$ac_ext <<_ACEOF
12079 /* confdefs.h.  */
12080 _ACEOF
12081 cat confdefs.h >>conftest.$ac_ext
12082 cat >>conftest.$ac_ext <<_ACEOF
12083 /* end confdefs.h.  */
12084 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12085    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12086 #define $ac_func innocuous_$ac_func
12087
12088 /* System header to define __stub macros and hopefully few prototypes,
12089     which can conflict with char $ac_func (); below.
12090     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12091     <limits.h> exists even on freestanding compilers.  */
12092
12093 #ifdef __STDC__
12094 # include <limits.h>
12095 #else
12096 # include <assert.h>
12097 #endif
12098
12099 #undef $ac_func
12100
12101 /* Override any GCC internal prototype to avoid an error.
12102    Use char because int might match the return type of a GCC
12103    builtin and then its argument prototype would still apply.  */
12104 #ifdef __cplusplus
12105 extern "C"
12106 #endif
12107 char $ac_func ();
12108 /* The GNU C library defines this for functions which it implements
12109     to always fail with ENOSYS.  Some functions are actually named
12110     something starting with __ and the normal name is an alias.  */
12111 #if defined __stub_$ac_func || defined __stub___$ac_func
12112 choke me
12113 #endif
12114
12115 int
12116 main ()
12117 {
12118 return $ac_func ();
12119   ;
12120   return 0;
12121 }
12122 _ACEOF
12123 rm -f conftest.$ac_objext conftest$ac_exeext
12124 if { (ac_try="$ac_link"
12125 case "(($ac_try" in
12126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12127   *) ac_try_echo=$ac_try;;
12128 esac
12129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12130   (eval "$ac_link") 2>conftest.er1
12131   ac_status=$?
12132   grep -v '^ *+' conftest.er1 >conftest.err
12133   rm -f conftest.er1
12134   cat conftest.err >&5
12135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12136   (exit $ac_status); } &&
12137          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12138   { (case "(($ac_try" in
12139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12140   *) ac_try_echo=$ac_try;;
12141 esac
12142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12143   (eval "$ac_try") 2>&5
12144   ac_status=$?
12145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12146   (exit $ac_status); }; } &&
12147          { ac_try='test -s conftest$ac_exeext'
12148   { (case "(($ac_try" in
12149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12150   *) ac_try_echo=$ac_try;;
12151 esac
12152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12153   (eval "$ac_try") 2>&5
12154   ac_status=$?
12155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12156   (exit $ac_status); }; }; then
12157   eval "$as_ac_var=yes"
12158 else
12159   echo "$as_me: failed program was:" >&5
12160 sed 's/^/| /' conftest.$ac_ext >&5
12161
12162         eval "$as_ac_var=no"
12163 fi
12164
12165 rm -f core conftest.err conftest.$ac_objext \
12166       conftest$ac_exeext conftest.$ac_ext
12167 fi
12168 ac_res=`eval echo '${'$as_ac_var'}'`
12169                { echo "$as_me:$LINENO: result: $ac_res" >&5
12170 echo "${ECHO_T}$ac_res" >&6; }
12171 if test `eval echo '${'$as_ac_var'}'` = yes; then
12172   cat >>confdefs.h <<_ACEOF
12173 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12174 _ACEOF
12175
12176 fi
12177 done
12178
12179
12180
12181
12182 for ac_func in closedir opendir readdir
12183 do
12184 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12185 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12186 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12187 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12188   echo $ECHO_N "(cached) $ECHO_C" >&6
12189 else
12190   cat >conftest.$ac_ext <<_ACEOF
12191 /* confdefs.h.  */
12192 _ACEOF
12193 cat confdefs.h >>conftest.$ac_ext
12194 cat >>conftest.$ac_ext <<_ACEOF
12195 /* end confdefs.h.  */
12196 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12197    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12198 #define $ac_func innocuous_$ac_func
12199
12200 /* System header to define __stub macros and hopefully few prototypes,
12201     which can conflict with char $ac_func (); below.
12202     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12203     <limits.h> exists even on freestanding compilers.  */
12204
12205 #ifdef __STDC__
12206 # include <limits.h>
12207 #else
12208 # include <assert.h>
12209 #endif
12210
12211 #undef $ac_func
12212
12213 /* Override any GCC internal prototype to avoid an error.
12214    Use char because int might match the return type of a GCC
12215    builtin and then its argument prototype would still apply.  */
12216 #ifdef __cplusplus
12217 extern "C"
12218 #endif
12219 char $ac_func ();
12220 /* The GNU C library defines this for functions which it implements
12221     to always fail with ENOSYS.  Some functions are actually named
12222     something starting with __ and the normal name is an alias.  */
12223 #if defined __stub_$ac_func || defined __stub___$ac_func
12224 choke me
12225 #endif
12226
12227 int
12228 main ()
12229 {
12230 return $ac_func ();
12231   ;
12232   return 0;
12233 }
12234 _ACEOF
12235 rm -f conftest.$ac_objext conftest$ac_exeext
12236 if { (ac_try="$ac_link"
12237 case "(($ac_try" in
12238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12239   *) ac_try_echo=$ac_try;;
12240 esac
12241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12242   (eval "$ac_link") 2>conftest.er1
12243   ac_status=$?
12244   grep -v '^ *+' conftest.er1 >conftest.err
12245   rm -f conftest.er1
12246   cat conftest.err >&5
12247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12248   (exit $ac_status); } &&
12249          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12250   { (case "(($ac_try" in
12251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12252   *) ac_try_echo=$ac_try;;
12253 esac
12254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12255   (eval "$ac_try") 2>&5
12256   ac_status=$?
12257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12258   (exit $ac_status); }; } &&
12259          { ac_try='test -s conftest$ac_exeext'
12260   { (case "(($ac_try" in
12261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12262   *) ac_try_echo=$ac_try;;
12263 esac
12264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12265   (eval "$ac_try") 2>&5
12266   ac_status=$?
12267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12268   (exit $ac_status); }; }; then
12269   eval "$as_ac_var=yes"
12270 else
12271   echo "$as_me: failed program was:" >&5
12272 sed 's/^/| /' conftest.$ac_ext >&5
12273
12274         eval "$as_ac_var=no"
12275 fi
12276
12277 rm -f core conftest.err conftest.$ac_objext \
12278       conftest$ac_exeext conftest.$ac_ext
12279 fi
12280 ac_res=`eval echo '${'$as_ac_var'}'`
12281                { echo "$as_me:$LINENO: result: $ac_res" >&5
12282 echo "${ECHO_T}$ac_res" >&6; }
12283 if test `eval echo '${'$as_ac_var'}'` = yes; then
12284   cat >>confdefs.h <<_ACEOF
12285 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12286 _ACEOF
12287
12288 fi
12289 done
12290
12291
12292 # Check whether --enable-shared was given.
12293 if test "${enable_shared+set}" = set; then
12294   enableval=$enable_shared; p=${PACKAGE-default}
12295     case $enableval in
12296     yes) enable_shared=yes ;;
12297     no) enable_shared=no ;;
12298     *)
12299       enable_shared=no
12300       # Look at the argument we got.  We use all the common list separators.
12301       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12302       for pkg in $enableval; do
12303         IFS="$lt_save_ifs"
12304         if test "X$pkg" = "X$p"; then
12305           enable_shared=yes
12306         fi
12307       done
12308       IFS="$lt_save_ifs"
12309       ;;
12310     esac
12311 else
12312   enable_shared=yes
12313 fi
12314
12315
12316 # Check whether --enable-static was given.
12317 if test "${enable_static+set}" = set; then
12318   enableval=$enable_static; p=${PACKAGE-default}
12319     case $enableval in
12320     yes) enable_static=yes ;;
12321     no) enable_static=no ;;
12322     *)
12323      enable_static=no
12324       # Look at the argument we got.  We use all the common list separators.
12325       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12326       for pkg in $enableval; do
12327         IFS="$lt_save_ifs"
12328         if test "X$pkg" = "X$p"; then
12329           enable_static=yes
12330         fi
12331       done
12332       IFS="$lt_save_ifs"
12333       ;;
12334     esac
12335 else
12336   enable_static=yes
12337 fi
12338
12339
12340 # Check whether --enable-fast-install was given.
12341 if test "${enable_fast_install+set}" = set; then
12342   enableval=$enable_fast_install; p=${PACKAGE-default}
12343     case $enableval in
12344     yes) enable_fast_install=yes ;;
12345     no) enable_fast_install=no ;;
12346     *)
12347       enable_fast_install=no
12348       # Look at the argument we got.  We use all the common list separators.
12349       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12350       for pkg in $enableval; do
12351         IFS="$lt_save_ifs"
12352         if test "X$pkg" = "X$p"; then
12353           enable_fast_install=yes
12354         fi
12355       done
12356       IFS="$lt_save_ifs"
12357       ;;
12358     esac
12359 else
12360   enable_fast_install=yes
12361 fi
12362
12363
12364 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12365 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12366 if test "${lt_cv_path_SED+set}" = set; then
12367   echo $ECHO_N "(cached) $ECHO_C" >&6
12368 else
12369   # Loop through the user's path and test for sed and gsed.
12370 # Then use that list of sed's as ones to test for truncation.
12371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12372 for as_dir in $PATH
12373 do
12374   IFS=$as_save_IFS
12375   test -z "$as_dir" && as_dir=.
12376   for lt_ac_prog in sed gsed; do
12377     for ac_exec_ext in '' $ac_executable_extensions; do
12378       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12379         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12380       fi
12381     done
12382   done
12383 done
12384 lt_ac_max=0
12385 lt_ac_count=0
12386 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12387 # along with /bin/sed that truncates output.
12388 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12389   test ! -f $lt_ac_sed && continue
12390   cat /dev/null > conftest.in
12391   lt_ac_count=0
12392   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12393   # Check for GNU sed and select it if it is found.
12394   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12395     lt_cv_path_SED=$lt_ac_sed
12396     break
12397   fi
12398   while true; do
12399     cat conftest.in conftest.in >conftest.tmp
12400     mv conftest.tmp conftest.in
12401     cp conftest.in conftest.nl
12402     echo >>conftest.nl
12403     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12404     cmp -s conftest.out conftest.nl || break
12405     # 10000 chars as input seems more than enough
12406     test $lt_ac_count -gt 10 && break
12407     lt_ac_count=`expr $lt_ac_count + 1`
12408     if test $lt_ac_count -gt $lt_ac_max; then
12409       lt_ac_max=$lt_ac_count
12410       lt_cv_path_SED=$lt_ac_sed
12411     fi
12412   done
12413 done
12414
12415 fi
12416
12417 SED=$lt_cv_path_SED
12418 { echo "$as_me:$LINENO: result: $SED" >&5
12419 echo "${ECHO_T}$SED" >&6; }
12420
12421
12422 # Check whether --with-gnu-ld was given.
12423 if test "${with_gnu_ld+set}" = set; then
12424   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12425 else
12426   with_gnu_ld=no
12427 fi
12428
12429 ac_prog=ld
12430 if test "$GCC" = yes; then
12431   # Check if gcc -print-prog-name=ld gives a path.
12432   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12433 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12434   case $host in
12435   *-*-mingw*)
12436     # gcc leaves a trailing carriage return which upsets mingw
12437     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12438   *)
12439     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12440   esac
12441   case $ac_prog in
12442     # Accept absolute paths.
12443     [\\/]* | ?:[\\/]*)
12444       re_direlt='/[^/][^/]*/\.\./'
12445       # Canonicalize the pathname of ld
12446       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12447       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12448         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12449       done
12450       test -z "$LD" && LD="$ac_prog"
12451       ;;
12452   "")
12453     # If it fails, then pretend we aren't using GCC.
12454     ac_prog=ld
12455     ;;
12456   *)
12457     # If it is relative, then search for the first ld in PATH.
12458     with_gnu_ld=unknown
12459     ;;
12460   esac
12461 elif test "$with_gnu_ld" = yes; then
12462   { echo "$as_me:$LINENO: checking for GNU ld" >&5
12463 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12464 else
12465   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12466 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12467 fi
12468 if test "${lt_cv_path_LD+set}" = set; then
12469   echo $ECHO_N "(cached) $ECHO_C" >&6
12470 else
12471   if test -z "$LD"; then
12472   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12473   for ac_dir in $PATH; do
12474     IFS="$lt_save_ifs"
12475     test -z "$ac_dir" && ac_dir=.
12476     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12477       lt_cv_path_LD="$ac_dir/$ac_prog"
12478       # Check to see if the program is GNU ld.  I'd rather use --version,
12479       # but apparently some variants of GNU ld only accept -v.
12480       # Break only if it was the GNU/non-GNU ld that we prefer.
12481       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12482       *GNU* | *'with BFD'*)
12483         test "$with_gnu_ld" != no && break
12484         ;;
12485       *)
12486         test "$with_gnu_ld" != yes && break
12487         ;;
12488       esac
12489     fi
12490   done
12491   IFS="$lt_save_ifs"
12492 else
12493   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12494 fi
12495 fi
12496
12497 LD="$lt_cv_path_LD"
12498 if test -n "$LD"; then
12499   { echo "$as_me:$LINENO: result: $LD" >&5
12500 echo "${ECHO_T}$LD" >&6; }
12501 else
12502   { echo "$as_me:$LINENO: result: no" >&5
12503 echo "${ECHO_T}no" >&6; }
12504 fi
12505 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12506 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12507    { (exit 1); exit 1; }; }
12508 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12509 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12510 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12511   echo $ECHO_N "(cached) $ECHO_C" >&6
12512 else
12513   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12514 case `$LD -v 2>&1 </dev/null` in
12515 *GNU* | *'with BFD'*)
12516   lt_cv_prog_gnu_ld=yes
12517   ;;
12518 *)
12519   lt_cv_prog_gnu_ld=no
12520   ;;
12521 esac
12522 fi
12523 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12524 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12525 with_gnu_ld=$lt_cv_prog_gnu_ld
12526
12527
12528 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12529 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12530 if test "${lt_cv_ld_reload_flag+set}" = set; then
12531   echo $ECHO_N "(cached) $ECHO_C" >&6
12532 else
12533   lt_cv_ld_reload_flag='-r'
12534 fi
12535 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12536 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12537 reload_flag=$lt_cv_ld_reload_flag
12538 case $reload_flag in
12539 "" | " "*) ;;
12540 *) reload_flag=" $reload_flag" ;;
12541 esac
12542 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12543 case $host_os in
12544   darwin*)
12545     if test "$GCC" = yes; then
12546       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12547     else
12548       reload_cmds='$LD$reload_flag -o $output$reload_objs'
12549     fi
12550     ;;
12551 esac
12552
12553 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12554 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12555 if test "${lt_cv_deplibs_check_method+set}" = set; then
12556   echo $ECHO_N "(cached) $ECHO_C" >&6
12557 else
12558   lt_cv_file_magic_cmd='$MAGIC_CMD'
12559 lt_cv_file_magic_test_file=
12560 lt_cv_deplibs_check_method='unknown'
12561 # Need to set the preceding variable on all platforms that support
12562 # interlibrary dependencies.
12563 # 'none' -- dependencies not supported.
12564 # `unknown' -- same as none, but documents that we really don't know.
12565 # 'pass_all' -- all dependencies passed with no checks.
12566 # 'test_compile' -- check by making test program.
12567 # 'file_magic [[regex]]' -- check by looking for files in library path
12568 # which responds to the $file_magic_cmd with a given extended regex.
12569 # If you have `file' or equivalent on your system and you're not sure
12570 # whether `pass_all' will *always* work, you probably want this one.
12571
12572 case $host_os in
12573 aix4* | aix5*)
12574   lt_cv_deplibs_check_method=pass_all
12575   ;;
12576
12577 beos*)
12578   lt_cv_deplibs_check_method=pass_all
12579   ;;
12580
12581 bsdi[45]*)
12582   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12583   lt_cv_file_magic_cmd='/usr/bin/file -L'
12584   lt_cv_file_magic_test_file=/shlib/libc.so
12585   ;;
12586
12587 cygwin*)
12588   # func_win32_libid is a shell function defined in ltmain.sh
12589   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12590   lt_cv_file_magic_cmd='func_win32_libid'
12591   ;;
12592
12593 mingw* | pw32*)
12594   # Base MSYS/MinGW do not provide the 'file' command needed by
12595   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12596   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12597   lt_cv_file_magic_cmd='$OBJDUMP -f'
12598   ;;
12599
12600 darwin* | rhapsody*)
12601   lt_cv_deplibs_check_method=pass_all
12602   ;;
12603
12604 freebsd* | kfreebsd*-gnu | dragonfly*)
12605   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12606     case $host_cpu in
12607     i*86 )
12608       # Not sure whether the presence of OpenBSD here was a mistake.
12609       # Let's accept both of them until this is cleared up.
12610       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12611       lt_cv_file_magic_cmd=/usr/bin/file
12612       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12613       ;;
12614     esac
12615   else
12616     lt_cv_deplibs_check_method=pass_all
12617   fi
12618   ;;
12619
12620 gnu*)
12621   lt_cv_deplibs_check_method=pass_all
12622   ;;
12623
12624 hpux10.20* | hpux11*)
12625   lt_cv_file_magic_cmd=/usr/bin/file
12626   case $host_cpu in
12627   ia64*)
12628     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12629     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12630     ;;
12631   hppa*64*)
12632     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]'
12633     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12634     ;;
12635   *)
12636     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12637     lt_cv_file_magic_test_file=/usr/lib/libc.sl
12638     ;;
12639   esac
12640   ;;
12641
12642 interix3*)
12643   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12644   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12645   ;;
12646
12647 irix5* | irix6* | nonstopux*)
12648   case $LD in
12649   *-32|*"-32 ") libmagic=32-bit;;
12650   *-n32|*"-n32 ") libmagic=N32;;
12651   *-64|*"-64 ") libmagic=64-bit;;
12652   *) libmagic=never-match;;
12653   esac
12654   lt_cv_deplibs_check_method=pass_all
12655   ;;
12656
12657 # This must be Linux ELF.
12658 linux*)
12659   lt_cv_deplibs_check_method=pass_all
12660   ;;
12661
12662 netbsd*)
12663   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12664     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12665   else
12666     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12667   fi
12668   ;;
12669
12670 newos6*)
12671   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12672   lt_cv_file_magic_cmd=/usr/bin/file
12673   lt_cv_file_magic_test_file=/usr/lib/libnls.so
12674   ;;
12675
12676 nto-qnx*)
12677   lt_cv_deplibs_check_method=unknown
12678   ;;
12679
12680 openbsd*)
12681   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12682     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12683   else
12684     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12685   fi
12686   ;;
12687
12688 osf3* | osf4* | osf5*)
12689   lt_cv_deplibs_check_method=pass_all
12690   ;;
12691
12692 solaris*)
12693   lt_cv_deplibs_check_method=pass_all
12694   ;;
12695
12696 sysv4 | sysv4.3*)
12697   case $host_vendor in
12698   motorola)
12699     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]'
12700     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12701     ;;
12702   ncr)
12703     lt_cv_deplibs_check_method=pass_all
12704     ;;
12705   sequent)
12706     lt_cv_file_magic_cmd='/bin/file'
12707     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12708     ;;
12709   sni)
12710     lt_cv_file_magic_cmd='/bin/file'
12711     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12712     lt_cv_file_magic_test_file=/lib/libc.so
12713     ;;
12714   siemens)
12715     lt_cv_deplibs_check_method=pass_all
12716     ;;
12717   pc)
12718     lt_cv_deplibs_check_method=pass_all
12719     ;;
12720   esac
12721   ;;
12722
12723 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12724   lt_cv_deplibs_check_method=pass_all
12725   ;;
12726 esac
12727
12728 fi
12729 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12730 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12731 file_magic_cmd=$lt_cv_file_magic_cmd
12732 deplibs_check_method=$lt_cv_deplibs_check_method
12733 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12734
12735
12736
12737 # If no C compiler was specified, use CC.
12738 LTCC=${LTCC-"$CC"}
12739
12740 # If no C compiler flags were specified, use CFLAGS.
12741 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12742
12743 # Allow CC to be a program name with arguments.
12744 compiler=$CC
12745
12746 # Check whether --enable-libtool-lock was given.
12747 if test "${enable_libtool_lock+set}" = set; then
12748   enableval=$enable_libtool_lock;
12749 fi
12750
12751 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12752
12753 # Some flags need to be propagated to the compiler or linker for good
12754 # libtool support.
12755 case $host in
12756 ia64-*-hpux*)
12757   # Find out which ABI we are using.
12758   echo 'int i;' > conftest.$ac_ext
12759   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12760   (eval $ac_compile) 2>&5
12761   ac_status=$?
12762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12763   (exit $ac_status); }; then
12764     case `/usr/bin/file conftest.$ac_objext` in
12765     *ELF-32*)
12766       HPUX_IA64_MODE="32"
12767       ;;
12768     *ELF-64*)
12769       HPUX_IA64_MODE="64"
12770       ;;
12771     esac
12772   fi
12773   rm -rf conftest*
12774   ;;
12775 *-*-irix6*)
12776   # Find out which ABI we are using.
12777   echo '#line 12777 "configure"' > conftest.$ac_ext
12778   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12779   (eval $ac_compile) 2>&5
12780   ac_status=$?
12781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12782   (exit $ac_status); }; then
12783    if test "$lt_cv_prog_gnu_ld" = yes; then
12784     case `/usr/bin/file conftest.$ac_objext` in
12785     *32-bit*)
12786       LD="${LD-ld} -melf32bsmip"
12787       ;;
12788     *N32*)
12789       LD="${LD-ld} -melf32bmipn32"
12790       ;;
12791     *64-bit*)
12792       LD="${LD-ld} -melf64bmip"
12793       ;;
12794     esac
12795    else
12796     case `/usr/bin/file conftest.$ac_objext` in
12797     *32-bit*)
12798       LD="${LD-ld} -32"
12799       ;;
12800     *N32*)
12801       LD="${LD-ld} -n32"
12802       ;;
12803     *64-bit*)
12804       LD="${LD-ld} -64"
12805       ;;
12806     esac
12807    fi
12808   fi
12809   rm -rf conftest*
12810   ;;
12811
12812 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12813   # Find out which ABI we are using.
12814   echo 'int i;' > conftest.$ac_ext
12815   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12816   (eval $ac_compile) 2>&5
12817   ac_status=$?
12818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12819   (exit $ac_status); }; then
12820     case `/usr/bin/file conftest.o` in
12821     *32-bit*)
12822       case $host in
12823         x86_64-*linux*)
12824           LD="${LD-ld} -m elf_i386"
12825           ;;
12826         ppc64-*linux*|powerpc64-*linux*)
12827           LD="${LD-ld} -m elf32ppclinux"
12828           ;;
12829         s390x-*linux*)
12830           LD="${LD-ld} -m elf_s390"
12831           ;;
12832         sparc64-*linux*)
12833           LD="${LD-ld} -m elf32_sparc"
12834           ;;
12835       esac
12836       ;;
12837     *64-bit*)
12838       case $host in
12839         x86_64-*linux*)
12840           LD="${LD-ld} -m elf_x86_64"
12841           ;;
12842         ppc*-*linux*|powerpc*-*linux*)
12843           LD="${LD-ld} -m elf64ppc"
12844           ;;
12845         s390*-*linux*)
12846           LD="${LD-ld} -m elf64_s390"
12847           ;;
12848         sparc*-*linux*)
12849           LD="${LD-ld} -m elf64_sparc"
12850           ;;
12851       esac
12852       ;;
12853     esac
12854   fi
12855   rm -rf conftest*
12856   ;;
12857
12858 *-*-sco3.2v5*)
12859   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12860   SAVE_CFLAGS="$CFLAGS"
12861   CFLAGS="$CFLAGS -belf"
12862   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12863 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
12864 if test "${lt_cv_cc_needs_belf+set}" = set; then
12865   echo $ECHO_N "(cached) $ECHO_C" >&6
12866 else
12867   ac_ext=c
12868 ac_cpp='$CPP $CPPFLAGS'
12869 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12870 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12871 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12872
12873      cat >conftest.$ac_ext <<_ACEOF
12874 /* confdefs.h.  */
12875 _ACEOF
12876 cat confdefs.h >>conftest.$ac_ext
12877 cat >>conftest.$ac_ext <<_ACEOF
12878 /* end confdefs.h.  */
12879
12880 int
12881 main ()
12882 {
12883
12884   ;
12885   return 0;
12886 }
12887 _ACEOF
12888 rm -f conftest.$ac_objext conftest$ac_exeext
12889 if { (ac_try="$ac_link"
12890 case "(($ac_try" in
12891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12892   *) ac_try_echo=$ac_try;;
12893 esac
12894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12895   (eval "$ac_link") 2>conftest.er1
12896   ac_status=$?
12897   grep -v '^ *+' conftest.er1 >conftest.err
12898   rm -f conftest.er1
12899   cat conftest.err >&5
12900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12901   (exit $ac_status); } &&
12902          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12903   { (case "(($ac_try" in
12904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12905   *) ac_try_echo=$ac_try;;
12906 esac
12907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12908   (eval "$ac_try") 2>&5
12909   ac_status=$?
12910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12911   (exit $ac_status); }; } &&
12912          { ac_try='test -s conftest$ac_exeext'
12913   { (case "(($ac_try" in
12914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12915   *) ac_try_echo=$ac_try;;
12916 esac
12917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12918   (eval "$ac_try") 2>&5
12919   ac_status=$?
12920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12921   (exit $ac_status); }; }; then
12922   lt_cv_cc_needs_belf=yes
12923 else
12924   echo "$as_me: failed program was:" >&5
12925 sed 's/^/| /' conftest.$ac_ext >&5
12926
12927         lt_cv_cc_needs_belf=no
12928 fi
12929
12930 rm -f core conftest.err conftest.$ac_objext \
12931       conftest$ac_exeext conftest.$ac_ext
12932      ac_ext=c
12933 ac_cpp='$CPP $CPPFLAGS'
12934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12937
12938 fi
12939 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12940 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
12941   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12942     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12943     CFLAGS="$SAVE_CFLAGS"
12944   fi
12945   ;;
12946 sparc*-*solaris*)
12947   # Find out which ABI we are using.
12948   echo 'int i;' > conftest.$ac_ext
12949   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12950   (eval $ac_compile) 2>&5
12951   ac_status=$?
12952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12953   (exit $ac_status); }; then
12954     case `/usr/bin/file conftest.o` in
12955     *64-bit*)
12956       case $lt_cv_prog_gnu_ld in
12957       yes*) LD="${LD-ld} -m elf64_sparc" ;;
12958       *)    LD="${LD-ld} -64" ;;
12959       esac
12960       ;;
12961     esac
12962   fi
12963   rm -rf conftest*
12964   ;;
12965
12966
12967 esac
12968
12969 need_locks="$enable_libtool_lock"
12970
12971
12972
12973
12974 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12975     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12976     (test "X$CXX" != "Xg++"))) ; then
12977   ac_ext=cpp
12978 ac_cpp='$CXXCPP $CPPFLAGS'
12979 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12980 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12981 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12982 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12983 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12984 if test -z "$CXXCPP"; then
12985   if test "${ac_cv_prog_CXXCPP+set}" = set; then
12986   echo $ECHO_N "(cached) $ECHO_C" >&6
12987 else
12988       # Double quotes because CXXCPP needs to be expanded
12989     for CXXCPP in "$CXX -E" "/lib/cpp"
12990     do
12991       ac_preproc_ok=false
12992 for ac_cxx_preproc_warn_flag in '' yes
12993 do
12994   # Use a header file that comes with gcc, so configuring glibc
12995   # with a fresh cross-compiler works.
12996   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12997   # <limits.h> exists even on freestanding compilers.
12998   # On the NeXT, cc -E runs the code through the compiler's parser,
12999   # not just through cpp. "Syntax error" is here to catch this case.
13000   cat >conftest.$ac_ext <<_ACEOF
13001 /* confdefs.h.  */
13002 _ACEOF
13003 cat confdefs.h >>conftest.$ac_ext
13004 cat >>conftest.$ac_ext <<_ACEOF
13005 /* end confdefs.h.  */
13006 #ifdef __STDC__
13007 # include <limits.h>
13008 #else
13009 # include <assert.h>
13010 #endif
13011                      Syntax error
13012 _ACEOF
13013 if { (ac_try="$ac_cpp conftest.$ac_ext"
13014 case "(($ac_try" in
13015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13016   *) ac_try_echo=$ac_try;;
13017 esac
13018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13019   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13020   ac_status=$?
13021   grep -v '^ *+' conftest.er1 >conftest.err
13022   rm -f conftest.er1
13023   cat conftest.err >&5
13024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13025   (exit $ac_status); } >/dev/null; then
13026   if test -s conftest.err; then
13027     ac_cpp_err=$ac_cxx_preproc_warn_flag
13028     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13029   else
13030     ac_cpp_err=
13031   fi
13032 else
13033   ac_cpp_err=yes
13034 fi
13035 if test -z "$ac_cpp_err"; then
13036   :
13037 else
13038   echo "$as_me: failed program was:" >&5
13039 sed 's/^/| /' conftest.$ac_ext >&5
13040
13041   # Broken: fails on valid input.
13042 continue
13043 fi
13044
13045 rm -f conftest.err conftest.$ac_ext
13046
13047   # OK, works on sane cases.  Now check whether nonexistent headers
13048   # can be detected and how.
13049   cat >conftest.$ac_ext <<_ACEOF
13050 /* confdefs.h.  */
13051 _ACEOF
13052 cat confdefs.h >>conftest.$ac_ext
13053 cat >>conftest.$ac_ext <<_ACEOF
13054 /* end confdefs.h.  */
13055 #include <ac_nonexistent.h>
13056 _ACEOF
13057 if { (ac_try="$ac_cpp conftest.$ac_ext"
13058 case "(($ac_try" in
13059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13060   *) ac_try_echo=$ac_try;;
13061 esac
13062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13063   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13064   ac_status=$?
13065   grep -v '^ *+' conftest.er1 >conftest.err
13066   rm -f conftest.er1
13067   cat conftest.err >&5
13068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069   (exit $ac_status); } >/dev/null; then
13070   if test -s conftest.err; then
13071     ac_cpp_err=$ac_cxx_preproc_warn_flag
13072     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13073   else
13074     ac_cpp_err=
13075   fi
13076 else
13077   ac_cpp_err=yes
13078 fi
13079 if test -z "$ac_cpp_err"; then
13080   # Broken: success on invalid input.
13081 continue
13082 else
13083   echo "$as_me: failed program was:" >&5
13084 sed 's/^/| /' conftest.$ac_ext >&5
13085
13086   # Passes both tests.
13087 ac_preproc_ok=:
13088 break
13089 fi
13090
13091 rm -f conftest.err conftest.$ac_ext
13092
13093 done
13094 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13095 rm -f conftest.err conftest.$ac_ext
13096 if $ac_preproc_ok; then
13097   break
13098 fi
13099
13100     done
13101     ac_cv_prog_CXXCPP=$CXXCPP
13102
13103 fi
13104   CXXCPP=$ac_cv_prog_CXXCPP
13105 else
13106   ac_cv_prog_CXXCPP=$CXXCPP
13107 fi
13108 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
13109 echo "${ECHO_T}$CXXCPP" >&6; }
13110 ac_preproc_ok=false
13111 for ac_cxx_preproc_warn_flag in '' yes
13112 do
13113   # Use a header file that comes with gcc, so configuring glibc
13114   # with a fresh cross-compiler works.
13115   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13116   # <limits.h> exists even on freestanding compilers.
13117   # On the NeXT, cc -E runs the code through the compiler's parser,
13118   # not just through cpp. "Syntax error" is here to catch this case.
13119   cat >conftest.$ac_ext <<_ACEOF
13120 /* confdefs.h.  */
13121 _ACEOF
13122 cat confdefs.h >>conftest.$ac_ext
13123 cat >>conftest.$ac_ext <<_ACEOF
13124 /* end confdefs.h.  */
13125 #ifdef __STDC__
13126 # include <limits.h>
13127 #else
13128 # include <assert.h>
13129 #endif
13130                      Syntax error
13131 _ACEOF
13132 if { (ac_try="$ac_cpp conftest.$ac_ext"
13133 case "(($ac_try" in
13134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13135   *) ac_try_echo=$ac_try;;
13136 esac
13137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13138   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13139   ac_status=$?
13140   grep -v '^ *+' conftest.er1 >conftest.err
13141   rm -f conftest.er1
13142   cat conftest.err >&5
13143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13144   (exit $ac_status); } >/dev/null; then
13145   if test -s conftest.err; then
13146     ac_cpp_err=$ac_cxx_preproc_warn_flag
13147     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13148   else
13149     ac_cpp_err=
13150   fi
13151 else
13152   ac_cpp_err=yes
13153 fi
13154 if test -z "$ac_cpp_err"; then
13155   :
13156 else
13157   echo "$as_me: failed program was:" >&5
13158 sed 's/^/| /' conftest.$ac_ext >&5
13159
13160   # Broken: fails on valid input.
13161 continue
13162 fi
13163
13164 rm -f conftest.err conftest.$ac_ext
13165
13166   # OK, works on sane cases.  Now check whether nonexistent headers
13167   # can be detected and how.
13168   cat >conftest.$ac_ext <<_ACEOF
13169 /* confdefs.h.  */
13170 _ACEOF
13171 cat confdefs.h >>conftest.$ac_ext
13172 cat >>conftest.$ac_ext <<_ACEOF
13173 /* end confdefs.h.  */
13174 #include <ac_nonexistent.h>
13175 _ACEOF
13176 if { (ac_try="$ac_cpp conftest.$ac_ext"
13177 case "(($ac_try" in
13178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13179   *) ac_try_echo=$ac_try;;
13180 esac
13181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13182   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13183   ac_status=$?
13184   grep -v '^ *+' conftest.er1 >conftest.err
13185   rm -f conftest.er1
13186   cat conftest.err >&5
13187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13188   (exit $ac_status); } >/dev/null; then
13189   if test -s conftest.err; then
13190     ac_cpp_err=$ac_cxx_preproc_warn_flag
13191     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13192   else
13193     ac_cpp_err=
13194   fi
13195 else
13196   ac_cpp_err=yes
13197 fi
13198 if test -z "$ac_cpp_err"; then
13199   # Broken: success on invalid input.
13200 continue
13201 else
13202   echo "$as_me: failed program was:" >&5
13203 sed 's/^/| /' conftest.$ac_ext >&5
13204
13205   # Passes both tests.
13206 ac_preproc_ok=:
13207 break
13208 fi
13209
13210 rm -f conftest.err conftest.$ac_ext
13211
13212 done
13213 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13214 rm -f conftest.err conftest.$ac_ext
13215 if $ac_preproc_ok; then
13216   :
13217 else
13218   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13219 See \`config.log' for more details." >&5
13220 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13221 See \`config.log' for more details." >&2;}
13222    { (exit 1); exit 1; }; }
13223 fi
13224
13225 ac_ext=cpp
13226 ac_cpp='$CXXCPP $CPPFLAGS'
13227 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13228 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13229 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13230
13231 fi
13232
13233
13234 ac_ext=f
13235 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13236 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13237 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13238 if test -n "$ac_tool_prefix"; then
13239   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
13240   do
13241     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13242 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13243 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13245 if test "${ac_cv_prog_F77+set}" = set; then
13246   echo $ECHO_N "(cached) $ECHO_C" >&6
13247 else
13248   if test -n "$F77"; then
13249   ac_cv_prog_F77="$F77" # Let the user override the test.
13250 else
13251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13252 for as_dir in $PATH
13253 do
13254   IFS=$as_save_IFS
13255   test -z "$as_dir" && as_dir=.
13256   for ac_exec_ext in '' $ac_executable_extensions; do
13257   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13258     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13259     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13260     break 2
13261   fi
13262 done
13263 done
13264 IFS=$as_save_IFS
13265
13266 fi
13267 fi
13268 F77=$ac_cv_prog_F77
13269 if test -n "$F77"; then
13270   { echo "$as_me:$LINENO: result: $F77" >&5
13271 echo "${ECHO_T}$F77" >&6; }
13272 else
13273   { echo "$as_me:$LINENO: result: no" >&5
13274 echo "${ECHO_T}no" >&6; }
13275 fi
13276
13277
13278     test -n "$F77" && break
13279   done
13280 fi
13281 if test -z "$F77"; then
13282   ac_ct_F77=$F77
13283   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
13284 do
13285   # Extract the first word of "$ac_prog", so it can be a program name with args.
13286 set dummy $ac_prog; ac_word=$2
13287 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13289 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13290   echo $ECHO_N "(cached) $ECHO_C" >&6
13291 else
13292   if test -n "$ac_ct_F77"; then
13293   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13294 else
13295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13296 for as_dir in $PATH
13297 do
13298   IFS=$as_save_IFS
13299   test -z "$as_dir" && as_dir=.
13300   for ac_exec_ext in '' $ac_executable_extensions; do
13301   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13302     ac_cv_prog_ac_ct_F77="$ac_prog"
13303     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13304     break 2
13305   fi
13306 done
13307 done
13308 IFS=$as_save_IFS
13309
13310 fi
13311 fi
13312 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13313 if test -n "$ac_ct_F77"; then
13314   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13315 echo "${ECHO_T}$ac_ct_F77" >&6; }
13316 else
13317   { echo "$as_me:$LINENO: result: no" >&5
13318 echo "${ECHO_T}no" >&6; }
13319 fi
13320
13321
13322   test -n "$ac_ct_F77" && break
13323 done
13324
13325   if test "x$ac_ct_F77" = x; then
13326     F77=""
13327   else
13328     case $cross_compiling:$ac_tool_warned in
13329 yes:)
13330 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13331 whose name does not start with the host triplet.  If you think this
13332 configuration is useful to you, please write to autoconf@gnu.org." >&5
13333 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13334 whose name does not start with the host triplet.  If you think this
13335 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13336 ac_tool_warned=yes ;;
13337 esac
13338     F77=$ac_ct_F77
13339   fi
13340 fi
13341
13342
13343 # Provide some information about the compiler.
13344 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13345 ac_compiler=`set X $ac_compile; echo $2`
13346 { (ac_try="$ac_compiler --version >&5"
13347 case "(($ac_try" in
13348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13349   *) ac_try_echo=$ac_try;;
13350 esac
13351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13352   (eval "$ac_compiler --version >&5") 2>&5
13353   ac_status=$?
13354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13355   (exit $ac_status); }
13356 { (ac_try="$ac_compiler -v >&5"
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_compiler -v >&5") 2>&5
13363   ac_status=$?
13364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13365   (exit $ac_status); }
13366 { (ac_try="$ac_compiler -V >&5"
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_compiler -V >&5") 2>&5
13373   ac_status=$?
13374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13375   (exit $ac_status); }
13376 rm -f a.out
13377
13378 # If we don't use `.F' as extension, the preprocessor is not run on the
13379 # input file.  (Note that this only needs to work for GNU compilers.)
13380 ac_save_ext=$ac_ext
13381 ac_ext=F
13382 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13383 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13384 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13385   echo $ECHO_N "(cached) $ECHO_C" >&6
13386 else
13387   cat >conftest.$ac_ext <<_ACEOF
13388       program main
13389 #ifndef __GNUC__
13390        choke me
13391 #endif
13392
13393       end
13394 _ACEOF
13395 rm -f conftest.$ac_objext
13396 if { (ac_try="$ac_compile"
13397 case "(($ac_try" in
13398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13399   *) ac_try_echo=$ac_try;;
13400 esac
13401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13402   (eval "$ac_compile") 2>conftest.er1
13403   ac_status=$?
13404   grep -v '^ *+' conftest.er1 >conftest.err
13405   rm -f conftest.er1
13406   cat conftest.err >&5
13407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13408   (exit $ac_status); } &&
13409          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13410   { (case "(($ac_try" in
13411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13412   *) ac_try_echo=$ac_try;;
13413 esac
13414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13415   (eval "$ac_try") 2>&5
13416   ac_status=$?
13417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13418   (exit $ac_status); }; } &&
13419          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
13429   ac_compiler_gnu=yes
13430 else
13431   echo "$as_me: failed program was:" >&5
13432 sed 's/^/| /' conftest.$ac_ext >&5
13433
13434         ac_compiler_gnu=no
13435 fi
13436
13437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13438 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13439
13440 fi
13441 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13442 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13443 ac_ext=$ac_save_ext
13444 ac_test_FFLAGS=${FFLAGS+set}
13445 ac_save_FFLAGS=$FFLAGS
13446 FFLAGS=
13447 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13448 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13449 if test "${ac_cv_prog_f77_g+set}" = set; then
13450   echo $ECHO_N "(cached) $ECHO_C" >&6
13451 else
13452   FFLAGS=-g
13453 cat >conftest.$ac_ext <<_ACEOF
13454       program main
13455
13456       end
13457 _ACEOF
13458 rm -f conftest.$ac_objext
13459 if { (ac_try="$ac_compile"
13460 case "(($ac_try" in
13461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13462   *) ac_try_echo=$ac_try;;
13463 esac
13464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13465   (eval "$ac_compile") 2>conftest.er1
13466   ac_status=$?
13467   grep -v '^ *+' conftest.er1 >conftest.err
13468   rm -f conftest.er1
13469   cat conftest.err >&5
13470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13471   (exit $ac_status); } &&
13472          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13473   { (case "(($ac_try" in
13474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13475   *) ac_try_echo=$ac_try;;
13476 esac
13477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13478   (eval "$ac_try") 2>&5
13479   ac_status=$?
13480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13481   (exit $ac_status); }; } &&
13482          { ac_try='test -s conftest.$ac_objext'
13483   { (case "(($ac_try" in
13484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13485   *) ac_try_echo=$ac_try;;
13486 esac
13487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13488   (eval "$ac_try") 2>&5
13489   ac_status=$?
13490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491   (exit $ac_status); }; }; then
13492   ac_cv_prog_f77_g=yes
13493 else
13494   echo "$as_me: failed program was:" >&5
13495 sed 's/^/| /' conftest.$ac_ext >&5
13496
13497         ac_cv_prog_f77_g=no
13498 fi
13499
13500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13501
13502 fi
13503 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13504 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13505 if test "$ac_test_FFLAGS" = set; then
13506   FFLAGS=$ac_save_FFLAGS
13507 elif test $ac_cv_prog_f77_g = yes; then
13508   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13509     FFLAGS="-g -O2"
13510   else
13511     FFLAGS="-g"
13512   fi
13513 else
13514   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13515     FFLAGS="-O2"
13516   else
13517     FFLAGS=
13518   fi
13519 fi
13520
13521 G77=`test $ac_compiler_gnu = yes && echo yes`
13522 ac_ext=c
13523 ac_cpp='$CPP $CPPFLAGS'
13524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13526 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13527
13528
13529
13530 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13531
13532 # find the maximum length of command line arguments
13533 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13534 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13535 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13536   echo $ECHO_N "(cached) $ECHO_C" >&6
13537 else
13538     i=0
13539   teststring="ABCD"
13540
13541   case $build_os in
13542   msdosdjgpp*)
13543     # On DJGPP, this test can blow up pretty badly due to problems in libc
13544     # (any single argument exceeding 2000 bytes causes a buffer overrun
13545     # during glob expansion).  Even if it were fixed, the result of this
13546     # check would be larger than it should be.
13547     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
13548     ;;
13549
13550   gnu*)
13551     # Under GNU Hurd, this test is not required because there is
13552     # no limit to the length of command line arguments.
13553     # Libtool will interpret -1 as no limit whatsoever
13554     lt_cv_sys_max_cmd_len=-1;
13555     ;;
13556
13557   cygwin* | mingw*)
13558     # On Win9x/ME, this test blows up -- it succeeds, but takes
13559     # about 5 minutes as the teststring grows exponentially.
13560     # Worse, since 9x/ME are not pre-emptively multitasking,
13561     # you end up with a "frozen" computer, even though with patience
13562     # the test eventually succeeds (with a max line length of 256k).
13563     # Instead, let's just punt: use the minimum linelength reported by
13564     # all of the supported platforms: 8192 (on NT/2K/XP).
13565     lt_cv_sys_max_cmd_len=8192;
13566     ;;
13567
13568   amigaos*)
13569     # On AmigaOS with pdksh, this test takes hours, literally.
13570     # So we just punt and use a minimum line length of 8192.
13571     lt_cv_sys_max_cmd_len=8192;
13572     ;;
13573
13574   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13575     # This has been around since 386BSD, at least.  Likely further.
13576     if test -x /sbin/sysctl; then
13577       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13578     elif test -x /usr/sbin/sysctl; then
13579       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13580     else
13581       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
13582     fi
13583     # And add a safety zone
13584     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13585     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13586     ;;
13587
13588   interix*)
13589     # We know the value 262144 and hardcode it with a safety zone (like BSD)
13590     lt_cv_sys_max_cmd_len=196608
13591     ;;
13592
13593   osf*)
13594     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13595     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13596     # nice to cause kernel panics so lets avoid the loop below.
13597     # First set a reasonable default.
13598     lt_cv_sys_max_cmd_len=16384
13599     #
13600     if test -x /sbin/sysconfig; then
13601       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13602         *1*) lt_cv_sys_max_cmd_len=-1 ;;
13603       esac
13604     fi
13605     ;;
13606   sco3.2v5*)
13607     lt_cv_sys_max_cmd_len=102400
13608     ;;
13609   sysv5* | sco5v6* | sysv4.2uw2*)
13610     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13611     if test -n "$kargmax"; then
13612       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
13613     else
13614       lt_cv_sys_max_cmd_len=32768
13615     fi
13616     ;;
13617   *)
13618     # If test is not a shell built-in, we'll probably end up computing a
13619     # maximum length that is only half of the actual maximum length, but
13620     # we can't tell.
13621     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13622     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13623                = "XX$teststring") >/dev/null 2>&1 &&
13624             new_result=`expr "X$teststring" : ".*" 2>&1` &&
13625             lt_cv_sys_max_cmd_len=$new_result &&
13626             test $i != 17 # 1/2 MB should be enough
13627     do
13628       i=`expr $i + 1`
13629       teststring=$teststring$teststring
13630     done
13631     teststring=
13632     # Add a significant safety factor because C++ compilers can tack on massive
13633     # amounts of additional arguments before passing them to the linker.
13634     # It appears as though 1/2 is a usable value.
13635     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13636     ;;
13637   esac
13638
13639 fi
13640
13641 if test -n $lt_cv_sys_max_cmd_len ; then
13642   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13643 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13644 else
13645   { echo "$as_me:$LINENO: result: none" >&5
13646 echo "${ECHO_T}none" >&6; }
13647 fi
13648
13649
13650
13651
13652 # Check for command to grab the raw symbol name followed by C symbol from nm.
13653 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13654 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13655 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13656   echo $ECHO_N "(cached) $ECHO_C" >&6
13657 else
13658
13659 # These are sane defaults that work on at least a few old systems.
13660 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
13661
13662 # Character class describing NM global symbol codes.
13663 symcode='[BCDEGRST]'
13664
13665 # Regexp to match symbols that can be accessed directly from C.
13666 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13667
13668 # Transform an extracted symbol line into a proper C declaration
13669 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13670
13671 # Transform an extracted symbol line into symbol name and symbol address
13672 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'"
13673
13674 # Define system-specific variables.
13675 case $host_os in
13676 aix*)
13677   symcode='[BCDT]'
13678   ;;
13679 cygwin* | mingw* | pw32*)
13680   symcode='[ABCDGISTW]'
13681   ;;
13682 hpux*) # Its linker distinguishes data from code symbols
13683   if test "$host_cpu" = ia64; then
13684     symcode='[ABCDEGRST]'
13685   fi
13686   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13687   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'"
13688   ;;
13689 linux*)
13690   if test "$host_cpu" = ia64; then
13691     symcode='[ABCDGIRSTW]'
13692     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13693     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'"
13694   fi
13695   ;;
13696 irix* | nonstopux*)
13697   symcode='[BCDEGRST]'
13698   ;;
13699 osf*)
13700   symcode='[BCDEGQRST]'
13701   ;;
13702 solaris*)
13703   symcode='[BDRT]'
13704   ;;
13705 sco3.2v5*)
13706   symcode='[DT]'
13707   ;;
13708 sysv4.2uw2*)
13709   symcode='[DT]'
13710   ;;
13711 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13712   symcode='[ABDT]'
13713   ;;
13714 sysv4)
13715   symcode='[DFNSTU]'
13716   ;;
13717 esac
13718
13719 # Handle CRLF in mingw tool chain
13720 opt_cr=
13721 case $build_os in
13722 mingw*)
13723   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13724   ;;
13725 esac
13726
13727 # If we're using GNU nm, then use its standard symbol codes.
13728 case `$NM -V 2>&1` in
13729 *GNU* | *'with BFD'*)
13730   symcode='[ABCDGIRSTW]' ;;
13731 esac
13732
13733 # Try without a prefix undercore, then with it.
13734 for ac_symprfx in "" "_"; do
13735
13736   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13737   symxfrm="\\1 $ac_symprfx\\2 \\2"
13738
13739   # Write the raw and C identifiers.
13740   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13741
13742   # Check to see that the pipe works correctly.
13743   pipe_works=no
13744
13745   rm -f conftest*
13746   cat > conftest.$ac_ext <<EOF
13747 #ifdef __cplusplus
13748 extern "C" {
13749 #endif
13750 char nm_test_var;
13751 void nm_test_func(){}
13752 #ifdef __cplusplus
13753 }
13754 #endif
13755 int main(){nm_test_var='a';nm_test_func();return(0);}
13756 EOF
13757
13758   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13759   (eval $ac_compile) 2>&5
13760   ac_status=$?
13761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13762   (exit $ac_status); }; then
13763     # Now try to grab the symbols.
13764     nlist=conftest.nm
13765     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13766   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13767   ac_status=$?
13768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13769   (exit $ac_status); } && test -s "$nlist"; then
13770       # Try sorting and uniquifying the output.
13771       if sort "$nlist" | uniq > "$nlist"T; then
13772         mv -f "$nlist"T "$nlist"
13773       else
13774         rm -f "$nlist"T
13775       fi
13776
13777       # Make sure that we snagged all the symbols we need.
13778       if grep ' nm_test_var$' "$nlist" >/dev/null; then
13779         if grep ' nm_test_func$' "$nlist" >/dev/null; then
13780           cat <<EOF > conftest.$ac_ext
13781 #ifdef __cplusplus
13782 extern "C" {
13783 #endif
13784
13785 EOF
13786           # Now generate the symbol file.
13787           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13788
13789           cat <<EOF >> conftest.$ac_ext
13790 #if defined (__STDC__) && __STDC__
13791 # define lt_ptr_t void *
13792 #else
13793 # define lt_ptr_t char *
13794 # define const
13795 #endif
13796
13797 /* The mapping between symbol names and symbols. */
13798 const struct {
13799   const char *name;
13800   lt_ptr_t address;
13801 }
13802 lt_preloaded_symbols[] =
13803 {
13804 EOF
13805           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13806           cat <<\EOF >> conftest.$ac_ext
13807   {0, (lt_ptr_t) 0}
13808 };
13809
13810 #ifdef __cplusplus
13811 }
13812 #endif
13813 EOF
13814           # Now try linking the two files.
13815           mv conftest.$ac_objext conftstm.$ac_objext
13816           lt_save_LIBS="$LIBS"
13817           lt_save_CFLAGS="$CFLAGS"
13818           LIBS="conftstm.$ac_objext"
13819           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13820           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13821   (eval $ac_link) 2>&5
13822   ac_status=$?
13823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13824   (exit $ac_status); } && test -s conftest${ac_exeext}; then
13825             pipe_works=yes
13826           fi
13827           LIBS="$lt_save_LIBS"
13828           CFLAGS="$lt_save_CFLAGS"
13829         else
13830           echo "cannot find nm_test_func in $nlist" >&5
13831         fi
13832       else
13833         echo "cannot find nm_test_var in $nlist" >&5
13834       fi
13835     else
13836       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13837     fi
13838   else
13839     echo "$progname: failed program was:" >&5
13840     cat conftest.$ac_ext >&5
13841   fi
13842   rm -f conftest* conftst*
13843
13844   # Do not use the global_symbol_pipe unless it works.
13845   if test "$pipe_works" = yes; then
13846     break
13847   else
13848     lt_cv_sys_global_symbol_pipe=
13849   fi
13850 done
13851
13852 fi
13853
13854 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13855   lt_cv_sys_global_symbol_to_cdecl=
13856 fi
13857 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13858   { echo "$as_me:$LINENO: result: failed" >&5
13859 echo "${ECHO_T}failed" >&6; }
13860 else
13861   { echo "$as_me:$LINENO: result: ok" >&5
13862 echo "${ECHO_T}ok" >&6; }
13863 fi
13864
13865 { echo "$as_me:$LINENO: checking for objdir" >&5
13866 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
13867 if test "${lt_cv_objdir+set}" = set; then
13868   echo $ECHO_N "(cached) $ECHO_C" >&6
13869 else
13870   rm -f .libs 2>/dev/null
13871 mkdir .libs 2>/dev/null
13872 if test -d .libs; then
13873   lt_cv_objdir=.libs
13874 else
13875   # MS-DOS does not allow filenames that begin with a dot.
13876   lt_cv_objdir=_libs
13877 fi
13878 rmdir .libs 2>/dev/null
13879 fi
13880 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13881 echo "${ECHO_T}$lt_cv_objdir" >&6; }
13882 objdir=$lt_cv_objdir
13883
13884
13885
13886
13887
13888 case $host_os in
13889 aix3*)
13890   # AIX sometimes has problems with the GCC collect2 program.  For some
13891   # reason, if we set the COLLECT_NAMES environment variable, the problems
13892   # vanish in a puff of smoke.
13893   if test "X${COLLECT_NAMES+set}" != Xset; then
13894     COLLECT_NAMES=
13895     export COLLECT_NAMES
13896   fi
13897   ;;
13898 esac
13899
13900 # Sed substitution that helps us do robust quoting.  It backslashifies
13901 # metacharacters that are still active within double-quoted strings.
13902 Xsed='sed -e 1s/^X//'
13903 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13904
13905 # Same as above, but do not quote variable references.
13906 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13907
13908 # Sed substitution to delay expansion of an escaped shell variable in a
13909 # double_quote_subst'ed string.
13910 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13911
13912 # Sed substitution to avoid accidental globbing in evaled expressions
13913 no_glob_subst='s/\*/\\\*/g'
13914
13915 # Constants:
13916 rm="rm -f"
13917
13918 # Global variables:
13919 default_ofile=mklib
13920 can_build_shared=yes
13921
13922 # All known linkers require a `.a' archive for static linking (except MSVC,
13923 # which needs '.lib').
13924 libext=a
13925 ltmain="$ac_aux_dir/ltmain.sh"
13926 ofile="$default_ofile"
13927 with_gnu_ld="$lt_cv_prog_gnu_ld"
13928
13929 if test -n "$ac_tool_prefix"; then
13930   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13931 set dummy ${ac_tool_prefix}ar; ac_word=$2
13932 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13934 if test "${ac_cv_prog_AR+set}" = set; then
13935   echo $ECHO_N "(cached) $ECHO_C" >&6
13936 else
13937   if test -n "$AR"; then
13938   ac_cv_prog_AR="$AR" # Let the user override the test.
13939 else
13940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13941 for as_dir in $PATH
13942 do
13943   IFS=$as_save_IFS
13944   test -z "$as_dir" && as_dir=.
13945   for ac_exec_ext in '' $ac_executable_extensions; do
13946   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13947     ac_cv_prog_AR="${ac_tool_prefix}ar"
13948     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13949     break 2
13950   fi
13951 done
13952 done
13953 IFS=$as_save_IFS
13954
13955 fi
13956 fi
13957 AR=$ac_cv_prog_AR
13958 if test -n "$AR"; then
13959   { echo "$as_me:$LINENO: result: $AR" >&5
13960 echo "${ECHO_T}$AR" >&6; }
13961 else
13962   { echo "$as_me:$LINENO: result: no" >&5
13963 echo "${ECHO_T}no" >&6; }
13964 fi
13965
13966
13967 fi
13968 if test -z "$ac_cv_prog_AR"; then
13969   ac_ct_AR=$AR
13970   # Extract the first word of "ar", so it can be a program name with args.
13971 set dummy ar; ac_word=$2
13972 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13974 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13975   echo $ECHO_N "(cached) $ECHO_C" >&6
13976 else
13977   if test -n "$ac_ct_AR"; then
13978   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13979 else
13980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13981 for as_dir in $PATH
13982 do
13983   IFS=$as_save_IFS
13984   test -z "$as_dir" && as_dir=.
13985   for ac_exec_ext in '' $ac_executable_extensions; do
13986   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13987     ac_cv_prog_ac_ct_AR="ar"
13988     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13989     break 2
13990   fi
13991 done
13992 done
13993 IFS=$as_save_IFS
13994
13995 fi
13996 fi
13997 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13998 if test -n "$ac_ct_AR"; then
13999   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14000 echo "${ECHO_T}$ac_ct_AR" >&6; }
14001 else
14002   { echo "$as_me:$LINENO: result: no" >&5
14003 echo "${ECHO_T}no" >&6; }
14004 fi
14005
14006   if test "x$ac_ct_AR" = x; then
14007     AR="false"
14008   else
14009     case $cross_compiling:$ac_tool_warned in
14010 yes:)
14011 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14012 whose name does not start with the host triplet.  If you think this
14013 configuration is useful to you, please write to autoconf@gnu.org." >&5
14014 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14015 whose name does not start with the host triplet.  If you think this
14016 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14017 ac_tool_warned=yes ;;
14018 esac
14019     AR=$ac_ct_AR
14020   fi
14021 else
14022   AR="$ac_cv_prog_AR"
14023 fi
14024
14025 if test -n "$ac_tool_prefix"; then
14026   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14027 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14028 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14030 if test "${ac_cv_prog_RANLIB+set}" = set; then
14031   echo $ECHO_N "(cached) $ECHO_C" >&6
14032 else
14033   if test -n "$RANLIB"; then
14034   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14035 else
14036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14037 for as_dir in $PATH
14038 do
14039   IFS=$as_save_IFS
14040   test -z "$as_dir" && as_dir=.
14041   for ac_exec_ext in '' $ac_executable_extensions; do
14042   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14043     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14044     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14045     break 2
14046   fi
14047 done
14048 done
14049 IFS=$as_save_IFS
14050
14051 fi
14052 fi
14053 RANLIB=$ac_cv_prog_RANLIB
14054 if test -n "$RANLIB"; then
14055   { echo "$as_me:$LINENO: result: $RANLIB" >&5
14056 echo "${ECHO_T}$RANLIB" >&6; }
14057 else
14058   { echo "$as_me:$LINENO: result: no" >&5
14059 echo "${ECHO_T}no" >&6; }
14060 fi
14061
14062
14063 fi
14064 if test -z "$ac_cv_prog_RANLIB"; then
14065   ac_ct_RANLIB=$RANLIB
14066   # Extract the first word of "ranlib", so it can be a program name with args.
14067 set dummy ranlib; ac_word=$2
14068 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14070 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14071   echo $ECHO_N "(cached) $ECHO_C" >&6
14072 else
14073   if test -n "$ac_ct_RANLIB"; then
14074   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14075 else
14076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14077 for as_dir in $PATH
14078 do
14079   IFS=$as_save_IFS
14080   test -z "$as_dir" && as_dir=.
14081   for ac_exec_ext in '' $ac_executable_extensions; do
14082   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14083     ac_cv_prog_ac_ct_RANLIB="ranlib"
14084     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14085     break 2
14086   fi
14087 done
14088 done
14089 IFS=$as_save_IFS
14090
14091 fi
14092 fi
14093 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14094 if test -n "$ac_ct_RANLIB"; then
14095   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14096 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14097 else
14098   { echo "$as_me:$LINENO: result: no" >&5
14099 echo "${ECHO_T}no" >&6; }
14100 fi
14101
14102   if test "x$ac_ct_RANLIB" = x; then
14103     RANLIB=":"
14104   else
14105     case $cross_compiling:$ac_tool_warned in
14106 yes:)
14107 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14108 whose name does not start with the host triplet.  If you think this
14109 configuration is useful to you, please write to autoconf@gnu.org." >&5
14110 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14111 whose name does not start with the host triplet.  If you think this
14112 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14113 ac_tool_warned=yes ;;
14114 esac
14115     RANLIB=$ac_ct_RANLIB
14116   fi
14117 else
14118   RANLIB="$ac_cv_prog_RANLIB"
14119 fi
14120
14121 if test -n "$ac_tool_prefix"; then
14122   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14123 set dummy ${ac_tool_prefix}strip; ac_word=$2
14124 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14125 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14126 if test "${ac_cv_prog_STRIP+set}" = set; then
14127   echo $ECHO_N "(cached) $ECHO_C" >&6
14128 else
14129   if test -n "$STRIP"; then
14130   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14131 else
14132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14133 for as_dir in $PATH
14134 do
14135   IFS=$as_save_IFS
14136   test -z "$as_dir" && as_dir=.
14137   for ac_exec_ext in '' $ac_executable_extensions; do
14138   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14139     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14140     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14141     break 2
14142   fi
14143 done
14144 done
14145 IFS=$as_save_IFS
14146
14147 fi
14148 fi
14149 STRIP=$ac_cv_prog_STRIP
14150 if test -n "$STRIP"; then
14151   { echo "$as_me:$LINENO: result: $STRIP" >&5
14152 echo "${ECHO_T}$STRIP" >&6; }
14153 else
14154   { echo "$as_me:$LINENO: result: no" >&5
14155 echo "${ECHO_T}no" >&6; }
14156 fi
14157
14158
14159 fi
14160 if test -z "$ac_cv_prog_STRIP"; then
14161   ac_ct_STRIP=$STRIP
14162   # Extract the first word of "strip", so it can be a program name with args.
14163 set dummy strip; ac_word=$2
14164 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14166 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14167   echo $ECHO_N "(cached) $ECHO_C" >&6
14168 else
14169   if test -n "$ac_ct_STRIP"; then
14170   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14171 else
14172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14173 for as_dir in $PATH
14174 do
14175   IFS=$as_save_IFS
14176   test -z "$as_dir" && as_dir=.
14177   for ac_exec_ext in '' $ac_executable_extensions; do
14178   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14179     ac_cv_prog_ac_ct_STRIP="strip"
14180     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14181     break 2
14182   fi
14183 done
14184 done
14185 IFS=$as_save_IFS
14186
14187 fi
14188 fi
14189 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14190 if test -n "$ac_ct_STRIP"; then
14191   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14192 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14193 else
14194   { echo "$as_me:$LINENO: result: no" >&5
14195 echo "${ECHO_T}no" >&6; }
14196 fi
14197
14198   if test "x$ac_ct_STRIP" = x; then
14199     STRIP=":"
14200   else
14201     case $cross_compiling:$ac_tool_warned in
14202 yes:)
14203 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14204 whose name does not start with the host triplet.  If you think this
14205 configuration is useful to you, please write to autoconf@gnu.org." >&5
14206 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14207 whose name does not start with the host triplet.  If you think this
14208 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14209 ac_tool_warned=yes ;;
14210 esac
14211     STRIP=$ac_ct_STRIP
14212   fi
14213 else
14214   STRIP="$ac_cv_prog_STRIP"
14215 fi
14216
14217
14218 old_CC="$CC"
14219 old_CFLAGS="$CFLAGS"
14220
14221 # Set sane defaults for various variables
14222 test -z "$AR" && AR=ar
14223 test -z "$AR_FLAGS" && AR_FLAGS=cru
14224 test -z "$AS" && AS=as
14225 test -z "$CC" && CC=cc
14226 test -z "$LTCC" && LTCC=$CC
14227 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14228 test -z "$DLLTOOL" && DLLTOOL=dlltool
14229 test -z "$LD" && LD=ld
14230 test -z "$LN_S" && LN_S="ln -s"
14231 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14232 test -z "$NM" && NM=nm
14233 test -z "$SED" && SED=sed
14234 test -z "$OBJDUMP" && OBJDUMP=objdump
14235 test -z "$RANLIB" && RANLIB=:
14236 test -z "$STRIP" && STRIP=:
14237 test -z "$ac_objext" && ac_objext=o
14238
14239 # Determine commands to create old-style static archives.
14240 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14241 old_postinstall_cmds='chmod 644 $oldlib'
14242 old_postuninstall_cmds=
14243
14244 if test -n "$RANLIB"; then
14245   case $host_os in
14246   openbsd*)
14247     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14248     ;;
14249   *)
14250     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14251     ;;
14252   esac
14253   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14254 fi
14255
14256 for cc_temp in $compiler""; do
14257   case $cc_temp in
14258     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14259     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14260     \-*) ;;
14261     *) break;;
14262   esac
14263 done
14264 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14265
14266
14267 # Only perform the check for file, if the check method requires it
14268 case $deplibs_check_method in
14269 file_magic*)
14270   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14271     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14272 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14273 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14274   echo $ECHO_N "(cached) $ECHO_C" >&6
14275 else
14276   case $MAGIC_CMD in
14277 [\\/*] |  ?:[\\/]*)
14278   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14279   ;;
14280 *)
14281   lt_save_MAGIC_CMD="$MAGIC_CMD"
14282   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14283   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14284   for ac_dir in $ac_dummy; do
14285     IFS="$lt_save_ifs"
14286     test -z "$ac_dir" && ac_dir=.
14287     if test -f $ac_dir/${ac_tool_prefix}file; then
14288       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14289       if test -n "$file_magic_test_file"; then
14290         case $deplibs_check_method in
14291         "file_magic "*)
14292           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14293           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14294           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14295             $EGREP "$file_magic_regex" > /dev/null; then
14296             :
14297           else
14298             cat <<EOF 1>&2
14299
14300 *** Warning: the command libtool uses to detect shared libraries,
14301 *** $file_magic_cmd, produces output that libtool cannot recognize.
14302 *** The result is that libtool may fail to recognize shared libraries
14303 *** as such.  This will affect the creation of libtool libraries that
14304 *** depend on shared libraries, but programs linked with such libtool
14305 *** libraries will work regardless of this problem.  Nevertheless, you
14306 *** may want to report the problem to your system manager and/or to
14307 *** bug-libtool@gnu.org
14308
14309 EOF
14310           fi ;;
14311         esac
14312       fi
14313       break
14314     fi
14315   done
14316   IFS="$lt_save_ifs"
14317   MAGIC_CMD="$lt_save_MAGIC_CMD"
14318   ;;
14319 esac
14320 fi
14321
14322 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14323 if test -n "$MAGIC_CMD"; then
14324   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14325 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14326 else
14327   { echo "$as_me:$LINENO: result: no" >&5
14328 echo "${ECHO_T}no" >&6; }
14329 fi
14330
14331 if test -z "$lt_cv_path_MAGIC_CMD"; then
14332   if test -n "$ac_tool_prefix"; then
14333     { echo "$as_me:$LINENO: checking for file" >&5
14334 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14335 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14336   echo $ECHO_N "(cached) $ECHO_C" >&6
14337 else
14338   case $MAGIC_CMD in
14339 [\\/*] |  ?:[\\/]*)
14340   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14341   ;;
14342 *)
14343   lt_save_MAGIC_CMD="$MAGIC_CMD"
14344   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14345   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14346   for ac_dir in $ac_dummy; do
14347     IFS="$lt_save_ifs"
14348     test -z "$ac_dir" && ac_dir=.
14349     if test -f $ac_dir/file; then
14350       lt_cv_path_MAGIC_CMD="$ac_dir/file"
14351       if test -n "$file_magic_test_file"; then
14352         case $deplibs_check_method in
14353         "file_magic "*)
14354           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14355           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14356           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14357             $EGREP "$file_magic_regex" > /dev/null; then
14358             :
14359           else
14360             cat <<EOF 1>&2
14361
14362 *** Warning: the command libtool uses to detect shared libraries,
14363 *** $file_magic_cmd, produces output that libtool cannot recognize.
14364 *** The result is that libtool may fail to recognize shared libraries
14365 *** as such.  This will affect the creation of libtool libraries that
14366 *** depend on shared libraries, but programs linked with such libtool
14367 *** libraries will work regardless of this problem.  Nevertheless, you
14368 *** may want to report the problem to your system manager and/or to
14369 *** bug-libtool@gnu.org
14370
14371 EOF
14372           fi ;;
14373         esac
14374       fi
14375       break
14376     fi
14377   done
14378   IFS="$lt_save_ifs"
14379   MAGIC_CMD="$lt_save_MAGIC_CMD"
14380   ;;
14381 esac
14382 fi
14383
14384 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14385 if test -n "$MAGIC_CMD"; then
14386   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14387 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14388 else
14389   { echo "$as_me:$LINENO: result: no" >&5
14390 echo "${ECHO_T}no" >&6; }
14391 fi
14392
14393   else
14394     MAGIC_CMD=:
14395   fi
14396 fi
14397
14398   fi
14399   ;;
14400 esac
14401
14402 enable_dlopen=yes
14403 enable_win32_dll=no
14404
14405 # Check whether --enable-libtool-lock was given.
14406 if test "${enable_libtool_lock+set}" = set; then
14407   enableval=$enable_libtool_lock;
14408 fi
14409
14410 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14411
14412
14413 # Check whether --with-pic was given.
14414 if test "${with_pic+set}" = set; then
14415   withval=$with_pic; pic_mode="$withval"
14416 else
14417   pic_mode=default
14418 fi
14419
14420 test -z "$pic_mode" && pic_mode=default
14421
14422 # Use C for the default configuration in the libtool script
14423 tagname=
14424 lt_save_CC="$CC"
14425 ac_ext=c
14426 ac_cpp='$CPP $CPPFLAGS'
14427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14430
14431
14432 # Source file extension for C test sources.
14433 ac_ext=c
14434
14435 # Object file extension for compiled C test sources.
14436 objext=o
14437 objext=$objext
14438
14439 # Code to be used in simple compile tests
14440 lt_simple_compile_test_code="int some_variable = 0;\n"
14441
14442 # Code to be used in simple link tests
14443 lt_simple_link_test_code='int main(){return(0);}\n'
14444
14445
14446 # If no C compiler was specified, use CC.
14447 LTCC=${LTCC-"$CC"}
14448
14449 # If no C compiler flags were specified, use CFLAGS.
14450 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14451
14452 # Allow CC to be a program name with arguments.
14453 compiler=$CC
14454
14455
14456 # save warnings/boilerplate of simple test code
14457 ac_outfile=conftest.$ac_objext
14458 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14459 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14460 _lt_compiler_boilerplate=`cat conftest.err`
14461 $rm conftest*
14462
14463 ac_outfile=conftest.$ac_objext
14464 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14465 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14466 _lt_linker_boilerplate=`cat conftest.err`
14467 $rm conftest*
14468
14469
14470
14471 lt_prog_compiler_no_builtin_flag=
14472
14473 if test "$GCC" = yes; then
14474   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14475
14476
14477 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14478 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14479 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14480   echo $ECHO_N "(cached) $ECHO_C" >&6
14481 else
14482   lt_cv_prog_compiler_rtti_exceptions=no
14483   ac_outfile=conftest.$ac_objext
14484    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14485    lt_compiler_flag="-fno-rtti -fno-exceptions"
14486    # Insert the option either (1) after the last *FLAGS variable, or
14487    # (2) before a word containing "conftest.", or (3) at the end.
14488    # Note that $ac_compile itself does not contain backslashes and begins
14489    # with a dollar sign (not a hyphen), so the echo should work correctly.
14490    # The option is referenced via a variable to avoid confusing sed.
14491    lt_compile=`echo "$ac_compile" | $SED \
14492    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14493    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14494    -e 's:$: $lt_compiler_flag:'`
14495    (eval echo "\"\$as_me:14495: $lt_compile\"" >&5)
14496    (eval "$lt_compile" 2>conftest.err)
14497    ac_status=$?
14498    cat conftest.err >&5
14499    echo "$as_me:14499: \$? = $ac_status" >&5
14500    if (exit $ac_status) && test -s "$ac_outfile"; then
14501      # The compiler can only warn and ignore the option if not recognized
14502      # So say no if there are warnings other than the usual output.
14503      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14504      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14505      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14506        lt_cv_prog_compiler_rtti_exceptions=yes
14507      fi
14508    fi
14509    $rm conftest*
14510
14511 fi
14512 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14513 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14514
14515 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14516     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14517 else
14518     :
14519 fi
14520
14521 fi
14522
14523 lt_prog_compiler_wl=
14524 lt_prog_compiler_pic=
14525 lt_prog_compiler_static=
14526
14527 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14528 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14529
14530   if test "$GCC" = yes; then
14531     lt_prog_compiler_wl='-Wl,'
14532     lt_prog_compiler_static='-static'
14533
14534     case $host_os in
14535       aix*)
14536       # All AIX code is PIC.
14537       if test "$host_cpu" = ia64; then
14538         # AIX 5 now supports IA64 processor
14539         lt_prog_compiler_static='-Bstatic'
14540       fi
14541       ;;
14542
14543     amigaos*)
14544       # FIXME: we need at least 68020 code to build shared libraries, but
14545       # adding the `-m68020' flag to GCC prevents building anything better,
14546       # like `-m68040'.
14547       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14548       ;;
14549
14550     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14551       # PIC is the default for these OSes.
14552       ;;
14553
14554     mingw* | pw32* | os2*)
14555       # This hack is so that the source file can tell whether it is being
14556       # built for inclusion in a dll (and should export symbols for example).
14557       lt_prog_compiler_pic='-DDLL_EXPORT'
14558       ;;
14559
14560     darwin* | rhapsody*)
14561       # PIC is the default on this platform
14562       # Common symbols not allowed in MH_DYLIB files
14563       lt_prog_compiler_pic='-fno-common'
14564       ;;
14565
14566     interix3*)
14567       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14568       # Instead, we relocate shared libraries at runtime.
14569       ;;
14570
14571     msdosdjgpp*)
14572       # Just because we use GCC doesn't mean we suddenly get shared libraries
14573       # on systems that don't support them.
14574       lt_prog_compiler_can_build_shared=no
14575       enable_shared=no
14576       ;;
14577
14578     sysv4*MP*)
14579       if test -d /usr/nec; then
14580         lt_prog_compiler_pic=-Kconform_pic
14581       fi
14582       ;;
14583
14584     hpux*)
14585       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14586       # not for PA HP-UX.
14587       case $host_cpu in
14588       hppa*64*|ia64*)
14589         # +Z the default
14590         ;;
14591       *)
14592         lt_prog_compiler_pic='-fPIC'
14593         ;;
14594       esac
14595       ;;
14596
14597     *)
14598       lt_prog_compiler_pic='-fPIC'
14599       ;;
14600     esac
14601   else
14602     # PORTME Check for flag to pass linker flags through the system compiler.
14603     case $host_os in
14604     aix*)
14605       lt_prog_compiler_wl='-Wl,'
14606       if test "$host_cpu" = ia64; then
14607         # AIX 5 now supports IA64 processor
14608         lt_prog_compiler_static='-Bstatic'
14609       else
14610         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14611       fi
14612       ;;
14613       darwin*)
14614         # PIC is the default on this platform
14615         # Common symbols not allowed in MH_DYLIB files
14616        case $cc_basename in
14617          xlc*)
14618          lt_prog_compiler_pic='-qnocommon'
14619          lt_prog_compiler_wl='-Wl,'
14620          ;;
14621        esac
14622        ;;
14623
14624     mingw* | pw32* | os2*)
14625       # This hack is so that the source file can tell whether it is being
14626       # built for inclusion in a dll (and should export symbols for example).
14627       lt_prog_compiler_pic='-DDLL_EXPORT'
14628       ;;
14629
14630     hpux9* | hpux10* | hpux11*)
14631       lt_prog_compiler_wl='-Wl,'
14632       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14633       # not for PA HP-UX.
14634       case $host_cpu in
14635       hppa*64*|ia64*)
14636         # +Z the default
14637         ;;
14638       *)
14639         lt_prog_compiler_pic='+Z'
14640         ;;
14641       esac
14642       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14643       lt_prog_compiler_static='${wl}-a ${wl}archive'
14644       ;;
14645
14646     irix5* | irix6* | nonstopux*)
14647       lt_prog_compiler_wl='-Wl,'
14648       # PIC (with -KPIC) is the default.
14649       lt_prog_compiler_static='-non_shared'
14650       ;;
14651
14652     newsos6)
14653       lt_prog_compiler_pic='-KPIC'
14654       lt_prog_compiler_static='-Bstatic'
14655       ;;
14656
14657     linux*)
14658       case $cc_basename in
14659       icc* | ecc*)
14660         lt_prog_compiler_wl='-Wl,'
14661         lt_prog_compiler_pic='-KPIC'
14662         lt_prog_compiler_static='-static'
14663         ;;
14664       pgcc* | pgf77* | pgf90* | pgf95*)
14665         # Portland Group compilers (*not* the Pentium gcc compiler,
14666         # which looks to be a dead project)
14667         lt_prog_compiler_wl='-Wl,'
14668         lt_prog_compiler_pic='-fpic'
14669         lt_prog_compiler_static='-Bstatic'
14670         ;;
14671       ccc*)
14672         lt_prog_compiler_wl='-Wl,'
14673         # All Alpha code is PIC.
14674         lt_prog_compiler_static='-non_shared'
14675         ;;
14676       esac
14677       ;;
14678
14679     osf3* | osf4* | osf5*)
14680       lt_prog_compiler_wl='-Wl,'
14681       # All OSF/1 code is PIC.
14682       lt_prog_compiler_static='-non_shared'
14683       ;;
14684
14685     solaris*)
14686       lt_prog_compiler_pic='-KPIC'
14687       lt_prog_compiler_static='-Bstatic'
14688       case $cc_basename in
14689       f77* | f90* | f95*)
14690         lt_prog_compiler_wl='-Qoption ld ';;
14691       *)
14692         lt_prog_compiler_wl='-Wl,';;
14693       esac
14694       ;;
14695
14696     sunos4*)
14697       lt_prog_compiler_wl='-Qoption ld '
14698       lt_prog_compiler_pic='-PIC'
14699       lt_prog_compiler_static='-Bstatic'
14700       ;;
14701
14702     sysv4 | sysv4.2uw2* | sysv4.3*)
14703       lt_prog_compiler_wl='-Wl,'
14704       lt_prog_compiler_pic='-KPIC'
14705       lt_prog_compiler_static='-Bstatic'
14706       ;;
14707
14708     sysv4*MP*)
14709       if test -d /usr/nec ;then
14710         lt_prog_compiler_pic='-Kconform_pic'
14711         lt_prog_compiler_static='-Bstatic'
14712       fi
14713       ;;
14714
14715     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14716       lt_prog_compiler_wl='-Wl,'
14717       lt_prog_compiler_pic='-KPIC'
14718       lt_prog_compiler_static='-Bstatic'
14719       ;;
14720
14721     unicos*)
14722       lt_prog_compiler_wl='-Wl,'
14723       lt_prog_compiler_can_build_shared=no
14724       ;;
14725
14726     uts4*)
14727       lt_prog_compiler_pic='-pic'
14728       lt_prog_compiler_static='-Bstatic'
14729       ;;
14730
14731     *)
14732       lt_prog_compiler_can_build_shared=no
14733       ;;
14734     esac
14735   fi
14736
14737 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14738 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14739
14740 #
14741 # Check to make sure the PIC flag actually works.
14742 #
14743 if test -n "$lt_prog_compiler_pic"; then
14744
14745 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14746 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
14747 if test "${lt_prog_compiler_pic_works+set}" = set; then
14748   echo $ECHO_N "(cached) $ECHO_C" >&6
14749 else
14750   lt_prog_compiler_pic_works=no
14751   ac_outfile=conftest.$ac_objext
14752    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14753    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14754    # Insert the option either (1) after the last *FLAGS variable, or
14755    # (2) before a word containing "conftest.", or (3) at the end.
14756    # Note that $ac_compile itself does not contain backslashes and begins
14757    # with a dollar sign (not a hyphen), so the echo should work correctly.
14758    # The option is referenced via a variable to avoid confusing sed.
14759    lt_compile=`echo "$ac_compile" | $SED \
14760    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14761    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14762    -e 's:$: $lt_compiler_flag:'`
14763    (eval echo "\"\$as_me:14763: $lt_compile\"" >&5)
14764    (eval "$lt_compile" 2>conftest.err)
14765    ac_status=$?
14766    cat conftest.err >&5
14767    echo "$as_me:14767: \$? = $ac_status" >&5
14768    if (exit $ac_status) && test -s "$ac_outfile"; then
14769      # The compiler can only warn and ignore the option if not recognized
14770      # So say no if there are warnings other than the usual output.
14771      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14772      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14773      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14774        lt_prog_compiler_pic_works=yes
14775      fi
14776    fi
14777    $rm conftest*
14778
14779 fi
14780 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14781 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
14782
14783 if test x"$lt_prog_compiler_pic_works" = xyes; then
14784     case $lt_prog_compiler_pic in
14785      "" | " "*) ;;
14786      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14787      esac
14788 else
14789     lt_prog_compiler_pic=
14790      lt_prog_compiler_can_build_shared=no
14791 fi
14792
14793 fi
14794 case $host_os in
14795   # For platforms which do not support PIC, -DPIC is meaningless:
14796   *djgpp*)
14797     lt_prog_compiler_pic=
14798     ;;
14799   *)
14800     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14801     ;;
14802 esac
14803
14804 #
14805 # Check to make sure the static flag actually works.
14806 #
14807 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14808 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14809 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14810 if test "${lt_prog_compiler_static_works+set}" = set; then
14811   echo $ECHO_N "(cached) $ECHO_C" >&6
14812 else
14813   lt_prog_compiler_static_works=no
14814    save_LDFLAGS="$LDFLAGS"
14815    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14816    printf "$lt_simple_link_test_code" > conftest.$ac_ext
14817    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14818      # The linker can only warn and ignore the option if not recognized
14819      # So say no if there are warnings
14820      if test -s conftest.err; then
14821        # Append any errors to the config.log.
14822        cat conftest.err 1>&5
14823        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14824        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14825        if diff conftest.exp conftest.er2 >/dev/null; then
14826          lt_prog_compiler_static_works=yes
14827        fi
14828      else
14829        lt_prog_compiler_static_works=yes
14830      fi
14831    fi
14832    $rm conftest*
14833    LDFLAGS="$save_LDFLAGS"
14834
14835 fi
14836 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14837 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14838
14839 if test x"$lt_prog_compiler_static_works" = xyes; then
14840     :
14841 else
14842     lt_prog_compiler_static=
14843 fi
14844
14845
14846 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14847 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14848 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14849   echo $ECHO_N "(cached) $ECHO_C" >&6
14850 else
14851   lt_cv_prog_compiler_c_o=no
14852    $rm -r conftest 2>/dev/null
14853    mkdir conftest
14854    cd conftest
14855    mkdir out
14856    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14857
14858    lt_compiler_flag="-o out/conftest2.$ac_objext"
14859    # Insert the option either (1) after the last *FLAGS variable, or
14860    # (2) before a word containing "conftest.", or (3) at the end.
14861    # Note that $ac_compile itself does not contain backslashes and begins
14862    # with a dollar sign (not a hyphen), so the echo should work correctly.
14863    lt_compile=`echo "$ac_compile" | $SED \
14864    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14865    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14866    -e 's:$: $lt_compiler_flag:'`
14867    (eval echo "\"\$as_me:14867: $lt_compile\"" >&5)
14868    (eval "$lt_compile" 2>out/conftest.err)
14869    ac_status=$?
14870    cat out/conftest.err >&5
14871    echo "$as_me:14871: \$? = $ac_status" >&5
14872    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14873    then
14874      # The compiler can only warn and ignore the option if not recognized
14875      # So say no if there are warnings
14876      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14877      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14878      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14879        lt_cv_prog_compiler_c_o=yes
14880      fi
14881    fi
14882    chmod u+w . 2>&5
14883    $rm conftest*
14884    # SGI C++ compiler will create directory out/ii_files/ for
14885    # template instantiation
14886    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14887    $rm out/* && rmdir out
14888    cd ..
14889    rmdir conftest
14890    $rm conftest*
14891
14892 fi
14893 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14894 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
14895
14896
14897 hard_links="nottested"
14898 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14899   # do not overwrite the value of need_locks provided by the user
14900   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14901 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14902   hard_links=yes
14903   $rm conftest*
14904   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14905   touch conftest.a
14906   ln conftest.a conftest.b 2>&5 || hard_links=no
14907   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14908   { echo "$as_me:$LINENO: result: $hard_links" >&5
14909 echo "${ECHO_T}$hard_links" >&6; }
14910   if test "$hard_links" = no; then
14911     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14912 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14913     need_locks=warn
14914   fi
14915 else
14916   need_locks=no
14917 fi
14918
14919 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14920 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14921
14922   runpath_var=
14923   allow_undefined_flag=
14924   enable_shared_with_static_runtimes=no
14925   archive_cmds=
14926   archive_expsym_cmds=
14927   old_archive_From_new_cmds=
14928   old_archive_from_expsyms_cmds=
14929   export_dynamic_flag_spec=
14930   whole_archive_flag_spec=
14931   thread_safe_flag_spec=
14932   hardcode_libdir_flag_spec=
14933   hardcode_libdir_flag_spec_ld=
14934   hardcode_libdir_separator=
14935   hardcode_direct=no
14936   hardcode_minus_L=no
14937   hardcode_shlibpath_var=unsupported
14938   link_all_deplibs=unknown
14939   hardcode_automatic=no
14940   module_cmds=
14941   module_expsym_cmds=
14942   always_export_symbols=no
14943   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14944   # include_expsyms should be a list of space-separated symbols to be *always*
14945   # included in the symbol list
14946   include_expsyms=
14947   # exclude_expsyms can be an extended regexp of symbols to exclude
14948   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14949   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14950   # as well as any symbol that contains `d'.
14951   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14952   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14953   # platforms (ab)use it in PIC code, but their linkers get confused if
14954   # the symbol is explicitly referenced.  Since portable code cannot
14955   # rely on this symbol name, it's probably fine to never include it in
14956   # preloaded symbol tables.
14957   extract_expsyms_cmds=
14958   # Just being paranoid about ensuring that cc_basename is set.
14959   for cc_temp in $compiler""; do
14960   case $cc_temp in
14961     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14962     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14963     \-*) ;;
14964     *) break;;
14965   esac
14966 done
14967 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14968
14969   case $host_os in
14970   cygwin* | mingw* | pw32*)
14971     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14972     # When not using gcc, we currently assume that we are using
14973     # Microsoft Visual C++.
14974     if test "$GCC" != yes; then
14975       with_gnu_ld=no
14976     fi
14977     ;;
14978   interix*)
14979     # we just hope/assume this is gcc and not c89 (= MSVC++)
14980     with_gnu_ld=yes
14981     ;;
14982   openbsd*)
14983     with_gnu_ld=no
14984     ;;
14985   esac
14986
14987   ld_shlibs=yes
14988   if test "$with_gnu_ld" = yes; then
14989     # If archive_cmds runs LD, not CC, wlarc should be empty
14990     wlarc='${wl}'
14991
14992     # Set some defaults for GNU ld with shared library support. These
14993     # are reset later if shared libraries are not supported. Putting them
14994     # here allows them to be overridden if necessary.
14995     runpath_var=LD_RUN_PATH
14996     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14997     export_dynamic_flag_spec='${wl}--export-dynamic'
14998     # ancient GNU ld didn't support --whole-archive et. al.
14999     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15000         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15001       else
15002         whole_archive_flag_spec=
15003     fi
15004     supports_anon_versioning=no
15005     case `$LD -v 2>/dev/null` in
15006       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15007       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15008       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15009       *\ 2.11.*) ;; # other 2.11 versions
15010       *) supports_anon_versioning=yes ;;
15011     esac
15012
15013     # See if GNU ld supports shared libraries.
15014     case $host_os in
15015     aix3* | aix4* | aix5*)
15016       # On AIX/PPC, the GNU linker is very broken
15017       if test "$host_cpu" != ia64; then
15018         ld_shlibs=no
15019         cat <<EOF 1>&2
15020
15021 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15022 *** to be unable to reliably create shared libraries on AIX.
15023 *** Therefore, libtool is disabling shared libraries support.  If you
15024 *** really care for shared libraries, you may want to modify your PATH
15025 *** so that a non-GNU linker is found, and then restart.
15026
15027 EOF
15028       fi
15029       ;;
15030
15031     amigaos*)
15032       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)'
15033       hardcode_libdir_flag_spec='-L$libdir'
15034       hardcode_minus_L=yes
15035
15036       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15037       # that the semantics of dynamic libraries on AmigaOS, at least up
15038       # to version 4, is to share data among multiple programs linked
15039       # with the same dynamic library.  Since this doesn't match the
15040       # behavior of shared libraries on other platforms, we can't use
15041       # them.
15042       ld_shlibs=no
15043       ;;
15044
15045     beos*)
15046       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15047         allow_undefined_flag=unsupported
15048         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15049         # support --undefined.  This deserves some investigation.  FIXME
15050         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15051       else
15052         ld_shlibs=no
15053       fi
15054       ;;
15055
15056     cygwin* | mingw* | pw32*)
15057       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15058       # as there is no search path for DLLs.
15059       hardcode_libdir_flag_spec='-L$libdir'
15060       allow_undefined_flag=unsupported
15061       always_export_symbols=no
15062       enable_shared_with_static_runtimes=yes
15063       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15064
15065       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15066         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15067         # If the export-symbols file already is a .def file (1st line
15068         # is EXPORTS), use it as is; otherwise, prepend...
15069         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15070           cp $export_symbols $output_objdir/$soname.def;
15071         else
15072           echo EXPORTS > $output_objdir/$soname.def;
15073           cat $export_symbols >> $output_objdir/$soname.def;
15074         fi~
15075         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15076       else
15077         ld_shlibs=no
15078       fi
15079       ;;
15080
15081     interix3*)
15082       hardcode_direct=no
15083       hardcode_shlibpath_var=no
15084       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15085       export_dynamic_flag_spec='${wl}-E'
15086       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15087       # Instead, shared libraries are loaded at an image base (0x10000000 by
15088       # default) and relocated if they conflict, which is a slow very memory
15089       # consuming and fragmenting process.  To avoid this, we pick a random,
15090       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15091       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15092       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15093       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'
15094       ;;
15095
15096     linux*)
15097       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15098         tmp_addflag=
15099         case $cc_basename,$host_cpu in
15100         pgcc*)                          # Portland Group C compiler
15101           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'
15102           tmp_addflag=' $pic_flag'
15103           ;;
15104         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
15105           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'
15106           tmp_addflag=' $pic_flag -Mnomain' ;;
15107         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
15108           tmp_addflag=' -i_dynamic' ;;
15109         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15110           tmp_addflag=' -i_dynamic -nofor_main' ;;
15111         ifc* | ifort*)                  # Intel Fortran compiler
15112           tmp_addflag=' -nofor_main' ;;
15113         esac
15114         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15115
15116         if test $supports_anon_versioning = yes; then
15117           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15118   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15119   $echo "local: *; };" >> $output_objdir/$libname.ver~
15120           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15121         fi
15122       else
15123         ld_shlibs=no
15124       fi
15125       ;;
15126
15127     netbsd*)
15128       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15129         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15130         wlarc=
15131       else
15132         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15133         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15134       fi
15135       ;;
15136
15137     solaris*)
15138       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15139         ld_shlibs=no
15140         cat <<EOF 1>&2
15141
15142 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15143 *** create shared libraries on Solaris systems.  Therefore, libtool
15144 *** is disabling shared libraries support.  We urge you to upgrade GNU
15145 *** binutils to release 2.9.1 or newer.  Another option is to modify
15146 *** your PATH or compiler configuration so that the native linker is
15147 *** used, and then restart.
15148
15149 EOF
15150       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15151         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15152         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15153       else
15154         ld_shlibs=no
15155       fi
15156       ;;
15157
15158     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15159       case `$LD -v 2>&1` in
15160         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15161         ld_shlibs=no
15162         cat <<_LT_EOF 1>&2
15163
15164 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15165 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15166 *** is disabling shared libraries support.  We urge you to upgrade GNU
15167 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15168 *** your PATH or compiler configuration so that the native linker is
15169 *** used, and then restart.
15170
15171 _LT_EOF
15172         ;;
15173         *)
15174           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15175             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15176             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15177             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15178           else
15179             ld_shlibs=no
15180           fi
15181         ;;
15182       esac
15183       ;;
15184
15185     sunos4*)
15186       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15187       wlarc=
15188       hardcode_direct=yes
15189       hardcode_shlibpath_var=no
15190       ;;
15191
15192     *)
15193       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15194         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15195         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15196       else
15197         ld_shlibs=no
15198       fi
15199       ;;
15200     esac
15201
15202     if test "$ld_shlibs" = no; then
15203       runpath_var=
15204       hardcode_libdir_flag_spec=
15205       export_dynamic_flag_spec=
15206       whole_archive_flag_spec=
15207     fi
15208   else
15209     # PORTME fill in a description of your system's linker (not GNU ld)
15210     case $host_os in
15211     aix3*)
15212       allow_undefined_flag=unsupported
15213       always_export_symbols=yes
15214       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'
15215       # Note: this linker hardcodes the directories in LIBPATH if there
15216       # are no directories specified by -L.
15217       hardcode_minus_L=yes
15218       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15219         # Neither direct hardcoding nor static linking is supported with a
15220         # broken collect2.
15221         hardcode_direct=unsupported
15222       fi
15223       ;;
15224
15225     aix4* | aix5*)
15226       if test "$host_cpu" = ia64; then
15227         # On IA64, the linker does run time linking by default, so we don't
15228         # have to do anything special.
15229         aix_use_runtimelinking=no
15230         exp_sym_flag='-Bexport'
15231         no_entry_flag=""
15232       else
15233         # If we're using GNU nm, then we don't want the "-C" option.
15234         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15235         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15236           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'
15237         else
15238           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'
15239         fi
15240         aix_use_runtimelinking=no
15241
15242         # Test if we are trying to use run time linking or normal
15243         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15244         # need to do runtime linking.
15245         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15246           for ld_flag in $LDFLAGS; do
15247           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15248             aix_use_runtimelinking=yes
15249             break
15250           fi
15251           done
15252           ;;
15253         esac
15254
15255         exp_sym_flag='-bexport'
15256         no_entry_flag='-bnoentry'
15257       fi
15258
15259       # When large executables or shared objects are built, AIX ld can
15260       # have problems creating the table of contents.  If linking a library
15261       # or program results in "error TOC overflow" add -mminimal-toc to
15262       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15263       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15264
15265       archive_cmds=''
15266       hardcode_direct=yes
15267       hardcode_libdir_separator=':'
15268       link_all_deplibs=yes
15269
15270       if test "$GCC" = yes; then
15271         case $host_os in aix4.[012]|aix4.[012].*)
15272         # We only want to do this on AIX 4.2 and lower, the check
15273         # below for broken collect2 doesn't work under 4.3+
15274           collect2name=`${CC} -print-prog-name=collect2`
15275           if test -f "$collect2name" && \
15276            strings "$collect2name" | grep resolve_lib_name >/dev/null
15277           then
15278           # We have reworked collect2
15279           hardcode_direct=yes
15280           else
15281           # We have old collect2
15282           hardcode_direct=unsupported
15283           # It fails to find uninstalled libraries when the uninstalled
15284           # path is not listed in the libpath.  Setting hardcode_minus_L
15285           # to unsupported forces relinking
15286           hardcode_minus_L=yes
15287           hardcode_libdir_flag_spec='-L$libdir'
15288           hardcode_libdir_separator=
15289           fi
15290           ;;
15291         esac
15292         shared_flag='-shared'
15293         if test "$aix_use_runtimelinking" = yes; then
15294           shared_flag="$shared_flag "'${wl}-G'
15295         fi
15296       else
15297         # not using gcc
15298         if test "$host_cpu" = ia64; then
15299         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15300         # chokes on -Wl,-G. The following line is correct:
15301           shared_flag='-G'
15302         else
15303           if test "$aix_use_runtimelinking" = yes; then
15304             shared_flag='${wl}-G'
15305           else
15306             shared_flag='${wl}-bM:SRE'
15307           fi
15308         fi
15309       fi
15310
15311       # It seems that -bexpall does not export symbols beginning with
15312       # underscore (_), so it is better to generate a list of symbols to export.
15313       always_export_symbols=yes
15314       if test "$aix_use_runtimelinking" = yes; then
15315         # Warning - without using the other runtime loading flags (-brtl),
15316         # -berok will link without error, but may produce a broken library.
15317         allow_undefined_flag='-berok'
15318        # Determine the default libpath from the value encoded in an empty executable.
15319        cat >conftest.$ac_ext <<_ACEOF
15320 /* confdefs.h.  */
15321 _ACEOF
15322 cat confdefs.h >>conftest.$ac_ext
15323 cat >>conftest.$ac_ext <<_ACEOF
15324 /* end confdefs.h.  */
15325
15326 int
15327 main ()
15328 {
15329
15330   ;
15331   return 0;
15332 }
15333 _ACEOF
15334 rm -f conftest.$ac_objext conftest$ac_exeext
15335 if { (ac_try="$ac_link"
15336 case "(($ac_try" in
15337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15338   *) ac_try_echo=$ac_try;;
15339 esac
15340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15341   (eval "$ac_link") 2>conftest.er1
15342   ac_status=$?
15343   grep -v '^ *+' conftest.er1 >conftest.err
15344   rm -f conftest.er1
15345   cat conftest.err >&5
15346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15347   (exit $ac_status); } &&
15348          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15349   { (case "(($ac_try" in
15350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15351   *) ac_try_echo=$ac_try;;
15352 esac
15353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15354   (eval "$ac_try") 2>&5
15355   ac_status=$?
15356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15357   (exit $ac_status); }; } &&
15358          { ac_try='test -s conftest$ac_exeext'
15359   { (case "(($ac_try" in
15360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15361   *) ac_try_echo=$ac_try;;
15362 esac
15363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15364   (eval "$ac_try") 2>&5
15365   ac_status=$?
15366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15367   (exit $ac_status); }; }; then
15368
15369 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15370 }'`
15371 # Check for a 64-bit object if we didn't find anything.
15372 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; }
15373 }'`; fi
15374 else
15375   echo "$as_me: failed program was:" >&5
15376 sed 's/^/| /' conftest.$ac_ext >&5
15377
15378
15379 fi
15380
15381 rm -f core conftest.err conftest.$ac_objext \
15382       conftest$ac_exeext conftest.$ac_ext
15383 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15384
15385        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15386         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"
15387        else
15388         if test "$host_cpu" = ia64; then
15389           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15390           allow_undefined_flag="-z nodefs"
15391           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"
15392         else
15393          # Determine the default libpath from the value encoded in an empty executable.
15394          cat >conftest.$ac_ext <<_ACEOF
15395 /* confdefs.h.  */
15396 _ACEOF
15397 cat confdefs.h >>conftest.$ac_ext
15398 cat >>conftest.$ac_ext <<_ACEOF
15399 /* end confdefs.h.  */
15400
15401 int
15402 main ()
15403 {
15404
15405   ;
15406   return 0;
15407 }
15408 _ACEOF
15409 rm -f conftest.$ac_objext conftest$ac_exeext
15410 if { (ac_try="$ac_link"
15411 case "(($ac_try" in
15412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15413   *) ac_try_echo=$ac_try;;
15414 esac
15415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15416   (eval "$ac_link") 2>conftest.er1
15417   ac_status=$?
15418   grep -v '^ *+' conftest.er1 >conftest.err
15419   rm -f conftest.er1
15420   cat conftest.err >&5
15421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15422   (exit $ac_status); } &&
15423          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15424   { (case "(($ac_try" in
15425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15426   *) ac_try_echo=$ac_try;;
15427 esac
15428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15429   (eval "$ac_try") 2>&5
15430   ac_status=$?
15431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15432   (exit $ac_status); }; } &&
15433          { ac_try='test -s conftest$ac_exeext'
15434   { (case "(($ac_try" in
15435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15436   *) ac_try_echo=$ac_try;;
15437 esac
15438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15439   (eval "$ac_try") 2>&5
15440   ac_status=$?
15441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15442   (exit $ac_status); }; }; then
15443
15444 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15445 }'`
15446 # Check for a 64-bit object if we didn't find anything.
15447 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; }
15448 }'`; fi
15449 else
15450   echo "$as_me: failed program was:" >&5
15451 sed 's/^/| /' conftest.$ac_ext >&5
15452
15453
15454 fi
15455
15456 rm -f core conftest.err conftest.$ac_objext \
15457       conftest$ac_exeext conftest.$ac_ext
15458 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15459
15460          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15461           # Warning - without using the other run time loading flags,
15462           # -berok will link without error, but may produce a broken library.
15463           no_undefined_flag=' ${wl}-bernotok'
15464           allow_undefined_flag=' ${wl}-berok'
15465           # Exported symbols can be pulled into shared objects from archives
15466           whole_archive_flag_spec='$convenience'
15467           archive_cmds_need_lc=yes
15468           # This is similar to how AIX traditionally builds its shared libraries.
15469           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'
15470         fi
15471       fi
15472       ;;
15473
15474     amigaos*)
15475       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)'
15476       hardcode_libdir_flag_spec='-L$libdir'
15477       hardcode_minus_L=yes
15478       # see comment about different semantics on the GNU ld section
15479       ld_shlibs=no
15480       ;;
15481
15482     bsdi[45]*)
15483       export_dynamic_flag_spec=-rdynamic
15484       ;;
15485
15486     cygwin* | mingw* | pw32*)
15487       # When not using gcc, we currently assume that we are using
15488       # Microsoft Visual C++.
15489       # hardcode_libdir_flag_spec is actually meaningless, as there is
15490       # no search path for DLLs.
15491       hardcode_libdir_flag_spec=' '
15492       allow_undefined_flag=unsupported
15493       # Tell ltmain to make .lib files, not .a files.
15494       libext=lib
15495       # Tell ltmain to make .dll files, not .so files.
15496       shrext_cmds=".dll"
15497       # FIXME: Setting linknames here is a bad hack.
15498       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15499       # The linker will automatically build a .lib file if we build a DLL.
15500       old_archive_From_new_cmds='true'
15501       # FIXME: Should let the user specify the lib program.
15502       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15503       fix_srcfile_path='`cygpath -w "$srcfile"`'
15504       enable_shared_with_static_runtimes=yes
15505       ;;
15506
15507     darwin* | rhapsody*)
15508       case $host_os in
15509         rhapsody* | darwin1.[012])
15510          allow_undefined_flag='${wl}-undefined ${wl}suppress'
15511          ;;
15512        *) # Darwin 1.3 on
15513          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15514            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15515          else
15516            case ${MACOSX_DEPLOYMENT_TARGET} in
15517              10.[012])
15518                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15519                ;;
15520              10.*)
15521                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15522                ;;
15523            esac
15524          fi
15525          ;;
15526       esac
15527       archive_cmds_need_lc=no
15528       hardcode_direct=no
15529       hardcode_automatic=yes
15530       hardcode_shlibpath_var=unsupported
15531       whole_archive_flag_spec=''
15532       link_all_deplibs=yes
15533     if test "$GCC" = yes ; then
15534         output_verbose_link_cmd='echo'
15535         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15536       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15537       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15538       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}'
15539       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}'
15540     else
15541       case $cc_basename in
15542         xlc*)
15543          output_verbose_link_cmd='echo'
15544          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15545          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15546           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15547          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}'
15548           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}'
15549           ;;
15550        *)
15551          ld_shlibs=no
15552           ;;
15553       esac
15554     fi
15555       ;;
15556
15557     dgux*)
15558       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15559       hardcode_libdir_flag_spec='-L$libdir'
15560       hardcode_shlibpath_var=no
15561       ;;
15562
15563     freebsd1*)
15564       ld_shlibs=no
15565       ;;
15566
15567     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15568     # support.  Future versions do this automatically, but an explicit c++rt0.o
15569     # does not break anything, and helps significantly (at the cost of a little
15570     # extra space).
15571     freebsd2.2*)
15572       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15573       hardcode_libdir_flag_spec='-R$libdir'
15574       hardcode_direct=yes
15575       hardcode_shlibpath_var=no
15576       ;;
15577
15578     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15579     freebsd2*)
15580       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15581       hardcode_direct=yes
15582       hardcode_minus_L=yes
15583       hardcode_shlibpath_var=no
15584       ;;
15585
15586     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15587     freebsd* | kfreebsd*-gnu | dragonfly*)
15588       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15589       hardcode_libdir_flag_spec='-R$libdir'
15590       hardcode_direct=yes
15591       hardcode_shlibpath_var=no
15592       ;;
15593
15594     hpux9*)
15595       if test "$GCC" = yes; then
15596         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'
15597       else
15598         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'
15599       fi
15600       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15601       hardcode_libdir_separator=:
15602       hardcode_direct=yes
15603
15604       # hardcode_minus_L: Not really in the search PATH,
15605       # but as the default location of the library.
15606       hardcode_minus_L=yes
15607       export_dynamic_flag_spec='${wl}-E'
15608       ;;
15609
15610     hpux10*)
15611       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15612         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15613       else
15614         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15615       fi
15616       if test "$with_gnu_ld" = no; then
15617         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15618         hardcode_libdir_separator=:
15619
15620         hardcode_direct=yes
15621         export_dynamic_flag_spec='${wl}-E'
15622
15623         # hardcode_minus_L: Not really in the search PATH,
15624         # but as the default location of the library.
15625         hardcode_minus_L=yes
15626       fi
15627       ;;
15628
15629     hpux11*)
15630       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15631         case $host_cpu in
15632         hppa*64*)
15633           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15634           ;;
15635         ia64*)
15636           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15637           ;;
15638         *)
15639           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15640           ;;
15641         esac
15642       else
15643         case $host_cpu in
15644         hppa*64*)
15645           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15646           ;;
15647         ia64*)
15648           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15649           ;;
15650         *)
15651           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15652           ;;
15653         esac
15654       fi
15655       if test "$with_gnu_ld" = no; then
15656         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15657         hardcode_libdir_separator=:
15658
15659         case $host_cpu in
15660         hppa*64*|ia64*)
15661           hardcode_libdir_flag_spec_ld='+b $libdir'
15662           hardcode_direct=no
15663           hardcode_shlibpath_var=no
15664           ;;
15665         *)
15666           hardcode_direct=yes
15667           export_dynamic_flag_spec='${wl}-E'
15668
15669           # hardcode_minus_L: Not really in the search PATH,
15670           # but as the default location of the library.
15671           hardcode_minus_L=yes
15672           ;;
15673         esac
15674       fi
15675       ;;
15676
15677     irix5* | irix6* | nonstopux*)
15678       if test "$GCC" = yes; then
15679         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'
15680       else
15681         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'
15682         hardcode_libdir_flag_spec_ld='-rpath $libdir'
15683       fi
15684       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15685       hardcode_libdir_separator=:
15686       link_all_deplibs=yes
15687       ;;
15688
15689     netbsd*)
15690       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15691         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15692       else
15693         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15694       fi
15695       hardcode_libdir_flag_spec='-R$libdir'
15696       hardcode_direct=yes
15697       hardcode_shlibpath_var=no
15698       ;;
15699
15700     newsos6)
15701       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15702       hardcode_direct=yes
15703       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15704       hardcode_libdir_separator=:
15705       hardcode_shlibpath_var=no
15706       ;;
15707
15708     openbsd*)
15709       hardcode_direct=yes
15710       hardcode_shlibpath_var=no
15711       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15712         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15713         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15714         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15715         export_dynamic_flag_spec='${wl}-E'
15716       else
15717        case $host_os in
15718          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15719            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15720            hardcode_libdir_flag_spec='-R$libdir'
15721            ;;
15722          *)
15723            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15724            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15725            ;;
15726        esac
15727       fi
15728       ;;
15729
15730     os2*)
15731       hardcode_libdir_flag_spec='-L$libdir'
15732       hardcode_minus_L=yes
15733       allow_undefined_flag=unsupported
15734       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'
15735       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15736       ;;
15737
15738     osf3*)
15739       if test "$GCC" = yes; then
15740         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15741         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'
15742       else
15743         allow_undefined_flag=' -expect_unresolved \*'
15744         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'
15745       fi
15746       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15747       hardcode_libdir_separator=:
15748       ;;
15749
15750     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15751       if test "$GCC" = yes; then
15752         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15753         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'
15754         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15755       else
15756         allow_undefined_flag=' -expect_unresolved \*'
15757         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'
15758         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15759         $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'
15760
15761         # Both c and cxx compiler support -rpath directly
15762         hardcode_libdir_flag_spec='-rpath $libdir'
15763       fi
15764       hardcode_libdir_separator=:
15765       ;;
15766
15767     solaris*)
15768       no_undefined_flag=' -z text'
15769       if test "$GCC" = yes; then
15770         wlarc='${wl}'
15771         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15772         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15773           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15774       else
15775         wlarc=''
15776         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15777         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15778         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15779       fi
15780       hardcode_libdir_flag_spec='-R$libdir'
15781       hardcode_shlibpath_var=no
15782       case $host_os in
15783       solaris2.[0-5] | solaris2.[0-5].*) ;;
15784       *)
15785         # The compiler driver will combine linker options so we
15786         # cannot just pass the convience library names through
15787         # without $wl, iff we do not link with $LD.
15788         # Luckily, gcc supports the same syntax we need for Sun Studio.
15789         # Supported since Solaris 2.6 (maybe 2.5.1?)
15790         case $wlarc in
15791         '')
15792           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15793         *)
15794           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' ;;
15795         esac ;;
15796       esac
15797       link_all_deplibs=yes
15798       ;;
15799
15800     sunos4*)
15801       if test "x$host_vendor" = xsequent; then
15802         # Use $CC to link under sequent, because it throws in some extra .o
15803         # files that make .init and .fini sections work.
15804         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15805       else
15806         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15807       fi
15808       hardcode_libdir_flag_spec='-L$libdir'
15809       hardcode_direct=yes
15810       hardcode_minus_L=yes
15811       hardcode_shlibpath_var=no
15812       ;;
15813
15814     sysv4)
15815       case $host_vendor in
15816         sni)
15817           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15818           hardcode_direct=yes # is this really true???
15819         ;;
15820         siemens)
15821           ## LD is ld it makes a PLAMLIB
15822           ## CC just makes a GrossModule.
15823           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15824           reload_cmds='$CC -r -o $output$reload_objs'
15825           hardcode_direct=no
15826         ;;
15827         motorola)
15828           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15829           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15830         ;;
15831       esac
15832       runpath_var='LD_RUN_PATH'
15833       hardcode_shlibpath_var=no
15834       ;;
15835
15836     sysv4.3*)
15837       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15838       hardcode_shlibpath_var=no
15839       export_dynamic_flag_spec='-Bexport'
15840       ;;
15841
15842     sysv4*MP*)
15843       if test -d /usr/nec; then
15844         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15845         hardcode_shlibpath_var=no
15846         runpath_var=LD_RUN_PATH
15847         hardcode_runpath_var=yes
15848         ld_shlibs=yes
15849       fi
15850       ;;
15851
15852     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15853       no_undefined_flag='${wl}-z,text'
15854       archive_cmds_need_lc=no
15855       hardcode_shlibpath_var=no
15856       runpath_var='LD_RUN_PATH'
15857
15858       if test "$GCC" = yes; then
15859         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15860         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15861       else
15862         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15863         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15864       fi
15865       ;;
15866
15867     sysv5* | sco3.2v5* | sco5v6*)
15868       # Note: We can NOT use -z defs as we might desire, because we do not
15869       # link with -lc, and that would cause any symbols used from libc to
15870       # always be unresolved, which means just about no library would
15871       # ever link correctly.  If we're not using GNU ld we use -z text
15872       # though, which does catch some bad symbols but isn't as heavy-handed
15873       # as -z defs.
15874       no_undefined_flag='${wl}-z,text'
15875       allow_undefined_flag='${wl}-z,nodefs'
15876       archive_cmds_need_lc=no
15877       hardcode_shlibpath_var=no
15878       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15879       hardcode_libdir_separator=':'
15880       link_all_deplibs=yes
15881       export_dynamic_flag_spec='${wl}-Bexport'
15882       runpath_var='LD_RUN_PATH'
15883
15884       if test "$GCC" = yes; then
15885         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15886         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15887       else
15888         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15889         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15890       fi
15891       ;;
15892
15893     uts4*)
15894       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15895       hardcode_libdir_flag_spec='-L$libdir'
15896       hardcode_shlibpath_var=no
15897       ;;
15898
15899     *)
15900       ld_shlibs=no
15901       ;;
15902     esac
15903   fi
15904
15905 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15906 echo "${ECHO_T}$ld_shlibs" >&6; }
15907 test "$ld_shlibs" = no && can_build_shared=no
15908
15909 #
15910 # Do we need to explicitly link libc?
15911 #
15912 case "x$archive_cmds_need_lc" in
15913 x|xyes)
15914   # Assume -lc should be added
15915   archive_cmds_need_lc=yes
15916
15917   if test "$enable_shared" = yes && test "$GCC" = yes; then
15918     case $archive_cmds in
15919     *'~'*)
15920       # FIXME: we may have to deal with multi-command sequences.
15921       ;;
15922     '$CC '*)
15923       # Test whether the compiler implicitly links with -lc since on some
15924       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15925       # to ld, don't add -lc before -lgcc.
15926       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15927 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15928       $rm conftest*
15929       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15930
15931       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15932   (eval $ac_compile) 2>&5
15933   ac_status=$?
15934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15935   (exit $ac_status); } 2>conftest.err; then
15936         soname=conftest
15937         lib=conftest
15938         libobjs=conftest.$ac_objext
15939         deplibs=
15940         wl=$lt_prog_compiler_wl
15941         pic_flag=$lt_prog_compiler_pic
15942         compiler_flags=-v
15943         linker_flags=-v
15944         verstring=
15945         output_objdir=.
15946         libname=conftest
15947         lt_save_allow_undefined_flag=$allow_undefined_flag
15948         allow_undefined_flag=
15949         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15950   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15951   ac_status=$?
15952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15953   (exit $ac_status); }
15954         then
15955           archive_cmds_need_lc=no
15956         else
15957           archive_cmds_need_lc=yes
15958         fi
15959         allow_undefined_flag=$lt_save_allow_undefined_flag
15960       else
15961         cat conftest.err 1>&5
15962       fi
15963       $rm conftest*
15964       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15965 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
15966       ;;
15967     esac
15968   fi
15969   ;;
15970 esac
15971
15972 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15973 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15974 library_names_spec=
15975 libname_spec='lib$name'
15976 soname_spec=
15977 shrext_cmds=".so"
15978 postinstall_cmds=
15979 postuninstall_cmds=
15980 finish_cmds=
15981 finish_eval=
15982 shlibpath_var=
15983 shlibpath_overrides_runpath=unknown
15984 version_type=none
15985 dynamic_linker="$host_os ld.so"
15986 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15987 if test "$GCC" = yes; then
15988   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15989   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15990     # if the path contains ";" then we assume it to be the separator
15991     # otherwise default to the standard path separator (i.e. ":") - it is
15992     # assumed that no part of a normal pathname contains ";" but that should
15993     # okay in the real world where ";" in dirpaths is itself problematic.
15994     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15995   else
15996     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15997   fi
15998 else
15999   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16000 fi
16001 need_lib_prefix=unknown
16002 hardcode_into_libs=no
16003
16004 # when you set need_version to no, make sure it does not cause -set_version
16005 # flags to be left without arguments
16006 need_version=unknown
16007
16008 case $host_os in
16009 aix3*)
16010   version_type=linux
16011   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16012   shlibpath_var=LIBPATH
16013
16014   # AIX 3 has no versioning support, so we append a major version to the name.
16015   soname_spec='${libname}${release}${shared_ext}$major'
16016   ;;
16017
16018 aix4* | aix5*)
16019   version_type=linux
16020   need_lib_prefix=no
16021   need_version=no
16022   hardcode_into_libs=yes
16023   if test "$host_cpu" = ia64; then
16024     # AIX 5 supports IA64
16025     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16026     shlibpath_var=LD_LIBRARY_PATH
16027   else
16028     # With GCC up to 2.95.x, collect2 would create an import file
16029     # for dependence libraries.  The import file would start with
16030     # the line `#! .'.  This would cause the generated library to
16031     # depend on `.', always an invalid library.  This was fixed in
16032     # development snapshots of GCC prior to 3.0.
16033     case $host_os in
16034       aix4 | aix4.[01] | aix4.[01].*)
16035       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16036            echo ' yes '
16037            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16038         :
16039       else
16040         can_build_shared=no
16041       fi
16042       ;;
16043     esac
16044     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16045     # soname into executable. Probably we can add versioning support to
16046     # collect2, so additional links can be useful in future.
16047     if test "$aix_use_runtimelinking" = yes; then
16048       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16049       # instead of lib<name>.a to let people know that these are not
16050       # typical AIX shared libraries.
16051       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16052     else
16053       # We preserve .a as extension for shared libraries through AIX4.2
16054       # and later when we are not doing run time linking.
16055       library_names_spec='${libname}${release}.a $libname.a'
16056       soname_spec='${libname}${release}${shared_ext}$major'
16057     fi
16058     shlibpath_var=LIBPATH
16059   fi
16060   ;;
16061
16062 amigaos*)
16063   library_names_spec='$libname.ixlibrary $libname.a'
16064   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16065   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'
16066   ;;
16067
16068 beos*)
16069   library_names_spec='${libname}${shared_ext}'
16070   dynamic_linker="$host_os ld.so"
16071   shlibpath_var=LIBRARY_PATH
16072   ;;
16073
16074 bsdi[45]*)
16075   version_type=linux
16076   need_version=no
16077   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16078   soname_spec='${libname}${release}${shared_ext}$major'
16079   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16080   shlibpath_var=LD_LIBRARY_PATH
16081   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16082   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16083   # the default ld.so.conf also contains /usr/contrib/lib and
16084   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16085   # libtool to hard-code these into programs
16086   ;;
16087
16088 cygwin* | mingw* | pw32*)
16089   version_type=windows
16090   shrext_cmds=".dll"
16091   need_version=no
16092   need_lib_prefix=no
16093
16094   case $GCC,$host_os in
16095   yes,cygwin* | yes,mingw* | yes,pw32*)
16096     library_names_spec='$libname.dll.a'
16097     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16098     postinstall_cmds='base_file=`basename \${file}`~
16099       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16100       dldir=$destdir/`dirname \$dlpath`~
16101       test -d \$dldir || mkdir -p \$dldir~
16102       $install_prog $dir/$dlname \$dldir/$dlname~
16103       chmod a+x \$dldir/$dlname'
16104     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16105       dlpath=$dir/\$dldll~
16106        $rm \$dlpath'
16107     shlibpath_overrides_runpath=yes
16108
16109     case $host_os in
16110     cygwin*)
16111       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16112       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16113       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16114       ;;
16115     mingw*)
16116       # MinGW DLLs use traditional 'lib' prefix
16117       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16118       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16119       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16120         # It is most probably a Windows format PATH printed by
16121         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16122         # path with ; separators, and with drive letters. We can handle the
16123         # drive letters (cygwin fileutils understands them), so leave them,
16124         # especially as we might pass files found there to a mingw objdump,
16125         # which wouldn't understand a cygwinified path. Ahh.
16126         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16127       else
16128         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16129       fi
16130       ;;
16131     pw32*)
16132       # pw32 DLLs use 'pw' prefix rather than 'lib'
16133       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16134       ;;
16135     esac
16136     ;;
16137
16138   *)
16139     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16140     ;;
16141   esac
16142   dynamic_linker='Win32 ld.exe'
16143   # FIXME: first we should search . and the directory the executable is in
16144   shlibpath_var=PATH
16145   ;;
16146
16147 darwin* | rhapsody*)
16148   dynamic_linker="$host_os dyld"
16149   version_type=darwin
16150   need_lib_prefix=no
16151   need_version=no
16152   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16153   soname_spec='${libname}${release}${major}$shared_ext'
16154   shlibpath_overrides_runpath=yes
16155   shlibpath_var=DYLD_LIBRARY_PATH
16156   shrext_cmds='.dylib'
16157   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16158   if test "$GCC" = yes; then
16159     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"`
16160   else
16161     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16162   fi
16163   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16164   ;;
16165
16166 dgux*)
16167   version_type=linux
16168   need_lib_prefix=no
16169   need_version=no
16170   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16171   soname_spec='${libname}${release}${shared_ext}$major'
16172   shlibpath_var=LD_LIBRARY_PATH
16173   ;;
16174
16175 freebsd1*)
16176   dynamic_linker=no
16177   ;;
16178
16179 kfreebsd*-gnu)
16180   version_type=linux
16181   need_lib_prefix=no
16182   need_version=no
16183   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16184   soname_spec='${libname}${release}${shared_ext}$major'
16185   shlibpath_var=LD_LIBRARY_PATH
16186   shlibpath_overrides_runpath=no
16187   hardcode_into_libs=yes
16188   dynamic_linker='GNU ld.so'
16189   ;;
16190
16191 freebsd* | dragonfly*)
16192   # DragonFly does not have aout.  When/if they implement a new
16193   # versioning mechanism, adjust this.
16194   if test -x /usr/bin/objformat; then
16195     objformat=`/usr/bin/objformat`
16196   else
16197     case $host_os in
16198     freebsd[123]*) objformat=aout ;;
16199     *) objformat=elf ;;
16200     esac
16201   fi
16202   version_type=freebsd-$objformat
16203   case $version_type in
16204     freebsd-elf*)
16205       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16206       need_version=no
16207       need_lib_prefix=no
16208       ;;
16209     freebsd-*)
16210       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16211       need_version=yes
16212       ;;
16213   esac
16214   shlibpath_var=LD_LIBRARY_PATH
16215   case $host_os in
16216   freebsd2*)
16217     shlibpath_overrides_runpath=yes
16218     ;;
16219   freebsd3.[01]* | freebsdelf3.[01]*)
16220     shlibpath_overrides_runpath=yes
16221     hardcode_into_libs=yes
16222     ;;
16223   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16224   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16225     shlibpath_overrides_runpath=no
16226     hardcode_into_libs=yes
16227     ;;
16228   freebsd*) # from 4.6 on
16229     shlibpath_overrides_runpath=yes
16230     hardcode_into_libs=yes
16231     ;;
16232   esac
16233   ;;
16234
16235 gnu*)
16236   version_type=linux
16237   need_lib_prefix=no
16238   need_version=no
16239   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16240   soname_spec='${libname}${release}${shared_ext}$major'
16241   shlibpath_var=LD_LIBRARY_PATH
16242   hardcode_into_libs=yes
16243   ;;
16244
16245 hpux9* | hpux10* | hpux11*)
16246   # Give a soname corresponding to the major version so that dld.sl refuses to
16247   # link against other versions.
16248   version_type=sunos
16249   need_lib_prefix=no
16250   need_version=no
16251   case $host_cpu in
16252   ia64*)
16253     shrext_cmds='.so'
16254     hardcode_into_libs=yes
16255     dynamic_linker="$host_os dld.so"
16256     shlibpath_var=LD_LIBRARY_PATH
16257     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16258     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16259     soname_spec='${libname}${release}${shared_ext}$major'
16260     if test "X$HPUX_IA64_MODE" = X32; then
16261       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16262     else
16263       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16264     fi
16265     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16266     ;;
16267    hppa*64*)
16268      shrext_cmds='.sl'
16269      hardcode_into_libs=yes
16270      dynamic_linker="$host_os dld.sl"
16271      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16272      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16273      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16274      soname_spec='${libname}${release}${shared_ext}$major'
16275      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16276      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16277      ;;
16278    *)
16279     shrext_cmds='.sl'
16280     dynamic_linker="$host_os dld.sl"
16281     shlibpath_var=SHLIB_PATH
16282     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16283     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16284     soname_spec='${libname}${release}${shared_ext}$major'
16285     ;;
16286   esac
16287   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16288   postinstall_cmds='chmod 555 $lib'
16289   ;;
16290
16291 interix3*)
16292   version_type=linux
16293   need_lib_prefix=no
16294   need_version=no
16295   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16296   soname_spec='${libname}${release}${shared_ext}$major'
16297   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16298   shlibpath_var=LD_LIBRARY_PATH
16299   shlibpath_overrides_runpath=no
16300   hardcode_into_libs=yes
16301   ;;
16302
16303 irix5* | irix6* | nonstopux*)
16304   case $host_os in
16305     nonstopux*) version_type=nonstopux ;;
16306     *)
16307         if test "$lt_cv_prog_gnu_ld" = yes; then
16308                 version_type=linux
16309         else
16310                 version_type=irix
16311         fi ;;
16312   esac
16313   need_lib_prefix=no
16314   need_version=no
16315   soname_spec='${libname}${release}${shared_ext}$major'
16316   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16317   case $host_os in
16318   irix5* | nonstopux*)
16319     libsuff= shlibsuff=
16320     ;;
16321   *)
16322     case $LD in # libtool.m4 will add one of these switches to LD
16323     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16324       libsuff= shlibsuff= libmagic=32-bit;;
16325     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16326       libsuff=32 shlibsuff=N32 libmagic=N32;;
16327     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16328       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16329     *) libsuff= shlibsuff= libmagic=never-match;;
16330     esac
16331     ;;
16332   esac
16333   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16334   shlibpath_overrides_runpath=no
16335   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16336   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16337   hardcode_into_libs=yes
16338   ;;
16339
16340 # No shared lib support for Linux oldld, aout, or coff.
16341 linux*oldld* | linux*aout* | linux*coff*)
16342   dynamic_linker=no
16343   ;;
16344
16345 # This must be Linux ELF.
16346 linux*)
16347   version_type=linux
16348   need_lib_prefix=no
16349   need_version=no
16350   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16351   soname_spec='${libname}${release}${shared_ext}$major'
16352   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16353   shlibpath_var=LD_LIBRARY_PATH
16354   shlibpath_overrides_runpath=no
16355   # This implies no fast_install, which is unacceptable.
16356   # Some rework will be needed to allow for fast_install
16357   # before this can be enabled.
16358   hardcode_into_libs=yes
16359
16360   # Append ld.so.conf contents to the search path
16361   if test -f /etc/ld.so.conf; then
16362     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' ' '`
16363     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16364   fi
16365
16366   # We used to test for /lib/ld.so.1 and disable shared libraries on
16367   # powerpc, because MkLinux only supported shared libraries with the
16368   # GNU dynamic linker.  Since this was broken with cross compilers,
16369   # most powerpc-linux boxes support dynamic linking these days and
16370   # people can always --disable-shared, the test was removed, and we
16371   # assume the GNU/Linux dynamic linker is in use.
16372   dynamic_linker='GNU/Linux ld.so'
16373   ;;
16374
16375 knetbsd*-gnu)
16376   version_type=linux
16377   need_lib_prefix=no
16378   need_version=no
16379   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16380   soname_spec='${libname}${release}${shared_ext}$major'
16381   shlibpath_var=LD_LIBRARY_PATH
16382   shlibpath_overrides_runpath=no
16383   hardcode_into_libs=yes
16384   dynamic_linker='GNU ld.so'
16385   ;;
16386
16387 netbsd*)
16388   version_type=sunos
16389   need_lib_prefix=no
16390   need_version=no
16391   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16392     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16393     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16394     dynamic_linker='NetBSD (a.out) ld.so'
16395   else
16396     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16397     soname_spec='${libname}${release}${shared_ext}$major'
16398     dynamic_linker='NetBSD ld.elf_so'
16399   fi
16400   shlibpath_var=LD_LIBRARY_PATH
16401   shlibpath_overrides_runpath=yes
16402   hardcode_into_libs=yes
16403   ;;
16404
16405 newsos6)
16406   version_type=linux
16407   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16408   shlibpath_var=LD_LIBRARY_PATH
16409   shlibpath_overrides_runpath=yes
16410   ;;
16411
16412 nto-qnx*)
16413   version_type=linux
16414   need_lib_prefix=no
16415   need_version=no
16416   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16417   soname_spec='${libname}${release}${shared_ext}$major'
16418   shlibpath_var=LD_LIBRARY_PATH
16419   shlibpath_overrides_runpath=yes
16420   ;;
16421
16422 openbsd*)
16423   version_type=sunos
16424   sys_lib_dlsearch_path_spec="/usr/lib"
16425   need_lib_prefix=no
16426   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16427   case $host_os in
16428     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16429     *)                         need_version=no  ;;
16430   esac
16431   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16432   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16433   shlibpath_var=LD_LIBRARY_PATH
16434   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16435     case $host_os in
16436       openbsd2.[89] | openbsd2.[89].*)
16437         shlibpath_overrides_runpath=no
16438         ;;
16439       *)
16440         shlibpath_overrides_runpath=yes
16441         ;;
16442       esac
16443   else
16444     shlibpath_overrides_runpath=yes
16445   fi
16446   ;;
16447
16448 os2*)
16449   libname_spec='$name'
16450   shrext_cmds=".dll"
16451   need_lib_prefix=no
16452   library_names_spec='$libname${shared_ext} $libname.a'
16453   dynamic_linker='OS/2 ld.exe'
16454   shlibpath_var=LIBPATH
16455   ;;
16456
16457 osf3* | osf4* | osf5*)
16458   version_type=osf
16459   need_lib_prefix=no
16460   need_version=no
16461   soname_spec='${libname}${release}${shared_ext}$major'
16462   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16463   shlibpath_var=LD_LIBRARY_PATH
16464   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16465   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16466   ;;
16467
16468 solaris*)
16469   version_type=linux
16470   need_lib_prefix=no
16471   need_version=no
16472   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16473   soname_spec='${libname}${release}${shared_ext}$major'
16474   shlibpath_var=LD_LIBRARY_PATH
16475   shlibpath_overrides_runpath=yes
16476   hardcode_into_libs=yes
16477   # ldd complains unless libraries are executable
16478   postinstall_cmds='chmod +x $lib'
16479   ;;
16480
16481 sunos4*)
16482   version_type=sunos
16483   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16484   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16485   shlibpath_var=LD_LIBRARY_PATH
16486   shlibpath_overrides_runpath=yes
16487   if test "$with_gnu_ld" = yes; then
16488     need_lib_prefix=no
16489   fi
16490   need_version=yes
16491   ;;
16492
16493 sysv4 | sysv4.3*)
16494   version_type=linux
16495   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16496   soname_spec='${libname}${release}${shared_ext}$major'
16497   shlibpath_var=LD_LIBRARY_PATH
16498   case $host_vendor in
16499     sni)
16500       shlibpath_overrides_runpath=no
16501       need_lib_prefix=no
16502       export_dynamic_flag_spec='${wl}-Blargedynsym'
16503       runpath_var=LD_RUN_PATH
16504       ;;
16505     siemens)
16506       need_lib_prefix=no
16507       ;;
16508     motorola)
16509       need_lib_prefix=no
16510       need_version=no
16511       shlibpath_overrides_runpath=no
16512       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16513       ;;
16514   esac
16515   ;;
16516
16517 sysv4*MP*)
16518   if test -d /usr/nec ;then
16519     version_type=linux
16520     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16521     soname_spec='$libname${shared_ext}.$major'
16522     shlibpath_var=LD_LIBRARY_PATH
16523   fi
16524   ;;
16525
16526 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16527   version_type=freebsd-elf
16528   need_lib_prefix=no
16529   need_version=no
16530   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16531   soname_spec='${libname}${release}${shared_ext}$major'
16532   shlibpath_var=LD_LIBRARY_PATH
16533   hardcode_into_libs=yes
16534   if test "$with_gnu_ld" = yes; then
16535     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16536     shlibpath_overrides_runpath=no
16537   else
16538     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16539     shlibpath_overrides_runpath=yes
16540     case $host_os in
16541       sco3.2v5*)
16542         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16543         ;;
16544     esac
16545   fi
16546   sys_lib_dlsearch_path_spec='/usr/lib'
16547   ;;
16548
16549 uts4*)
16550   version_type=linux
16551   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16552   soname_spec='${libname}${release}${shared_ext}$major'
16553   shlibpath_var=LD_LIBRARY_PATH
16554   ;;
16555
16556 *)
16557   dynamic_linker=no
16558   ;;
16559 esac
16560 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16561 echo "${ECHO_T}$dynamic_linker" >&6; }
16562 test "$dynamic_linker" = no && can_build_shared=no
16563
16564 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16565 if test "$GCC" = yes; then
16566   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16567 fi
16568
16569 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16570 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16571 hardcode_action=
16572 if test -n "$hardcode_libdir_flag_spec" || \
16573    test -n "$runpath_var" || \
16574    test "X$hardcode_automatic" = "Xyes" ; then
16575
16576   # We can hardcode non-existant directories.
16577   if test "$hardcode_direct" != no &&
16578      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16579      # have to relink, otherwise we might link with an installed library
16580      # when we should be linking with a yet-to-be-installed one
16581      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16582      test "$hardcode_minus_L" != no; then
16583     # Linking always hardcodes the temporary library directory.
16584     hardcode_action=relink
16585   else
16586     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16587     hardcode_action=immediate
16588   fi
16589 else
16590   # We cannot hardcode anything, or else we can only hardcode existing
16591   # directories.
16592   hardcode_action=unsupported
16593 fi
16594 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16595 echo "${ECHO_T}$hardcode_action" >&6; }
16596
16597 if test "$hardcode_action" = relink; then
16598   # Fast installation is not supported
16599   enable_fast_install=no
16600 elif test "$shlibpath_overrides_runpath" = yes ||
16601      test "$enable_shared" = no; then
16602   # Fast installation is not necessary
16603   enable_fast_install=needless
16604 fi
16605
16606 striplib=
16607 old_striplib=
16608 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16609 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16610 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16611   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16612   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16613   { echo "$as_me:$LINENO: result: yes" >&5
16614 echo "${ECHO_T}yes" >&6; }
16615 else
16616 # FIXME - insert some real tests, host_os isn't really good enough
16617   case $host_os in
16618    darwin*)
16619        if test -n "$STRIP" ; then
16620          striplib="$STRIP -x"
16621          { echo "$as_me:$LINENO: result: yes" >&5
16622 echo "${ECHO_T}yes" >&6; }
16623        else
16624   { echo "$as_me:$LINENO: result: no" >&5
16625 echo "${ECHO_T}no" >&6; }
16626 fi
16627        ;;
16628    *)
16629   { echo "$as_me:$LINENO: result: no" >&5
16630 echo "${ECHO_T}no" >&6; }
16631     ;;
16632   esac
16633 fi
16634
16635 if test "x$enable_dlopen" != xyes; then
16636   enable_dlopen=unknown
16637   enable_dlopen_self=unknown
16638   enable_dlopen_self_static=unknown
16639 else
16640   lt_cv_dlopen=no
16641   lt_cv_dlopen_libs=
16642
16643   case $host_os in
16644   beos*)
16645     lt_cv_dlopen="load_add_on"
16646     lt_cv_dlopen_libs=
16647     lt_cv_dlopen_self=yes
16648     ;;
16649
16650   mingw* | pw32*)
16651     lt_cv_dlopen="LoadLibrary"
16652     lt_cv_dlopen_libs=
16653    ;;
16654
16655   cygwin*)
16656     lt_cv_dlopen="dlopen"
16657     lt_cv_dlopen_libs=
16658    ;;
16659
16660   darwin*)
16661   # if libdl is installed we need to link against it
16662     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16663 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16664 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16665   echo $ECHO_N "(cached) $ECHO_C" >&6
16666 else
16667   ac_check_lib_save_LIBS=$LIBS
16668 LIBS="-ldl  $LIBS"
16669 cat >conftest.$ac_ext <<_ACEOF
16670 /* confdefs.h.  */
16671 _ACEOF
16672 cat confdefs.h >>conftest.$ac_ext
16673 cat >>conftest.$ac_ext <<_ACEOF
16674 /* end confdefs.h.  */
16675
16676 /* Override any GCC internal prototype to avoid an error.
16677    Use char because int might match the return type of a GCC
16678    builtin and then its argument prototype would still apply.  */
16679 #ifdef __cplusplus
16680 extern "C"
16681 #endif
16682 char dlopen ();
16683 int
16684 main ()
16685 {
16686 return dlopen ();
16687   ;
16688   return 0;
16689 }
16690 _ACEOF
16691 rm -f conftest.$ac_objext conftest$ac_exeext
16692 if { (ac_try="$ac_link"
16693 case "(($ac_try" in
16694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16695   *) ac_try_echo=$ac_try;;
16696 esac
16697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16698   (eval "$ac_link") 2>conftest.er1
16699   ac_status=$?
16700   grep -v '^ *+' conftest.er1 >conftest.err
16701   rm -f conftest.er1
16702   cat conftest.err >&5
16703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16704   (exit $ac_status); } &&
16705          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16706   { (case "(($ac_try" in
16707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16708   *) ac_try_echo=$ac_try;;
16709 esac
16710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16711   (eval "$ac_try") 2>&5
16712   ac_status=$?
16713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16714   (exit $ac_status); }; } &&
16715          { ac_try='test -s conftest$ac_exeext'
16716   { (case "(($ac_try" in
16717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16718   *) ac_try_echo=$ac_try;;
16719 esac
16720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16721   (eval "$ac_try") 2>&5
16722   ac_status=$?
16723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16724   (exit $ac_status); }; }; then
16725   ac_cv_lib_dl_dlopen=yes
16726 else
16727   echo "$as_me: failed program was:" >&5
16728 sed 's/^/| /' conftest.$ac_ext >&5
16729
16730         ac_cv_lib_dl_dlopen=no
16731 fi
16732
16733 rm -f core conftest.err conftest.$ac_objext \
16734       conftest$ac_exeext conftest.$ac_ext
16735 LIBS=$ac_check_lib_save_LIBS
16736 fi
16737 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16738 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16739 if test $ac_cv_lib_dl_dlopen = yes; then
16740   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16741 else
16742
16743     lt_cv_dlopen="dyld"
16744     lt_cv_dlopen_libs=
16745     lt_cv_dlopen_self=yes
16746
16747 fi
16748
16749    ;;
16750
16751   *)
16752     { echo "$as_me:$LINENO: checking for shl_load" >&5
16753 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16754 if test "${ac_cv_func_shl_load+set}" = set; then
16755   echo $ECHO_N "(cached) $ECHO_C" >&6
16756 else
16757   cat >conftest.$ac_ext <<_ACEOF
16758 /* confdefs.h.  */
16759 _ACEOF
16760 cat confdefs.h >>conftest.$ac_ext
16761 cat >>conftest.$ac_ext <<_ACEOF
16762 /* end confdefs.h.  */
16763 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16764    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16765 #define shl_load innocuous_shl_load
16766
16767 /* System header to define __stub macros and hopefully few prototypes,
16768     which can conflict with char shl_load (); below.
16769     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16770     <limits.h> exists even on freestanding compilers.  */
16771
16772 #ifdef __STDC__
16773 # include <limits.h>
16774 #else
16775 # include <assert.h>
16776 #endif
16777
16778 #undef shl_load
16779
16780 /* Override any GCC internal prototype to avoid an error.
16781    Use char because int might match the return type of a GCC
16782    builtin and then its argument prototype would still apply.  */
16783 #ifdef __cplusplus
16784 extern "C"
16785 #endif
16786 char shl_load ();
16787 /* The GNU C library defines this for functions which it implements
16788     to always fail with ENOSYS.  Some functions are actually named
16789     something starting with __ and the normal name is an alias.  */
16790 #if defined __stub_shl_load || defined __stub___shl_load
16791 choke me
16792 #endif
16793
16794 int
16795 main ()
16796 {
16797 return shl_load ();
16798   ;
16799   return 0;
16800 }
16801 _ACEOF
16802 rm -f conftest.$ac_objext conftest$ac_exeext
16803 if { (ac_try="$ac_link"
16804 case "(($ac_try" in
16805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16806   *) ac_try_echo=$ac_try;;
16807 esac
16808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16809   (eval "$ac_link") 2>conftest.er1
16810   ac_status=$?
16811   grep -v '^ *+' conftest.er1 >conftest.err
16812   rm -f conftest.er1
16813   cat conftest.err >&5
16814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16815   (exit $ac_status); } &&
16816          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16817   { (case "(($ac_try" in
16818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16819   *) ac_try_echo=$ac_try;;
16820 esac
16821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16822   (eval "$ac_try") 2>&5
16823   ac_status=$?
16824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16825   (exit $ac_status); }; } &&
16826          { ac_try='test -s conftest$ac_exeext'
16827   { (case "(($ac_try" in
16828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16829   *) ac_try_echo=$ac_try;;
16830 esac
16831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16832   (eval "$ac_try") 2>&5
16833   ac_status=$?
16834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16835   (exit $ac_status); }; }; then
16836   ac_cv_func_shl_load=yes
16837 else
16838   echo "$as_me: failed program was:" >&5
16839 sed 's/^/| /' conftest.$ac_ext >&5
16840
16841         ac_cv_func_shl_load=no
16842 fi
16843
16844 rm -f core conftest.err conftest.$ac_objext \
16845       conftest$ac_exeext conftest.$ac_ext
16846 fi
16847 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16848 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
16849 if test $ac_cv_func_shl_load = yes; then
16850   lt_cv_dlopen="shl_load"
16851 else
16852   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16853 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
16854 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16855   echo $ECHO_N "(cached) $ECHO_C" >&6
16856 else
16857   ac_check_lib_save_LIBS=$LIBS
16858 LIBS="-ldld  $LIBS"
16859 cat >conftest.$ac_ext <<_ACEOF
16860 /* confdefs.h.  */
16861 _ACEOF
16862 cat confdefs.h >>conftest.$ac_ext
16863 cat >>conftest.$ac_ext <<_ACEOF
16864 /* end confdefs.h.  */
16865
16866 /* Override any GCC internal prototype to avoid an error.
16867    Use char because int might match the return type of a GCC
16868    builtin and then its argument prototype would still apply.  */
16869 #ifdef __cplusplus
16870 extern "C"
16871 #endif
16872 char shl_load ();
16873 int
16874 main ()
16875 {
16876 return shl_load ();
16877   ;
16878   return 0;
16879 }
16880 _ACEOF
16881 rm -f conftest.$ac_objext conftest$ac_exeext
16882 if { (ac_try="$ac_link"
16883 case "(($ac_try" in
16884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16885   *) ac_try_echo=$ac_try;;
16886 esac
16887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16888   (eval "$ac_link") 2>conftest.er1
16889   ac_status=$?
16890   grep -v '^ *+' conftest.er1 >conftest.err
16891   rm -f conftest.er1
16892   cat conftest.err >&5
16893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16894   (exit $ac_status); } &&
16895          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16896   { (case "(($ac_try" in
16897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16898   *) ac_try_echo=$ac_try;;
16899 esac
16900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16901   (eval "$ac_try") 2>&5
16902   ac_status=$?
16903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16904   (exit $ac_status); }; } &&
16905          { ac_try='test -s conftest$ac_exeext'
16906   { (case "(($ac_try" in
16907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16908   *) ac_try_echo=$ac_try;;
16909 esac
16910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16911   (eval "$ac_try") 2>&5
16912   ac_status=$?
16913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16914   (exit $ac_status); }; }; then
16915   ac_cv_lib_dld_shl_load=yes
16916 else
16917   echo "$as_me: failed program was:" >&5
16918 sed 's/^/| /' conftest.$ac_ext >&5
16919
16920         ac_cv_lib_dld_shl_load=no
16921 fi
16922
16923 rm -f core conftest.err conftest.$ac_objext \
16924       conftest$ac_exeext conftest.$ac_ext
16925 LIBS=$ac_check_lib_save_LIBS
16926 fi
16927 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16928 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
16929 if test $ac_cv_lib_dld_shl_load = yes; then
16930   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16931 else
16932   { echo "$as_me:$LINENO: checking for dlopen" >&5
16933 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
16934 if test "${ac_cv_func_dlopen+set}" = set; then
16935   echo $ECHO_N "(cached) $ECHO_C" >&6
16936 else
16937   cat >conftest.$ac_ext <<_ACEOF
16938 /* confdefs.h.  */
16939 _ACEOF
16940 cat confdefs.h >>conftest.$ac_ext
16941 cat >>conftest.$ac_ext <<_ACEOF
16942 /* end confdefs.h.  */
16943 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16944    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16945 #define dlopen innocuous_dlopen
16946
16947 /* System header to define __stub macros and hopefully few prototypes,
16948     which can conflict with char dlopen (); below.
16949     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16950     <limits.h> exists even on freestanding compilers.  */
16951
16952 #ifdef __STDC__
16953 # include <limits.h>
16954 #else
16955 # include <assert.h>
16956 #endif
16957
16958 #undef dlopen
16959
16960 /* Override any GCC internal prototype to avoid an error.
16961    Use char because int might match the return type of a GCC
16962    builtin and then its argument prototype would still apply.  */
16963 #ifdef __cplusplus
16964 extern "C"
16965 #endif
16966 char dlopen ();
16967 /* The GNU C library defines this for functions which it implements
16968     to always fail with ENOSYS.  Some functions are actually named
16969     something starting with __ and the normal name is an alias.  */
16970 #if defined __stub_dlopen || defined __stub___dlopen
16971 choke me
16972 #endif
16973
16974 int
16975 main ()
16976 {
16977 return dlopen ();
16978   ;
16979   return 0;
16980 }
16981 _ACEOF
16982 rm -f conftest.$ac_objext conftest$ac_exeext
16983 if { (ac_try="$ac_link"
16984 case "(($ac_try" in
16985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16986   *) ac_try_echo=$ac_try;;
16987 esac
16988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16989   (eval "$ac_link") 2>conftest.er1
16990   ac_status=$?
16991   grep -v '^ *+' conftest.er1 >conftest.err
16992   rm -f conftest.er1
16993   cat conftest.err >&5
16994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16995   (exit $ac_status); } &&
16996          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16997   { (case "(($ac_try" in
16998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16999   *) ac_try_echo=$ac_try;;
17000 esac
17001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17002   (eval "$ac_try") 2>&5
17003   ac_status=$?
17004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17005   (exit $ac_status); }; } &&
17006          { ac_try='test -s conftest$ac_exeext'
17007   { (case "(($ac_try" in
17008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17009   *) ac_try_echo=$ac_try;;
17010 esac
17011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17012   (eval "$ac_try") 2>&5
17013   ac_status=$?
17014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17015   (exit $ac_status); }; }; then
17016   ac_cv_func_dlopen=yes
17017 else
17018   echo "$as_me: failed program was:" >&5
17019 sed 's/^/| /' conftest.$ac_ext >&5
17020
17021         ac_cv_func_dlopen=no
17022 fi
17023
17024 rm -f core conftest.err conftest.$ac_objext \
17025       conftest$ac_exeext conftest.$ac_ext
17026 fi
17027 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17028 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
17029 if test $ac_cv_func_dlopen = yes; then
17030   lt_cv_dlopen="dlopen"
17031 else
17032   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17033 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17034 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17035   echo $ECHO_N "(cached) $ECHO_C" >&6
17036 else
17037   ac_check_lib_save_LIBS=$LIBS
17038 LIBS="-ldl  $LIBS"
17039 cat >conftest.$ac_ext <<_ACEOF
17040 /* confdefs.h.  */
17041 _ACEOF
17042 cat confdefs.h >>conftest.$ac_ext
17043 cat >>conftest.$ac_ext <<_ACEOF
17044 /* end confdefs.h.  */
17045
17046 /* Override any GCC internal prototype to avoid an error.
17047    Use char because int might match the return type of a GCC
17048    builtin and then its argument prototype would still apply.  */
17049 #ifdef __cplusplus
17050 extern "C"
17051 #endif
17052 char dlopen ();
17053 int
17054 main ()
17055 {
17056 return dlopen ();
17057   ;
17058   return 0;
17059 }
17060 _ACEOF
17061 rm -f conftest.$ac_objext conftest$ac_exeext
17062 if { (ac_try="$ac_link"
17063 case "(($ac_try" in
17064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17065   *) ac_try_echo=$ac_try;;
17066 esac
17067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17068   (eval "$ac_link") 2>conftest.er1
17069   ac_status=$?
17070   grep -v '^ *+' conftest.er1 >conftest.err
17071   rm -f conftest.er1
17072   cat conftest.err >&5
17073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17074   (exit $ac_status); } &&
17075          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17076   { (case "(($ac_try" in
17077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17078   *) ac_try_echo=$ac_try;;
17079 esac
17080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17081   (eval "$ac_try") 2>&5
17082   ac_status=$?
17083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17084   (exit $ac_status); }; } &&
17085          { ac_try='test -s conftest$ac_exeext'
17086   { (case "(($ac_try" in
17087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17088   *) ac_try_echo=$ac_try;;
17089 esac
17090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17091   (eval "$ac_try") 2>&5
17092   ac_status=$?
17093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17094   (exit $ac_status); }; }; then
17095   ac_cv_lib_dl_dlopen=yes
17096 else
17097   echo "$as_me: failed program was:" >&5
17098 sed 's/^/| /' conftest.$ac_ext >&5
17099
17100         ac_cv_lib_dl_dlopen=no
17101 fi
17102
17103 rm -f core conftest.err conftest.$ac_objext \
17104       conftest$ac_exeext conftest.$ac_ext
17105 LIBS=$ac_check_lib_save_LIBS
17106 fi
17107 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17108 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17109 if test $ac_cv_lib_dl_dlopen = yes; then
17110   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17111 else
17112   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17113 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17114 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17115   echo $ECHO_N "(cached) $ECHO_C" >&6
17116 else
17117   ac_check_lib_save_LIBS=$LIBS
17118 LIBS="-lsvld  $LIBS"
17119 cat >conftest.$ac_ext <<_ACEOF
17120 /* confdefs.h.  */
17121 _ACEOF
17122 cat confdefs.h >>conftest.$ac_ext
17123 cat >>conftest.$ac_ext <<_ACEOF
17124 /* end confdefs.h.  */
17125
17126 /* Override any GCC internal prototype to avoid an error.
17127    Use char because int might match the return type of a GCC
17128    builtin and then its argument prototype would still apply.  */
17129 #ifdef __cplusplus
17130 extern "C"
17131 #endif
17132 char dlopen ();
17133 int
17134 main ()
17135 {
17136 return dlopen ();
17137   ;
17138   return 0;
17139 }
17140 _ACEOF
17141 rm -f conftest.$ac_objext conftest$ac_exeext
17142 if { (ac_try="$ac_link"
17143 case "(($ac_try" in
17144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17145   *) ac_try_echo=$ac_try;;
17146 esac
17147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17148   (eval "$ac_link") 2>conftest.er1
17149   ac_status=$?
17150   grep -v '^ *+' conftest.er1 >conftest.err
17151   rm -f conftest.er1
17152   cat conftest.err >&5
17153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17154   (exit $ac_status); } &&
17155          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17156   { (case "(($ac_try" in
17157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17158   *) ac_try_echo=$ac_try;;
17159 esac
17160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17161   (eval "$ac_try") 2>&5
17162   ac_status=$?
17163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17164   (exit $ac_status); }; } &&
17165          { ac_try='test -s conftest$ac_exeext'
17166   { (case "(($ac_try" in
17167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17168   *) ac_try_echo=$ac_try;;
17169 esac
17170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17171   (eval "$ac_try") 2>&5
17172   ac_status=$?
17173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17174   (exit $ac_status); }; }; then
17175   ac_cv_lib_svld_dlopen=yes
17176 else
17177   echo "$as_me: failed program was:" >&5
17178 sed 's/^/| /' conftest.$ac_ext >&5
17179
17180         ac_cv_lib_svld_dlopen=no
17181 fi
17182
17183 rm -f core conftest.err conftest.$ac_objext \
17184       conftest$ac_exeext conftest.$ac_ext
17185 LIBS=$ac_check_lib_save_LIBS
17186 fi
17187 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17188 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17189 if test $ac_cv_lib_svld_dlopen = yes; then
17190   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17191 else
17192   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17193 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17194 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17195   echo $ECHO_N "(cached) $ECHO_C" >&6
17196 else
17197   ac_check_lib_save_LIBS=$LIBS
17198 LIBS="-ldld  $LIBS"
17199 cat >conftest.$ac_ext <<_ACEOF
17200 /* confdefs.h.  */
17201 _ACEOF
17202 cat confdefs.h >>conftest.$ac_ext
17203 cat >>conftest.$ac_ext <<_ACEOF
17204 /* end confdefs.h.  */
17205
17206 /* Override any GCC internal prototype to avoid an error.
17207    Use char because int might match the return type of a GCC
17208    builtin and then its argument prototype would still apply.  */
17209 #ifdef __cplusplus
17210 extern "C"
17211 #endif
17212 char dld_link ();
17213 int
17214 main ()
17215 {
17216 return dld_link ();
17217   ;
17218   return 0;
17219 }
17220 _ACEOF
17221 rm -f conftest.$ac_objext conftest$ac_exeext
17222 if { (ac_try="$ac_link"
17223 case "(($ac_try" in
17224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17225   *) ac_try_echo=$ac_try;;
17226 esac
17227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17228   (eval "$ac_link") 2>conftest.er1
17229   ac_status=$?
17230   grep -v '^ *+' conftest.er1 >conftest.err
17231   rm -f conftest.er1
17232   cat conftest.err >&5
17233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17234   (exit $ac_status); } &&
17235          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17236   { (case "(($ac_try" in
17237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17238   *) ac_try_echo=$ac_try;;
17239 esac
17240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17241   (eval "$ac_try") 2>&5
17242   ac_status=$?
17243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17244   (exit $ac_status); }; } &&
17245          { ac_try='test -s conftest$ac_exeext'
17246   { (case "(($ac_try" in
17247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17248   *) ac_try_echo=$ac_try;;
17249 esac
17250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17251   (eval "$ac_try") 2>&5
17252   ac_status=$?
17253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17254   (exit $ac_status); }; }; then
17255   ac_cv_lib_dld_dld_link=yes
17256 else
17257   echo "$as_me: failed program was:" >&5
17258 sed 's/^/| /' conftest.$ac_ext >&5
17259
17260         ac_cv_lib_dld_dld_link=no
17261 fi
17262
17263 rm -f core conftest.err conftest.$ac_objext \
17264       conftest$ac_exeext conftest.$ac_ext
17265 LIBS=$ac_check_lib_save_LIBS
17266 fi
17267 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17268 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17269 if test $ac_cv_lib_dld_dld_link = yes; then
17270   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17271 fi
17272
17273
17274 fi
17275
17276
17277 fi
17278
17279
17280 fi
17281
17282
17283 fi
17284
17285
17286 fi
17287
17288     ;;
17289   esac
17290
17291   if test "x$lt_cv_dlopen" != xno; then
17292     enable_dlopen=yes
17293   else
17294     enable_dlopen=no
17295   fi
17296
17297   case $lt_cv_dlopen in
17298   dlopen)
17299     save_CPPFLAGS="$CPPFLAGS"
17300     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17301
17302     save_LDFLAGS="$LDFLAGS"
17303     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17304
17305     save_LIBS="$LIBS"
17306     LIBS="$lt_cv_dlopen_libs $LIBS"
17307
17308     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17309 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17310 if test "${lt_cv_dlopen_self+set}" = set; then
17311   echo $ECHO_N "(cached) $ECHO_C" >&6
17312 else
17313           if test "$cross_compiling" = yes; then :
17314   lt_cv_dlopen_self=cross
17315 else
17316   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17317   lt_status=$lt_dlunknown
17318   cat > conftest.$ac_ext <<EOF
17319 #line 17319 "configure"
17320 #include "confdefs.h"
17321
17322 #if HAVE_DLFCN_H
17323 #include <dlfcn.h>
17324 #endif
17325
17326 #include <stdio.h>
17327
17328 #ifdef RTLD_GLOBAL
17329 #  define LT_DLGLOBAL           RTLD_GLOBAL
17330 #else
17331 #  ifdef DL_GLOBAL
17332 #    define LT_DLGLOBAL         DL_GLOBAL
17333 #  else
17334 #    define LT_DLGLOBAL         0
17335 #  endif
17336 #endif
17337
17338 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17339    find out it does not work in some platform. */
17340 #ifndef LT_DLLAZY_OR_NOW
17341 #  ifdef RTLD_LAZY
17342 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17343 #  else
17344 #    ifdef DL_LAZY
17345 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17346 #    else
17347 #      ifdef RTLD_NOW
17348 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17349 #      else
17350 #        ifdef DL_NOW
17351 #          define LT_DLLAZY_OR_NOW      DL_NOW
17352 #        else
17353 #          define LT_DLLAZY_OR_NOW      0
17354 #        endif
17355 #      endif
17356 #    endif
17357 #  endif
17358 #endif
17359
17360 #ifdef __cplusplus
17361 extern "C" void exit (int);
17362 #endif
17363
17364 void fnord() { int i=42;}
17365 int main ()
17366 {
17367   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17368   int status = $lt_dlunknown;
17369
17370   if (self)
17371     {
17372       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17373       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17374       /* dlclose (self); */
17375     }
17376   else
17377     puts (dlerror ());
17378
17379     exit (status);
17380 }
17381 EOF
17382   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17383   (eval $ac_link) 2>&5
17384   ac_status=$?
17385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17386   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17387     (./conftest; exit; ) >&5 2>/dev/null
17388     lt_status=$?
17389     case x$lt_status in
17390       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17391       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17392       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17393     esac
17394   else :
17395     # compilation failed
17396     lt_cv_dlopen_self=no
17397   fi
17398 fi
17399 rm -fr conftest*
17400
17401
17402 fi
17403 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17404 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17405
17406     if test "x$lt_cv_dlopen_self" = xyes; then
17407       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17408       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17409 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17410 if test "${lt_cv_dlopen_self_static+set}" = set; then
17411   echo $ECHO_N "(cached) $ECHO_C" >&6
17412 else
17413           if test "$cross_compiling" = yes; then :
17414   lt_cv_dlopen_self_static=cross
17415 else
17416   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17417   lt_status=$lt_dlunknown
17418   cat > conftest.$ac_ext <<EOF
17419 #line 17419 "configure"
17420 #include "confdefs.h"
17421
17422 #if HAVE_DLFCN_H
17423 #include <dlfcn.h>
17424 #endif
17425
17426 #include <stdio.h>
17427
17428 #ifdef RTLD_GLOBAL
17429 #  define LT_DLGLOBAL           RTLD_GLOBAL
17430 #else
17431 #  ifdef DL_GLOBAL
17432 #    define LT_DLGLOBAL         DL_GLOBAL
17433 #  else
17434 #    define LT_DLGLOBAL         0
17435 #  endif
17436 #endif
17437
17438 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17439    find out it does not work in some platform. */
17440 #ifndef LT_DLLAZY_OR_NOW
17441 #  ifdef RTLD_LAZY
17442 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17443 #  else
17444 #    ifdef DL_LAZY
17445 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17446 #    else
17447 #      ifdef RTLD_NOW
17448 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17449 #      else
17450 #        ifdef DL_NOW
17451 #          define LT_DLLAZY_OR_NOW      DL_NOW
17452 #        else
17453 #          define LT_DLLAZY_OR_NOW      0
17454 #        endif
17455 #      endif
17456 #    endif
17457 #  endif
17458 #endif
17459
17460 #ifdef __cplusplus
17461 extern "C" void exit (int);
17462 #endif
17463
17464 void fnord() { int i=42;}
17465 int main ()
17466 {
17467   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17468   int status = $lt_dlunknown;
17469
17470   if (self)
17471     {
17472       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17473       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17474       /* dlclose (self); */
17475     }
17476   else
17477     puts (dlerror ());
17478
17479     exit (status);
17480 }
17481 EOF
17482   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17483   (eval $ac_link) 2>&5
17484   ac_status=$?
17485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17486   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17487     (./conftest; exit; ) >&5 2>/dev/null
17488     lt_status=$?
17489     case x$lt_status in
17490       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17491       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17492       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17493     esac
17494   else :
17495     # compilation failed
17496     lt_cv_dlopen_self_static=no
17497   fi
17498 fi
17499 rm -fr conftest*
17500
17501
17502 fi
17503 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17504 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17505     fi
17506
17507     CPPFLAGS="$save_CPPFLAGS"
17508     LDFLAGS="$save_LDFLAGS"
17509     LIBS="$save_LIBS"
17510     ;;
17511   esac
17512
17513   case $lt_cv_dlopen_self in
17514   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17515   *) enable_dlopen_self=unknown ;;
17516   esac
17517
17518   case $lt_cv_dlopen_self_static in
17519   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17520   *) enable_dlopen_self_static=unknown ;;
17521   esac
17522 fi
17523
17524
17525 # Report which library types will actually be built
17526 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17527 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17528 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17529 echo "${ECHO_T}$can_build_shared" >&6; }
17530
17531 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17532 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17533 test "$can_build_shared" = "no" && enable_shared=no
17534
17535 # On AIX, shared libraries and static libraries use the same namespace, and
17536 # are all built from PIC.
17537 case $host_os in
17538 aix3*)
17539   test "$enable_shared" = yes && enable_static=no
17540   if test -n "$RANLIB"; then
17541     archive_cmds="$archive_cmds~\$RANLIB \$lib"
17542     postinstall_cmds='$RANLIB $lib'
17543   fi
17544   ;;
17545
17546 aix4* | aix5*)
17547   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17548     test "$enable_shared" = yes && enable_static=no
17549   fi
17550     ;;
17551 esac
17552 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17553 echo "${ECHO_T}$enable_shared" >&6; }
17554
17555 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17556 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17557 # Make sure either enable_shared or enable_static is yes.
17558 test "$enable_shared" = yes || enable_static=yes
17559 { echo "$as_me:$LINENO: result: $enable_static" >&5
17560 echo "${ECHO_T}$enable_static" >&6; }
17561
17562 # The else clause should only fire when bootstrapping the
17563 # libtool distribution, otherwise you forgot to ship ltmain.sh
17564 # with your package, and you will get complaints that there are
17565 # no rules to generate ltmain.sh.
17566 if test -f "$ltmain"; then
17567   # See if we are running on zsh, and set the options which allow our commands through
17568   # without removal of \ escapes.
17569   if test -n "${ZSH_VERSION+set}" ; then
17570     setopt NO_GLOB_SUBST
17571   fi
17572   # Now quote all the things that may contain metacharacters while being
17573   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17574   # variables and quote the copies for generation of the libtool script.
17575   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17576     SED SHELL STRIP \
17577     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17578     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17579     deplibs_check_method reload_flag reload_cmds need_locks \
17580     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17581     lt_cv_sys_global_symbol_to_c_name_address \
17582     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17583     old_postinstall_cmds old_postuninstall_cmds \
17584     compiler \
17585     CC \
17586     LD \
17587     lt_prog_compiler_wl \
17588     lt_prog_compiler_pic \
17589     lt_prog_compiler_static \
17590     lt_prog_compiler_no_builtin_flag \
17591     export_dynamic_flag_spec \
17592     thread_safe_flag_spec \
17593     whole_archive_flag_spec \
17594     enable_shared_with_static_runtimes \
17595     old_archive_cmds \
17596     old_archive_from_new_cmds \
17597     predep_objects \
17598     postdep_objects \
17599     predeps \
17600     postdeps \
17601     compiler_lib_search_path \
17602     archive_cmds \
17603     archive_expsym_cmds \
17604     postinstall_cmds \
17605     postuninstall_cmds \
17606     old_archive_from_expsyms_cmds \
17607     allow_undefined_flag \
17608     no_undefined_flag \
17609     export_symbols_cmds \
17610     hardcode_libdir_flag_spec \
17611     hardcode_libdir_flag_spec_ld \
17612     hardcode_libdir_separator \
17613     hardcode_automatic \
17614     module_cmds \
17615     module_expsym_cmds \
17616     lt_cv_prog_compiler_c_o \
17617     exclude_expsyms \
17618     include_expsyms; do
17619
17620     case $var in
17621     old_archive_cmds | \
17622     old_archive_from_new_cmds | \
17623     archive_cmds | \
17624     archive_expsym_cmds | \
17625     module_cmds | \
17626     module_expsym_cmds | \
17627     old_archive_from_expsyms_cmds | \
17628     export_symbols_cmds | \
17629     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17630     postinstall_cmds | postuninstall_cmds | \
17631     old_postinstall_cmds | old_postuninstall_cmds | \
17632     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17633       # Double-quote double-evaled strings.
17634       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17635       ;;
17636     *)
17637       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17638       ;;
17639     esac
17640   done
17641
17642   case $lt_echo in
17643   *'\$0 --fallback-echo"')
17644     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17645     ;;
17646   esac
17647
17648 cfgfile="${ofile}T"
17649   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17650   $rm -f "$cfgfile"
17651   { echo "$as_me:$LINENO: creating $ofile" >&5
17652 echo "$as_me: creating $ofile" >&6;}
17653
17654   cat <<__EOF__ >> "$cfgfile"
17655 #! $SHELL
17656
17657 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17658 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17659 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17660 #
17661 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17662 # Free Software Foundation, Inc.
17663 #
17664 # This file is part of GNU Libtool:
17665 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17666 #
17667 # This program is free software; you can redistribute it and/or modify
17668 # it under the terms of the GNU General Public License as published by
17669 # the Free Software Foundation; either version 2 of the License, or
17670 # (at your option) any later version.
17671 #
17672 # This program is distributed in the hope that it will be useful, but
17673 # WITHOUT ANY WARRANTY; without even the implied warranty of
17674 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17675 # General Public License for more details.
17676 #
17677 # You should have received a copy of the GNU General Public License
17678 # along with this program; if not, write to the Free Software
17679 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17680 #
17681 # As a special exception to the GNU General Public License, if you
17682 # distribute this file as part of a program that contains a
17683 # configuration script generated by Autoconf, you may include it under
17684 # the same distribution terms that you use for the rest of that program.
17685
17686 # A sed program that does not truncate output.
17687 SED=$lt_SED
17688
17689 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17690 Xsed="$SED -e 1s/^X//"
17691
17692 # The HP-UX ksh and POSIX shell print the target directory to stdout
17693 # if CDPATH is set.
17694 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17695
17696 # The names of the tagged configurations supported by this script.
17697 available_tags=
17698
17699 # ### BEGIN LIBTOOL CONFIG
17700
17701 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17702
17703 # Shell to use when invoking shell scripts.
17704 SHELL=$lt_SHELL
17705
17706 # Whether or not to build shared libraries.
17707 build_libtool_libs=$enable_shared
17708
17709 # Whether or not to build static libraries.
17710 build_old_libs=$enable_static
17711
17712 # Whether or not to add -lc for building shared libraries.
17713 build_libtool_need_lc=$archive_cmds_need_lc
17714
17715 # Whether or not to disallow shared libs when runtime libs are static
17716 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17717
17718 # Whether or not to optimize for fast installation.
17719 fast_install=$enable_fast_install
17720
17721 # The host system.
17722 host_alias=$host_alias
17723 host=$host
17724 host_os=$host_os
17725
17726 # The build system.
17727 build_alias=$build_alias
17728 build=$build
17729 build_os=$build_os
17730
17731 # An echo program that does not interpret backslashes.
17732 echo=$lt_echo
17733
17734 # The archiver.
17735 AR=$lt_AR
17736 AR_FLAGS=$lt_AR_FLAGS
17737
17738 # A C compiler.
17739 LTCC=$lt_LTCC
17740
17741 # LTCC compiler flags.
17742 LTCFLAGS=$lt_LTCFLAGS
17743
17744 # A language-specific compiler.
17745 CC=$lt_compiler
17746
17747 # Is the compiler the GNU C compiler?
17748 with_gcc=$GCC
17749
17750 # An ERE matcher.
17751 EGREP=$lt_EGREP
17752
17753 # The linker used to build libraries.
17754 LD=$lt_LD
17755
17756 # Whether we need hard or soft links.
17757 LN_S=$lt_LN_S
17758
17759 # A BSD-compatible nm program.
17760 NM=$lt_NM
17761
17762 # A symbol stripping program
17763 STRIP=$lt_STRIP
17764
17765 # Used to examine libraries when file_magic_cmd begins "file"
17766 MAGIC_CMD=$MAGIC_CMD
17767
17768 # Used on cygwin: DLL creation program.
17769 DLLTOOL="$DLLTOOL"
17770
17771 # Used on cygwin: object dumper.
17772 OBJDUMP="$OBJDUMP"
17773
17774 # Used on cygwin: assembler.
17775 AS="$AS"
17776
17777 # The name of the directory that contains temporary libtool files.
17778 objdir=$objdir
17779
17780 # How to create reloadable object files.
17781 reload_flag=$lt_reload_flag
17782 reload_cmds=$lt_reload_cmds
17783
17784 # How to pass a linker flag through the compiler.
17785 wl=$lt_lt_prog_compiler_wl
17786
17787 # Object file suffix (normally "o").
17788 objext="$ac_objext"
17789
17790 # Old archive suffix (normally "a").
17791 libext="$libext"
17792
17793 # Shared library suffix (normally ".so").
17794 shrext_cmds='$shrext_cmds'
17795
17796 # Executable file suffix (normally "").
17797 exeext="$exeext"
17798
17799 # Additional compiler flags for building library objects.
17800 pic_flag=$lt_lt_prog_compiler_pic
17801 pic_mode=$pic_mode
17802
17803 # What is the maximum length of a command?
17804 max_cmd_len=$lt_cv_sys_max_cmd_len
17805
17806 # Does compiler simultaneously support -c and -o options?
17807 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17808
17809 # Must we lock files when doing compilation?
17810 need_locks=$lt_need_locks
17811
17812 # Do we need the lib prefix for modules?
17813 need_lib_prefix=$need_lib_prefix
17814
17815 # Do we need a version for libraries?
17816 need_version=$need_version
17817
17818 # Whether dlopen is supported.
17819 dlopen_support=$enable_dlopen
17820
17821 # Whether dlopen of programs is supported.
17822 dlopen_self=$enable_dlopen_self
17823
17824 # Whether dlopen of statically linked programs is supported.
17825 dlopen_self_static=$enable_dlopen_self_static
17826
17827 # Compiler flag to prevent dynamic linking.
17828 link_static_flag=$lt_lt_prog_compiler_static
17829
17830 # Compiler flag to turn off builtin functions.
17831 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17832
17833 # Compiler flag to allow reflexive dlopens.
17834 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17835
17836 # Compiler flag to generate shared objects directly from archives.
17837 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17838
17839 # Compiler flag to generate thread-safe objects.
17840 thread_safe_flag_spec=$lt_thread_safe_flag_spec
17841
17842 # Library versioning type.
17843 version_type=$version_type
17844
17845 # Format of library name prefix.
17846 libname_spec=$lt_libname_spec
17847
17848 # List of archive names.  First name is the real one, the rest are links.
17849 # The last name is the one that the linker finds with -lNAME.
17850 library_names_spec=$lt_library_names_spec
17851
17852 # The coded name of the library, if different from the real name.
17853 soname_spec=$lt_soname_spec
17854
17855 # Commands used to build and install an old-style archive.
17856 RANLIB=$lt_RANLIB
17857 old_archive_cmds=$lt_old_archive_cmds
17858 old_postinstall_cmds=$lt_old_postinstall_cmds
17859 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17860
17861 # Create an old-style archive from a shared archive.
17862 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17863
17864 # Create a temporary old-style archive to link instead of a shared archive.
17865 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17866
17867 # Commands used to build and install a shared archive.
17868 archive_cmds=$lt_archive_cmds
17869 archive_expsym_cmds=$lt_archive_expsym_cmds
17870 postinstall_cmds=$lt_postinstall_cmds
17871 postuninstall_cmds=$lt_postuninstall_cmds
17872
17873 # Commands used to build a loadable module (assumed same as above if empty)
17874 module_cmds=$lt_module_cmds
17875 module_expsym_cmds=$lt_module_expsym_cmds
17876
17877 # Commands to strip libraries.
17878 old_striplib=$lt_old_striplib
17879 striplib=$lt_striplib
17880
17881 # Dependencies to place before the objects being linked to create a
17882 # shared library.
17883 predep_objects=$lt_predep_objects
17884
17885 # Dependencies to place after the objects being linked to create a
17886 # shared library.
17887 postdep_objects=$lt_postdep_objects
17888
17889 # Dependencies to place before the objects being linked to create a
17890 # shared library.
17891 predeps=$lt_predeps
17892
17893 # Dependencies to place after the objects being linked to create a
17894 # shared library.
17895 postdeps=$lt_postdeps
17896
17897 # The library search path used internally by the compiler when linking
17898 # a shared library.
17899 compiler_lib_search_path=$lt_compiler_lib_search_path
17900
17901 # Method to check whether dependent libraries are shared objects.
17902 deplibs_check_method=$lt_deplibs_check_method
17903
17904 # Command to use when deplibs_check_method == file_magic.
17905 file_magic_cmd=$lt_file_magic_cmd
17906
17907 # Flag that allows shared libraries with undefined symbols to be built.
17908 allow_undefined_flag=$lt_allow_undefined_flag
17909
17910 # Flag that forces no undefined symbols.
17911 no_undefined_flag=$lt_no_undefined_flag
17912
17913 # Commands used to finish a libtool library installation in a directory.
17914 finish_cmds=$lt_finish_cmds
17915
17916 # Same as above, but a single script fragment to be evaled but not shown.
17917 finish_eval=$lt_finish_eval
17918
17919 # Take the output of nm and produce a listing of raw symbols and C names.
17920 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17921
17922 # Transform the output of nm in a proper C declaration
17923 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17924
17925 # Transform the output of nm in a C name address pair
17926 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17927
17928 # This is the shared library runtime path variable.
17929 runpath_var=$runpath_var
17930
17931 # This is the shared library path variable.
17932 shlibpath_var=$shlibpath_var
17933
17934 # Is shlibpath searched before the hard-coded library search path?
17935 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17936
17937 # How to hardcode a shared library path into an executable.
17938 hardcode_action=$hardcode_action
17939
17940 # Whether we should hardcode library paths into libraries.
17941 hardcode_into_libs=$hardcode_into_libs
17942
17943 # Flag to hardcode \$libdir into a binary during linking.
17944 # This must work even if \$libdir does not exist.
17945 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17946
17947 # If ld is used when linking, flag to hardcode \$libdir into
17948 # a binary during linking. This must work even if \$libdir does
17949 # not exist.
17950 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17951
17952 # Whether we need a single -rpath flag with a separated argument.
17953 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17954
17955 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17956 # resulting binary.
17957 hardcode_direct=$hardcode_direct
17958
17959 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17960 # resulting binary.
17961 hardcode_minus_L=$hardcode_minus_L
17962
17963 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17964 # the resulting binary.
17965 hardcode_shlibpath_var=$hardcode_shlibpath_var
17966
17967 # Set to yes if building a shared library automatically hardcodes DIR into the library
17968 # and all subsequent libraries and executables linked against it.
17969 hardcode_automatic=$hardcode_automatic
17970
17971 # Variables whose values should be saved in libtool wrapper scripts and
17972 # restored at relink time.
17973 variables_saved_for_relink="$variables_saved_for_relink"
17974
17975 # Whether libtool must link a program against all its dependency libraries.
17976 link_all_deplibs=$link_all_deplibs
17977
17978 # Compile-time system search path for libraries
17979 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17980
17981 # Run-time system search path for libraries
17982 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17983
17984 # Fix the shell variable \$srcfile for the compiler.
17985 fix_srcfile_path="$fix_srcfile_path"
17986
17987 # Set to yes if exported symbols are required.
17988 always_export_symbols=$always_export_symbols
17989
17990 # The commands to list exported symbols.
17991 export_symbols_cmds=$lt_export_symbols_cmds
17992
17993 # The commands to extract the exported symbol list from a shared archive.
17994 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17995
17996 # Symbols that should not be listed in the preloaded symbols.
17997 exclude_expsyms=$lt_exclude_expsyms
17998
17999 # Symbols that must always be exported.
18000 include_expsyms=$lt_include_expsyms
18001
18002 # ### END LIBTOOL CONFIG
18003
18004 __EOF__
18005
18006
18007   case $host_os in
18008   aix3*)
18009     cat <<\EOF >> "$cfgfile"
18010
18011 # AIX sometimes has problems with the GCC collect2 program.  For some
18012 # reason, if we set the COLLECT_NAMES environment variable, the problems
18013 # vanish in a puff of smoke.
18014 if test "X${COLLECT_NAMES+set}" != Xset; then
18015   COLLECT_NAMES=
18016   export COLLECT_NAMES
18017 fi
18018 EOF
18019     ;;
18020   esac
18021
18022   # We use sed instead of cat because bash on DJGPP gets confused if
18023   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18024   # text mode, it properly converts lines to CR/LF.  This bash problem
18025   # is reportedly fixed, but why not run on old versions too?
18026   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
18027
18028   mv -f "$cfgfile" "$ofile" || \
18029     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18030   chmod +x "$ofile"
18031
18032 else
18033   # If there is no Makefile yet, we rely on a make rule to execute
18034   # `config.status --recheck' to rerun these tests and create the
18035   # libtool script then.
18036   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18037   if test -f "$ltmain_in"; then
18038     test -f Makefile && make "$ltmain"
18039   fi
18040 fi
18041
18042
18043 ac_ext=c
18044 ac_cpp='$CPP $CPPFLAGS'
18045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18048
18049 CC="$lt_save_CC"
18050
18051
18052 # Check whether --with-tags was given.
18053 if test "${with_tags+set}" = set; then
18054   withval=$with_tags; tagnames="$withval"
18055 fi
18056
18057
18058 if test -f "$ltmain" && test -n "$tagnames"; then
18059   if test ! -f "${ofile}"; then
18060     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18061 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18062   fi
18063
18064   if test -z "$LTCC"; then
18065     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18066     if test -z "$LTCC"; then
18067       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18068 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18069     else
18070       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18071 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18072     fi
18073   fi
18074   if test -z "$LTCFLAGS"; then
18075     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18076   fi
18077
18078   # Extract list of available tagged configurations in $ofile.
18079   # Note that this assumes the entire list is on one line.
18080   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18081
18082   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18083   for tagname in $tagnames; do
18084     IFS="$lt_save_ifs"
18085     # Check whether tagname contains only valid characters
18086     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18087     "") ;;
18088     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18089 echo "$as_me: error: invalid tag name: $tagname" >&2;}
18090    { (exit 1); exit 1; }; }
18091         ;;
18092     esac
18093
18094     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18095     then
18096       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18097 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18098    { (exit 1); exit 1; }; }
18099     fi
18100
18101     # Update the list of available tags.
18102     if test -n "$tagname"; then
18103       echo appending configuration tag \"$tagname\" to $ofile
18104
18105       case $tagname in
18106       CXX)
18107         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18108             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18109             (test "X$CXX" != "Xg++"))) ; then
18110           ac_ext=cpp
18111 ac_cpp='$CXXCPP $CPPFLAGS'
18112 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18113 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18114 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18115
18116
18117
18118
18119 archive_cmds_need_lc_CXX=no
18120 allow_undefined_flag_CXX=
18121 always_export_symbols_CXX=no
18122 archive_expsym_cmds_CXX=
18123 export_dynamic_flag_spec_CXX=
18124 hardcode_direct_CXX=no
18125 hardcode_libdir_flag_spec_CXX=
18126 hardcode_libdir_flag_spec_ld_CXX=
18127 hardcode_libdir_separator_CXX=
18128 hardcode_minus_L_CXX=no
18129 hardcode_shlibpath_var_CXX=unsupported
18130 hardcode_automatic_CXX=no
18131 module_cmds_CXX=
18132 module_expsym_cmds_CXX=
18133 link_all_deplibs_CXX=unknown
18134 old_archive_cmds_CXX=$old_archive_cmds
18135 no_undefined_flag_CXX=
18136 whole_archive_flag_spec_CXX=
18137 enable_shared_with_static_runtimes_CXX=no
18138
18139 # Dependencies to place before and after the object being linked:
18140 predep_objects_CXX=
18141 postdep_objects_CXX=
18142 predeps_CXX=
18143 postdeps_CXX=
18144 compiler_lib_search_path_CXX=
18145
18146 # Source file extension for C++ test sources.
18147 ac_ext=cpp
18148
18149 # Object file extension for compiled C++ test sources.
18150 objext=o
18151 objext_CXX=$objext
18152
18153 # Code to be used in simple compile tests
18154 lt_simple_compile_test_code="int some_variable = 0;\n"
18155
18156 # Code to be used in simple link tests
18157 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18158
18159 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18160
18161 # If no C compiler was specified, use CC.
18162 LTCC=${LTCC-"$CC"}
18163
18164 # If no C compiler flags were specified, use CFLAGS.
18165 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18166
18167 # Allow CC to be a program name with arguments.
18168 compiler=$CC
18169
18170
18171 # save warnings/boilerplate of simple test code
18172 ac_outfile=conftest.$ac_objext
18173 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18174 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18175 _lt_compiler_boilerplate=`cat conftest.err`
18176 $rm conftest*
18177
18178 ac_outfile=conftest.$ac_objext
18179 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18180 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18181 _lt_linker_boilerplate=`cat conftest.err`
18182 $rm conftest*
18183
18184
18185 # Allow CC to be a program name with arguments.
18186 lt_save_CC=$CC
18187 lt_save_LD=$LD
18188 lt_save_GCC=$GCC
18189 GCC=$GXX
18190 lt_save_with_gnu_ld=$with_gnu_ld
18191 lt_save_path_LD=$lt_cv_path_LD
18192 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18193   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18194 else
18195   $as_unset lt_cv_prog_gnu_ld
18196 fi
18197 if test -n "${lt_cv_path_LDCXX+set}"; then
18198   lt_cv_path_LD=$lt_cv_path_LDCXX
18199 else
18200   $as_unset lt_cv_path_LD
18201 fi
18202 test -z "${LDCXX+set}" || LD=$LDCXX
18203 CC=${CXX-"c++"}
18204 compiler=$CC
18205 compiler_CXX=$CC
18206 for cc_temp in $compiler""; do
18207   case $cc_temp in
18208     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18209     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18210     \-*) ;;
18211     *) break;;
18212   esac
18213 done
18214 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18215
18216
18217 # We don't want -fno-exception wen compiling C++ code, so set the
18218 # no_builtin_flag separately
18219 if test "$GXX" = yes; then
18220   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18221 else
18222   lt_prog_compiler_no_builtin_flag_CXX=
18223 fi
18224
18225 if test "$GXX" = yes; then
18226   # Set up default GNU C++ configuration
18227
18228
18229 # Check whether --with-gnu-ld was given.
18230 if test "${with_gnu_ld+set}" = set; then
18231   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18232 else
18233   with_gnu_ld=no
18234 fi
18235
18236 ac_prog=ld
18237 if test "$GCC" = yes; then
18238   # Check if gcc -print-prog-name=ld gives a path.
18239   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18240 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18241   case $host in
18242   *-*-mingw*)
18243     # gcc leaves a trailing carriage return which upsets mingw
18244     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18245   *)
18246     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18247   esac
18248   case $ac_prog in
18249     # Accept absolute paths.
18250     [\\/]* | ?:[\\/]*)
18251       re_direlt='/[^/][^/]*/\.\./'
18252       # Canonicalize the pathname of ld
18253       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18254       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18255         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18256       done
18257       test -z "$LD" && LD="$ac_prog"
18258       ;;
18259   "")
18260     # If it fails, then pretend we aren't using GCC.
18261     ac_prog=ld
18262     ;;
18263   *)
18264     # If it is relative, then search for the first ld in PATH.
18265     with_gnu_ld=unknown
18266     ;;
18267   esac
18268 elif test "$with_gnu_ld" = yes; then
18269   { echo "$as_me:$LINENO: checking for GNU ld" >&5
18270 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18271 else
18272   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18273 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18274 fi
18275 if test "${lt_cv_path_LD+set}" = set; then
18276   echo $ECHO_N "(cached) $ECHO_C" >&6
18277 else
18278   if test -z "$LD"; then
18279   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18280   for ac_dir in $PATH; do
18281     IFS="$lt_save_ifs"
18282     test -z "$ac_dir" && ac_dir=.
18283     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18284       lt_cv_path_LD="$ac_dir/$ac_prog"
18285       # Check to see if the program is GNU ld.  I'd rather use --version,
18286       # but apparently some variants of GNU ld only accept -v.
18287       # Break only if it was the GNU/non-GNU ld that we prefer.
18288       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18289       *GNU* | *'with BFD'*)
18290         test "$with_gnu_ld" != no && break
18291         ;;
18292       *)
18293         test "$with_gnu_ld" != yes && break
18294         ;;
18295       esac
18296     fi
18297   done
18298   IFS="$lt_save_ifs"
18299 else
18300   lt_cv_path_LD="$LD" # Let the user override the test with a path.
18301 fi
18302 fi
18303
18304 LD="$lt_cv_path_LD"
18305 if test -n "$LD"; then
18306   { echo "$as_me:$LINENO: result: $LD" >&5
18307 echo "${ECHO_T}$LD" >&6; }
18308 else
18309   { echo "$as_me:$LINENO: result: no" >&5
18310 echo "${ECHO_T}no" >&6; }
18311 fi
18312 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18313 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18314    { (exit 1); exit 1; }; }
18315 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18316 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18317 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18318   echo $ECHO_N "(cached) $ECHO_C" >&6
18319 else
18320   # I'd rather use --version here, but apparently some GNU lds only accept -v.
18321 case `$LD -v 2>&1 </dev/null` in
18322 *GNU* | *'with BFD'*)
18323   lt_cv_prog_gnu_ld=yes
18324   ;;
18325 *)
18326   lt_cv_prog_gnu_ld=no
18327   ;;
18328 esac
18329 fi
18330 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18331 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18332 with_gnu_ld=$lt_cv_prog_gnu_ld
18333
18334
18335
18336   # Check if GNU C++ uses GNU ld as the underlying linker, since the
18337   # archiving commands below assume that GNU ld is being used.
18338   if test "$with_gnu_ld" = yes; then
18339     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18340     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'
18341
18342     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18343     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18344
18345     # If archive_cmds runs LD, not CC, wlarc should be empty
18346     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18347     #     investigate it a little bit more. (MM)
18348     wlarc='${wl}'
18349
18350     # ancient GNU ld didn't support --whole-archive et. al.
18351     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18352         grep 'no-whole-archive' > /dev/null; then
18353       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18354     else
18355       whole_archive_flag_spec_CXX=
18356     fi
18357   else
18358     with_gnu_ld=no
18359     wlarc=
18360
18361     # A generic and very simple default shared library creation
18362     # command for GNU C++ for the case where it uses the native
18363     # linker, instead of GNU ld.  If possible, this setting should
18364     # overridden to take advantage of the native linker features on
18365     # the platform it is being used on.
18366     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18367   fi
18368
18369   # Commands to make compiler produce verbose output that lists
18370   # what "hidden" libraries, object files and flags are used when
18371   # linking a shared library.
18372   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18373
18374 else
18375   GXX=no
18376   with_gnu_ld=no
18377   wlarc=
18378 fi
18379
18380 # PORTME: fill in a description of your system's C++ link characteristics
18381 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18382 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18383 ld_shlibs_CXX=yes
18384 case $host_os in
18385   aix3*)
18386     # FIXME: insert proper C++ library support
18387     ld_shlibs_CXX=no
18388     ;;
18389   aix4* | aix5*)
18390     if test "$host_cpu" = ia64; then
18391       # On IA64, the linker does run time linking by default, so we don't
18392       # have to do anything special.
18393       aix_use_runtimelinking=no
18394       exp_sym_flag='-Bexport'
18395       no_entry_flag=""
18396     else
18397       aix_use_runtimelinking=no
18398
18399       # Test if we are trying to use run time linking or normal
18400       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18401       # need to do runtime linking.
18402       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18403         for ld_flag in $LDFLAGS; do
18404           case $ld_flag in
18405           *-brtl*)
18406             aix_use_runtimelinking=yes
18407             break
18408             ;;
18409           esac
18410         done
18411         ;;
18412       esac
18413
18414       exp_sym_flag='-bexport'
18415       no_entry_flag='-bnoentry'
18416     fi
18417
18418     # When large executables or shared objects are built, AIX ld can
18419     # have problems creating the table of contents.  If linking a library
18420     # or program results in "error TOC overflow" add -mminimal-toc to
18421     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18422     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18423
18424     archive_cmds_CXX=''
18425     hardcode_direct_CXX=yes
18426     hardcode_libdir_separator_CXX=':'
18427     link_all_deplibs_CXX=yes
18428
18429     if test "$GXX" = yes; then
18430       case $host_os in aix4.[012]|aix4.[012].*)
18431       # We only want to do this on AIX 4.2 and lower, the check
18432       # below for broken collect2 doesn't work under 4.3+
18433         collect2name=`${CC} -print-prog-name=collect2`
18434         if test -f "$collect2name" && \
18435            strings "$collect2name" | grep resolve_lib_name >/dev/null
18436         then
18437           # We have reworked collect2
18438           hardcode_direct_CXX=yes
18439         else
18440           # We have old collect2
18441           hardcode_direct_CXX=unsupported
18442           # It fails to find uninstalled libraries when the uninstalled
18443           # path is not listed in the libpath.  Setting hardcode_minus_L
18444           # to unsupported forces relinking
18445           hardcode_minus_L_CXX=yes
18446           hardcode_libdir_flag_spec_CXX='-L$libdir'
18447           hardcode_libdir_separator_CXX=
18448         fi
18449         ;;
18450       esac
18451       shared_flag='-shared'
18452       if test "$aix_use_runtimelinking" = yes; then
18453         shared_flag="$shared_flag "'${wl}-G'
18454       fi
18455     else
18456       # not using gcc
18457       if test "$host_cpu" = ia64; then
18458         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18459         # chokes on -Wl,-G. The following line is correct:
18460         shared_flag='-G'
18461       else
18462         if test "$aix_use_runtimelinking" = yes; then
18463           shared_flag='${wl}-G'
18464         else
18465           shared_flag='${wl}-bM:SRE'
18466         fi
18467       fi
18468     fi
18469
18470     # It seems that -bexpall does not export symbols beginning with
18471     # underscore (_), so it is better to generate a list of symbols to export.
18472     always_export_symbols_CXX=yes
18473     if test "$aix_use_runtimelinking" = yes; then
18474       # Warning - without using the other runtime loading flags (-brtl),
18475       # -berok will link without error, but may produce a broken library.
18476       allow_undefined_flag_CXX='-berok'
18477       # Determine the default libpath from the value encoded in an empty executable.
18478       cat >conftest.$ac_ext <<_ACEOF
18479 /* confdefs.h.  */
18480 _ACEOF
18481 cat confdefs.h >>conftest.$ac_ext
18482 cat >>conftest.$ac_ext <<_ACEOF
18483 /* end confdefs.h.  */
18484
18485 int
18486 main ()
18487 {
18488
18489   ;
18490   return 0;
18491 }
18492 _ACEOF
18493 rm -f conftest.$ac_objext conftest$ac_exeext
18494 if { (ac_try="$ac_link"
18495 case "(($ac_try" in
18496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18497   *) ac_try_echo=$ac_try;;
18498 esac
18499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18500   (eval "$ac_link") 2>conftest.er1
18501   ac_status=$?
18502   grep -v '^ *+' conftest.er1 >conftest.err
18503   rm -f conftest.er1
18504   cat conftest.err >&5
18505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18506   (exit $ac_status); } &&
18507          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18508   { (case "(($ac_try" in
18509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18510   *) ac_try_echo=$ac_try;;
18511 esac
18512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18513   (eval "$ac_try") 2>&5
18514   ac_status=$?
18515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18516   (exit $ac_status); }; } &&
18517          { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
18524   ac_status=$?
18525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18526   (exit $ac_status); }; }; then
18527
18528 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18529 }'`
18530 # Check for a 64-bit object if we didn't find anything.
18531 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; }
18532 }'`; fi
18533 else
18534   echo "$as_me: failed program was:" >&5
18535 sed 's/^/| /' conftest.$ac_ext >&5
18536
18537
18538 fi
18539
18540 rm -f core conftest.err conftest.$ac_objext \
18541       conftest$ac_exeext conftest.$ac_ext
18542 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18543
18544       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18545
18546       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"
18547      else
18548       if test "$host_cpu" = ia64; then
18549         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18550         allow_undefined_flag_CXX="-z nodefs"
18551         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"
18552       else
18553         # Determine the default libpath from the value encoded in an empty executable.
18554         cat >conftest.$ac_ext <<_ACEOF
18555 /* confdefs.h.  */
18556 _ACEOF
18557 cat confdefs.h >>conftest.$ac_ext
18558 cat >>conftest.$ac_ext <<_ACEOF
18559 /* end confdefs.h.  */
18560
18561 int
18562 main ()
18563 {
18564
18565   ;
18566   return 0;
18567 }
18568 _ACEOF
18569 rm -f conftest.$ac_objext conftest$ac_exeext
18570 if { (ac_try="$ac_link"
18571 case "(($ac_try" in
18572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18573   *) ac_try_echo=$ac_try;;
18574 esac
18575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18576   (eval "$ac_link") 2>conftest.er1
18577   ac_status=$?
18578   grep -v '^ *+' conftest.er1 >conftest.err
18579   rm -f conftest.er1
18580   cat conftest.err >&5
18581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18582   (exit $ac_status); } &&
18583          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18584   { (case "(($ac_try" in
18585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18586   *) ac_try_echo=$ac_try;;
18587 esac
18588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18589   (eval "$ac_try") 2>&5
18590   ac_status=$?
18591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18592   (exit $ac_status); }; } &&
18593          { ac_try='test -s conftest$ac_exeext'
18594   { (case "(($ac_try" in
18595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18596   *) ac_try_echo=$ac_try;;
18597 esac
18598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18599   (eval "$ac_try") 2>&5
18600   ac_status=$?
18601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18602   (exit $ac_status); }; }; then
18603
18604 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18605 }'`
18606 # Check for a 64-bit object if we didn't find anything.
18607 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; }
18608 }'`; fi
18609 else
18610   echo "$as_me: failed program was:" >&5
18611 sed 's/^/| /' conftest.$ac_ext >&5
18612
18613
18614 fi
18615
18616 rm -f core conftest.err conftest.$ac_objext \
18617       conftest$ac_exeext conftest.$ac_ext
18618 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18619
18620         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18621         # Warning - without using the other run time loading flags,
18622         # -berok will link without error, but may produce a broken library.
18623         no_undefined_flag_CXX=' ${wl}-bernotok'
18624         allow_undefined_flag_CXX=' ${wl}-berok'
18625         # Exported symbols can be pulled into shared objects from archives
18626         whole_archive_flag_spec_CXX='$convenience'
18627         archive_cmds_need_lc_CXX=yes
18628         # This is similar to how AIX traditionally builds its shared libraries.
18629         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'
18630       fi
18631     fi
18632     ;;
18633
18634   beos*)
18635     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18636       allow_undefined_flag_CXX=unsupported
18637       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18638       # support --undefined.  This deserves some investigation.  FIXME
18639       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18640     else
18641       ld_shlibs_CXX=no
18642     fi
18643     ;;
18644
18645   chorus*)
18646     case $cc_basename in
18647       *)
18648         # FIXME: insert proper C++ library support
18649         ld_shlibs_CXX=no
18650         ;;
18651     esac
18652     ;;
18653
18654   cygwin* | mingw* | pw32*)
18655     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18656     # as there is no search path for DLLs.
18657     hardcode_libdir_flag_spec_CXX='-L$libdir'
18658     allow_undefined_flag_CXX=unsupported
18659     always_export_symbols_CXX=no
18660     enable_shared_with_static_runtimes_CXX=yes
18661
18662     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18663       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'
18664       # If the export-symbols file already is a .def file (1st line
18665       # is EXPORTS), use it as is; otherwise, prepend...
18666       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18667         cp $export_symbols $output_objdir/$soname.def;
18668       else
18669         echo EXPORTS > $output_objdir/$soname.def;
18670         cat $export_symbols >> $output_objdir/$soname.def;
18671       fi~
18672       $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'
18673     else
18674       ld_shlibs_CXX=no
18675     fi
18676   ;;
18677       darwin* | rhapsody*)
18678         case $host_os in
18679         rhapsody* | darwin1.[012])
18680          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18681          ;;
18682        *) # Darwin 1.3 on
18683          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18684            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18685          else
18686            case ${MACOSX_DEPLOYMENT_TARGET} in
18687              10.[012])
18688                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18689                ;;
18690              10.*)
18691                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18692                ;;
18693            esac
18694          fi
18695          ;;
18696         esac
18697       archive_cmds_need_lc_CXX=no
18698       hardcode_direct_CXX=no
18699       hardcode_automatic_CXX=yes
18700       hardcode_shlibpath_var_CXX=unsupported
18701       whole_archive_flag_spec_CXX=''
18702       link_all_deplibs_CXX=yes
18703
18704     if test "$GXX" = yes ; then
18705       lt_int_apple_cc_single_mod=no
18706       output_verbose_link_cmd='echo'
18707       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18708        lt_int_apple_cc_single_mod=yes
18709       fi
18710       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18711        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18712       else
18713           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'
18714         fi
18715         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18716         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18717           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18718             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}'
18719           else
18720             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}'
18721           fi
18722             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}'
18723       else
18724       case $cc_basename in
18725         xlc*)
18726          output_verbose_link_cmd='echo'
18727           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'
18728           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18729           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18730           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}'
18731           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}'
18732           ;;
18733        *)
18734          ld_shlibs_CXX=no
18735           ;;
18736       esac
18737       fi
18738         ;;
18739
18740   dgux*)
18741     case $cc_basename in
18742       ec++*)
18743         # FIXME: insert proper C++ library support
18744         ld_shlibs_CXX=no
18745         ;;
18746       ghcx*)
18747         # Green Hills C++ Compiler
18748         # FIXME: insert proper C++ library support
18749         ld_shlibs_CXX=no
18750         ;;
18751       *)
18752         # FIXME: insert proper C++ library support
18753         ld_shlibs_CXX=no
18754         ;;
18755     esac
18756     ;;
18757   freebsd[12]*)
18758     # C++ shared libraries reported to be fairly broken before switch to ELF
18759     ld_shlibs_CXX=no
18760     ;;
18761   freebsd-elf*)
18762     archive_cmds_need_lc_CXX=no
18763     ;;
18764   freebsd* | kfreebsd*-gnu | dragonfly*)
18765     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18766     # conventions
18767     ld_shlibs_CXX=yes
18768     ;;
18769   gnu*)
18770     ;;
18771   hpux9*)
18772     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18773     hardcode_libdir_separator_CXX=:
18774     export_dynamic_flag_spec_CXX='${wl}-E'
18775     hardcode_direct_CXX=yes
18776     hardcode_minus_L_CXX=yes # Not in the search PATH,
18777                                 # but as the default
18778                                 # location of the library.
18779
18780     case $cc_basename in
18781     CC*)
18782       # FIXME: insert proper C++ library support
18783       ld_shlibs_CXX=no
18784       ;;
18785     aCC*)
18786       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'
18787       # Commands to make compiler produce verbose output that lists
18788       # what "hidden" libraries, object files and flags are used when
18789       # linking a shared library.
18790       #
18791       # There doesn't appear to be a way to prevent this compiler from
18792       # explicitly linking system object files so we need to strip them
18793       # from the output so that they don't get included in the library
18794       # dependencies.
18795       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'
18796       ;;
18797     *)
18798       if test "$GXX" = yes; then
18799         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'
18800       else
18801         # FIXME: insert proper C++ library support
18802         ld_shlibs_CXX=no
18803       fi
18804       ;;
18805     esac
18806     ;;
18807   hpux10*|hpux11*)
18808     if test $with_gnu_ld = no; then
18809       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18810       hardcode_libdir_separator_CXX=:
18811
18812       case $host_cpu in
18813       hppa*64*|ia64*)
18814         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
18815         ;;
18816       *)
18817         export_dynamic_flag_spec_CXX='${wl}-E'
18818         ;;
18819       esac
18820     fi
18821     case $host_cpu in
18822     hppa*64*|ia64*)
18823       hardcode_direct_CXX=no
18824       hardcode_shlibpath_var_CXX=no
18825       ;;
18826     *)
18827       hardcode_direct_CXX=yes
18828       hardcode_minus_L_CXX=yes # Not in the search PATH,
18829                                               # but as the default
18830                                               # location of the library.
18831       ;;
18832     esac
18833
18834     case $cc_basename in
18835       CC*)
18836         # FIXME: insert proper C++ library support
18837         ld_shlibs_CXX=no
18838         ;;
18839       aCC*)
18840         case $host_cpu in
18841         hppa*64*)
18842           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18843           ;;
18844         ia64*)
18845           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18846           ;;
18847         *)
18848           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18849           ;;
18850         esac
18851         # Commands to make compiler produce verbose output that lists
18852         # what "hidden" libraries, object files and flags are used when
18853         # linking a shared library.
18854         #
18855         # There doesn't appear to be a way to prevent this compiler from
18856         # explicitly linking system object files so we need to strip them
18857         # from the output so that they don't get included in the library
18858         # dependencies.
18859         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'
18860         ;;
18861       *)
18862         if test "$GXX" = yes; then
18863           if test $with_gnu_ld = no; then
18864             case $host_cpu in
18865             hppa*64*)
18866               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18867               ;;
18868             ia64*)
18869               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18870               ;;
18871             *)
18872               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'
18873               ;;
18874             esac
18875           fi
18876         else
18877           # FIXME: insert proper C++ library support
18878           ld_shlibs_CXX=no
18879         fi
18880         ;;
18881     esac
18882     ;;
18883   interix3*)
18884     hardcode_direct_CXX=no
18885     hardcode_shlibpath_var_CXX=no
18886     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18887     export_dynamic_flag_spec_CXX='${wl}-E'
18888     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18889     # Instead, shared libraries are loaded at an image base (0x10000000 by
18890     # default) and relocated if they conflict, which is a slow very memory
18891     # consuming and fragmenting process.  To avoid this, we pick a random,
18892     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18893     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18894     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'
18895     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'
18896     ;;
18897   irix5* | irix6*)
18898     case $cc_basename in
18899       CC*)
18900         # SGI C++
18901         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'
18902
18903         # Archives containing C++ object files must be created using
18904         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
18905         # necessary to make sure instantiated templates are included
18906         # in the archive.
18907         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18908         ;;
18909       *)
18910         if test "$GXX" = yes; then
18911           if test "$with_gnu_ld" = no; then
18912             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'
18913           else
18914             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'
18915           fi
18916         fi
18917         link_all_deplibs_CXX=yes
18918         ;;
18919     esac
18920     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18921     hardcode_libdir_separator_CXX=:
18922     ;;
18923   linux*)
18924     case $cc_basename in
18925       KCC*)
18926         # Kuck and Associates, Inc. (KAI) C++ Compiler
18927
18928         # KCC will only create a shared library if the output file
18929         # ends with ".so" (or ".sl" for HP-UX), so rename the library
18930         # to its proper name (with version) after linking.
18931         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'
18932         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'
18933         # Commands to make compiler produce verbose output that lists
18934         # what "hidden" libraries, object files and flags are used when
18935         # linking a shared library.
18936         #
18937         # There doesn't appear to be a way to prevent this compiler from
18938         # explicitly linking system object files so we need to strip them
18939         # from the output so that they don't get included in the library
18940         # dependencies.
18941         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'
18942
18943         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18944         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18945
18946         # Archives containing C++ object files must be created using
18947         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18948         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18949         ;;
18950       icpc*)
18951         # Intel C++
18952         with_gnu_ld=yes
18953         # version 8.0 and above of icpc choke on multiply defined symbols
18954         # if we add $predep_objects and $postdep_objects, however 7.1 and
18955         # earlier do not add the objects themselves.
18956         case `$CC -V 2>&1` in
18957         *"Version 7."*)
18958           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18959           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'
18960           ;;
18961         *)  # Version 8.0 or newer
18962           tmp_idyn=
18963           case $host_cpu in
18964             ia64*) tmp_idyn=' -i_dynamic';;
18965           esac
18966           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18967           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'
18968           ;;
18969         esac
18970         archive_cmds_need_lc_CXX=no
18971         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18972         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18973         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18974         ;;
18975       pgCC*)
18976         # Portland Group C++ compiler
18977         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18978         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'
18979
18980         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18981         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18982         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'
18983         ;;
18984       cxx*)
18985         # Compaq C++
18986         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18987         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'
18988
18989         runpath_var=LD_RUN_PATH
18990         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18991         hardcode_libdir_separator_CXX=:
18992
18993         # Commands to make compiler produce verbose output that lists
18994         # what "hidden" libraries, object files and flags are used when
18995         # linking a shared library.
18996         #
18997         # There doesn't appear to be a way to prevent this compiler from
18998         # explicitly linking system object files so we need to strip them
18999         # from the output so that they don't get included in the library
19000         # dependencies.
19001         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'
19002         ;;
19003     esac
19004     ;;
19005   lynxos*)
19006     # FIXME: insert proper C++ library support
19007     ld_shlibs_CXX=no
19008     ;;
19009   m88k*)
19010     # FIXME: insert proper C++ library support
19011     ld_shlibs_CXX=no
19012     ;;
19013   mvs*)
19014     case $cc_basename in
19015       cxx*)
19016         # FIXME: insert proper C++ library support
19017         ld_shlibs_CXX=no
19018         ;;
19019       *)
19020         # FIXME: insert proper C++ library support
19021         ld_shlibs_CXX=no
19022         ;;
19023     esac
19024     ;;
19025   netbsd*)
19026     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19027       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19028       wlarc=
19029       hardcode_libdir_flag_spec_CXX='-R$libdir'
19030       hardcode_direct_CXX=yes
19031       hardcode_shlibpath_var_CXX=no
19032     fi
19033     # Workaround some broken pre-1.5 toolchains
19034     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19035     ;;
19036   openbsd2*)
19037     # C++ shared libraries are fairly broken
19038     ld_shlibs_CXX=no
19039     ;;
19040   openbsd*)
19041     hardcode_direct_CXX=yes
19042     hardcode_shlibpath_var_CXX=no
19043     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19044     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19045     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19046       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19047       export_dynamic_flag_spec_CXX='${wl}-E'
19048       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19049     fi
19050     output_verbose_link_cmd='echo'
19051     ;;
19052   osf3*)
19053     case $cc_basename in
19054       KCC*)
19055         # Kuck and Associates, Inc. (KAI) C++ Compiler
19056
19057         # KCC will only create a shared library if the output file
19058         # ends with ".so" (or ".sl" for HP-UX), so rename the library
19059         # to its proper name (with version) after linking.
19060         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'
19061
19062         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19063         hardcode_libdir_separator_CXX=:
19064
19065         # Archives containing C++ object files must be created using
19066         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19067         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19068
19069         ;;
19070       RCC*)
19071         # Rational C++ 2.4.1
19072         # FIXME: insert proper C++ library support
19073         ld_shlibs_CXX=no
19074         ;;
19075       cxx*)
19076         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19077         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'
19078
19079         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19080         hardcode_libdir_separator_CXX=:
19081
19082         # Commands to make compiler produce verbose output that lists
19083         # what "hidden" libraries, object files and flags are used when
19084         # linking a shared library.
19085         #
19086         # There doesn't appear to be a way to prevent this compiler from
19087         # explicitly linking system object files so we need to strip them
19088         # from the output so that they don't get included in the library
19089         # dependencies.
19090         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'
19091         ;;
19092       *)
19093         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19094           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19095           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'
19096
19097           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19098           hardcode_libdir_separator_CXX=:
19099
19100           # Commands to make compiler produce verbose output that lists
19101           # what "hidden" libraries, object files and flags are used when
19102           # linking a shared library.
19103           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19104
19105         else
19106           # FIXME: insert proper C++ library support
19107           ld_shlibs_CXX=no
19108         fi
19109         ;;
19110     esac
19111     ;;
19112   osf4* | osf5*)
19113     case $cc_basename in
19114       KCC*)
19115         # Kuck and Associates, Inc. (KAI) C++ Compiler
19116
19117         # KCC will only create a shared library if the output file
19118         # ends with ".so" (or ".sl" for HP-UX), so rename the library
19119         # to its proper name (with version) after linking.
19120         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'
19121
19122         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19123         hardcode_libdir_separator_CXX=:
19124
19125         # Archives containing C++ object files must be created using
19126         # the KAI C++ compiler.
19127         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19128         ;;
19129       RCC*)
19130         # Rational C++ 2.4.1
19131         # FIXME: insert proper C++ library support
19132         ld_shlibs_CXX=no
19133         ;;
19134       cxx*)
19135         allow_undefined_flag_CXX=' -expect_unresolved \*'
19136         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'
19137         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19138           echo "-hidden">> $lib.exp~
19139           $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~
19140           $rm $lib.exp'
19141
19142         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19143         hardcode_libdir_separator_CXX=:
19144
19145         # Commands to make compiler produce verbose output that lists
19146         # what "hidden" libraries, object files and flags are used when
19147         # linking a shared library.
19148         #
19149         # There doesn't appear to be a way to prevent this compiler from
19150         # explicitly linking system object files so we need to strip them
19151         # from the output so that they don't get included in the library
19152         # dependencies.
19153         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'
19154         ;;
19155       *)
19156         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19157           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19158          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'
19159
19160           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19161           hardcode_libdir_separator_CXX=:
19162
19163           # Commands to make compiler produce verbose output that lists
19164           # what "hidden" libraries, object files and flags are used when
19165           # linking a shared library.
19166           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19167
19168         else
19169           # FIXME: insert proper C++ library support
19170           ld_shlibs_CXX=no
19171         fi
19172         ;;
19173     esac
19174     ;;
19175   psos*)
19176     # FIXME: insert proper C++ library support
19177     ld_shlibs_CXX=no
19178     ;;
19179   sunos4*)
19180     case $cc_basename in
19181       CC*)
19182         # Sun C++ 4.x
19183         # FIXME: insert proper C++ library support
19184         ld_shlibs_CXX=no
19185         ;;
19186       lcc*)
19187         # Lucid
19188         # FIXME: insert proper C++ library support
19189         ld_shlibs_CXX=no
19190         ;;
19191       *)
19192         # FIXME: insert proper C++ library support
19193         ld_shlibs_CXX=no
19194         ;;
19195     esac
19196     ;;
19197   solaris*)
19198     case $cc_basename in
19199       CC*)
19200         # Sun C++ 4.2, 5.x and Centerline C++
19201         archive_cmds_need_lc_CXX=yes
19202         no_undefined_flag_CXX=' -zdefs'
19203         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
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${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19206
19207         hardcode_libdir_flag_spec_CXX='-R$libdir'
19208         hardcode_shlibpath_var_CXX=no
19209         case $host_os in
19210           solaris2.[0-5] | solaris2.[0-5].*) ;;
19211           *)
19212             # The C++ compiler is used as linker so we must use $wl
19213             # flag to pass the commands to the underlying system
19214             # linker. We must also pass each convience library through
19215             # to the system linker between allextract/defaultextract.
19216             # The C++ compiler will combine linker options so we
19217             # cannot just pass the convience library names through
19218             # without $wl.
19219             # Supported since Solaris 2.6 (maybe 2.5.1?)
19220             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'
19221             ;;
19222         esac
19223         link_all_deplibs_CXX=yes
19224
19225         output_verbose_link_cmd='echo'
19226
19227         # Archives containing C++ object files must be created using
19228         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
19229         # necessary to make sure instantiated templates are included
19230         # in the archive.
19231         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19232         ;;
19233       gcx*)
19234         # Green Hills C++ Compiler
19235         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19236
19237         # The C++ compiler must be used to create the archive.
19238         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19239         ;;
19240       *)
19241         # GNU C++ compiler with Solaris linker
19242         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19243           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19244           if $CC --version | grep -v '^2\.7' > /dev/null; then
19245             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19246             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19247                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19248
19249             # Commands to make compiler produce verbose output that lists
19250             # what "hidden" libraries, object files and flags are used when
19251             # linking a shared library.
19252             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19253           else
19254             # g++ 2.7 appears to require `-G' NOT `-shared' on this
19255             # platform.
19256             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19257             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19258                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19259
19260             # Commands to make compiler produce verbose output that lists
19261             # what "hidden" libraries, object files and flags are used when
19262             # linking a shared library.
19263             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19264           fi
19265
19266           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19267         fi
19268         ;;
19269     esac
19270     ;;
19271   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19272     no_undefined_flag_CXX='${wl}-z,text'
19273     archive_cmds_need_lc_CXX=no
19274     hardcode_shlibpath_var_CXX=no
19275     runpath_var='LD_RUN_PATH'
19276
19277     case $cc_basename in
19278       CC*)
19279         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19280         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19281         ;;
19282       *)
19283         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19284         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19285         ;;
19286     esac
19287     ;;
19288   sysv5* | sco3.2v5* | sco5v6*)
19289     # Note: We can NOT use -z defs as we might desire, because we do not
19290     # link with -lc, and that would cause any symbols used from libc to
19291     # always be unresolved, which means just about no library would
19292     # ever link correctly.  If we're not using GNU ld we use -z text
19293     # though, which does catch some bad symbols but isn't as heavy-handed
19294     # as -z defs.
19295     # For security reasons, it is highly recommended that you always
19296     # use absolute paths for naming shared libraries, and exclude the
19297     # DT_RUNPATH tag from executables and libraries.  But doing so
19298     # requires that you compile everything twice, which is a pain.
19299     # So that behaviour is only enabled if SCOABSPATH is set to a
19300     # non-empty value in the environment.  Most likely only useful for
19301     # creating official distributions of packages.
19302     # This is a hack until libtool officially supports absolute path
19303     # names for shared libraries.
19304     no_undefined_flag_CXX='${wl}-z,text'
19305     allow_undefined_flag_CXX='${wl}-z,nodefs'
19306     archive_cmds_need_lc_CXX=no
19307     hardcode_shlibpath_var_CXX=no
19308     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19309     hardcode_libdir_separator_CXX=':'
19310     link_all_deplibs_CXX=yes
19311     export_dynamic_flag_spec_CXX='${wl}-Bexport'
19312     runpath_var='LD_RUN_PATH'
19313
19314     case $cc_basename in
19315       CC*)
19316         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19317         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19318         ;;
19319       *)
19320         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19321         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19322         ;;
19323     esac
19324     ;;
19325   tandem*)
19326     case $cc_basename in
19327       NCC*)
19328         # NonStop-UX NCC 3.20
19329         # FIXME: insert proper C++ library support
19330         ld_shlibs_CXX=no
19331         ;;
19332       *)
19333         # FIXME: insert proper C++ library support
19334         ld_shlibs_CXX=no
19335         ;;
19336     esac
19337     ;;
19338   vxworks*)
19339     # FIXME: insert proper C++ library support
19340     ld_shlibs_CXX=no
19341     ;;
19342   *)
19343     # FIXME: insert proper C++ library support
19344     ld_shlibs_CXX=no
19345     ;;
19346 esac
19347 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19348 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19349 test "$ld_shlibs_CXX" = no && can_build_shared=no
19350
19351 GCC_CXX="$GXX"
19352 LD_CXX="$LD"
19353
19354
19355 cat > conftest.$ac_ext <<EOF
19356 class Foo
19357 {
19358 public:
19359   Foo (void) { a = 0; }
19360 private:
19361   int a;
19362 };
19363 EOF
19364
19365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19366   (eval $ac_compile) 2>&5
19367   ac_status=$?
19368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19369   (exit $ac_status); }; then
19370   # Parse the compiler output and extract the necessary
19371   # objects, libraries and library flags.
19372
19373   # Sentinel used to keep track of whether or not we are before
19374   # the conftest object file.
19375   pre_test_object_deps_done=no
19376
19377   # The `*' in the case matches for architectures that use `case' in
19378   # $output_verbose_cmd can trigger glob expansion during the loop
19379   # eval without this substitution.
19380   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19381
19382   for p in `eval $output_verbose_link_cmd`; do
19383     case $p in
19384
19385     -L* | -R* | -l*)
19386        # Some compilers place space between "-{L,R}" and the path.
19387        # Remove the space.
19388        if test $p = "-L" \
19389           || test $p = "-R"; then
19390          prev=$p
19391          continue
19392        else
19393          prev=
19394        fi
19395
19396        if test "$pre_test_object_deps_done" = no; then
19397          case $p in
19398          -L* | -R*)
19399            # Internal compiler library paths should come after those
19400            # provided the user.  The postdeps already come after the
19401            # user supplied libs so there is no need to process them.
19402            if test -z "$compiler_lib_search_path_CXX"; then
19403              compiler_lib_search_path_CXX="${prev}${p}"
19404            else
19405              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19406            fi
19407            ;;
19408          # The "-l" case would never come before the object being
19409          # linked, so don't bother handling this case.
19410          esac
19411        else
19412          if test -z "$postdeps_CXX"; then
19413            postdeps_CXX="${prev}${p}"
19414          else
19415            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19416          fi
19417        fi
19418        ;;
19419
19420     *.$objext)
19421        # This assumes that the test object file only shows up
19422        # once in the compiler output.
19423        if test "$p" = "conftest.$objext"; then
19424          pre_test_object_deps_done=yes
19425          continue
19426        fi
19427
19428        if test "$pre_test_object_deps_done" = no; then
19429          if test -z "$predep_objects_CXX"; then
19430            predep_objects_CXX="$p"
19431          else
19432            predep_objects_CXX="$predep_objects_CXX $p"
19433          fi
19434        else
19435          if test -z "$postdep_objects_CXX"; then
19436            postdep_objects_CXX="$p"
19437          else
19438            postdep_objects_CXX="$postdep_objects_CXX $p"
19439          fi
19440        fi
19441        ;;
19442
19443     *) ;; # Ignore the rest.
19444
19445     esac
19446   done
19447
19448   # Clean up.
19449   rm -f a.out a.exe
19450 else
19451   echo "libtool.m4: error: problem compiling CXX test program"
19452 fi
19453
19454 $rm -f confest.$objext
19455
19456 # PORTME: override above test on systems where it is broken
19457 case $host_os in
19458 interix3*)
19459   # Interix 3.5 installs completely hosed .la files for C++, so rather than
19460   # hack all around it, let's just trust "g++" to DTRT.
19461   predep_objects_CXX=
19462   postdep_objects_CXX=
19463   postdeps_CXX=
19464   ;;
19465
19466 solaris*)
19467   case $cc_basename in
19468   CC*)
19469     # Adding this requires a known-good setup of shared libraries for
19470     # Sun compiler versions before 5.6, else PIC objects from an old
19471     # archive will be linked into the output, leading to subtle bugs.
19472     postdeps_CXX='-lCstd -lCrun'
19473     ;;
19474   esac
19475   ;;
19476 esac
19477
19478
19479 case " $postdeps_CXX " in
19480 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19481 esac
19482
19483 lt_prog_compiler_wl_CXX=
19484 lt_prog_compiler_pic_CXX=
19485 lt_prog_compiler_static_CXX=
19486
19487 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19488 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19489
19490   # C++ specific cases for pic, static, wl, etc.
19491   if test "$GXX" = yes; then
19492     lt_prog_compiler_wl_CXX='-Wl,'
19493     lt_prog_compiler_static_CXX='-static'
19494
19495     case $host_os in
19496     aix*)
19497       # All AIX code is PIC.
19498       if test "$host_cpu" = ia64; then
19499         # AIX 5 now supports IA64 processor
19500         lt_prog_compiler_static_CXX='-Bstatic'
19501       fi
19502       ;;
19503     amigaos*)
19504       # FIXME: we need at least 68020 code to build shared libraries, but
19505       # adding the `-m68020' flag to GCC prevents building anything better,
19506       # like `-m68040'.
19507       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19508       ;;
19509     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19510       # PIC is the default for these OSes.
19511       ;;
19512     mingw* | os2* | pw32*)
19513       # This hack is so that the source file can tell whether it is being
19514       # built for inclusion in a dll (and should export symbols for example).
19515       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19516       ;;
19517     darwin* | rhapsody*)
19518       # PIC is the default on this platform
19519       # Common symbols not allowed in MH_DYLIB files
19520       lt_prog_compiler_pic_CXX='-fno-common'
19521       ;;
19522     *djgpp*)
19523       # DJGPP does not support shared libraries at all
19524       lt_prog_compiler_pic_CXX=
19525       ;;
19526     interix3*)
19527       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19528       # Instead, we relocate shared libraries at runtime.
19529       ;;
19530     sysv4*MP*)
19531       if test -d /usr/nec; then
19532         lt_prog_compiler_pic_CXX=-Kconform_pic
19533       fi
19534       ;;
19535     hpux*)
19536       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19537       # not for PA HP-UX.
19538       case $host_cpu in
19539       hppa*64*|ia64*)
19540         ;;
19541       *)
19542         lt_prog_compiler_pic_CXX='-fPIC'
19543         ;;
19544       esac
19545       ;;
19546     *)
19547       lt_prog_compiler_pic_CXX='-fPIC'
19548       ;;
19549     esac
19550   else
19551     case $host_os in
19552       aix4* | aix5*)
19553         # All AIX code is PIC.
19554         if test "$host_cpu" = ia64; then
19555           # AIX 5 now supports IA64 processor
19556           lt_prog_compiler_static_CXX='-Bstatic'
19557         else
19558           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19559         fi
19560         ;;
19561       chorus*)
19562         case $cc_basename in
19563         cxch68*)
19564           # Green Hills C++ Compiler
19565           # _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"
19566           ;;
19567         esac
19568         ;;
19569        darwin*)
19570          # PIC is the default on this platform
19571          # Common symbols not allowed in MH_DYLIB files
19572          case $cc_basename in
19573            xlc*)
19574            lt_prog_compiler_pic_CXX='-qnocommon'
19575            lt_prog_compiler_wl_CXX='-Wl,'
19576            ;;
19577          esac
19578        ;;
19579       dgux*)
19580         case $cc_basename in
19581           ec++*)
19582             lt_prog_compiler_pic_CXX='-KPIC'
19583             ;;
19584           ghcx*)
19585             # Green Hills C++ Compiler
19586             lt_prog_compiler_pic_CXX='-pic'
19587             ;;
19588           *)
19589             ;;
19590         esac
19591         ;;
19592       freebsd* | kfreebsd*-gnu | dragonfly*)
19593         # FreeBSD uses GNU C++
19594         ;;
19595       hpux9* | hpux10* | hpux11*)
19596         case $cc_basename in
19597           CC*)
19598             lt_prog_compiler_wl_CXX='-Wl,'
19599             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19600             if test "$host_cpu" != ia64; then
19601               lt_prog_compiler_pic_CXX='+Z'
19602             fi
19603             ;;
19604           aCC*)
19605             lt_prog_compiler_wl_CXX='-Wl,'
19606             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19607             case $host_cpu in
19608             hppa*64*|ia64*)
19609               # +Z the default
19610               ;;
19611             *)
19612               lt_prog_compiler_pic_CXX='+Z'
19613               ;;
19614             esac
19615             ;;
19616           *)
19617             ;;
19618         esac
19619         ;;
19620       interix*)
19621         # This is c89, which is MS Visual C++ (no shared libs)
19622         # Anyone wants to do a port?
19623         ;;
19624       irix5* | irix6* | nonstopux*)
19625         case $cc_basename in
19626           CC*)
19627             lt_prog_compiler_wl_CXX='-Wl,'
19628             lt_prog_compiler_static_CXX='-non_shared'
19629             # CC pic flag -KPIC is the default.
19630             ;;
19631           *)
19632             ;;
19633         esac
19634         ;;
19635       linux*)
19636         case $cc_basename in
19637           KCC*)
19638             # KAI C++ Compiler
19639             lt_prog_compiler_wl_CXX='--backend -Wl,'
19640             lt_prog_compiler_pic_CXX='-fPIC'
19641             ;;
19642           icpc* | ecpc*)
19643             # Intel C++
19644             lt_prog_compiler_wl_CXX='-Wl,'
19645             lt_prog_compiler_pic_CXX='-KPIC'
19646             lt_prog_compiler_static_CXX='-static'
19647             ;;
19648           pgCC*)
19649             # Portland Group C++ compiler.
19650             lt_prog_compiler_wl_CXX='-Wl,'
19651             lt_prog_compiler_pic_CXX='-fpic'
19652             lt_prog_compiler_static_CXX='-Bstatic'
19653             ;;
19654           cxx*)
19655             # Compaq C++
19656             # Make sure the PIC flag is empty.  It appears that all Alpha
19657             # Linux and Compaq Tru64 Unix objects are PIC.
19658             lt_prog_compiler_pic_CXX=
19659             lt_prog_compiler_static_CXX='-non_shared'
19660             ;;
19661           *)
19662             ;;
19663         esac
19664         ;;
19665       lynxos*)
19666         ;;
19667       m88k*)
19668         ;;
19669       mvs*)
19670         case $cc_basename in
19671           cxx*)
19672             lt_prog_compiler_pic_CXX='-W c,exportall'
19673             ;;
19674           *)
19675             ;;
19676         esac
19677         ;;
19678       netbsd*)
19679         ;;
19680       osf3* | osf4* | osf5*)
19681         case $cc_basename in
19682           KCC*)
19683             lt_prog_compiler_wl_CXX='--backend -Wl,'
19684             ;;
19685           RCC*)
19686             # Rational C++ 2.4.1
19687             lt_prog_compiler_pic_CXX='-pic'
19688             ;;
19689           cxx*)
19690             # Digital/Compaq C++
19691             lt_prog_compiler_wl_CXX='-Wl,'
19692             # Make sure the PIC flag is empty.  It appears that all Alpha
19693             # Linux and Compaq Tru64 Unix objects are PIC.
19694             lt_prog_compiler_pic_CXX=
19695             lt_prog_compiler_static_CXX='-non_shared'
19696             ;;
19697           *)
19698             ;;
19699         esac
19700         ;;
19701       psos*)
19702         ;;
19703       solaris*)
19704         case $cc_basename in
19705           CC*)
19706             # Sun C++ 4.2, 5.x and Centerline C++
19707             lt_prog_compiler_pic_CXX='-KPIC'
19708             lt_prog_compiler_static_CXX='-Bstatic'
19709             lt_prog_compiler_wl_CXX='-Qoption ld '
19710             ;;
19711           gcx*)
19712             # Green Hills C++ Compiler
19713             lt_prog_compiler_pic_CXX='-PIC'
19714             ;;
19715           *)
19716             ;;
19717         esac
19718         ;;
19719       sunos4*)
19720         case $cc_basename in
19721           CC*)
19722             # Sun C++ 4.x
19723             lt_prog_compiler_pic_CXX='-pic'
19724             lt_prog_compiler_static_CXX='-Bstatic'
19725             ;;
19726           lcc*)
19727             # Lucid
19728             lt_prog_compiler_pic_CXX='-pic'
19729             ;;
19730           *)
19731             ;;
19732         esac
19733         ;;
19734       tandem*)
19735         case $cc_basename in
19736           NCC*)
19737             # NonStop-UX NCC 3.20
19738             lt_prog_compiler_pic_CXX='-KPIC'
19739             ;;
19740           *)
19741             ;;
19742         esac
19743         ;;
19744       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19745         case $cc_basename in
19746           CC*)
19747             lt_prog_compiler_wl_CXX='-Wl,'
19748             lt_prog_compiler_pic_CXX='-KPIC'
19749             lt_prog_compiler_static_CXX='-Bstatic'
19750             ;;
19751         esac
19752         ;;
19753       vxworks*)
19754         ;;
19755       *)
19756         lt_prog_compiler_can_build_shared_CXX=no
19757         ;;
19758     esac
19759   fi
19760
19761 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19762 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19763
19764 #
19765 # Check to make sure the PIC flag actually works.
19766 #
19767 if test -n "$lt_prog_compiler_pic_CXX"; then
19768
19769 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19770 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19771 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19772   echo $ECHO_N "(cached) $ECHO_C" >&6
19773 else
19774   lt_prog_compiler_pic_works_CXX=no
19775   ac_outfile=conftest.$ac_objext
19776    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19777    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19778    # Insert the option either (1) after the last *FLAGS variable, or
19779    # (2) before a word containing "conftest.", or (3) at the end.
19780    # Note that $ac_compile itself does not contain backslashes and begins
19781    # with a dollar sign (not a hyphen), so the echo should work correctly.
19782    # The option is referenced via a variable to avoid confusing sed.
19783    lt_compile=`echo "$ac_compile" | $SED \
19784    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19785    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19786    -e 's:$: $lt_compiler_flag:'`
19787    (eval echo "\"\$as_me:19787: $lt_compile\"" >&5)
19788    (eval "$lt_compile" 2>conftest.err)
19789    ac_status=$?
19790    cat conftest.err >&5
19791    echo "$as_me:19791: \$? = $ac_status" >&5
19792    if (exit $ac_status) && test -s "$ac_outfile"; then
19793      # The compiler can only warn and ignore the option if not recognized
19794      # So say no if there are warnings other than the usual output.
19795      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19796      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19797      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19798        lt_prog_compiler_pic_works_CXX=yes
19799      fi
19800    fi
19801    $rm conftest*
19802
19803 fi
19804 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19805 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
19806
19807 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19808     case $lt_prog_compiler_pic_CXX in
19809      "" | " "*) ;;
19810      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19811      esac
19812 else
19813     lt_prog_compiler_pic_CXX=
19814      lt_prog_compiler_can_build_shared_CXX=no
19815 fi
19816
19817 fi
19818 case $host_os in
19819   # For platforms which do not support PIC, -DPIC is meaningless:
19820   *djgpp*)
19821     lt_prog_compiler_pic_CXX=
19822     ;;
19823   *)
19824     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19825     ;;
19826 esac
19827
19828 #
19829 # Check to make sure the static flag actually works.
19830 #
19831 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19832 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19833 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19834 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19835   echo $ECHO_N "(cached) $ECHO_C" >&6
19836 else
19837   lt_prog_compiler_static_works_CXX=no
19838    save_LDFLAGS="$LDFLAGS"
19839    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19840    printf "$lt_simple_link_test_code" > conftest.$ac_ext
19841    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19842      # The linker can only warn and ignore the option if not recognized
19843      # So say no if there are warnings
19844      if test -s conftest.err; then
19845        # Append any errors to the config.log.
19846        cat conftest.err 1>&5
19847        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19848        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19849        if diff conftest.exp conftest.er2 >/dev/null; then
19850          lt_prog_compiler_static_works_CXX=yes
19851        fi
19852      else
19853        lt_prog_compiler_static_works_CXX=yes
19854      fi
19855    fi
19856    $rm conftest*
19857    LDFLAGS="$save_LDFLAGS"
19858
19859 fi
19860 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19861 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19862
19863 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19864     :
19865 else
19866     lt_prog_compiler_static_CXX=
19867 fi
19868
19869
19870 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19871 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19872 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19873   echo $ECHO_N "(cached) $ECHO_C" >&6
19874 else
19875   lt_cv_prog_compiler_c_o_CXX=no
19876    $rm -r conftest 2>/dev/null
19877    mkdir conftest
19878    cd conftest
19879    mkdir out
19880    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19881
19882    lt_compiler_flag="-o out/conftest2.$ac_objext"
19883    # Insert the option either (1) after the last *FLAGS variable, or
19884    # (2) before a word containing "conftest.", or (3) at the end.
19885    # Note that $ac_compile itself does not contain backslashes and begins
19886    # with a dollar sign (not a hyphen), so the echo should work correctly.
19887    lt_compile=`echo "$ac_compile" | $SED \
19888    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19889    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19890    -e 's:$: $lt_compiler_flag:'`
19891    (eval echo "\"\$as_me:19891: $lt_compile\"" >&5)
19892    (eval "$lt_compile" 2>out/conftest.err)
19893    ac_status=$?
19894    cat out/conftest.err >&5
19895    echo "$as_me:19895: \$? = $ac_status" >&5
19896    if (exit $ac_status) && test -s out/conftest2.$ac_objext
19897    then
19898      # The compiler can only warn and ignore the option if not recognized
19899      # So say no if there are warnings
19900      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19901      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19902      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19903        lt_cv_prog_compiler_c_o_CXX=yes
19904      fi
19905    fi
19906    chmod u+w . 2>&5
19907    $rm conftest*
19908    # SGI C++ compiler will create directory out/ii_files/ for
19909    # template instantiation
19910    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19911    $rm out/* && rmdir out
19912    cd ..
19913    rmdir conftest
19914    $rm conftest*
19915
19916 fi
19917 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19918 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
19919
19920
19921 hard_links="nottested"
19922 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19923   # do not overwrite the value of need_locks provided by the user
19924   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19925 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19926   hard_links=yes
19927   $rm conftest*
19928   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19929   touch conftest.a
19930   ln conftest.a conftest.b 2>&5 || hard_links=no
19931   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19932   { echo "$as_me:$LINENO: result: $hard_links" >&5
19933 echo "${ECHO_T}$hard_links" >&6; }
19934   if test "$hard_links" = no; then
19935     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19936 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19937     need_locks=warn
19938   fi
19939 else
19940   need_locks=no
19941 fi
19942
19943 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19944 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19945
19946   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19947   case $host_os in
19948   aix4* | aix5*)
19949     # If we're using GNU nm, then we don't want the "-C" option.
19950     # -C means demangle to AIX nm, but means don't demangle with GNU nm
19951     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19952       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'
19953     else
19954       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'
19955     fi
19956     ;;
19957   pw32*)
19958     export_symbols_cmds_CXX="$ltdll_cmds"
19959   ;;
19960   cygwin* | mingw*)
19961     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'
19962   ;;
19963   *)
19964     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19965   ;;
19966   esac
19967
19968 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19969 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19970 test "$ld_shlibs_CXX" = no && can_build_shared=no
19971
19972 #
19973 # Do we need to explicitly link libc?
19974 #
19975 case "x$archive_cmds_need_lc_CXX" in
19976 x|xyes)
19977   # Assume -lc should be added
19978   archive_cmds_need_lc_CXX=yes
19979
19980   if test "$enable_shared" = yes && test "$GCC" = yes; then
19981     case $archive_cmds_CXX in
19982     *'~'*)
19983       # FIXME: we may have to deal with multi-command sequences.
19984       ;;
19985     '$CC '*)
19986       # Test whether the compiler implicitly links with -lc since on some
19987       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19988       # to ld, don't add -lc before -lgcc.
19989       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19990 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19991       $rm conftest*
19992       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19993
19994       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19995   (eval $ac_compile) 2>&5
19996   ac_status=$?
19997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19998   (exit $ac_status); } 2>conftest.err; then
19999         soname=conftest
20000         lib=conftest
20001         libobjs=conftest.$ac_objext
20002         deplibs=
20003         wl=$lt_prog_compiler_wl_CXX
20004         pic_flag=$lt_prog_compiler_pic_CXX
20005         compiler_flags=-v
20006         linker_flags=-v
20007         verstring=
20008         output_objdir=.
20009         libname=conftest
20010         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20011         allow_undefined_flag_CXX=
20012         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20013   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20014   ac_status=$?
20015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20016   (exit $ac_status); }
20017         then
20018           archive_cmds_need_lc_CXX=no
20019         else
20020           archive_cmds_need_lc_CXX=yes
20021         fi
20022         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20023       else
20024         cat conftest.err 1>&5
20025       fi
20026       $rm conftest*
20027       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20028 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
20029       ;;
20030     esac
20031   fi
20032   ;;
20033 esac
20034
20035 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20036 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
20037 library_names_spec=
20038 libname_spec='lib$name'
20039 soname_spec=
20040 shrext_cmds=".so"
20041 postinstall_cmds=
20042 postuninstall_cmds=
20043 finish_cmds=
20044 finish_eval=
20045 shlibpath_var=
20046 shlibpath_overrides_runpath=unknown
20047 version_type=none
20048 dynamic_linker="$host_os ld.so"
20049 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20050 if test "$GCC" = yes; then
20051   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20052   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20053     # if the path contains ";" then we assume it to be the separator
20054     # otherwise default to the standard path separator (i.e. ":") - it is
20055     # assumed that no part of a normal pathname contains ";" but that should
20056     # okay in the real world where ";" in dirpaths is itself problematic.
20057     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20058   else
20059     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20060   fi
20061 else
20062   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20063 fi
20064 need_lib_prefix=unknown
20065 hardcode_into_libs=no
20066
20067 # when you set need_version to no, make sure it does not cause -set_version
20068 # flags to be left without arguments
20069 need_version=unknown
20070
20071 case $host_os in
20072 aix3*)
20073   version_type=linux
20074   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20075   shlibpath_var=LIBPATH
20076
20077   # AIX 3 has no versioning support, so we append a major version to the name.
20078   soname_spec='${libname}${release}${shared_ext}$major'
20079   ;;
20080
20081 aix4* | aix5*)
20082   version_type=linux
20083   need_lib_prefix=no
20084   need_version=no
20085   hardcode_into_libs=yes
20086   if test "$host_cpu" = ia64; then
20087     # AIX 5 supports IA64
20088     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20089     shlibpath_var=LD_LIBRARY_PATH
20090   else
20091     # With GCC up to 2.95.x, collect2 would create an import file
20092     # for dependence libraries.  The import file would start with
20093     # the line `#! .'.  This would cause the generated library to
20094     # depend on `.', always an invalid library.  This was fixed in
20095     # development snapshots of GCC prior to 3.0.
20096     case $host_os in
20097       aix4 | aix4.[01] | aix4.[01].*)
20098       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20099            echo ' yes '
20100            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20101         :
20102       else
20103         can_build_shared=no
20104       fi
20105       ;;
20106     esac
20107     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20108     # soname into executable. Probably we can add versioning support to
20109     # collect2, so additional links can be useful in future.
20110     if test "$aix_use_runtimelinking" = yes; then
20111       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20112       # instead of lib<name>.a to let people know that these are not
20113       # typical AIX shared libraries.
20114       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20115     else
20116       # We preserve .a as extension for shared libraries through AIX4.2
20117       # and later when we are not doing run time linking.
20118       library_names_spec='${libname}${release}.a $libname.a'
20119       soname_spec='${libname}${release}${shared_ext}$major'
20120     fi
20121     shlibpath_var=LIBPATH
20122   fi
20123   ;;
20124
20125 amigaos*)
20126   library_names_spec='$libname.ixlibrary $libname.a'
20127   # Create ${libname}_ixlibrary.a entries in /sys/libs.
20128   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'
20129   ;;
20130
20131 beos*)
20132   library_names_spec='${libname}${shared_ext}'
20133   dynamic_linker="$host_os ld.so"
20134   shlibpath_var=LIBRARY_PATH
20135   ;;
20136
20137 bsdi[45]*)
20138   version_type=linux
20139   need_version=no
20140   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20141   soname_spec='${libname}${release}${shared_ext}$major'
20142   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20143   shlibpath_var=LD_LIBRARY_PATH
20144   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20145   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20146   # the default ld.so.conf also contains /usr/contrib/lib and
20147   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20148   # libtool to hard-code these into programs
20149   ;;
20150
20151 cygwin* | mingw* | pw32*)
20152   version_type=windows
20153   shrext_cmds=".dll"
20154   need_version=no
20155   need_lib_prefix=no
20156
20157   case $GCC,$host_os in
20158   yes,cygwin* | yes,mingw* | yes,pw32*)
20159     library_names_spec='$libname.dll.a'
20160     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20161     postinstall_cmds='base_file=`basename \${file}`~
20162       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20163       dldir=$destdir/`dirname \$dlpath`~
20164       test -d \$dldir || mkdir -p \$dldir~
20165       $install_prog $dir/$dlname \$dldir/$dlname~
20166       chmod a+x \$dldir/$dlname'
20167     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20168       dlpath=$dir/\$dldll~
20169        $rm \$dlpath'
20170     shlibpath_overrides_runpath=yes
20171
20172     case $host_os in
20173     cygwin*)
20174       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20175       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20176       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20177       ;;
20178     mingw*)
20179       # MinGW DLLs use traditional 'lib' prefix
20180       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20181       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20182       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20183         # It is most probably a Windows format PATH printed by
20184         # mingw gcc, but we are running on Cygwin. Gcc prints its search
20185         # path with ; separators, and with drive letters. We can handle the
20186         # drive letters (cygwin fileutils understands them), so leave them,
20187         # especially as we might pass files found there to a mingw objdump,
20188         # which wouldn't understand a cygwinified path. Ahh.
20189         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20190       else
20191         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20192       fi
20193       ;;
20194     pw32*)
20195       # pw32 DLLs use 'pw' prefix rather than 'lib'
20196       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20197       ;;
20198     esac
20199     ;;
20200
20201   *)
20202     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20203     ;;
20204   esac
20205   dynamic_linker='Win32 ld.exe'
20206   # FIXME: first we should search . and the directory the executable is in
20207   shlibpath_var=PATH
20208   ;;
20209
20210 darwin* | rhapsody*)
20211   dynamic_linker="$host_os dyld"
20212   version_type=darwin
20213   need_lib_prefix=no
20214   need_version=no
20215   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20216   soname_spec='${libname}${release}${major}$shared_ext'
20217   shlibpath_overrides_runpath=yes
20218   shlibpath_var=DYLD_LIBRARY_PATH
20219   shrext_cmds='.dylib'
20220   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20221   if test "$GCC" = yes; then
20222     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"`
20223   else
20224     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20225   fi
20226   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20227   ;;
20228
20229 dgux*)
20230   version_type=linux
20231   need_lib_prefix=no
20232   need_version=no
20233   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20234   soname_spec='${libname}${release}${shared_ext}$major'
20235   shlibpath_var=LD_LIBRARY_PATH
20236   ;;
20237
20238 freebsd1*)
20239   dynamic_linker=no
20240   ;;
20241
20242 kfreebsd*-gnu)
20243   version_type=linux
20244   need_lib_prefix=no
20245   need_version=no
20246   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20247   soname_spec='${libname}${release}${shared_ext}$major'
20248   shlibpath_var=LD_LIBRARY_PATH
20249   shlibpath_overrides_runpath=no
20250   hardcode_into_libs=yes
20251   dynamic_linker='GNU ld.so'
20252   ;;
20253
20254 freebsd* | dragonfly*)
20255   # DragonFly does not have aout.  When/if they implement a new
20256   # versioning mechanism, adjust this.
20257   if test -x /usr/bin/objformat; then
20258     objformat=`/usr/bin/objformat`
20259   else
20260     case $host_os in
20261     freebsd[123]*) objformat=aout ;;
20262     *) objformat=elf ;;
20263     esac
20264   fi
20265   version_type=freebsd-$objformat
20266   case $version_type in
20267     freebsd-elf*)
20268       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20269       need_version=no
20270       need_lib_prefix=no
20271       ;;
20272     freebsd-*)
20273       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20274       need_version=yes
20275       ;;
20276   esac
20277   shlibpath_var=LD_LIBRARY_PATH
20278   case $host_os in
20279   freebsd2*)
20280     shlibpath_overrides_runpath=yes
20281     ;;
20282   freebsd3.[01]* | freebsdelf3.[01]*)
20283     shlibpath_overrides_runpath=yes
20284     hardcode_into_libs=yes
20285     ;;
20286   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20287   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20288     shlibpath_overrides_runpath=no
20289     hardcode_into_libs=yes
20290     ;;
20291   freebsd*) # from 4.6 on
20292     shlibpath_overrides_runpath=yes
20293     hardcode_into_libs=yes
20294     ;;
20295   esac
20296   ;;
20297
20298 gnu*)
20299   version_type=linux
20300   need_lib_prefix=no
20301   need_version=no
20302   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20303   soname_spec='${libname}${release}${shared_ext}$major'
20304   shlibpath_var=LD_LIBRARY_PATH
20305   hardcode_into_libs=yes
20306   ;;
20307
20308 hpux9* | hpux10* | hpux11*)
20309   # Give a soname corresponding to the major version so that dld.sl refuses to
20310   # link against other versions.
20311   version_type=sunos
20312   need_lib_prefix=no
20313   need_version=no
20314   case $host_cpu in
20315   ia64*)
20316     shrext_cmds='.so'
20317     hardcode_into_libs=yes
20318     dynamic_linker="$host_os dld.so"
20319     shlibpath_var=LD_LIBRARY_PATH
20320     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20321     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20322     soname_spec='${libname}${release}${shared_ext}$major'
20323     if test "X$HPUX_IA64_MODE" = X32; then
20324       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20325     else
20326       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20327     fi
20328     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20329     ;;
20330    hppa*64*)
20331      shrext_cmds='.sl'
20332      hardcode_into_libs=yes
20333      dynamic_linker="$host_os dld.sl"
20334      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20335      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20336      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20337      soname_spec='${libname}${release}${shared_ext}$major'
20338      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20339      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20340      ;;
20341    *)
20342     shrext_cmds='.sl'
20343     dynamic_linker="$host_os dld.sl"
20344     shlibpath_var=SHLIB_PATH
20345     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20346     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20347     soname_spec='${libname}${release}${shared_ext}$major'
20348     ;;
20349   esac
20350   # HP-UX runs *really* slowly unless shared libraries are mode 555.
20351   postinstall_cmds='chmod 555 $lib'
20352   ;;
20353
20354 interix3*)
20355   version_type=linux
20356   need_lib_prefix=no
20357   need_version=no
20358   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20359   soname_spec='${libname}${release}${shared_ext}$major'
20360   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20361   shlibpath_var=LD_LIBRARY_PATH
20362   shlibpath_overrides_runpath=no
20363   hardcode_into_libs=yes
20364   ;;
20365
20366 irix5* | irix6* | nonstopux*)
20367   case $host_os in
20368     nonstopux*) version_type=nonstopux ;;
20369     *)
20370         if test "$lt_cv_prog_gnu_ld" = yes; then
20371                 version_type=linux
20372         else
20373                 version_type=irix
20374         fi ;;
20375   esac
20376   need_lib_prefix=no
20377   need_version=no
20378   soname_spec='${libname}${release}${shared_ext}$major'
20379   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20380   case $host_os in
20381   irix5* | nonstopux*)
20382     libsuff= shlibsuff=
20383     ;;
20384   *)
20385     case $LD in # libtool.m4 will add one of these switches to LD
20386     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20387       libsuff= shlibsuff= libmagic=32-bit;;
20388     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20389       libsuff=32 shlibsuff=N32 libmagic=N32;;
20390     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20391       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20392     *) libsuff= shlibsuff= libmagic=never-match;;
20393     esac
20394     ;;
20395   esac
20396   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20397   shlibpath_overrides_runpath=no
20398   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20399   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20400   hardcode_into_libs=yes
20401   ;;
20402
20403 # No shared lib support for Linux oldld, aout, or coff.
20404 linux*oldld* | linux*aout* | linux*coff*)
20405   dynamic_linker=no
20406   ;;
20407
20408 # This must be Linux ELF.
20409 linux*)
20410   version_type=linux
20411   need_lib_prefix=no
20412   need_version=no
20413   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20414   soname_spec='${libname}${release}${shared_ext}$major'
20415   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20416   shlibpath_var=LD_LIBRARY_PATH
20417   shlibpath_overrides_runpath=no
20418   # This implies no fast_install, which is unacceptable.
20419   # Some rework will be needed to allow for fast_install
20420   # before this can be enabled.
20421   hardcode_into_libs=yes
20422
20423   # Append ld.so.conf contents to the search path
20424   if test -f /etc/ld.so.conf; then
20425     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' ' '`
20426     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20427   fi
20428
20429   # We used to test for /lib/ld.so.1 and disable shared libraries on
20430   # powerpc, because MkLinux only supported shared libraries with the
20431   # GNU dynamic linker.  Since this was broken with cross compilers,
20432   # most powerpc-linux boxes support dynamic linking these days and
20433   # people can always --disable-shared, the test was removed, and we
20434   # assume the GNU/Linux dynamic linker is in use.
20435   dynamic_linker='GNU/Linux ld.so'
20436   ;;
20437
20438 knetbsd*-gnu)
20439   version_type=linux
20440   need_lib_prefix=no
20441   need_version=no
20442   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20443   soname_spec='${libname}${release}${shared_ext}$major'
20444   shlibpath_var=LD_LIBRARY_PATH
20445   shlibpath_overrides_runpath=no
20446   hardcode_into_libs=yes
20447   dynamic_linker='GNU ld.so'
20448   ;;
20449
20450 netbsd*)
20451   version_type=sunos
20452   need_lib_prefix=no
20453   need_version=no
20454   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20455     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20456     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20457     dynamic_linker='NetBSD (a.out) ld.so'
20458   else
20459     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20460     soname_spec='${libname}${release}${shared_ext}$major'
20461     dynamic_linker='NetBSD ld.elf_so'
20462   fi
20463   shlibpath_var=LD_LIBRARY_PATH
20464   shlibpath_overrides_runpath=yes
20465   hardcode_into_libs=yes
20466   ;;
20467
20468 newsos6)
20469   version_type=linux
20470   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20471   shlibpath_var=LD_LIBRARY_PATH
20472   shlibpath_overrides_runpath=yes
20473   ;;
20474
20475 nto-qnx*)
20476   version_type=linux
20477   need_lib_prefix=no
20478   need_version=no
20479   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20480   soname_spec='${libname}${release}${shared_ext}$major'
20481   shlibpath_var=LD_LIBRARY_PATH
20482   shlibpath_overrides_runpath=yes
20483   ;;
20484
20485 openbsd*)
20486   version_type=sunos
20487   sys_lib_dlsearch_path_spec="/usr/lib"
20488   need_lib_prefix=no
20489   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20490   case $host_os in
20491     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20492     *)                         need_version=no  ;;
20493   esac
20494   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20495   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20496   shlibpath_var=LD_LIBRARY_PATH
20497   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20498     case $host_os in
20499       openbsd2.[89] | openbsd2.[89].*)
20500         shlibpath_overrides_runpath=no
20501         ;;
20502       *)
20503         shlibpath_overrides_runpath=yes
20504         ;;
20505       esac
20506   else
20507     shlibpath_overrides_runpath=yes
20508   fi
20509   ;;
20510
20511 os2*)
20512   libname_spec='$name'
20513   shrext_cmds=".dll"
20514   need_lib_prefix=no
20515   library_names_spec='$libname${shared_ext} $libname.a'
20516   dynamic_linker='OS/2 ld.exe'
20517   shlibpath_var=LIBPATH
20518   ;;
20519
20520 osf3* | osf4* | osf5*)
20521   version_type=osf
20522   need_lib_prefix=no
20523   need_version=no
20524   soname_spec='${libname}${release}${shared_ext}$major'
20525   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20526   shlibpath_var=LD_LIBRARY_PATH
20527   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20528   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20529   ;;
20530
20531 solaris*)
20532   version_type=linux
20533   need_lib_prefix=no
20534   need_version=no
20535   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20536   soname_spec='${libname}${release}${shared_ext}$major'
20537   shlibpath_var=LD_LIBRARY_PATH
20538   shlibpath_overrides_runpath=yes
20539   hardcode_into_libs=yes
20540   # ldd complains unless libraries are executable
20541   postinstall_cmds='chmod +x $lib'
20542   ;;
20543
20544 sunos4*)
20545   version_type=sunos
20546   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20547   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20548   shlibpath_var=LD_LIBRARY_PATH
20549   shlibpath_overrides_runpath=yes
20550   if test "$with_gnu_ld" = yes; then
20551     need_lib_prefix=no
20552   fi
20553   need_version=yes
20554   ;;
20555
20556 sysv4 | sysv4.3*)
20557   version_type=linux
20558   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20559   soname_spec='${libname}${release}${shared_ext}$major'
20560   shlibpath_var=LD_LIBRARY_PATH
20561   case $host_vendor in
20562     sni)
20563       shlibpath_overrides_runpath=no
20564       need_lib_prefix=no
20565       export_dynamic_flag_spec='${wl}-Blargedynsym'
20566       runpath_var=LD_RUN_PATH
20567       ;;
20568     siemens)
20569       need_lib_prefix=no
20570       ;;
20571     motorola)
20572       need_lib_prefix=no
20573       need_version=no
20574       shlibpath_overrides_runpath=no
20575       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20576       ;;
20577   esac
20578   ;;
20579
20580 sysv4*MP*)
20581   if test -d /usr/nec ;then
20582     version_type=linux
20583     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20584     soname_spec='$libname${shared_ext}.$major'
20585     shlibpath_var=LD_LIBRARY_PATH
20586   fi
20587   ;;
20588
20589 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20590   version_type=freebsd-elf
20591   need_lib_prefix=no
20592   need_version=no
20593   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20594   soname_spec='${libname}${release}${shared_ext}$major'
20595   shlibpath_var=LD_LIBRARY_PATH
20596   hardcode_into_libs=yes
20597   if test "$with_gnu_ld" = yes; then
20598     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20599     shlibpath_overrides_runpath=no
20600   else
20601     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20602     shlibpath_overrides_runpath=yes
20603     case $host_os in
20604       sco3.2v5*)
20605         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20606         ;;
20607     esac
20608   fi
20609   sys_lib_dlsearch_path_spec='/usr/lib'
20610   ;;
20611
20612 uts4*)
20613   version_type=linux
20614   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20615   soname_spec='${libname}${release}${shared_ext}$major'
20616   shlibpath_var=LD_LIBRARY_PATH
20617   ;;
20618
20619 *)
20620   dynamic_linker=no
20621   ;;
20622 esac
20623 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20624 echo "${ECHO_T}$dynamic_linker" >&6; }
20625 test "$dynamic_linker" = no && can_build_shared=no
20626
20627 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20628 if test "$GCC" = yes; then
20629   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20630 fi
20631
20632 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20633 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20634 hardcode_action_CXX=
20635 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20636    test -n "$runpath_var_CXX" || \
20637    test "X$hardcode_automatic_CXX" = "Xyes" ; then
20638
20639   # We can hardcode non-existant directories.
20640   if test "$hardcode_direct_CXX" != no &&
20641      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20642      # have to relink, otherwise we might link with an installed library
20643      # when we should be linking with a yet-to-be-installed one
20644      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20645      test "$hardcode_minus_L_CXX" != no; then
20646     # Linking always hardcodes the temporary library directory.
20647     hardcode_action_CXX=relink
20648   else
20649     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20650     hardcode_action_CXX=immediate
20651   fi
20652 else
20653   # We cannot hardcode anything, or else we can only hardcode existing
20654   # directories.
20655   hardcode_action_CXX=unsupported
20656 fi
20657 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20658 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20659
20660 if test "$hardcode_action_CXX" = relink; then
20661   # Fast installation is not supported
20662   enable_fast_install=no
20663 elif test "$shlibpath_overrides_runpath" = yes ||
20664      test "$enable_shared" = no; then
20665   # Fast installation is not necessary
20666   enable_fast_install=needless
20667 fi
20668
20669
20670 # The else clause should only fire when bootstrapping the
20671 # libtool distribution, otherwise you forgot to ship ltmain.sh
20672 # with your package, and you will get complaints that there are
20673 # no rules to generate ltmain.sh.
20674 if test -f "$ltmain"; then
20675   # See if we are running on zsh, and set the options which allow our commands through
20676   # without removal of \ escapes.
20677   if test -n "${ZSH_VERSION+set}" ; then
20678     setopt NO_GLOB_SUBST
20679   fi
20680   # Now quote all the things that may contain metacharacters while being
20681   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20682   # variables and quote the copies for generation of the libtool script.
20683   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20684     SED SHELL STRIP \
20685     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20686     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20687     deplibs_check_method reload_flag reload_cmds need_locks \
20688     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20689     lt_cv_sys_global_symbol_to_c_name_address \
20690     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20691     old_postinstall_cmds old_postuninstall_cmds \
20692     compiler_CXX \
20693     CC_CXX \
20694     LD_CXX \
20695     lt_prog_compiler_wl_CXX \
20696     lt_prog_compiler_pic_CXX \
20697     lt_prog_compiler_static_CXX \
20698     lt_prog_compiler_no_builtin_flag_CXX \
20699     export_dynamic_flag_spec_CXX \
20700     thread_safe_flag_spec_CXX \
20701     whole_archive_flag_spec_CXX \
20702     enable_shared_with_static_runtimes_CXX \
20703     old_archive_cmds_CXX \
20704     old_archive_from_new_cmds_CXX \
20705     predep_objects_CXX \
20706     postdep_objects_CXX \
20707     predeps_CXX \
20708     postdeps_CXX \
20709     compiler_lib_search_path_CXX \
20710     archive_cmds_CXX \
20711     archive_expsym_cmds_CXX \
20712     postinstall_cmds_CXX \
20713     postuninstall_cmds_CXX \
20714     old_archive_from_expsyms_cmds_CXX \
20715     allow_undefined_flag_CXX \
20716     no_undefined_flag_CXX \
20717     export_symbols_cmds_CXX \
20718     hardcode_libdir_flag_spec_CXX \
20719     hardcode_libdir_flag_spec_ld_CXX \
20720     hardcode_libdir_separator_CXX \
20721     hardcode_automatic_CXX \
20722     module_cmds_CXX \
20723     module_expsym_cmds_CXX \
20724     lt_cv_prog_compiler_c_o_CXX \
20725     exclude_expsyms_CXX \
20726     include_expsyms_CXX; do
20727
20728     case $var in
20729     old_archive_cmds_CXX | \
20730     old_archive_from_new_cmds_CXX | \
20731     archive_cmds_CXX | \
20732     archive_expsym_cmds_CXX | \
20733     module_cmds_CXX | \
20734     module_expsym_cmds_CXX | \
20735     old_archive_from_expsyms_cmds_CXX | \
20736     export_symbols_cmds_CXX | \
20737     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20738     postinstall_cmds | postuninstall_cmds | \
20739     old_postinstall_cmds | old_postuninstall_cmds | \
20740     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20741       # Double-quote double-evaled strings.
20742       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20743       ;;
20744     *)
20745       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20746       ;;
20747     esac
20748   done
20749
20750   case $lt_echo in
20751   *'\$0 --fallback-echo"')
20752     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20753     ;;
20754   esac
20755
20756 cfgfile="$ofile"
20757
20758   cat <<__EOF__ >> "$cfgfile"
20759 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20760
20761 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20762
20763 # Shell to use when invoking shell scripts.
20764 SHELL=$lt_SHELL
20765
20766 # Whether or not to build shared libraries.
20767 build_libtool_libs=$enable_shared
20768
20769 # Whether or not to build static libraries.
20770 build_old_libs=$enable_static
20771
20772 # Whether or not to add -lc for building shared libraries.
20773 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20774
20775 # Whether or not to disallow shared libs when runtime libs are static
20776 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20777
20778 # Whether or not to optimize for fast installation.
20779 fast_install=$enable_fast_install
20780
20781 # The host system.
20782 host_alias=$host_alias
20783 host=$host
20784 host_os=$host_os
20785
20786 # The build system.
20787 build_alias=$build_alias
20788 build=$build
20789 build_os=$build_os
20790
20791 # An echo program that does not interpret backslashes.
20792 echo=$lt_echo
20793
20794 # The archiver.
20795 AR=$lt_AR
20796 AR_FLAGS=$lt_AR_FLAGS
20797
20798 # A C compiler.
20799 LTCC=$lt_LTCC
20800
20801 # LTCC compiler flags.
20802 LTCFLAGS=$lt_LTCFLAGS
20803
20804 # A language-specific compiler.
20805 CC=$lt_compiler_CXX
20806
20807 # Is the compiler the GNU C compiler?
20808 with_gcc=$GCC_CXX
20809
20810 # An ERE matcher.
20811 EGREP=$lt_EGREP
20812
20813 # The linker used to build libraries.
20814 LD=$lt_LD_CXX
20815
20816 # Whether we need hard or soft links.
20817 LN_S=$lt_LN_S
20818
20819 # A BSD-compatible nm program.
20820 NM=$lt_NM
20821
20822 # A symbol stripping program
20823 STRIP=$lt_STRIP
20824
20825 # Used to examine libraries when file_magic_cmd begins "file"
20826 MAGIC_CMD=$MAGIC_CMD
20827
20828 # Used on cygwin: DLL creation program.
20829 DLLTOOL="$DLLTOOL"
20830
20831 # Used on cygwin: object dumper.
20832 OBJDUMP="$OBJDUMP"
20833
20834 # Used on cygwin: assembler.
20835 AS="$AS"
20836
20837 # The name of the directory that contains temporary libtool files.
20838 objdir=$objdir
20839
20840 # How to create reloadable object files.
20841 reload_flag=$lt_reload_flag
20842 reload_cmds=$lt_reload_cmds
20843
20844 # How to pass a linker flag through the compiler.
20845 wl=$lt_lt_prog_compiler_wl_CXX
20846
20847 # Object file suffix (normally "o").
20848 objext="$ac_objext"
20849
20850 # Old archive suffix (normally "a").
20851 libext="$libext"
20852
20853 # Shared library suffix (normally ".so").
20854 shrext_cmds='$shrext_cmds'
20855
20856 # Executable file suffix (normally "").
20857 exeext="$exeext"
20858
20859 # Additional compiler flags for building library objects.
20860 pic_flag=$lt_lt_prog_compiler_pic_CXX
20861 pic_mode=$pic_mode
20862
20863 # What is the maximum length of a command?
20864 max_cmd_len=$lt_cv_sys_max_cmd_len
20865
20866 # Does compiler simultaneously support -c and -o options?
20867 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20868
20869 # Must we lock files when doing compilation?
20870 need_locks=$lt_need_locks
20871
20872 # Do we need the lib prefix for modules?
20873 need_lib_prefix=$need_lib_prefix
20874
20875 # Do we need a version for libraries?
20876 need_version=$need_version
20877
20878 # Whether dlopen is supported.
20879 dlopen_support=$enable_dlopen
20880
20881 # Whether dlopen of programs is supported.
20882 dlopen_self=$enable_dlopen_self
20883
20884 # Whether dlopen of statically linked programs is supported.
20885 dlopen_self_static=$enable_dlopen_self_static
20886
20887 # Compiler flag to prevent dynamic linking.
20888 link_static_flag=$lt_lt_prog_compiler_static_CXX
20889
20890 # Compiler flag to turn off builtin functions.
20891 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20892
20893 # Compiler flag to allow reflexive dlopens.
20894 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20895
20896 # Compiler flag to generate shared objects directly from archives.
20897 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20898
20899 # Compiler flag to generate thread-safe objects.
20900 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20901
20902 # Library versioning type.
20903 version_type=$version_type
20904
20905 # Format of library name prefix.
20906 libname_spec=$lt_libname_spec
20907
20908 # List of archive names.  First name is the real one, the rest are links.
20909 # The last name is the one that the linker finds with -lNAME.
20910 library_names_spec=$lt_library_names_spec
20911
20912 # The coded name of the library, if different from the real name.
20913 soname_spec=$lt_soname_spec
20914
20915 # Commands used to build and install an old-style archive.
20916 RANLIB=$lt_RANLIB
20917 old_archive_cmds=$lt_old_archive_cmds_CXX
20918 old_postinstall_cmds=$lt_old_postinstall_cmds
20919 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20920
20921 # Create an old-style archive from a shared archive.
20922 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20923
20924 # Create a temporary old-style archive to link instead of a shared archive.
20925 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20926
20927 # Commands used to build and install a shared archive.
20928 archive_cmds=$lt_archive_cmds_CXX
20929 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20930 postinstall_cmds=$lt_postinstall_cmds
20931 postuninstall_cmds=$lt_postuninstall_cmds
20932
20933 # Commands used to build a loadable module (assumed same as above if empty)
20934 module_cmds=$lt_module_cmds_CXX
20935 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20936
20937 # Commands to strip libraries.
20938 old_striplib=$lt_old_striplib
20939 striplib=$lt_striplib
20940
20941 # Dependencies to place before the objects being linked to create a
20942 # shared library.
20943 predep_objects=$lt_predep_objects_CXX
20944
20945 # Dependencies to place after the objects being linked to create a
20946 # shared library.
20947 postdep_objects=$lt_postdep_objects_CXX
20948
20949 # Dependencies to place before the objects being linked to create a
20950 # shared library.
20951 predeps=$lt_predeps_CXX
20952
20953 # Dependencies to place after the objects being linked to create a
20954 # shared library.
20955 postdeps=$lt_postdeps_CXX
20956
20957 # The library search path used internally by the compiler when linking
20958 # a shared library.
20959 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20960
20961 # Method to check whether dependent libraries are shared objects.
20962 deplibs_check_method=$lt_deplibs_check_method
20963
20964 # Command to use when deplibs_check_method == file_magic.
20965 file_magic_cmd=$lt_file_magic_cmd
20966
20967 # Flag that allows shared libraries with undefined symbols to be built.
20968 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20969
20970 # Flag that forces no undefined symbols.
20971 no_undefined_flag=$lt_no_undefined_flag_CXX
20972
20973 # Commands used to finish a libtool library installation in a directory.
20974 finish_cmds=$lt_finish_cmds
20975
20976 # Same as above, but a single script fragment to be evaled but not shown.
20977 finish_eval=$lt_finish_eval
20978
20979 # Take the output of nm and produce a listing of raw symbols and C names.
20980 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20981
20982 # Transform the output of nm in a proper C declaration
20983 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20984
20985 # Transform the output of nm in a C name address pair
20986 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20987
20988 # This is the shared library runtime path variable.
20989 runpath_var=$runpath_var
20990
20991 # This is the shared library path variable.
20992 shlibpath_var=$shlibpath_var
20993
20994 # Is shlibpath searched before the hard-coded library search path?
20995 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20996
20997 # How to hardcode a shared library path into an executable.
20998 hardcode_action=$hardcode_action_CXX
20999
21000 # Whether we should hardcode library paths into libraries.
21001 hardcode_into_libs=$hardcode_into_libs
21002
21003 # Flag to hardcode \$libdir into a binary during linking.
21004 # This must work even if \$libdir does not exist.
21005 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21006
21007 # If ld is used when linking, flag to hardcode \$libdir into
21008 # a binary during linking. This must work even if \$libdir does
21009 # not exist.
21010 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21011
21012 # Whether we need a single -rpath flag with a separated argument.
21013 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21014
21015 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21016 # resulting binary.
21017 hardcode_direct=$hardcode_direct_CXX
21018
21019 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21020 # resulting binary.
21021 hardcode_minus_L=$hardcode_minus_L_CXX
21022
21023 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21024 # the resulting binary.
21025 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21026
21027 # Set to yes if building a shared library automatically hardcodes DIR into the library
21028 # and all subsequent libraries and executables linked against it.
21029 hardcode_automatic=$hardcode_automatic_CXX
21030
21031 # Variables whose values should be saved in libtool wrapper scripts and
21032 # restored at relink time.
21033 variables_saved_for_relink="$variables_saved_for_relink"
21034
21035 # Whether libtool must link a program against all its dependency libraries.
21036 link_all_deplibs=$link_all_deplibs_CXX
21037
21038 # Compile-time system search path for libraries
21039 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21040
21041 # Run-time system search path for libraries
21042 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21043
21044 # Fix the shell variable \$srcfile for the compiler.
21045 fix_srcfile_path="$fix_srcfile_path_CXX"
21046
21047 # Set to yes if exported symbols are required.
21048 always_export_symbols=$always_export_symbols_CXX
21049
21050 # The commands to list exported symbols.
21051 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21052
21053 # The commands to extract the exported symbol list from a shared archive.
21054 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21055
21056 # Symbols that should not be listed in the preloaded symbols.
21057 exclude_expsyms=$lt_exclude_expsyms_CXX
21058
21059 # Symbols that must always be exported.
21060 include_expsyms=$lt_include_expsyms_CXX
21061
21062 # ### END LIBTOOL TAG CONFIG: $tagname
21063
21064 __EOF__
21065
21066
21067 else
21068   # If there is no Makefile yet, we rely on a make rule to execute
21069   # `config.status --recheck' to rerun these tests and create the
21070   # libtool script then.
21071   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21072   if test -f "$ltmain_in"; then
21073     test -f Makefile && make "$ltmain"
21074   fi
21075 fi
21076
21077
21078 ac_ext=c
21079 ac_cpp='$CPP $CPPFLAGS'
21080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21083
21084 CC=$lt_save_CC
21085 LDCXX=$LD
21086 LD=$lt_save_LD
21087 GCC=$lt_save_GCC
21088 with_gnu_ldcxx=$with_gnu_ld
21089 with_gnu_ld=$lt_save_with_gnu_ld
21090 lt_cv_path_LDCXX=$lt_cv_path_LD
21091 lt_cv_path_LD=$lt_save_path_LD
21092 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21093 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21094
21095         else
21096           tagname=""
21097         fi
21098         ;;
21099
21100       F77)
21101         if test -n "$F77" && test "X$F77" != "Xno"; then
21102
21103 ac_ext=f
21104 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21105 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21106 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21107
21108
21109 archive_cmds_need_lc_F77=no
21110 allow_undefined_flag_F77=
21111 always_export_symbols_F77=no
21112 archive_expsym_cmds_F77=
21113 export_dynamic_flag_spec_F77=
21114 hardcode_direct_F77=no
21115 hardcode_libdir_flag_spec_F77=
21116 hardcode_libdir_flag_spec_ld_F77=
21117 hardcode_libdir_separator_F77=
21118 hardcode_minus_L_F77=no
21119 hardcode_automatic_F77=no
21120 module_cmds_F77=
21121 module_expsym_cmds_F77=
21122 link_all_deplibs_F77=unknown
21123 old_archive_cmds_F77=$old_archive_cmds
21124 no_undefined_flag_F77=
21125 whole_archive_flag_spec_F77=
21126 enable_shared_with_static_runtimes_F77=no
21127
21128 # Source file extension for f77 test sources.
21129 ac_ext=f
21130
21131 # Object file extension for compiled f77 test sources.
21132 objext=o
21133 objext_F77=$objext
21134
21135 # Code to be used in simple compile tests
21136 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
21137
21138 # Code to be used in simple link tests
21139 lt_simple_link_test_code="      program t\n      end\n"
21140
21141 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21142
21143 # If no C compiler was specified, use CC.
21144 LTCC=${LTCC-"$CC"}
21145
21146 # If no C compiler flags were specified, use CFLAGS.
21147 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21148
21149 # Allow CC to be a program name with arguments.
21150 compiler=$CC
21151
21152
21153 # save warnings/boilerplate of simple test code
21154 ac_outfile=conftest.$ac_objext
21155 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21156 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21157 _lt_compiler_boilerplate=`cat conftest.err`
21158 $rm conftest*
21159
21160 ac_outfile=conftest.$ac_objext
21161 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21162 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21163 _lt_linker_boilerplate=`cat conftest.err`
21164 $rm conftest*
21165
21166
21167 # Allow CC to be a program name with arguments.
21168 lt_save_CC="$CC"
21169 CC=${F77-"f77"}
21170 compiler=$CC
21171 compiler_F77=$CC
21172 for cc_temp in $compiler""; do
21173   case $cc_temp in
21174     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21175     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21176     \-*) ;;
21177     *) break;;
21178   esac
21179 done
21180 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21181
21182
21183 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21184 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21185 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21186 echo "${ECHO_T}$can_build_shared" >&6; }
21187
21188 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21189 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21190 test "$can_build_shared" = "no" && enable_shared=no
21191
21192 # On AIX, shared libraries and static libraries use the same namespace, and
21193 # are all built from PIC.
21194 case $host_os in
21195 aix3*)
21196   test "$enable_shared" = yes && enable_static=no
21197   if test -n "$RANLIB"; then
21198     archive_cmds="$archive_cmds~\$RANLIB \$lib"
21199     postinstall_cmds='$RANLIB $lib'
21200   fi
21201   ;;
21202 aix4* | aix5*)
21203   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21204     test "$enable_shared" = yes && enable_static=no
21205   fi
21206   ;;
21207 esac
21208 { echo "$as_me:$LINENO: result: $enable_shared" >&5
21209 echo "${ECHO_T}$enable_shared" >&6; }
21210
21211 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21212 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21213 # Make sure either enable_shared or enable_static is yes.
21214 test "$enable_shared" = yes || enable_static=yes
21215 { echo "$as_me:$LINENO: result: $enable_static" >&5
21216 echo "${ECHO_T}$enable_static" >&6; }
21217
21218 GCC_F77="$G77"
21219 LD_F77="$LD"
21220
21221 lt_prog_compiler_wl_F77=
21222 lt_prog_compiler_pic_F77=
21223 lt_prog_compiler_static_F77=
21224
21225 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21226 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21227
21228   if test "$GCC" = yes; then
21229     lt_prog_compiler_wl_F77='-Wl,'
21230     lt_prog_compiler_static_F77='-static'
21231
21232     case $host_os in
21233       aix*)
21234       # All AIX code is PIC.
21235       if test "$host_cpu" = ia64; then
21236         # AIX 5 now supports IA64 processor
21237         lt_prog_compiler_static_F77='-Bstatic'
21238       fi
21239       ;;
21240
21241     amigaos*)
21242       # FIXME: we need at least 68020 code to build shared libraries, but
21243       # adding the `-m68020' flag to GCC prevents building anything better,
21244       # like `-m68040'.
21245       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21246       ;;
21247
21248     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21249       # PIC is the default for these OSes.
21250       ;;
21251
21252     mingw* | pw32* | os2*)
21253       # This hack is so that the source file can tell whether it is being
21254       # built for inclusion in a dll (and should export symbols for example).
21255       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21256       ;;
21257
21258     darwin* | rhapsody*)
21259       # PIC is the default on this platform
21260       # Common symbols not allowed in MH_DYLIB files
21261       lt_prog_compiler_pic_F77='-fno-common'
21262       ;;
21263
21264     interix3*)
21265       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21266       # Instead, we relocate shared libraries at runtime.
21267       ;;
21268
21269     msdosdjgpp*)
21270       # Just because we use GCC doesn't mean we suddenly get shared libraries
21271       # on systems that don't support them.
21272       lt_prog_compiler_can_build_shared_F77=no
21273       enable_shared=no
21274       ;;
21275
21276     sysv4*MP*)
21277       if test -d /usr/nec; then
21278         lt_prog_compiler_pic_F77=-Kconform_pic
21279       fi
21280       ;;
21281
21282     hpux*)
21283       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21284       # not for PA HP-UX.
21285       case $host_cpu in
21286       hppa*64*|ia64*)
21287         # +Z the default
21288         ;;
21289       *)
21290         lt_prog_compiler_pic_F77='-fPIC'
21291         ;;
21292       esac
21293       ;;
21294
21295     *)
21296       lt_prog_compiler_pic_F77='-fPIC'
21297       ;;
21298     esac
21299   else
21300     # PORTME Check for flag to pass linker flags through the system compiler.
21301     case $host_os in
21302     aix*)
21303       lt_prog_compiler_wl_F77='-Wl,'
21304       if test "$host_cpu" = ia64; then
21305         # AIX 5 now supports IA64 processor
21306         lt_prog_compiler_static_F77='-Bstatic'
21307       else
21308         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21309       fi
21310       ;;
21311       darwin*)
21312         # PIC is the default on this platform
21313         # Common symbols not allowed in MH_DYLIB files
21314        case $cc_basename in
21315          xlc*)
21316          lt_prog_compiler_pic_F77='-qnocommon'
21317          lt_prog_compiler_wl_F77='-Wl,'
21318          ;;
21319        esac
21320        ;;
21321
21322     mingw* | pw32* | os2*)
21323       # This hack is so that the source file can tell whether it is being
21324       # built for inclusion in a dll (and should export symbols for example).
21325       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21326       ;;
21327
21328     hpux9* | hpux10* | hpux11*)
21329       lt_prog_compiler_wl_F77='-Wl,'
21330       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21331       # not for PA HP-UX.
21332       case $host_cpu in
21333       hppa*64*|ia64*)
21334         # +Z the default
21335         ;;
21336       *)
21337         lt_prog_compiler_pic_F77='+Z'
21338         ;;
21339       esac
21340       # Is there a better lt_prog_compiler_static that works with the bundled CC?
21341       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21342       ;;
21343
21344     irix5* | irix6* | nonstopux*)
21345       lt_prog_compiler_wl_F77='-Wl,'
21346       # PIC (with -KPIC) is the default.
21347       lt_prog_compiler_static_F77='-non_shared'
21348       ;;
21349
21350     newsos6)
21351       lt_prog_compiler_pic_F77='-KPIC'
21352       lt_prog_compiler_static_F77='-Bstatic'
21353       ;;
21354
21355     linux*)
21356       case $cc_basename in
21357       icc* | ecc*)
21358         lt_prog_compiler_wl_F77='-Wl,'
21359         lt_prog_compiler_pic_F77='-KPIC'
21360         lt_prog_compiler_static_F77='-static'
21361         ;;
21362       pgcc* | pgf77* | pgf90* | pgf95*)
21363         # Portland Group compilers (*not* the Pentium gcc compiler,
21364         # which looks to be a dead project)
21365         lt_prog_compiler_wl_F77='-Wl,'
21366         lt_prog_compiler_pic_F77='-fpic'
21367         lt_prog_compiler_static_F77='-Bstatic'
21368         ;;
21369       ccc*)
21370         lt_prog_compiler_wl_F77='-Wl,'
21371         # All Alpha code is PIC.
21372         lt_prog_compiler_static_F77='-non_shared'
21373         ;;
21374       esac
21375       ;;
21376
21377     osf3* | osf4* | osf5*)
21378       lt_prog_compiler_wl_F77='-Wl,'
21379       # All OSF/1 code is PIC.
21380       lt_prog_compiler_static_F77='-non_shared'
21381       ;;
21382
21383     solaris*)
21384       lt_prog_compiler_pic_F77='-KPIC'
21385       lt_prog_compiler_static_F77='-Bstatic'
21386       case $cc_basename in
21387       f77* | f90* | f95*)
21388         lt_prog_compiler_wl_F77='-Qoption ld ';;
21389       *)
21390         lt_prog_compiler_wl_F77='-Wl,';;
21391       esac
21392       ;;
21393
21394     sunos4*)
21395       lt_prog_compiler_wl_F77='-Qoption ld '
21396       lt_prog_compiler_pic_F77='-PIC'
21397       lt_prog_compiler_static_F77='-Bstatic'
21398       ;;
21399
21400     sysv4 | sysv4.2uw2* | sysv4.3*)
21401       lt_prog_compiler_wl_F77='-Wl,'
21402       lt_prog_compiler_pic_F77='-KPIC'
21403       lt_prog_compiler_static_F77='-Bstatic'
21404       ;;
21405
21406     sysv4*MP*)
21407       if test -d /usr/nec ;then
21408         lt_prog_compiler_pic_F77='-Kconform_pic'
21409         lt_prog_compiler_static_F77='-Bstatic'
21410       fi
21411       ;;
21412
21413     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21414       lt_prog_compiler_wl_F77='-Wl,'
21415       lt_prog_compiler_pic_F77='-KPIC'
21416       lt_prog_compiler_static_F77='-Bstatic'
21417       ;;
21418
21419     unicos*)
21420       lt_prog_compiler_wl_F77='-Wl,'
21421       lt_prog_compiler_can_build_shared_F77=no
21422       ;;
21423
21424     uts4*)
21425       lt_prog_compiler_pic_F77='-pic'
21426       lt_prog_compiler_static_F77='-Bstatic'
21427       ;;
21428
21429     *)
21430       lt_prog_compiler_can_build_shared_F77=no
21431       ;;
21432     esac
21433   fi
21434
21435 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21436 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21437
21438 #
21439 # Check to make sure the PIC flag actually works.
21440 #
21441 if test -n "$lt_prog_compiler_pic_F77"; then
21442
21443 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21444 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21445 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21446   echo $ECHO_N "(cached) $ECHO_C" >&6
21447 else
21448   lt_prog_compiler_pic_works_F77=no
21449   ac_outfile=conftest.$ac_objext
21450    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21451    lt_compiler_flag="$lt_prog_compiler_pic_F77"
21452    # Insert the option either (1) after the last *FLAGS variable, or
21453    # (2) before a word containing "conftest.", or (3) at the end.
21454    # Note that $ac_compile itself does not contain backslashes and begins
21455    # with a dollar sign (not a hyphen), so the echo should work correctly.
21456    # The option is referenced via a variable to avoid confusing sed.
21457    lt_compile=`echo "$ac_compile" | $SED \
21458    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21459    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21460    -e 's:$: $lt_compiler_flag:'`
21461    (eval echo "\"\$as_me:21461: $lt_compile\"" >&5)
21462    (eval "$lt_compile" 2>conftest.err)
21463    ac_status=$?
21464    cat conftest.err >&5
21465    echo "$as_me:21465: \$? = $ac_status" >&5
21466    if (exit $ac_status) && test -s "$ac_outfile"; then
21467      # The compiler can only warn and ignore the option if not recognized
21468      # So say no if there are warnings other than the usual output.
21469      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21470      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21471      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21472        lt_prog_compiler_pic_works_F77=yes
21473      fi
21474    fi
21475    $rm conftest*
21476
21477 fi
21478 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21479 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21480
21481 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21482     case $lt_prog_compiler_pic_F77 in
21483      "" | " "*) ;;
21484      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21485      esac
21486 else
21487     lt_prog_compiler_pic_F77=
21488      lt_prog_compiler_can_build_shared_F77=no
21489 fi
21490
21491 fi
21492 case $host_os in
21493   # For platforms which do not support PIC, -DPIC is meaningless:
21494   *djgpp*)
21495     lt_prog_compiler_pic_F77=
21496     ;;
21497   *)
21498     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21499     ;;
21500 esac
21501
21502 #
21503 # Check to make sure the static flag actually works.
21504 #
21505 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21506 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21507 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21508 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21509   echo $ECHO_N "(cached) $ECHO_C" >&6
21510 else
21511   lt_prog_compiler_static_works_F77=no
21512    save_LDFLAGS="$LDFLAGS"
21513    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21514    printf "$lt_simple_link_test_code" > conftest.$ac_ext
21515    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21516      # The linker can only warn and ignore the option if not recognized
21517      # So say no if there are warnings
21518      if test -s conftest.err; then
21519        # Append any errors to the config.log.
21520        cat conftest.err 1>&5
21521        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21522        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21523        if diff conftest.exp conftest.er2 >/dev/null; then
21524          lt_prog_compiler_static_works_F77=yes
21525        fi
21526      else
21527        lt_prog_compiler_static_works_F77=yes
21528      fi
21529    fi
21530    $rm conftest*
21531    LDFLAGS="$save_LDFLAGS"
21532
21533 fi
21534 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21535 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21536
21537 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21538     :
21539 else
21540     lt_prog_compiler_static_F77=
21541 fi
21542
21543
21544 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21545 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21546 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21547   echo $ECHO_N "(cached) $ECHO_C" >&6
21548 else
21549   lt_cv_prog_compiler_c_o_F77=no
21550    $rm -r conftest 2>/dev/null
21551    mkdir conftest
21552    cd conftest
21553    mkdir out
21554    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21555
21556    lt_compiler_flag="-o out/conftest2.$ac_objext"
21557    # Insert the option either (1) after the last *FLAGS variable, or
21558    # (2) before a word containing "conftest.", or (3) at the end.
21559    # Note that $ac_compile itself does not contain backslashes and begins
21560    # with a dollar sign (not a hyphen), so the echo should work correctly.
21561    lt_compile=`echo "$ac_compile" | $SED \
21562    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21563    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21564    -e 's:$: $lt_compiler_flag:'`
21565    (eval echo "\"\$as_me:21565: $lt_compile\"" >&5)
21566    (eval "$lt_compile" 2>out/conftest.err)
21567    ac_status=$?
21568    cat out/conftest.err >&5
21569    echo "$as_me:21569: \$? = $ac_status" >&5
21570    if (exit $ac_status) && test -s out/conftest2.$ac_objext
21571    then
21572      # The compiler can only warn and ignore the option if not recognized
21573      # So say no if there are warnings
21574      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21575      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21576      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21577        lt_cv_prog_compiler_c_o_F77=yes
21578      fi
21579    fi
21580    chmod u+w . 2>&5
21581    $rm conftest*
21582    # SGI C++ compiler will create directory out/ii_files/ for
21583    # template instantiation
21584    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21585    $rm out/* && rmdir out
21586    cd ..
21587    rmdir conftest
21588    $rm conftest*
21589
21590 fi
21591 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21592 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21593
21594
21595 hard_links="nottested"
21596 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21597   # do not overwrite the value of need_locks provided by the user
21598   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21599 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21600   hard_links=yes
21601   $rm conftest*
21602   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21603   touch conftest.a
21604   ln conftest.a conftest.b 2>&5 || hard_links=no
21605   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21606   { echo "$as_me:$LINENO: result: $hard_links" >&5
21607 echo "${ECHO_T}$hard_links" >&6; }
21608   if test "$hard_links" = no; then
21609     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21610 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21611     need_locks=warn
21612   fi
21613 else
21614   need_locks=no
21615 fi
21616
21617 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21618 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21619
21620   runpath_var=
21621   allow_undefined_flag_F77=
21622   enable_shared_with_static_runtimes_F77=no
21623   archive_cmds_F77=
21624   archive_expsym_cmds_F77=
21625   old_archive_From_new_cmds_F77=
21626   old_archive_from_expsyms_cmds_F77=
21627   export_dynamic_flag_spec_F77=
21628   whole_archive_flag_spec_F77=
21629   thread_safe_flag_spec_F77=
21630   hardcode_libdir_flag_spec_F77=
21631   hardcode_libdir_flag_spec_ld_F77=
21632   hardcode_libdir_separator_F77=
21633   hardcode_direct_F77=no
21634   hardcode_minus_L_F77=no
21635   hardcode_shlibpath_var_F77=unsupported
21636   link_all_deplibs_F77=unknown
21637   hardcode_automatic_F77=no
21638   module_cmds_F77=
21639   module_expsym_cmds_F77=
21640   always_export_symbols_F77=no
21641   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21642   # include_expsyms should be a list of space-separated symbols to be *always*
21643   # included in the symbol list
21644   include_expsyms_F77=
21645   # exclude_expsyms can be an extended regexp of symbols to exclude
21646   # it will be wrapped by ` (' and `)$', so one must not match beginning or
21647   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21648   # as well as any symbol that contains `d'.
21649   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21650   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21651   # platforms (ab)use it in PIC code, but their linkers get confused if
21652   # the symbol is explicitly referenced.  Since portable code cannot
21653   # rely on this symbol name, it's probably fine to never include it in
21654   # preloaded symbol tables.
21655   extract_expsyms_cmds=
21656   # Just being paranoid about ensuring that cc_basename is set.
21657   for cc_temp in $compiler""; do
21658   case $cc_temp in
21659     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21660     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21661     \-*) ;;
21662     *) break;;
21663   esac
21664 done
21665 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21666
21667   case $host_os in
21668   cygwin* | mingw* | pw32*)
21669     # FIXME: the MSVC++ port hasn't been tested in a loooong time
21670     # When not using gcc, we currently assume that we are using
21671     # Microsoft Visual C++.
21672     if test "$GCC" != yes; then
21673       with_gnu_ld=no
21674     fi
21675     ;;
21676   interix*)
21677     # we just hope/assume this is gcc and not c89 (= MSVC++)
21678     with_gnu_ld=yes
21679     ;;
21680   openbsd*)
21681     with_gnu_ld=no
21682     ;;
21683   esac
21684
21685   ld_shlibs_F77=yes
21686   if test "$with_gnu_ld" = yes; then
21687     # If archive_cmds runs LD, not CC, wlarc should be empty
21688     wlarc='${wl}'
21689
21690     # Set some defaults for GNU ld with shared library support. These
21691     # are reset later if shared libraries are not supported. Putting them
21692     # here allows them to be overridden if necessary.
21693     runpath_var=LD_RUN_PATH
21694     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21695     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21696     # ancient GNU ld didn't support --whole-archive et. al.
21697     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21698         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21699       else
21700         whole_archive_flag_spec_F77=
21701     fi
21702     supports_anon_versioning=no
21703     case `$LD -v 2>/dev/null` in
21704       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21705       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21706       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21707       *\ 2.11.*) ;; # other 2.11 versions
21708       *) supports_anon_versioning=yes ;;
21709     esac
21710
21711     # See if GNU ld supports shared libraries.
21712     case $host_os in
21713     aix3* | aix4* | aix5*)
21714       # On AIX/PPC, the GNU linker is very broken
21715       if test "$host_cpu" != ia64; then
21716         ld_shlibs_F77=no
21717         cat <<EOF 1>&2
21718
21719 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21720 *** to be unable to reliably create shared libraries on AIX.
21721 *** Therefore, libtool is disabling shared libraries support.  If you
21722 *** really care for shared libraries, you may want to modify your PATH
21723 *** so that a non-GNU linker is found, and then restart.
21724
21725 EOF
21726       fi
21727       ;;
21728
21729     amigaos*)
21730       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)'
21731       hardcode_libdir_flag_spec_F77='-L$libdir'
21732       hardcode_minus_L_F77=yes
21733
21734       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21735       # that the semantics of dynamic libraries on AmigaOS, at least up
21736       # to version 4, is to share data among multiple programs linked
21737       # with the same dynamic library.  Since this doesn't match the
21738       # behavior of shared libraries on other platforms, we can't use
21739       # them.
21740       ld_shlibs_F77=no
21741       ;;
21742
21743     beos*)
21744       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21745         allow_undefined_flag_F77=unsupported
21746         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21747         # support --undefined.  This deserves some investigation.  FIXME
21748         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21749       else
21750         ld_shlibs_F77=no
21751       fi
21752       ;;
21753
21754     cygwin* | mingw* | pw32*)
21755       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21756       # as there is no search path for DLLs.
21757       hardcode_libdir_flag_spec_F77='-L$libdir'
21758       allow_undefined_flag_F77=unsupported
21759       always_export_symbols_F77=no
21760       enable_shared_with_static_runtimes_F77=yes
21761       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21762
21763       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21764         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21765         # If the export-symbols file already is a .def file (1st line
21766         # is EXPORTS), use it as is; otherwise, prepend...
21767         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21768           cp $export_symbols $output_objdir/$soname.def;
21769         else
21770           echo EXPORTS > $output_objdir/$soname.def;
21771           cat $export_symbols >> $output_objdir/$soname.def;
21772         fi~
21773         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21774       else
21775         ld_shlibs_F77=no
21776       fi
21777       ;;
21778
21779     interix3*)
21780       hardcode_direct_F77=no
21781       hardcode_shlibpath_var_F77=no
21782       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21783       export_dynamic_flag_spec_F77='${wl}-E'
21784       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21785       # Instead, shared libraries are loaded at an image base (0x10000000 by
21786       # default) and relocated if they conflict, which is a slow very memory
21787       # consuming and fragmenting process.  To avoid this, we pick a random,
21788       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21789       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
21790       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'
21791       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'
21792       ;;
21793
21794     linux*)
21795       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21796         tmp_addflag=
21797         case $cc_basename,$host_cpu in
21798         pgcc*)                          # Portland Group C compiler
21799           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'
21800           tmp_addflag=' $pic_flag'
21801           ;;
21802         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
21803           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'
21804           tmp_addflag=' $pic_flag -Mnomain' ;;
21805         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
21806           tmp_addflag=' -i_dynamic' ;;
21807         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
21808           tmp_addflag=' -i_dynamic -nofor_main' ;;
21809         ifc* | ifort*)                  # Intel Fortran compiler
21810           tmp_addflag=' -nofor_main' ;;
21811         esac
21812         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21813
21814         if test $supports_anon_versioning = yes; then
21815           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21816   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21817   $echo "local: *; };" >> $output_objdir/$libname.ver~
21818           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21819         fi
21820       else
21821         ld_shlibs_F77=no
21822       fi
21823       ;;
21824
21825     netbsd*)
21826       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21827         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21828         wlarc=
21829       else
21830         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21831         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21832       fi
21833       ;;
21834
21835     solaris*)
21836       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21837         ld_shlibs_F77=no
21838         cat <<EOF 1>&2
21839
21840 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21841 *** create shared libraries on Solaris systems.  Therefore, libtool
21842 *** is disabling shared libraries support.  We urge you to upgrade GNU
21843 *** binutils to release 2.9.1 or newer.  Another option is to modify
21844 *** your PATH or compiler configuration so that the native linker is
21845 *** used, and then restart.
21846
21847 EOF
21848       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21849         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21850         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21851       else
21852         ld_shlibs_F77=no
21853       fi
21854       ;;
21855
21856     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21857       case `$LD -v 2>&1` in
21858         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21859         ld_shlibs_F77=no
21860         cat <<_LT_EOF 1>&2
21861
21862 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21863 *** reliably create shared libraries on SCO systems.  Therefore, libtool
21864 *** is disabling shared libraries support.  We urge you to upgrade GNU
21865 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
21866 *** your PATH or compiler configuration so that the native linker is
21867 *** used, and then restart.
21868
21869 _LT_EOF
21870         ;;
21871         *)
21872           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21873             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21874             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21875             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21876           else
21877             ld_shlibs_F77=no
21878           fi
21879         ;;
21880       esac
21881       ;;
21882
21883     sunos4*)
21884       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21885       wlarc=
21886       hardcode_direct_F77=yes
21887       hardcode_shlibpath_var_F77=no
21888       ;;
21889
21890     *)
21891       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21892         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21893         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21894       else
21895         ld_shlibs_F77=no
21896       fi
21897       ;;
21898     esac
21899
21900     if test "$ld_shlibs_F77" = no; then
21901       runpath_var=
21902       hardcode_libdir_flag_spec_F77=
21903       export_dynamic_flag_spec_F77=
21904       whole_archive_flag_spec_F77=
21905     fi
21906   else
21907     # PORTME fill in a description of your system's linker (not GNU ld)
21908     case $host_os in
21909     aix3*)
21910       allow_undefined_flag_F77=unsupported
21911       always_export_symbols_F77=yes
21912       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'
21913       # Note: this linker hardcodes the directories in LIBPATH if there
21914       # are no directories specified by -L.
21915       hardcode_minus_L_F77=yes
21916       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
21917         # Neither direct hardcoding nor static linking is supported with a
21918         # broken collect2.
21919         hardcode_direct_F77=unsupported
21920       fi
21921       ;;
21922
21923     aix4* | aix5*)
21924       if test "$host_cpu" = ia64; then
21925         # On IA64, the linker does run time linking by default, so we don't
21926         # have to do anything special.
21927         aix_use_runtimelinking=no
21928         exp_sym_flag='-Bexport'
21929         no_entry_flag=""
21930       else
21931         # If we're using GNU nm, then we don't want the "-C" option.
21932         # -C means demangle to AIX nm, but means don't demangle with GNU nm
21933         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21934           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'
21935         else
21936           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'
21937         fi
21938         aix_use_runtimelinking=no
21939
21940         # Test if we are trying to use run time linking or normal
21941         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21942         # need to do runtime linking.
21943         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21944           for ld_flag in $LDFLAGS; do
21945           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21946             aix_use_runtimelinking=yes
21947             break
21948           fi
21949           done
21950           ;;
21951         esac
21952
21953         exp_sym_flag='-bexport'
21954         no_entry_flag='-bnoentry'
21955       fi
21956
21957       # When large executables or shared objects are built, AIX ld can
21958       # have problems creating the table of contents.  If linking a library
21959       # or program results in "error TOC overflow" add -mminimal-toc to
21960       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
21961       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21962
21963       archive_cmds_F77=''
21964       hardcode_direct_F77=yes
21965       hardcode_libdir_separator_F77=':'
21966       link_all_deplibs_F77=yes
21967
21968       if test "$GCC" = yes; then
21969         case $host_os in aix4.[012]|aix4.[012].*)
21970         # We only want to do this on AIX 4.2 and lower, the check
21971         # below for broken collect2 doesn't work under 4.3+
21972           collect2name=`${CC} -print-prog-name=collect2`
21973           if test -f "$collect2name" && \
21974            strings "$collect2name" | grep resolve_lib_name >/dev/null
21975           then
21976           # We have reworked collect2
21977           hardcode_direct_F77=yes
21978           else
21979           # We have old collect2
21980           hardcode_direct_F77=unsupported
21981           # It fails to find uninstalled libraries when the uninstalled
21982           # path is not listed in the libpath.  Setting hardcode_minus_L
21983           # to unsupported forces relinking
21984           hardcode_minus_L_F77=yes
21985           hardcode_libdir_flag_spec_F77='-L$libdir'
21986           hardcode_libdir_separator_F77=
21987           fi
21988           ;;
21989         esac
21990         shared_flag='-shared'
21991         if test "$aix_use_runtimelinking" = yes; then
21992           shared_flag="$shared_flag "'${wl}-G'
21993         fi
21994       else
21995         # not using gcc
21996         if test "$host_cpu" = ia64; then
21997         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21998         # chokes on -Wl,-G. The following line is correct:
21999           shared_flag='-G'
22000         else
22001           if test "$aix_use_runtimelinking" = yes; then
22002             shared_flag='${wl}-G'
22003           else
22004             shared_flag='${wl}-bM:SRE'
22005           fi
22006         fi
22007       fi
22008
22009       # It seems that -bexpall does not export symbols beginning with
22010       # underscore (_), so it is better to generate a list of symbols to export.
22011       always_export_symbols_F77=yes
22012       if test "$aix_use_runtimelinking" = yes; then
22013         # Warning - without using the other runtime loading flags (-brtl),
22014         # -berok will link without error, but may produce a broken library.
22015         allow_undefined_flag_F77='-berok'
22016        # Determine the default libpath from the value encoded in an empty executable.
22017        cat >conftest.$ac_ext <<_ACEOF
22018       program main
22019
22020       end
22021 _ACEOF
22022 rm -f conftest.$ac_objext conftest$ac_exeext
22023 if { (ac_try="$ac_link"
22024 case "(($ac_try" in
22025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22026   *) ac_try_echo=$ac_try;;
22027 esac
22028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22029   (eval "$ac_link") 2>conftest.er1
22030   ac_status=$?
22031   grep -v '^ *+' conftest.er1 >conftest.err
22032   rm -f conftest.er1
22033   cat conftest.err >&5
22034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22035   (exit $ac_status); } &&
22036          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22037   { (case "(($ac_try" in
22038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22039   *) ac_try_echo=$ac_try;;
22040 esac
22041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22042   (eval "$ac_try") 2>&5
22043   ac_status=$?
22044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22045   (exit $ac_status); }; } &&
22046          { ac_try='test -s conftest$ac_exeext'
22047   { (case "(($ac_try" in
22048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22049   *) ac_try_echo=$ac_try;;
22050 esac
22051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22052   (eval "$ac_try") 2>&5
22053   ac_status=$?
22054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22055   (exit $ac_status); }; }; then
22056
22057 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22058 }'`
22059 # Check for a 64-bit object if we didn't find anything.
22060 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; }
22061 }'`; fi
22062 else
22063   echo "$as_me: failed program was:" >&5
22064 sed 's/^/| /' conftest.$ac_ext >&5
22065
22066
22067 fi
22068
22069 rm -f core conftest.err conftest.$ac_objext \
22070       conftest$ac_exeext conftest.$ac_ext
22071 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22072
22073        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22074         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"
22075        else
22076         if test "$host_cpu" = ia64; then
22077           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22078           allow_undefined_flag_F77="-z nodefs"
22079           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"
22080         else
22081          # Determine the default libpath from the value encoded in an empty executable.
22082          cat >conftest.$ac_ext <<_ACEOF
22083       program main
22084
22085       end
22086 _ACEOF
22087 rm -f conftest.$ac_objext conftest$ac_exeext
22088 if { (ac_try="$ac_link"
22089 case "(($ac_try" in
22090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22091   *) ac_try_echo=$ac_try;;
22092 esac
22093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22094   (eval "$ac_link") 2>conftest.er1
22095   ac_status=$?
22096   grep -v '^ *+' conftest.er1 >conftest.err
22097   rm -f conftest.er1
22098   cat conftest.err >&5
22099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22100   (exit $ac_status); } &&
22101          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22102   { (case "(($ac_try" in
22103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22104   *) ac_try_echo=$ac_try;;
22105 esac
22106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22107   (eval "$ac_try") 2>&5
22108   ac_status=$?
22109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22110   (exit $ac_status); }; } &&
22111          { ac_try='test -s conftest$ac_exeext'
22112   { (case "(($ac_try" in
22113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22114   *) ac_try_echo=$ac_try;;
22115 esac
22116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22117   (eval "$ac_try") 2>&5
22118   ac_status=$?
22119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22120   (exit $ac_status); }; }; then
22121
22122 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22123 }'`
22124 # Check for a 64-bit object if we didn't find anything.
22125 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; }
22126 }'`; fi
22127 else
22128   echo "$as_me: failed program was:" >&5
22129 sed 's/^/| /' conftest.$ac_ext >&5
22130
22131
22132 fi
22133
22134 rm -f core conftest.err conftest.$ac_objext \
22135       conftest$ac_exeext conftest.$ac_ext
22136 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22137
22138          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22139           # Warning - without using the other run time loading flags,
22140           # -berok will link without error, but may produce a broken library.
22141           no_undefined_flag_F77=' ${wl}-bernotok'
22142           allow_undefined_flag_F77=' ${wl}-berok'
22143           # Exported symbols can be pulled into shared objects from archives
22144           whole_archive_flag_spec_F77='$convenience'
22145           archive_cmds_need_lc_F77=yes
22146           # This is similar to how AIX traditionally builds its shared libraries.
22147           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'
22148         fi
22149       fi
22150       ;;
22151
22152     amigaos*)
22153       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)'
22154       hardcode_libdir_flag_spec_F77='-L$libdir'
22155       hardcode_minus_L_F77=yes
22156       # see comment about different semantics on the GNU ld section
22157       ld_shlibs_F77=no
22158       ;;
22159
22160     bsdi[45]*)
22161       export_dynamic_flag_spec_F77=-rdynamic
22162       ;;
22163
22164     cygwin* | mingw* | pw32*)
22165       # When not using gcc, we currently assume that we are using
22166       # Microsoft Visual C++.
22167       # hardcode_libdir_flag_spec is actually meaningless, as there is
22168       # no search path for DLLs.
22169       hardcode_libdir_flag_spec_F77=' '
22170       allow_undefined_flag_F77=unsupported
22171       # Tell ltmain to make .lib files, not .a files.
22172       libext=lib
22173       # Tell ltmain to make .dll files, not .so files.
22174       shrext_cmds=".dll"
22175       # FIXME: Setting linknames here is a bad hack.
22176       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22177       # The linker will automatically build a .lib file if we build a DLL.
22178       old_archive_From_new_cmds_F77='true'
22179       # FIXME: Should let the user specify the lib program.
22180       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22181       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22182       enable_shared_with_static_runtimes_F77=yes
22183       ;;
22184
22185     darwin* | rhapsody*)
22186       case $host_os in
22187         rhapsody* | darwin1.[012])
22188          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22189          ;;
22190        *) # Darwin 1.3 on
22191          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22192            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22193          else
22194            case ${MACOSX_DEPLOYMENT_TARGET} in
22195              10.[012])
22196                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22197                ;;
22198              10.*)
22199                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22200                ;;
22201            esac
22202          fi
22203          ;;
22204       esac
22205       archive_cmds_need_lc_F77=no
22206       hardcode_direct_F77=no
22207       hardcode_automatic_F77=yes
22208       hardcode_shlibpath_var_F77=unsupported
22209       whole_archive_flag_spec_F77=''
22210       link_all_deplibs_F77=yes
22211     if test "$GCC" = yes ; then
22212         output_verbose_link_cmd='echo'
22213         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22214       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22215       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22216       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}'
22217       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}'
22218     else
22219       case $cc_basename in
22220         xlc*)
22221          output_verbose_link_cmd='echo'
22222          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22223          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22224           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22225          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}'
22226           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}'
22227           ;;
22228        *)
22229          ld_shlibs_F77=no
22230           ;;
22231       esac
22232     fi
22233       ;;
22234
22235     dgux*)
22236       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22237       hardcode_libdir_flag_spec_F77='-L$libdir'
22238       hardcode_shlibpath_var_F77=no
22239       ;;
22240
22241     freebsd1*)
22242       ld_shlibs_F77=no
22243       ;;
22244
22245     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22246     # support.  Future versions do this automatically, but an explicit c++rt0.o
22247     # does not break anything, and helps significantly (at the cost of a little
22248     # extra space).
22249     freebsd2.2*)
22250       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22251       hardcode_libdir_flag_spec_F77='-R$libdir'
22252       hardcode_direct_F77=yes
22253       hardcode_shlibpath_var_F77=no
22254       ;;
22255
22256     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22257     freebsd2*)
22258       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22259       hardcode_direct_F77=yes
22260       hardcode_minus_L_F77=yes
22261       hardcode_shlibpath_var_F77=no
22262       ;;
22263
22264     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22265     freebsd* | kfreebsd*-gnu | dragonfly*)
22266       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22267       hardcode_libdir_flag_spec_F77='-R$libdir'
22268       hardcode_direct_F77=yes
22269       hardcode_shlibpath_var_F77=no
22270       ;;
22271
22272     hpux9*)
22273       if test "$GCC" = yes; then
22274         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'
22275       else
22276         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'
22277       fi
22278       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22279       hardcode_libdir_separator_F77=:
22280       hardcode_direct_F77=yes
22281
22282       # hardcode_minus_L: Not really in the search PATH,
22283       # but as the default location of the library.
22284       hardcode_minus_L_F77=yes
22285       export_dynamic_flag_spec_F77='${wl}-E'
22286       ;;
22287
22288     hpux10*)
22289       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22290         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22291       else
22292         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22293       fi
22294       if test "$with_gnu_ld" = no; then
22295         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22296         hardcode_libdir_separator_F77=:
22297
22298         hardcode_direct_F77=yes
22299         export_dynamic_flag_spec_F77='${wl}-E'
22300
22301         # hardcode_minus_L: Not really in the search PATH,
22302         # but as the default location of the library.
22303         hardcode_minus_L_F77=yes
22304       fi
22305       ;;
22306
22307     hpux11*)
22308       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22309         case $host_cpu in
22310         hppa*64*)
22311           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22312           ;;
22313         ia64*)
22314           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22315           ;;
22316         *)
22317           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22318           ;;
22319         esac
22320       else
22321         case $host_cpu in
22322         hppa*64*)
22323           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22324           ;;
22325         ia64*)
22326           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22327           ;;
22328         *)
22329           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22330           ;;
22331         esac
22332       fi
22333       if test "$with_gnu_ld" = no; then
22334         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22335         hardcode_libdir_separator_F77=:
22336
22337         case $host_cpu in
22338         hppa*64*|ia64*)
22339           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22340           hardcode_direct_F77=no
22341           hardcode_shlibpath_var_F77=no
22342           ;;
22343         *)
22344           hardcode_direct_F77=yes
22345           export_dynamic_flag_spec_F77='${wl}-E'
22346
22347           # hardcode_minus_L: Not really in the search PATH,
22348           # but as the default location of the library.
22349           hardcode_minus_L_F77=yes
22350           ;;
22351         esac
22352       fi
22353       ;;
22354
22355     irix5* | irix6* | nonstopux*)
22356       if test "$GCC" = yes; then
22357         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'
22358       else
22359         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'
22360         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22361       fi
22362       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22363       hardcode_libdir_separator_F77=:
22364       link_all_deplibs_F77=yes
22365       ;;
22366
22367     netbsd*)
22368       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22369         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
22370       else
22371         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
22372       fi
22373       hardcode_libdir_flag_spec_F77='-R$libdir'
22374       hardcode_direct_F77=yes
22375       hardcode_shlibpath_var_F77=no
22376       ;;
22377
22378     newsos6)
22379       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22380       hardcode_direct_F77=yes
22381       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22382       hardcode_libdir_separator_F77=:
22383       hardcode_shlibpath_var_F77=no
22384       ;;
22385
22386     openbsd*)
22387       hardcode_direct_F77=yes
22388       hardcode_shlibpath_var_F77=no
22389       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22390         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22391         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22392         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22393         export_dynamic_flag_spec_F77='${wl}-E'
22394       else
22395        case $host_os in
22396          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22397            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22398            hardcode_libdir_flag_spec_F77='-R$libdir'
22399            ;;
22400          *)
22401            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22402            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22403            ;;
22404        esac
22405       fi
22406       ;;
22407
22408     os2*)
22409       hardcode_libdir_flag_spec_F77='-L$libdir'
22410       hardcode_minus_L_F77=yes
22411       allow_undefined_flag_F77=unsupported
22412       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'
22413       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22414       ;;
22415
22416     osf3*)
22417       if test "$GCC" = yes; then
22418         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22419         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'
22420       else
22421         allow_undefined_flag_F77=' -expect_unresolved \*'
22422         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'
22423       fi
22424       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22425       hardcode_libdir_separator_F77=:
22426       ;;
22427
22428     osf4* | osf5*)      # as osf3* with the addition of -msym flag
22429       if test "$GCC" = yes; then
22430         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22431         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'
22432         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22433       else
22434         allow_undefined_flag_F77=' -expect_unresolved \*'
22435         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'
22436         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~
22437         $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'
22438
22439         # Both c and cxx compiler support -rpath directly
22440         hardcode_libdir_flag_spec_F77='-rpath $libdir'
22441       fi
22442       hardcode_libdir_separator_F77=:
22443       ;;
22444
22445     solaris*)
22446       no_undefined_flag_F77=' -z text'
22447       if test "$GCC" = yes; then
22448         wlarc='${wl}'
22449         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22450         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22451           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22452       else
22453         wlarc=''
22454         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22455         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22456         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22457       fi
22458       hardcode_libdir_flag_spec_F77='-R$libdir'
22459       hardcode_shlibpath_var_F77=no
22460       case $host_os in
22461       solaris2.[0-5] | solaris2.[0-5].*) ;;
22462       *)
22463         # The compiler driver will combine linker options so we
22464         # cannot just pass the convience library names through
22465         # without $wl, iff we do not link with $LD.
22466         # Luckily, gcc supports the same syntax we need for Sun Studio.
22467         # Supported since Solaris 2.6 (maybe 2.5.1?)
22468         case $wlarc in
22469         '')
22470           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22471         *)
22472           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' ;;
22473         esac ;;
22474       esac
22475       link_all_deplibs_F77=yes
22476       ;;
22477
22478     sunos4*)
22479       if test "x$host_vendor" = xsequent; then
22480         # Use $CC to link under sequent, because it throws in some extra .o
22481         # files that make .init and .fini sections work.
22482         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22483       else
22484         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22485       fi
22486       hardcode_libdir_flag_spec_F77='-L$libdir'
22487       hardcode_direct_F77=yes
22488       hardcode_minus_L_F77=yes
22489       hardcode_shlibpath_var_F77=no
22490       ;;
22491
22492     sysv4)
22493       case $host_vendor in
22494         sni)
22495           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22496           hardcode_direct_F77=yes # is this really true???
22497         ;;
22498         siemens)
22499           ## LD is ld it makes a PLAMLIB
22500           ## CC just makes a GrossModule.
22501           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22502           reload_cmds_F77='$CC -r -o $output$reload_objs'
22503           hardcode_direct_F77=no
22504         ;;
22505         motorola)
22506           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22507           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22508         ;;
22509       esac
22510       runpath_var='LD_RUN_PATH'
22511       hardcode_shlibpath_var_F77=no
22512       ;;
22513
22514     sysv4.3*)
22515       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22516       hardcode_shlibpath_var_F77=no
22517       export_dynamic_flag_spec_F77='-Bexport'
22518       ;;
22519
22520     sysv4*MP*)
22521       if test -d /usr/nec; then
22522         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22523         hardcode_shlibpath_var_F77=no
22524         runpath_var=LD_RUN_PATH
22525         hardcode_runpath_var=yes
22526         ld_shlibs_F77=yes
22527       fi
22528       ;;
22529
22530     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22531       no_undefined_flag_F77='${wl}-z,text'
22532       archive_cmds_need_lc_F77=no
22533       hardcode_shlibpath_var_F77=no
22534       runpath_var='LD_RUN_PATH'
22535
22536       if test "$GCC" = yes; then
22537         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22538         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22539       else
22540         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22541         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22542       fi
22543       ;;
22544
22545     sysv5* | sco3.2v5* | sco5v6*)
22546       # Note: We can NOT use -z defs as we might desire, because we do not
22547       # link with -lc, and that would cause any symbols used from libc to
22548       # always be unresolved, which means just about no library would
22549       # ever link correctly.  If we're not using GNU ld we use -z text
22550       # though, which does catch some bad symbols but isn't as heavy-handed
22551       # as -z defs.
22552       no_undefined_flag_F77='${wl}-z,text'
22553       allow_undefined_flag_F77='${wl}-z,nodefs'
22554       archive_cmds_need_lc_F77=no
22555       hardcode_shlibpath_var_F77=no
22556       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22557       hardcode_libdir_separator_F77=':'
22558       link_all_deplibs_F77=yes
22559       export_dynamic_flag_spec_F77='${wl}-Bexport'
22560       runpath_var='LD_RUN_PATH'
22561
22562       if test "$GCC" = yes; then
22563         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22564         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22565       else
22566         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22567         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22568       fi
22569       ;;
22570
22571     uts4*)
22572       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22573       hardcode_libdir_flag_spec_F77='-L$libdir'
22574       hardcode_shlibpath_var_F77=no
22575       ;;
22576
22577     *)
22578       ld_shlibs_F77=no
22579       ;;
22580     esac
22581   fi
22582
22583 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22584 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22585 test "$ld_shlibs_F77" = no && can_build_shared=no
22586
22587 #
22588 # Do we need to explicitly link libc?
22589 #
22590 case "x$archive_cmds_need_lc_F77" in
22591 x|xyes)
22592   # Assume -lc should be added
22593   archive_cmds_need_lc_F77=yes
22594
22595   if test "$enable_shared" = yes && test "$GCC" = yes; then
22596     case $archive_cmds_F77 in
22597     *'~'*)
22598       # FIXME: we may have to deal with multi-command sequences.
22599       ;;
22600     '$CC '*)
22601       # Test whether the compiler implicitly links with -lc since on some
22602       # systems, -lgcc has to come before -lc. If gcc already passes -lc
22603       # to ld, don't add -lc before -lgcc.
22604       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22605 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22606       $rm conftest*
22607       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22608
22609       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22610   (eval $ac_compile) 2>&5
22611   ac_status=$?
22612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22613   (exit $ac_status); } 2>conftest.err; then
22614         soname=conftest
22615         lib=conftest
22616         libobjs=conftest.$ac_objext
22617         deplibs=
22618         wl=$lt_prog_compiler_wl_F77
22619         pic_flag=$lt_prog_compiler_pic_F77
22620         compiler_flags=-v
22621         linker_flags=-v
22622         verstring=
22623         output_objdir=.
22624         libname=conftest
22625         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22626         allow_undefined_flag_F77=
22627         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22628   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22629   ac_status=$?
22630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22631   (exit $ac_status); }
22632         then
22633           archive_cmds_need_lc_F77=no
22634         else
22635           archive_cmds_need_lc_F77=yes
22636         fi
22637         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22638       else
22639         cat conftest.err 1>&5
22640       fi
22641       $rm conftest*
22642       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22643 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22644       ;;
22645     esac
22646   fi
22647   ;;
22648 esac
22649
22650 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22651 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22652 library_names_spec=
22653 libname_spec='lib$name'
22654 soname_spec=
22655 shrext_cmds=".so"
22656 postinstall_cmds=
22657 postuninstall_cmds=
22658 finish_cmds=
22659 finish_eval=
22660 shlibpath_var=
22661 shlibpath_overrides_runpath=unknown
22662 version_type=none
22663 dynamic_linker="$host_os ld.so"
22664 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22665 if test "$GCC" = yes; then
22666   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22667   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22668     # if the path contains ";" then we assume it to be the separator
22669     # otherwise default to the standard path separator (i.e. ":") - it is
22670     # assumed that no part of a normal pathname contains ";" but that should
22671     # okay in the real world where ";" in dirpaths is itself problematic.
22672     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22673   else
22674     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22675   fi
22676 else
22677   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22678 fi
22679 need_lib_prefix=unknown
22680 hardcode_into_libs=no
22681
22682 # when you set need_version to no, make sure it does not cause -set_version
22683 # flags to be left without arguments
22684 need_version=unknown
22685
22686 case $host_os in
22687 aix3*)
22688   version_type=linux
22689   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22690   shlibpath_var=LIBPATH
22691
22692   # AIX 3 has no versioning support, so we append a major version to the name.
22693   soname_spec='${libname}${release}${shared_ext}$major'
22694   ;;
22695
22696 aix4* | aix5*)
22697   version_type=linux
22698   need_lib_prefix=no
22699   need_version=no
22700   hardcode_into_libs=yes
22701   if test "$host_cpu" = ia64; then
22702     # AIX 5 supports IA64
22703     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22704     shlibpath_var=LD_LIBRARY_PATH
22705   else
22706     # With GCC up to 2.95.x, collect2 would create an import file
22707     # for dependence libraries.  The import file would start with
22708     # the line `#! .'.  This would cause the generated library to
22709     # depend on `.', always an invalid library.  This was fixed in
22710     # development snapshots of GCC prior to 3.0.
22711     case $host_os in
22712       aix4 | aix4.[01] | aix4.[01].*)
22713       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22714            echo ' yes '
22715            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22716         :
22717       else
22718         can_build_shared=no
22719       fi
22720       ;;
22721     esac
22722     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22723     # soname into executable. Probably we can add versioning support to
22724     # collect2, so additional links can be useful in future.
22725     if test "$aix_use_runtimelinking" = yes; then
22726       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22727       # instead of lib<name>.a to let people know that these are not
22728       # typical AIX shared libraries.
22729       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22730     else
22731       # We preserve .a as extension for shared libraries through AIX4.2
22732       # and later when we are not doing run time linking.
22733       library_names_spec='${libname}${release}.a $libname.a'
22734       soname_spec='${libname}${release}${shared_ext}$major'
22735     fi
22736     shlibpath_var=LIBPATH
22737   fi
22738   ;;
22739
22740 amigaos*)
22741   library_names_spec='$libname.ixlibrary $libname.a'
22742   # Create ${libname}_ixlibrary.a entries in /sys/libs.
22743   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'
22744   ;;
22745
22746 beos*)
22747   library_names_spec='${libname}${shared_ext}'
22748   dynamic_linker="$host_os ld.so"
22749   shlibpath_var=LIBRARY_PATH
22750   ;;
22751
22752 bsdi[45]*)
22753   version_type=linux
22754   need_version=no
22755   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22756   soname_spec='${libname}${release}${shared_ext}$major'
22757   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22758   shlibpath_var=LD_LIBRARY_PATH
22759   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22760   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22761   # the default ld.so.conf also contains /usr/contrib/lib and
22762   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22763   # libtool to hard-code these into programs
22764   ;;
22765
22766 cygwin* | mingw* | pw32*)
22767   version_type=windows
22768   shrext_cmds=".dll"
22769   need_version=no
22770   need_lib_prefix=no
22771
22772   case $GCC,$host_os in
22773   yes,cygwin* | yes,mingw* | yes,pw32*)
22774     library_names_spec='$libname.dll.a'
22775     # DLL is installed to $(libdir)/../bin by postinstall_cmds
22776     postinstall_cmds='base_file=`basename \${file}`~
22777       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22778       dldir=$destdir/`dirname \$dlpath`~
22779       test -d \$dldir || mkdir -p \$dldir~
22780       $install_prog $dir/$dlname \$dldir/$dlname~
22781       chmod a+x \$dldir/$dlname'
22782     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22783       dlpath=$dir/\$dldll~
22784        $rm \$dlpath'
22785     shlibpath_overrides_runpath=yes
22786
22787     case $host_os in
22788     cygwin*)
22789       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22790       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22791       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22792       ;;
22793     mingw*)
22794       # MinGW DLLs use traditional 'lib' prefix
22795       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22796       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22797       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22798         # It is most probably a Windows format PATH printed by
22799         # mingw gcc, but we are running on Cygwin. Gcc prints its search
22800         # path with ; separators, and with drive letters. We can handle the
22801         # drive letters (cygwin fileutils understands them), so leave them,
22802         # especially as we might pass files found there to a mingw objdump,
22803         # which wouldn't understand a cygwinified path. Ahh.
22804         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22805       else
22806         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22807       fi
22808       ;;
22809     pw32*)
22810       # pw32 DLLs use 'pw' prefix rather than 'lib'
22811       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22812       ;;
22813     esac
22814     ;;
22815
22816   *)
22817     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22818     ;;
22819   esac
22820   dynamic_linker='Win32 ld.exe'
22821   # FIXME: first we should search . and the directory the executable is in
22822   shlibpath_var=PATH
22823   ;;
22824
22825 darwin* | rhapsody*)
22826   dynamic_linker="$host_os dyld"
22827   version_type=darwin
22828   need_lib_prefix=no
22829   need_version=no
22830   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22831   soname_spec='${libname}${release}${major}$shared_ext'
22832   shlibpath_overrides_runpath=yes
22833   shlibpath_var=DYLD_LIBRARY_PATH
22834   shrext_cmds='.dylib'
22835   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22836   if test "$GCC" = yes; then
22837     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"`
22838   else
22839     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22840   fi
22841   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22842   ;;
22843
22844 dgux*)
22845   version_type=linux
22846   need_lib_prefix=no
22847   need_version=no
22848   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22849   soname_spec='${libname}${release}${shared_ext}$major'
22850   shlibpath_var=LD_LIBRARY_PATH
22851   ;;
22852
22853 freebsd1*)
22854   dynamic_linker=no
22855   ;;
22856
22857 kfreebsd*-gnu)
22858   version_type=linux
22859   need_lib_prefix=no
22860   need_version=no
22861   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22862   soname_spec='${libname}${release}${shared_ext}$major'
22863   shlibpath_var=LD_LIBRARY_PATH
22864   shlibpath_overrides_runpath=no
22865   hardcode_into_libs=yes
22866   dynamic_linker='GNU ld.so'
22867   ;;
22868
22869 freebsd* | dragonfly*)
22870   # DragonFly does not have aout.  When/if they implement a new
22871   # versioning mechanism, adjust this.
22872   if test -x /usr/bin/objformat; then
22873     objformat=`/usr/bin/objformat`
22874   else
22875     case $host_os in
22876     freebsd[123]*) objformat=aout ;;
22877     *) objformat=elf ;;
22878     esac
22879   fi
22880   version_type=freebsd-$objformat
22881   case $version_type in
22882     freebsd-elf*)
22883       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22884       need_version=no
22885       need_lib_prefix=no
22886       ;;
22887     freebsd-*)
22888       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22889       need_version=yes
22890       ;;
22891   esac
22892   shlibpath_var=LD_LIBRARY_PATH
22893   case $host_os in
22894   freebsd2*)
22895     shlibpath_overrides_runpath=yes
22896     ;;
22897   freebsd3.[01]* | freebsdelf3.[01]*)
22898     shlibpath_overrides_runpath=yes
22899     hardcode_into_libs=yes
22900     ;;
22901   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22902   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22903     shlibpath_overrides_runpath=no
22904     hardcode_into_libs=yes
22905     ;;
22906   freebsd*) # from 4.6 on
22907     shlibpath_overrides_runpath=yes
22908     hardcode_into_libs=yes
22909     ;;
22910   esac
22911   ;;
22912
22913 gnu*)
22914   version_type=linux
22915   need_lib_prefix=no
22916   need_version=no
22917   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22918   soname_spec='${libname}${release}${shared_ext}$major'
22919   shlibpath_var=LD_LIBRARY_PATH
22920   hardcode_into_libs=yes
22921   ;;
22922
22923 hpux9* | hpux10* | hpux11*)
22924   # Give a soname corresponding to the major version so that dld.sl refuses to
22925   # link against other versions.
22926   version_type=sunos
22927   need_lib_prefix=no
22928   need_version=no
22929   case $host_cpu in
22930   ia64*)
22931     shrext_cmds='.so'
22932     hardcode_into_libs=yes
22933     dynamic_linker="$host_os dld.so"
22934     shlibpath_var=LD_LIBRARY_PATH
22935     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22936     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22937     soname_spec='${libname}${release}${shared_ext}$major'
22938     if test "X$HPUX_IA64_MODE" = X32; then
22939       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22940     else
22941       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22942     fi
22943     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22944     ;;
22945    hppa*64*)
22946      shrext_cmds='.sl'
22947      hardcode_into_libs=yes
22948      dynamic_linker="$host_os dld.sl"
22949      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22950      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22951      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22952      soname_spec='${libname}${release}${shared_ext}$major'
22953      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22954      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22955      ;;
22956    *)
22957     shrext_cmds='.sl'
22958     dynamic_linker="$host_os dld.sl"
22959     shlibpath_var=SHLIB_PATH
22960     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22961     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22962     soname_spec='${libname}${release}${shared_ext}$major'
22963     ;;
22964   esac
22965   # HP-UX runs *really* slowly unless shared libraries are mode 555.
22966   postinstall_cmds='chmod 555 $lib'
22967   ;;
22968
22969 interix3*)
22970   version_type=linux
22971   need_lib_prefix=no
22972   need_version=no
22973   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22974   soname_spec='${libname}${release}${shared_ext}$major'
22975   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22976   shlibpath_var=LD_LIBRARY_PATH
22977   shlibpath_overrides_runpath=no
22978   hardcode_into_libs=yes
22979   ;;
22980
22981 irix5* | irix6* | nonstopux*)
22982   case $host_os in
22983     nonstopux*) version_type=nonstopux ;;
22984     *)
22985         if test "$lt_cv_prog_gnu_ld" = yes; then
22986                 version_type=linux
22987         else
22988                 version_type=irix
22989         fi ;;
22990   esac
22991   need_lib_prefix=no
22992   need_version=no
22993   soname_spec='${libname}${release}${shared_ext}$major'
22994   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22995   case $host_os in
22996   irix5* | nonstopux*)
22997     libsuff= shlibsuff=
22998     ;;
22999   *)
23000     case $LD in # libtool.m4 will add one of these switches to LD
23001     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23002       libsuff= shlibsuff= libmagic=32-bit;;
23003     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23004       libsuff=32 shlibsuff=N32 libmagic=N32;;
23005     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23006       libsuff=64 shlibsuff=64 libmagic=64-bit;;
23007     *) libsuff= shlibsuff= libmagic=never-match;;
23008     esac
23009     ;;
23010   esac
23011   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23012   shlibpath_overrides_runpath=no
23013   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23014   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23015   hardcode_into_libs=yes
23016   ;;
23017
23018 # No shared lib support for Linux oldld, aout, or coff.
23019 linux*oldld* | linux*aout* | linux*coff*)
23020   dynamic_linker=no
23021   ;;
23022
23023 # This must be Linux ELF.
23024 linux*)
23025   version_type=linux
23026   need_lib_prefix=no
23027   need_version=no
23028   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23029   soname_spec='${libname}${release}${shared_ext}$major'
23030   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23031   shlibpath_var=LD_LIBRARY_PATH
23032   shlibpath_overrides_runpath=no
23033   # This implies no fast_install, which is unacceptable.
23034   # Some rework will be needed to allow for fast_install
23035   # before this can be enabled.
23036   hardcode_into_libs=yes
23037
23038   # Append ld.so.conf contents to the search path
23039   if test -f /etc/ld.so.conf; then
23040     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' ' '`
23041     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23042   fi
23043
23044   # We used to test for /lib/ld.so.1 and disable shared libraries on
23045   # powerpc, because MkLinux only supported shared libraries with the
23046   # GNU dynamic linker.  Since this was broken with cross compilers,
23047   # most powerpc-linux boxes support dynamic linking these days and
23048   # people can always --disable-shared, the test was removed, and we
23049   # assume the GNU/Linux dynamic linker is in use.
23050   dynamic_linker='GNU/Linux ld.so'
23051   ;;
23052
23053 knetbsd*-gnu)
23054   version_type=linux
23055   need_lib_prefix=no
23056   need_version=no
23057   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23058   soname_spec='${libname}${release}${shared_ext}$major'
23059   shlibpath_var=LD_LIBRARY_PATH
23060   shlibpath_overrides_runpath=no
23061   hardcode_into_libs=yes
23062   dynamic_linker='GNU ld.so'
23063   ;;
23064
23065 netbsd*)
23066   version_type=sunos
23067   need_lib_prefix=no
23068   need_version=no
23069   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23070     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23071     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23072     dynamic_linker='NetBSD (a.out) ld.so'
23073   else
23074     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23075     soname_spec='${libname}${release}${shared_ext}$major'
23076     dynamic_linker='NetBSD ld.elf_so'
23077   fi
23078   shlibpath_var=LD_LIBRARY_PATH
23079   shlibpath_overrides_runpath=yes
23080   hardcode_into_libs=yes
23081   ;;
23082
23083 newsos6)
23084   version_type=linux
23085   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23086   shlibpath_var=LD_LIBRARY_PATH
23087   shlibpath_overrides_runpath=yes
23088   ;;
23089
23090 nto-qnx*)
23091   version_type=linux
23092   need_lib_prefix=no
23093   need_version=no
23094   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23095   soname_spec='${libname}${release}${shared_ext}$major'
23096   shlibpath_var=LD_LIBRARY_PATH
23097   shlibpath_overrides_runpath=yes
23098   ;;
23099
23100 openbsd*)
23101   version_type=sunos
23102   sys_lib_dlsearch_path_spec="/usr/lib"
23103   need_lib_prefix=no
23104   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23105   case $host_os in
23106     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23107     *)                         need_version=no  ;;
23108   esac
23109   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23110   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23111   shlibpath_var=LD_LIBRARY_PATH
23112   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23113     case $host_os in
23114       openbsd2.[89] | openbsd2.[89].*)
23115         shlibpath_overrides_runpath=no
23116         ;;
23117       *)
23118         shlibpath_overrides_runpath=yes
23119         ;;
23120       esac
23121   else
23122     shlibpath_overrides_runpath=yes
23123   fi
23124   ;;
23125
23126 os2*)
23127   libname_spec='$name'
23128   shrext_cmds=".dll"
23129   need_lib_prefix=no
23130   library_names_spec='$libname${shared_ext} $libname.a'
23131   dynamic_linker='OS/2 ld.exe'
23132   shlibpath_var=LIBPATH
23133   ;;
23134
23135 osf3* | osf4* | osf5*)
23136   version_type=osf
23137   need_lib_prefix=no
23138   need_version=no
23139   soname_spec='${libname}${release}${shared_ext}$major'
23140   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23141   shlibpath_var=LD_LIBRARY_PATH
23142   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23143   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23144   ;;
23145
23146 solaris*)
23147   version_type=linux
23148   need_lib_prefix=no
23149   need_version=no
23150   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23151   soname_spec='${libname}${release}${shared_ext}$major'
23152   shlibpath_var=LD_LIBRARY_PATH
23153   shlibpath_overrides_runpath=yes
23154   hardcode_into_libs=yes
23155   # ldd complains unless libraries are executable
23156   postinstall_cmds='chmod +x $lib'
23157   ;;
23158
23159 sunos4*)
23160   version_type=sunos
23161   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23162   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23163   shlibpath_var=LD_LIBRARY_PATH
23164   shlibpath_overrides_runpath=yes
23165   if test "$with_gnu_ld" = yes; then
23166     need_lib_prefix=no
23167   fi
23168   need_version=yes
23169   ;;
23170
23171 sysv4 | sysv4.3*)
23172   version_type=linux
23173   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23174   soname_spec='${libname}${release}${shared_ext}$major'
23175   shlibpath_var=LD_LIBRARY_PATH
23176   case $host_vendor in
23177     sni)
23178       shlibpath_overrides_runpath=no
23179       need_lib_prefix=no
23180       export_dynamic_flag_spec='${wl}-Blargedynsym'
23181       runpath_var=LD_RUN_PATH
23182       ;;
23183     siemens)
23184       need_lib_prefix=no
23185       ;;
23186     motorola)
23187       need_lib_prefix=no
23188       need_version=no
23189       shlibpath_overrides_runpath=no
23190       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23191       ;;
23192   esac
23193   ;;
23194
23195 sysv4*MP*)
23196   if test -d /usr/nec ;then
23197     version_type=linux
23198     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23199     soname_spec='$libname${shared_ext}.$major'
23200     shlibpath_var=LD_LIBRARY_PATH
23201   fi
23202   ;;
23203
23204 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23205   version_type=freebsd-elf
23206   need_lib_prefix=no
23207   need_version=no
23208   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23209   soname_spec='${libname}${release}${shared_ext}$major'
23210   shlibpath_var=LD_LIBRARY_PATH
23211   hardcode_into_libs=yes
23212   if test "$with_gnu_ld" = yes; then
23213     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23214     shlibpath_overrides_runpath=no
23215   else
23216     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23217     shlibpath_overrides_runpath=yes
23218     case $host_os in
23219       sco3.2v5*)
23220         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23221         ;;
23222     esac
23223   fi
23224   sys_lib_dlsearch_path_spec='/usr/lib'
23225   ;;
23226
23227 uts4*)
23228   version_type=linux
23229   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23230   soname_spec='${libname}${release}${shared_ext}$major'
23231   shlibpath_var=LD_LIBRARY_PATH
23232   ;;
23233
23234 *)
23235   dynamic_linker=no
23236   ;;
23237 esac
23238 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23239 echo "${ECHO_T}$dynamic_linker" >&6; }
23240 test "$dynamic_linker" = no && can_build_shared=no
23241
23242 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23243 if test "$GCC" = yes; then
23244   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23245 fi
23246
23247 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23248 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23249 hardcode_action_F77=
23250 if test -n "$hardcode_libdir_flag_spec_F77" || \
23251    test -n "$runpath_var_F77" || \
23252    test "X$hardcode_automatic_F77" = "Xyes" ; then
23253
23254   # We can hardcode non-existant directories.
23255   if test "$hardcode_direct_F77" != no &&
23256      # If the only mechanism to avoid hardcoding is shlibpath_var, we
23257      # have to relink, otherwise we might link with an installed library
23258      # when we should be linking with a yet-to-be-installed one
23259      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23260      test "$hardcode_minus_L_F77" != no; then
23261     # Linking always hardcodes the temporary library directory.
23262     hardcode_action_F77=relink
23263   else
23264     # We can link without hardcoding, and we can hardcode nonexisting dirs.
23265     hardcode_action_F77=immediate
23266   fi
23267 else
23268   # We cannot hardcode anything, or else we can only hardcode existing
23269   # directories.
23270   hardcode_action_F77=unsupported
23271 fi
23272 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23273 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23274
23275 if test "$hardcode_action_F77" = relink; then
23276   # Fast installation is not supported
23277   enable_fast_install=no
23278 elif test "$shlibpath_overrides_runpath" = yes ||
23279      test "$enable_shared" = no; then
23280   # Fast installation is not necessary
23281   enable_fast_install=needless
23282 fi
23283
23284
23285 # The else clause should only fire when bootstrapping the
23286 # libtool distribution, otherwise you forgot to ship ltmain.sh
23287 # with your package, and you will get complaints that there are
23288 # no rules to generate ltmain.sh.
23289 if test -f "$ltmain"; then
23290   # See if we are running on zsh, and set the options which allow our commands through
23291   # without removal of \ escapes.
23292   if test -n "${ZSH_VERSION+set}" ; then
23293     setopt NO_GLOB_SUBST
23294   fi
23295   # Now quote all the things that may contain metacharacters while being
23296   # careful not to overquote the AC_SUBSTed values.  We take copies of the
23297   # variables and quote the copies for generation of the libtool script.
23298   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23299     SED SHELL STRIP \
23300     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23301     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23302     deplibs_check_method reload_flag reload_cmds need_locks \
23303     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23304     lt_cv_sys_global_symbol_to_c_name_address \
23305     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23306     old_postinstall_cmds old_postuninstall_cmds \
23307     compiler_F77 \
23308     CC_F77 \
23309     LD_F77 \
23310     lt_prog_compiler_wl_F77 \
23311     lt_prog_compiler_pic_F77 \
23312     lt_prog_compiler_static_F77 \
23313     lt_prog_compiler_no_builtin_flag_F77 \
23314     export_dynamic_flag_spec_F77 \
23315     thread_safe_flag_spec_F77 \
23316     whole_archive_flag_spec_F77 \
23317     enable_shared_with_static_runtimes_F77 \
23318     old_archive_cmds_F77 \
23319     old_archive_from_new_cmds_F77 \
23320     predep_objects_F77 \
23321     postdep_objects_F77 \
23322     predeps_F77 \
23323     postdeps_F77 \
23324     compiler_lib_search_path_F77 \
23325     archive_cmds_F77 \
23326     archive_expsym_cmds_F77 \
23327     postinstall_cmds_F77 \
23328     postuninstall_cmds_F77 \
23329     old_archive_from_expsyms_cmds_F77 \
23330     allow_undefined_flag_F77 \
23331     no_undefined_flag_F77 \
23332     export_symbols_cmds_F77 \
23333     hardcode_libdir_flag_spec_F77 \
23334     hardcode_libdir_flag_spec_ld_F77 \
23335     hardcode_libdir_separator_F77 \
23336     hardcode_automatic_F77 \
23337     module_cmds_F77 \
23338     module_expsym_cmds_F77 \
23339     lt_cv_prog_compiler_c_o_F77 \
23340     exclude_expsyms_F77 \
23341     include_expsyms_F77; do
23342
23343     case $var in
23344     old_archive_cmds_F77 | \
23345     old_archive_from_new_cmds_F77 | \
23346     archive_cmds_F77 | \
23347     archive_expsym_cmds_F77 | \
23348     module_cmds_F77 | \
23349     module_expsym_cmds_F77 | \
23350     old_archive_from_expsyms_cmds_F77 | \
23351     export_symbols_cmds_F77 | \
23352     extract_expsyms_cmds | reload_cmds | finish_cmds | \
23353     postinstall_cmds | postuninstall_cmds | \
23354     old_postinstall_cmds | old_postuninstall_cmds | \
23355     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23356       # Double-quote double-evaled strings.
23357       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23358       ;;
23359     *)
23360       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23361       ;;
23362     esac
23363   done
23364
23365   case $lt_echo in
23366   *'\$0 --fallback-echo"')
23367     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23368     ;;
23369   esac
23370
23371 cfgfile="$ofile"
23372
23373   cat <<__EOF__ >> "$cfgfile"
23374 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23375
23376 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23377
23378 # Shell to use when invoking shell scripts.
23379 SHELL=$lt_SHELL
23380
23381 # Whether or not to build shared libraries.
23382 build_libtool_libs=$enable_shared
23383
23384 # Whether or not to build static libraries.
23385 build_old_libs=$enable_static
23386
23387 # Whether or not to add -lc for building shared libraries.
23388 build_libtool_need_lc=$archive_cmds_need_lc_F77
23389
23390 # Whether or not to disallow shared libs when runtime libs are static
23391 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23392
23393 # Whether or not to optimize for fast installation.
23394 fast_install=$enable_fast_install
23395
23396 # The host system.
23397 host_alias=$host_alias
23398 host=$host
23399 host_os=$host_os
23400
23401 # The build system.
23402 build_alias=$build_alias
23403 build=$build
23404 build_os=$build_os
23405
23406 # An echo program that does not interpret backslashes.
23407 echo=$lt_echo
23408
23409 # The archiver.
23410 AR=$lt_AR
23411 AR_FLAGS=$lt_AR_FLAGS
23412
23413 # A C compiler.
23414 LTCC=$lt_LTCC
23415
23416 # LTCC compiler flags.
23417 LTCFLAGS=$lt_LTCFLAGS
23418
23419 # A language-specific compiler.
23420 CC=$lt_compiler_F77
23421
23422 # Is the compiler the GNU C compiler?
23423 with_gcc=$GCC_F77
23424
23425 # An ERE matcher.
23426 EGREP=$lt_EGREP
23427
23428 # The linker used to build libraries.
23429 LD=$lt_LD_F77
23430
23431 # Whether we need hard or soft links.
23432 LN_S=$lt_LN_S
23433
23434 # A BSD-compatible nm program.
23435 NM=$lt_NM
23436
23437 # A symbol stripping program
23438 STRIP=$lt_STRIP
23439
23440 # Used to examine libraries when file_magic_cmd begins "file"
23441 MAGIC_CMD=$MAGIC_CMD
23442
23443 # Used on cygwin: DLL creation program.
23444 DLLTOOL="$DLLTOOL"
23445
23446 # Used on cygwin: object dumper.
23447 OBJDUMP="$OBJDUMP"
23448
23449 # Used on cygwin: assembler.
23450 AS="$AS"
23451
23452 # The name of the directory that contains temporary libtool files.
23453 objdir=$objdir
23454
23455 # How to create reloadable object files.
23456 reload_flag=$lt_reload_flag
23457 reload_cmds=$lt_reload_cmds
23458
23459 # How to pass a linker flag through the compiler.
23460 wl=$lt_lt_prog_compiler_wl_F77
23461
23462 # Object file suffix (normally "o").
23463 objext="$ac_objext"
23464
23465 # Old archive suffix (normally "a").
23466 libext="$libext"
23467
23468 # Shared library suffix (normally ".so").
23469 shrext_cmds='$shrext_cmds'
23470
23471 # Executable file suffix (normally "").
23472 exeext="$exeext"
23473
23474 # Additional compiler flags for building library objects.
23475 pic_flag=$lt_lt_prog_compiler_pic_F77
23476 pic_mode=$pic_mode
23477
23478 # What is the maximum length of a command?
23479 max_cmd_len=$lt_cv_sys_max_cmd_len
23480
23481 # Does compiler simultaneously support -c and -o options?
23482 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23483
23484 # Must we lock files when doing compilation?
23485 need_locks=$lt_need_locks
23486
23487 # Do we need the lib prefix for modules?
23488 need_lib_prefix=$need_lib_prefix
23489
23490 # Do we need a version for libraries?
23491 need_version=$need_version
23492
23493 # Whether dlopen is supported.
23494 dlopen_support=$enable_dlopen
23495
23496 # Whether dlopen of programs is supported.
23497 dlopen_self=$enable_dlopen_self
23498
23499 # Whether dlopen of statically linked programs is supported.
23500 dlopen_self_static=$enable_dlopen_self_static
23501
23502 # Compiler flag to prevent dynamic linking.
23503 link_static_flag=$lt_lt_prog_compiler_static_F77
23504
23505 # Compiler flag to turn off builtin functions.
23506 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23507
23508 # Compiler flag to allow reflexive dlopens.
23509 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23510
23511 # Compiler flag to generate shared objects directly from archives.
23512 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23513
23514 # Compiler flag to generate thread-safe objects.
23515 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23516
23517 # Library versioning type.
23518 version_type=$version_type
23519
23520 # Format of library name prefix.
23521 libname_spec=$lt_libname_spec
23522
23523 # List of archive names.  First name is the real one, the rest are links.
23524 # The last name is the one that the linker finds with -lNAME.
23525 library_names_spec=$lt_library_names_spec
23526
23527 # The coded name of the library, if different from the real name.
23528 soname_spec=$lt_soname_spec
23529
23530 # Commands used to build and install an old-style archive.
23531 RANLIB=$lt_RANLIB
23532 old_archive_cmds=$lt_old_archive_cmds_F77
23533 old_postinstall_cmds=$lt_old_postinstall_cmds
23534 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23535
23536 # Create an old-style archive from a shared archive.
23537 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23538
23539 # Create a temporary old-style archive to link instead of a shared archive.
23540 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23541
23542 # Commands used to build and install a shared archive.
23543 archive_cmds=$lt_archive_cmds_F77
23544 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23545 postinstall_cmds=$lt_postinstall_cmds
23546 postuninstall_cmds=$lt_postuninstall_cmds
23547
23548 # Commands used to build a loadable module (assumed same as above if empty)
23549 module_cmds=$lt_module_cmds_F77
23550 module_expsym_cmds=$lt_module_expsym_cmds_F77
23551
23552 # Commands to strip libraries.
23553 old_striplib=$lt_old_striplib
23554 striplib=$lt_striplib
23555
23556 # Dependencies to place before the objects being linked to create a
23557 # shared library.
23558 predep_objects=$lt_predep_objects_F77
23559
23560 # Dependencies to place after the objects being linked to create a
23561 # shared library.
23562 postdep_objects=$lt_postdep_objects_F77
23563
23564 # Dependencies to place before the objects being linked to create a
23565 # shared library.
23566 predeps=$lt_predeps_F77
23567
23568 # Dependencies to place after the objects being linked to create a
23569 # shared library.
23570 postdeps=$lt_postdeps_F77
23571
23572 # The library search path used internally by the compiler when linking
23573 # a shared library.
23574 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23575
23576 # Method to check whether dependent libraries are shared objects.
23577 deplibs_check_method=$lt_deplibs_check_method
23578
23579 # Command to use when deplibs_check_method == file_magic.
23580 file_magic_cmd=$lt_file_magic_cmd
23581
23582 # Flag that allows shared libraries with undefined symbols to be built.
23583 allow_undefined_flag=$lt_allow_undefined_flag_F77
23584
23585 # Flag that forces no undefined symbols.
23586 no_undefined_flag=$lt_no_undefined_flag_F77
23587
23588 # Commands used to finish a libtool library installation in a directory.
23589 finish_cmds=$lt_finish_cmds
23590
23591 # Same as above, but a single script fragment to be evaled but not shown.
23592 finish_eval=$lt_finish_eval
23593
23594 # Take the output of nm and produce a listing of raw symbols and C names.
23595 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23596
23597 # Transform the output of nm in a proper C declaration
23598 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23599
23600 # Transform the output of nm in a C name address pair
23601 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23602
23603 # This is the shared library runtime path variable.
23604 runpath_var=$runpath_var
23605
23606 # This is the shared library path variable.
23607 shlibpath_var=$shlibpath_var
23608
23609 # Is shlibpath searched before the hard-coded library search path?
23610 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23611
23612 # How to hardcode a shared library path into an executable.
23613 hardcode_action=$hardcode_action_F77
23614
23615 # Whether we should hardcode library paths into libraries.
23616 hardcode_into_libs=$hardcode_into_libs
23617
23618 # Flag to hardcode \$libdir into a binary during linking.
23619 # This must work even if \$libdir does not exist.
23620 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23621
23622 # If ld is used when linking, flag to hardcode \$libdir into
23623 # a binary during linking. This must work even if \$libdir does
23624 # not exist.
23625 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23626
23627 # Whether we need a single -rpath flag with a separated argument.
23628 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23629
23630 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23631 # resulting binary.
23632 hardcode_direct=$hardcode_direct_F77
23633
23634 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23635 # resulting binary.
23636 hardcode_minus_L=$hardcode_minus_L_F77
23637
23638 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23639 # the resulting binary.
23640 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23641
23642 # Set to yes if building a shared library automatically hardcodes DIR into the library
23643 # and all subsequent libraries and executables linked against it.
23644 hardcode_automatic=$hardcode_automatic_F77
23645
23646 # Variables whose values should be saved in libtool wrapper scripts and
23647 # restored at relink time.
23648 variables_saved_for_relink="$variables_saved_for_relink"
23649
23650 # Whether libtool must link a program against all its dependency libraries.
23651 link_all_deplibs=$link_all_deplibs_F77
23652
23653 # Compile-time system search path for libraries
23654 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23655
23656 # Run-time system search path for libraries
23657 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23658
23659 # Fix the shell variable \$srcfile for the compiler.
23660 fix_srcfile_path="$fix_srcfile_path_F77"
23661
23662 # Set to yes if exported symbols are required.
23663 always_export_symbols=$always_export_symbols_F77
23664
23665 # The commands to list exported symbols.
23666 export_symbols_cmds=$lt_export_symbols_cmds_F77
23667
23668 # The commands to extract the exported symbol list from a shared archive.
23669 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23670
23671 # Symbols that should not be listed in the preloaded symbols.
23672 exclude_expsyms=$lt_exclude_expsyms_F77
23673
23674 # Symbols that must always be exported.
23675 include_expsyms=$lt_include_expsyms_F77
23676
23677 # ### END LIBTOOL TAG CONFIG: $tagname
23678
23679 __EOF__
23680
23681
23682 else
23683   # If there is no Makefile yet, we rely on a make rule to execute
23684   # `config.status --recheck' to rerun these tests and create the
23685   # libtool script then.
23686   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23687   if test -f "$ltmain_in"; then
23688     test -f Makefile && make "$ltmain"
23689   fi
23690 fi
23691
23692
23693 ac_ext=c
23694 ac_cpp='$CPP $CPPFLAGS'
23695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23697 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23698
23699 CC="$lt_save_CC"
23700
23701         else
23702           tagname=""
23703         fi
23704         ;;
23705
23706       GCJ)
23707         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23708           ac_ext=c
23709 ac_cpp='$CPP $CPPFLAGS'
23710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23713
23714
23715 # Source file extension for Java test sources.
23716 ac_ext=java
23717
23718 # Object file extension for compiled Java test sources.
23719 objext=o
23720 objext_GCJ=$objext
23721
23722 # Code to be used in simple compile tests
23723 lt_simple_compile_test_code="class foo {}\n"
23724
23725 # Code to be used in simple link tests
23726 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23727
23728 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23729
23730 # If no C compiler was specified, use CC.
23731 LTCC=${LTCC-"$CC"}
23732
23733 # If no C compiler flags were specified, use CFLAGS.
23734 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23735
23736 # Allow CC to be a program name with arguments.
23737 compiler=$CC
23738
23739
23740 # save warnings/boilerplate of simple test code
23741 ac_outfile=conftest.$ac_objext
23742 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23743 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23744 _lt_compiler_boilerplate=`cat conftest.err`
23745 $rm conftest*
23746
23747 ac_outfile=conftest.$ac_objext
23748 printf "$lt_simple_link_test_code" >conftest.$ac_ext
23749 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23750 _lt_linker_boilerplate=`cat conftest.err`
23751 $rm conftest*
23752
23753
23754 # Allow CC to be a program name with arguments.
23755 lt_save_CC="$CC"
23756 CC=${GCJ-"gcj"}
23757 compiler=$CC
23758 compiler_GCJ=$CC
23759 for cc_temp in $compiler""; do
23760   case $cc_temp in
23761     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23762     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23763     \-*) ;;
23764     *) break;;
23765   esac
23766 done
23767 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23768
23769
23770 # GCJ did not exist at the time GCC didn't implicitly link libc in.
23771 archive_cmds_need_lc_GCJ=no
23772
23773 old_archive_cmds_GCJ=$old_archive_cmds
23774
23775
23776 lt_prog_compiler_no_builtin_flag_GCJ=
23777
23778 if test "$GCC" = yes; then
23779   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23780
23781
23782 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23783 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23784 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23785   echo $ECHO_N "(cached) $ECHO_C" >&6
23786 else
23787   lt_cv_prog_compiler_rtti_exceptions=no
23788   ac_outfile=conftest.$ac_objext
23789    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23790    lt_compiler_flag="-fno-rtti -fno-exceptions"
23791    # Insert the option either (1) after the last *FLAGS variable, or
23792    # (2) before a word containing "conftest.", or (3) at the end.
23793    # Note that $ac_compile itself does not contain backslashes and begins
23794    # with a dollar sign (not a hyphen), so the echo should work correctly.
23795    # The option is referenced via a variable to avoid confusing sed.
23796    lt_compile=`echo "$ac_compile" | $SED \
23797    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23798    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23799    -e 's:$: $lt_compiler_flag:'`
23800    (eval echo "\"\$as_me:23800: $lt_compile\"" >&5)
23801    (eval "$lt_compile" 2>conftest.err)
23802    ac_status=$?
23803    cat conftest.err >&5
23804    echo "$as_me:23804: \$? = $ac_status" >&5
23805    if (exit $ac_status) && test -s "$ac_outfile"; then
23806      # The compiler can only warn and ignore the option if not recognized
23807      # So say no if there are warnings other than the usual output.
23808      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23809      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23810      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23811        lt_cv_prog_compiler_rtti_exceptions=yes
23812      fi
23813    fi
23814    $rm conftest*
23815
23816 fi
23817 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23818 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
23819
23820 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23821     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23822 else
23823     :
23824 fi
23825
23826 fi
23827
23828 lt_prog_compiler_wl_GCJ=
23829 lt_prog_compiler_pic_GCJ=
23830 lt_prog_compiler_static_GCJ=
23831
23832 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23833 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
23834
23835   if test "$GCC" = yes; then
23836     lt_prog_compiler_wl_GCJ='-Wl,'
23837     lt_prog_compiler_static_GCJ='-static'
23838
23839     case $host_os in
23840       aix*)
23841       # All AIX code is PIC.
23842       if test "$host_cpu" = ia64; then
23843         # AIX 5 now supports IA64 processor
23844         lt_prog_compiler_static_GCJ='-Bstatic'
23845       fi
23846       ;;
23847
23848     amigaos*)
23849       # FIXME: we need at least 68020 code to build shared libraries, but
23850       # adding the `-m68020' flag to GCC prevents building anything better,
23851       # like `-m68040'.
23852       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23853       ;;
23854
23855     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23856       # PIC is the default for these OSes.
23857       ;;
23858
23859     mingw* | pw32* | os2*)
23860       # This hack is so that the source file can tell whether it is being
23861       # built for inclusion in a dll (and should export symbols for example).
23862       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23863       ;;
23864
23865     darwin* | rhapsody*)
23866       # PIC is the default on this platform
23867       # Common symbols not allowed in MH_DYLIB files
23868       lt_prog_compiler_pic_GCJ='-fno-common'
23869       ;;
23870
23871     interix3*)
23872       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23873       # Instead, we relocate shared libraries at runtime.
23874       ;;
23875
23876     msdosdjgpp*)
23877       # Just because we use GCC doesn't mean we suddenly get shared libraries
23878       # on systems that don't support them.
23879       lt_prog_compiler_can_build_shared_GCJ=no
23880       enable_shared=no
23881       ;;
23882
23883     sysv4*MP*)
23884       if test -d /usr/nec; then
23885         lt_prog_compiler_pic_GCJ=-Kconform_pic
23886       fi
23887       ;;
23888
23889     hpux*)
23890       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23891       # not for PA HP-UX.
23892       case $host_cpu in
23893       hppa*64*|ia64*)
23894         # +Z the default
23895         ;;
23896       *)
23897         lt_prog_compiler_pic_GCJ='-fPIC'
23898         ;;
23899       esac
23900       ;;
23901
23902     *)
23903       lt_prog_compiler_pic_GCJ='-fPIC'
23904       ;;
23905     esac
23906   else
23907     # PORTME Check for flag to pass linker flags through the system compiler.
23908     case $host_os in
23909     aix*)
23910       lt_prog_compiler_wl_GCJ='-Wl,'
23911       if test "$host_cpu" = ia64; then
23912         # AIX 5 now supports IA64 processor
23913         lt_prog_compiler_static_GCJ='-Bstatic'
23914       else
23915         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23916       fi
23917       ;;
23918       darwin*)
23919         # PIC is the default on this platform
23920         # Common symbols not allowed in MH_DYLIB files
23921        case $cc_basename in
23922          xlc*)
23923          lt_prog_compiler_pic_GCJ='-qnocommon'
23924          lt_prog_compiler_wl_GCJ='-Wl,'
23925          ;;
23926        esac
23927        ;;
23928
23929     mingw* | pw32* | os2*)
23930       # This hack is so that the source file can tell whether it is being
23931       # built for inclusion in a dll (and should export symbols for example).
23932       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23933       ;;
23934
23935     hpux9* | hpux10* | hpux11*)
23936       lt_prog_compiler_wl_GCJ='-Wl,'
23937       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23938       # not for PA HP-UX.
23939       case $host_cpu in
23940       hppa*64*|ia64*)
23941         # +Z the default
23942         ;;
23943       *)
23944         lt_prog_compiler_pic_GCJ='+Z'
23945         ;;
23946       esac
23947       # Is there a better lt_prog_compiler_static that works with the bundled CC?
23948       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23949       ;;
23950
23951     irix5* | irix6* | nonstopux*)
23952       lt_prog_compiler_wl_GCJ='-Wl,'
23953       # PIC (with -KPIC) is the default.
23954       lt_prog_compiler_static_GCJ='-non_shared'
23955       ;;
23956
23957     newsos6)
23958       lt_prog_compiler_pic_GCJ='-KPIC'
23959       lt_prog_compiler_static_GCJ='-Bstatic'
23960       ;;
23961
23962     linux*)
23963       case $cc_basename in
23964       icc* | ecc*)
23965         lt_prog_compiler_wl_GCJ='-Wl,'
23966         lt_prog_compiler_pic_GCJ='-KPIC'
23967         lt_prog_compiler_static_GCJ='-static'
23968         ;;
23969       pgcc* | pgf77* | pgf90* | pgf95*)
23970         # Portland Group compilers (*not* the Pentium gcc compiler,
23971         # which looks to be a dead project)
23972         lt_prog_compiler_wl_GCJ='-Wl,'
23973         lt_prog_compiler_pic_GCJ='-fpic'
23974         lt_prog_compiler_static_GCJ='-Bstatic'
23975         ;;
23976       ccc*)
23977         lt_prog_compiler_wl_GCJ='-Wl,'
23978         # All Alpha code is PIC.
23979         lt_prog_compiler_static_GCJ='-non_shared'
23980         ;;
23981       esac
23982       ;;
23983
23984     osf3* | osf4* | osf5*)
23985       lt_prog_compiler_wl_GCJ='-Wl,'
23986       # All OSF/1 code is PIC.
23987       lt_prog_compiler_static_GCJ='-non_shared'
23988       ;;
23989
23990     solaris*)
23991       lt_prog_compiler_pic_GCJ='-KPIC'
23992       lt_prog_compiler_static_GCJ='-Bstatic'
23993       case $cc_basename in
23994       f77* | f90* | f95*)
23995         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23996       *)
23997         lt_prog_compiler_wl_GCJ='-Wl,';;
23998       esac
23999       ;;
24000
24001     sunos4*)
24002       lt_prog_compiler_wl_GCJ='-Qoption ld '
24003       lt_prog_compiler_pic_GCJ='-PIC'
24004       lt_prog_compiler_static_GCJ='-Bstatic'
24005       ;;
24006
24007     sysv4 | sysv4.2uw2* | sysv4.3*)
24008       lt_prog_compiler_wl_GCJ='-Wl,'
24009       lt_prog_compiler_pic_GCJ='-KPIC'
24010       lt_prog_compiler_static_GCJ='-Bstatic'
24011       ;;
24012
24013     sysv4*MP*)
24014       if test -d /usr/nec ;then
24015         lt_prog_compiler_pic_GCJ='-Kconform_pic'
24016         lt_prog_compiler_static_GCJ='-Bstatic'
24017       fi
24018       ;;
24019
24020     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24021       lt_prog_compiler_wl_GCJ='-Wl,'
24022       lt_prog_compiler_pic_GCJ='-KPIC'
24023       lt_prog_compiler_static_GCJ='-Bstatic'
24024       ;;
24025
24026     unicos*)
24027       lt_prog_compiler_wl_GCJ='-Wl,'
24028       lt_prog_compiler_can_build_shared_GCJ=no
24029       ;;
24030
24031     uts4*)
24032       lt_prog_compiler_pic_GCJ='-pic'
24033       lt_prog_compiler_static_GCJ='-Bstatic'
24034       ;;
24035
24036     *)
24037       lt_prog_compiler_can_build_shared_GCJ=no
24038       ;;
24039     esac
24040   fi
24041
24042 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24043 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
24044
24045 #
24046 # Check to make sure the PIC flag actually works.
24047 #
24048 if test -n "$lt_prog_compiler_pic_GCJ"; then
24049
24050 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24051 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
24052 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24053   echo $ECHO_N "(cached) $ECHO_C" >&6
24054 else
24055   lt_prog_compiler_pic_works_GCJ=no
24056   ac_outfile=conftest.$ac_objext
24057    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24058    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24059    # Insert the option either (1) after the last *FLAGS variable, or
24060    # (2) before a word containing "conftest.", or (3) at the end.
24061    # Note that $ac_compile itself does not contain backslashes and begins
24062    # with a dollar sign (not a hyphen), so the echo should work correctly.
24063    # The option is referenced via a variable to avoid confusing sed.
24064    lt_compile=`echo "$ac_compile" | $SED \
24065    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24066    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24067    -e 's:$: $lt_compiler_flag:'`
24068    (eval echo "\"\$as_me:24068: $lt_compile\"" >&5)
24069    (eval "$lt_compile" 2>conftest.err)
24070    ac_status=$?
24071    cat conftest.err >&5
24072    echo "$as_me:24072: \$? = $ac_status" >&5
24073    if (exit $ac_status) && test -s "$ac_outfile"; then
24074      # The compiler can only warn and ignore the option if not recognized
24075      # So say no if there are warnings other than the usual output.
24076      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24077      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24078      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24079        lt_prog_compiler_pic_works_GCJ=yes
24080      fi
24081    fi
24082    $rm conftest*
24083
24084 fi
24085 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24086 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24087
24088 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24089     case $lt_prog_compiler_pic_GCJ in
24090      "" | " "*) ;;
24091      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24092      esac
24093 else
24094     lt_prog_compiler_pic_GCJ=
24095      lt_prog_compiler_can_build_shared_GCJ=no
24096 fi
24097
24098 fi
24099 case $host_os in
24100   # For platforms which do not support PIC, -DPIC is meaningless:
24101   *djgpp*)
24102     lt_prog_compiler_pic_GCJ=
24103     ;;
24104   *)
24105     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24106     ;;
24107 esac
24108
24109 #
24110 # Check to make sure the static flag actually works.
24111 #
24112 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24113 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24114 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24115 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24116   echo $ECHO_N "(cached) $ECHO_C" >&6
24117 else
24118   lt_prog_compiler_static_works_GCJ=no
24119    save_LDFLAGS="$LDFLAGS"
24120    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24121    printf "$lt_simple_link_test_code" > conftest.$ac_ext
24122    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24123      # The linker can only warn and ignore the option if not recognized
24124      # So say no if there are warnings
24125      if test -s conftest.err; then
24126        # Append any errors to the config.log.
24127        cat conftest.err 1>&5
24128        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24129        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24130        if diff conftest.exp conftest.er2 >/dev/null; then
24131          lt_prog_compiler_static_works_GCJ=yes
24132        fi
24133      else
24134        lt_prog_compiler_static_works_GCJ=yes
24135      fi
24136    fi
24137    $rm conftest*
24138    LDFLAGS="$save_LDFLAGS"
24139
24140 fi
24141 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24142 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24143
24144 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24145     :
24146 else
24147     lt_prog_compiler_static_GCJ=
24148 fi
24149
24150
24151 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24152 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24153 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24154   echo $ECHO_N "(cached) $ECHO_C" >&6
24155 else
24156   lt_cv_prog_compiler_c_o_GCJ=no
24157    $rm -r conftest 2>/dev/null
24158    mkdir conftest
24159    cd conftest
24160    mkdir out
24161    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24162
24163    lt_compiler_flag="-o out/conftest2.$ac_objext"
24164    # Insert the option either (1) after the last *FLAGS variable, or
24165    # (2) before a word containing "conftest.", or (3) at the end.
24166    # Note that $ac_compile itself does not contain backslashes and begins
24167    # with a dollar sign (not a hyphen), so the echo should work correctly.
24168    lt_compile=`echo "$ac_compile" | $SED \
24169    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24170    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24171    -e 's:$: $lt_compiler_flag:'`
24172    (eval echo "\"\$as_me:24172: $lt_compile\"" >&5)
24173    (eval "$lt_compile" 2>out/conftest.err)
24174    ac_status=$?
24175    cat out/conftest.err >&5
24176    echo "$as_me:24176: \$? = $ac_status" >&5
24177    if (exit $ac_status) && test -s out/conftest2.$ac_objext
24178    then
24179      # The compiler can only warn and ignore the option if not recognized
24180      # So say no if there are warnings
24181      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24182      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24183      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24184        lt_cv_prog_compiler_c_o_GCJ=yes
24185      fi
24186    fi
24187    chmod u+w . 2>&5
24188    $rm conftest*
24189    # SGI C++ compiler will create directory out/ii_files/ for
24190    # template instantiation
24191    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24192    $rm out/* && rmdir out
24193    cd ..
24194    rmdir conftest
24195    $rm conftest*
24196
24197 fi
24198 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24199 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24200
24201
24202 hard_links="nottested"
24203 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24204   # do not overwrite the value of need_locks provided by the user
24205   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24206 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24207   hard_links=yes
24208   $rm conftest*
24209   ln conftest.a conftest.b 2>/dev/null && hard_links=no
24210   touch conftest.a
24211   ln conftest.a conftest.b 2>&5 || hard_links=no
24212   ln conftest.a conftest.b 2>/dev/null && hard_links=no
24213   { echo "$as_me:$LINENO: result: $hard_links" >&5
24214 echo "${ECHO_T}$hard_links" >&6; }
24215   if test "$hard_links" = no; then
24216     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24217 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24218     need_locks=warn
24219   fi
24220 else
24221   need_locks=no
24222 fi
24223
24224 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24225 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24226
24227   runpath_var=
24228   allow_undefined_flag_GCJ=
24229   enable_shared_with_static_runtimes_GCJ=no
24230   archive_cmds_GCJ=
24231   archive_expsym_cmds_GCJ=
24232   old_archive_From_new_cmds_GCJ=
24233   old_archive_from_expsyms_cmds_GCJ=
24234   export_dynamic_flag_spec_GCJ=
24235   whole_archive_flag_spec_GCJ=
24236   thread_safe_flag_spec_GCJ=
24237   hardcode_libdir_flag_spec_GCJ=
24238   hardcode_libdir_flag_spec_ld_GCJ=
24239   hardcode_libdir_separator_GCJ=
24240   hardcode_direct_GCJ=no
24241   hardcode_minus_L_GCJ=no
24242   hardcode_shlibpath_var_GCJ=unsupported
24243   link_all_deplibs_GCJ=unknown
24244   hardcode_automatic_GCJ=no
24245   module_cmds_GCJ=
24246   module_expsym_cmds_GCJ=
24247   always_export_symbols_GCJ=no
24248   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24249   # include_expsyms should be a list of space-separated symbols to be *always*
24250   # included in the symbol list
24251   include_expsyms_GCJ=
24252   # exclude_expsyms can be an extended regexp of symbols to exclude
24253   # it will be wrapped by ` (' and `)$', so one must not match beginning or
24254   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24255   # as well as any symbol that contains `d'.
24256   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24257   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24258   # platforms (ab)use it in PIC code, but their linkers get confused if
24259   # the symbol is explicitly referenced.  Since portable code cannot
24260   # rely on this symbol name, it's probably fine to never include it in
24261   # preloaded symbol tables.
24262   extract_expsyms_cmds=
24263   # Just being paranoid about ensuring that cc_basename is set.
24264   for cc_temp in $compiler""; do
24265   case $cc_temp in
24266     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24267     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24268     \-*) ;;
24269     *) break;;
24270   esac
24271 done
24272 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24273
24274   case $host_os in
24275   cygwin* | mingw* | pw32*)
24276     # FIXME: the MSVC++ port hasn't been tested in a loooong time
24277     # When not using gcc, we currently assume that we are using
24278     # Microsoft Visual C++.
24279     if test "$GCC" != yes; then
24280       with_gnu_ld=no
24281     fi
24282     ;;
24283   interix*)
24284     # we just hope/assume this is gcc and not c89 (= MSVC++)
24285     with_gnu_ld=yes
24286     ;;
24287   openbsd*)
24288     with_gnu_ld=no
24289     ;;
24290   esac
24291
24292   ld_shlibs_GCJ=yes
24293   if test "$with_gnu_ld" = yes; then
24294     # If archive_cmds runs LD, not CC, wlarc should be empty
24295     wlarc='${wl}'
24296
24297     # Set some defaults for GNU ld with shared library support. These
24298     # are reset later if shared libraries are not supported. Putting them
24299     # here allows them to be overridden if necessary.
24300     runpath_var=LD_RUN_PATH
24301     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24302     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24303     # ancient GNU ld didn't support --whole-archive et. al.
24304     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24305         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24306       else
24307         whole_archive_flag_spec_GCJ=
24308     fi
24309     supports_anon_versioning=no
24310     case `$LD -v 2>/dev/null` in
24311       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24312       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24313       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24314       *\ 2.11.*) ;; # other 2.11 versions
24315       *) supports_anon_versioning=yes ;;
24316     esac
24317
24318     # See if GNU ld supports shared libraries.
24319     case $host_os in
24320     aix3* | aix4* | aix5*)
24321       # On AIX/PPC, the GNU linker is very broken
24322       if test "$host_cpu" != ia64; then
24323         ld_shlibs_GCJ=no
24324         cat <<EOF 1>&2
24325
24326 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24327 *** to be unable to reliably create shared libraries on AIX.
24328 *** Therefore, libtool is disabling shared libraries support.  If you
24329 *** really care for shared libraries, you may want to modify your PATH
24330 *** so that a non-GNU linker is found, and then restart.
24331
24332 EOF
24333       fi
24334       ;;
24335
24336     amigaos*)
24337       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)'
24338       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24339       hardcode_minus_L_GCJ=yes
24340
24341       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24342       # that the semantics of dynamic libraries on AmigaOS, at least up
24343       # to version 4, is to share data among multiple programs linked
24344       # with the same dynamic library.  Since this doesn't match the
24345       # behavior of shared libraries on other platforms, we can't use
24346       # them.
24347       ld_shlibs_GCJ=no
24348       ;;
24349
24350     beos*)
24351       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24352         allow_undefined_flag_GCJ=unsupported
24353         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24354         # support --undefined.  This deserves some investigation.  FIXME
24355         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24356       else
24357         ld_shlibs_GCJ=no
24358       fi
24359       ;;
24360
24361     cygwin* | mingw* | pw32*)
24362       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24363       # as there is no search path for DLLs.
24364       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24365       allow_undefined_flag_GCJ=unsupported
24366       always_export_symbols_GCJ=no
24367       enable_shared_with_static_runtimes_GCJ=yes
24368       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24369
24370       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24371         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24372         # If the export-symbols file already is a .def file (1st line
24373         # is EXPORTS), use it as is; otherwise, prepend...
24374         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24375           cp $export_symbols $output_objdir/$soname.def;
24376         else
24377           echo EXPORTS > $output_objdir/$soname.def;
24378           cat $export_symbols >> $output_objdir/$soname.def;
24379         fi~
24380         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24381       else
24382         ld_shlibs_GCJ=no
24383       fi
24384       ;;
24385
24386     interix3*)
24387       hardcode_direct_GCJ=no
24388       hardcode_shlibpath_var_GCJ=no
24389       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24390       export_dynamic_flag_spec_GCJ='${wl}-E'
24391       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24392       # Instead, shared libraries are loaded at an image base (0x10000000 by
24393       # default) and relocated if they conflict, which is a slow very memory
24394       # consuming and fragmenting process.  To avoid this, we pick a random,
24395       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24396       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
24397       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'
24398       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'
24399       ;;
24400
24401     linux*)
24402       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24403         tmp_addflag=
24404         case $cc_basename,$host_cpu in
24405         pgcc*)                          # Portland Group C compiler
24406           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'
24407           tmp_addflag=' $pic_flag'
24408           ;;
24409         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
24410           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'
24411           tmp_addflag=' $pic_flag -Mnomain' ;;
24412         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
24413           tmp_addflag=' -i_dynamic' ;;
24414         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
24415           tmp_addflag=' -i_dynamic -nofor_main' ;;
24416         ifc* | ifort*)                  # Intel Fortran compiler
24417           tmp_addflag=' -nofor_main' ;;
24418         esac
24419         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24420
24421         if test $supports_anon_versioning = yes; then
24422           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24423   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24424   $echo "local: *; };" >> $output_objdir/$libname.ver~
24425           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24426         fi
24427       else
24428         ld_shlibs_GCJ=no
24429       fi
24430       ;;
24431
24432     netbsd*)
24433       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24434         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24435         wlarc=
24436       else
24437         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24438         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24439       fi
24440       ;;
24441
24442     solaris*)
24443       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24444         ld_shlibs_GCJ=no
24445         cat <<EOF 1>&2
24446
24447 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24448 *** create shared libraries on Solaris systems.  Therefore, libtool
24449 *** is disabling shared libraries support.  We urge you to upgrade GNU
24450 *** binutils to release 2.9.1 or newer.  Another option is to modify
24451 *** your PATH or compiler configuration so that the native linker is
24452 *** used, and then restart.
24453
24454 EOF
24455       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24456         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24457         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24458       else
24459         ld_shlibs_GCJ=no
24460       fi
24461       ;;
24462
24463     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24464       case `$LD -v 2>&1` in
24465         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24466         ld_shlibs_GCJ=no
24467         cat <<_LT_EOF 1>&2
24468
24469 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24470 *** reliably create shared libraries on SCO systems.  Therefore, libtool
24471 *** is disabling shared libraries support.  We urge you to upgrade GNU
24472 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
24473 *** your PATH or compiler configuration so that the native linker is
24474 *** used, and then restart.
24475
24476 _LT_EOF
24477         ;;
24478         *)
24479           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24480             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24481             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24482             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24483           else
24484             ld_shlibs_GCJ=no
24485           fi
24486         ;;
24487       esac
24488       ;;
24489
24490     sunos4*)
24491       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24492       wlarc=
24493       hardcode_direct_GCJ=yes
24494       hardcode_shlibpath_var_GCJ=no
24495       ;;
24496
24497     *)
24498       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24499         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24500         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24501       else
24502         ld_shlibs_GCJ=no
24503       fi
24504       ;;
24505     esac
24506
24507     if test "$ld_shlibs_GCJ" = no; then
24508       runpath_var=
24509       hardcode_libdir_flag_spec_GCJ=
24510       export_dynamic_flag_spec_GCJ=
24511       whole_archive_flag_spec_GCJ=
24512     fi
24513   else
24514     # PORTME fill in a description of your system's linker (not GNU ld)
24515     case $host_os in
24516     aix3*)
24517       allow_undefined_flag_GCJ=unsupported
24518       always_export_symbols_GCJ=yes
24519       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'
24520       # Note: this linker hardcodes the directories in LIBPATH if there
24521       # are no directories specified by -L.
24522       hardcode_minus_L_GCJ=yes
24523       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24524         # Neither direct hardcoding nor static linking is supported with a
24525         # broken collect2.
24526         hardcode_direct_GCJ=unsupported
24527       fi
24528       ;;
24529
24530     aix4* | aix5*)
24531       if test "$host_cpu" = ia64; then
24532         # On IA64, the linker does run time linking by default, so we don't
24533         # have to do anything special.
24534         aix_use_runtimelinking=no
24535         exp_sym_flag='-Bexport'
24536         no_entry_flag=""
24537       else
24538         # If we're using GNU nm, then we don't want the "-C" option.
24539         # -C means demangle to AIX nm, but means don't demangle with GNU nm
24540         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24541           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'
24542         else
24543           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'
24544         fi
24545         aix_use_runtimelinking=no
24546
24547         # Test if we are trying to use run time linking or normal
24548         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24549         # need to do runtime linking.
24550         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24551           for ld_flag in $LDFLAGS; do
24552           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24553             aix_use_runtimelinking=yes
24554             break
24555           fi
24556           done
24557           ;;
24558         esac
24559
24560         exp_sym_flag='-bexport'
24561         no_entry_flag='-bnoentry'
24562       fi
24563
24564       # When large executables or shared objects are built, AIX ld can
24565       # have problems creating the table of contents.  If linking a library
24566       # or program results in "error TOC overflow" add -mminimal-toc to
24567       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
24568       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24569
24570       archive_cmds_GCJ=''
24571       hardcode_direct_GCJ=yes
24572       hardcode_libdir_separator_GCJ=':'
24573       link_all_deplibs_GCJ=yes
24574
24575       if test "$GCC" = yes; then
24576         case $host_os in aix4.[012]|aix4.[012].*)
24577         # We only want to do this on AIX 4.2 and lower, the check
24578         # below for broken collect2 doesn't work under 4.3+
24579           collect2name=`${CC} -print-prog-name=collect2`
24580           if test -f "$collect2name" && \
24581            strings "$collect2name" | grep resolve_lib_name >/dev/null
24582           then
24583           # We have reworked collect2
24584           hardcode_direct_GCJ=yes
24585           else
24586           # We have old collect2
24587           hardcode_direct_GCJ=unsupported
24588           # It fails to find uninstalled libraries when the uninstalled
24589           # path is not listed in the libpath.  Setting hardcode_minus_L
24590           # to unsupported forces relinking
24591           hardcode_minus_L_GCJ=yes
24592           hardcode_libdir_flag_spec_GCJ='-L$libdir'
24593           hardcode_libdir_separator_GCJ=
24594           fi
24595           ;;
24596         esac
24597         shared_flag='-shared'
24598         if test "$aix_use_runtimelinking" = yes; then
24599           shared_flag="$shared_flag "'${wl}-G'
24600         fi
24601       else
24602         # not using gcc
24603         if test "$host_cpu" = ia64; then
24604         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24605         # chokes on -Wl,-G. The following line is correct:
24606           shared_flag='-G'
24607         else
24608           if test "$aix_use_runtimelinking" = yes; then
24609             shared_flag='${wl}-G'
24610           else
24611             shared_flag='${wl}-bM:SRE'
24612           fi
24613         fi
24614       fi
24615
24616       # It seems that -bexpall does not export symbols beginning with
24617       # underscore (_), so it is better to generate a list of symbols to export.
24618       always_export_symbols_GCJ=yes
24619       if test "$aix_use_runtimelinking" = yes; then
24620         # Warning - without using the other runtime loading flags (-brtl),
24621         # -berok will link without error, but may produce a broken library.
24622         allow_undefined_flag_GCJ='-berok'
24623        # Determine the default libpath from the value encoded in an empty executable.
24624        cat >conftest.$ac_ext <<_ACEOF
24625 /* confdefs.h.  */
24626 _ACEOF
24627 cat confdefs.h >>conftest.$ac_ext
24628 cat >>conftest.$ac_ext <<_ACEOF
24629 /* end confdefs.h.  */
24630
24631 int
24632 main ()
24633 {
24634
24635   ;
24636   return 0;
24637 }
24638 _ACEOF
24639 rm -f conftest.$ac_objext conftest$ac_exeext
24640 if { (ac_try="$ac_link"
24641 case "(($ac_try" in
24642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24643   *) ac_try_echo=$ac_try;;
24644 esac
24645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24646   (eval "$ac_link") 2>conftest.er1
24647   ac_status=$?
24648   grep -v '^ *+' conftest.er1 >conftest.err
24649   rm -f conftest.er1
24650   cat conftest.err >&5
24651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24652   (exit $ac_status); } &&
24653          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24654   { (case "(($ac_try" in
24655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24656   *) ac_try_echo=$ac_try;;
24657 esac
24658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24659   (eval "$ac_try") 2>&5
24660   ac_status=$?
24661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24662   (exit $ac_status); }; } &&
24663          { ac_try='test -s conftest$ac_exeext'
24664   { (case "(($ac_try" in
24665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24666   *) ac_try_echo=$ac_try;;
24667 esac
24668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24669   (eval "$ac_try") 2>&5
24670   ac_status=$?
24671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24672   (exit $ac_status); }; }; then
24673
24674 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24675 }'`
24676 # Check for a 64-bit object if we didn't find anything.
24677 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; }
24678 }'`; fi
24679 else
24680   echo "$as_me: failed program was:" >&5
24681 sed 's/^/| /' conftest.$ac_ext >&5
24682
24683
24684 fi
24685
24686 rm -f core conftest.err conftest.$ac_objext \
24687       conftest$ac_exeext conftest.$ac_ext
24688 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24689
24690        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24691         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"
24692        else
24693         if test "$host_cpu" = ia64; then
24694           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24695           allow_undefined_flag_GCJ="-z nodefs"
24696           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"
24697         else
24698          # Determine the default libpath from the value encoded in an empty executable.
24699          cat >conftest.$ac_ext <<_ACEOF
24700 /* confdefs.h.  */
24701 _ACEOF
24702 cat confdefs.h >>conftest.$ac_ext
24703 cat >>conftest.$ac_ext <<_ACEOF
24704 /* end confdefs.h.  */
24705
24706 int
24707 main ()
24708 {
24709
24710   ;
24711   return 0;
24712 }
24713 _ACEOF
24714 rm -f conftest.$ac_objext conftest$ac_exeext
24715 if { (ac_try="$ac_link"
24716 case "(($ac_try" in
24717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24718   *) ac_try_echo=$ac_try;;
24719 esac
24720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24721   (eval "$ac_link") 2>conftest.er1
24722   ac_status=$?
24723   grep -v '^ *+' conftest.er1 >conftest.err
24724   rm -f conftest.er1
24725   cat conftest.err >&5
24726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24727   (exit $ac_status); } &&
24728          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24729   { (case "(($ac_try" in
24730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24731   *) ac_try_echo=$ac_try;;
24732 esac
24733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24734   (eval "$ac_try") 2>&5
24735   ac_status=$?
24736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24737   (exit $ac_status); }; } &&
24738          { ac_try='test -s conftest$ac_exeext'
24739   { (case "(($ac_try" in
24740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24741   *) ac_try_echo=$ac_try;;
24742 esac
24743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24744   (eval "$ac_try") 2>&5
24745   ac_status=$?
24746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24747   (exit $ac_status); }; }; then
24748
24749 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24750 }'`
24751 # Check for a 64-bit object if we didn't find anything.
24752 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; }
24753 }'`; fi
24754 else
24755   echo "$as_me: failed program was:" >&5
24756 sed 's/^/| /' conftest.$ac_ext >&5
24757
24758
24759 fi
24760
24761 rm -f core conftest.err conftest.$ac_objext \
24762       conftest$ac_exeext conftest.$ac_ext
24763 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24764
24765          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24766           # Warning - without using the other run time loading flags,
24767           # -berok will link without error, but may produce a broken library.
24768           no_undefined_flag_GCJ=' ${wl}-bernotok'
24769           allow_undefined_flag_GCJ=' ${wl}-berok'
24770           # Exported symbols can be pulled into shared objects from archives
24771           whole_archive_flag_spec_GCJ='$convenience'
24772           archive_cmds_need_lc_GCJ=yes
24773           # This is similar to how AIX traditionally builds its shared libraries.
24774           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'
24775         fi
24776       fi
24777       ;;
24778
24779     amigaos*)
24780       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)'
24781       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24782       hardcode_minus_L_GCJ=yes
24783       # see comment about different semantics on the GNU ld section
24784       ld_shlibs_GCJ=no
24785       ;;
24786
24787     bsdi[45]*)
24788       export_dynamic_flag_spec_GCJ=-rdynamic
24789       ;;
24790
24791     cygwin* | mingw* | pw32*)
24792       # When not using gcc, we currently assume that we are using
24793       # Microsoft Visual C++.
24794       # hardcode_libdir_flag_spec is actually meaningless, as there is
24795       # no search path for DLLs.
24796       hardcode_libdir_flag_spec_GCJ=' '
24797       allow_undefined_flag_GCJ=unsupported
24798       # Tell ltmain to make .lib files, not .a files.
24799       libext=lib
24800       # Tell ltmain to make .dll files, not .so files.
24801       shrext_cmds=".dll"
24802       # FIXME: Setting linknames here is a bad hack.
24803       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24804       # The linker will automatically build a .lib file if we build a DLL.
24805       old_archive_From_new_cmds_GCJ='true'
24806       # FIXME: Should let the user specify the lib program.
24807       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
24808       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
24809       enable_shared_with_static_runtimes_GCJ=yes
24810       ;;
24811
24812     darwin* | rhapsody*)
24813       case $host_os in
24814         rhapsody* | darwin1.[012])
24815          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24816          ;;
24817        *) # Darwin 1.3 on
24818          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24819            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24820          else
24821            case ${MACOSX_DEPLOYMENT_TARGET} in
24822              10.[012])
24823                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24824                ;;
24825              10.*)
24826                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24827                ;;
24828            esac
24829          fi
24830          ;;
24831       esac
24832       archive_cmds_need_lc_GCJ=no
24833       hardcode_direct_GCJ=no
24834       hardcode_automatic_GCJ=yes
24835       hardcode_shlibpath_var_GCJ=unsupported
24836       whole_archive_flag_spec_GCJ=''
24837       link_all_deplibs_GCJ=yes
24838     if test "$GCC" = yes ; then
24839         output_verbose_link_cmd='echo'
24840         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24841       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24842       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24843       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}'
24844       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}'
24845     else
24846       case $cc_basename in
24847         xlc*)
24848          output_verbose_link_cmd='echo'
24849          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24850          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24851           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24852          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}'
24853           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}'
24854           ;;
24855        *)
24856          ld_shlibs_GCJ=no
24857           ;;
24858       esac
24859     fi
24860       ;;
24861
24862     dgux*)
24863       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24864       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24865       hardcode_shlibpath_var_GCJ=no
24866       ;;
24867
24868     freebsd1*)
24869       ld_shlibs_GCJ=no
24870       ;;
24871
24872     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24873     # support.  Future versions do this automatically, but an explicit c++rt0.o
24874     # does not break anything, and helps significantly (at the cost of a little
24875     # extra space).
24876     freebsd2.2*)
24877       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24878       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24879       hardcode_direct_GCJ=yes
24880       hardcode_shlibpath_var_GCJ=no
24881       ;;
24882
24883     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24884     freebsd2*)
24885       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24886       hardcode_direct_GCJ=yes
24887       hardcode_minus_L_GCJ=yes
24888       hardcode_shlibpath_var_GCJ=no
24889       ;;
24890
24891     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24892     freebsd* | kfreebsd*-gnu | dragonfly*)
24893       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24894       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24895       hardcode_direct_GCJ=yes
24896       hardcode_shlibpath_var_GCJ=no
24897       ;;
24898
24899     hpux9*)
24900       if test "$GCC" = yes; then
24901         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'
24902       else
24903         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'
24904       fi
24905       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24906       hardcode_libdir_separator_GCJ=:
24907       hardcode_direct_GCJ=yes
24908
24909       # hardcode_minus_L: Not really in the search PATH,
24910       # but as the default location of the library.
24911       hardcode_minus_L_GCJ=yes
24912       export_dynamic_flag_spec_GCJ='${wl}-E'
24913       ;;
24914
24915     hpux10*)
24916       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24917         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24918       else
24919         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24920       fi
24921       if test "$with_gnu_ld" = no; then
24922         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24923         hardcode_libdir_separator_GCJ=:
24924
24925         hardcode_direct_GCJ=yes
24926         export_dynamic_flag_spec_GCJ='${wl}-E'
24927
24928         # hardcode_minus_L: Not really in the search PATH,
24929         # but as the default location of the library.
24930         hardcode_minus_L_GCJ=yes
24931       fi
24932       ;;
24933
24934     hpux11*)
24935       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24936         case $host_cpu in
24937         hppa*64*)
24938           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24939           ;;
24940         ia64*)
24941           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24942           ;;
24943         *)
24944           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24945           ;;
24946         esac
24947       else
24948         case $host_cpu in
24949         hppa*64*)
24950           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24951           ;;
24952         ia64*)
24953           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24954           ;;
24955         *)
24956           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24957           ;;
24958         esac
24959       fi
24960       if test "$with_gnu_ld" = no; then
24961         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24962         hardcode_libdir_separator_GCJ=:
24963
24964         case $host_cpu in
24965         hppa*64*|ia64*)
24966           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24967           hardcode_direct_GCJ=no
24968           hardcode_shlibpath_var_GCJ=no
24969           ;;
24970         *)
24971           hardcode_direct_GCJ=yes
24972           export_dynamic_flag_spec_GCJ='${wl}-E'
24973
24974           # hardcode_minus_L: Not really in the search PATH,
24975           # but as the default location of the library.
24976           hardcode_minus_L_GCJ=yes
24977           ;;
24978         esac
24979       fi
24980       ;;
24981
24982     irix5* | irix6* | nonstopux*)
24983       if test "$GCC" = yes; then
24984         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'
24985       else
24986         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'
24987         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24988       fi
24989       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24990       hardcode_libdir_separator_GCJ=:
24991       link_all_deplibs_GCJ=yes
24992       ;;
24993
24994     netbsd*)
24995       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24996         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
24997       else
24998         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
24999       fi
25000       hardcode_libdir_flag_spec_GCJ='-R$libdir'
25001       hardcode_direct_GCJ=yes
25002       hardcode_shlibpath_var_GCJ=no
25003       ;;
25004
25005     newsos6)
25006       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25007       hardcode_direct_GCJ=yes
25008       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25009       hardcode_libdir_separator_GCJ=:
25010       hardcode_shlibpath_var_GCJ=no
25011       ;;
25012
25013     openbsd*)
25014       hardcode_direct_GCJ=yes
25015       hardcode_shlibpath_var_GCJ=no
25016       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25017         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25018         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
25019         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25020         export_dynamic_flag_spec_GCJ='${wl}-E'
25021       else
25022        case $host_os in
25023          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25024            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25025            hardcode_libdir_flag_spec_GCJ='-R$libdir'
25026            ;;
25027          *)
25028            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25029            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25030            ;;
25031        esac
25032       fi
25033       ;;
25034
25035     os2*)
25036       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25037       hardcode_minus_L_GCJ=yes
25038       allow_undefined_flag_GCJ=unsupported
25039       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'
25040       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25041       ;;
25042
25043     osf3*)
25044       if test "$GCC" = yes; then
25045         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25046         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'
25047       else
25048         allow_undefined_flag_GCJ=' -expect_unresolved \*'
25049         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'
25050       fi
25051       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25052       hardcode_libdir_separator_GCJ=:
25053       ;;
25054
25055     osf4* | osf5*)      # as osf3* with the addition of -msym flag
25056       if test "$GCC" = yes; then
25057         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25058         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'
25059         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25060       else
25061         allow_undefined_flag_GCJ=' -expect_unresolved \*'
25062         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'
25063         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~
25064         $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'
25065
25066         # Both c and cxx compiler support -rpath directly
25067         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25068       fi
25069       hardcode_libdir_separator_GCJ=:
25070       ;;
25071
25072     solaris*)
25073       no_undefined_flag_GCJ=' -z text'
25074       if test "$GCC" = yes; then
25075         wlarc='${wl}'
25076         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25077         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25078           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25079       else
25080         wlarc=''
25081         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25082         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25083         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25084       fi
25085       hardcode_libdir_flag_spec_GCJ='-R$libdir'
25086       hardcode_shlibpath_var_GCJ=no
25087       case $host_os in
25088       solaris2.[0-5] | solaris2.[0-5].*) ;;
25089       *)
25090         # The compiler driver will combine linker options so we
25091         # cannot just pass the convience library names through
25092         # without $wl, iff we do not link with $LD.
25093         # Luckily, gcc supports the same syntax we need for Sun Studio.
25094         # Supported since Solaris 2.6 (maybe 2.5.1?)
25095         case $wlarc in
25096         '')
25097           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25098         *)
25099           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' ;;
25100         esac ;;
25101       esac
25102       link_all_deplibs_GCJ=yes
25103       ;;
25104
25105     sunos4*)
25106       if test "x$host_vendor" = xsequent; then
25107         # Use $CC to link under sequent, because it throws in some extra .o
25108         # files that make .init and .fini sections work.
25109         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25110       else
25111         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25112       fi
25113       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25114       hardcode_direct_GCJ=yes
25115       hardcode_minus_L_GCJ=yes
25116       hardcode_shlibpath_var_GCJ=no
25117       ;;
25118
25119     sysv4)
25120       case $host_vendor in
25121         sni)
25122           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25123           hardcode_direct_GCJ=yes # is this really true???
25124         ;;
25125         siemens)
25126           ## LD is ld it makes a PLAMLIB
25127           ## CC just makes a GrossModule.
25128           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25129           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25130           hardcode_direct_GCJ=no
25131         ;;
25132         motorola)
25133           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25134           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25135         ;;
25136       esac
25137       runpath_var='LD_RUN_PATH'
25138       hardcode_shlibpath_var_GCJ=no
25139       ;;
25140
25141     sysv4.3*)
25142       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25143       hardcode_shlibpath_var_GCJ=no
25144       export_dynamic_flag_spec_GCJ='-Bexport'
25145       ;;
25146
25147     sysv4*MP*)
25148       if test -d /usr/nec; then
25149         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25150         hardcode_shlibpath_var_GCJ=no
25151         runpath_var=LD_RUN_PATH
25152         hardcode_runpath_var=yes
25153         ld_shlibs_GCJ=yes
25154       fi
25155       ;;
25156
25157     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25158       no_undefined_flag_GCJ='${wl}-z,text'
25159       archive_cmds_need_lc_GCJ=no
25160       hardcode_shlibpath_var_GCJ=no
25161       runpath_var='LD_RUN_PATH'
25162
25163       if test "$GCC" = yes; then
25164         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25165         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25166       else
25167         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25168         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25169       fi
25170       ;;
25171
25172     sysv5* | sco3.2v5* | sco5v6*)
25173       # Note: We can NOT use -z defs as we might desire, because we do not
25174       # link with -lc, and that would cause any symbols used from libc to
25175       # always be unresolved, which means just about no library would
25176       # ever link correctly.  If we're not using GNU ld we use -z text
25177       # though, which does catch some bad symbols but isn't as heavy-handed
25178       # as -z defs.
25179       no_undefined_flag_GCJ='${wl}-z,text'
25180       allow_undefined_flag_GCJ='${wl}-z,nodefs'
25181       archive_cmds_need_lc_GCJ=no
25182       hardcode_shlibpath_var_GCJ=no
25183       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25184       hardcode_libdir_separator_GCJ=':'
25185       link_all_deplibs_GCJ=yes
25186       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25187       runpath_var='LD_RUN_PATH'
25188
25189       if test "$GCC" = yes; then
25190         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25191         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25192       else
25193         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25194         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25195       fi
25196       ;;
25197
25198     uts4*)
25199       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25200       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25201       hardcode_shlibpath_var_GCJ=no
25202       ;;
25203
25204     *)
25205       ld_shlibs_GCJ=no
25206       ;;
25207     esac
25208   fi
25209
25210 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25211 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25212 test "$ld_shlibs_GCJ" = no && can_build_shared=no
25213
25214 #
25215 # Do we need to explicitly link libc?
25216 #
25217 case "x$archive_cmds_need_lc_GCJ" in
25218 x|xyes)
25219   # Assume -lc should be added
25220   archive_cmds_need_lc_GCJ=yes
25221
25222   if test "$enable_shared" = yes && test "$GCC" = yes; then
25223     case $archive_cmds_GCJ in
25224     *'~'*)
25225       # FIXME: we may have to deal with multi-command sequences.
25226       ;;
25227     '$CC '*)
25228       # Test whether the compiler implicitly links with -lc since on some
25229       # systems, -lgcc has to come before -lc. If gcc already passes -lc
25230       # to ld, don't add -lc before -lgcc.
25231       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25232 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25233       $rm conftest*
25234       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25235
25236       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25237   (eval $ac_compile) 2>&5
25238   ac_status=$?
25239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25240   (exit $ac_status); } 2>conftest.err; then
25241         soname=conftest
25242         lib=conftest
25243         libobjs=conftest.$ac_objext
25244         deplibs=
25245         wl=$lt_prog_compiler_wl_GCJ
25246         pic_flag=$lt_prog_compiler_pic_GCJ
25247         compiler_flags=-v
25248         linker_flags=-v
25249         verstring=
25250         output_objdir=.
25251         libname=conftest
25252         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25253         allow_undefined_flag_GCJ=
25254         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25255   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25256   ac_status=$?
25257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25258   (exit $ac_status); }
25259         then
25260           archive_cmds_need_lc_GCJ=no
25261         else
25262           archive_cmds_need_lc_GCJ=yes
25263         fi
25264         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25265       else
25266         cat conftest.err 1>&5
25267       fi
25268       $rm conftest*
25269       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25270 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25271       ;;
25272     esac
25273   fi
25274   ;;
25275 esac
25276
25277 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25278 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25279 library_names_spec=
25280 libname_spec='lib$name'
25281 soname_spec=
25282 shrext_cmds=".so"
25283 postinstall_cmds=
25284 postuninstall_cmds=
25285 finish_cmds=
25286 finish_eval=
25287 shlibpath_var=
25288 shlibpath_overrides_runpath=unknown
25289 version_type=none
25290 dynamic_linker="$host_os ld.so"
25291 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25292 if test "$GCC" = yes; then
25293   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25294   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25295     # if the path contains ";" then we assume it to be the separator
25296     # otherwise default to the standard path separator (i.e. ":") - it is
25297     # assumed that no part of a normal pathname contains ";" but that should
25298     # okay in the real world where ";" in dirpaths is itself problematic.
25299     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25300   else
25301     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25302   fi
25303 else
25304   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25305 fi
25306 need_lib_prefix=unknown
25307 hardcode_into_libs=no
25308
25309 # when you set need_version to no, make sure it does not cause -set_version
25310 # flags to be left without arguments
25311 need_version=unknown
25312
25313 case $host_os in
25314 aix3*)
25315   version_type=linux
25316   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25317   shlibpath_var=LIBPATH
25318
25319   # AIX 3 has no versioning support, so we append a major version to the name.
25320   soname_spec='${libname}${release}${shared_ext}$major'
25321   ;;
25322
25323 aix4* | aix5*)
25324   version_type=linux
25325   need_lib_prefix=no
25326   need_version=no
25327   hardcode_into_libs=yes
25328   if test "$host_cpu" = ia64; then
25329     # AIX 5 supports IA64
25330     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25331     shlibpath_var=LD_LIBRARY_PATH
25332   else
25333     # With GCC up to 2.95.x, collect2 would create an import file
25334     # for dependence libraries.  The import file would start with
25335     # the line `#! .'.  This would cause the generated library to
25336     # depend on `.', always an invalid library.  This was fixed in
25337     # development snapshots of GCC prior to 3.0.
25338     case $host_os in
25339       aix4 | aix4.[01] | aix4.[01].*)
25340       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25341            echo ' yes '
25342            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25343         :
25344       else
25345         can_build_shared=no
25346       fi
25347       ;;
25348     esac
25349     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25350     # soname into executable. Probably we can add versioning support to
25351     # collect2, so additional links can be useful in future.
25352     if test "$aix_use_runtimelinking" = yes; then
25353       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25354       # instead of lib<name>.a to let people know that these are not
25355       # typical AIX shared libraries.
25356       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25357     else
25358       # We preserve .a as extension for shared libraries through AIX4.2
25359       # and later when we are not doing run time linking.
25360       library_names_spec='${libname}${release}.a $libname.a'
25361       soname_spec='${libname}${release}${shared_ext}$major'
25362     fi
25363     shlibpath_var=LIBPATH
25364   fi
25365   ;;
25366
25367 amigaos*)
25368   library_names_spec='$libname.ixlibrary $libname.a'
25369   # Create ${libname}_ixlibrary.a entries in /sys/libs.
25370   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'
25371   ;;
25372
25373 beos*)
25374   library_names_spec='${libname}${shared_ext}'
25375   dynamic_linker="$host_os ld.so"
25376   shlibpath_var=LIBRARY_PATH
25377   ;;
25378
25379 bsdi[45]*)
25380   version_type=linux
25381   need_version=no
25382   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25383   soname_spec='${libname}${release}${shared_ext}$major'
25384   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25385   shlibpath_var=LD_LIBRARY_PATH
25386   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25387   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25388   # the default ld.so.conf also contains /usr/contrib/lib and
25389   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25390   # libtool to hard-code these into programs
25391   ;;
25392
25393 cygwin* | mingw* | pw32*)
25394   version_type=windows
25395   shrext_cmds=".dll"
25396   need_version=no
25397   need_lib_prefix=no
25398
25399   case $GCC,$host_os in
25400   yes,cygwin* | yes,mingw* | yes,pw32*)
25401     library_names_spec='$libname.dll.a'
25402     # DLL is installed to $(libdir)/../bin by postinstall_cmds
25403     postinstall_cmds='base_file=`basename \${file}`~
25404       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25405       dldir=$destdir/`dirname \$dlpath`~
25406       test -d \$dldir || mkdir -p \$dldir~
25407       $install_prog $dir/$dlname \$dldir/$dlname~
25408       chmod a+x \$dldir/$dlname'
25409     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25410       dlpath=$dir/\$dldll~
25411        $rm \$dlpath'
25412     shlibpath_overrides_runpath=yes
25413
25414     case $host_os in
25415     cygwin*)
25416       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25417       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25418       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25419       ;;
25420     mingw*)
25421       # MinGW DLLs use traditional 'lib' prefix
25422       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25423       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25424       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25425         # It is most probably a Windows format PATH printed by
25426         # mingw gcc, but we are running on Cygwin. Gcc prints its search
25427         # path with ; separators, and with drive letters. We can handle the
25428         # drive letters (cygwin fileutils understands them), so leave them,
25429         # especially as we might pass files found there to a mingw objdump,
25430         # which wouldn't understand a cygwinified path. Ahh.
25431         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25432       else
25433         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25434       fi
25435       ;;
25436     pw32*)
25437       # pw32 DLLs use 'pw' prefix rather than 'lib'
25438       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25439       ;;
25440     esac
25441     ;;
25442
25443   *)
25444     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25445     ;;
25446   esac
25447   dynamic_linker='Win32 ld.exe'
25448   # FIXME: first we should search . and the directory the executable is in
25449   shlibpath_var=PATH
25450   ;;
25451
25452 darwin* | rhapsody*)
25453   dynamic_linker="$host_os dyld"
25454   version_type=darwin
25455   need_lib_prefix=no
25456   need_version=no
25457   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25458   soname_spec='${libname}${release}${major}$shared_ext'
25459   shlibpath_overrides_runpath=yes
25460   shlibpath_var=DYLD_LIBRARY_PATH
25461   shrext_cmds='.dylib'
25462   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25463   if test "$GCC" = yes; then
25464     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"`
25465   else
25466     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25467   fi
25468   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25469   ;;
25470
25471 dgux*)
25472   version_type=linux
25473   need_lib_prefix=no
25474   need_version=no
25475   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25476   soname_spec='${libname}${release}${shared_ext}$major'
25477   shlibpath_var=LD_LIBRARY_PATH
25478   ;;
25479
25480 freebsd1*)
25481   dynamic_linker=no
25482   ;;
25483
25484 kfreebsd*-gnu)
25485   version_type=linux
25486   need_lib_prefix=no
25487   need_version=no
25488   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25489   soname_spec='${libname}${release}${shared_ext}$major'
25490   shlibpath_var=LD_LIBRARY_PATH
25491   shlibpath_overrides_runpath=no
25492   hardcode_into_libs=yes
25493   dynamic_linker='GNU ld.so'
25494   ;;
25495
25496 freebsd* | dragonfly*)
25497   # DragonFly does not have aout.  When/if they implement a new
25498   # versioning mechanism, adjust this.
25499   if test -x /usr/bin/objformat; then
25500     objformat=`/usr/bin/objformat`
25501   else
25502     case $host_os in
25503     freebsd[123]*) objformat=aout ;;
25504     *) objformat=elf ;;
25505     esac
25506   fi
25507   version_type=freebsd-$objformat
25508   case $version_type in
25509     freebsd-elf*)
25510       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25511       need_version=no
25512       need_lib_prefix=no
25513       ;;
25514     freebsd-*)
25515       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25516       need_version=yes
25517       ;;
25518   esac
25519   shlibpath_var=LD_LIBRARY_PATH
25520   case $host_os in
25521   freebsd2*)
25522     shlibpath_overrides_runpath=yes
25523     ;;
25524   freebsd3.[01]* | freebsdelf3.[01]*)
25525     shlibpath_overrides_runpath=yes
25526     hardcode_into_libs=yes
25527     ;;
25528   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25529   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25530     shlibpath_overrides_runpath=no
25531     hardcode_into_libs=yes
25532     ;;
25533   freebsd*) # from 4.6 on
25534     shlibpath_overrides_runpath=yes
25535     hardcode_into_libs=yes
25536     ;;
25537   esac
25538   ;;
25539
25540 gnu*)
25541   version_type=linux
25542   need_lib_prefix=no
25543   need_version=no
25544   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25545   soname_spec='${libname}${release}${shared_ext}$major'
25546   shlibpath_var=LD_LIBRARY_PATH
25547   hardcode_into_libs=yes
25548   ;;
25549
25550 hpux9* | hpux10* | hpux11*)
25551   # Give a soname corresponding to the major version so that dld.sl refuses to
25552   # link against other versions.
25553   version_type=sunos
25554   need_lib_prefix=no
25555   need_version=no
25556   case $host_cpu in
25557   ia64*)
25558     shrext_cmds='.so'
25559     hardcode_into_libs=yes
25560     dynamic_linker="$host_os dld.so"
25561     shlibpath_var=LD_LIBRARY_PATH
25562     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25563     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25564     soname_spec='${libname}${release}${shared_ext}$major'
25565     if test "X$HPUX_IA64_MODE" = X32; then
25566       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25567     else
25568       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25569     fi
25570     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25571     ;;
25572    hppa*64*)
25573      shrext_cmds='.sl'
25574      hardcode_into_libs=yes
25575      dynamic_linker="$host_os dld.sl"
25576      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25577      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25578      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25579      soname_spec='${libname}${release}${shared_ext}$major'
25580      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25581      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25582      ;;
25583    *)
25584     shrext_cmds='.sl'
25585     dynamic_linker="$host_os dld.sl"
25586     shlibpath_var=SHLIB_PATH
25587     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25588     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25589     soname_spec='${libname}${release}${shared_ext}$major'
25590     ;;
25591   esac
25592   # HP-UX runs *really* slowly unless shared libraries are mode 555.
25593   postinstall_cmds='chmod 555 $lib'
25594   ;;
25595
25596 interix3*)
25597   version_type=linux
25598   need_lib_prefix=no
25599   need_version=no
25600   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25601   soname_spec='${libname}${release}${shared_ext}$major'
25602   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25603   shlibpath_var=LD_LIBRARY_PATH
25604   shlibpath_overrides_runpath=no
25605   hardcode_into_libs=yes
25606   ;;
25607
25608 irix5* | irix6* | nonstopux*)
25609   case $host_os in
25610     nonstopux*) version_type=nonstopux ;;
25611     *)
25612         if test "$lt_cv_prog_gnu_ld" = yes; then
25613                 version_type=linux
25614         else
25615                 version_type=irix
25616         fi ;;
25617   esac
25618   need_lib_prefix=no
25619   need_version=no
25620   soname_spec='${libname}${release}${shared_ext}$major'
25621   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25622   case $host_os in
25623   irix5* | nonstopux*)
25624     libsuff= shlibsuff=
25625     ;;
25626   *)
25627     case $LD in # libtool.m4 will add one of these switches to LD
25628     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25629       libsuff= shlibsuff= libmagic=32-bit;;
25630     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25631       libsuff=32 shlibsuff=N32 libmagic=N32;;
25632     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25633       libsuff=64 shlibsuff=64 libmagic=64-bit;;
25634     *) libsuff= shlibsuff= libmagic=never-match;;
25635     esac
25636     ;;
25637   esac
25638   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25639   shlibpath_overrides_runpath=no
25640   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25641   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25642   hardcode_into_libs=yes
25643   ;;
25644
25645 # No shared lib support for Linux oldld, aout, or coff.
25646 linux*oldld* | linux*aout* | linux*coff*)
25647   dynamic_linker=no
25648   ;;
25649
25650 # This must be Linux ELF.
25651 linux*)
25652   version_type=linux
25653   need_lib_prefix=no
25654   need_version=no
25655   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25656   soname_spec='${libname}${release}${shared_ext}$major'
25657   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25658   shlibpath_var=LD_LIBRARY_PATH
25659   shlibpath_overrides_runpath=no
25660   # This implies no fast_install, which is unacceptable.
25661   # Some rework will be needed to allow for fast_install
25662   # before this can be enabled.
25663   hardcode_into_libs=yes
25664
25665   # Append ld.so.conf contents to the search path
25666   if test -f /etc/ld.so.conf; then
25667     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' ' '`
25668     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25669   fi
25670
25671   # We used to test for /lib/ld.so.1 and disable shared libraries on
25672   # powerpc, because MkLinux only supported shared libraries with the
25673   # GNU dynamic linker.  Since this was broken with cross compilers,
25674   # most powerpc-linux boxes support dynamic linking these days and
25675   # people can always --disable-shared, the test was removed, and we
25676   # assume the GNU/Linux dynamic linker is in use.
25677   dynamic_linker='GNU/Linux ld.so'
25678   ;;
25679
25680 knetbsd*-gnu)
25681   version_type=linux
25682   need_lib_prefix=no
25683   need_version=no
25684   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25685   soname_spec='${libname}${release}${shared_ext}$major'
25686   shlibpath_var=LD_LIBRARY_PATH
25687   shlibpath_overrides_runpath=no
25688   hardcode_into_libs=yes
25689   dynamic_linker='GNU ld.so'
25690   ;;
25691
25692 netbsd*)
25693   version_type=sunos
25694   need_lib_prefix=no
25695   need_version=no
25696   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25697     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25698     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25699     dynamic_linker='NetBSD (a.out) ld.so'
25700   else
25701     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25702     soname_spec='${libname}${release}${shared_ext}$major'
25703     dynamic_linker='NetBSD ld.elf_so'
25704   fi
25705   shlibpath_var=LD_LIBRARY_PATH
25706   shlibpath_overrides_runpath=yes
25707   hardcode_into_libs=yes
25708   ;;
25709
25710 newsos6)
25711   version_type=linux
25712   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25713   shlibpath_var=LD_LIBRARY_PATH
25714   shlibpath_overrides_runpath=yes
25715   ;;
25716
25717 nto-qnx*)
25718   version_type=linux
25719   need_lib_prefix=no
25720   need_version=no
25721   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25722   soname_spec='${libname}${release}${shared_ext}$major'
25723   shlibpath_var=LD_LIBRARY_PATH
25724   shlibpath_overrides_runpath=yes
25725   ;;
25726
25727 openbsd*)
25728   version_type=sunos
25729   sys_lib_dlsearch_path_spec="/usr/lib"
25730   need_lib_prefix=no
25731   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25732   case $host_os in
25733     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25734     *)                         need_version=no  ;;
25735   esac
25736   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25737   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25738   shlibpath_var=LD_LIBRARY_PATH
25739   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25740     case $host_os in
25741       openbsd2.[89] | openbsd2.[89].*)
25742         shlibpath_overrides_runpath=no
25743         ;;
25744       *)
25745         shlibpath_overrides_runpath=yes
25746         ;;
25747       esac
25748   else
25749     shlibpath_overrides_runpath=yes
25750   fi
25751   ;;
25752
25753 os2*)
25754   libname_spec='$name'
25755   shrext_cmds=".dll"
25756   need_lib_prefix=no
25757   library_names_spec='$libname${shared_ext} $libname.a'
25758   dynamic_linker='OS/2 ld.exe'
25759   shlibpath_var=LIBPATH
25760   ;;
25761
25762 osf3* | osf4* | osf5*)
25763   version_type=osf
25764   need_lib_prefix=no
25765   need_version=no
25766   soname_spec='${libname}${release}${shared_ext}$major'
25767   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25768   shlibpath_var=LD_LIBRARY_PATH
25769   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25770   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25771   ;;
25772
25773 solaris*)
25774   version_type=linux
25775   need_lib_prefix=no
25776   need_version=no
25777   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25778   soname_spec='${libname}${release}${shared_ext}$major'
25779   shlibpath_var=LD_LIBRARY_PATH
25780   shlibpath_overrides_runpath=yes
25781   hardcode_into_libs=yes
25782   # ldd complains unless libraries are executable
25783   postinstall_cmds='chmod +x $lib'
25784   ;;
25785
25786 sunos4*)
25787   version_type=sunos
25788   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25789   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25790   shlibpath_var=LD_LIBRARY_PATH
25791   shlibpath_overrides_runpath=yes
25792   if test "$with_gnu_ld" = yes; then
25793     need_lib_prefix=no
25794   fi
25795   need_version=yes
25796   ;;
25797
25798 sysv4 | sysv4.3*)
25799   version_type=linux
25800   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25801   soname_spec='${libname}${release}${shared_ext}$major'
25802   shlibpath_var=LD_LIBRARY_PATH
25803   case $host_vendor in
25804     sni)
25805       shlibpath_overrides_runpath=no
25806       need_lib_prefix=no
25807       export_dynamic_flag_spec='${wl}-Blargedynsym'
25808       runpath_var=LD_RUN_PATH
25809       ;;
25810     siemens)
25811       need_lib_prefix=no
25812       ;;
25813     motorola)
25814       need_lib_prefix=no
25815       need_version=no
25816       shlibpath_overrides_runpath=no
25817       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25818       ;;
25819   esac
25820   ;;
25821
25822 sysv4*MP*)
25823   if test -d /usr/nec ;then
25824     version_type=linux
25825     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25826     soname_spec='$libname${shared_ext}.$major'
25827     shlibpath_var=LD_LIBRARY_PATH
25828   fi
25829   ;;
25830
25831 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25832   version_type=freebsd-elf
25833   need_lib_prefix=no
25834   need_version=no
25835   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25836   soname_spec='${libname}${release}${shared_ext}$major'
25837   shlibpath_var=LD_LIBRARY_PATH
25838   hardcode_into_libs=yes
25839   if test "$with_gnu_ld" = yes; then
25840     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25841     shlibpath_overrides_runpath=no
25842   else
25843     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25844     shlibpath_overrides_runpath=yes
25845     case $host_os in
25846       sco3.2v5*)
25847         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25848         ;;
25849     esac
25850   fi
25851   sys_lib_dlsearch_path_spec='/usr/lib'
25852   ;;
25853
25854 uts4*)
25855   version_type=linux
25856   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25857   soname_spec='${libname}${release}${shared_ext}$major'
25858   shlibpath_var=LD_LIBRARY_PATH
25859   ;;
25860
25861 *)
25862   dynamic_linker=no
25863   ;;
25864 esac
25865 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25866 echo "${ECHO_T}$dynamic_linker" >&6; }
25867 test "$dynamic_linker" = no && can_build_shared=no
25868
25869 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25870 if test "$GCC" = yes; then
25871   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25872 fi
25873
25874 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25875 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
25876 hardcode_action_GCJ=
25877 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25878    test -n "$runpath_var_GCJ" || \
25879    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25880
25881   # We can hardcode non-existant directories.
25882   if test "$hardcode_direct_GCJ" != no &&
25883      # If the only mechanism to avoid hardcoding is shlibpath_var, we
25884      # have to relink, otherwise we might link with an installed library
25885      # when we should be linking with a yet-to-be-installed one
25886      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25887      test "$hardcode_minus_L_GCJ" != no; then
25888     # Linking always hardcodes the temporary library directory.
25889     hardcode_action_GCJ=relink
25890   else
25891     # We can link without hardcoding, and we can hardcode nonexisting dirs.
25892     hardcode_action_GCJ=immediate
25893   fi
25894 else
25895   # We cannot hardcode anything, or else we can only hardcode existing
25896   # directories.
25897   hardcode_action_GCJ=unsupported
25898 fi
25899 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25900 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
25901
25902 if test "$hardcode_action_GCJ" = relink; then
25903   # Fast installation is not supported
25904   enable_fast_install=no
25905 elif test "$shlibpath_overrides_runpath" = yes ||
25906      test "$enable_shared" = no; then
25907   # Fast installation is not necessary
25908   enable_fast_install=needless
25909 fi
25910
25911
25912 # The else clause should only fire when bootstrapping the
25913 # libtool distribution, otherwise you forgot to ship ltmain.sh
25914 # with your package, and you will get complaints that there are
25915 # no rules to generate ltmain.sh.
25916 if test -f "$ltmain"; then
25917   # See if we are running on zsh, and set the options which allow our commands through
25918   # without removal of \ escapes.
25919   if test -n "${ZSH_VERSION+set}" ; then
25920     setopt NO_GLOB_SUBST
25921   fi
25922   # Now quote all the things that may contain metacharacters while being
25923   # careful not to overquote the AC_SUBSTed values.  We take copies of the
25924   # variables and quote the copies for generation of the libtool script.
25925   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25926     SED SHELL STRIP \
25927     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25928     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25929     deplibs_check_method reload_flag reload_cmds need_locks \
25930     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25931     lt_cv_sys_global_symbol_to_c_name_address \
25932     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25933     old_postinstall_cmds old_postuninstall_cmds \
25934     compiler_GCJ \
25935     CC_GCJ \
25936     LD_GCJ \
25937     lt_prog_compiler_wl_GCJ \
25938     lt_prog_compiler_pic_GCJ \
25939     lt_prog_compiler_static_GCJ \
25940     lt_prog_compiler_no_builtin_flag_GCJ \
25941     export_dynamic_flag_spec_GCJ \
25942     thread_safe_flag_spec_GCJ \
25943     whole_archive_flag_spec_GCJ \
25944     enable_shared_with_static_runtimes_GCJ \
25945     old_archive_cmds_GCJ \
25946     old_archive_from_new_cmds_GCJ \
25947     predep_objects_GCJ \
25948     postdep_objects_GCJ \
25949     predeps_GCJ \
25950     postdeps_GCJ \
25951     compiler_lib_search_path_GCJ \
25952     archive_cmds_GCJ \
25953     archive_expsym_cmds_GCJ \
25954     postinstall_cmds_GCJ \
25955     postuninstall_cmds_GCJ \
25956     old_archive_from_expsyms_cmds_GCJ \
25957     allow_undefined_flag_GCJ \
25958     no_undefined_flag_GCJ \
25959     export_symbols_cmds_GCJ \
25960     hardcode_libdir_flag_spec_GCJ \
25961     hardcode_libdir_flag_spec_ld_GCJ \
25962     hardcode_libdir_separator_GCJ \
25963     hardcode_automatic_GCJ \
25964     module_cmds_GCJ \
25965     module_expsym_cmds_GCJ \
25966     lt_cv_prog_compiler_c_o_GCJ \
25967     exclude_expsyms_GCJ \
25968     include_expsyms_GCJ; do
25969
25970     case $var in
25971     old_archive_cmds_GCJ | \
25972     old_archive_from_new_cmds_GCJ | \
25973     archive_cmds_GCJ | \
25974     archive_expsym_cmds_GCJ | \
25975     module_cmds_GCJ | \
25976     module_expsym_cmds_GCJ | \
25977     old_archive_from_expsyms_cmds_GCJ | \
25978     export_symbols_cmds_GCJ | \
25979     extract_expsyms_cmds | reload_cmds | finish_cmds | \
25980     postinstall_cmds | postuninstall_cmds | \
25981     old_postinstall_cmds | old_postuninstall_cmds | \
25982     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25983       # Double-quote double-evaled strings.
25984       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25985       ;;
25986     *)
25987       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25988       ;;
25989     esac
25990   done
25991
25992   case $lt_echo in
25993   *'\$0 --fallback-echo"')
25994     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25995     ;;
25996   esac
25997
25998 cfgfile="$ofile"
25999
26000   cat <<__EOF__ >> "$cfgfile"
26001 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26002
26003 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26004
26005 # Shell to use when invoking shell scripts.
26006 SHELL=$lt_SHELL
26007
26008 # Whether or not to build shared libraries.
26009 build_libtool_libs=$enable_shared
26010
26011 # Whether or not to build static libraries.
26012 build_old_libs=$enable_static
26013
26014 # Whether or not to add -lc for building shared libraries.
26015 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26016
26017 # Whether or not to disallow shared libs when runtime libs are static
26018 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26019
26020 # Whether or not to optimize for fast installation.
26021 fast_install=$enable_fast_install
26022
26023 # The host system.
26024 host_alias=$host_alias
26025 host=$host
26026 host_os=$host_os
26027
26028 # The build system.
26029 build_alias=$build_alias
26030 build=$build
26031 build_os=$build_os
26032
26033 # An echo program that does not interpret backslashes.
26034 echo=$lt_echo
26035
26036 # The archiver.
26037 AR=$lt_AR
26038 AR_FLAGS=$lt_AR_FLAGS
26039
26040 # A C compiler.
26041 LTCC=$lt_LTCC
26042
26043 # LTCC compiler flags.
26044 LTCFLAGS=$lt_LTCFLAGS
26045
26046 # A language-specific compiler.
26047 CC=$lt_compiler_GCJ
26048
26049 # Is the compiler the GNU C compiler?
26050 with_gcc=$GCC_GCJ
26051
26052 # An ERE matcher.
26053 EGREP=$lt_EGREP
26054
26055 # The linker used to build libraries.
26056 LD=$lt_LD_GCJ
26057
26058 # Whether we need hard or soft links.
26059 LN_S=$lt_LN_S
26060
26061 # A BSD-compatible nm program.
26062 NM=$lt_NM
26063
26064 # A symbol stripping program
26065 STRIP=$lt_STRIP
26066
26067 # Used to examine libraries when file_magic_cmd begins "file"
26068 MAGIC_CMD=$MAGIC_CMD
26069
26070 # Used on cygwin: DLL creation program.
26071 DLLTOOL="$DLLTOOL"
26072
26073 # Used on cygwin: object dumper.
26074 OBJDUMP="$OBJDUMP"
26075
26076 # Used on cygwin: assembler.
26077 AS="$AS"
26078
26079 # The name of the directory that contains temporary libtool files.
26080 objdir=$objdir
26081
26082 # How to create reloadable object files.
26083 reload_flag=$lt_reload_flag
26084 reload_cmds=$lt_reload_cmds
26085
26086 # How to pass a linker flag through the compiler.
26087 wl=$lt_lt_prog_compiler_wl_GCJ
26088
26089 # Object file suffix (normally "o").
26090 objext="$ac_objext"
26091
26092 # Old archive suffix (normally "a").
26093 libext="$libext"
26094
26095 # Shared library suffix (normally ".so").
26096 shrext_cmds='$shrext_cmds'
26097
26098 # Executable file suffix (normally "").
26099 exeext="$exeext"
26100
26101 # Additional compiler flags for building library objects.
26102 pic_flag=$lt_lt_prog_compiler_pic_GCJ
26103 pic_mode=$pic_mode
26104
26105 # What is the maximum length of a command?
26106 max_cmd_len=$lt_cv_sys_max_cmd_len
26107
26108 # Does compiler simultaneously support -c and -o options?
26109 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26110
26111 # Must we lock files when doing compilation?
26112 need_locks=$lt_need_locks
26113
26114 # Do we need the lib prefix for modules?
26115 need_lib_prefix=$need_lib_prefix
26116
26117 # Do we need a version for libraries?
26118 need_version=$need_version
26119
26120 # Whether dlopen is supported.
26121 dlopen_support=$enable_dlopen
26122
26123 # Whether dlopen of programs is supported.
26124 dlopen_self=$enable_dlopen_self
26125
26126 # Whether dlopen of statically linked programs is supported.
26127 dlopen_self_static=$enable_dlopen_self_static
26128
26129 # Compiler flag to prevent dynamic linking.
26130 link_static_flag=$lt_lt_prog_compiler_static_GCJ
26131
26132 # Compiler flag to turn off builtin functions.
26133 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26134
26135 # Compiler flag to allow reflexive dlopens.
26136 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26137
26138 # Compiler flag to generate shared objects directly from archives.
26139 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26140
26141 # Compiler flag to generate thread-safe objects.
26142 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26143
26144 # Library versioning type.
26145 version_type=$version_type
26146
26147 # Format of library name prefix.
26148 libname_spec=$lt_libname_spec
26149
26150 # List of archive names.  First name is the real one, the rest are links.
26151 # The last name is the one that the linker finds with -lNAME.
26152 library_names_spec=$lt_library_names_spec
26153
26154 # The coded name of the library, if different from the real name.
26155 soname_spec=$lt_soname_spec
26156
26157 # Commands used to build and install an old-style archive.
26158 RANLIB=$lt_RANLIB
26159 old_archive_cmds=$lt_old_archive_cmds_GCJ
26160 old_postinstall_cmds=$lt_old_postinstall_cmds
26161 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26162
26163 # Create an old-style archive from a shared archive.
26164 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26165
26166 # Create a temporary old-style archive to link instead of a shared archive.
26167 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26168
26169 # Commands used to build and install a shared archive.
26170 archive_cmds=$lt_archive_cmds_GCJ
26171 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26172 postinstall_cmds=$lt_postinstall_cmds
26173 postuninstall_cmds=$lt_postuninstall_cmds
26174
26175 # Commands used to build a loadable module (assumed same as above if empty)
26176 module_cmds=$lt_module_cmds_GCJ
26177 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26178
26179 # Commands to strip libraries.
26180 old_striplib=$lt_old_striplib
26181 striplib=$lt_striplib
26182
26183 # Dependencies to place before the objects being linked to create a
26184 # shared library.
26185 predep_objects=$lt_predep_objects_GCJ
26186
26187 # Dependencies to place after the objects being linked to create a
26188 # shared library.
26189 postdep_objects=$lt_postdep_objects_GCJ
26190
26191 # Dependencies to place before the objects being linked to create a
26192 # shared library.
26193 predeps=$lt_predeps_GCJ
26194
26195 # Dependencies to place after the objects being linked to create a
26196 # shared library.
26197 postdeps=$lt_postdeps_GCJ
26198
26199 # The library search path used internally by the compiler when linking
26200 # a shared library.
26201 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26202
26203 # Method to check whether dependent libraries are shared objects.
26204 deplibs_check_method=$lt_deplibs_check_method
26205
26206 # Command to use when deplibs_check_method == file_magic.
26207 file_magic_cmd=$lt_file_magic_cmd
26208
26209 # Flag that allows shared libraries with undefined symbols to be built.
26210 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26211
26212 # Flag that forces no undefined symbols.
26213 no_undefined_flag=$lt_no_undefined_flag_GCJ
26214
26215 # Commands used to finish a libtool library installation in a directory.
26216 finish_cmds=$lt_finish_cmds
26217
26218 # Same as above, but a single script fragment to be evaled but not shown.
26219 finish_eval=$lt_finish_eval
26220
26221 # Take the output of nm and produce a listing of raw symbols and C names.
26222 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26223
26224 # Transform the output of nm in a proper C declaration
26225 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26226
26227 # Transform the output of nm in a C name address pair
26228 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26229
26230 # This is the shared library runtime path variable.
26231 runpath_var=$runpath_var
26232
26233 # This is the shared library path variable.
26234 shlibpath_var=$shlibpath_var
26235
26236 # Is shlibpath searched before the hard-coded library search path?
26237 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26238
26239 # How to hardcode a shared library path into an executable.
26240 hardcode_action=$hardcode_action_GCJ
26241
26242 # Whether we should hardcode library paths into libraries.
26243 hardcode_into_libs=$hardcode_into_libs
26244
26245 # Flag to hardcode \$libdir into a binary during linking.
26246 # This must work even if \$libdir does not exist.
26247 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26248
26249 # If ld is used when linking, flag to hardcode \$libdir into
26250 # a binary during linking. This must work even if \$libdir does
26251 # not exist.
26252 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26253
26254 # Whether we need a single -rpath flag with a separated argument.
26255 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26256
26257 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26258 # resulting binary.
26259 hardcode_direct=$hardcode_direct_GCJ
26260
26261 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26262 # resulting binary.
26263 hardcode_minus_L=$hardcode_minus_L_GCJ
26264
26265 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26266 # the resulting binary.
26267 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26268
26269 # Set to yes if building a shared library automatically hardcodes DIR into the library
26270 # and all subsequent libraries and executables linked against it.
26271 hardcode_automatic=$hardcode_automatic_GCJ
26272
26273 # Variables whose values should be saved in libtool wrapper scripts and
26274 # restored at relink time.
26275 variables_saved_for_relink="$variables_saved_for_relink"
26276
26277 # Whether libtool must link a program against all its dependency libraries.
26278 link_all_deplibs=$link_all_deplibs_GCJ
26279
26280 # Compile-time system search path for libraries
26281 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26282
26283 # Run-time system search path for libraries
26284 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26285
26286 # Fix the shell variable \$srcfile for the compiler.
26287 fix_srcfile_path="$fix_srcfile_path_GCJ"
26288
26289 # Set to yes if exported symbols are required.
26290 always_export_symbols=$always_export_symbols_GCJ
26291
26292 # The commands to list exported symbols.
26293 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26294
26295 # The commands to extract the exported symbol list from a shared archive.
26296 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26297
26298 # Symbols that should not be listed in the preloaded symbols.
26299 exclude_expsyms=$lt_exclude_expsyms_GCJ
26300
26301 # Symbols that must always be exported.
26302 include_expsyms=$lt_include_expsyms_GCJ
26303
26304 # ### END LIBTOOL TAG CONFIG: $tagname
26305
26306 __EOF__
26307
26308
26309 else
26310   # If there is no Makefile yet, we rely on a make rule to execute
26311   # `config.status --recheck' to rerun these tests and create the
26312   # libtool script then.
26313   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26314   if test -f "$ltmain_in"; then
26315     test -f Makefile && make "$ltmain"
26316   fi
26317 fi
26318
26319
26320 ac_ext=c
26321 ac_cpp='$CPP $CPPFLAGS'
26322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26325
26326 CC="$lt_save_CC"
26327
26328         else
26329           tagname=""
26330         fi
26331         ;;
26332
26333       RC)
26334         ac_ext=c
26335 ac_cpp='$CPP $CPPFLAGS'
26336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26339
26340
26341 # Source file extension for RC test sources.
26342 ac_ext=rc
26343
26344 # Object file extension for compiled RC test sources.
26345 objext=o
26346 objext_RC=$objext
26347
26348 # Code to be used in simple compile tests
26349 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26350
26351 # Code to be used in simple link tests
26352 lt_simple_link_test_code="$lt_simple_compile_test_code"
26353
26354 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26355
26356 # If no C compiler was specified, use CC.
26357 LTCC=${LTCC-"$CC"}
26358
26359 # If no C compiler flags were specified, use CFLAGS.
26360 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26361
26362 # Allow CC to be a program name with arguments.
26363 compiler=$CC
26364
26365
26366 # save warnings/boilerplate of simple test code
26367 ac_outfile=conftest.$ac_objext
26368 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26369 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26370 _lt_compiler_boilerplate=`cat conftest.err`
26371 $rm conftest*
26372
26373 ac_outfile=conftest.$ac_objext
26374 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26375 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26376 _lt_linker_boilerplate=`cat conftest.err`
26377 $rm conftest*
26378
26379
26380 # Allow CC to be a program name with arguments.
26381 lt_save_CC="$CC"
26382 CC=${RC-"windres"}
26383 compiler=$CC
26384 compiler_RC=$CC
26385 for cc_temp in $compiler""; do
26386   case $cc_temp in
26387     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26388     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26389     \-*) ;;
26390     *) break;;
26391   esac
26392 done
26393 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26394
26395 lt_cv_prog_compiler_c_o_RC=yes
26396
26397 # The else clause should only fire when bootstrapping the
26398 # libtool distribution, otherwise you forgot to ship ltmain.sh
26399 # with your package, and you will get complaints that there are
26400 # no rules to generate ltmain.sh.
26401 if test -f "$ltmain"; then
26402   # See if we are running on zsh, and set the options which allow our commands through
26403   # without removal of \ escapes.
26404   if test -n "${ZSH_VERSION+set}" ; then
26405     setopt NO_GLOB_SUBST
26406   fi
26407   # Now quote all the things that may contain metacharacters while being
26408   # careful not to overquote the AC_SUBSTed values.  We take copies of the
26409   # variables and quote the copies for generation of the libtool script.
26410   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26411     SED SHELL STRIP \
26412     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26413     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26414     deplibs_check_method reload_flag reload_cmds need_locks \
26415     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26416     lt_cv_sys_global_symbol_to_c_name_address \
26417     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26418     old_postinstall_cmds old_postuninstall_cmds \
26419     compiler_RC \
26420     CC_RC \
26421     LD_RC \
26422     lt_prog_compiler_wl_RC \
26423     lt_prog_compiler_pic_RC \
26424     lt_prog_compiler_static_RC \
26425     lt_prog_compiler_no_builtin_flag_RC \
26426     export_dynamic_flag_spec_RC \
26427     thread_safe_flag_spec_RC \
26428     whole_archive_flag_spec_RC \
26429     enable_shared_with_static_runtimes_RC \
26430     old_archive_cmds_RC \
26431     old_archive_from_new_cmds_RC \
26432     predep_objects_RC \
26433     postdep_objects_RC \
26434     predeps_RC \
26435     postdeps_RC \
26436     compiler_lib_search_path_RC \
26437     archive_cmds_RC \
26438     archive_expsym_cmds_RC \
26439     postinstall_cmds_RC \
26440     postuninstall_cmds_RC \
26441     old_archive_from_expsyms_cmds_RC \
26442     allow_undefined_flag_RC \
26443     no_undefined_flag_RC \
26444     export_symbols_cmds_RC \
26445     hardcode_libdir_flag_spec_RC \
26446     hardcode_libdir_flag_spec_ld_RC \
26447     hardcode_libdir_separator_RC \
26448     hardcode_automatic_RC \
26449     module_cmds_RC \
26450     module_expsym_cmds_RC \
26451     lt_cv_prog_compiler_c_o_RC \
26452     exclude_expsyms_RC \
26453     include_expsyms_RC; do
26454
26455     case $var in
26456     old_archive_cmds_RC | \
26457     old_archive_from_new_cmds_RC | \
26458     archive_cmds_RC | \
26459     archive_expsym_cmds_RC | \
26460     module_cmds_RC | \
26461     module_expsym_cmds_RC | \
26462     old_archive_from_expsyms_cmds_RC | \
26463     export_symbols_cmds_RC | \
26464     extract_expsyms_cmds | reload_cmds | finish_cmds | \
26465     postinstall_cmds | postuninstall_cmds | \
26466     old_postinstall_cmds | old_postuninstall_cmds | \
26467     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26468       # Double-quote double-evaled strings.
26469       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26470       ;;
26471     *)
26472       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26473       ;;
26474     esac
26475   done
26476
26477   case $lt_echo in
26478   *'\$0 --fallback-echo"')
26479     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26480     ;;
26481   esac
26482
26483 cfgfile="$ofile"
26484
26485   cat <<__EOF__ >> "$cfgfile"
26486 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26487
26488 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26489
26490 # Shell to use when invoking shell scripts.
26491 SHELL=$lt_SHELL
26492
26493 # Whether or not to build shared libraries.
26494 build_libtool_libs=$enable_shared
26495
26496 # Whether or not to build static libraries.
26497 build_old_libs=$enable_static
26498
26499 # Whether or not to add -lc for building shared libraries.
26500 build_libtool_need_lc=$archive_cmds_need_lc_RC
26501
26502 # Whether or not to disallow shared libs when runtime libs are static
26503 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26504
26505 # Whether or not to optimize for fast installation.
26506 fast_install=$enable_fast_install
26507
26508 # The host system.
26509 host_alias=$host_alias
26510 host=$host
26511 host_os=$host_os
26512
26513 # The build system.
26514 build_alias=$build_alias
26515 build=$build
26516 build_os=$build_os
26517
26518 # An echo program that does not interpret backslashes.
26519 echo=$lt_echo
26520
26521 # The archiver.
26522 AR=$lt_AR
26523 AR_FLAGS=$lt_AR_FLAGS
26524
26525 # A C compiler.
26526 LTCC=$lt_LTCC
26527
26528 # LTCC compiler flags.
26529 LTCFLAGS=$lt_LTCFLAGS
26530
26531 # A language-specific compiler.
26532 CC=$lt_compiler_RC
26533
26534 # Is the compiler the GNU C compiler?
26535 with_gcc=$GCC_RC
26536
26537 # An ERE matcher.
26538 EGREP=$lt_EGREP
26539
26540 # The linker used to build libraries.
26541 LD=$lt_LD_RC
26542
26543 # Whether we need hard or soft links.
26544 LN_S=$lt_LN_S
26545
26546 # A BSD-compatible nm program.
26547 NM=$lt_NM
26548
26549 # A symbol stripping program
26550 STRIP=$lt_STRIP
26551
26552 # Used to examine libraries when file_magic_cmd begins "file"
26553 MAGIC_CMD=$MAGIC_CMD
26554
26555 # Used on cygwin: DLL creation program.
26556 DLLTOOL="$DLLTOOL"
26557
26558 # Used on cygwin: object dumper.
26559 OBJDUMP="$OBJDUMP"
26560
26561 # Used on cygwin: assembler.
26562 AS="$AS"
26563
26564 # The name of the directory that contains temporary libtool files.
26565 objdir=$objdir
26566
26567 # How to create reloadable object files.
26568 reload_flag=$lt_reload_flag
26569 reload_cmds=$lt_reload_cmds
26570
26571 # How to pass a linker flag through the compiler.
26572 wl=$lt_lt_prog_compiler_wl_RC
26573
26574 # Object file suffix (normally "o").
26575 objext="$ac_objext"
26576
26577 # Old archive suffix (normally "a").
26578 libext="$libext"
26579
26580 # Shared library suffix (normally ".so").
26581 shrext_cmds='$shrext_cmds'
26582
26583 # Executable file suffix (normally "").
26584 exeext="$exeext"
26585
26586 # Additional compiler flags for building library objects.
26587 pic_flag=$lt_lt_prog_compiler_pic_RC
26588 pic_mode=$pic_mode
26589
26590 # What is the maximum length of a command?
26591 max_cmd_len=$lt_cv_sys_max_cmd_len
26592
26593 # Does compiler simultaneously support -c and -o options?
26594 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26595
26596 # Must we lock files when doing compilation?
26597 need_locks=$lt_need_locks
26598
26599 # Do we need the lib prefix for modules?
26600 need_lib_prefix=$need_lib_prefix
26601
26602 # Do we need a version for libraries?
26603 need_version=$need_version
26604
26605 # Whether dlopen is supported.
26606 dlopen_support=$enable_dlopen
26607
26608 # Whether dlopen of programs is supported.
26609 dlopen_self=$enable_dlopen_self
26610
26611 # Whether dlopen of statically linked programs is supported.
26612 dlopen_self_static=$enable_dlopen_self_static
26613
26614 # Compiler flag to prevent dynamic linking.
26615 link_static_flag=$lt_lt_prog_compiler_static_RC
26616
26617 # Compiler flag to turn off builtin functions.
26618 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26619
26620 # Compiler flag to allow reflexive dlopens.
26621 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26622
26623 # Compiler flag to generate shared objects directly from archives.
26624 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26625
26626 # Compiler flag to generate thread-safe objects.
26627 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26628
26629 # Library versioning type.
26630 version_type=$version_type
26631
26632 # Format of library name prefix.
26633 libname_spec=$lt_libname_spec
26634
26635 # List of archive names.  First name is the real one, the rest are links.
26636 # The last name is the one that the linker finds with -lNAME.
26637 library_names_spec=$lt_library_names_spec
26638
26639 # The coded name of the library, if different from the real name.
26640 soname_spec=$lt_soname_spec
26641
26642 # Commands used to build and install an old-style archive.
26643 RANLIB=$lt_RANLIB
26644 old_archive_cmds=$lt_old_archive_cmds_RC
26645 old_postinstall_cmds=$lt_old_postinstall_cmds
26646 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26647
26648 # Create an old-style archive from a shared archive.
26649 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26650
26651 # Create a temporary old-style archive to link instead of a shared archive.
26652 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26653
26654 # Commands used to build and install a shared archive.
26655 archive_cmds=$lt_archive_cmds_RC
26656 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26657 postinstall_cmds=$lt_postinstall_cmds
26658 postuninstall_cmds=$lt_postuninstall_cmds
26659
26660 # Commands used to build a loadable module (assumed same as above if empty)
26661 module_cmds=$lt_module_cmds_RC
26662 module_expsym_cmds=$lt_module_expsym_cmds_RC
26663
26664 # Commands to strip libraries.
26665 old_striplib=$lt_old_striplib
26666 striplib=$lt_striplib
26667
26668 # Dependencies to place before the objects being linked to create a
26669 # shared library.
26670 predep_objects=$lt_predep_objects_RC
26671
26672 # Dependencies to place after the objects being linked to create a
26673 # shared library.
26674 postdep_objects=$lt_postdep_objects_RC
26675
26676 # Dependencies to place before the objects being linked to create a
26677 # shared library.
26678 predeps=$lt_predeps_RC
26679
26680 # Dependencies to place after the objects being linked to create a
26681 # shared library.
26682 postdeps=$lt_postdeps_RC
26683
26684 # The library search path used internally by the compiler when linking
26685 # a shared library.
26686 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26687
26688 # Method to check whether dependent libraries are shared objects.
26689 deplibs_check_method=$lt_deplibs_check_method
26690
26691 # Command to use when deplibs_check_method == file_magic.
26692 file_magic_cmd=$lt_file_magic_cmd
26693
26694 # Flag that allows shared libraries with undefined symbols to be built.
26695 allow_undefined_flag=$lt_allow_undefined_flag_RC
26696
26697 # Flag that forces no undefined symbols.
26698 no_undefined_flag=$lt_no_undefined_flag_RC
26699
26700 # Commands used to finish a libtool library installation in a directory.
26701 finish_cmds=$lt_finish_cmds
26702
26703 # Same as above, but a single script fragment to be evaled but not shown.
26704 finish_eval=$lt_finish_eval
26705
26706 # Take the output of nm and produce a listing of raw symbols and C names.
26707 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26708
26709 # Transform the output of nm in a proper C declaration
26710 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26711
26712 # Transform the output of nm in a C name address pair
26713 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26714
26715 # This is the shared library runtime path variable.
26716 runpath_var=$runpath_var
26717
26718 # This is the shared library path variable.
26719 shlibpath_var=$shlibpath_var
26720
26721 # Is shlibpath searched before the hard-coded library search path?
26722 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26723
26724 # How to hardcode a shared library path into an executable.
26725 hardcode_action=$hardcode_action_RC
26726
26727 # Whether we should hardcode library paths into libraries.
26728 hardcode_into_libs=$hardcode_into_libs
26729
26730 # Flag to hardcode \$libdir into a binary during linking.
26731 # This must work even if \$libdir does not exist.
26732 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26733
26734 # If ld is used when linking, flag to hardcode \$libdir into
26735 # a binary during linking. This must work even if \$libdir does
26736 # not exist.
26737 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26738
26739 # Whether we need a single -rpath flag with a separated argument.
26740 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26741
26742 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26743 # resulting binary.
26744 hardcode_direct=$hardcode_direct_RC
26745
26746 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26747 # resulting binary.
26748 hardcode_minus_L=$hardcode_minus_L_RC
26749
26750 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26751 # the resulting binary.
26752 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26753
26754 # Set to yes if building a shared library automatically hardcodes DIR into the library
26755 # and all subsequent libraries and executables linked against it.
26756 hardcode_automatic=$hardcode_automatic_RC
26757
26758 # Variables whose values should be saved in libtool wrapper scripts and
26759 # restored at relink time.
26760 variables_saved_for_relink="$variables_saved_for_relink"
26761
26762 # Whether libtool must link a program against all its dependency libraries.
26763 link_all_deplibs=$link_all_deplibs_RC
26764
26765 # Compile-time system search path for libraries
26766 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26767
26768 # Run-time system search path for libraries
26769 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26770
26771 # Fix the shell variable \$srcfile for the compiler.
26772 fix_srcfile_path="$fix_srcfile_path_RC"
26773
26774 # Set to yes if exported symbols are required.
26775 always_export_symbols=$always_export_symbols_RC
26776
26777 # The commands to list exported symbols.
26778 export_symbols_cmds=$lt_export_symbols_cmds_RC
26779
26780 # The commands to extract the exported symbol list from a shared archive.
26781 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26782
26783 # Symbols that should not be listed in the preloaded symbols.
26784 exclude_expsyms=$lt_exclude_expsyms_RC
26785
26786 # Symbols that must always be exported.
26787 include_expsyms=$lt_include_expsyms_RC
26788
26789 # ### END LIBTOOL TAG CONFIG: $tagname
26790
26791 __EOF__
26792
26793
26794 else
26795   # If there is no Makefile yet, we rely on a make rule to execute
26796   # `config.status --recheck' to rerun these tests and create the
26797   # libtool script then.
26798   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26799   if test -f "$ltmain_in"; then
26800     test -f Makefile && make "$ltmain"
26801   fi
26802 fi
26803
26804
26805 ac_ext=c
26806 ac_cpp='$CPP $CPPFLAGS'
26807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26810
26811 CC="$lt_save_CC"
26812
26813         ;;
26814
26815       *)
26816         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26817 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26818    { (exit 1); exit 1; }; }
26819         ;;
26820       esac
26821
26822       # Append the new tag name to the list of available tags.
26823       if test -n "$tagname" ; then
26824       available_tags="$available_tags $tagname"
26825     fi
26826     fi
26827   done
26828   IFS="$lt_save_ifs"
26829
26830   # Now substitute the updated list of available tags.
26831   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26832     mv "${ofile}T" "$ofile"
26833     chmod +x "$ofile"
26834   else
26835     rm -f "${ofile}T"
26836     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26837 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26838    { (exit 1); exit 1; }; }
26839   fi
26840 fi
26841
26842
26843
26844 # This can be used to rebuild libtool when needed
26845 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26846
26847 # Always use our own libtool.
26848 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
26849
26850 # Prevent multiple expansion
26851
26852
26853
26854
26855
26856
26857
26858
26859
26860
26861
26862
26863
26864
26865
26866
26867
26868
26869
26870
26871
26872 if test "$lt_cv_dlopen_self" = "yes" ; then
26873
26874 cat >>confdefs.h <<\_ACEOF
26875 #define CAN_DLOPEN_SELF 1
26876 _ACEOF
26877
26878 fi
26879
26880 if test "$WITH_LLVMGCCDIR" = "default" ; then
26881   LLVMGCC="llvm-gcc${EXEEXT}"
26882   LLVMGXX="llvm-g++${EXEEXT}"
26883   # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26884 set dummy $LLVMGCC; ac_word=$2
26885 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26887 if test "${ac_cv_path_LLVMGCC+set}" = set; then
26888   echo $ECHO_N "(cached) $ECHO_C" >&6
26889 else
26890   case $LLVMGCC in
26891   [\\/]* | ?:[\\/]*)
26892   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26893   ;;
26894   *)
26895   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26896 for as_dir in $PATH
26897 do
26898   IFS=$as_save_IFS
26899   test -z "$as_dir" && as_dir=.
26900   for ac_exec_ext in '' $ac_executable_extensions; do
26901   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26902     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26903     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26904     break 2
26905   fi
26906 done
26907 done
26908 IFS=$as_save_IFS
26909
26910   ;;
26911 esac
26912 fi
26913 LLVMGCC=$ac_cv_path_LLVMGCC
26914 if test -n "$LLVMGCC"; then
26915   { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26916 echo "${ECHO_T}$LLVMGCC" >&6; }
26917 else
26918   { echo "$as_me:$LINENO: result: no" >&5
26919 echo "${ECHO_T}no" >&6; }
26920 fi
26921
26922
26923   # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26924 set dummy $LLVMGXX; ac_word=$2
26925 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26927 if test "${ac_cv_path_LLVMGXX+set}" = set; then
26928   echo $ECHO_N "(cached) $ECHO_C" >&6
26929 else
26930   case $LLVMGXX in
26931   [\\/]* | ?:[\\/]*)
26932   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26933   ;;
26934   *)
26935   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26936 for as_dir in $PATH
26937 do
26938   IFS=$as_save_IFS
26939   test -z "$as_dir" && as_dir=.
26940   for ac_exec_ext in '' $ac_executable_extensions; do
26941   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26942     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26943     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26944     break 2
26945   fi
26946 done
26947 done
26948 IFS=$as_save_IFS
26949
26950   ;;
26951 esac
26952 fi
26953 LLVMGXX=$ac_cv_path_LLVMGXX
26954 if test -n "$LLVMGXX"; then
26955   { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26956 echo "${ECHO_T}$LLVMGXX" >&6; }
26957 else
26958   { echo "$as_me:$LINENO: result: no" >&5
26959 echo "${ECHO_T}no" >&6; }
26960 fi
26961
26962
26963 else
26964   if test -z "$LLVMGCC"; then
26965     LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26966   fi
26967   if test -z "$LLVMGXX"; then
26968     LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
26969   fi
26970   LLVMGCC=$LLVMGCC
26971
26972   LLVMGXX=$LLVMGXX
26973
26974 fi
26975
26976 { echo "$as_me:$LINENO: checking tool compatibility" >&5
26977 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
26978
26979 ICC=no
26980 IXX=no
26981 case $CC in
26982   icc*|icpc*)
26983     ICC=yes
26984     IXX=yes
26985     ;;
26986    *)
26987     ;;
26988 esac
26989
26990 if test "$GCC" != "yes" && test "$ICC" != "yes"
26991 then
26992   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26993 echo "$as_me: error: gcc|icc required but not found" >&2;}
26994    { (exit 1); exit 1; }; }
26995 fi
26996
26997 if test "$GXX" != "yes" && test "$IXX" != "yes"
26998 then
26999   { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27000 echo "$as_me: error: g++|icc required but not found" >&2;}
27001    { (exit 1); exit 1; }; }
27002 fi
27003
27004 if test "$GCC" = "yes"
27005 then
27006   cat >conftest.$ac_ext <<_ACEOF
27007 #if !defined(__GNUC__) || __GNUC__ < 3
27008 #error Unsupported GCC version
27009 #endif
27010
27011 _ACEOF
27012 rm -f conftest.$ac_objext
27013 if { (ac_try="$ac_compile"
27014 case "(($ac_try" in
27015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27016   *) ac_try_echo=$ac_try;;
27017 esac
27018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27019   (eval "$ac_compile") 2>conftest.er1
27020   ac_status=$?
27021   grep -v '^ *+' conftest.er1 >conftest.err
27022   rm -f conftest.er1
27023   cat conftest.err >&5
27024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27025   (exit $ac_status); } &&
27026          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27027   { (case "(($ac_try" in
27028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27029   *) ac_try_echo=$ac_try;;
27030 esac
27031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27032   (eval "$ac_try") 2>&5
27033   ac_status=$?
27034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27035   (exit $ac_status); }; } &&
27036          { ac_try='test -s conftest.$ac_objext'
27037   { (case "(($ac_try" in
27038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27039   *) ac_try_echo=$ac_try;;
27040 esac
27041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27042   (eval "$ac_try") 2>&5
27043   ac_status=$?
27044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27045   (exit $ac_status); }; }; then
27046   :
27047 else
27048   echo "$as_me: failed program was:" >&5
27049 sed 's/^/| /' conftest.$ac_ext >&5
27050
27051         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
27052 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27053    { (exit 1); exit 1; }; }
27054 fi
27055
27056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27057 fi
27058
27059 if test -z "$llvm_cv_gnu_make_command"
27060 then
27061   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27062 echo "$as_me: error: GNU Make required but not found" >&2;}
27063    { (exit 1); exit 1; }; }
27064 fi
27065
27066 { echo "$as_me:$LINENO: result: ok" >&5
27067 echo "${ECHO_T}ok" >&6; }
27068
27069
27070
27071 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
27072 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
27073 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
27074   echo $ECHO_N "(cached) $ECHO_C" >&6
27075 else
27076   ac_check_lib_save_LIBS=$LIBS
27077 LIBS="-lelf  $LIBS"
27078 cat >conftest.$ac_ext <<_ACEOF
27079 /* confdefs.h.  */
27080 _ACEOF
27081 cat confdefs.h >>conftest.$ac_ext
27082 cat >>conftest.$ac_ext <<_ACEOF
27083 /* end confdefs.h.  */
27084
27085 /* Override any GCC internal prototype to avoid an error.
27086    Use char because int might match the return type of a GCC
27087    builtin and then its argument prototype would still apply.  */
27088 #ifdef __cplusplus
27089 extern "C"
27090 #endif
27091 char elf_begin ();
27092 int
27093 main ()
27094 {
27095 return elf_begin ();
27096   ;
27097   return 0;
27098 }
27099 _ACEOF
27100 rm -f conftest.$ac_objext conftest$ac_exeext
27101 if { (ac_try="$ac_link"
27102 case "(($ac_try" in
27103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27104   *) ac_try_echo=$ac_try;;
27105 esac
27106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27107   (eval "$ac_link") 2>conftest.er1
27108   ac_status=$?
27109   grep -v '^ *+' conftest.er1 >conftest.err
27110   rm -f conftest.er1
27111   cat conftest.err >&5
27112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27113   (exit $ac_status); } &&
27114          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
27124          { ac_try='test -s conftest$ac_exeext'
27125   { (case "(($ac_try" in
27126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27127   *) ac_try_echo=$ac_try;;
27128 esac
27129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27130   (eval "$ac_try") 2>&5
27131   ac_status=$?
27132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27133   (exit $ac_status); }; }; then
27134   ac_cv_lib_elf_elf_begin=yes
27135 else
27136   echo "$as_me: failed program was:" >&5
27137 sed 's/^/| /' conftest.$ac_ext >&5
27138
27139         ac_cv_lib_elf_elf_begin=no
27140 fi
27141
27142 rm -f core conftest.err conftest.$ac_objext \
27143       conftest$ac_exeext conftest.$ac_ext
27144 LIBS=$ac_check_lib_save_LIBS
27145 fi
27146 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
27147 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
27148 if test $ac_cv_lib_elf_elf_begin = yes; then
27149   cat >>confdefs.h <<_ACEOF
27150 #define HAVE_LIBELF 1
27151 _ACEOF
27152
27153   LIBS="-lelf $LIBS"
27154
27155 fi
27156
27157
27158 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
27159 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
27160 if test "${ac_cv_lib_m_sin+set}" = set; then
27161   echo $ECHO_N "(cached) $ECHO_C" >&6
27162 else
27163   ac_check_lib_save_LIBS=$LIBS
27164 LIBS="-lm  $LIBS"
27165 cat >conftest.$ac_ext <<_ACEOF
27166 /* confdefs.h.  */
27167 _ACEOF
27168 cat confdefs.h >>conftest.$ac_ext
27169 cat >>conftest.$ac_ext <<_ACEOF
27170 /* end confdefs.h.  */
27171
27172 /* Override any GCC internal prototype to avoid an error.
27173    Use char because int might match the return type of a GCC
27174    builtin and then its argument prototype would still apply.  */
27175 #ifdef __cplusplus
27176 extern "C"
27177 #endif
27178 char sin ();
27179 int
27180 main ()
27181 {
27182 return sin ();
27183   ;
27184   return 0;
27185 }
27186 _ACEOF
27187 rm -f conftest.$ac_objext conftest$ac_exeext
27188 if { (ac_try="$ac_link"
27189 case "(($ac_try" in
27190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27191   *) ac_try_echo=$ac_try;;
27192 esac
27193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27194   (eval "$ac_link") 2>conftest.er1
27195   ac_status=$?
27196   grep -v '^ *+' conftest.er1 >conftest.err
27197   rm -f conftest.er1
27198   cat conftest.err >&5
27199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27200   (exit $ac_status); } &&
27201          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27202   { (case "(($ac_try" in
27203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27204   *) ac_try_echo=$ac_try;;
27205 esac
27206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27207   (eval "$ac_try") 2>&5
27208   ac_status=$?
27209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27210   (exit $ac_status); }; } &&
27211          { ac_try='test -s conftest$ac_exeext'
27212   { (case "(($ac_try" in
27213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27214   *) ac_try_echo=$ac_try;;
27215 esac
27216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27217   (eval "$ac_try") 2>&5
27218   ac_status=$?
27219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27220   (exit $ac_status); }; }; then
27221   ac_cv_lib_m_sin=yes
27222 else
27223   echo "$as_me: failed program was:" >&5
27224 sed 's/^/| /' conftest.$ac_ext >&5
27225
27226         ac_cv_lib_m_sin=no
27227 fi
27228
27229 rm -f core conftest.err conftest.$ac_objext \
27230       conftest$ac_exeext conftest.$ac_ext
27231 LIBS=$ac_check_lib_save_LIBS
27232 fi
27233 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27234 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27235 if test $ac_cv_lib_m_sin = yes; then
27236   cat >>confdefs.h <<_ACEOF
27237 #define HAVE_LIBM 1
27238 _ACEOF
27239
27240   LIBS="-lm $LIBS"
27241
27242 fi
27243
27244 if test "$llvm_cv_os_type" = "MingW" ; then
27245
27246 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27247 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27248 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27249   echo $ECHO_N "(cached) $ECHO_C" >&6
27250 else
27251   ac_check_lib_save_LIBS=$LIBS
27252 LIBS="-limagehlp  $LIBS"
27253 cat >conftest.$ac_ext <<_ACEOF
27254 /* confdefs.h.  */
27255 _ACEOF
27256 cat confdefs.h >>conftest.$ac_ext
27257 cat >>conftest.$ac_ext <<_ACEOF
27258 /* end confdefs.h.  */
27259
27260
27261 int
27262 main ()
27263 {
27264 return main ();
27265   ;
27266   return 0;
27267 }
27268 _ACEOF
27269 rm -f conftest.$ac_objext conftest$ac_exeext
27270 if { (ac_try="$ac_link"
27271 case "(($ac_try" in
27272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27273   *) ac_try_echo=$ac_try;;
27274 esac
27275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27276   (eval "$ac_link") 2>conftest.er1
27277   ac_status=$?
27278   grep -v '^ *+' conftest.er1 >conftest.err
27279   rm -f conftest.er1
27280   cat conftest.err >&5
27281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27282   (exit $ac_status); } &&
27283          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27284   { (case "(($ac_try" in
27285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27286   *) ac_try_echo=$ac_try;;
27287 esac
27288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27289   (eval "$ac_try") 2>&5
27290   ac_status=$?
27291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27292   (exit $ac_status); }; } &&
27293          { ac_try='test -s conftest$ac_exeext'
27294   { (case "(($ac_try" in
27295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27296   *) ac_try_echo=$ac_try;;
27297 esac
27298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27299   (eval "$ac_try") 2>&5
27300   ac_status=$?
27301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27302   (exit $ac_status); }; }; then
27303   ac_cv_lib_imagehlp_main=yes
27304 else
27305   echo "$as_me: failed program was:" >&5
27306 sed 's/^/| /' conftest.$ac_ext >&5
27307
27308         ac_cv_lib_imagehlp_main=no
27309 fi
27310
27311 rm -f core conftest.err conftest.$ac_objext \
27312       conftest$ac_exeext conftest.$ac_ext
27313 LIBS=$ac_check_lib_save_LIBS
27314 fi
27315 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27316 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27317 if test $ac_cv_lib_imagehlp_main = yes; then
27318   cat >>confdefs.h <<_ACEOF
27319 #define HAVE_LIBIMAGEHLP 1
27320 _ACEOF
27321
27322   LIBS="-limagehlp $LIBS"
27323
27324 fi
27325
27326
27327 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27328 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27329 if test "${ac_cv_lib_psapi_main+set}" = set; then
27330   echo $ECHO_N "(cached) $ECHO_C" >&6
27331 else
27332   ac_check_lib_save_LIBS=$LIBS
27333 LIBS="-lpsapi  $LIBS"
27334 cat >conftest.$ac_ext <<_ACEOF
27335 /* confdefs.h.  */
27336 _ACEOF
27337 cat confdefs.h >>conftest.$ac_ext
27338 cat >>conftest.$ac_ext <<_ACEOF
27339 /* end confdefs.h.  */
27340
27341
27342 int
27343 main ()
27344 {
27345 return main ();
27346   ;
27347   return 0;
27348 }
27349 _ACEOF
27350 rm -f conftest.$ac_objext conftest$ac_exeext
27351 if { (ac_try="$ac_link"
27352 case "(($ac_try" in
27353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27354   *) ac_try_echo=$ac_try;;
27355 esac
27356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27357   (eval "$ac_link") 2>conftest.er1
27358   ac_status=$?
27359   grep -v '^ *+' conftest.er1 >conftest.err
27360   rm -f conftest.er1
27361   cat conftest.err >&5
27362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27363   (exit $ac_status); } &&
27364          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27365   { (case "(($ac_try" in
27366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27367   *) ac_try_echo=$ac_try;;
27368 esac
27369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27370   (eval "$ac_try") 2>&5
27371   ac_status=$?
27372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27373   (exit $ac_status); }; } &&
27374          { ac_try='test -s conftest$ac_exeext'
27375   { (case "(($ac_try" in
27376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27377   *) ac_try_echo=$ac_try;;
27378 esac
27379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27380   (eval "$ac_try") 2>&5
27381   ac_status=$?
27382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27383   (exit $ac_status); }; }; then
27384   ac_cv_lib_psapi_main=yes
27385 else
27386   echo "$as_me: failed program was:" >&5
27387 sed 's/^/| /' conftest.$ac_ext >&5
27388
27389         ac_cv_lib_psapi_main=no
27390 fi
27391
27392 rm -f core conftest.err conftest.$ac_objext \
27393       conftest$ac_exeext conftest.$ac_ext
27394 LIBS=$ac_check_lib_save_LIBS
27395 fi
27396 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27397 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27398 if test $ac_cv_lib_psapi_main = yes; then
27399   cat >>confdefs.h <<_ACEOF
27400 #define HAVE_LIBPSAPI 1
27401 _ACEOF
27402
27403   LIBS="-lpsapi $LIBS"
27404
27405 fi
27406
27407 fi
27408
27409 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27410 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27411 if test "${ac_cv_search_dlopen+set}" = set; then
27412   echo $ECHO_N "(cached) $ECHO_C" >&6
27413 else
27414   ac_func_search_save_LIBS=$LIBS
27415 cat >conftest.$ac_ext <<_ACEOF
27416 /* confdefs.h.  */
27417 _ACEOF
27418 cat confdefs.h >>conftest.$ac_ext
27419 cat >>conftest.$ac_ext <<_ACEOF
27420 /* end confdefs.h.  */
27421
27422 /* Override any GCC internal prototype to avoid an error.
27423    Use char because int might match the return type of a GCC
27424    builtin and then its argument prototype would still apply.  */
27425 #ifdef __cplusplus
27426 extern "C"
27427 #endif
27428 char dlopen ();
27429 int
27430 main ()
27431 {
27432 return dlopen ();
27433   ;
27434   return 0;
27435 }
27436 _ACEOF
27437 for ac_lib in '' dl; do
27438   if test -z "$ac_lib"; then
27439     ac_res="none required"
27440   else
27441     ac_res=-l$ac_lib
27442     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27443   fi
27444   rm -f conftest.$ac_objext conftest$ac_exeext
27445 if { (ac_try="$ac_link"
27446 case "(($ac_try" in
27447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27448   *) ac_try_echo=$ac_try;;
27449 esac
27450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27451   (eval "$ac_link") 2>conftest.er1
27452   ac_status=$?
27453   grep -v '^ *+' conftest.er1 >conftest.err
27454   rm -f conftest.er1
27455   cat conftest.err >&5
27456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27457   (exit $ac_status); } &&
27458          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27459   { (case "(($ac_try" in
27460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27461   *) ac_try_echo=$ac_try;;
27462 esac
27463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27464   (eval "$ac_try") 2>&5
27465   ac_status=$?
27466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27467   (exit $ac_status); }; } &&
27468          { ac_try='test -s conftest$ac_exeext'
27469   { (case "(($ac_try" in
27470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27471   *) ac_try_echo=$ac_try;;
27472 esac
27473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27474   (eval "$ac_try") 2>&5
27475   ac_status=$?
27476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27477   (exit $ac_status); }; }; then
27478   ac_cv_search_dlopen=$ac_res
27479 else
27480   echo "$as_me: failed program was:" >&5
27481 sed 's/^/| /' conftest.$ac_ext >&5
27482
27483
27484 fi
27485
27486 rm -f core conftest.err conftest.$ac_objext \
27487       conftest$ac_exeext
27488   if test "${ac_cv_search_dlopen+set}" = set; then
27489   break
27490 fi
27491 done
27492 if test "${ac_cv_search_dlopen+set}" = set; then
27493   :
27494 else
27495   ac_cv_search_dlopen=no
27496 fi
27497 rm conftest.$ac_ext
27498 LIBS=$ac_func_search_save_LIBS
27499 fi
27500 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27501 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27502 ac_res=$ac_cv_search_dlopen
27503 if test "$ac_res" != no; then
27504   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27505
27506 cat >>confdefs.h <<\_ACEOF
27507 #define HAVE_DLOPEN 1
27508 _ACEOF
27509
27510 else
27511   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27512 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27513 fi
27514
27515
27516 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27517 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27518 if test "${ac_cv_search_mallinfo+set}" = set; then
27519   echo $ECHO_N "(cached) $ECHO_C" >&6
27520 else
27521   ac_func_search_save_LIBS=$LIBS
27522 cat >conftest.$ac_ext <<_ACEOF
27523 /* confdefs.h.  */
27524 _ACEOF
27525 cat confdefs.h >>conftest.$ac_ext
27526 cat >>conftest.$ac_ext <<_ACEOF
27527 /* end confdefs.h.  */
27528
27529 /* Override any GCC internal prototype to avoid an error.
27530    Use char because int might match the return type of a GCC
27531    builtin and then its argument prototype would still apply.  */
27532 #ifdef __cplusplus
27533 extern "C"
27534 #endif
27535 char mallinfo ();
27536 int
27537 main ()
27538 {
27539 return mallinfo ();
27540   ;
27541   return 0;
27542 }
27543 _ACEOF
27544 for ac_lib in '' malloc; do
27545   if test -z "$ac_lib"; then
27546     ac_res="none required"
27547   else
27548     ac_res=-l$ac_lib
27549     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27550   fi
27551   rm -f conftest.$ac_objext conftest$ac_exeext
27552 if { (ac_try="$ac_link"
27553 case "(($ac_try" in
27554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27555   *) ac_try_echo=$ac_try;;
27556 esac
27557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27558   (eval "$ac_link") 2>conftest.er1
27559   ac_status=$?
27560   grep -v '^ *+' conftest.er1 >conftest.err
27561   rm -f conftest.er1
27562   cat conftest.err >&5
27563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27564   (exit $ac_status); } &&
27565          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27566   { (case "(($ac_try" in
27567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27568   *) ac_try_echo=$ac_try;;
27569 esac
27570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27571   (eval "$ac_try") 2>&5
27572   ac_status=$?
27573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27574   (exit $ac_status); }; } &&
27575          { ac_try='test -s conftest$ac_exeext'
27576   { (case "(($ac_try" in
27577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27578   *) ac_try_echo=$ac_try;;
27579 esac
27580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27581   (eval "$ac_try") 2>&5
27582   ac_status=$?
27583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27584   (exit $ac_status); }; }; then
27585   ac_cv_search_mallinfo=$ac_res
27586 else
27587   echo "$as_me: failed program was:" >&5
27588 sed 's/^/| /' conftest.$ac_ext >&5
27589
27590
27591 fi
27592
27593 rm -f core conftest.err conftest.$ac_objext \
27594       conftest$ac_exeext
27595   if test "${ac_cv_search_mallinfo+set}" = set; then
27596   break
27597 fi
27598 done
27599 if test "${ac_cv_search_mallinfo+set}" = set; then
27600   :
27601 else
27602   ac_cv_search_mallinfo=no
27603 fi
27604 rm conftest.$ac_ext
27605 LIBS=$ac_func_search_save_LIBS
27606 fi
27607 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27608 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27609 ac_res=$ac_cv_search_mallinfo
27610 if test "$ac_res" != no; then
27611   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27612
27613 cat >>confdefs.h <<\_ACEOF
27614 #define HAVE_MALLINFO 1
27615 _ACEOF
27616
27617 fi
27618
27619
27620 if test "$ENABLE_THREADS" -eq 1 ; then
27621
27622 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27623 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27624 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27625   echo $ECHO_N "(cached) $ECHO_C" >&6
27626 else
27627   ac_check_lib_save_LIBS=$LIBS
27628 LIBS="-lpthread  $LIBS"
27629 cat >conftest.$ac_ext <<_ACEOF
27630 /* confdefs.h.  */
27631 _ACEOF
27632 cat confdefs.h >>conftest.$ac_ext
27633 cat >>conftest.$ac_ext <<_ACEOF
27634 /* end confdefs.h.  */
27635
27636 /* Override any GCC internal prototype to avoid an error.
27637    Use char because int might match the return type of a GCC
27638    builtin and then its argument prototype would still apply.  */
27639 #ifdef __cplusplus
27640 extern "C"
27641 #endif
27642 char pthread_mutex_init ();
27643 int
27644 main ()
27645 {
27646 return pthread_mutex_init ();
27647   ;
27648   return 0;
27649 }
27650 _ACEOF
27651 rm -f conftest.$ac_objext conftest$ac_exeext
27652 if { (ac_try="$ac_link"
27653 case "(($ac_try" in
27654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27655   *) ac_try_echo=$ac_try;;
27656 esac
27657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27658   (eval "$ac_link") 2>conftest.er1
27659   ac_status=$?
27660   grep -v '^ *+' conftest.er1 >conftest.err
27661   rm -f conftest.er1
27662   cat conftest.err >&5
27663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27664   (exit $ac_status); } &&
27665          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27666   { (case "(($ac_try" in
27667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27668   *) ac_try_echo=$ac_try;;
27669 esac
27670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27671   (eval "$ac_try") 2>&5
27672   ac_status=$?
27673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27674   (exit $ac_status); }; } &&
27675          { ac_try='test -s conftest$ac_exeext'
27676   { (case "(($ac_try" in
27677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27678   *) ac_try_echo=$ac_try;;
27679 esac
27680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27681   (eval "$ac_try") 2>&5
27682   ac_status=$?
27683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27684   (exit $ac_status); }; }; then
27685   ac_cv_lib_pthread_pthread_mutex_init=yes
27686 else
27687   echo "$as_me: failed program was:" >&5
27688 sed 's/^/| /' conftest.$ac_ext >&5
27689
27690         ac_cv_lib_pthread_pthread_mutex_init=no
27691 fi
27692
27693 rm -f core conftest.err conftest.$ac_objext \
27694       conftest$ac_exeext conftest.$ac_ext
27695 LIBS=$ac_check_lib_save_LIBS
27696 fi
27697 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27698 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
27699 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27700   cat >>confdefs.h <<_ACEOF
27701 #define HAVE_LIBPTHREAD 1
27702 _ACEOF
27703
27704   LIBS="-lpthread $LIBS"
27705
27706 fi
27707
27708   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27709 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
27710 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27711   echo $ECHO_N "(cached) $ECHO_C" >&6
27712 else
27713   ac_func_search_save_LIBS=$LIBS
27714 cat >conftest.$ac_ext <<_ACEOF
27715 /* confdefs.h.  */
27716 _ACEOF
27717 cat confdefs.h >>conftest.$ac_ext
27718 cat >>conftest.$ac_ext <<_ACEOF
27719 /* end confdefs.h.  */
27720
27721 /* Override any GCC internal prototype to avoid an error.
27722    Use char because int might match the return type of a GCC
27723    builtin and then its argument prototype would still apply.  */
27724 #ifdef __cplusplus
27725 extern "C"
27726 #endif
27727 char pthread_mutex_lock ();
27728 int
27729 main ()
27730 {
27731 return pthread_mutex_lock ();
27732   ;
27733   return 0;
27734 }
27735 _ACEOF
27736 for ac_lib in '' pthread; do
27737   if test -z "$ac_lib"; then
27738     ac_res="none required"
27739   else
27740     ac_res=-l$ac_lib
27741     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27742   fi
27743   rm -f conftest.$ac_objext conftest$ac_exeext
27744 if { (ac_try="$ac_link"
27745 case "(($ac_try" in
27746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27747   *) ac_try_echo=$ac_try;;
27748 esac
27749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27750   (eval "$ac_link") 2>conftest.er1
27751   ac_status=$?
27752   grep -v '^ *+' conftest.er1 >conftest.err
27753   rm -f conftest.er1
27754   cat conftest.err >&5
27755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27756   (exit $ac_status); } &&
27757          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27758   { (case "(($ac_try" in
27759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27760   *) ac_try_echo=$ac_try;;
27761 esac
27762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27763   (eval "$ac_try") 2>&5
27764   ac_status=$?
27765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27766   (exit $ac_status); }; } &&
27767          { ac_try='test -s conftest$ac_exeext'
27768   { (case "(($ac_try" in
27769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27770   *) ac_try_echo=$ac_try;;
27771 esac
27772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27773   (eval "$ac_try") 2>&5
27774   ac_status=$?
27775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27776   (exit $ac_status); }; }; then
27777   ac_cv_search_pthread_mutex_lock=$ac_res
27778 else
27779   echo "$as_me: failed program was:" >&5
27780 sed 's/^/| /' conftest.$ac_ext >&5
27781
27782
27783 fi
27784
27785 rm -f core conftest.err conftest.$ac_objext \
27786       conftest$ac_exeext
27787   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27788   break
27789 fi
27790 done
27791 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27792   :
27793 else
27794   ac_cv_search_pthread_mutex_lock=no
27795 fi
27796 rm conftest.$ac_ext
27797 LIBS=$ac_func_search_save_LIBS
27798 fi
27799 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27800 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27801 ac_res=$ac_cv_search_pthread_mutex_lock
27802 if test "$ac_res" != no; then
27803   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27804
27805 cat >>confdefs.h <<\_ACEOF
27806 #define HAVE_PTHREAD_MUTEX_LOCK 1
27807 _ACEOF
27808
27809 fi
27810
27811 fi
27812
27813
27814 # Check whether --with-udis86 was given.
27815 if test "${with_udis86+set}" = set; then
27816   withval=$with_udis86;
27817       USE_UDIS86=1
27818
27819       case "$withval" in
27820         /usr/lib|yes) ;;
27821         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
27822       esac
27823
27824 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
27825 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
27826 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
27827   echo $ECHO_N "(cached) $ECHO_C" >&6
27828 else
27829   ac_check_lib_save_LIBS=$LIBS
27830 LIBS="-ludis86  $LIBS"
27831 cat >conftest.$ac_ext <<_ACEOF
27832 /* confdefs.h.  */
27833 _ACEOF
27834 cat confdefs.h >>conftest.$ac_ext
27835 cat >>conftest.$ac_ext <<_ACEOF
27836 /* end confdefs.h.  */
27837
27838 /* Override any GCC internal prototype to avoid an error.
27839    Use char because int might match the return type of a GCC
27840    builtin and then its argument prototype would still apply.  */
27841 #ifdef __cplusplus
27842 extern "C"
27843 #endif
27844 char ud_init ();
27845 int
27846 main ()
27847 {
27848 return ud_init ();
27849   ;
27850   return 0;
27851 }
27852 _ACEOF
27853 rm -f conftest.$ac_objext conftest$ac_exeext
27854 if { (ac_try="$ac_link"
27855 case "(($ac_try" in
27856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27857   *) ac_try_echo=$ac_try;;
27858 esac
27859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27860   (eval "$ac_link") 2>conftest.er1
27861   ac_status=$?
27862   grep -v '^ *+' conftest.er1 >conftest.err
27863   rm -f conftest.er1
27864   cat conftest.err >&5
27865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27866   (exit $ac_status); } &&
27867          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27868   { (case "(($ac_try" in
27869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27870   *) ac_try_echo=$ac_try;;
27871 esac
27872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27873   (eval "$ac_try") 2>&5
27874   ac_status=$?
27875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27876   (exit $ac_status); }; } &&
27877          { ac_try='test -s conftest$ac_exeext'
27878   { (case "(($ac_try" in
27879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27880   *) ac_try_echo=$ac_try;;
27881 esac
27882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27883   (eval "$ac_try") 2>&5
27884   ac_status=$?
27885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27886   (exit $ac_status); }; }; then
27887   ac_cv_lib_udis86_ud_init=yes
27888 else
27889   echo "$as_me: failed program was:" >&5
27890 sed 's/^/| /' conftest.$ac_ext >&5
27891
27892         ac_cv_lib_udis86_ud_init=no
27893 fi
27894
27895 rm -f core conftest.err conftest.$ac_objext \
27896       conftest$ac_exeext conftest.$ac_ext
27897 LIBS=$ac_check_lib_save_LIBS
27898 fi
27899 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
27900 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
27901 if test $ac_cv_lib_udis86_ud_init = yes; then
27902   cat >>confdefs.h <<_ACEOF
27903 #define HAVE_LIBUDIS86 1
27904 _ACEOF
27905
27906   LIBS="-ludis86 $LIBS"
27907
27908 else
27909
27910         echo "Error! You need to have libudis86 around."
27911         exit -1
27912
27913 fi
27914
27915
27916 else
27917   USE_UDIS86=0
27918
27919 fi
27920
27921
27922 cat >>confdefs.h <<_ACEOF
27923 #define USE_UDIS86 $USE_UDIS86
27924 _ACEOF
27925
27926
27927
27928
27929
27930
27931
27932
27933 ac_header_dirent=no
27934 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27935   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
27936 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27937 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
27938 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27939   echo $ECHO_N "(cached) $ECHO_C" >&6
27940 else
27941   cat >conftest.$ac_ext <<_ACEOF
27942 /* confdefs.h.  */
27943 _ACEOF
27944 cat confdefs.h >>conftest.$ac_ext
27945 cat >>conftest.$ac_ext <<_ACEOF
27946 /* end confdefs.h.  */
27947 #include <sys/types.h>
27948 #include <$ac_hdr>
27949
27950 int
27951 main ()
27952 {
27953 if ((DIR *) 0)
27954 return 0;
27955   ;
27956   return 0;
27957 }
27958 _ACEOF
27959 rm -f conftest.$ac_objext
27960 if { (ac_try="$ac_compile"
27961 case "(($ac_try" in
27962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27963   *) ac_try_echo=$ac_try;;
27964 esac
27965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27966   (eval "$ac_compile") 2>conftest.er1
27967   ac_status=$?
27968   grep -v '^ *+' conftest.er1 >conftest.err
27969   rm -f conftest.er1
27970   cat conftest.err >&5
27971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27972   (exit $ac_status); } &&
27973          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27974   { (case "(($ac_try" in
27975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27976   *) ac_try_echo=$ac_try;;
27977 esac
27978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27979   (eval "$ac_try") 2>&5
27980   ac_status=$?
27981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27982   (exit $ac_status); }; } &&
27983          { ac_try='test -s conftest.$ac_objext'
27984   { (case "(($ac_try" in
27985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27986   *) ac_try_echo=$ac_try;;
27987 esac
27988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27989   (eval "$ac_try") 2>&5
27990   ac_status=$?
27991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27992   (exit $ac_status); }; }; then
27993   eval "$as_ac_Header=yes"
27994 else
27995   echo "$as_me: failed program was:" >&5
27996 sed 's/^/| /' conftest.$ac_ext >&5
27997
27998         eval "$as_ac_Header=no"
27999 fi
28000
28001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28002 fi
28003 ac_res=`eval echo '${'$as_ac_Header'}'`
28004                { echo "$as_me:$LINENO: result: $ac_res" >&5
28005 echo "${ECHO_T}$ac_res" >&6; }
28006 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28007   cat >>confdefs.h <<_ACEOF
28008 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
28009 _ACEOF
28010
28011 ac_header_dirent=$ac_hdr; break
28012 fi
28013
28014 done
28015 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
28016 if test $ac_header_dirent = dirent.h; then
28017   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28018 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28019 if test "${ac_cv_search_opendir+set}" = set; then
28020   echo $ECHO_N "(cached) $ECHO_C" >&6
28021 else
28022   ac_func_search_save_LIBS=$LIBS
28023 cat >conftest.$ac_ext <<_ACEOF
28024 /* confdefs.h.  */
28025 _ACEOF
28026 cat confdefs.h >>conftest.$ac_ext
28027 cat >>conftest.$ac_ext <<_ACEOF
28028 /* end confdefs.h.  */
28029
28030 /* Override any GCC internal prototype to avoid an error.
28031    Use char because int might match the return type of a GCC
28032    builtin and then its argument prototype would still apply.  */
28033 #ifdef __cplusplus
28034 extern "C"
28035 #endif
28036 char opendir ();
28037 int
28038 main ()
28039 {
28040 return opendir ();
28041   ;
28042   return 0;
28043 }
28044 _ACEOF
28045 for ac_lib in '' dir; do
28046   if test -z "$ac_lib"; then
28047     ac_res="none required"
28048   else
28049     ac_res=-l$ac_lib
28050     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28051   fi
28052   rm -f conftest.$ac_objext conftest$ac_exeext
28053 if { (ac_try="$ac_link"
28054 case "(($ac_try" in
28055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28056   *) ac_try_echo=$ac_try;;
28057 esac
28058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28059   (eval "$ac_link") 2>conftest.er1
28060   ac_status=$?
28061   grep -v '^ *+' conftest.er1 >conftest.err
28062   rm -f conftest.er1
28063   cat conftest.err >&5
28064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28065   (exit $ac_status); } &&
28066          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28067   { (case "(($ac_try" in
28068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28069   *) ac_try_echo=$ac_try;;
28070 esac
28071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28072   (eval "$ac_try") 2>&5
28073   ac_status=$?
28074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28075   (exit $ac_status); }; } &&
28076          { ac_try='test -s conftest$ac_exeext'
28077   { (case "(($ac_try" in
28078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28079   *) ac_try_echo=$ac_try;;
28080 esac
28081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28082   (eval "$ac_try") 2>&5
28083   ac_status=$?
28084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28085   (exit $ac_status); }; }; then
28086   ac_cv_search_opendir=$ac_res
28087 else
28088   echo "$as_me: failed program was:" >&5
28089 sed 's/^/| /' conftest.$ac_ext >&5
28090
28091
28092 fi
28093
28094 rm -f core conftest.err conftest.$ac_objext \
28095       conftest$ac_exeext
28096   if test "${ac_cv_search_opendir+set}" = set; then
28097   break
28098 fi
28099 done
28100 if test "${ac_cv_search_opendir+set}" = set; then
28101   :
28102 else
28103   ac_cv_search_opendir=no
28104 fi
28105 rm conftest.$ac_ext
28106 LIBS=$ac_func_search_save_LIBS
28107 fi
28108 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28109 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28110 ac_res=$ac_cv_search_opendir
28111 if test "$ac_res" != no; then
28112   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28113
28114 fi
28115
28116 else
28117   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28118 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28119 if test "${ac_cv_search_opendir+set}" = set; then
28120   echo $ECHO_N "(cached) $ECHO_C" >&6
28121 else
28122   ac_func_search_save_LIBS=$LIBS
28123 cat >conftest.$ac_ext <<_ACEOF
28124 /* confdefs.h.  */
28125 _ACEOF
28126 cat confdefs.h >>conftest.$ac_ext
28127 cat >>conftest.$ac_ext <<_ACEOF
28128 /* end confdefs.h.  */
28129
28130 /* Override any GCC internal prototype to avoid an error.
28131    Use char because int might match the return type of a GCC
28132    builtin and then its argument prototype would still apply.  */
28133 #ifdef __cplusplus
28134 extern "C"
28135 #endif
28136 char opendir ();
28137 int
28138 main ()
28139 {
28140 return opendir ();
28141   ;
28142   return 0;
28143 }
28144 _ACEOF
28145 for ac_lib in '' x; do
28146   if test -z "$ac_lib"; then
28147     ac_res="none required"
28148   else
28149     ac_res=-l$ac_lib
28150     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28151   fi
28152   rm -f conftest.$ac_objext conftest$ac_exeext
28153 if { (ac_try="$ac_link"
28154 case "(($ac_try" in
28155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28156   *) ac_try_echo=$ac_try;;
28157 esac
28158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28159   (eval "$ac_link") 2>conftest.er1
28160   ac_status=$?
28161   grep -v '^ *+' conftest.er1 >conftest.err
28162   rm -f conftest.er1
28163   cat conftest.err >&5
28164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28165   (exit $ac_status); } &&
28166          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28167   { (case "(($ac_try" in
28168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28169   *) ac_try_echo=$ac_try;;
28170 esac
28171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28172   (eval "$ac_try") 2>&5
28173   ac_status=$?
28174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28175   (exit $ac_status); }; } &&
28176          { ac_try='test -s conftest$ac_exeext'
28177   { (case "(($ac_try" in
28178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28179   *) ac_try_echo=$ac_try;;
28180 esac
28181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28182   (eval "$ac_try") 2>&5
28183   ac_status=$?
28184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28185   (exit $ac_status); }; }; then
28186   ac_cv_search_opendir=$ac_res
28187 else
28188   echo "$as_me: failed program was:" >&5
28189 sed 's/^/| /' conftest.$ac_ext >&5
28190
28191
28192 fi
28193
28194 rm -f core conftest.err conftest.$ac_objext \
28195       conftest$ac_exeext
28196   if test "${ac_cv_search_opendir+set}" = set; then
28197   break
28198 fi
28199 done
28200 if test "${ac_cv_search_opendir+set}" = set; then
28201   :
28202 else
28203   ac_cv_search_opendir=no
28204 fi
28205 rm conftest.$ac_ext
28206 LIBS=$ac_func_search_save_LIBS
28207 fi
28208 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28209 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28210 ac_res=$ac_cv_search_opendir
28211 if test "$ac_res" != no; then
28212   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28213
28214 fi
28215
28216 fi
28217
28218 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28219 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
28220 if test "${ac_cv_header_mmap_anon+set}" = set; then
28221   echo $ECHO_N "(cached) $ECHO_C" >&6
28222 else
28223    ac_ext=c
28224 ac_cpp='$CPP $CPPFLAGS'
28225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28228
28229   cat >conftest.$ac_ext <<_ACEOF
28230 /* confdefs.h.  */
28231 _ACEOF
28232 cat confdefs.h >>conftest.$ac_ext
28233 cat >>conftest.$ac_ext <<_ACEOF
28234 /* end confdefs.h.  */
28235 #include <sys/mman.h>
28236 #include <unistd.h>
28237 #include <fcntl.h>
28238 int
28239 main ()
28240 {
28241 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28242   ;
28243   return 0;
28244 }
28245 _ACEOF
28246 rm -f conftest.$ac_objext
28247 if { (ac_try="$ac_compile"
28248 case "(($ac_try" in
28249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28250   *) ac_try_echo=$ac_try;;
28251 esac
28252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28253   (eval "$ac_compile") 2>conftest.er1
28254   ac_status=$?
28255   grep -v '^ *+' conftest.er1 >conftest.err
28256   rm -f conftest.er1
28257   cat conftest.err >&5
28258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28259   (exit $ac_status); } &&
28260          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28261   { (case "(($ac_try" in
28262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28263   *) ac_try_echo=$ac_try;;
28264 esac
28265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28266   (eval "$ac_try") 2>&5
28267   ac_status=$?
28268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28269   (exit $ac_status); }; } &&
28270          { ac_try='test -s conftest.$ac_objext'
28271   { (case "(($ac_try" in
28272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28273   *) ac_try_echo=$ac_try;;
28274 esac
28275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28276   (eval "$ac_try") 2>&5
28277   ac_status=$?
28278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28279   (exit $ac_status); }; }; then
28280   ac_cv_header_mmap_anon=yes
28281 else
28282   echo "$as_me: failed program was:" >&5
28283 sed 's/^/| /' conftest.$ac_ext >&5
28284
28285         ac_cv_header_mmap_anon=no
28286 fi
28287
28288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28289   ac_ext=c
28290 ac_cpp='$CPP $CPPFLAGS'
28291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28294
28295
28296 fi
28297 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28298 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
28299 if test "$ac_cv_header_mmap_anon" = yes; then
28300
28301 cat >>confdefs.h <<\_ACEOF
28302 #define HAVE_MMAP_ANONYMOUS 1
28303 _ACEOF
28304
28305 fi
28306
28307 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28308 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
28309 if test "${ac_cv_header_stat_broken+set}" = set; then
28310   echo $ECHO_N "(cached) $ECHO_C" >&6
28311 else
28312   cat >conftest.$ac_ext <<_ACEOF
28313 /* confdefs.h.  */
28314 _ACEOF
28315 cat confdefs.h >>conftest.$ac_ext
28316 cat >>conftest.$ac_ext <<_ACEOF
28317 /* end confdefs.h.  */
28318 #include <sys/types.h>
28319 #include <sys/stat.h>
28320
28321 #if defined S_ISBLK && defined S_IFDIR
28322 # if S_ISBLK (S_IFDIR)
28323 You lose.
28324 # endif
28325 #endif
28326
28327 #if defined S_ISBLK && defined S_IFCHR
28328 # if S_ISBLK (S_IFCHR)
28329 You lose.
28330 # endif
28331 #endif
28332
28333 #if defined S_ISLNK && defined S_IFREG
28334 # if S_ISLNK (S_IFREG)
28335 You lose.
28336 # endif
28337 #endif
28338
28339 #if defined S_ISSOCK && defined S_IFREG
28340 # if S_ISSOCK (S_IFREG)
28341 You lose.
28342 # endif
28343 #endif
28344
28345 _ACEOF
28346 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28347   $EGREP "You lose" >/dev/null 2>&1; then
28348   ac_cv_header_stat_broken=yes
28349 else
28350   ac_cv_header_stat_broken=no
28351 fi
28352 rm -f conftest*
28353
28354 fi
28355 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28356 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
28357 if test $ac_cv_header_stat_broken = yes; then
28358
28359 cat >>confdefs.h <<\_ACEOF
28360 #define STAT_MACROS_BROKEN 1
28361 _ACEOF
28362
28363 fi
28364
28365 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28366 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
28367 if test "${ac_cv_header_stdc+set}" = set; then
28368   echo $ECHO_N "(cached) $ECHO_C" >&6
28369 else
28370   cat >conftest.$ac_ext <<_ACEOF
28371 /* confdefs.h.  */
28372 _ACEOF
28373 cat confdefs.h >>conftest.$ac_ext
28374 cat >>conftest.$ac_ext <<_ACEOF
28375 /* end confdefs.h.  */
28376 #include <stdlib.h>
28377 #include <stdarg.h>
28378 #include <string.h>
28379 #include <float.h>
28380
28381 int
28382 main ()
28383 {
28384
28385   ;
28386   return 0;
28387 }
28388 _ACEOF
28389 rm -f conftest.$ac_objext
28390 if { (ac_try="$ac_compile"
28391 case "(($ac_try" in
28392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28393   *) ac_try_echo=$ac_try;;
28394 esac
28395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28396   (eval "$ac_compile") 2>conftest.er1
28397   ac_status=$?
28398   grep -v '^ *+' conftest.er1 >conftest.err
28399   rm -f conftest.er1
28400   cat conftest.err >&5
28401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28402   (exit $ac_status); } &&
28403          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28404   { (case "(($ac_try" in
28405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28406   *) ac_try_echo=$ac_try;;
28407 esac
28408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28409   (eval "$ac_try") 2>&5
28410   ac_status=$?
28411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28412   (exit $ac_status); }; } &&
28413          { ac_try='test -s conftest.$ac_objext'
28414   { (case "(($ac_try" in
28415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28416   *) ac_try_echo=$ac_try;;
28417 esac
28418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28419   (eval "$ac_try") 2>&5
28420   ac_status=$?
28421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28422   (exit $ac_status); }; }; then
28423   ac_cv_header_stdc=yes
28424 else
28425   echo "$as_me: failed program was:" >&5
28426 sed 's/^/| /' conftest.$ac_ext >&5
28427
28428         ac_cv_header_stdc=no
28429 fi
28430
28431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28432
28433 if test $ac_cv_header_stdc = yes; then
28434   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28435   cat >conftest.$ac_ext <<_ACEOF
28436 /* confdefs.h.  */
28437 _ACEOF
28438 cat confdefs.h >>conftest.$ac_ext
28439 cat >>conftest.$ac_ext <<_ACEOF
28440 /* end confdefs.h.  */
28441 #include <string.h>
28442
28443 _ACEOF
28444 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28445   $EGREP "memchr" >/dev/null 2>&1; then
28446   :
28447 else
28448   ac_cv_header_stdc=no
28449 fi
28450 rm -f conftest*
28451
28452 fi
28453
28454 if test $ac_cv_header_stdc = yes; then
28455   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28456   cat >conftest.$ac_ext <<_ACEOF
28457 /* confdefs.h.  */
28458 _ACEOF
28459 cat confdefs.h >>conftest.$ac_ext
28460 cat >>conftest.$ac_ext <<_ACEOF
28461 /* end confdefs.h.  */
28462 #include <stdlib.h>
28463
28464 _ACEOF
28465 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28466   $EGREP "free" >/dev/null 2>&1; then
28467   :
28468 else
28469   ac_cv_header_stdc=no
28470 fi
28471 rm -f conftest*
28472
28473 fi
28474
28475 if test $ac_cv_header_stdc = yes; then
28476   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28477   if test "$cross_compiling" = yes; then
28478   :
28479 else
28480   cat >conftest.$ac_ext <<_ACEOF
28481 /* confdefs.h.  */
28482 _ACEOF
28483 cat confdefs.h >>conftest.$ac_ext
28484 cat >>conftest.$ac_ext <<_ACEOF
28485 /* end confdefs.h.  */
28486 #include <ctype.h>
28487 #include <stdlib.h>
28488 #if ((' ' & 0x0FF) == 0x020)
28489 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28490 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28491 #else
28492 # define ISLOWER(c) \
28493                    (('a' <= (c) && (c) <= 'i') \
28494                      || ('j' <= (c) && (c) <= 'r') \
28495                      || ('s' <= (c) && (c) <= 'z'))
28496 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28497 #endif
28498
28499 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28500 int
28501 main ()
28502 {
28503   int i;
28504   for (i = 0; i < 256; i++)
28505     if (XOR (islower (i), ISLOWER (i))
28506         || toupper (i) != TOUPPER (i))
28507       return 2;
28508   return 0;
28509 }
28510 _ACEOF
28511 rm -f conftest$ac_exeext
28512 if { (ac_try="$ac_link"
28513 case "(($ac_try" in
28514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28515   *) ac_try_echo=$ac_try;;
28516 esac
28517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28518   (eval "$ac_link") 2>&5
28519   ac_status=$?
28520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28521   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28522   { (case "(($ac_try" in
28523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28524   *) ac_try_echo=$ac_try;;
28525 esac
28526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28527   (eval "$ac_try") 2>&5
28528   ac_status=$?
28529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28530   (exit $ac_status); }; }; then
28531   :
28532 else
28533   echo "$as_me: program exited with status $ac_status" >&5
28534 echo "$as_me: failed program was:" >&5
28535 sed 's/^/| /' conftest.$ac_ext >&5
28536
28537 ( exit $ac_status )
28538 ac_cv_header_stdc=no
28539 fi
28540 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28541 fi
28542
28543
28544 fi
28545 fi
28546 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28547 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
28548 if test $ac_cv_header_stdc = yes; then
28549
28550 cat >>confdefs.h <<\_ACEOF
28551 #define STDC_HEADERS 1
28552 _ACEOF
28553
28554 fi
28555
28556 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28557 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
28558 if test "${ac_cv_header_sys_wait_h+set}" = set; then
28559   echo $ECHO_N "(cached) $ECHO_C" >&6
28560 else
28561   cat >conftest.$ac_ext <<_ACEOF
28562 /* confdefs.h.  */
28563 _ACEOF
28564 cat confdefs.h >>conftest.$ac_ext
28565 cat >>conftest.$ac_ext <<_ACEOF
28566 /* end confdefs.h.  */
28567 #include <sys/types.h>
28568 #include <sys/wait.h>
28569 #ifndef WEXITSTATUS
28570 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
28571 #endif
28572 #ifndef WIFEXITED
28573 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28574 #endif
28575
28576 int
28577 main ()
28578 {
28579   int s;
28580   wait (&s);
28581   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28582   ;
28583   return 0;
28584 }
28585 _ACEOF
28586 rm -f conftest.$ac_objext
28587 if { (ac_try="$ac_compile"
28588 case "(($ac_try" in
28589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28590   *) ac_try_echo=$ac_try;;
28591 esac
28592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28593   (eval "$ac_compile") 2>conftest.er1
28594   ac_status=$?
28595   grep -v '^ *+' conftest.er1 >conftest.err
28596   rm -f conftest.er1
28597   cat conftest.err >&5
28598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28599   (exit $ac_status); } &&
28600          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28601   { (case "(($ac_try" in
28602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28603   *) ac_try_echo=$ac_try;;
28604 esac
28605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28606   (eval "$ac_try") 2>&5
28607   ac_status=$?
28608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28609   (exit $ac_status); }; } &&
28610          { ac_try='test -s conftest.$ac_objext'
28611   { (case "(($ac_try" in
28612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28613   *) ac_try_echo=$ac_try;;
28614 esac
28615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28616   (eval "$ac_try") 2>&5
28617   ac_status=$?
28618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28619   (exit $ac_status); }; }; then
28620   ac_cv_header_sys_wait_h=yes
28621 else
28622   echo "$as_me: failed program was:" >&5
28623 sed 's/^/| /' conftest.$ac_ext >&5
28624
28625         ac_cv_header_sys_wait_h=no
28626 fi
28627
28628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28629 fi
28630 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28631 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
28632 if test $ac_cv_header_sys_wait_h = yes; then
28633
28634 cat >>confdefs.h <<\_ACEOF
28635 #define HAVE_SYS_WAIT_H 1
28636 _ACEOF
28637
28638 fi
28639
28640 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28641 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
28642 if test "${ac_cv_header_time+set}" = set; then
28643   echo $ECHO_N "(cached) $ECHO_C" >&6
28644 else
28645   cat >conftest.$ac_ext <<_ACEOF
28646 /* confdefs.h.  */
28647 _ACEOF
28648 cat confdefs.h >>conftest.$ac_ext
28649 cat >>conftest.$ac_ext <<_ACEOF
28650 /* end confdefs.h.  */
28651 #include <sys/types.h>
28652 #include <sys/time.h>
28653 #include <time.h>
28654
28655 int
28656 main ()
28657 {
28658 if ((struct tm *) 0)
28659 return 0;
28660   ;
28661   return 0;
28662 }
28663 _ACEOF
28664 rm -f conftest.$ac_objext
28665 if { (ac_try="$ac_compile"
28666 case "(($ac_try" in
28667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28668   *) ac_try_echo=$ac_try;;
28669 esac
28670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28671   (eval "$ac_compile") 2>conftest.er1
28672   ac_status=$?
28673   grep -v '^ *+' conftest.er1 >conftest.err
28674   rm -f conftest.er1
28675   cat conftest.err >&5
28676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28677   (exit $ac_status); } &&
28678          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28679   { (case "(($ac_try" in
28680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28681   *) ac_try_echo=$ac_try;;
28682 esac
28683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28684   (eval "$ac_try") 2>&5
28685   ac_status=$?
28686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28687   (exit $ac_status); }; } &&
28688          { ac_try='test -s conftest.$ac_objext'
28689   { (case "(($ac_try" in
28690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28691   *) ac_try_echo=$ac_try;;
28692 esac
28693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28694   (eval "$ac_try") 2>&5
28695   ac_status=$?
28696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28697   (exit $ac_status); }; }; then
28698   ac_cv_header_time=yes
28699 else
28700   echo "$as_me: failed program was:" >&5
28701 sed 's/^/| /' conftest.$ac_ext >&5
28702
28703         ac_cv_header_time=no
28704 fi
28705
28706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28707 fi
28708 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28709 echo "${ECHO_T}$ac_cv_header_time" >&6; }
28710 if test $ac_cv_header_time = yes; then
28711
28712 cat >>confdefs.h <<\_ACEOF
28713 #define TIME_WITH_SYS_TIME 1
28714 _ACEOF
28715
28716 fi
28717
28718
28719
28720
28721
28722
28723
28724
28725 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28726 do
28727 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28728 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28729   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28730 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28731 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28732   echo $ECHO_N "(cached) $ECHO_C" >&6
28733 fi
28734 ac_res=`eval echo '${'$as_ac_Header'}'`
28735                { echo "$as_me:$LINENO: result: $ac_res" >&5
28736 echo "${ECHO_T}$ac_res" >&6; }
28737 else
28738   # Is the header compilable?
28739 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28740 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28741 cat >conftest.$ac_ext <<_ACEOF
28742 /* confdefs.h.  */
28743 _ACEOF
28744 cat confdefs.h >>conftest.$ac_ext
28745 cat >>conftest.$ac_ext <<_ACEOF
28746 /* end confdefs.h.  */
28747 $ac_includes_default
28748 #include <$ac_header>
28749 _ACEOF
28750 rm -f conftest.$ac_objext
28751 if { (ac_try="$ac_compile"
28752 case "(($ac_try" in
28753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28754   *) ac_try_echo=$ac_try;;
28755 esac
28756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28757   (eval "$ac_compile") 2>conftest.er1
28758   ac_status=$?
28759   grep -v '^ *+' conftest.er1 >conftest.err
28760   rm -f conftest.er1
28761   cat conftest.err >&5
28762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28763   (exit $ac_status); } &&
28764          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28765   { (case "(($ac_try" in
28766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28767   *) ac_try_echo=$ac_try;;
28768 esac
28769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28770   (eval "$ac_try") 2>&5
28771   ac_status=$?
28772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28773   (exit $ac_status); }; } &&
28774          { ac_try='test -s conftest.$ac_objext'
28775   { (case "(($ac_try" in
28776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28777   *) ac_try_echo=$ac_try;;
28778 esac
28779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28780   (eval "$ac_try") 2>&5
28781   ac_status=$?
28782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28783   (exit $ac_status); }; }; then
28784   ac_header_compiler=yes
28785 else
28786   echo "$as_me: failed program was:" >&5
28787 sed 's/^/| /' conftest.$ac_ext >&5
28788
28789         ac_header_compiler=no
28790 fi
28791
28792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28793 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28794 echo "${ECHO_T}$ac_header_compiler" >&6; }
28795
28796 # Is the header present?
28797 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28798 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28799 cat >conftest.$ac_ext <<_ACEOF
28800 /* confdefs.h.  */
28801 _ACEOF
28802 cat confdefs.h >>conftest.$ac_ext
28803 cat >>conftest.$ac_ext <<_ACEOF
28804 /* end confdefs.h.  */
28805 #include <$ac_header>
28806 _ACEOF
28807 if { (ac_try="$ac_cpp conftest.$ac_ext"
28808 case "(($ac_try" in
28809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28810   *) ac_try_echo=$ac_try;;
28811 esac
28812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28813   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28814   ac_status=$?
28815   grep -v '^ *+' conftest.er1 >conftest.err
28816   rm -f conftest.er1
28817   cat conftest.err >&5
28818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28819   (exit $ac_status); } >/dev/null; then
28820   if test -s conftest.err; then
28821     ac_cpp_err=$ac_c_preproc_warn_flag
28822     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28823   else
28824     ac_cpp_err=
28825   fi
28826 else
28827   ac_cpp_err=yes
28828 fi
28829 if test -z "$ac_cpp_err"; then
28830   ac_header_preproc=yes
28831 else
28832   echo "$as_me: failed program was:" >&5
28833 sed 's/^/| /' conftest.$ac_ext >&5
28834
28835   ac_header_preproc=no
28836 fi
28837
28838 rm -f conftest.err conftest.$ac_ext
28839 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28840 echo "${ECHO_T}$ac_header_preproc" >&6; }
28841
28842 # So?  What about this header?
28843 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28844   yes:no: )
28845     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28846 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28847     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28848 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28849     ac_header_preproc=yes
28850     ;;
28851   no:yes:* )
28852     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28853 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28854     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28855 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28856     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28857 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28858     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28859 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28860     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28861 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28862     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28863 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28864     ( cat <<\_ASBOX
28865 ## ----------------------------------- ##
28866 ## Report this to llvmbugs@cs.uiuc.edu ##
28867 ## ----------------------------------- ##
28868 _ASBOX
28869      ) | sed "s/^/$as_me: WARNING:     /" >&2
28870     ;;
28871 esac
28872 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28873 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28874 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28875   echo $ECHO_N "(cached) $ECHO_C" >&6
28876 else
28877   eval "$as_ac_Header=\$ac_header_preproc"
28878 fi
28879 ac_res=`eval echo '${'$as_ac_Header'}'`
28880                { echo "$as_me:$LINENO: result: $ac_res" >&5
28881 echo "${ECHO_T}$ac_res" >&6; }
28882
28883 fi
28884 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28885   cat >>confdefs.h <<_ACEOF
28886 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28887 _ACEOF
28888
28889 fi
28890
28891 done
28892
28893
28894
28895
28896
28897
28898
28899 for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
28900 do
28901 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28902 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28903   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28904 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28905 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28906   echo $ECHO_N "(cached) $ECHO_C" >&6
28907 fi
28908 ac_res=`eval echo '${'$as_ac_Header'}'`
28909                { echo "$as_me:$LINENO: result: $ac_res" >&5
28910 echo "${ECHO_T}$ac_res" >&6; }
28911 else
28912   # Is the header compilable?
28913 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28914 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28915 cat >conftest.$ac_ext <<_ACEOF
28916 /* confdefs.h.  */
28917 _ACEOF
28918 cat confdefs.h >>conftest.$ac_ext
28919 cat >>conftest.$ac_ext <<_ACEOF
28920 /* end confdefs.h.  */
28921 $ac_includes_default
28922 #include <$ac_header>
28923 _ACEOF
28924 rm -f conftest.$ac_objext
28925 if { (ac_try="$ac_compile"
28926 case "(($ac_try" in
28927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28928   *) ac_try_echo=$ac_try;;
28929 esac
28930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28931   (eval "$ac_compile") 2>conftest.er1
28932   ac_status=$?
28933   grep -v '^ *+' conftest.er1 >conftest.err
28934   rm -f conftest.er1
28935   cat conftest.err >&5
28936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28937   (exit $ac_status); } &&
28938          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28939   { (case "(($ac_try" in
28940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28941   *) ac_try_echo=$ac_try;;
28942 esac
28943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28944   (eval "$ac_try") 2>&5
28945   ac_status=$?
28946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28947   (exit $ac_status); }; } &&
28948          { ac_try='test -s conftest.$ac_objext'
28949   { (case "(($ac_try" in
28950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28951   *) ac_try_echo=$ac_try;;
28952 esac
28953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28954   (eval "$ac_try") 2>&5
28955   ac_status=$?
28956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28957   (exit $ac_status); }; }; then
28958   ac_header_compiler=yes
28959 else
28960   echo "$as_me: failed program was:" >&5
28961 sed 's/^/| /' conftest.$ac_ext >&5
28962
28963         ac_header_compiler=no
28964 fi
28965
28966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28967 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28968 echo "${ECHO_T}$ac_header_compiler" >&6; }
28969
28970 # Is the header present?
28971 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28972 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28973 cat >conftest.$ac_ext <<_ACEOF
28974 /* confdefs.h.  */
28975 _ACEOF
28976 cat confdefs.h >>conftest.$ac_ext
28977 cat >>conftest.$ac_ext <<_ACEOF
28978 /* end confdefs.h.  */
28979 #include <$ac_header>
28980 _ACEOF
28981 if { (ac_try="$ac_cpp conftest.$ac_ext"
28982 case "(($ac_try" in
28983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28984   *) ac_try_echo=$ac_try;;
28985 esac
28986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28987   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28988   ac_status=$?
28989   grep -v '^ *+' conftest.er1 >conftest.err
28990   rm -f conftest.er1
28991   cat conftest.err >&5
28992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28993   (exit $ac_status); } >/dev/null; then
28994   if test -s conftest.err; then
28995     ac_cpp_err=$ac_c_preproc_warn_flag
28996     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28997   else
28998     ac_cpp_err=
28999   fi
29000 else
29001   ac_cpp_err=yes
29002 fi
29003 if test -z "$ac_cpp_err"; then
29004   ac_header_preproc=yes
29005 else
29006   echo "$as_me: failed program was:" >&5
29007 sed 's/^/| /' conftest.$ac_ext >&5
29008
29009   ac_header_preproc=no
29010 fi
29011
29012 rm -f conftest.err conftest.$ac_ext
29013 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29014 echo "${ECHO_T}$ac_header_preproc" >&6; }
29015
29016 # So?  What about this header?
29017 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29018   yes:no: )
29019     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29020 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29021     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29022 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29023     ac_header_preproc=yes
29024     ;;
29025   no:yes:* )
29026     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29027 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29028     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29029 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29030     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29031 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29032     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29033 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29034     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29035 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29036     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29037 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29038     ( cat <<\_ASBOX
29039 ## ----------------------------------- ##
29040 ## Report this to llvmbugs@cs.uiuc.edu ##
29041 ## ----------------------------------- ##
29042 _ASBOX
29043      ) | sed "s/^/$as_me: WARNING:     /" >&2
29044     ;;
29045 esac
29046 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29047 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29048 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29049   echo $ECHO_N "(cached) $ECHO_C" >&6
29050 else
29051   eval "$as_ac_Header=\$ac_header_preproc"
29052 fi
29053 ac_res=`eval echo '${'$as_ac_Header'}'`
29054                { echo "$as_me:$LINENO: result: $ac_res" >&5
29055 echo "${ECHO_T}$ac_res" >&6; }
29056
29057 fi
29058 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29059   cat >>confdefs.h <<_ACEOF
29060 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29061 _ACEOF
29062
29063 fi
29064
29065 done
29066
29067
29068 for ac_header in windows.h
29069 do
29070 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29071 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29072   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29073 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29074 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29075   echo $ECHO_N "(cached) $ECHO_C" >&6
29076 fi
29077 ac_res=`eval echo '${'$as_ac_Header'}'`
29078                { echo "$as_me:$LINENO: result: $ac_res" >&5
29079 echo "${ECHO_T}$ac_res" >&6; }
29080 else
29081   # Is the header compilable?
29082 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29083 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29084 cat >conftest.$ac_ext <<_ACEOF
29085 /* confdefs.h.  */
29086 _ACEOF
29087 cat confdefs.h >>conftest.$ac_ext
29088 cat >>conftest.$ac_ext <<_ACEOF
29089 /* end confdefs.h.  */
29090 $ac_includes_default
29091 #include <$ac_header>
29092 _ACEOF
29093 rm -f conftest.$ac_objext
29094 if { (ac_try="$ac_compile"
29095 case "(($ac_try" in
29096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29097   *) ac_try_echo=$ac_try;;
29098 esac
29099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29100   (eval "$ac_compile") 2>conftest.er1
29101   ac_status=$?
29102   grep -v '^ *+' conftest.er1 >conftest.err
29103   rm -f conftest.er1
29104   cat conftest.err >&5
29105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29106   (exit $ac_status); } &&
29107          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29108   { (case "(($ac_try" in
29109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29110   *) ac_try_echo=$ac_try;;
29111 esac
29112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29113   (eval "$ac_try") 2>&5
29114   ac_status=$?
29115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29116   (exit $ac_status); }; } &&
29117          { ac_try='test -s conftest.$ac_objext'
29118   { (case "(($ac_try" in
29119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29120   *) ac_try_echo=$ac_try;;
29121 esac
29122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29123   (eval "$ac_try") 2>&5
29124   ac_status=$?
29125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29126   (exit $ac_status); }; }; then
29127   ac_header_compiler=yes
29128 else
29129   echo "$as_me: failed program was:" >&5
29130 sed 's/^/| /' conftest.$ac_ext >&5
29131
29132         ac_header_compiler=no
29133 fi
29134
29135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29136 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29137 echo "${ECHO_T}$ac_header_compiler" >&6; }
29138
29139 # Is the header present?
29140 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29141 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29142 cat >conftest.$ac_ext <<_ACEOF
29143 /* confdefs.h.  */
29144 _ACEOF
29145 cat confdefs.h >>conftest.$ac_ext
29146 cat >>conftest.$ac_ext <<_ACEOF
29147 /* end confdefs.h.  */
29148 #include <$ac_header>
29149 _ACEOF
29150 if { (ac_try="$ac_cpp conftest.$ac_ext"
29151 case "(($ac_try" in
29152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29153   *) ac_try_echo=$ac_try;;
29154 esac
29155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29156   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29157   ac_status=$?
29158   grep -v '^ *+' conftest.er1 >conftest.err
29159   rm -f conftest.er1
29160   cat conftest.err >&5
29161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29162   (exit $ac_status); } >/dev/null; then
29163   if test -s conftest.err; then
29164     ac_cpp_err=$ac_c_preproc_warn_flag
29165     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29166   else
29167     ac_cpp_err=
29168   fi
29169 else
29170   ac_cpp_err=yes
29171 fi
29172 if test -z "$ac_cpp_err"; then
29173   ac_header_preproc=yes
29174 else
29175   echo "$as_me: failed program was:" >&5
29176 sed 's/^/| /' conftest.$ac_ext >&5
29177
29178   ac_header_preproc=no
29179 fi
29180
29181 rm -f conftest.err conftest.$ac_ext
29182 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29183 echo "${ECHO_T}$ac_header_preproc" >&6; }
29184
29185 # So?  What about this header?
29186 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29187   yes:no: )
29188     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29189 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29190     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29191 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29192     ac_header_preproc=yes
29193     ;;
29194   no:yes:* )
29195     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29196 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29197     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29198 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29199     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29200 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29201     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29202 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29203     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29204 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29205     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29206 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29207     ( cat <<\_ASBOX
29208 ## ----------------------------------- ##
29209 ## Report this to llvmbugs@cs.uiuc.edu ##
29210 ## ----------------------------------- ##
29211 _ASBOX
29212      ) | sed "s/^/$as_me: WARNING:     /" >&2
29213     ;;
29214 esac
29215 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29216 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29217 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29218   echo $ECHO_N "(cached) $ECHO_C" >&6
29219 else
29220   eval "$as_ac_Header=\$ac_header_preproc"
29221 fi
29222 ac_res=`eval echo '${'$as_ac_Header'}'`
29223                { echo "$as_me:$LINENO: result: $ac_res" >&5
29224 echo "${ECHO_T}$ac_res" >&6; }
29225
29226 fi
29227 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29228   cat >>confdefs.h <<_ACEOF
29229 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29230 _ACEOF
29231
29232 fi
29233
29234 done
29235
29236
29237
29238
29239
29240 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
29241 do
29242 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29243 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29244   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29245 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29246 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29247   echo $ECHO_N "(cached) $ECHO_C" >&6
29248 fi
29249 ac_res=`eval echo '${'$as_ac_Header'}'`
29250                { echo "$as_me:$LINENO: result: $ac_res" >&5
29251 echo "${ECHO_T}$ac_res" >&6; }
29252 else
29253   # Is the header compilable?
29254 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29255 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29256 cat >conftest.$ac_ext <<_ACEOF
29257 /* confdefs.h.  */
29258 _ACEOF
29259 cat confdefs.h >>conftest.$ac_ext
29260 cat >>conftest.$ac_ext <<_ACEOF
29261 /* end confdefs.h.  */
29262 $ac_includes_default
29263 #include <$ac_header>
29264 _ACEOF
29265 rm -f conftest.$ac_objext
29266 if { (ac_try="$ac_compile"
29267 case "(($ac_try" in
29268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29269   *) ac_try_echo=$ac_try;;
29270 esac
29271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29272   (eval "$ac_compile") 2>conftest.er1
29273   ac_status=$?
29274   grep -v '^ *+' conftest.er1 >conftest.err
29275   rm -f conftest.er1
29276   cat conftest.err >&5
29277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29278   (exit $ac_status); } &&
29279          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29280   { (case "(($ac_try" in
29281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29282   *) ac_try_echo=$ac_try;;
29283 esac
29284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29285   (eval "$ac_try") 2>&5
29286   ac_status=$?
29287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29288   (exit $ac_status); }; } &&
29289          { ac_try='test -s conftest.$ac_objext'
29290   { (case "(($ac_try" in
29291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29292   *) ac_try_echo=$ac_try;;
29293 esac
29294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29295   (eval "$ac_try") 2>&5
29296   ac_status=$?
29297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29298   (exit $ac_status); }; }; then
29299   ac_header_compiler=yes
29300 else
29301   echo "$as_me: failed program was:" >&5
29302 sed 's/^/| /' conftest.$ac_ext >&5
29303
29304         ac_header_compiler=no
29305 fi
29306
29307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29308 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29309 echo "${ECHO_T}$ac_header_compiler" >&6; }
29310
29311 # Is the header present?
29312 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29313 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29314 cat >conftest.$ac_ext <<_ACEOF
29315 /* confdefs.h.  */
29316 _ACEOF
29317 cat confdefs.h >>conftest.$ac_ext
29318 cat >>conftest.$ac_ext <<_ACEOF
29319 /* end confdefs.h.  */
29320 #include <$ac_header>
29321 _ACEOF
29322 if { (ac_try="$ac_cpp conftest.$ac_ext"
29323 case "(($ac_try" in
29324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29325   *) ac_try_echo=$ac_try;;
29326 esac
29327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29328   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29329   ac_status=$?
29330   grep -v '^ *+' conftest.er1 >conftest.err
29331   rm -f conftest.er1
29332   cat conftest.err >&5
29333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29334   (exit $ac_status); } >/dev/null; then
29335   if test -s conftest.err; then
29336     ac_cpp_err=$ac_c_preproc_warn_flag
29337     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29338   else
29339     ac_cpp_err=
29340   fi
29341 else
29342   ac_cpp_err=yes
29343 fi
29344 if test -z "$ac_cpp_err"; then
29345   ac_header_preproc=yes
29346 else
29347   echo "$as_me: failed program was:" >&5
29348 sed 's/^/| /' conftest.$ac_ext >&5
29349
29350   ac_header_preproc=no
29351 fi
29352
29353 rm -f conftest.err conftest.$ac_ext
29354 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29355 echo "${ECHO_T}$ac_header_preproc" >&6; }
29356
29357 # So?  What about this header?
29358 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29359   yes:no: )
29360     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29361 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29362     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29363 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29364     ac_header_preproc=yes
29365     ;;
29366   no:yes:* )
29367     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29368 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29369     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29370 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29371     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29372 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29373     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29374 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29375     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29376 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29377     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29378 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29379     ( cat <<\_ASBOX
29380 ## ----------------------------------- ##
29381 ## Report this to llvmbugs@cs.uiuc.edu ##
29382 ## ----------------------------------- ##
29383 _ASBOX
29384      ) | sed "s/^/$as_me: WARNING:     /" >&2
29385     ;;
29386 esac
29387 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29388 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29389 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29390   echo $ECHO_N "(cached) $ECHO_C" >&6
29391 else
29392   eval "$as_ac_Header=\$ac_header_preproc"
29393 fi
29394 ac_res=`eval echo '${'$as_ac_Header'}'`
29395                { echo "$as_me:$LINENO: result: $ac_res" >&5
29396 echo "${ECHO_T}$ac_res" >&6; }
29397
29398 fi
29399 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29400   cat >>confdefs.h <<_ACEOF
29401 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29402 _ACEOF
29403
29404 fi
29405
29406 done
29407
29408
29409
29410
29411 for ac_header in sys/types.h malloc/malloc.h mach/mach.h
29412 do
29413 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29414 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29415   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29416 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29417 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29418   echo $ECHO_N "(cached) $ECHO_C" >&6
29419 fi
29420 ac_res=`eval echo '${'$as_ac_Header'}'`
29421                { echo "$as_me:$LINENO: result: $ac_res" >&5
29422 echo "${ECHO_T}$ac_res" >&6; }
29423 else
29424   # Is the header compilable?
29425 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29426 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29427 cat >conftest.$ac_ext <<_ACEOF
29428 /* confdefs.h.  */
29429 _ACEOF
29430 cat confdefs.h >>conftest.$ac_ext
29431 cat >>conftest.$ac_ext <<_ACEOF
29432 /* end confdefs.h.  */
29433 $ac_includes_default
29434 #include <$ac_header>
29435 _ACEOF
29436 rm -f conftest.$ac_objext
29437 if { (ac_try="$ac_compile"
29438 case "(($ac_try" in
29439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29440   *) ac_try_echo=$ac_try;;
29441 esac
29442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29443   (eval "$ac_compile") 2>conftest.er1
29444   ac_status=$?
29445   grep -v '^ *+' conftest.er1 >conftest.err
29446   rm -f conftest.er1
29447   cat conftest.err >&5
29448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29449   (exit $ac_status); } &&
29450          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29451   { (case "(($ac_try" in
29452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29453   *) ac_try_echo=$ac_try;;
29454 esac
29455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29456   (eval "$ac_try") 2>&5
29457   ac_status=$?
29458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29459   (exit $ac_status); }; } &&
29460          { ac_try='test -s conftest.$ac_objext'
29461   { (case "(($ac_try" in
29462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29463   *) ac_try_echo=$ac_try;;
29464 esac
29465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29466   (eval "$ac_try") 2>&5
29467   ac_status=$?
29468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29469   (exit $ac_status); }; }; then
29470   ac_header_compiler=yes
29471 else
29472   echo "$as_me: failed program was:" >&5
29473 sed 's/^/| /' conftest.$ac_ext >&5
29474
29475         ac_header_compiler=no
29476 fi
29477
29478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29479 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29480 echo "${ECHO_T}$ac_header_compiler" >&6; }
29481
29482 # Is the header present?
29483 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29484 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29485 cat >conftest.$ac_ext <<_ACEOF
29486 /* confdefs.h.  */
29487 _ACEOF
29488 cat confdefs.h >>conftest.$ac_ext
29489 cat >>conftest.$ac_ext <<_ACEOF
29490 /* end confdefs.h.  */
29491 #include <$ac_header>
29492 _ACEOF
29493 if { (ac_try="$ac_cpp conftest.$ac_ext"
29494 case "(($ac_try" in
29495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29496   *) ac_try_echo=$ac_try;;
29497 esac
29498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29499   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29500   ac_status=$?
29501   grep -v '^ *+' conftest.er1 >conftest.err
29502   rm -f conftest.er1
29503   cat conftest.err >&5
29504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29505   (exit $ac_status); } >/dev/null; then
29506   if test -s conftest.err; then
29507     ac_cpp_err=$ac_c_preproc_warn_flag
29508     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29509   else
29510     ac_cpp_err=
29511   fi
29512 else
29513   ac_cpp_err=yes
29514 fi
29515 if test -z "$ac_cpp_err"; then
29516   ac_header_preproc=yes
29517 else
29518   echo "$as_me: failed program was:" >&5
29519 sed 's/^/| /' conftest.$ac_ext >&5
29520
29521   ac_header_preproc=no
29522 fi
29523
29524 rm -f conftest.err conftest.$ac_ext
29525 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29526 echo "${ECHO_T}$ac_header_preproc" >&6; }
29527
29528 # So?  What about this header?
29529 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29530   yes:no: )
29531     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29532 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29533     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29534 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29535     ac_header_preproc=yes
29536     ;;
29537   no:yes:* )
29538     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29539 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29540     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29541 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29542     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29543 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29544     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29545 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29546     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29547 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29548     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29549 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29550     ( cat <<\_ASBOX
29551 ## ----------------------------------- ##
29552 ## Report this to llvmbugs@cs.uiuc.edu ##
29553 ## ----------------------------------- ##
29554 _ASBOX
29555      ) | sed "s/^/$as_me: WARNING:     /" >&2
29556     ;;
29557 esac
29558 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29559 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29560 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29561   echo $ECHO_N "(cached) $ECHO_C" >&6
29562 else
29563   eval "$as_ac_Header=\$ac_header_preproc"
29564 fi
29565 ac_res=`eval echo '${'$as_ac_Header'}'`
29566                { echo "$as_me:$LINENO: result: $ac_res" >&5
29567 echo "${ECHO_T}$ac_res" >&6; }
29568
29569 fi
29570 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29571   cat >>confdefs.h <<_ACEOF
29572 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29573 _ACEOF
29574
29575 fi
29576
29577 done
29578
29579 if test "$ENABLE_THREADS" -eq 1 ; then
29580
29581 for ac_header in pthread.h
29582 do
29583 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29584 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29585   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29586 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29587 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29588   echo $ECHO_N "(cached) $ECHO_C" >&6
29589 fi
29590 ac_res=`eval echo '${'$as_ac_Header'}'`
29591                { echo "$as_me:$LINENO: result: $ac_res" >&5
29592 echo "${ECHO_T}$ac_res" >&6; }
29593 else
29594   # Is the header compilable?
29595 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29596 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29597 cat >conftest.$ac_ext <<_ACEOF
29598 /* confdefs.h.  */
29599 _ACEOF
29600 cat confdefs.h >>conftest.$ac_ext
29601 cat >>conftest.$ac_ext <<_ACEOF
29602 /* end confdefs.h.  */
29603 $ac_includes_default
29604 #include <$ac_header>
29605 _ACEOF
29606 rm -f conftest.$ac_objext
29607 if { (ac_try="$ac_compile"
29608 case "(($ac_try" in
29609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29610   *) ac_try_echo=$ac_try;;
29611 esac
29612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29613   (eval "$ac_compile") 2>conftest.er1
29614   ac_status=$?
29615   grep -v '^ *+' conftest.er1 >conftest.err
29616   rm -f conftest.er1
29617   cat conftest.err >&5
29618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29619   (exit $ac_status); } &&
29620          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29621   { (case "(($ac_try" in
29622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29623   *) ac_try_echo=$ac_try;;
29624 esac
29625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29626   (eval "$ac_try") 2>&5
29627   ac_status=$?
29628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29629   (exit $ac_status); }; } &&
29630          { ac_try='test -s conftest.$ac_objext'
29631   { (case "(($ac_try" in
29632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29633   *) ac_try_echo=$ac_try;;
29634 esac
29635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29636   (eval "$ac_try") 2>&5
29637   ac_status=$?
29638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29639   (exit $ac_status); }; }; then
29640   ac_header_compiler=yes
29641 else
29642   echo "$as_me: failed program was:" >&5
29643 sed 's/^/| /' conftest.$ac_ext >&5
29644
29645         ac_header_compiler=no
29646 fi
29647
29648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29649 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29650 echo "${ECHO_T}$ac_header_compiler" >&6; }
29651
29652 # Is the header present?
29653 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29654 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29655 cat >conftest.$ac_ext <<_ACEOF
29656 /* confdefs.h.  */
29657 _ACEOF
29658 cat confdefs.h >>conftest.$ac_ext
29659 cat >>conftest.$ac_ext <<_ACEOF
29660 /* end confdefs.h.  */
29661 #include <$ac_header>
29662 _ACEOF
29663 if { (ac_try="$ac_cpp conftest.$ac_ext"
29664 case "(($ac_try" in
29665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29666   *) ac_try_echo=$ac_try;;
29667 esac
29668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29669   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29670   ac_status=$?
29671   grep -v '^ *+' conftest.er1 >conftest.err
29672   rm -f conftest.er1
29673   cat conftest.err >&5
29674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29675   (exit $ac_status); } >/dev/null; then
29676   if test -s conftest.err; then
29677     ac_cpp_err=$ac_c_preproc_warn_flag
29678     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29679   else
29680     ac_cpp_err=
29681   fi
29682 else
29683   ac_cpp_err=yes
29684 fi
29685 if test -z "$ac_cpp_err"; then
29686   ac_header_preproc=yes
29687 else
29688   echo "$as_me: failed program was:" >&5
29689 sed 's/^/| /' conftest.$ac_ext >&5
29690
29691   ac_header_preproc=no
29692 fi
29693
29694 rm -f conftest.err conftest.$ac_ext
29695 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29696 echo "${ECHO_T}$ac_header_preproc" >&6; }
29697
29698 # So?  What about this header?
29699 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29700   yes:no: )
29701     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29702 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29703     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29704 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29705     ac_header_preproc=yes
29706     ;;
29707   no:yes:* )
29708     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29709 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29710     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29711 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29712     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29713 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29714     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29715 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29716     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29717 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29718     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29719 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29720     ( cat <<\_ASBOX
29721 ## ----------------------------------- ##
29722 ## Report this to llvmbugs@cs.uiuc.edu ##
29723 ## ----------------------------------- ##
29724 _ASBOX
29725      ) | sed "s/^/$as_me: WARNING:     /" >&2
29726     ;;
29727 esac
29728 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29729 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29730 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29731   echo $ECHO_N "(cached) $ECHO_C" >&6
29732 else
29733   eval "$as_ac_Header=\$ac_header_preproc"
29734 fi
29735 ac_res=`eval echo '${'$as_ac_Header'}'`
29736                { echo "$as_me:$LINENO: result: $ac_res" >&5
29737 echo "${ECHO_T}$ac_res" >&6; }
29738
29739 fi
29740 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29741   cat >>confdefs.h <<_ACEOF
29742 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29743 _ACEOF
29744  HAVE_PTHREAD=1
29745
29746 else
29747   HAVE_PTHREAD=0
29748
29749 fi
29750
29751 done
29752
29753 else
29754   HAVE_PTHREAD=0
29755
29756 fi
29757
29758
29759
29760   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29761 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29762 if test "${ac_cv_huge_val_sanity+set}" = set; then
29763   echo $ECHO_N "(cached) $ECHO_C" >&6
29764 else
29765
29766     ac_ext=cpp
29767 ac_cpp='$CXXCPP $CPPFLAGS'
29768 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29769 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29770 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29771
29772     CXXFLAGS=-pedantic
29773     if test "$cross_compiling" = yes; then
29774   ac_cv_huge_val_sanity=yes
29775 else
29776   cat >conftest.$ac_ext <<_ACEOF
29777 /* confdefs.h.  */
29778 _ACEOF
29779 cat confdefs.h >>conftest.$ac_ext
29780 cat >>conftest.$ac_ext <<_ACEOF
29781 /* end confdefs.h.  */
29782 #include <math.h>
29783 int
29784 main ()
29785 {
29786 double x = HUGE_VAL; return x != x;
29787   ;
29788   return 0;
29789 }
29790 _ACEOF
29791 rm -f conftest$ac_exeext
29792 if { (ac_try="$ac_link"
29793 case "(($ac_try" in
29794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29795   *) ac_try_echo=$ac_try;;
29796 esac
29797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29798   (eval "$ac_link") 2>&5
29799   ac_status=$?
29800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29801   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29802   { (case "(($ac_try" in
29803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29804   *) ac_try_echo=$ac_try;;
29805 esac
29806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29807   (eval "$ac_try") 2>&5
29808   ac_status=$?
29809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29810   (exit $ac_status); }; }; then
29811   ac_cv_huge_val_sanity=yes
29812 else
29813   echo "$as_me: program exited with status $ac_status" >&5
29814 echo "$as_me: failed program was:" >&5
29815 sed 's/^/| /' conftest.$ac_ext >&5
29816
29817 ( exit $ac_status )
29818 ac_cv_huge_val_sanity=no
29819 fi
29820 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29821 fi
29822
29823
29824     ac_ext=c
29825 ac_cpp='$CPP $CPPFLAGS'
29826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29829
29830
29831 fi
29832 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
29833 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
29834   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
29835
29836
29837 { echo "$as_me:$LINENO: checking for pid_t" >&5
29838 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
29839 if test "${ac_cv_type_pid_t+set}" = set; then
29840   echo $ECHO_N "(cached) $ECHO_C" >&6
29841 else
29842   cat >conftest.$ac_ext <<_ACEOF
29843 /* confdefs.h.  */
29844 _ACEOF
29845 cat confdefs.h >>conftest.$ac_ext
29846 cat >>conftest.$ac_ext <<_ACEOF
29847 /* end confdefs.h.  */
29848 $ac_includes_default
29849 typedef pid_t ac__type_new_;
29850 int
29851 main ()
29852 {
29853 if ((ac__type_new_ *) 0)
29854   return 0;
29855 if (sizeof (ac__type_new_))
29856   return 0;
29857   ;
29858   return 0;
29859 }
29860 _ACEOF
29861 rm -f conftest.$ac_objext
29862 if { (ac_try="$ac_compile"
29863 case "(($ac_try" in
29864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29865   *) ac_try_echo=$ac_try;;
29866 esac
29867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29868   (eval "$ac_compile") 2>conftest.er1
29869   ac_status=$?
29870   grep -v '^ *+' conftest.er1 >conftest.err
29871   rm -f conftest.er1
29872   cat conftest.err >&5
29873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29874   (exit $ac_status); } &&
29875          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29876   { (case "(($ac_try" in
29877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29878   *) ac_try_echo=$ac_try;;
29879 esac
29880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29881   (eval "$ac_try") 2>&5
29882   ac_status=$?
29883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29884   (exit $ac_status); }; } &&
29885          { ac_try='test -s conftest.$ac_objext'
29886   { (case "(($ac_try" in
29887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29888   *) ac_try_echo=$ac_try;;
29889 esac
29890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29891   (eval "$ac_try") 2>&5
29892   ac_status=$?
29893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29894   (exit $ac_status); }; }; then
29895   ac_cv_type_pid_t=yes
29896 else
29897   echo "$as_me: failed program was:" >&5
29898 sed 's/^/| /' conftest.$ac_ext >&5
29899
29900         ac_cv_type_pid_t=no
29901 fi
29902
29903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29904 fi
29905 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29906 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
29907 if test $ac_cv_type_pid_t = yes; then
29908   :
29909 else
29910
29911 cat >>confdefs.h <<_ACEOF
29912 #define pid_t int
29913 _ACEOF
29914
29915 fi
29916
29917 { echo "$as_me:$LINENO: checking for size_t" >&5
29918 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
29919 if test "${ac_cv_type_size_t+set}" = set; then
29920   echo $ECHO_N "(cached) $ECHO_C" >&6
29921 else
29922   cat >conftest.$ac_ext <<_ACEOF
29923 /* confdefs.h.  */
29924 _ACEOF
29925 cat confdefs.h >>conftest.$ac_ext
29926 cat >>conftest.$ac_ext <<_ACEOF
29927 /* end confdefs.h.  */
29928 $ac_includes_default
29929 typedef size_t ac__type_new_;
29930 int
29931 main ()
29932 {
29933 if ((ac__type_new_ *) 0)
29934   return 0;
29935 if (sizeof (ac__type_new_))
29936   return 0;
29937   ;
29938   return 0;
29939 }
29940 _ACEOF
29941 rm -f conftest.$ac_objext
29942 if { (ac_try="$ac_compile"
29943 case "(($ac_try" in
29944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29945   *) ac_try_echo=$ac_try;;
29946 esac
29947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29948   (eval "$ac_compile") 2>conftest.er1
29949   ac_status=$?
29950   grep -v '^ *+' conftest.er1 >conftest.err
29951   rm -f conftest.er1
29952   cat conftest.err >&5
29953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29954   (exit $ac_status); } &&
29955          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29956   { (case "(($ac_try" in
29957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29958   *) ac_try_echo=$ac_try;;
29959 esac
29960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29961   (eval "$ac_try") 2>&5
29962   ac_status=$?
29963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29964   (exit $ac_status); }; } &&
29965          { ac_try='test -s conftest.$ac_objext'
29966   { (case "(($ac_try" in
29967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29968   *) ac_try_echo=$ac_try;;
29969 esac
29970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29971   (eval "$ac_try") 2>&5
29972   ac_status=$?
29973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29974   (exit $ac_status); }; }; then
29975   ac_cv_type_size_t=yes
29976 else
29977   echo "$as_me: failed program was:" >&5
29978 sed 's/^/| /' conftest.$ac_ext >&5
29979
29980         ac_cv_type_size_t=no
29981 fi
29982
29983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29984 fi
29985 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29986 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
29987 if test $ac_cv_type_size_t = yes; then
29988   :
29989 else
29990
29991 cat >>confdefs.h <<_ACEOF
29992 #define size_t unsigned int
29993 _ACEOF
29994
29995 fi
29996
29997 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
29998 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
29999 if test "${ac_cv_type_signal+set}" = set; then
30000   echo $ECHO_N "(cached) $ECHO_C" >&6
30001 else
30002   cat >conftest.$ac_ext <<_ACEOF
30003 /* confdefs.h.  */
30004 _ACEOF
30005 cat confdefs.h >>conftest.$ac_ext
30006 cat >>conftest.$ac_ext <<_ACEOF
30007 /* end confdefs.h.  */
30008 #include <sys/types.h>
30009 #include <signal.h>
30010
30011 int
30012 main ()
30013 {
30014 return *(signal (0, 0)) (0) == 1;
30015   ;
30016   return 0;
30017 }
30018 _ACEOF
30019 rm -f conftest.$ac_objext
30020 if { (ac_try="$ac_compile"
30021 case "(($ac_try" in
30022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30023   *) ac_try_echo=$ac_try;;
30024 esac
30025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30026   (eval "$ac_compile") 2>conftest.er1
30027   ac_status=$?
30028   grep -v '^ *+' conftest.er1 >conftest.err
30029   rm -f conftest.er1
30030   cat conftest.err >&5
30031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30032   (exit $ac_status); } &&
30033          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30034   { (case "(($ac_try" in
30035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30036   *) ac_try_echo=$ac_try;;
30037 esac
30038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30039   (eval "$ac_try") 2>&5
30040   ac_status=$?
30041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30042   (exit $ac_status); }; } &&
30043          { ac_try='test -s conftest.$ac_objext'
30044   { (case "(($ac_try" in
30045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30046   *) ac_try_echo=$ac_try;;
30047 esac
30048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30049   (eval "$ac_try") 2>&5
30050   ac_status=$?
30051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30052   (exit $ac_status); }; }; then
30053   ac_cv_type_signal=int
30054 else
30055   echo "$as_me: failed program was:" >&5
30056 sed 's/^/| /' conftest.$ac_ext >&5
30057
30058         ac_cv_type_signal=void
30059 fi
30060
30061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30062 fi
30063 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30064 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
30065
30066 cat >>confdefs.h <<_ACEOF
30067 #define RETSIGTYPE $ac_cv_type_signal
30068 _ACEOF
30069
30070
30071 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30072 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
30073 if test "${ac_cv_struct_tm+set}" = set; then
30074   echo $ECHO_N "(cached) $ECHO_C" >&6
30075 else
30076   cat >conftest.$ac_ext <<_ACEOF
30077 /* confdefs.h.  */
30078 _ACEOF
30079 cat confdefs.h >>conftest.$ac_ext
30080 cat >>conftest.$ac_ext <<_ACEOF
30081 /* end confdefs.h.  */
30082 #include <sys/types.h>
30083 #include <time.h>
30084
30085 int
30086 main ()
30087 {
30088 struct tm *tp; tp->tm_sec;
30089   ;
30090   return 0;
30091 }
30092 _ACEOF
30093 rm -f conftest.$ac_objext
30094 if { (ac_try="$ac_compile"
30095 case "(($ac_try" in
30096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30097   *) ac_try_echo=$ac_try;;
30098 esac
30099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30100   (eval "$ac_compile") 2>conftest.er1
30101   ac_status=$?
30102   grep -v '^ *+' conftest.er1 >conftest.err
30103   rm -f conftest.er1
30104   cat conftest.err >&5
30105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30106   (exit $ac_status); } &&
30107          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30108   { (case "(($ac_try" in
30109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30110   *) ac_try_echo=$ac_try;;
30111 esac
30112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30113   (eval "$ac_try") 2>&5
30114   ac_status=$?
30115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30116   (exit $ac_status); }; } &&
30117          { ac_try='test -s conftest.$ac_objext'
30118   { (case "(($ac_try" in
30119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30120   *) ac_try_echo=$ac_try;;
30121 esac
30122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30123   (eval "$ac_try") 2>&5
30124   ac_status=$?
30125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30126   (exit $ac_status); }; }; then
30127   ac_cv_struct_tm=time.h
30128 else
30129   echo "$as_me: failed program was:" >&5
30130 sed 's/^/| /' conftest.$ac_ext >&5
30131
30132         ac_cv_struct_tm=sys/time.h
30133 fi
30134
30135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30136 fi
30137 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30138 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
30139 if test $ac_cv_struct_tm = sys/time.h; then
30140
30141 cat >>confdefs.h <<\_ACEOF
30142 #define TM_IN_SYS_TIME 1
30143 _ACEOF
30144
30145 fi
30146
30147 { echo "$as_me:$LINENO: checking for int64_t" >&5
30148 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
30149 if test "${ac_cv_type_int64_t+set}" = set; then
30150   echo $ECHO_N "(cached) $ECHO_C" >&6
30151 else
30152   cat >conftest.$ac_ext <<_ACEOF
30153 /* confdefs.h.  */
30154 _ACEOF
30155 cat confdefs.h >>conftest.$ac_ext
30156 cat >>conftest.$ac_ext <<_ACEOF
30157 /* end confdefs.h.  */
30158 $ac_includes_default
30159 typedef int64_t ac__type_new_;
30160 int
30161 main ()
30162 {
30163 if ((ac__type_new_ *) 0)
30164   return 0;
30165 if (sizeof (ac__type_new_))
30166   return 0;
30167   ;
30168   return 0;
30169 }
30170 _ACEOF
30171 rm -f conftest.$ac_objext
30172 if { (ac_try="$ac_compile"
30173 case "(($ac_try" in
30174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30175   *) ac_try_echo=$ac_try;;
30176 esac
30177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30178   (eval "$ac_compile") 2>conftest.er1
30179   ac_status=$?
30180   grep -v '^ *+' conftest.er1 >conftest.err
30181   rm -f conftest.er1
30182   cat conftest.err >&5
30183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30184   (exit $ac_status); } &&
30185          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30186   { (case "(($ac_try" in
30187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30188   *) ac_try_echo=$ac_try;;
30189 esac
30190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30191   (eval "$ac_try") 2>&5
30192   ac_status=$?
30193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30194   (exit $ac_status); }; } &&
30195          { ac_try='test -s conftest.$ac_objext'
30196   { (case "(($ac_try" in
30197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30198   *) ac_try_echo=$ac_try;;
30199 esac
30200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30201   (eval "$ac_try") 2>&5
30202   ac_status=$?
30203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30204   (exit $ac_status); }; }; then
30205   ac_cv_type_int64_t=yes
30206 else
30207   echo "$as_me: failed program was:" >&5
30208 sed 's/^/| /' conftest.$ac_ext >&5
30209
30210         ac_cv_type_int64_t=no
30211 fi
30212
30213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30214 fi
30215 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30216 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
30217 if test $ac_cv_type_int64_t = yes; then
30218
30219 cat >>confdefs.h <<_ACEOF
30220 #define HAVE_INT64_T 1
30221 _ACEOF
30222
30223
30224 else
30225   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30226 echo "$as_me: error: Type int64_t required but not found" >&2;}
30227    { (exit 1); exit 1; }; }
30228 fi
30229
30230 { echo "$as_me:$LINENO: checking for uint64_t" >&5
30231 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
30232 if test "${ac_cv_type_uint64_t+set}" = set; then
30233   echo $ECHO_N "(cached) $ECHO_C" >&6
30234 else
30235   cat >conftest.$ac_ext <<_ACEOF
30236 /* confdefs.h.  */
30237 _ACEOF
30238 cat confdefs.h >>conftest.$ac_ext
30239 cat >>conftest.$ac_ext <<_ACEOF
30240 /* end confdefs.h.  */
30241 $ac_includes_default
30242 typedef uint64_t ac__type_new_;
30243 int
30244 main ()
30245 {
30246 if ((ac__type_new_ *) 0)
30247   return 0;
30248 if (sizeof (ac__type_new_))
30249   return 0;
30250   ;
30251   return 0;
30252 }
30253 _ACEOF
30254 rm -f conftest.$ac_objext
30255 if { (ac_try="$ac_compile"
30256 case "(($ac_try" in
30257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30258   *) ac_try_echo=$ac_try;;
30259 esac
30260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30261   (eval "$ac_compile") 2>conftest.er1
30262   ac_status=$?
30263   grep -v '^ *+' conftest.er1 >conftest.err
30264   rm -f conftest.er1
30265   cat conftest.err >&5
30266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30267   (exit $ac_status); } &&
30268          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30269   { (case "(($ac_try" in
30270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30271   *) ac_try_echo=$ac_try;;
30272 esac
30273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30274   (eval "$ac_try") 2>&5
30275   ac_status=$?
30276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30277   (exit $ac_status); }; } &&
30278          { ac_try='test -s conftest.$ac_objext'
30279   { (case "(($ac_try" in
30280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30281   *) ac_try_echo=$ac_try;;
30282 esac
30283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30284   (eval "$ac_try") 2>&5
30285   ac_status=$?
30286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30287   (exit $ac_status); }; }; then
30288   ac_cv_type_uint64_t=yes
30289 else
30290   echo "$as_me: failed program was:" >&5
30291 sed 's/^/| /' conftest.$ac_ext >&5
30292
30293         ac_cv_type_uint64_t=no
30294 fi
30295
30296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30297 fi
30298 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30299 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
30300 if test $ac_cv_type_uint64_t = yes; then
30301
30302 cat >>confdefs.h <<_ACEOF
30303 #define HAVE_UINT64_T 1
30304 _ACEOF
30305
30306
30307 else
30308   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30309 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
30310 if test "${ac_cv_type_u_int64_t+set}" = set; then
30311   echo $ECHO_N "(cached) $ECHO_C" >&6
30312 else
30313   cat >conftest.$ac_ext <<_ACEOF
30314 /* confdefs.h.  */
30315 _ACEOF
30316 cat confdefs.h >>conftest.$ac_ext
30317 cat >>conftest.$ac_ext <<_ACEOF
30318 /* end confdefs.h.  */
30319 $ac_includes_default
30320 typedef u_int64_t ac__type_new_;
30321 int
30322 main ()
30323 {
30324 if ((ac__type_new_ *) 0)
30325   return 0;
30326 if (sizeof (ac__type_new_))
30327   return 0;
30328   ;
30329   return 0;
30330 }
30331 _ACEOF
30332 rm -f conftest.$ac_objext
30333 if { (ac_try="$ac_compile"
30334 case "(($ac_try" in
30335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30336   *) ac_try_echo=$ac_try;;
30337 esac
30338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30339   (eval "$ac_compile") 2>conftest.er1
30340   ac_status=$?
30341   grep -v '^ *+' conftest.er1 >conftest.err
30342   rm -f conftest.er1
30343   cat conftest.err >&5
30344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30345   (exit $ac_status); } &&
30346          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30347   { (case "(($ac_try" in
30348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30349   *) ac_try_echo=$ac_try;;
30350 esac
30351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30352   (eval "$ac_try") 2>&5
30353   ac_status=$?
30354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30355   (exit $ac_status); }; } &&
30356          { ac_try='test -s conftest.$ac_objext'
30357   { (case "(($ac_try" in
30358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30359   *) ac_try_echo=$ac_try;;
30360 esac
30361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30362   (eval "$ac_try") 2>&5
30363   ac_status=$?
30364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30365   (exit $ac_status); }; }; then
30366   ac_cv_type_u_int64_t=yes
30367 else
30368   echo "$as_me: failed program was:" >&5
30369 sed 's/^/| /' conftest.$ac_ext >&5
30370
30371         ac_cv_type_u_int64_t=no
30372 fi
30373
30374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30375 fi
30376 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30377 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
30378 if test $ac_cv_type_u_int64_t = yes; then
30379
30380 cat >>confdefs.h <<_ACEOF
30381 #define HAVE_U_INT64_T 1
30382 _ACEOF
30383
30384
30385 else
30386   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30387 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30388    { (exit 1); exit 1; }; }
30389 fi
30390
30391 fi
30392
30393
30394
30395
30396
30397
30398
30399
30400
30401
30402 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
30403 do
30404 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30405 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30406 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30407 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30408   echo $ECHO_N "(cached) $ECHO_C" >&6
30409 else
30410   cat >conftest.$ac_ext <<_ACEOF
30411 /* confdefs.h.  */
30412 _ACEOF
30413 cat confdefs.h >>conftest.$ac_ext
30414 cat >>conftest.$ac_ext <<_ACEOF
30415 /* end confdefs.h.  */
30416 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30417    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30418 #define $ac_func innocuous_$ac_func
30419
30420 /* System header to define __stub macros and hopefully few prototypes,
30421     which can conflict with char $ac_func (); below.
30422     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30423     <limits.h> exists even on freestanding compilers.  */
30424
30425 #ifdef __STDC__
30426 # include <limits.h>
30427 #else
30428 # include <assert.h>
30429 #endif
30430
30431 #undef $ac_func
30432
30433 /* Override any GCC internal prototype to avoid an error.
30434    Use char because int might match the return type of a GCC
30435    builtin and then its argument prototype would still apply.  */
30436 #ifdef __cplusplus
30437 extern "C"
30438 #endif
30439 char $ac_func ();
30440 /* The GNU C library defines this for functions which it implements
30441     to always fail with ENOSYS.  Some functions are actually named
30442     something starting with __ and the normal name is an alias.  */
30443 #if defined __stub_$ac_func || defined __stub___$ac_func
30444 choke me
30445 #endif
30446
30447 int
30448 main ()
30449 {
30450 return $ac_func ();
30451   ;
30452   return 0;
30453 }
30454 _ACEOF
30455 rm -f conftest.$ac_objext conftest$ac_exeext
30456 if { (ac_try="$ac_link"
30457 case "(($ac_try" in
30458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30459   *) ac_try_echo=$ac_try;;
30460 esac
30461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30462   (eval "$ac_link") 2>conftest.er1
30463   ac_status=$?
30464   grep -v '^ *+' conftest.er1 >conftest.err
30465   rm -f conftest.er1
30466   cat conftest.err >&5
30467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30468   (exit $ac_status); } &&
30469          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30470   { (case "(($ac_try" in
30471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30472   *) ac_try_echo=$ac_try;;
30473 esac
30474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30475   (eval "$ac_try") 2>&5
30476   ac_status=$?
30477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30478   (exit $ac_status); }; } &&
30479          { ac_try='test -s conftest$ac_exeext'
30480   { (case "(($ac_try" in
30481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30482   *) ac_try_echo=$ac_try;;
30483 esac
30484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30485   (eval "$ac_try") 2>&5
30486   ac_status=$?
30487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30488   (exit $ac_status); }; }; then
30489   eval "$as_ac_var=yes"
30490 else
30491   echo "$as_me: failed program was:" >&5
30492 sed 's/^/| /' conftest.$ac_ext >&5
30493
30494         eval "$as_ac_var=no"
30495 fi
30496
30497 rm -f core conftest.err conftest.$ac_objext \
30498       conftest$ac_exeext conftest.$ac_ext
30499 fi
30500 ac_res=`eval echo '${'$as_ac_var'}'`
30501                { echo "$as_me:$LINENO: result: $ac_res" >&5
30502 echo "${ECHO_T}$ac_res" >&6; }
30503 if test `eval echo '${'$as_ac_var'}'` = yes; then
30504   cat >>confdefs.h <<_ACEOF
30505 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30506 _ACEOF
30507
30508 fi
30509 done
30510
30511
30512
30513
30514
30515 for ac_func in powf fmodf strtof round
30516 do
30517 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30518 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30519 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30520 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30521   echo $ECHO_N "(cached) $ECHO_C" >&6
30522 else
30523   cat >conftest.$ac_ext <<_ACEOF
30524 /* confdefs.h.  */
30525 _ACEOF
30526 cat confdefs.h >>conftest.$ac_ext
30527 cat >>conftest.$ac_ext <<_ACEOF
30528 /* end confdefs.h.  */
30529 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30530    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30531 #define $ac_func innocuous_$ac_func
30532
30533 /* System header to define __stub macros and hopefully few prototypes,
30534     which can conflict with char $ac_func (); below.
30535     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30536     <limits.h> exists even on freestanding compilers.  */
30537
30538 #ifdef __STDC__
30539 # include <limits.h>
30540 #else
30541 # include <assert.h>
30542 #endif
30543
30544 #undef $ac_func
30545
30546 /* Override any GCC internal prototype to avoid an error.
30547    Use char because int might match the return type of a GCC
30548    builtin and then its argument prototype would still apply.  */
30549 #ifdef __cplusplus
30550 extern "C"
30551 #endif
30552 char $ac_func ();
30553 /* The GNU C library defines this for functions which it implements
30554     to always fail with ENOSYS.  Some functions are actually named
30555     something starting with __ and the normal name is an alias.  */
30556 #if defined __stub_$ac_func || defined __stub___$ac_func
30557 choke me
30558 #endif
30559
30560 int
30561 main ()
30562 {
30563 return $ac_func ();
30564   ;
30565   return 0;
30566 }
30567 _ACEOF
30568 rm -f conftest.$ac_objext conftest$ac_exeext
30569 if { (ac_try="$ac_link"
30570 case "(($ac_try" in
30571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30572   *) ac_try_echo=$ac_try;;
30573 esac
30574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30575   (eval "$ac_link") 2>conftest.er1
30576   ac_status=$?
30577   grep -v '^ *+' conftest.er1 >conftest.err
30578   rm -f conftest.er1
30579   cat conftest.err >&5
30580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30581   (exit $ac_status); } &&
30582          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30583   { (case "(($ac_try" in
30584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30585   *) ac_try_echo=$ac_try;;
30586 esac
30587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30588   (eval "$ac_try") 2>&5
30589   ac_status=$?
30590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30591   (exit $ac_status); }; } &&
30592          { ac_try='test -s conftest$ac_exeext'
30593   { (case "(($ac_try" in
30594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30595   *) ac_try_echo=$ac_try;;
30596 esac
30597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30598   (eval "$ac_try") 2>&5
30599   ac_status=$?
30600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30601   (exit $ac_status); }; }; then
30602   eval "$as_ac_var=yes"
30603 else
30604   echo "$as_me: failed program was:" >&5
30605 sed 's/^/| /' conftest.$ac_ext >&5
30606
30607         eval "$as_ac_var=no"
30608 fi
30609
30610 rm -f core conftest.err conftest.$ac_objext \
30611       conftest$ac_exeext conftest.$ac_ext
30612 fi
30613 ac_res=`eval echo '${'$as_ac_var'}'`
30614                { echo "$as_me:$LINENO: result: $ac_res" >&5
30615 echo "${ECHO_T}$ac_res" >&6; }
30616 if test `eval echo '${'$as_ac_var'}'` = yes; then
30617   cat >>confdefs.h <<_ACEOF
30618 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30619 _ACEOF
30620
30621 fi
30622 done
30623
30624
30625
30626
30627
30628
30629 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
30630 do
30631 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30632 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30633 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30634 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30635   echo $ECHO_N "(cached) $ECHO_C" >&6
30636 else
30637   cat >conftest.$ac_ext <<_ACEOF
30638 /* confdefs.h.  */
30639 _ACEOF
30640 cat confdefs.h >>conftest.$ac_ext
30641 cat >>conftest.$ac_ext <<_ACEOF
30642 /* end confdefs.h.  */
30643 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30644    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30645 #define $ac_func innocuous_$ac_func
30646
30647 /* System header to define __stub macros and hopefully few prototypes,
30648     which can conflict with char $ac_func (); below.
30649     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30650     <limits.h> exists even on freestanding compilers.  */
30651
30652 #ifdef __STDC__
30653 # include <limits.h>
30654 #else
30655 # include <assert.h>
30656 #endif
30657
30658 #undef $ac_func
30659
30660 /* Override any GCC internal prototype to avoid an error.
30661    Use char because int might match the return type of a GCC
30662    builtin and then its argument prototype would still apply.  */
30663 #ifdef __cplusplus
30664 extern "C"
30665 #endif
30666 char $ac_func ();
30667 /* The GNU C library defines this for functions which it implements
30668     to always fail with ENOSYS.  Some functions are actually named
30669     something starting with __ and the normal name is an alias.  */
30670 #if defined __stub_$ac_func || defined __stub___$ac_func
30671 choke me
30672 #endif
30673
30674 int
30675 main ()
30676 {
30677 return $ac_func ();
30678   ;
30679   return 0;
30680 }
30681 _ACEOF
30682 rm -f conftest.$ac_objext conftest$ac_exeext
30683 if { (ac_try="$ac_link"
30684 case "(($ac_try" in
30685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30686   *) ac_try_echo=$ac_try;;
30687 esac
30688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30689   (eval "$ac_link") 2>conftest.er1
30690   ac_status=$?
30691   grep -v '^ *+' conftest.er1 >conftest.err
30692   rm -f conftest.er1
30693   cat conftest.err >&5
30694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30695   (exit $ac_status); } &&
30696          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30697   { (case "(($ac_try" in
30698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30699   *) ac_try_echo=$ac_try;;
30700 esac
30701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30702   (eval "$ac_try") 2>&5
30703   ac_status=$?
30704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30705   (exit $ac_status); }; } &&
30706          { ac_try='test -s conftest$ac_exeext'
30707   { (case "(($ac_try" in
30708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30709   *) ac_try_echo=$ac_try;;
30710 esac
30711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30712   (eval "$ac_try") 2>&5
30713   ac_status=$?
30714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30715   (exit $ac_status); }; }; then
30716   eval "$as_ac_var=yes"
30717 else
30718   echo "$as_me: failed program was:" >&5
30719 sed 's/^/| /' conftest.$ac_ext >&5
30720
30721         eval "$as_ac_var=no"
30722 fi
30723
30724 rm -f core conftest.err conftest.$ac_objext \
30725       conftest$ac_exeext conftest.$ac_ext
30726 fi
30727 ac_res=`eval echo '${'$as_ac_var'}'`
30728                { echo "$as_me:$LINENO: result: $ac_res" >&5
30729 echo "${ECHO_T}$ac_res" >&6; }
30730 if test `eval echo '${'$as_ac_var'}'` = yes; then
30731   cat >>confdefs.h <<_ACEOF
30732 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30733 _ACEOF
30734
30735 fi
30736 done
30737
30738
30739
30740
30741 for ac_func in isatty mkdtemp mkstemp
30742 do
30743 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30744 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30745 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30746 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30747   echo $ECHO_N "(cached) $ECHO_C" >&6
30748 else
30749   cat >conftest.$ac_ext <<_ACEOF
30750 /* confdefs.h.  */
30751 _ACEOF
30752 cat confdefs.h >>conftest.$ac_ext
30753 cat >>conftest.$ac_ext <<_ACEOF
30754 /* end confdefs.h.  */
30755 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30756    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30757 #define $ac_func innocuous_$ac_func
30758
30759 /* System header to define __stub macros and hopefully few prototypes,
30760     which can conflict with char $ac_func (); below.
30761     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30762     <limits.h> exists even on freestanding compilers.  */
30763
30764 #ifdef __STDC__
30765 # include <limits.h>
30766 #else
30767 # include <assert.h>
30768 #endif
30769
30770 #undef $ac_func
30771
30772 /* Override any GCC internal prototype to avoid an error.
30773    Use char because int might match the return type of a GCC
30774    builtin and then its argument prototype would still apply.  */
30775 #ifdef __cplusplus
30776 extern "C"
30777 #endif
30778 char $ac_func ();
30779 /* The GNU C library defines this for functions which it implements
30780     to always fail with ENOSYS.  Some functions are actually named
30781     something starting with __ and the normal name is an alias.  */
30782 #if defined __stub_$ac_func || defined __stub___$ac_func
30783 choke me
30784 #endif
30785
30786 int
30787 main ()
30788 {
30789 return $ac_func ();
30790   ;
30791   return 0;
30792 }
30793 _ACEOF
30794 rm -f conftest.$ac_objext conftest$ac_exeext
30795 if { (ac_try="$ac_link"
30796 case "(($ac_try" in
30797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30798   *) ac_try_echo=$ac_try;;
30799 esac
30800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30801   (eval "$ac_link") 2>conftest.er1
30802   ac_status=$?
30803   grep -v '^ *+' conftest.er1 >conftest.err
30804   rm -f conftest.er1
30805   cat conftest.err >&5
30806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30807   (exit $ac_status); } &&
30808          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30809   { (case "(($ac_try" in
30810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30811   *) ac_try_echo=$ac_try;;
30812 esac
30813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30814   (eval "$ac_try") 2>&5
30815   ac_status=$?
30816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30817   (exit $ac_status); }; } &&
30818          { ac_try='test -s conftest$ac_exeext'
30819   { (case "(($ac_try" in
30820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30821   *) ac_try_echo=$ac_try;;
30822 esac
30823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30824   (eval "$ac_try") 2>&5
30825   ac_status=$?
30826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30827   (exit $ac_status); }; }; then
30828   eval "$as_ac_var=yes"
30829 else
30830   echo "$as_me: failed program was:" >&5
30831 sed 's/^/| /' conftest.$ac_ext >&5
30832
30833         eval "$as_ac_var=no"
30834 fi
30835
30836 rm -f core conftest.err conftest.$ac_objext \
30837       conftest$ac_exeext conftest.$ac_ext
30838 fi
30839 ac_res=`eval echo '${'$as_ac_var'}'`
30840                { echo "$as_me:$LINENO: result: $ac_res" >&5
30841 echo "${ECHO_T}$ac_res" >&6; }
30842 if test `eval echo '${'$as_ac_var'}'` = yes; then
30843   cat >>confdefs.h <<_ACEOF
30844 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30845 _ACEOF
30846
30847 fi
30848 done
30849
30850
30851
30852
30853
30854
30855
30856
30857 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
30858 do
30859 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30860 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30861 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30862 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30863   echo $ECHO_N "(cached) $ECHO_C" >&6
30864 else
30865   cat >conftest.$ac_ext <<_ACEOF
30866 /* confdefs.h.  */
30867 _ACEOF
30868 cat confdefs.h >>conftest.$ac_ext
30869 cat >>conftest.$ac_ext <<_ACEOF
30870 /* end confdefs.h.  */
30871 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30872    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30873 #define $ac_func innocuous_$ac_func
30874
30875 /* System header to define __stub macros and hopefully few prototypes,
30876     which can conflict with char $ac_func (); below.
30877     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30878     <limits.h> exists even on freestanding compilers.  */
30879
30880 #ifdef __STDC__
30881 # include <limits.h>
30882 #else
30883 # include <assert.h>
30884 #endif
30885
30886 #undef $ac_func
30887
30888 /* Override any GCC internal prototype to avoid an error.
30889    Use char because int might match the return type of a GCC
30890    builtin and then its argument prototype would still apply.  */
30891 #ifdef __cplusplus
30892 extern "C"
30893 #endif
30894 char $ac_func ();
30895 /* The GNU C library defines this for functions which it implements
30896     to always fail with ENOSYS.  Some functions are actually named
30897     something starting with __ and the normal name is an alias.  */
30898 #if defined __stub_$ac_func || defined __stub___$ac_func
30899 choke me
30900 #endif
30901
30902 int
30903 main ()
30904 {
30905 return $ac_func ();
30906   ;
30907   return 0;
30908 }
30909 _ACEOF
30910 rm -f conftest.$ac_objext conftest$ac_exeext
30911 if { (ac_try="$ac_link"
30912 case "(($ac_try" in
30913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30914   *) ac_try_echo=$ac_try;;
30915 esac
30916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30917   (eval "$ac_link") 2>conftest.er1
30918   ac_status=$?
30919   grep -v '^ *+' conftest.er1 >conftest.err
30920   rm -f conftest.er1
30921   cat conftest.err >&5
30922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30923   (exit $ac_status); } &&
30924          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30925   { (case "(($ac_try" in
30926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30927   *) ac_try_echo=$ac_try;;
30928 esac
30929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30930   (eval "$ac_try") 2>&5
30931   ac_status=$?
30932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30933   (exit $ac_status); }; } &&
30934          { ac_try='test -s conftest$ac_exeext'
30935   { (case "(($ac_try" in
30936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30937   *) ac_try_echo=$ac_try;;
30938 esac
30939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30940   (eval "$ac_try") 2>&5
30941   ac_status=$?
30942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30943   (exit $ac_status); }; }; then
30944   eval "$as_ac_var=yes"
30945 else
30946   echo "$as_me: failed program was:" >&5
30947 sed 's/^/| /' conftest.$ac_ext >&5
30948
30949         eval "$as_ac_var=no"
30950 fi
30951
30952 rm -f core conftest.err conftest.$ac_objext \
30953       conftest$ac_exeext conftest.$ac_ext
30954 fi
30955 ac_res=`eval echo '${'$as_ac_var'}'`
30956                { echo "$as_me:$LINENO: result: $ac_res" >&5
30957 echo "${ECHO_T}$ac_res" >&6; }
30958 if test `eval echo '${'$as_ac_var'}'` = yes; then
30959   cat >>confdefs.h <<_ACEOF
30960 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30961 _ACEOF
30962
30963 fi
30964 done
30965
30966
30967
30968
30969
30970 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
30971 do
30972 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30973 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30974 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30975 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30976   echo $ECHO_N "(cached) $ECHO_C" >&6
30977 else
30978   cat >conftest.$ac_ext <<_ACEOF
30979 /* confdefs.h.  */
30980 _ACEOF
30981 cat confdefs.h >>conftest.$ac_ext
30982 cat >>conftest.$ac_ext <<_ACEOF
30983 /* end confdefs.h.  */
30984 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30985    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30986 #define $ac_func innocuous_$ac_func
30987
30988 /* System header to define __stub macros and hopefully few prototypes,
30989     which can conflict with char $ac_func (); below.
30990     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30991     <limits.h> exists even on freestanding compilers.  */
30992
30993 #ifdef __STDC__
30994 # include <limits.h>
30995 #else
30996 # include <assert.h>
30997 #endif
30998
30999 #undef $ac_func
31000
31001 /* Override any GCC internal prototype to avoid an error.
31002    Use char because int might match the return type of a GCC
31003    builtin and then its argument prototype would still apply.  */
31004 #ifdef __cplusplus
31005 extern "C"
31006 #endif
31007 char $ac_func ();
31008 /* The GNU C library defines this for functions which it implements
31009     to always fail with ENOSYS.  Some functions are actually named
31010     something starting with __ and the normal name is an alias.  */
31011 #if defined __stub_$ac_func || defined __stub___$ac_func
31012 choke me
31013 #endif
31014
31015 int
31016 main ()
31017 {
31018 return $ac_func ();
31019   ;
31020   return 0;
31021 }
31022 _ACEOF
31023 rm -f conftest.$ac_objext conftest$ac_exeext
31024 if { (ac_try="$ac_link"
31025 case "(($ac_try" in
31026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31027   *) ac_try_echo=$ac_try;;
31028 esac
31029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31030   (eval "$ac_link") 2>conftest.er1
31031   ac_status=$?
31032   grep -v '^ *+' conftest.er1 >conftest.err
31033   rm -f conftest.er1
31034   cat conftest.err >&5
31035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31036   (exit $ac_status); } &&
31037          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31038   { (case "(($ac_try" in
31039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31040   *) ac_try_echo=$ac_try;;
31041 esac
31042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31043   (eval "$ac_try") 2>&5
31044   ac_status=$?
31045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31046   (exit $ac_status); }; } &&
31047          { ac_try='test -s conftest$ac_exeext'
31048   { (case "(($ac_try" in
31049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31050   *) ac_try_echo=$ac_try;;
31051 esac
31052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31053   (eval "$ac_try") 2>&5
31054   ac_status=$?
31055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31056   (exit $ac_status); }; }; then
31057   eval "$as_ac_var=yes"
31058 else
31059   echo "$as_me: failed program was:" >&5
31060 sed 's/^/| /' conftest.$ac_ext >&5
31061
31062         eval "$as_ac_var=no"
31063 fi
31064
31065 rm -f core conftest.err conftest.$ac_objext \
31066       conftest$ac_exeext conftest.$ac_ext
31067 fi
31068 ac_res=`eval echo '${'$as_ac_var'}'`
31069                { echo "$as_me:$LINENO: result: $ac_res" >&5
31070 echo "${ECHO_T}$ac_res" >&6; }
31071 if test `eval echo '${'$as_ac_var'}'` = yes; then
31072   cat >>confdefs.h <<_ACEOF
31073 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31074 _ACEOF
31075
31076 fi
31077 done
31078
31079
31080
31081
31082
31083 for ac_func in setjmp longjmp sigsetjmp siglongjmp
31084 do
31085 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31086 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31087 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31088 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31089   echo $ECHO_N "(cached) $ECHO_C" >&6
31090 else
31091   cat >conftest.$ac_ext <<_ACEOF
31092 /* confdefs.h.  */
31093 _ACEOF
31094 cat confdefs.h >>conftest.$ac_ext
31095 cat >>conftest.$ac_ext <<_ACEOF
31096 /* end confdefs.h.  */
31097 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31098    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31099 #define $ac_func innocuous_$ac_func
31100
31101 /* System header to define __stub macros and hopefully few prototypes,
31102     which can conflict with char $ac_func (); below.
31103     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31104     <limits.h> exists even on freestanding compilers.  */
31105
31106 #ifdef __STDC__
31107 # include <limits.h>
31108 #else
31109 # include <assert.h>
31110 #endif
31111
31112 #undef $ac_func
31113
31114 /* Override any GCC internal prototype to avoid an error.
31115    Use char because int might match the return type of a GCC
31116    builtin and then its argument prototype would still apply.  */
31117 #ifdef __cplusplus
31118 extern "C"
31119 #endif
31120 char $ac_func ();
31121 /* The GNU C library defines this for functions which it implements
31122     to always fail with ENOSYS.  Some functions are actually named
31123     something starting with __ and the normal name is an alias.  */
31124 #if defined __stub_$ac_func || defined __stub___$ac_func
31125 choke me
31126 #endif
31127
31128 int
31129 main ()
31130 {
31131 return $ac_func ();
31132   ;
31133   return 0;
31134 }
31135 _ACEOF
31136 rm -f conftest.$ac_objext conftest$ac_exeext
31137 if { (ac_try="$ac_link"
31138 case "(($ac_try" in
31139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31140   *) ac_try_echo=$ac_try;;
31141 esac
31142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31143   (eval "$ac_link") 2>conftest.er1
31144   ac_status=$?
31145   grep -v '^ *+' conftest.er1 >conftest.err
31146   rm -f conftest.er1
31147   cat conftest.err >&5
31148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31149   (exit $ac_status); } &&
31150          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31151   { (case "(($ac_try" in
31152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31153   *) ac_try_echo=$ac_try;;
31154 esac
31155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31156   (eval "$ac_try") 2>&5
31157   ac_status=$?
31158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31159   (exit $ac_status); }; } &&
31160          { ac_try='test -s conftest$ac_exeext'
31161   { (case "(($ac_try" in
31162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31163   *) ac_try_echo=$ac_try;;
31164 esac
31165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31166   (eval "$ac_try") 2>&5
31167   ac_status=$?
31168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31169   (exit $ac_status); }; }; then
31170   eval "$as_ac_var=yes"
31171 else
31172   echo "$as_me: failed program was:" >&5
31173 sed 's/^/| /' conftest.$ac_ext >&5
31174
31175         eval "$as_ac_var=no"
31176 fi
31177
31178 rm -f core conftest.err conftest.$ac_objext \
31179       conftest$ac_exeext conftest.$ac_ext
31180 fi
31181 ac_res=`eval echo '${'$as_ac_var'}'`
31182                { echo "$as_me:$LINENO: result: $ac_res" >&5
31183 echo "${ECHO_T}$ac_res" >&6; }
31184 if test `eval echo '${'$as_ac_var'}'` = yes; then
31185   cat >>confdefs.h <<_ACEOF
31186 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31187 _ACEOF
31188
31189 fi
31190 done
31191
31192 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31193 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
31194 if test "${llvm_cv_c_printf_a+set}" = set; then
31195   echo $ECHO_N "(cached) $ECHO_C" >&6
31196 else
31197   ac_ext=c
31198 ac_cpp='$CPP $CPPFLAGS'
31199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31202
31203  if test "$cross_compiling" = yes; then
31204   llvmac_cv_c_printf_a=no
31205 else
31206   cat >conftest.$ac_ext <<_ACEOF
31207
31208   /* confdefs.h.  */
31209 _ACEOF
31210 cat confdefs.h >>conftest.$ac_ext
31211 cat >>conftest.$ac_ext <<_ACEOF
31212 /* end confdefs.h.  */
31213
31214 #include <stdio.h>
31215 #include <stdlib.h>
31216
31217 int
31218 main ()
31219 {
31220
31221 volatile double A, B;
31222 char Buffer[100];
31223 A = 1;
31224 A /= 10.0;
31225 sprintf(Buffer, "%a", A);
31226 B = atof(Buffer);
31227 if (A != B)
31228   return (1);
31229 if (A != 0x1.999999999999ap-4)
31230   return (1);
31231 return (0);
31232   ;
31233   return 0;
31234 }
31235 _ACEOF
31236 rm -f conftest$ac_exeext
31237 if { (ac_try="$ac_link"
31238 case "(($ac_try" in
31239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31240   *) ac_try_echo=$ac_try;;
31241 esac
31242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31243   (eval "$ac_link") 2>&5
31244   ac_status=$?
31245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31246   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31247   { (case "(($ac_try" in
31248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31249   *) ac_try_echo=$ac_try;;
31250 esac
31251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31252   (eval "$ac_try") 2>&5
31253   ac_status=$?
31254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31255   (exit $ac_status); }; }; then
31256   llvm_cv_c_printf_a=yes
31257 else
31258   echo "$as_me: program exited with status $ac_status" >&5
31259 echo "$as_me: failed program was:" >&5
31260 sed 's/^/| /' conftest.$ac_ext >&5
31261
31262 ( exit $ac_status )
31263 llvmac_cv_c_printf_a=no
31264 fi
31265 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31266 fi
31267
31268
31269  ac_ext=c
31270 ac_cpp='$CPP $CPPFLAGS'
31271 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31272 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31273 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31274
31275 fi
31276 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31277 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
31278  if test "$llvm_cv_c_printf_a" = "yes"; then
31279
31280 cat >>confdefs.h <<\_ACEOF
31281 #define HAVE_PRINTF_A 1
31282 _ACEOF
31283
31284  fi
31285
31286 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31287 # for constant arguments.  Useless!
31288 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
31289 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
31290 if test "${ac_cv_working_alloca_h+set}" = set; then
31291   echo $ECHO_N "(cached) $ECHO_C" >&6
31292 else
31293   cat >conftest.$ac_ext <<_ACEOF
31294 /* confdefs.h.  */
31295 _ACEOF
31296 cat confdefs.h >>conftest.$ac_ext
31297 cat >>conftest.$ac_ext <<_ACEOF
31298 /* end confdefs.h.  */
31299 #include <alloca.h>
31300 int
31301 main ()
31302 {
31303 char *p = (char *) alloca (2 * sizeof (int));
31304                           if (p) return 0;
31305   ;
31306   return 0;
31307 }
31308 _ACEOF
31309 rm -f conftest.$ac_objext conftest$ac_exeext
31310 if { (ac_try="$ac_link"
31311 case "(($ac_try" in
31312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31313   *) ac_try_echo=$ac_try;;
31314 esac
31315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31316   (eval "$ac_link") 2>conftest.er1
31317   ac_status=$?
31318   grep -v '^ *+' conftest.er1 >conftest.err
31319   rm -f conftest.er1
31320   cat conftest.err >&5
31321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31322   (exit $ac_status); } &&
31323          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31324   { (case "(($ac_try" in
31325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31326   *) ac_try_echo=$ac_try;;
31327 esac
31328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31329   (eval "$ac_try") 2>&5
31330   ac_status=$?
31331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31332   (exit $ac_status); }; } &&
31333          { ac_try='test -s conftest$ac_exeext'
31334   { (case "(($ac_try" in
31335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31336   *) ac_try_echo=$ac_try;;
31337 esac
31338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31339   (eval "$ac_try") 2>&5
31340   ac_status=$?
31341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31342   (exit $ac_status); }; }; then
31343   ac_cv_working_alloca_h=yes
31344 else
31345   echo "$as_me: failed program was:" >&5
31346 sed 's/^/| /' conftest.$ac_ext >&5
31347
31348         ac_cv_working_alloca_h=no
31349 fi
31350
31351 rm -f core conftest.err conftest.$ac_objext \
31352       conftest$ac_exeext conftest.$ac_ext
31353 fi
31354 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31355 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
31356 if test $ac_cv_working_alloca_h = yes; then
31357
31358 cat >>confdefs.h <<\_ACEOF
31359 #define HAVE_ALLOCA_H 1
31360 _ACEOF
31361
31362 fi
31363
31364 { echo "$as_me:$LINENO: checking for alloca" >&5
31365 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
31366 if test "${ac_cv_func_alloca_works+set}" = set; then
31367   echo $ECHO_N "(cached) $ECHO_C" >&6
31368 else
31369   cat >conftest.$ac_ext <<_ACEOF
31370 /* confdefs.h.  */
31371 _ACEOF
31372 cat confdefs.h >>conftest.$ac_ext
31373 cat >>conftest.$ac_ext <<_ACEOF
31374 /* end confdefs.h.  */
31375 #ifdef __GNUC__
31376 # define alloca __builtin_alloca
31377 #else
31378 # ifdef _MSC_VER
31379 #  include <malloc.h>
31380 #  define alloca _alloca
31381 # else
31382 #  if HAVE_ALLOCA_H
31383 #   include <alloca.h>
31384 #  else
31385 #   ifdef _AIX
31386  #pragma alloca
31387 #   else
31388 #    ifndef alloca /* predefined by HP cc +Olibcalls */
31389 char *alloca ();
31390 #    endif
31391 #   endif
31392 #  endif
31393 # endif
31394 #endif
31395
31396 int
31397 main ()
31398 {
31399 char *p = (char *) alloca (1);
31400                                     if (p) return 0;
31401   ;
31402   return 0;
31403 }
31404 _ACEOF
31405 rm -f conftest.$ac_objext conftest$ac_exeext
31406 if { (ac_try="$ac_link"
31407 case "(($ac_try" in
31408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31409   *) ac_try_echo=$ac_try;;
31410 esac
31411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31412   (eval "$ac_link") 2>conftest.er1
31413   ac_status=$?
31414   grep -v '^ *+' conftest.er1 >conftest.err
31415   rm -f conftest.er1
31416   cat conftest.err >&5
31417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31418   (exit $ac_status); } &&
31419          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31420   { (case "(($ac_try" in
31421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31422   *) ac_try_echo=$ac_try;;
31423 esac
31424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31425   (eval "$ac_try") 2>&5
31426   ac_status=$?
31427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31428   (exit $ac_status); }; } &&
31429          { ac_try='test -s conftest$ac_exeext'
31430   { (case "(($ac_try" in
31431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31432   *) ac_try_echo=$ac_try;;
31433 esac
31434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31435   (eval "$ac_try") 2>&5
31436   ac_status=$?
31437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31438   (exit $ac_status); }; }; then
31439   ac_cv_func_alloca_works=yes
31440 else
31441   echo "$as_me: failed program was:" >&5
31442 sed 's/^/| /' conftest.$ac_ext >&5
31443
31444         ac_cv_func_alloca_works=no
31445 fi
31446
31447 rm -f core conftest.err conftest.$ac_objext \
31448       conftest$ac_exeext conftest.$ac_ext
31449 fi
31450 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31451 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
31452
31453 if test $ac_cv_func_alloca_works = yes; then
31454
31455 cat >>confdefs.h <<\_ACEOF
31456 #define HAVE_ALLOCA 1
31457 _ACEOF
31458
31459 else
31460   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31461 # that cause trouble.  Some versions do not even contain alloca or
31462 # contain a buggy version.  If you still want to use their alloca,
31463 # use ar to extract alloca.o from them instead of compiling alloca.c.
31464
31465 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
31466
31467 cat >>confdefs.h <<\_ACEOF
31468 #define C_ALLOCA 1
31469 _ACEOF
31470
31471
31472 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31473 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
31474 if test "${ac_cv_os_cray+set}" = set; then
31475   echo $ECHO_N "(cached) $ECHO_C" >&6
31476 else
31477   cat >conftest.$ac_ext <<_ACEOF
31478 /* confdefs.h.  */
31479 _ACEOF
31480 cat confdefs.h >>conftest.$ac_ext
31481 cat >>conftest.$ac_ext <<_ACEOF
31482 /* end confdefs.h.  */
31483 #if defined CRAY && ! defined CRAY2
31484 webecray
31485 #else
31486 wenotbecray
31487 #endif
31488
31489 _ACEOF
31490 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31491   $EGREP "webecray" >/dev/null 2>&1; then
31492   ac_cv_os_cray=yes
31493 else
31494   ac_cv_os_cray=no
31495 fi
31496 rm -f conftest*
31497
31498 fi
31499 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31500 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
31501 if test $ac_cv_os_cray = yes; then
31502   for ac_func in _getb67 GETB67 getb67; do
31503     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31504 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31505 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31506 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31507   echo $ECHO_N "(cached) $ECHO_C" >&6
31508 else
31509   cat >conftest.$ac_ext <<_ACEOF
31510 /* confdefs.h.  */
31511 _ACEOF
31512 cat confdefs.h >>conftest.$ac_ext
31513 cat >>conftest.$ac_ext <<_ACEOF
31514 /* end confdefs.h.  */
31515 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31516    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31517 #define $ac_func innocuous_$ac_func
31518
31519 /* System header to define __stub macros and hopefully few prototypes,
31520     which can conflict with char $ac_func (); below.
31521     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31522     <limits.h> exists even on freestanding compilers.  */
31523
31524 #ifdef __STDC__
31525 # include <limits.h>
31526 #else
31527 # include <assert.h>
31528 #endif
31529
31530 #undef $ac_func
31531
31532 /* Override any GCC internal prototype to avoid an error.
31533    Use char because int might match the return type of a GCC
31534    builtin and then its argument prototype would still apply.  */
31535 #ifdef __cplusplus
31536 extern "C"
31537 #endif
31538 char $ac_func ();
31539 /* The GNU C library defines this for functions which it implements
31540     to always fail with ENOSYS.  Some functions are actually named
31541     something starting with __ and the normal name is an alias.  */
31542 #if defined __stub_$ac_func || defined __stub___$ac_func
31543 choke me
31544 #endif
31545
31546 int
31547 main ()
31548 {
31549 return $ac_func ();
31550   ;
31551   return 0;
31552 }
31553 _ACEOF
31554 rm -f conftest.$ac_objext conftest$ac_exeext
31555 if { (ac_try="$ac_link"
31556 case "(($ac_try" in
31557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31558   *) ac_try_echo=$ac_try;;
31559 esac
31560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31561   (eval "$ac_link") 2>conftest.er1
31562   ac_status=$?
31563   grep -v '^ *+' conftest.er1 >conftest.err
31564   rm -f conftest.er1
31565   cat conftest.err >&5
31566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31567   (exit $ac_status); } &&
31568          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31569   { (case "(($ac_try" in
31570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31571   *) ac_try_echo=$ac_try;;
31572 esac
31573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31574   (eval "$ac_try") 2>&5
31575   ac_status=$?
31576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31577   (exit $ac_status); }; } &&
31578          { ac_try='test -s conftest$ac_exeext'
31579   { (case "(($ac_try" in
31580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31581   *) ac_try_echo=$ac_try;;
31582 esac
31583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31584   (eval "$ac_try") 2>&5
31585   ac_status=$?
31586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31587   (exit $ac_status); }; }; then
31588   eval "$as_ac_var=yes"
31589 else
31590   echo "$as_me: failed program was:" >&5
31591 sed 's/^/| /' conftest.$ac_ext >&5
31592
31593         eval "$as_ac_var=no"
31594 fi
31595
31596 rm -f core conftest.err conftest.$ac_objext \
31597       conftest$ac_exeext conftest.$ac_ext
31598 fi
31599 ac_res=`eval echo '${'$as_ac_var'}'`
31600                { echo "$as_me:$LINENO: result: $ac_res" >&5
31601 echo "${ECHO_T}$ac_res" >&6; }
31602 if test `eval echo '${'$as_ac_var'}'` = yes; then
31603
31604 cat >>confdefs.h <<_ACEOF
31605 #define CRAY_STACKSEG_END $ac_func
31606 _ACEOF
31607
31608     break
31609 fi
31610
31611   done
31612 fi
31613
31614 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31615 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
31616 if test "${ac_cv_c_stack_direction+set}" = set; then
31617   echo $ECHO_N "(cached) $ECHO_C" >&6
31618 else
31619   if test "$cross_compiling" = yes; then
31620   ac_cv_c_stack_direction=0
31621 else
31622   cat >conftest.$ac_ext <<_ACEOF
31623 /* confdefs.h.  */
31624 _ACEOF
31625 cat confdefs.h >>conftest.$ac_ext
31626 cat >>conftest.$ac_ext <<_ACEOF
31627 /* end confdefs.h.  */
31628 $ac_includes_default
31629 int
31630 find_stack_direction ()
31631 {
31632   static char *addr = 0;
31633   auto char dummy;
31634   if (addr == 0)
31635     {
31636       addr = &dummy;
31637       return find_stack_direction ();
31638     }
31639   else
31640     return (&dummy > addr) ? 1 : -1;
31641 }
31642
31643 int
31644 main ()
31645 {
31646   return find_stack_direction () < 0;
31647 }
31648 _ACEOF
31649 rm -f conftest$ac_exeext
31650 if { (ac_try="$ac_link"
31651 case "(($ac_try" in
31652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31653   *) ac_try_echo=$ac_try;;
31654 esac
31655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31656   (eval "$ac_link") 2>&5
31657   ac_status=$?
31658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31659   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31660   { (case "(($ac_try" in
31661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31662   *) ac_try_echo=$ac_try;;
31663 esac
31664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31665   (eval "$ac_try") 2>&5
31666   ac_status=$?
31667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31668   (exit $ac_status); }; }; then
31669   ac_cv_c_stack_direction=1
31670 else
31671   echo "$as_me: program exited with status $ac_status" >&5
31672 echo "$as_me: failed program was:" >&5
31673 sed 's/^/| /' conftest.$ac_ext >&5
31674
31675 ( exit $ac_status )
31676 ac_cv_c_stack_direction=-1
31677 fi
31678 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31679 fi
31680
31681
31682 fi
31683 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31684 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
31685
31686 cat >>confdefs.h <<_ACEOF
31687 #define STACK_DIRECTION $ac_cv_c_stack_direction
31688 _ACEOF
31689
31690
31691 fi
31692
31693
31694 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
31695 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
31696 if test "${ac_cv_func_rand48+set}" = set; then
31697   echo $ECHO_N "(cached) $ECHO_C" >&6
31698 else
31699   ac_ext=cpp
31700 ac_cpp='$CXXCPP $CPPFLAGS'
31701 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31702 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31703 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31704
31705    cat >conftest.$ac_ext <<_ACEOF
31706 /* confdefs.h.  */
31707 _ACEOF
31708 cat confdefs.h >>conftest.$ac_ext
31709 cat >>conftest.$ac_ext <<_ACEOF
31710 /* end confdefs.h.  */
31711 #include <stdlib.h>
31712 int
31713 main ()
31714 {
31715 srand48(0);lrand48();drand48();
31716   ;
31717   return 0;
31718 }
31719 _ACEOF
31720 rm -f conftest.$ac_objext
31721 if { (ac_try="$ac_compile"
31722 case "(($ac_try" in
31723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31724   *) ac_try_echo=$ac_try;;
31725 esac
31726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31727   (eval "$ac_compile") 2>conftest.er1
31728   ac_status=$?
31729   grep -v '^ *+' conftest.er1 >conftest.err
31730   rm -f conftest.er1
31731   cat conftest.err >&5
31732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31733   (exit $ac_status); } &&
31734          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31735   { (case "(($ac_try" in
31736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31737   *) ac_try_echo=$ac_try;;
31738 esac
31739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31740   (eval "$ac_try") 2>&5
31741   ac_status=$?
31742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31743   (exit $ac_status); }; } &&
31744          { ac_try='test -s conftest.$ac_objext'
31745   { (case "(($ac_try" in
31746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31747   *) ac_try_echo=$ac_try;;
31748 esac
31749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31750   (eval "$ac_try") 2>&5
31751   ac_status=$?
31752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31753   (exit $ac_status); }; }; then
31754   ac_cv_func_rand48=yes
31755 else
31756   echo "$as_me: failed program was:" >&5
31757 sed 's/^/| /' conftest.$ac_ext >&5
31758
31759         ac_cv_func_rand48=no
31760 fi
31761
31762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31763   ac_ext=c
31764 ac_cpp='$CPP $CPPFLAGS'
31765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31768
31769 fi
31770 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
31771 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
31772
31773 if test "$ac_cv_func_rand48" = "yes" ; then
31774
31775 cat >>confdefs.h <<\_ACEOF
31776 #define HAVE_RAND48 1
31777 _ACEOF
31778
31779 fi
31780
31781
31782 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31783 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
31784 if test "${ac_cv_cxx_namespaces+set}" = set; then
31785   echo $ECHO_N "(cached) $ECHO_C" >&6
31786 else
31787   ac_ext=cpp
31788 ac_cpp='$CXXCPP $CPPFLAGS'
31789 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31790 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31791 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31792
31793  cat >conftest.$ac_ext <<_ACEOF
31794 /* confdefs.h.  */
31795 _ACEOF
31796 cat confdefs.h >>conftest.$ac_ext
31797 cat >>conftest.$ac_ext <<_ACEOF
31798 /* end confdefs.h.  */
31799 namespace Outer { namespace Inner { int i = 0; }}
31800 int
31801 main ()
31802 {
31803 using namespace Outer::Inner; return i;
31804   ;
31805   return 0;
31806 }
31807 _ACEOF
31808 rm -f conftest.$ac_objext
31809 if { (ac_try="$ac_compile"
31810 case "(($ac_try" in
31811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31812   *) ac_try_echo=$ac_try;;
31813 esac
31814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31815   (eval "$ac_compile") 2>conftest.er1
31816   ac_status=$?
31817   grep -v '^ *+' conftest.er1 >conftest.err
31818   rm -f conftest.er1
31819   cat conftest.err >&5
31820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31821   (exit $ac_status); } &&
31822          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31823   { (case "(($ac_try" in
31824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31825   *) ac_try_echo=$ac_try;;
31826 esac
31827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31828   (eval "$ac_try") 2>&5
31829   ac_status=$?
31830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31831   (exit $ac_status); }; } &&
31832          { ac_try='test -s conftest.$ac_objext'
31833   { (case "(($ac_try" in
31834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31835   *) ac_try_echo=$ac_try;;
31836 esac
31837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31838   (eval "$ac_try") 2>&5
31839   ac_status=$?
31840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31841   (exit $ac_status); }; }; then
31842   ac_cv_cxx_namespaces=yes
31843 else
31844   echo "$as_me: failed program was:" >&5
31845 sed 's/^/| /' conftest.$ac_ext >&5
31846
31847         ac_cv_cxx_namespaces=no
31848 fi
31849
31850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31851  ac_ext=c
31852 ac_cpp='$CPP $CPPFLAGS'
31853 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31854 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31855 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31856
31857
31858 fi
31859 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
31860 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
31861 if test "$ac_cv_cxx_namespaces" = yes; then
31862
31863 cat >>confdefs.h <<\_ACEOF
31864 #define HAVE_NAMESPACES
31865 _ACEOF
31866
31867 fi
31868
31869 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
31870 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6; }
31871 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
31872   echo $ECHO_N "(cached) $ECHO_C" >&6
31873 else
31874
31875   ac_ext=cpp
31876 ac_cpp='$CXXCPP $CPPFLAGS'
31877 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31878 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31879 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31880
31881   cat >conftest.$ac_ext <<_ACEOF
31882 /* confdefs.h.  */
31883 _ACEOF
31884 cat confdefs.h >>conftest.$ac_ext
31885 cat >>conftest.$ac_ext <<_ACEOF
31886 /* end confdefs.h.  */
31887 #include <ext/hash_map>
31888 #ifdef HAVE_NAMESPACES
31889 using namespace std;
31890 #endif
31891 int
31892 main ()
31893 {
31894 hash_map<int, int> t;
31895   ;
31896   return 0;
31897 }
31898 _ACEOF
31899 rm -f conftest.$ac_objext
31900 if { (ac_try="$ac_compile"
31901 case "(($ac_try" in
31902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31903   *) ac_try_echo=$ac_try;;
31904 esac
31905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31906   (eval "$ac_compile") 2>conftest.er1
31907   ac_status=$?
31908   grep -v '^ *+' conftest.er1 >conftest.err
31909   rm -f conftest.er1
31910   cat conftest.err >&5
31911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31912   (exit $ac_status); } &&
31913          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31914   { (case "(($ac_try" in
31915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31916   *) ac_try_echo=$ac_try;;
31917 esac
31918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31919   (eval "$ac_try") 2>&5
31920   ac_status=$?
31921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31922   (exit $ac_status); }; } &&
31923          { ac_try='test -s conftest.$ac_objext'
31924   { (case "(($ac_try" in
31925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31926   *) ac_try_echo=$ac_try;;
31927 esac
31928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31929   (eval "$ac_try") 2>&5
31930   ac_status=$?
31931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31932   (exit $ac_status); }; }; then
31933   ac_cv_cxx_have_std_ext_hash_map=yes
31934 else
31935   echo "$as_me: failed program was:" >&5
31936 sed 's/^/| /' conftest.$ac_ext >&5
31937
31938         ac_cv_cxx_have_std_ext_hash_map=no
31939 fi
31940
31941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31942   ac_ext=c
31943 ac_cpp='$CPP $CPPFLAGS'
31944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31947
31948 fi
31949 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
31950 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
31951  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
31952  then
31953
31954 cat >>confdefs.h <<\_ACEOF
31955 #define HAVE_STD_EXT_HASH_MAP 1
31956 _ACEOF
31957
31958  else
31959
31960 cat >>confdefs.h <<\_ACEOF
31961 #define HAVE_STD_EXT_HASH_MAP 0
31962 _ACEOF
31963
31964  fi
31965
31966  { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
31967 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6; }
31968 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
31969   echo $ECHO_N "(cached) $ECHO_C" >&6
31970 else
31971
31972   ac_ext=cpp
31973 ac_cpp='$CXXCPP $CPPFLAGS'
31974 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31975 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31976 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31977
31978   cat >conftest.$ac_ext <<_ACEOF
31979 /* confdefs.h.  */
31980 _ACEOF
31981 cat confdefs.h >>conftest.$ac_ext
31982 cat >>conftest.$ac_ext <<_ACEOF
31983 /* end confdefs.h.  */
31984 #include <ext/hash_map>
31985 #ifdef HAVE_NAMESPACES
31986 using namespace __gnu_cxx;
31987 #endif
31988 int
31989 main ()
31990 {
31991 hash_map<int,int> t;
31992   ;
31993   return 0;
31994 }
31995 _ACEOF
31996 rm -f conftest.$ac_objext
31997 if { (ac_try="$ac_compile"
31998 case "(($ac_try" in
31999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32000   *) ac_try_echo=$ac_try;;
32001 esac
32002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32003   (eval "$ac_compile") 2>conftest.er1
32004   ac_status=$?
32005   grep -v '^ *+' conftest.er1 >conftest.err
32006   rm -f conftest.er1
32007   cat conftest.err >&5
32008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32009   (exit $ac_status); } &&
32010          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32011   { (case "(($ac_try" in
32012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32013   *) ac_try_echo=$ac_try;;
32014 esac
32015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32016   (eval "$ac_try") 2>&5
32017   ac_status=$?
32018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32019   (exit $ac_status); }; } &&
32020          { ac_try='test -s conftest.$ac_objext'
32021   { (case "(($ac_try" in
32022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32023   *) ac_try_echo=$ac_try;;
32024 esac
32025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32026   (eval "$ac_try") 2>&5
32027   ac_status=$?
32028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32029   (exit $ac_status); }; }; then
32030   ac_cv_cxx_have_gnu_ext_hash_map=yes
32031 else
32032   echo "$as_me: failed program was:" >&5
32033 sed 's/^/| /' conftest.$ac_ext >&5
32034
32035         ac_cv_cxx_have_gnu_ext_hash_map=no
32036 fi
32037
32038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32039   ac_ext=c
32040 ac_cpp='$CPP $CPPFLAGS'
32041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32044
32045 fi
32046 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
32047 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
32048  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
32049  then
32050
32051 cat >>confdefs.h <<\_ACEOF
32052 #define HAVE_GNU_EXT_HASH_MAP 1
32053 _ACEOF
32054
32055  else
32056
32057 cat >>confdefs.h <<\_ACEOF
32058 #define HAVE_GNU_EXT_HASH_MAP 0
32059 _ACEOF
32060
32061  fi
32062
32063  { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
32064 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
32065 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
32066   echo $ECHO_N "(cached) $ECHO_C" >&6
32067 else
32068
32069   ac_ext=cpp
32070 ac_cpp='$CXXCPP $CPPFLAGS'
32071 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32072 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32073 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32074
32075   cat >conftest.$ac_ext <<_ACEOF
32076 /* confdefs.h.  */
32077 _ACEOF
32078 cat confdefs.h >>conftest.$ac_ext
32079 cat >>conftest.$ac_ext <<_ACEOF
32080 /* end confdefs.h.  */
32081 #include <hash_map>
32082 int
32083 main ()
32084 {
32085 hash_map<int,int> t;
32086   ;
32087   return 0;
32088 }
32089 _ACEOF
32090 rm -f conftest.$ac_objext
32091 if { (ac_try="$ac_compile"
32092 case "(($ac_try" in
32093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32094   *) ac_try_echo=$ac_try;;
32095 esac
32096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32097   (eval "$ac_compile") 2>conftest.er1
32098   ac_status=$?
32099   grep -v '^ *+' conftest.er1 >conftest.err
32100   rm -f conftest.er1
32101   cat conftest.err >&5
32102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32103   (exit $ac_status); } &&
32104          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32105   { (case "(($ac_try" in
32106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32107   *) ac_try_echo=$ac_try;;
32108 esac
32109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32110   (eval "$ac_try") 2>&5
32111   ac_status=$?
32112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32113   (exit $ac_status); }; } &&
32114          { ac_try='test -s conftest.$ac_objext'
32115   { (case "(($ac_try" in
32116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32117   *) ac_try_echo=$ac_try;;
32118 esac
32119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32120   (eval "$ac_try") 2>&5
32121   ac_status=$?
32122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32123   (exit $ac_status); }; }; then
32124   ac_cv_cxx_have_global_hash_map=yes
32125 else
32126   echo "$as_me: failed program was:" >&5
32127 sed 's/^/| /' conftest.$ac_ext >&5
32128
32129         ac_cv_cxx_have_global_hash_map=no
32130 fi
32131
32132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32133   ac_ext=c
32134 ac_cpp='$CPP $CPPFLAGS'
32135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32138
32139 fi
32140 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
32141 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
32142  if test "$ac_cv_cxx_have_global_hash_map" = yes
32143  then
32144
32145 cat >>confdefs.h <<\_ACEOF
32146 #define HAVE_GLOBAL_HASH_MAP 1
32147 _ACEOF
32148
32149  else
32150
32151 cat >>confdefs.h <<\_ACEOF
32152 #define HAVE_GLOBAL_HASH_MAP 0
32153 _ACEOF
32154
32155  fi
32156
32157 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
32158 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6; }
32159 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
32160   echo $ECHO_N "(cached) $ECHO_C" >&6
32161 else
32162
32163   ac_ext=cpp
32164 ac_cpp='$CXXCPP $CPPFLAGS'
32165 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32166 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32167 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32168
32169   cat >conftest.$ac_ext <<_ACEOF
32170 /* confdefs.h.  */
32171 _ACEOF
32172 cat confdefs.h >>conftest.$ac_ext
32173 cat >>conftest.$ac_ext <<_ACEOF
32174 /* end confdefs.h.  */
32175 #include <ext/hash_set>
32176 #ifdef HAVE_NAMESPACES
32177 using namespace std;
32178 #endif
32179 int
32180 main ()
32181 {
32182 hash_set<int> t;
32183   ;
32184   return 0;
32185 }
32186 _ACEOF
32187 rm -f conftest.$ac_objext
32188 if { (ac_try="$ac_compile"
32189 case "(($ac_try" in
32190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32191   *) ac_try_echo=$ac_try;;
32192 esac
32193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32194   (eval "$ac_compile") 2>conftest.er1
32195   ac_status=$?
32196   grep -v '^ *+' conftest.er1 >conftest.err
32197   rm -f conftest.er1
32198   cat conftest.err >&5
32199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32200   (exit $ac_status); } &&
32201          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32202   { (case "(($ac_try" in
32203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32204   *) ac_try_echo=$ac_try;;
32205 esac
32206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32207   (eval "$ac_try") 2>&5
32208   ac_status=$?
32209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32210   (exit $ac_status); }; } &&
32211          { ac_try='test -s conftest.$ac_objext'
32212   { (case "(($ac_try" in
32213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32214   *) ac_try_echo=$ac_try;;
32215 esac
32216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32217   (eval "$ac_try") 2>&5
32218   ac_status=$?
32219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32220   (exit $ac_status); }; }; then
32221   ac_cv_cxx_have_std_ext_hash_set=yes
32222 else
32223   echo "$as_me: failed program was:" >&5
32224 sed 's/^/| /' conftest.$ac_ext >&5
32225
32226         ac_cv_cxx_have_std_ext_hash_set=no
32227 fi
32228
32229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32230   ac_ext=c
32231 ac_cpp='$CPP $CPPFLAGS'
32232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32235
32236 fi
32237 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
32238 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
32239  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
32240  then
32241
32242 cat >>confdefs.h <<\_ACEOF
32243 #define HAVE_STD_EXT_HASH_SET 1
32244 _ACEOF
32245
32246  else
32247
32248 cat >>confdefs.h <<\_ACEOF
32249 #define HAVE_STD_EXT_HASH_SET 0
32250 _ACEOF
32251
32252  fi
32253
32254  { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
32255 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6; }
32256 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
32257   echo $ECHO_N "(cached) $ECHO_C" >&6
32258 else
32259
32260   ac_ext=cpp
32261 ac_cpp='$CXXCPP $CPPFLAGS'
32262 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32263 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32264 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32265
32266   cat >conftest.$ac_ext <<_ACEOF
32267 /* confdefs.h.  */
32268 _ACEOF
32269 cat confdefs.h >>conftest.$ac_ext
32270 cat >>conftest.$ac_ext <<_ACEOF
32271 /* end confdefs.h.  */
32272 #include <ext/hash_set>
32273 #ifdef HAVE_NAMESPACES
32274 using namespace __gnu_cxx;
32275 #endif
32276 int
32277 main ()
32278 {
32279 hash_set<int> t;
32280   ;
32281   return 0;
32282 }
32283 _ACEOF
32284 rm -f conftest.$ac_objext
32285 if { (ac_try="$ac_compile"
32286 case "(($ac_try" in
32287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32288   *) ac_try_echo=$ac_try;;
32289 esac
32290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32291   (eval "$ac_compile") 2>conftest.er1
32292   ac_status=$?
32293   grep -v '^ *+' conftest.er1 >conftest.err
32294   rm -f conftest.er1
32295   cat conftest.err >&5
32296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32297   (exit $ac_status); } &&
32298          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32299   { (case "(($ac_try" in
32300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32301   *) ac_try_echo=$ac_try;;
32302 esac
32303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32304   (eval "$ac_try") 2>&5
32305   ac_status=$?
32306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32307   (exit $ac_status); }; } &&
32308          { ac_try='test -s conftest.$ac_objext'
32309   { (case "(($ac_try" in
32310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32311   *) ac_try_echo=$ac_try;;
32312 esac
32313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32314   (eval "$ac_try") 2>&5
32315   ac_status=$?
32316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32317   (exit $ac_status); }; }; then
32318   ac_cv_cxx_have_gnu_ext_hash_set=yes
32319 else
32320   echo "$as_me: failed program was:" >&5
32321 sed 's/^/| /' conftest.$ac_ext >&5
32322
32323         ac_cv_cxx_have_gnu_ext_hash_set=no
32324 fi
32325
32326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32327   ac_ext=c
32328 ac_cpp='$CPP $CPPFLAGS'
32329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32332
32333 fi
32334 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
32335 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
32336  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
32337  then
32338
32339 cat >>confdefs.h <<\_ACEOF
32340 #define HAVE_GNU_EXT_HASH_SET 1
32341 _ACEOF
32342
32343  else
32344
32345 cat >>confdefs.h <<\_ACEOF
32346 #define HAVE_GNU_EXT_HASH_SET 0
32347 _ACEOF
32348
32349  fi
32350
32351  { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
32352 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
32353 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
32354   echo $ECHO_N "(cached) $ECHO_C" >&6
32355 else
32356
32357   ac_ext=cpp
32358 ac_cpp='$CXXCPP $CPPFLAGS'
32359 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32360 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32361 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32362
32363   cat >conftest.$ac_ext <<_ACEOF
32364 /* confdefs.h.  */
32365 _ACEOF
32366 cat confdefs.h >>conftest.$ac_ext
32367 cat >>conftest.$ac_ext <<_ACEOF
32368 /* end confdefs.h.  */
32369 #include <hash_set>
32370 int
32371 main ()
32372 {
32373 hash_set<int> t; return 0;
32374   ;
32375   return 0;
32376 }
32377 _ACEOF
32378 rm -f conftest.$ac_objext
32379 if { (ac_try="$ac_compile"
32380 case "(($ac_try" in
32381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32382   *) ac_try_echo=$ac_try;;
32383 esac
32384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32385   (eval "$ac_compile") 2>conftest.er1
32386   ac_status=$?
32387   grep -v '^ *+' conftest.er1 >conftest.err
32388   rm -f conftest.er1
32389   cat conftest.err >&5
32390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32391   (exit $ac_status); } &&
32392          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32393   { (case "(($ac_try" in
32394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32395   *) ac_try_echo=$ac_try;;
32396 esac
32397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32398   (eval "$ac_try") 2>&5
32399   ac_status=$?
32400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32401   (exit $ac_status); }; } &&
32402          { ac_try='test -s conftest.$ac_objext'
32403   { (case "(($ac_try" in
32404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32405   *) ac_try_echo=$ac_try;;
32406 esac
32407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32408   (eval "$ac_try") 2>&5
32409   ac_status=$?
32410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32411   (exit $ac_status); }; }; then
32412   ac_cv_cxx_have_global_hash_set=yes
32413 else
32414   echo "$as_me: failed program was:" >&5
32415 sed 's/^/| /' conftest.$ac_ext >&5
32416
32417         ac_cv_cxx_have_global_hash_set=no
32418 fi
32419
32420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32421   ac_ext=c
32422 ac_cpp='$CPP $CPPFLAGS'
32423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32426
32427 fi
32428 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
32429 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
32430  if test "$ac_cv_cxx_have_global_hash_set" = yes
32431  then
32432
32433 cat >>confdefs.h <<\_ACEOF
32434 #define HAVE_GLOBAL_HASH_SET 1
32435 _ACEOF
32436
32437  else
32438
32439 cat >>confdefs.h <<\_ACEOF
32440 #define HAVE_GLOBAL_HASH_SET 0
32441 _ACEOF
32442
32443  fi
32444
32445 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32446 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
32447 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32448   echo $ECHO_N "(cached) $ECHO_C" >&6
32449 else
32450
32451   ac_ext=cpp
32452 ac_cpp='$CXXCPP $CPPFLAGS'
32453 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32454 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32455 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32456
32457   cat >conftest.$ac_ext <<_ACEOF
32458 /* confdefs.h.  */
32459 _ACEOF
32460 cat confdefs.h >>conftest.$ac_ext
32461 cat >>conftest.$ac_ext <<_ACEOF
32462 /* end confdefs.h.  */
32463 #include <iterator>
32464 #ifdef HAVE_NAMESPACES
32465 using namespace std;
32466 #endif
32467 int
32468 main ()
32469 {
32470 iterator<int,int,int> t; return 0;
32471   ;
32472   return 0;
32473 }
32474 _ACEOF
32475 rm -f conftest.$ac_objext
32476 if { (ac_try="$ac_compile"
32477 case "(($ac_try" in
32478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32479   *) ac_try_echo=$ac_try;;
32480 esac
32481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32482   (eval "$ac_compile") 2>conftest.er1
32483   ac_status=$?
32484   grep -v '^ *+' conftest.er1 >conftest.err
32485   rm -f conftest.er1
32486   cat conftest.err >&5
32487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32488   (exit $ac_status); } &&
32489          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32490   { (case "(($ac_try" in
32491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32492   *) ac_try_echo=$ac_try;;
32493 esac
32494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32495   (eval "$ac_try") 2>&5
32496   ac_status=$?
32497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32498   (exit $ac_status); }; } &&
32499          { ac_try='test -s conftest.$ac_objext'
32500   { (case "(($ac_try" in
32501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32502   *) ac_try_echo=$ac_try;;
32503 esac
32504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32505   (eval "$ac_try") 2>&5
32506   ac_status=$?
32507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32508   (exit $ac_status); }; }; then
32509   ac_cv_cxx_have_std_iterator=yes
32510 else
32511   echo "$as_me: failed program was:" >&5
32512 sed 's/^/| /' conftest.$ac_ext >&5
32513
32514         ac_cv_cxx_have_std_iterator=no
32515 fi
32516
32517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32518   ac_ext=c
32519 ac_cpp='$CPP $CPPFLAGS'
32520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32523
32524
32525 fi
32526 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32527 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
32528 if test "$ac_cv_cxx_have_std_iterator" = yes
32529 then
32530
32531 cat >>confdefs.h <<\_ACEOF
32532 #define HAVE_STD_ITERATOR 1
32533 _ACEOF
32534
32535 else
32536
32537 cat >>confdefs.h <<\_ACEOF
32538 #define HAVE_STD_ITERATOR 0
32539 _ACEOF
32540
32541 fi
32542
32543 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32544 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
32545 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32546   echo $ECHO_N "(cached) $ECHO_C" >&6
32547 else
32548
32549   ac_ext=cpp
32550 ac_cpp='$CXXCPP $CPPFLAGS'
32551 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32552 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32553 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32554
32555   cat >conftest.$ac_ext <<_ACEOF
32556 /* confdefs.h.  */
32557 _ACEOF
32558 cat confdefs.h >>conftest.$ac_ext
32559 cat >>conftest.$ac_ext <<_ACEOF
32560 /* end confdefs.h.  */
32561 #include <iterator>
32562 #ifdef HAVE_NAMESPACES
32563 using namespace std;
32564 #endif
32565 int
32566 main ()
32567 {
32568 bidirectional_iterator<int,int> t; return 0;
32569   ;
32570   return 0;
32571 }
32572 _ACEOF
32573 rm -f conftest.$ac_objext
32574 if { (ac_try="$ac_compile"
32575 case "(($ac_try" in
32576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32577   *) ac_try_echo=$ac_try;;
32578 esac
32579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32580   (eval "$ac_compile") 2>conftest.er1
32581   ac_status=$?
32582   grep -v '^ *+' conftest.er1 >conftest.err
32583   rm -f conftest.er1
32584   cat conftest.err >&5
32585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32586   (exit $ac_status); } &&
32587          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32588   { (case "(($ac_try" in
32589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32590   *) ac_try_echo=$ac_try;;
32591 esac
32592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32593   (eval "$ac_try") 2>&5
32594   ac_status=$?
32595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32596   (exit $ac_status); }; } &&
32597          { ac_try='test -s conftest.$ac_objext'
32598   { (case "(($ac_try" in
32599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32600   *) ac_try_echo=$ac_try;;
32601 esac
32602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32603   (eval "$ac_try") 2>&5
32604   ac_status=$?
32605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32606   (exit $ac_status); }; }; then
32607   ac_cv_cxx_have_bi_iterator=yes
32608 else
32609   echo "$as_me: failed program was:" >&5
32610 sed 's/^/| /' conftest.$ac_ext >&5
32611
32612         ac_cv_cxx_have_bi_iterator=no
32613 fi
32614
32615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32616   ac_ext=c
32617 ac_cpp='$CPP $CPPFLAGS'
32618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32621
32622
32623 fi
32624 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32625 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
32626 if test "$ac_cv_cxx_have_bi_iterator" = yes
32627 then
32628
32629 cat >>confdefs.h <<\_ACEOF
32630 #define HAVE_BI_ITERATOR 1
32631 _ACEOF
32632
32633 else
32634
32635 cat >>confdefs.h <<\_ACEOF
32636 #define HAVE_BI_ITERATOR 0
32637 _ACEOF
32638
32639 fi
32640
32641 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32642 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
32643 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32644   echo $ECHO_N "(cached) $ECHO_C" >&6
32645 else
32646
32647   ac_ext=cpp
32648 ac_cpp='$CXXCPP $CPPFLAGS'
32649 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32650 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32651 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32652
32653   cat >conftest.$ac_ext <<_ACEOF
32654 /* confdefs.h.  */
32655 _ACEOF
32656 cat confdefs.h >>conftest.$ac_ext
32657 cat >>conftest.$ac_ext <<_ACEOF
32658 /* end confdefs.h.  */
32659 #include <iterator>
32660 #ifdef HAVE_NAMESPACES
32661 using namespace std;
32662 #endif
32663 int
32664 main ()
32665 {
32666 forward_iterator<int,int> t; return 0;
32667   ;
32668   return 0;
32669 }
32670 _ACEOF
32671 rm -f conftest.$ac_objext
32672 if { (ac_try="$ac_compile"
32673 case "(($ac_try" in
32674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32675   *) ac_try_echo=$ac_try;;
32676 esac
32677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32678   (eval "$ac_compile") 2>conftest.er1
32679   ac_status=$?
32680   grep -v '^ *+' conftest.er1 >conftest.err
32681   rm -f conftest.er1
32682   cat conftest.err >&5
32683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32684   (exit $ac_status); } &&
32685          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32686   { (case "(($ac_try" in
32687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32688   *) ac_try_echo=$ac_try;;
32689 esac
32690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32691   (eval "$ac_try") 2>&5
32692   ac_status=$?
32693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32694   (exit $ac_status); }; } &&
32695          { ac_try='test -s conftest.$ac_objext'
32696   { (case "(($ac_try" in
32697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32698   *) ac_try_echo=$ac_try;;
32699 esac
32700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32701   (eval "$ac_try") 2>&5
32702   ac_status=$?
32703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32704   (exit $ac_status); }; }; then
32705   ac_cv_cxx_have_fwd_iterator=yes
32706 else
32707   echo "$as_me: failed program was:" >&5
32708 sed 's/^/| /' conftest.$ac_ext >&5
32709
32710         ac_cv_cxx_have_fwd_iterator=no
32711 fi
32712
32713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32714   ac_ext=c
32715 ac_cpp='$CPP $CPPFLAGS'
32716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32719
32720
32721 fi
32722 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32723 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
32724 if test "$ac_cv_cxx_have_fwd_iterator" = yes
32725 then
32726
32727 cat >>confdefs.h <<\_ACEOF
32728 #define HAVE_FWD_ITERATOR 1
32729 _ACEOF
32730
32731 else
32732
32733 cat >>confdefs.h <<\_ACEOF
32734 #define HAVE_FWD_ITERATOR 0
32735 _ACEOF
32736
32737 fi
32738
32739
32740 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32741 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
32742 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32743   echo $ECHO_N "(cached) $ECHO_C" >&6
32744 else
32745   ac_ext=cpp
32746 ac_cpp='$CXXCPP $CPPFLAGS'
32747 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32748 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32749 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32750
32751    cat >conftest.$ac_ext <<_ACEOF
32752 /* confdefs.h.  */
32753 _ACEOF
32754 cat confdefs.h >>conftest.$ac_ext
32755 cat >>conftest.$ac_ext <<_ACEOF
32756 /* end confdefs.h.  */
32757 #include <math.h>
32758 int
32759 main ()
32760 {
32761 float f; isnan(f);
32762   ;
32763   return 0;
32764 }
32765 _ACEOF
32766 rm -f conftest.$ac_objext
32767 if { (ac_try="$ac_compile"
32768 case "(($ac_try" in
32769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32770   *) ac_try_echo=$ac_try;;
32771 esac
32772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32773   (eval "$ac_compile") 2>conftest.er1
32774   ac_status=$?
32775   grep -v '^ *+' conftest.er1 >conftest.err
32776   rm -f conftest.er1
32777   cat conftest.err >&5
32778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32779   (exit $ac_status); } &&
32780          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32781   { (case "(($ac_try" in
32782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32783   *) ac_try_echo=$ac_try;;
32784 esac
32785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32786   (eval "$ac_try") 2>&5
32787   ac_status=$?
32788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32789   (exit $ac_status); }; } &&
32790          { ac_try='test -s conftest.$ac_objext'
32791   { (case "(($ac_try" in
32792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32793   *) ac_try_echo=$ac_try;;
32794 esac
32795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32796   (eval "$ac_try") 2>&5
32797   ac_status=$?
32798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32799   (exit $ac_status); }; }; then
32800   ac_cv_func_isnan_in_math_h=yes
32801 else
32802   echo "$as_me: failed program was:" >&5
32803 sed 's/^/| /' conftest.$ac_ext >&5
32804
32805         ac_cv_func_isnan_in_math_h=no
32806 fi
32807
32808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32809   ac_ext=c
32810 ac_cpp='$CPP $CPPFLAGS'
32811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32814
32815 fi
32816 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32817 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
32818
32819
32820 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
32821
32822 cat >>confdefs.h <<\_ACEOF
32823 #define HAVE_ISNAN_IN_MATH_H 1
32824 _ACEOF
32825
32826 fi
32827
32828 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32829 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
32830 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32831   echo $ECHO_N "(cached) $ECHO_C" >&6
32832 else
32833   ac_ext=cpp
32834 ac_cpp='$CXXCPP $CPPFLAGS'
32835 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32836 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32837 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32838
32839    cat >conftest.$ac_ext <<_ACEOF
32840 /* confdefs.h.  */
32841 _ACEOF
32842 cat confdefs.h >>conftest.$ac_ext
32843 cat >>conftest.$ac_ext <<_ACEOF
32844 /* end confdefs.h.  */
32845 #include <cmath>
32846 int
32847 main ()
32848 {
32849 float f; isnan(f);
32850   ;
32851   return 0;
32852 }
32853 _ACEOF
32854 rm -f conftest.$ac_objext
32855 if { (ac_try="$ac_compile"
32856 case "(($ac_try" in
32857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32858   *) ac_try_echo=$ac_try;;
32859 esac
32860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32861   (eval "$ac_compile") 2>conftest.er1
32862   ac_status=$?
32863   grep -v '^ *+' conftest.er1 >conftest.err
32864   rm -f conftest.er1
32865   cat conftest.err >&5
32866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32867   (exit $ac_status); } &&
32868          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32869   { (case "(($ac_try" in
32870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32871   *) ac_try_echo=$ac_try;;
32872 esac
32873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32874   (eval "$ac_try") 2>&5
32875   ac_status=$?
32876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32877   (exit $ac_status); }; } &&
32878          { ac_try='test -s conftest.$ac_objext'
32879   { (case "(($ac_try" in
32880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32881   *) ac_try_echo=$ac_try;;
32882 esac
32883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32884   (eval "$ac_try") 2>&5
32885   ac_status=$?
32886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32887   (exit $ac_status); }; }; then
32888   ac_cv_func_isnan_in_cmath=yes
32889 else
32890   echo "$as_me: failed program was:" >&5
32891 sed 's/^/| /' conftest.$ac_ext >&5
32892
32893         ac_cv_func_isnan_in_cmath=no
32894 fi
32895
32896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32897   ac_ext=c
32898 ac_cpp='$CPP $CPPFLAGS'
32899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32902
32903 fi
32904 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32905 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
32906
32907 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
32908
32909 cat >>confdefs.h <<\_ACEOF
32910 #define HAVE_ISNAN_IN_CMATH 1
32911 _ACEOF
32912
32913 fi
32914
32915 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32916 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
32917 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32918   echo $ECHO_N "(cached) $ECHO_C" >&6
32919 else
32920   ac_ext=cpp
32921 ac_cpp='$CXXCPP $CPPFLAGS'
32922 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32923 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32924 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32925
32926    cat >conftest.$ac_ext <<_ACEOF
32927 /* confdefs.h.  */
32928 _ACEOF
32929 cat confdefs.h >>conftest.$ac_ext
32930 cat >>conftest.$ac_ext <<_ACEOF
32931 /* end confdefs.h.  */
32932 #include <cmath>
32933 int
32934 main ()
32935 {
32936 float f; std::isnan(f);
32937   ;
32938   return 0;
32939 }
32940 _ACEOF
32941 rm -f conftest.$ac_objext
32942 if { (ac_try="$ac_compile"
32943 case "(($ac_try" in
32944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32945   *) ac_try_echo=$ac_try;;
32946 esac
32947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32948   (eval "$ac_compile") 2>conftest.er1
32949   ac_status=$?
32950   grep -v '^ *+' conftest.er1 >conftest.err
32951   rm -f conftest.er1
32952   cat conftest.err >&5
32953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32954   (exit $ac_status); } &&
32955          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32956   { (case "(($ac_try" in
32957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32958   *) ac_try_echo=$ac_try;;
32959 esac
32960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32961   (eval "$ac_try") 2>&5
32962   ac_status=$?
32963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32964   (exit $ac_status); }; } &&
32965          { ac_try='test -s conftest.$ac_objext'
32966   { (case "(($ac_try" in
32967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32968   *) ac_try_echo=$ac_try;;
32969 esac
32970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32971   (eval "$ac_try") 2>&5
32972   ac_status=$?
32973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32974   (exit $ac_status); }; }; then
32975   ac_cv_func_std_isnan_in_cmath=yes
32976 else
32977   echo "$as_me: failed program was:" >&5
32978 sed 's/^/| /' conftest.$ac_ext >&5
32979
32980         ac_cv_func_std_isnan_in_cmath=no
32981 fi
32982
32983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32984   ac_ext=c
32985 ac_cpp='$CPP $CPPFLAGS'
32986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32989
32990 fi
32991 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
32992 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
32993
32994 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
32995
32996 cat >>confdefs.h <<\_ACEOF
32997 #define HAVE_STD_ISNAN_IN_CMATH 1
32998 _ACEOF
32999
33000 fi
33001
33002
33003 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33004 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
33005 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33006   echo $ECHO_N "(cached) $ECHO_C" >&6
33007 else
33008   ac_ext=cpp
33009 ac_cpp='$CXXCPP $CPPFLAGS'
33010 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33011 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33012 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33013
33014    cat >conftest.$ac_ext <<_ACEOF
33015 /* confdefs.h.  */
33016 _ACEOF
33017 cat confdefs.h >>conftest.$ac_ext
33018 cat >>conftest.$ac_ext <<_ACEOF
33019 /* end confdefs.h.  */
33020 #include <math.h>
33021 int
33022 main ()
33023 {
33024 float f; isinf(f);
33025   ;
33026   return 0;
33027 }
33028 _ACEOF
33029 rm -f conftest.$ac_objext
33030 if { (ac_try="$ac_compile"
33031 case "(($ac_try" in
33032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33033   *) ac_try_echo=$ac_try;;
33034 esac
33035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33036   (eval "$ac_compile") 2>conftest.er1
33037   ac_status=$?
33038   grep -v '^ *+' conftest.er1 >conftest.err
33039   rm -f conftest.er1
33040   cat conftest.err >&5
33041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33042   (exit $ac_status); } &&
33043          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33044   { (case "(($ac_try" in
33045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33046   *) ac_try_echo=$ac_try;;
33047 esac
33048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33049   (eval "$ac_try") 2>&5
33050   ac_status=$?
33051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33052   (exit $ac_status); }; } &&
33053          { ac_try='test -s conftest.$ac_objext'
33054   { (case "(($ac_try" in
33055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33056   *) ac_try_echo=$ac_try;;
33057 esac
33058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33059   (eval "$ac_try") 2>&5
33060   ac_status=$?
33061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33062   (exit $ac_status); }; }; then
33063   ac_cv_func_isinf_in_math_h=yes
33064 else
33065   echo "$as_me: failed program was:" >&5
33066 sed 's/^/| /' conftest.$ac_ext >&5
33067
33068         ac_cv_func_isinf_in_math_h=no
33069 fi
33070
33071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33072   ac_ext=c
33073 ac_cpp='$CPP $CPPFLAGS'
33074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33077
33078 fi
33079 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33080 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
33081
33082 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
33083
33084 cat >>confdefs.h <<\_ACEOF
33085 #define HAVE_ISINF_IN_MATH_H 1
33086 _ACEOF
33087
33088 fi
33089
33090 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33091 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
33092 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33093   echo $ECHO_N "(cached) $ECHO_C" >&6
33094 else
33095   ac_ext=cpp
33096 ac_cpp='$CXXCPP $CPPFLAGS'
33097 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33098 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33099 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33100
33101    cat >conftest.$ac_ext <<_ACEOF
33102 /* confdefs.h.  */
33103 _ACEOF
33104 cat confdefs.h >>conftest.$ac_ext
33105 cat >>conftest.$ac_ext <<_ACEOF
33106 /* end confdefs.h.  */
33107 #include <cmath>
33108 int
33109 main ()
33110 {
33111 float f; isinf(f);
33112   ;
33113   return 0;
33114 }
33115 _ACEOF
33116 rm -f conftest.$ac_objext
33117 if { (ac_try="$ac_compile"
33118 case "(($ac_try" in
33119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33120   *) ac_try_echo=$ac_try;;
33121 esac
33122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33123   (eval "$ac_compile") 2>conftest.er1
33124   ac_status=$?
33125   grep -v '^ *+' conftest.er1 >conftest.err
33126   rm -f conftest.er1
33127   cat conftest.err >&5
33128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33129   (exit $ac_status); } &&
33130          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33131   { (case "(($ac_try" in
33132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33133   *) ac_try_echo=$ac_try;;
33134 esac
33135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33136   (eval "$ac_try") 2>&5
33137   ac_status=$?
33138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33139   (exit $ac_status); }; } &&
33140          { ac_try='test -s conftest.$ac_objext'
33141   { (case "(($ac_try" in
33142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33143   *) ac_try_echo=$ac_try;;
33144 esac
33145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33146   (eval "$ac_try") 2>&5
33147   ac_status=$?
33148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33149   (exit $ac_status); }; }; then
33150   ac_cv_func_isinf_in_cmath=yes
33151 else
33152   echo "$as_me: failed program was:" >&5
33153 sed 's/^/| /' conftest.$ac_ext >&5
33154
33155         ac_cv_func_isinf_in_cmath=no
33156 fi
33157
33158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33159   ac_ext=c
33160 ac_cpp='$CPP $CPPFLAGS'
33161 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33162 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33163 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33164
33165 fi
33166 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
33167 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
33168
33169 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
33170
33171 cat >>confdefs.h <<\_ACEOF
33172 #define HAVE_ISINF_IN_CMATH 1
33173 _ACEOF
33174
33175 fi
33176
33177 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33178 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
33179 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33180   echo $ECHO_N "(cached) $ECHO_C" >&6
33181 else
33182   ac_ext=cpp
33183 ac_cpp='$CXXCPP $CPPFLAGS'
33184 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33185 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33186 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33187
33188    cat >conftest.$ac_ext <<_ACEOF
33189 /* confdefs.h.  */
33190 _ACEOF
33191 cat confdefs.h >>conftest.$ac_ext
33192 cat >>conftest.$ac_ext <<_ACEOF
33193 /* end confdefs.h.  */
33194 #include <cmath>
33195 int
33196 main ()
33197 {
33198 float f; std::isinf(f)}
33199   ;
33200   return 0;
33201 }
33202 _ACEOF
33203 rm -f conftest.$ac_objext
33204 if { (ac_try="$ac_compile"
33205 case "(($ac_try" in
33206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33207   *) ac_try_echo=$ac_try;;
33208 esac
33209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33210   (eval "$ac_compile") 2>conftest.er1
33211   ac_status=$?
33212   grep -v '^ *+' conftest.er1 >conftest.err
33213   rm -f conftest.er1
33214   cat conftest.err >&5
33215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33216   (exit $ac_status); } &&
33217          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33218   { (case "(($ac_try" in
33219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33220   *) ac_try_echo=$ac_try;;
33221 esac
33222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33223   (eval "$ac_try") 2>&5
33224   ac_status=$?
33225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33226   (exit $ac_status); }; } &&
33227          { ac_try='test -s conftest.$ac_objext'
33228   { (case "(($ac_try" in
33229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33230   *) ac_try_echo=$ac_try;;
33231 esac
33232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33233   (eval "$ac_try") 2>&5
33234   ac_status=$?
33235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33236   (exit $ac_status); }; }; then
33237   ac_cv_func_std_isinf_in_cmath=yes
33238 else
33239   echo "$as_me: failed program was:" >&5
33240 sed 's/^/| /' conftest.$ac_ext >&5
33241
33242         ac_cv_func_std_isinf_in_cmath=no
33243 fi
33244
33245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33246   ac_ext=c
33247 ac_cpp='$CPP $CPPFLAGS'
33248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33251
33252 fi
33253 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
33254 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
33255
33256 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
33257
33258 cat >>confdefs.h <<\_ACEOF
33259 #define HAVE_STD_ISINF_IN_CMATH 1
33260 _ACEOF
33261
33262 fi
33263
33264 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
33265 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
33266 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
33267   echo $ECHO_N "(cached) $ECHO_C" >&6
33268 else
33269   ac_ext=cpp
33270 ac_cpp='$CXXCPP $CPPFLAGS'
33271 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33272 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33273 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33274
33275    cat >conftest.$ac_ext <<_ACEOF
33276 /* confdefs.h.  */
33277 _ACEOF
33278 cat confdefs.h >>conftest.$ac_ext
33279 cat >>conftest.$ac_ext <<_ACEOF
33280 /* end confdefs.h.  */
33281 #include <ieeefp.h>
33282 int
33283 main ()
33284 {
33285 float f; finite(f);
33286   ;
33287   return 0;
33288 }
33289 _ACEOF
33290 rm -f conftest.$ac_objext
33291 if { (ac_try="$ac_compile"
33292 case "(($ac_try" in
33293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33294   *) ac_try_echo=$ac_try;;
33295 esac
33296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33297   (eval "$ac_compile") 2>conftest.er1
33298   ac_status=$?
33299   grep -v '^ *+' conftest.er1 >conftest.err
33300   rm -f conftest.er1
33301   cat conftest.err >&5
33302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33303   (exit $ac_status); } &&
33304          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33305   { (case "(($ac_try" in
33306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33307   *) ac_try_echo=$ac_try;;
33308 esac
33309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33310   (eval "$ac_try") 2>&5
33311   ac_status=$?
33312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33313   (exit $ac_status); }; } &&
33314          { ac_try='test -s conftest.$ac_objext'
33315   { (case "(($ac_try" in
33316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33317   *) ac_try_echo=$ac_try;;
33318 esac
33319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33320   (eval "$ac_try") 2>&5
33321   ac_status=$?
33322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33323   (exit $ac_status); }; }; then
33324   ac_cv_func_finite_in_ieeefp_h=yes
33325 else
33326   echo "$as_me: failed program was:" >&5
33327 sed 's/^/| /' conftest.$ac_ext >&5
33328
33329         ac_cv_func_finite_in_ieeefp_h=no
33330 fi
33331
33332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33333   ac_ext=c
33334 ac_cpp='$CPP $CPPFLAGS'
33335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33338
33339 fi
33340 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
33341 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
33342
33343 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
33344
33345 cat >>confdefs.h <<\_ACEOF
33346 #define HAVE_FINITE_IN_IEEEFP_H 1
33347 _ACEOF
33348
33349 fi
33350
33351
33352
33353 if test "$llvm_cv_platform_type" = "Unix" ; then
33354
33355
33356 for ac_header in stdlib.h unistd.h
33357 do
33358 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33359 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33360   { echo "$as_me:$LINENO: checking for $ac_header" >&5
33361 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33362 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33363   echo $ECHO_N "(cached) $ECHO_C" >&6
33364 fi
33365 ac_res=`eval echo '${'$as_ac_Header'}'`
33366                { echo "$as_me:$LINENO: result: $ac_res" >&5
33367 echo "${ECHO_T}$ac_res" >&6; }
33368 else
33369   # Is the header compilable?
33370 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
33371 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33372 cat >conftest.$ac_ext <<_ACEOF
33373 /* confdefs.h.  */
33374 _ACEOF
33375 cat confdefs.h >>conftest.$ac_ext
33376 cat >>conftest.$ac_ext <<_ACEOF
33377 /* end confdefs.h.  */
33378 $ac_includes_default
33379 #include <$ac_header>
33380 _ACEOF
33381 rm -f conftest.$ac_objext
33382 if { (ac_try="$ac_compile"
33383 case "(($ac_try" in
33384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33385   *) ac_try_echo=$ac_try;;
33386 esac
33387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33388   (eval "$ac_compile") 2>conftest.er1
33389   ac_status=$?
33390   grep -v '^ *+' conftest.er1 >conftest.err
33391   rm -f conftest.er1
33392   cat conftest.err >&5
33393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33394   (exit $ac_status); } &&
33395          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33396   { (case "(($ac_try" in
33397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33398   *) ac_try_echo=$ac_try;;
33399 esac
33400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33401   (eval "$ac_try") 2>&5
33402   ac_status=$?
33403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33404   (exit $ac_status); }; } &&
33405          { ac_try='test -s conftest.$ac_objext'
33406   { (case "(($ac_try" in
33407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33408   *) ac_try_echo=$ac_try;;
33409 esac
33410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33411   (eval "$ac_try") 2>&5
33412   ac_status=$?
33413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33414   (exit $ac_status); }; }; then
33415   ac_header_compiler=yes
33416 else
33417   echo "$as_me: failed program was:" >&5
33418 sed 's/^/| /' conftest.$ac_ext >&5
33419
33420         ac_header_compiler=no
33421 fi
33422
33423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33424 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33425 echo "${ECHO_T}$ac_header_compiler" >&6; }
33426
33427 # Is the header present?
33428 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
33429 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33430 cat >conftest.$ac_ext <<_ACEOF
33431 /* confdefs.h.  */
33432 _ACEOF
33433 cat confdefs.h >>conftest.$ac_ext
33434 cat >>conftest.$ac_ext <<_ACEOF
33435 /* end confdefs.h.  */
33436 #include <$ac_header>
33437 _ACEOF
33438 if { (ac_try="$ac_cpp conftest.$ac_ext"
33439 case "(($ac_try" in
33440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33441   *) ac_try_echo=$ac_try;;
33442 esac
33443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33444   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33445   ac_status=$?
33446   grep -v '^ *+' conftest.er1 >conftest.err
33447   rm -f conftest.er1
33448   cat conftest.err >&5
33449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33450   (exit $ac_status); } >/dev/null; then
33451   if test -s conftest.err; then
33452     ac_cpp_err=$ac_c_preproc_warn_flag
33453     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33454   else
33455     ac_cpp_err=
33456   fi
33457 else
33458   ac_cpp_err=yes
33459 fi
33460 if test -z "$ac_cpp_err"; then
33461   ac_header_preproc=yes
33462 else
33463   echo "$as_me: failed program was:" >&5
33464 sed 's/^/| /' conftest.$ac_ext >&5
33465
33466   ac_header_preproc=no
33467 fi
33468
33469 rm -f conftest.err conftest.$ac_ext
33470 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33471 echo "${ECHO_T}$ac_header_preproc" >&6; }
33472
33473 # So?  What about this header?
33474 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33475   yes:no: )
33476     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33477 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33478     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33479 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33480     ac_header_preproc=yes
33481     ;;
33482   no:yes:* )
33483     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33484 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33485     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33486 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33487     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33488 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33489     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33490 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33491     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33492 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33493     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33494 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33495     ( cat <<\_ASBOX
33496 ## ----------------------------------- ##
33497 ## Report this to llvmbugs@cs.uiuc.edu ##
33498 ## ----------------------------------- ##
33499 _ASBOX
33500      ) | sed "s/^/$as_me: WARNING:     /" >&2
33501     ;;
33502 esac
33503 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33504 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33505 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33506   echo $ECHO_N "(cached) $ECHO_C" >&6
33507 else
33508   eval "$as_ac_Header=\$ac_header_preproc"
33509 fi
33510 ac_res=`eval echo '${'$as_ac_Header'}'`
33511                { echo "$as_me:$LINENO: result: $ac_res" >&5
33512 echo "${ECHO_T}$ac_res" >&6; }
33513
33514 fi
33515 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33516   cat >>confdefs.h <<_ACEOF
33517 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33518 _ACEOF
33519
33520 fi
33521
33522 done
33523
33524
33525 for ac_func in getpagesize
33526 do
33527 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33528 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33529 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33530 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33531   echo $ECHO_N "(cached) $ECHO_C" >&6
33532 else
33533   cat >conftest.$ac_ext <<_ACEOF
33534 /* confdefs.h.  */
33535 _ACEOF
33536 cat confdefs.h >>conftest.$ac_ext
33537 cat >>conftest.$ac_ext <<_ACEOF
33538 /* end confdefs.h.  */
33539 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33540    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33541 #define $ac_func innocuous_$ac_func
33542
33543 /* System header to define __stub macros and hopefully few prototypes,
33544     which can conflict with char $ac_func (); below.
33545     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33546     <limits.h> exists even on freestanding compilers.  */
33547
33548 #ifdef __STDC__
33549 # include <limits.h>
33550 #else
33551 # include <assert.h>
33552 #endif
33553
33554 #undef $ac_func
33555
33556 /* Override any GCC internal prototype to avoid an error.
33557    Use char because int might match the return type of a GCC
33558    builtin and then its argument prototype would still apply.  */
33559 #ifdef __cplusplus
33560 extern "C"
33561 #endif
33562 char $ac_func ();
33563 /* The GNU C library defines this for functions which it implements
33564     to always fail with ENOSYS.  Some functions are actually named
33565     something starting with __ and the normal name is an alias.  */
33566 #if defined __stub_$ac_func || defined __stub___$ac_func
33567 choke me
33568 #endif
33569
33570 int
33571 main ()
33572 {
33573 return $ac_func ();
33574   ;
33575   return 0;
33576 }
33577 _ACEOF
33578 rm -f conftest.$ac_objext conftest$ac_exeext
33579 if { (ac_try="$ac_link"
33580 case "(($ac_try" in
33581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33582   *) ac_try_echo=$ac_try;;
33583 esac
33584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33585   (eval "$ac_link") 2>conftest.er1
33586   ac_status=$?
33587   grep -v '^ *+' conftest.er1 >conftest.err
33588   rm -f conftest.er1
33589   cat conftest.err >&5
33590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33591   (exit $ac_status); } &&
33592          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33593   { (case "(($ac_try" in
33594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33595   *) ac_try_echo=$ac_try;;
33596 esac
33597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33598   (eval "$ac_try") 2>&5
33599   ac_status=$?
33600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33601   (exit $ac_status); }; } &&
33602          { ac_try='test -s conftest$ac_exeext'
33603   { (case "(($ac_try" in
33604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33605   *) ac_try_echo=$ac_try;;
33606 esac
33607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33608   (eval "$ac_try") 2>&5
33609   ac_status=$?
33610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33611   (exit $ac_status); }; }; then
33612   eval "$as_ac_var=yes"
33613 else
33614   echo "$as_me: failed program was:" >&5
33615 sed 's/^/| /' conftest.$ac_ext >&5
33616
33617         eval "$as_ac_var=no"
33618 fi
33619
33620 rm -f core conftest.err conftest.$ac_objext \
33621       conftest$ac_exeext conftest.$ac_ext
33622 fi
33623 ac_res=`eval echo '${'$as_ac_var'}'`
33624                { echo "$as_me:$LINENO: result: $ac_res" >&5
33625 echo "${ECHO_T}$ac_res" >&6; }
33626 if test `eval echo '${'$as_ac_var'}'` = yes; then
33627   cat >>confdefs.h <<_ACEOF
33628 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33629 _ACEOF
33630
33631 fi
33632 done
33633
33634 { echo "$as_me:$LINENO: checking for working mmap" >&5
33635 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
33636 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33637   echo $ECHO_N "(cached) $ECHO_C" >&6
33638 else
33639   if test "$cross_compiling" = yes; then
33640   ac_cv_func_mmap_fixed_mapped=no
33641 else
33642   cat >conftest.$ac_ext <<_ACEOF
33643 /* confdefs.h.  */
33644 _ACEOF
33645 cat confdefs.h >>conftest.$ac_ext
33646 cat >>conftest.$ac_ext <<_ACEOF
33647 /* end confdefs.h.  */
33648 $ac_includes_default
33649 /* malloc might have been renamed as rpl_malloc. */
33650 #undef malloc
33651
33652 /* Thanks to Mike Haertel and Jim Avera for this test.
33653    Here is a matrix of mmap possibilities:
33654         mmap private not fixed
33655         mmap private fixed at somewhere currently unmapped
33656         mmap private fixed at somewhere already mapped
33657         mmap shared not fixed
33658         mmap shared fixed at somewhere currently unmapped
33659         mmap shared fixed at somewhere already mapped
33660    For private mappings, we should verify that changes cannot be read()
33661    back from the file, nor mmap's back from the file at a different
33662    address.  (There have been systems where private was not correctly
33663    implemented like the infamous i386 svr4.0, and systems where the
33664    VM page cache was not coherent with the file system buffer cache
33665    like early versions of FreeBSD and possibly contemporary NetBSD.)
33666    For shared mappings, we should conversely verify that changes get
33667    propagated back to all the places they're supposed to be.
33668
33669    Grep wants private fixed already mapped.
33670    The main things grep needs to know about mmap are:
33671    * does it exist and is it safe to write into the mmap'd area
33672    * how to use it (BSD variants)  */
33673
33674 #include <fcntl.h>
33675 #include <sys/mman.h>
33676
33677 #if !STDC_HEADERS && !HAVE_STDLIB_H
33678 char *malloc ();
33679 #endif
33680
33681 /* This mess was copied from the GNU getpagesize.h.  */
33682 #if !HAVE_GETPAGESIZE
33683 /* Assume that all systems that can run configure have sys/param.h.  */
33684 # if !HAVE_SYS_PARAM_H
33685 #  define HAVE_SYS_PARAM_H 1
33686 # endif
33687
33688 # ifdef _SC_PAGESIZE
33689 #  define getpagesize() sysconf(_SC_PAGESIZE)
33690 # else /* no _SC_PAGESIZE */
33691 #  if HAVE_SYS_PARAM_H
33692 #   include <sys/param.h>
33693 #   ifdef EXEC_PAGESIZE
33694 #    define getpagesize() EXEC_PAGESIZE
33695 #   else /* no EXEC_PAGESIZE */
33696 #    ifdef NBPG
33697 #     define getpagesize() NBPG * CLSIZE
33698 #     ifndef CLSIZE
33699 #      define CLSIZE 1
33700 #     endif /* no CLSIZE */
33701 #    else /* no NBPG */
33702 #     ifdef NBPC
33703 #      define getpagesize() NBPC
33704 #     else /* no NBPC */
33705 #      ifdef PAGESIZE
33706 #       define getpagesize() PAGESIZE
33707 #      endif /* PAGESIZE */
33708 #     endif /* no NBPC */
33709 #    endif /* no NBPG */
33710 #   endif /* no EXEC_PAGESIZE */
33711 #  else /* no HAVE_SYS_PARAM_H */
33712 #   define getpagesize() 8192   /* punt totally */
33713 #  endif /* no HAVE_SYS_PARAM_H */
33714 # endif /* no _SC_PAGESIZE */
33715
33716 #endif /* no HAVE_GETPAGESIZE */
33717
33718 int
33719 main ()
33720 {
33721   char *data, *data2, *data3;
33722   int i, pagesize;
33723   int fd;
33724
33725   pagesize = getpagesize ();
33726
33727   /* First, make a file with some known garbage in it. */
33728   data = (char *) malloc (pagesize);
33729   if (!data)
33730     return 1;
33731   for (i = 0; i < pagesize; ++i)
33732     *(data + i) = rand ();
33733   umask (0);
33734   fd = creat ("conftest.mmap", 0600);
33735   if (fd < 0)
33736     return 1;
33737   if (write (fd, data, pagesize) != pagesize)
33738     return 1;
33739   close (fd);
33740
33741   /* Next, try to mmap the file at a fixed address which already has
33742      something else allocated at it.  If we can, also make sure that
33743      we see the same garbage.  */
33744   fd = open ("conftest.mmap", O_RDWR);
33745   if (fd < 0)
33746     return 1;
33747   data2 = (char *) malloc (2 * pagesize);
33748   if (!data2)
33749     return 1;
33750   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
33751   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
33752                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
33753     return 1;
33754   for (i = 0; i < pagesize; ++i)
33755     if (*(data + i) != *(data2 + i))
33756       return 1;
33757
33758   /* Finally, make sure that changes to the mapped area do not
33759      percolate back to the file as seen by read().  (This is a bug on
33760      some variants of i386 svr4.0.)  */
33761   for (i = 0; i < pagesize; ++i)
33762     *(data2 + i) = *(data2 + i) + 1;
33763   data3 = (char *) malloc (pagesize);
33764   if (!data3)
33765     return 1;
33766   if (read (fd, data3, pagesize) != pagesize)
33767     return 1;
33768   for (i = 0; i < pagesize; ++i)
33769     if (*(data + i) != *(data3 + i))
33770       return 1;
33771   close (fd);
33772   return 0;
33773 }
33774 _ACEOF
33775 rm -f conftest$ac_exeext
33776 if { (ac_try="$ac_link"
33777 case "(($ac_try" in
33778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33779   *) ac_try_echo=$ac_try;;
33780 esac
33781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33782   (eval "$ac_link") 2>&5
33783   ac_status=$?
33784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33785   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33786   { (case "(($ac_try" in
33787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33788   *) ac_try_echo=$ac_try;;
33789 esac
33790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33791   (eval "$ac_try") 2>&5
33792   ac_status=$?
33793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33794   (exit $ac_status); }; }; then
33795   ac_cv_func_mmap_fixed_mapped=yes
33796 else
33797   echo "$as_me: program exited with status $ac_status" >&5
33798 echo "$as_me: failed program was:" >&5
33799 sed 's/^/| /' conftest.$ac_ext >&5
33800
33801 ( exit $ac_status )
33802 ac_cv_func_mmap_fixed_mapped=no
33803 fi
33804 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33805 fi
33806
33807
33808 fi
33809 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33810 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
33811 if test $ac_cv_func_mmap_fixed_mapped = yes; then
33812
33813 cat >>confdefs.h <<\_ACEOF
33814 #define HAVE_MMAP 1
33815 _ACEOF
33816
33817 fi
33818 rm -f conftest.mmap
33819
33820   { echo "$as_me:$LINENO: checking for mmap of files" >&5
33821 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
33822 if test "${ac_cv_func_mmap_file+set}" = set; then
33823   echo $ECHO_N "(cached) $ECHO_C" >&6
33824 else
33825    ac_ext=c
33826 ac_cpp='$CPP $CPPFLAGS'
33827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33830
33831   if test "$cross_compiling" = yes; then
33832   ac_cv_func_mmap_file=no
33833 else
33834   cat >conftest.$ac_ext <<_ACEOF
33835
33836     /* confdefs.h.  */
33837 _ACEOF
33838 cat confdefs.h >>conftest.$ac_ext
33839 cat >>conftest.$ac_ext <<_ACEOF
33840 /* end confdefs.h.  */
33841
33842 #include <sys/types.h>
33843 #include <sys/mman.h>
33844 #include <fcntl.h>
33845
33846 int
33847 main ()
33848 {
33849
33850   int fd;
33851   fd = creat ("foo",0777);
33852   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33853   unlink ("foo");
33854   return (fd != (int) MAP_FAILED);
33855   ;
33856   return 0;
33857 }
33858 _ACEOF
33859 rm -f conftest$ac_exeext
33860 if { (ac_try="$ac_link"
33861 case "(($ac_try" in
33862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33863   *) ac_try_echo=$ac_try;;
33864 esac
33865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33866   (eval "$ac_link") 2>&5
33867   ac_status=$?
33868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33869   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33870   { (case "(($ac_try" in
33871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33872   *) ac_try_echo=$ac_try;;
33873 esac
33874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33875   (eval "$ac_try") 2>&5
33876   ac_status=$?
33877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33878   (exit $ac_status); }; }; then
33879   ac_cv_func_mmap_file=yes
33880 else
33881   echo "$as_me: program exited with status $ac_status" >&5
33882 echo "$as_me: failed program was:" >&5
33883 sed 's/^/| /' conftest.$ac_ext >&5
33884
33885 ( exit $ac_status )
33886 ac_cv_func_mmap_file=no
33887 fi
33888 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33889 fi
33890
33891
33892   ac_ext=c
33893 ac_cpp='$CPP $CPPFLAGS'
33894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33897
33898
33899 fi
33900 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33901 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
33902 if test "$ac_cv_func_mmap_file" = yes; then
33903
33904 cat >>confdefs.h <<\_ACEOF
33905 #define HAVE_MMAP_FILE
33906 _ACEOF
33907
33908    MMAP_FILE=yes
33909
33910 fi
33911
33912   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
33913 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
33914 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33915   echo $ECHO_N "(cached) $ECHO_C" >&6
33916 else
33917   if test "$llvm_cv_os_type" = "Interix" ; then
33918    ac_cv_need_dev_zero_for_mmap=yes
33919  else
33920    ac_cv_need_dev_zero_for_mmap=no
33921  fi
33922
33923 fi
33924 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33925 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
33926 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33927
33928 cat >>confdefs.h <<\_ACEOF
33929 #define NEED_DEV_ZERO_FOR_MMAP 1
33930 _ACEOF
33931
33932 fi
33933
33934   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33935   then
33936     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
33937 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
33938   fi
33939   if test "$ac_cv_func_mmap_file" = "no"
33940   then
33941     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
33942 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
33943   fi
33944 fi
33945
33946
33947
33948 for ac_func in __dso_handle
33949 do
33950 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33951 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33952 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33953 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33954   echo $ECHO_N "(cached) $ECHO_C" >&6
33955 else
33956   cat >conftest.$ac_ext <<_ACEOF
33957 /* confdefs.h.  */
33958 _ACEOF
33959 cat confdefs.h >>conftest.$ac_ext
33960 cat >>conftest.$ac_ext <<_ACEOF
33961 /* end confdefs.h.  */
33962 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33963    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33964 #define $ac_func innocuous_$ac_func
33965
33966 /* System header to define __stub macros and hopefully few prototypes,
33967     which can conflict with char $ac_func (); below.
33968     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33969     <limits.h> exists even on freestanding compilers.  */
33970
33971 #ifdef __STDC__
33972 # include <limits.h>
33973 #else
33974 # include <assert.h>
33975 #endif
33976
33977 #undef $ac_func
33978
33979 /* Override any GCC internal prototype to avoid an error.
33980    Use char because int might match the return type of a GCC
33981    builtin and then its argument prototype would still apply.  */
33982 #ifdef __cplusplus
33983 extern "C"
33984 #endif
33985 char $ac_func ();
33986 /* The GNU C library defines this for functions which it implements
33987     to always fail with ENOSYS.  Some functions are actually named
33988     something starting with __ and the normal name is an alias.  */
33989 #if defined __stub_$ac_func || defined __stub___$ac_func
33990 choke me
33991 #endif
33992
33993 int
33994 main ()
33995 {
33996 return $ac_func ();
33997   ;
33998   return 0;
33999 }
34000 _ACEOF
34001 rm -f conftest.$ac_objext conftest$ac_exeext
34002 if { (ac_try="$ac_link"
34003 case "(($ac_try" in
34004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34005   *) ac_try_echo=$ac_try;;
34006 esac
34007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34008   (eval "$ac_link") 2>conftest.er1
34009   ac_status=$?
34010   grep -v '^ *+' conftest.er1 >conftest.err
34011   rm -f conftest.er1
34012   cat conftest.err >&5
34013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34014   (exit $ac_status); } &&
34015          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34016   { (case "(($ac_try" in
34017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34018   *) ac_try_echo=$ac_try;;
34019 esac
34020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34021   (eval "$ac_try") 2>&5
34022   ac_status=$?
34023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34024   (exit $ac_status); }; } &&
34025          { ac_try='test -s conftest$ac_exeext'
34026   { (case "(($ac_try" in
34027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34028   *) ac_try_echo=$ac_try;;
34029 esac
34030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34031   (eval "$ac_try") 2>&5
34032   ac_status=$?
34033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34034   (exit $ac_status); }; }; then
34035   eval "$as_ac_var=yes"
34036 else
34037   echo "$as_me: failed program was:" >&5
34038 sed 's/^/| /' conftest.$ac_ext >&5
34039
34040         eval "$as_ac_var=no"
34041 fi
34042
34043 rm -f core conftest.err conftest.$ac_objext \
34044       conftest$ac_exeext conftest.$ac_ext
34045 fi
34046 ac_res=`eval echo '${'$as_ac_var'}'`
34047                { echo "$as_me:$LINENO: result: $ac_res" >&5
34048 echo "${ECHO_T}$ac_res" >&6; }
34049 if test `eval echo '${'$as_ac_var'}'` = yes; then
34050   cat >>confdefs.h <<_ACEOF
34051 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34052 _ACEOF
34053
34054 fi
34055 done
34056
34057
34058 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
34059 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
34060 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
34061   echo $ECHO_N "(cached) $ECHO_C" >&6
34062 else
34063   llvm_cv_llvmgcc_sanity="no"
34064 if test -x "$LLVMGCC" ; then
34065   cp /dev/null conftest.c
34066   "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
34067       grep 'target datalayout =' > /dev/null 2>&1
34068   if test $? -eq 0 ; then
34069     llvm_cv_llvmgcc_sanity="yes"
34070   fi
34071   rm conftest.c
34072 fi
34073 fi
34074 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
34075 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
34076
34077 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
34078   { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
34079 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
34080   llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
34081   LLVMCC1=$llvmcc1path
34082
34083   llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
34084   LLVMCC1PLUS=$llvmcc1pluspath
34085
34086   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
34087   LLVMGCCDIR=$llvmgccdir
34088
34089   llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
34090   LLVMGCCLIBEXEC=$llvmgcclibexec
34091
34092   llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
34093   llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
34094   LLVMGCC_VERSION=$llvmgccversion
34095
34096   LLVMGCC_MAJVERS=$llvmgccmajvers
34097
34098   llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ -]*\).*/\1/'`
34099   LLVMGCC_LANGS=$llvmgcclangs
34100
34101   { echo "$as_me:$LINENO: result: ok" >&5
34102 echo "${ECHO_T}ok" >&6; }
34103 fi
34104
34105 SHLIBEXT=$libltdl_cv_shlibext
34106
34107
34108 # Translate the various configuration directories and other basic
34109 # information into substitutions that will end up in Makefile.config.in
34110 # that these configured values can be used by the makefiles
34111 if test "${prefix}" = "NONE" ; then
34112   prefix="/usr/local"
34113 fi
34114 eval LLVM_PREFIX="${prefix}";
34115 eval LLVM_BINDIR="${prefix}/bin";
34116 eval LLVM_LIBDIR="${prefix}/lib";
34117 eval LLVM_DATADIR="${prefix}/share/llvm";
34118 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
34119 eval LLVM_ETCDIR="${prefix}/etc/llvm";
34120 eval LLVM_INCLUDEDIR="${prefix}/include";
34121 eval LLVM_INFODIR="${prefix}/info";
34122 eval LLVM_MANDIR="${prefix}/man";
34123 LLVM_CONFIGTIME=`date`
34124
34125
34126
34127
34128
34129
34130
34131
34132
34133
34134
34135 # Place the various directores into the config.h file as #defines so that we
34136 # can know about the installation paths within LLVM.
34137
34138 cat >>confdefs.h <<_ACEOF
34139 #define LLVM_PREFIX "$LLVM_PREFIX"
34140 _ACEOF
34141
34142
34143 cat >>confdefs.h <<_ACEOF
34144 #define LLVM_BINDIR "$LLVM_BINDIR"
34145 _ACEOF
34146
34147
34148 cat >>confdefs.h <<_ACEOF
34149 #define LLVM_LIBDIR "$LLVM_LIBDIR"
34150 _ACEOF
34151
34152
34153 cat >>confdefs.h <<_ACEOF
34154 #define LLVM_DATADIR "$LLVM_DATADIR"
34155 _ACEOF
34156
34157
34158 cat >>confdefs.h <<_ACEOF
34159 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
34160 _ACEOF
34161
34162
34163 cat >>confdefs.h <<_ACEOF
34164 #define LLVM_ETCDIR "$LLVM_ETCDIR"
34165 _ACEOF
34166
34167
34168 cat >>confdefs.h <<_ACEOF
34169 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
34170 _ACEOF
34171
34172
34173 cat >>confdefs.h <<_ACEOF
34174 #define LLVM_INFODIR "$LLVM_INFODIR"
34175 _ACEOF
34176
34177
34178 cat >>confdefs.h <<_ACEOF
34179 #define LLVM_MANDIR "$LLVM_MANDIR"
34180 _ACEOF
34181
34182
34183 cat >>confdefs.h <<_ACEOF
34184 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
34185 _ACEOF
34186
34187
34188 cat >>confdefs.h <<_ACEOF
34189 #define LLVM_HOSTTRIPLE "$host"
34190 _ACEOF
34191
34192
34193 # Determine which bindings to build.
34194 if test "$BINDINGS_TO_BUILD" = auto ; then
34195   BINDINGS_TO_BUILD=""
34196   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
34197     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
34198   fi
34199 fi
34200 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
34201
34202
34203 # This isn't really configurey, but it avoids having to repeat the list in
34204 # other files.
34205 ALL_BINDINGS=ocaml
34206
34207
34208 # Do any work necessary to ensure that bindings have what they need.
34209 binding_prereqs_failed=0
34210 for a_binding in $BINDINGS_TO_BUILD ; do
34211   case "$a_binding" in
34212   ocaml)
34213     if test "x$OCAMLC" = x ; then
34214       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
34215 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
34216       binding_prereqs_failed=1
34217     fi
34218     if test "x$OCAMLDEP" = x ; then
34219       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
34220 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
34221       binding_prereqs_failed=1
34222     fi
34223     if test "x$OCAMLOPT" = x ; then
34224       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
34225 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
34226           fi
34227     if test "x$with_ocaml_libdir" != xauto ; then
34228       OCAML_LIBDIR=$with_ocaml_libdir
34229
34230     else
34231       ocaml_stdlib="`"$OCAMLC" -where`"
34232       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
34233       then
34234         # ocaml stdlib is beneath our prefix; use stdlib
34235         OCAML_LIBDIR=$ocaml_stdlib
34236
34237       else
34238         # ocaml stdlib is outside our prefix; use libdir/ocaml
34239         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
34240
34241       fi
34242     fi
34243     ;;
34244   esac
34245 done
34246 if test "$binding_prereqs_failed" = 1 ; then
34247   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
34248 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
34249    { (exit 1); exit 1; }; }
34250 fi
34251
34252
34253
34254 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
34255
34256 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
34257
34258 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
34259
34260 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
34261
34262 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
34263
34264
34265 ac_config_files="$ac_config_files Makefile.config"
34266
34267
34268 ac_config_files="$ac_config_files llvm.spec"
34269
34270
34271 ac_config_files="$ac_config_files docs/doxygen.cfg"
34272
34273
34274 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
34275
34276
34277 ac_config_commands="$ac_config_commands setup"
34278
34279 ac_config_commands="$ac_config_commands Makefile"
34280
34281
34282 ac_config_commands="$ac_config_commands Makefile.common"
34283
34284
34285 ac_config_commands="$ac_config_commands examples/Makefile"
34286
34287
34288 ac_config_commands="$ac_config_commands lib/Makefile"
34289
34290
34291 ac_config_commands="$ac_config_commands runtime/Makefile"
34292
34293
34294 ac_config_commands="$ac_config_commands test/Makefile"
34295
34296
34297 ac_config_commands="$ac_config_commands test/Makefile.tests"
34298
34299
34300 ac_config_commands="$ac_config_commands tools/Makefile"
34301
34302
34303 ac_config_commands="$ac_config_commands utils/Makefile"
34304
34305
34306 ac_config_commands="$ac_config_commands projects/Makefile"
34307
34308
34309 ac_config_commands="$ac_config_commands bindings/Makefile"
34310
34311
34312 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
34313
34314
34315
34316 cat >confcache <<\_ACEOF
34317 # This file is a shell script that caches the results of configure
34318 # tests run on this system so they can be shared between configure
34319 # scripts and configure runs, see configure's option --config-cache.
34320 # It is not useful on other systems.  If it contains results you don't
34321 # want to keep, you may remove or edit it.
34322 #
34323 # config.status only pays attention to the cache file if you give it
34324 # the --recheck option to rerun configure.
34325 #
34326 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34327 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34328 # following values.
34329
34330 _ACEOF
34331
34332 # The following way of writing the cache mishandles newlines in values,
34333 # but we know of no workaround that is simple, portable, and efficient.
34334 # So, we kill variables containing newlines.
34335 # Ultrix sh set writes to stderr and can't be redirected directly,
34336 # and sets the high bit in the cache file unless we assign to the vars.
34337 (
34338   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34339     eval ac_val=\$$ac_var
34340     case $ac_val in #(
34341     *${as_nl}*)
34342       case $ac_var in #(
34343       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34344 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34345       esac
34346       case $ac_var in #(
34347       _ | IFS | as_nl) ;; #(
34348       *) $as_unset $ac_var ;;
34349       esac ;;
34350     esac
34351   done
34352
34353   (set) 2>&1 |
34354     case $as_nl`(ac_space=' '; set) 2>&1` in #(
34355     *${as_nl}ac_space=\ *)
34356       # `set' does not quote correctly, so add quotes (double-quote
34357       # substitution turns \\\\ into \\, and sed turns \\ into \).
34358       sed -n \
34359         "s/'/'\\\\''/g;
34360           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34361       ;; #(
34362     *)
34363       # `set' quotes correctly as required by POSIX, so do not add quotes.
34364       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34365       ;;
34366     esac |
34367     sort
34368 ) |
34369   sed '
34370      /^ac_cv_env_/b end
34371      t clear
34372      :clear
34373      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34374      t end
34375      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34376      :end' >>confcache
34377 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34378   if test -w "$cache_file"; then
34379     test "x$cache_file" != "x/dev/null" &&
34380       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34381 echo "$as_me: updating cache $cache_file" >&6;}
34382     cat confcache >$cache_file
34383   else
34384     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34385 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34386   fi
34387 fi
34388 rm -f confcache
34389
34390 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34391 # Let make expand exec_prefix.
34392 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34393
34394 DEFS=-DHAVE_CONFIG_H
34395
34396 ac_libobjs=
34397 ac_ltlibobjs=
34398 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34399   # 1. Remove the extension, and $U if already installed.
34400   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34401   ac_i=`echo "$ac_i" | sed "$ac_script"`
34402   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
34403   #    will be set to the directory where LIBOBJS objects are built.
34404   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34405   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34406 done
34407 LIBOBJS=$ac_libobjs
34408
34409 LTLIBOBJS=$ac_ltlibobjs
34410
34411
34412 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34413   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34414 Usually this means the macro was only invoked conditionally." >&5
34415 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34416 Usually this means the macro was only invoked conditionally." >&2;}
34417    { (exit 1); exit 1; }; }
34418 fi
34419 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34420   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34421 Usually this means the macro was only invoked conditionally." >&5
34422 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34423 Usually this means the macro was only invoked conditionally." >&2;}
34424    { (exit 1); exit 1; }; }
34425 fi
34426
34427 : ${CONFIG_STATUS=./config.status}
34428 ac_clean_files_save=$ac_clean_files
34429 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34430 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34431 echo "$as_me: creating $CONFIG_STATUS" >&6;}
34432 cat >$CONFIG_STATUS <<_ACEOF
34433 #! $SHELL
34434 # Generated by $as_me.
34435 # Run this file to recreate the current configuration.
34436 # Compiler output produced by configure, useful for debugging
34437 # configure, is in config.log if it exists.
34438
34439 debug=false
34440 ac_cs_recheck=false
34441 ac_cs_silent=false
34442 SHELL=\${CONFIG_SHELL-$SHELL}
34443 _ACEOF
34444
34445 cat >>$CONFIG_STATUS <<\_ACEOF
34446 ## --------------------- ##
34447 ## M4sh Initialization.  ##
34448 ## --------------------- ##
34449
34450 # Be Bourne compatible
34451 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34452   emulate sh
34453   NULLCMD=:
34454   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34455   # is contrary to our usage.  Disable this feature.
34456   alias -g '${1+"$@"}'='"$@"'
34457   setopt NO_GLOB_SUBST
34458 else
34459   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
34460 fi
34461 BIN_SH=xpg4; export BIN_SH # for Tru64
34462 DUALCASE=1; export DUALCASE # for MKS sh
34463
34464
34465 # PATH needs CR
34466 # Avoid depending upon Character Ranges.
34467 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34468 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34469 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34470 as_cr_digits='0123456789'
34471 as_cr_alnum=$as_cr_Letters$as_cr_digits
34472
34473 # The user is always right.
34474 if test "${PATH_SEPARATOR+set}" != set; then
34475   echo "#! /bin/sh" >conf$$.sh
34476   echo  "exit 0"   >>conf$$.sh
34477   chmod +x conf$$.sh
34478   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34479     PATH_SEPARATOR=';'
34480   else
34481     PATH_SEPARATOR=:
34482   fi
34483   rm -f conf$$.sh
34484 fi
34485
34486 # Support unset when possible.
34487 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34488   as_unset=unset
34489 else
34490   as_unset=false
34491 fi
34492
34493
34494 # IFS
34495 # We need space, tab and new line, in precisely that order.  Quoting is
34496 # there to prevent editors from complaining about space-tab.
34497 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34498 # splitting by setting IFS to empty value.)
34499 as_nl='
34500 '
34501 IFS=" ""        $as_nl"
34502
34503 # Find who we are.  Look in the path if we contain no directory separator.
34504 case $0 in
34505   *[\\/]* ) as_myself=$0 ;;
34506   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34507 for as_dir in $PATH
34508 do
34509   IFS=$as_save_IFS
34510   test -z "$as_dir" && as_dir=.
34511   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34512 done
34513 IFS=$as_save_IFS
34514
34515      ;;
34516 esac
34517 # We did not find ourselves, most probably we were run as `sh COMMAND'
34518 # in which case we are not to be found in the path.
34519 if test "x$as_myself" = x; then
34520   as_myself=$0
34521 fi
34522 if test ! -f "$as_myself"; then
34523   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34524   { (exit 1); exit 1; }
34525 fi
34526
34527 # Work around bugs in pre-3.0 UWIN ksh.
34528 for as_var in ENV MAIL MAILPATH
34529 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34530 done
34531 PS1='$ '
34532 PS2='> '
34533 PS4='+ '
34534
34535 # NLS nuisances.
34536 for as_var in \
34537   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34538   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34539   LC_TELEPHONE LC_TIME
34540 do
34541   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34542     eval $as_var=C; export $as_var
34543   else
34544     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34545   fi
34546 done
34547
34548 # Required to use basename.
34549 if expr a : '\(a\)' >/dev/null 2>&1 &&
34550    test "X`expr 00001 : '.*\(...\)'`" = X001; then
34551   as_expr=expr
34552 else
34553   as_expr=false
34554 fi
34555
34556 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34557   as_basename=basename
34558 else
34559   as_basename=false
34560 fi
34561
34562
34563 # Name of the executable.
34564 as_me=`$as_basename -- "$0" ||
34565 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34566          X"$0" : 'X\(//\)$' \| \
34567          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34568 echo X/"$0" |
34569     sed '/^.*\/\([^/][^/]*\)\/*$/{
34570             s//\1/
34571             q
34572           }
34573           /^X\/\(\/\/\)$/{
34574             s//\1/
34575             q
34576           }
34577           /^X\/\(\/\).*/{
34578             s//\1/
34579             q
34580           }
34581           s/.*/./; q'`
34582
34583 # CDPATH.
34584 $as_unset CDPATH
34585
34586
34587
34588   as_lineno_1=$LINENO
34589   as_lineno_2=$LINENO
34590   test "x$as_lineno_1" != "x$as_lineno_2" &&
34591   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
34592
34593   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34594   # uniformly replaced by the line number.  The first 'sed' inserts a
34595   # line-number line after each line using $LINENO; the second 'sed'
34596   # does the real work.  The second script uses 'N' to pair each
34597   # line-number line with the line containing $LINENO, and appends
34598   # trailing '-' during substitution so that $LINENO is not a special
34599   # case at line end.
34600   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34601   # scripts with optimization help from Paolo Bonzini.  Blame Lee
34602   # E. McMahon (1931-1989) for sed's syntax.  :-)
34603   sed -n '
34604     p
34605     /[$]LINENO/=
34606   ' <$as_myself |
34607     sed '
34608       s/[$]LINENO.*/&-/
34609       t lineno
34610       b
34611       :lineno
34612       N
34613       :loop
34614       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34615       t loop
34616       s/-\n.*//
34617     ' >$as_me.lineno &&
34618   chmod +x "$as_me.lineno" ||
34619     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34620    { (exit 1); exit 1; }; }
34621
34622   # Don't try to exec as it changes $[0], causing all sort of problems
34623   # (the dirname of $[0] is not the place where we might find the
34624   # original and so on.  Autoconf is especially sensitive to this).
34625   . "./$as_me.lineno"
34626   # Exit status is that of the last command.
34627   exit
34628 }
34629
34630
34631 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34632   as_dirname=dirname
34633 else
34634   as_dirname=false
34635 fi
34636
34637 ECHO_C= ECHO_N= ECHO_T=
34638 case `echo -n x` in
34639 -n*)
34640   case `echo 'x\c'` in
34641   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
34642   *)   ECHO_C='\c';;
34643   esac;;
34644 *)
34645   ECHO_N='-n';;
34646 esac
34647
34648 if expr a : '\(a\)' >/dev/null 2>&1 &&
34649    test "X`expr 00001 : '.*\(...\)'`" = X001; then
34650   as_expr=expr
34651 else
34652   as_expr=false
34653 fi
34654
34655 rm -f conf$$ conf$$.exe conf$$.file
34656 if test -d conf$$.dir; then
34657   rm -f conf$$.dir/conf$$.file
34658 else
34659   rm -f conf$$.dir
34660   mkdir conf$$.dir
34661 fi
34662 echo >conf$$.file
34663 if ln -s conf$$.file conf$$ 2>/dev/null; then
34664   as_ln_s='ln -s'
34665   # ... but there are two gotchas:
34666   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34667   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34668   # In both cases, we have to default to `cp -p'.
34669   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34670     as_ln_s='cp -p'
34671 elif ln conf$$.file conf$$ 2>/dev/null; then
34672   as_ln_s=ln
34673 else
34674   as_ln_s='cp -p'
34675 fi
34676 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34677 rmdir conf$$.dir 2>/dev/null
34678
34679 if mkdir -p . 2>/dev/null; then
34680   as_mkdir_p=:
34681 else
34682   test -d ./-p && rmdir ./-p
34683   as_mkdir_p=false
34684 fi
34685
34686 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
34687 # systems may use methods other than mode bits to determine executability.
34688 cat >conf$$.file <<_ASEOF
34689 #! /bin/sh
34690 exit 0
34691 _ASEOF
34692 chmod +x conf$$.file
34693 if test -x conf$$.file >/dev/null 2>&1; then
34694   as_executable_p="test -x"
34695 else
34696   as_executable_p=:
34697 fi
34698 rm -f conf$$.file
34699
34700 # Sed expression to map a string onto a valid CPP name.
34701 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34702
34703 # Sed expression to map a string onto a valid variable name.
34704 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34705
34706
34707 exec 6>&1
34708
34709 # Save the log message, to keep $[0] and so on meaningful, and to
34710 # report actual input values of CONFIG_FILES etc. instead of their
34711 # values after options handling.
34712 ac_log="
34713 This file was extended by llvm $as_me 2.3svn, which was
34714 generated by GNU Autoconf 2.60.  Invocation command line was
34715
34716   CONFIG_FILES    = $CONFIG_FILES
34717   CONFIG_HEADERS  = $CONFIG_HEADERS
34718   CONFIG_LINKS    = $CONFIG_LINKS
34719   CONFIG_COMMANDS = $CONFIG_COMMANDS
34720   $ $0 $@
34721
34722 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34723 "
34724
34725 _ACEOF
34726
34727 cat >>$CONFIG_STATUS <<_ACEOF
34728 # Files that config.status was made for.
34729 config_files="$ac_config_files"
34730 config_headers="$ac_config_headers"
34731 config_commands="$ac_config_commands"
34732
34733 _ACEOF
34734
34735 cat >>$CONFIG_STATUS <<\_ACEOF
34736 ac_cs_usage="\
34737 \`$as_me' instantiates files from templates according to the
34738 current configuration.
34739
34740 Usage: $0 [OPTIONS] [FILE]...
34741
34742   -h, --help       print this help, then exit
34743   -V, --version    print version number, then exit
34744   -q, --quiet      do not print progress messages
34745   -d, --debug      don't remove temporary files
34746       --recheck    update $as_me by reconfiguring in the same conditions
34747   --file=FILE[:TEMPLATE]
34748                    instantiate the configuration file FILE
34749   --header=FILE[:TEMPLATE]
34750                    instantiate the configuration header FILE
34751
34752 Configuration files:
34753 $config_files
34754
34755 Configuration headers:
34756 $config_headers
34757
34758 Configuration commands:
34759 $config_commands
34760
34761 Report bugs to <bug-autoconf@gnu.org>."
34762
34763 _ACEOF
34764 cat >>$CONFIG_STATUS <<_ACEOF
34765 ac_cs_version="\\
34766 llvm config.status 2.3svn
34767 configured by $0, generated by GNU Autoconf 2.60,
34768   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
34769
34770 Copyright (C) 2006 Free Software Foundation, Inc.
34771 This config.status script is free software; the Free Software Foundation
34772 gives unlimited permission to copy, distribute and modify it."
34773
34774 ac_pwd='$ac_pwd'
34775 srcdir='$srcdir'
34776 INSTALL='$INSTALL'
34777 _ACEOF
34778
34779 cat >>$CONFIG_STATUS <<\_ACEOF
34780 # If no file are specified by the user, then we need to provide default
34781 # value.  By we need to know if files were specified by the user.
34782 ac_need_defaults=:
34783 while test $# != 0
34784 do
34785   case $1 in
34786   --*=*)
34787     ac_option=`expr "X$1" : 'X\([^=]*\)='`
34788     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34789     ac_shift=:
34790     ;;
34791   *)
34792     ac_option=$1
34793     ac_optarg=$2
34794     ac_shift=shift
34795     ;;
34796   esac
34797
34798   case $ac_option in
34799   # Handling of the options.
34800   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34801     ac_cs_recheck=: ;;
34802   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34803     echo "$ac_cs_version"; exit ;;
34804   --debug | --debu | --deb | --de | --d | -d )
34805     debug=: ;;
34806   --file | --fil | --fi | --f )
34807     $ac_shift
34808     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
34809     ac_need_defaults=false;;
34810   --header | --heade | --head | --hea )
34811     $ac_shift
34812     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
34813     ac_need_defaults=false;;
34814   --he | --h)
34815     # Conflict between --help and --header
34816     { echo "$as_me: error: ambiguous option: $1
34817 Try \`$0 --help' for more information." >&2
34818    { (exit 1); exit 1; }; };;
34819   --help | --hel | -h )
34820     echo "$ac_cs_usage"; exit ;;
34821   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34822   | -silent | --silent | --silen | --sile | --sil | --si | --s)
34823     ac_cs_silent=: ;;
34824
34825   # This is an error.
34826   -*) { echo "$as_me: error: unrecognized option: $1
34827 Try \`$0 --help' for more information." >&2
34828    { (exit 1); exit 1; }; } ;;
34829
34830   *) ac_config_targets="$ac_config_targets $1"
34831      ac_need_defaults=false ;;
34832
34833   esac
34834   shift
34835 done
34836
34837 ac_configure_extra_args=
34838
34839 if $ac_cs_silent; then
34840   exec 6>/dev/null
34841   ac_configure_extra_args="$ac_configure_extra_args --silent"
34842 fi
34843
34844 _ACEOF
34845 cat >>$CONFIG_STATUS <<_ACEOF
34846 if \$ac_cs_recheck; then
34847   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34848   CONFIG_SHELL=$SHELL
34849   export CONFIG_SHELL
34850   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34851 fi
34852
34853 _ACEOF
34854 cat >>$CONFIG_STATUS <<\_ACEOF
34855 exec 5>>config.log
34856 {
34857   echo
34858   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34859 ## Running $as_me. ##
34860 _ASBOX
34861   echo "$ac_log"
34862 } >&5
34863
34864 _ACEOF
34865 cat >>$CONFIG_STATUS <<_ACEOF
34866 #
34867 # INIT-COMMANDS
34868 #
34869 llvm_src="${srcdir}"
34870
34871 _ACEOF
34872
34873 cat >>$CONFIG_STATUS <<\_ACEOF
34874
34875 # Handling of arguments.
34876 for ac_config_target in $ac_config_targets
34877 do
34878   case $ac_config_target in
34879     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34880     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
34881     "include/llvm/ADT/hash_map") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
34882     "include/llvm/ADT/hash_set") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
34883     "include/llvm/ADT/iterator") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
34884     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
34885     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
34886     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
34887     "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34888     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34889     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34890     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34891     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34892     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
34893     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
34894     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34895     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
34896     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34897     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34898     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
34899     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
34900     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
34901
34902   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34903 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34904    { (exit 1); exit 1; }; };;
34905   esac
34906 done
34907
34908
34909 # If the user did not use the arguments to specify the items to instantiate,
34910 # then the envvar interface is used.  Set only those that are not.
34911 # We use the long form for the default assignment because of an extremely
34912 # bizarre bug on SunOS 4.1.3.
34913 if $ac_need_defaults; then
34914   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34915   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34916   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34917 fi
34918
34919 # Have a temporary directory for convenience.  Make it in the build tree
34920 # simply because there is no reason against having it here, and in addition,
34921 # creating and moving files from /tmp can sometimes cause problems.
34922 # Hook for its removal unless debugging.
34923 # Note that there is a small window in which the directory will not be cleaned:
34924 # after its creation but before its name has been assigned to `$tmp'.
34925 $debug ||
34926 {
34927   tmp=
34928   trap 'exit_status=$?
34929   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34930 ' 0
34931   trap '{ (exit 1); exit 1; }' 1 2 13 15
34932 }
34933 # Create a (secure) tmp directory for tmp files.
34934
34935 {
34936   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34937   test -n "$tmp" && test -d "$tmp"
34938 }  ||
34939 {
34940   tmp=./conf$$-$RANDOM
34941   (umask 077 && mkdir "$tmp")
34942 } ||
34943 {
34944    echo "$me: cannot create a temporary directory in ." >&2
34945    { (exit 1); exit 1; }
34946 }
34947
34948 #
34949 # Set up the sed scripts for CONFIG_FILES section.
34950 #
34951
34952 # No need to generate the scripts if there are no CONFIG_FILES.
34953 # This happens for instance when ./config.status config.h
34954 if test -n "$CONFIG_FILES"; then
34955
34956 _ACEOF
34957
34958
34959
34960 ac_delim='%!_!# '
34961 for ac_last_try in false false false false false :; do
34962   cat >conf$$subs.sed <<_ACEOF
34963 SHELL!$SHELL$ac_delim
34964 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34965 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34966 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34967 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34968 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34969 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34970 exec_prefix!$exec_prefix$ac_delim
34971 prefix!$prefix$ac_delim
34972 program_transform_name!$program_transform_name$ac_delim
34973 bindir!$bindir$ac_delim
34974 sbindir!$sbindir$ac_delim
34975 libexecdir!$libexecdir$ac_delim
34976 datarootdir!$datarootdir$ac_delim
34977 datadir!$datadir$ac_delim
34978 sysconfdir!$sysconfdir$ac_delim
34979 sharedstatedir!$sharedstatedir$ac_delim
34980 localstatedir!$localstatedir$ac_delim
34981 includedir!$includedir$ac_delim
34982 oldincludedir!$oldincludedir$ac_delim
34983 docdir!$docdir$ac_delim
34984 infodir!$infodir$ac_delim
34985 htmldir!$htmldir$ac_delim
34986 dvidir!$dvidir$ac_delim
34987 pdfdir!$pdfdir$ac_delim
34988 psdir!$psdir$ac_delim
34989 libdir!$libdir$ac_delim
34990 localedir!$localedir$ac_delim
34991 mandir!$mandir$ac_delim
34992 DEFS!$DEFS$ac_delim
34993 ECHO_C!$ECHO_C$ac_delim
34994 ECHO_N!$ECHO_N$ac_delim
34995 ECHO_T!$ECHO_T$ac_delim
34996 LIBS!$LIBS$ac_delim
34997 build_alias!$build_alias$ac_delim
34998 host_alias!$host_alias$ac_delim
34999 target_alias!$target_alias$ac_delim
35000 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
35001 subdirs!$subdirs$ac_delim
35002 build!$build$ac_delim
35003 build_cpu!$build_cpu$ac_delim
35004 build_vendor!$build_vendor$ac_delim
35005 build_os!$build_os$ac_delim
35006 host!$host$ac_delim
35007 host_cpu!$host_cpu$ac_delim
35008 host_vendor!$host_vendor$ac_delim
35009 host_os!$host_os$ac_delim
35010 target!$target$ac_delim
35011 target_cpu!$target_cpu$ac_delim
35012 target_vendor!$target_vendor$ac_delim
35013 target_os!$target_os$ac_delim
35014 OS!$OS$ac_delim
35015 LINKALL!$LINKALL$ac_delim
35016 NOLINKALL!$NOLINKALL$ac_delim
35017 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
35018 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
35019 ARCH!$ARCH$ac_delim
35020 ENDIAN!$ENDIAN$ac_delim
35021 CC!$CC$ac_delim
35022 CFLAGS!$CFLAGS$ac_delim
35023 LDFLAGS!$LDFLAGS$ac_delim
35024 CPPFLAGS!$CPPFLAGS$ac_delim
35025 ac_ct_CC!$ac_ct_CC$ac_delim
35026 EXEEXT!$EXEEXT$ac_delim
35027 OBJEXT!$OBJEXT$ac_delim
35028 CPP!$CPP$ac_delim
35029 GREP!$GREP$ac_delim
35030 EGREP!$EGREP$ac_delim
35031 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
35032 BUILD_CC!$BUILD_CC$ac_delim
35033 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
35034 CVSBUILD!$CVSBUILD$ac_delim
35035 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
35036 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
35037 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
35038 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
35039 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
35040 JIT!$JIT$ac_delim
35041 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
35042 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
35043 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
35044 ENABLE_PIC!$ENABLE_PIC$ac_delim
35045 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
35046 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
35047 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
35048 CXX!$CXX$ac_delim
35049 CXXFLAGS!$CXXFLAGS$ac_delim
35050 ac_ct_CXX!$ac_ct_CXX$ac_delim
35051 LEX!$LEX$ac_delim
35052 LEXLIB!$LEXLIB$ac_delim
35053 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
35054 FLEX!$FLEX$ac_delim
35055 YACC!$YACC$ac_delim
35056 YFLAGS!$YFLAGS$ac_delim
35057 BISON!$BISON$ac_delim
35058 NM!$NM$ac_delim
35059 ifGNUmake!$ifGNUmake$ac_delim
35060 _ACEOF
35061
35062   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35063     break
35064   elif $ac_last_try; then
35065     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35066 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35067    { (exit 1); exit 1; }; }
35068   else
35069     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35070   fi
35071 done
35072
35073 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35074 if test -n "$ac_eof"; then
35075   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35076   ac_eof=`expr $ac_eof + 1`
35077 fi
35078
35079 cat >>$CONFIG_STATUS <<_ACEOF
35080 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
35081 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35082 _ACEOF
35083 sed '
35084 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35085 s/^/s,@/; s/!/@,|#_!!_#|/
35086 :n
35087 t n
35088 s/'"$ac_delim"'$/,g/; t
35089 s/$/\\/; p
35090 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35091 ' >>$CONFIG_STATUS <conf$$subs.sed
35092 rm -f conf$$subs.sed
35093 cat >>$CONFIG_STATUS <<_ACEOF
35094 CEOF$ac_eof
35095 _ACEOF
35096
35097
35098 ac_delim='%!_!# '
35099 for ac_last_try in false false false false false :; do
35100   cat >conf$$subs.sed <<_ACEOF
35101 LN_S!$LN_S$ac_delim
35102 CMP!$CMP$ac_delim
35103 CP!$CP$ac_delim
35104 DATE!$DATE$ac_delim
35105 FIND!$FIND$ac_delim
35106 MKDIR!$MKDIR$ac_delim
35107 MV!$MV$ac_delim
35108 RANLIB!$RANLIB$ac_delim
35109 RM!$RM$ac_delim
35110 SED!$SED$ac_delim
35111 TAR!$TAR$ac_delim
35112 BINPWD!$BINPWD$ac_delim
35113 GRAPHVIZ!$GRAPHVIZ$ac_delim
35114 DOT!$DOT$ac_delim
35115 GV!$GV$ac_delim
35116 DOTTY!$DOTTY$ac_delim
35117 PERL!$PERL$ac_delim
35118 HAVE_PERL!$HAVE_PERL$ac_delim
35119 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
35120 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
35121 INSTALL_DATA!$INSTALL_DATA$ac_delim
35122 BZIP2!$BZIP2$ac_delim
35123 DOXYGEN!$DOXYGEN$ac_delim
35124 GROFF!$GROFF$ac_delim
35125 GZIP!$GZIP$ac_delim
35126 POD2HTML!$POD2HTML$ac_delim
35127 POD2MAN!$POD2MAN$ac_delim
35128 RUNTEST!$RUNTEST$ac_delim
35129 TCLSH!$TCLSH$ac_delim
35130 ZIP!$ZIP$ac_delim
35131 OCAMLC!$OCAMLC$ac_delim
35132 OCAMLOPT!$OCAMLOPT$ac_delim
35133 OCAMLDEP!$OCAMLDEP$ac_delim
35134 OCAMLDOC!$OCAMLDOC$ac_delim
35135 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
35136 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
35137 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
35138 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
35139 LIBADD_DL!$LIBADD_DL$ac_delim
35140 ECHO!$ECHO$ac_delim
35141 AR!$AR$ac_delim
35142 STRIP!$STRIP$ac_delim
35143 CXXCPP!$CXXCPP$ac_delim
35144 F77!$F77$ac_delim
35145 FFLAGS!$FFLAGS$ac_delim
35146 ac_ct_F77!$ac_ct_F77$ac_delim
35147 LIBTOOL!$LIBTOOL$ac_delim
35148 LLVMGCC!$LLVMGCC$ac_delim
35149 LLVMGXX!$LLVMGXX$ac_delim
35150 USE_UDIS86!$USE_UDIS86$ac_delim
35151 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
35152 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
35153 ALLOCA!$ALLOCA$ac_delim
35154 MMAP_FILE!$MMAP_FILE$ac_delim
35155 LLVMCC1!$LLVMCC1$ac_delim
35156 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
35157 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
35158 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
35159 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
35160 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
35161 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
35162 SHLIBEXT!$SHLIBEXT$ac_delim
35163 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
35164 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
35165 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
35166 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
35167 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
35168 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
35169 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
35170 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
35171 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
35172 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
35173 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
35174 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
35175 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
35176 LIBOBJS!$LIBOBJS$ac_delim
35177 LTLIBOBJS!$LTLIBOBJS$ac_delim
35178 _ACEOF
35179
35180   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 77; then
35181     break
35182   elif $ac_last_try; then
35183     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35184 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35185    { (exit 1); exit 1; }; }
35186   else
35187     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35188   fi
35189 done
35190
35191 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35192 if test -n "$ac_eof"; then
35193   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35194   ac_eof=`expr $ac_eof + 1`
35195 fi
35196
35197 cat >>$CONFIG_STATUS <<_ACEOF
35198 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35199 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35200 _ACEOF
35201 sed '
35202 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35203 s/^/s,@/; s/!/@,|#_!!_#|/
35204 :n
35205 t n
35206 s/'"$ac_delim"'$/,g/; t
35207 s/$/\\/; p
35208 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35209 ' >>$CONFIG_STATUS <conf$$subs.sed
35210 rm -f conf$$subs.sed
35211 cat >>$CONFIG_STATUS <<_ACEOF
35212 :end
35213 s/|#_!!_#|//g
35214 CEOF$ac_eof
35215 _ACEOF
35216
35217
35218 # VPATH may cause trouble with some makes, so we remove $(srcdir),
35219 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35220 # trailing colons and then remove the whole line if VPATH becomes empty
35221 # (actually we leave an empty line to preserve line numbers).
35222 if test "x$srcdir" = x.; then
35223   ac_vpsub='/^[  ]*VPATH[        ]*=/{
35224 s/:*\$(srcdir):*/:/
35225 s/:*\${srcdir}:*/:/
35226 s/:*@srcdir@:*/:/
35227 s/^\([^=]*=[     ]*\):*/\1/
35228 s/:*$//
35229 s/^[^=]*=[       ]*$//
35230 }'
35231 fi
35232
35233 cat >>$CONFIG_STATUS <<\_ACEOF
35234 fi # test -n "$CONFIG_FILES"
35235
35236
35237 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
35238 do
35239   case $ac_tag in
35240   :[FHLC]) ac_mode=$ac_tag; continue;;
35241   esac
35242   case $ac_mode$ac_tag in
35243   :[FHL]*:*);;
35244   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35245 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35246    { (exit 1); exit 1; }; };;
35247   :[FH]-) ac_tag=-:-;;
35248   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35249   esac
35250   ac_save_IFS=$IFS
35251   IFS=:
35252   set x $ac_tag
35253   IFS=$ac_save_IFS
35254   shift
35255   ac_file=$1
35256   shift
35257
35258   case $ac_mode in
35259   :L) ac_source=$1;;
35260   :[FH])
35261     ac_file_inputs=
35262     for ac_f
35263     do
35264       case $ac_f in
35265       -) ac_f="$tmp/stdin";;
35266       *) # Look for the file first in the build tree, then in the source tree
35267          # (if the path is not absolute).  The absolute path cannot be DOS-style,
35268          # because $ac_f cannot contain `:'.
35269          test -f "$ac_f" ||
35270            case $ac_f in
35271            [\\/$]*) false;;
35272            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35273            esac ||
35274            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35275 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35276    { (exit 1); exit 1; }; };;
35277       esac
35278       ac_file_inputs="$ac_file_inputs $ac_f"
35279     done
35280
35281     # Let's still pretend it is `configure' which instantiates (i.e., don't
35282     # use $as_me), people would be surprised to read:
35283     #    /* config.h.  Generated by config.status.  */
35284     configure_input="Generated from "`IFS=:
35285           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35286     if test x"$ac_file" != x-; then
35287       configure_input="$ac_file.  $configure_input"
35288       { echo "$as_me:$LINENO: creating $ac_file" >&5
35289 echo "$as_me: creating $ac_file" >&6;}
35290     fi
35291
35292     case $ac_tag in
35293     *:-:* | *:-) cat >"$tmp/stdin";;
35294     esac
35295     ;;
35296   esac
35297
35298   ac_dir=`$as_dirname -- "$ac_file" ||
35299 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35300          X"$ac_file" : 'X\(//\)[^/]' \| \
35301          X"$ac_file" : 'X\(//\)$' \| \
35302          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35303 echo X"$ac_file" |
35304     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35305             s//\1/
35306             q
35307           }
35308           /^X\(\/\/\)[^/].*/{
35309             s//\1/
35310             q
35311           }
35312           /^X\(\/\/\)$/{
35313             s//\1/
35314             q
35315           }
35316           /^X\(\/\).*/{
35317             s//\1/
35318             q
35319           }
35320           s/.*/./; q'`
35321   { as_dir="$ac_dir"
35322   case $as_dir in #(
35323   -*) as_dir=./$as_dir;;
35324   esac
35325   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35326     as_dirs=
35327     while :; do
35328       case $as_dir in #(
35329       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35330       *) as_qdir=$as_dir;;
35331       esac
35332       as_dirs="'$as_qdir' $as_dirs"
35333       as_dir=`$as_dirname -- "$as_dir" ||
35334 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35335          X"$as_dir" : 'X\(//\)[^/]' \| \
35336          X"$as_dir" : 'X\(//\)$' \| \
35337          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35338 echo X"$as_dir" |
35339     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35340             s//\1/
35341             q
35342           }
35343           /^X\(\/\/\)[^/].*/{
35344             s//\1/
35345             q
35346           }
35347           /^X\(\/\/\)$/{
35348             s//\1/
35349             q
35350           }
35351           /^X\(\/\).*/{
35352             s//\1/
35353             q
35354           }
35355           s/.*/./; q'`
35356       test -d "$as_dir" && break
35357     done
35358     test -z "$as_dirs" || eval "mkdir $as_dirs"
35359   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35360 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35361    { (exit 1); exit 1; }; }; }
35362   ac_builddir=.
35363
35364 case "$ac_dir" in
35365 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35366 *)
35367   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35368   # A ".." for each directory in $ac_dir_suffix.
35369   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35370   case $ac_top_builddir_sub in
35371   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35372   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35373   esac ;;
35374 esac
35375 ac_abs_top_builddir=$ac_pwd
35376 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35377 # for backward compatibility:
35378 ac_top_builddir=$ac_top_build_prefix
35379
35380 case $srcdir in
35381   .)  # We are building in place.
35382     ac_srcdir=.
35383     ac_top_srcdir=$ac_top_builddir_sub
35384     ac_abs_top_srcdir=$ac_pwd ;;
35385   [\\/]* | ?:[\\/]* )  # Absolute name.
35386     ac_srcdir=$srcdir$ac_dir_suffix;
35387     ac_top_srcdir=$srcdir
35388     ac_abs_top_srcdir=$srcdir ;;
35389   *) # Relative name.
35390     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35391     ac_top_srcdir=$ac_top_build_prefix$srcdir
35392     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35393 esac
35394 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35395
35396
35397   case $ac_mode in
35398   :F)
35399   #
35400   # CONFIG_FILE
35401   #
35402
35403   case $INSTALL in
35404   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35405   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35406   esac
35407 _ACEOF
35408
35409 cat >>$CONFIG_STATUS <<\_ACEOF
35410 # If the template does not know about datarootdir, expand it.
35411 # FIXME: This hack should be removed a few years after 2.60.
35412 ac_datarootdir_hack=; ac_datarootdir_seen=
35413
35414 case `sed -n '/datarootdir/ {
35415   p
35416   q
35417 }
35418 /@datadir@/p
35419 /@docdir@/p
35420 /@infodir@/p
35421 /@localedir@/p
35422 /@mandir@/p
35423 ' $ac_file_inputs` in
35424 *datarootdir*) ac_datarootdir_seen=yes;;
35425 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35426   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35427 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35428 _ACEOF
35429 cat >>$CONFIG_STATUS <<_ACEOF
35430   ac_datarootdir_hack='
35431   s&@datadir@&$datadir&g
35432   s&@docdir@&$docdir&g
35433   s&@infodir@&$infodir&g
35434   s&@localedir@&$localedir&g
35435   s&@mandir@&$mandir&g
35436     s&\\\${datarootdir}&$datarootdir&g' ;;
35437 esac
35438 _ACEOF
35439
35440 # Neutralize VPATH when `$srcdir' = `.'.
35441 # Shell code in configure.ac might set extrasub.
35442 # FIXME: do we really want to maintain this feature?
35443 cat >>$CONFIG_STATUS <<_ACEOF
35444   sed "$ac_vpsub
35445 $extrasub
35446 _ACEOF
35447 cat >>$CONFIG_STATUS <<\_ACEOF
35448 :t
35449 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35450 s&@configure_input@&$configure_input&;t t
35451 s&@top_builddir@&$ac_top_builddir_sub&;t t
35452 s&@srcdir@&$ac_srcdir&;t t
35453 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35454 s&@top_srcdir@&$ac_top_srcdir&;t t
35455 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35456 s&@builddir@&$ac_builddir&;t t
35457 s&@abs_builddir@&$ac_abs_builddir&;t t
35458 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35459 s&@INSTALL@&$ac_INSTALL&;t t
35460 $ac_datarootdir_hack
35461 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
35462
35463 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35464   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35465   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35466   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35467 which seems to be undefined.  Please make sure it is defined." >&5
35468 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35469 which seems to be undefined.  Please make sure it is defined." >&2;}
35470
35471   rm -f "$tmp/stdin"
35472   case $ac_file in
35473   -) cat "$tmp/out"; rm -f "$tmp/out";;
35474   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35475   esac
35476  ;;
35477   :H)
35478   #
35479   # CONFIG_HEADER
35480   #
35481 _ACEOF
35482
35483 # Transform confdefs.h into a sed script `conftest.defines', that
35484 # substitutes the proper values into config.h.in to produce config.h.
35485 rm -f conftest.defines conftest.tail
35486 # First, append a space to every undef/define line, to ease matching.
35487 echo 's/$/ /' >conftest.defines
35488 # Then, protect against being on the right side of a sed subst, or in
35489 # an unquoted here document, in config.status.  If some macros were
35490 # called several times there might be several #defines for the same
35491 # symbol, which is useless.  But do not sort them, since the last
35492 # AC_DEFINE must be honored.
35493 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35494 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35495 # NAME is the cpp macro being defined, VALUE is the value it is being given.
35496 # PARAMS is the parameter list in the macro definition--in most cases, it's
35497 # just an empty string.
35498 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
35499 ac_dB='\\)[      (].*,\\1define\\2'
35500 ac_dC=' '
35501 ac_dD=' ,'
35502
35503 uniq confdefs.h |
35504   sed -n '
35505         t rset
35506         :rset
35507         s/^[     ]*#[    ]*define[       ][      ]*//
35508         t ok
35509         d
35510         :ok
35511         s/[\\&,]/\\&/g
35512         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35513         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35514   ' >>conftest.defines
35515
35516 # Remove the space that was appended to ease matching.
35517 # Then replace #undef with comments.  This is necessary, for
35518 # example, in the case of _POSIX_SOURCE, which is predefined and required
35519 # on some systems where configure will not decide to define it.
35520 # (The regexp can be short, since the line contains either #define or #undef.)
35521 echo 's/ $//
35522 s,^[     #]*u.*,/* & */,' >>conftest.defines
35523
35524 # Break up conftest.defines:
35525 ac_max_sed_lines=50
35526
35527 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35528 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35529 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35530 # et cetera.
35531 ac_in='$ac_file_inputs'
35532 ac_out='"$tmp/out1"'
35533 ac_nxt='"$tmp/out2"'
35534
35535 while :
35536 do
35537   # Write a here document:
35538     cat >>$CONFIG_STATUS <<_ACEOF
35539     # First, check the format of the line:
35540     cat >"\$tmp/defines.sed" <<\\CEOF
35541 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
35542 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
35543 b
35544 :def
35545 _ACEOF
35546   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
35547   echo 'CEOF
35548     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35549   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35550   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35551   grep . conftest.tail >/dev/null || break
35552   rm -f conftest.defines
35553   mv conftest.tail conftest.defines
35554 done
35555 rm -f conftest.defines conftest.tail
35556
35557 echo "ac_result=$ac_in" >>$CONFIG_STATUS
35558 cat >>$CONFIG_STATUS <<\_ACEOF
35559   if test x"$ac_file" != x-; then
35560     echo "/* $configure_input  */" >"$tmp/config.h"
35561     cat "$ac_result" >>"$tmp/config.h"
35562     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
35563       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35564 echo "$as_me: $ac_file is unchanged" >&6;}
35565     else
35566       rm -f $ac_file
35567       mv "$tmp/config.h" $ac_file
35568     fi
35569   else
35570     echo "/* $configure_input  */"
35571     cat "$ac_result"
35572   fi
35573   rm -f "$tmp/out12"
35574  ;;
35575
35576   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35577 echo "$as_me: executing $ac_file commands" >&6;}
35578  ;;
35579   esac
35580
35581
35582   case $ac_file$ac_mode in
35583     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
35584    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
35585     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
35586    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
35587     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
35588    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
35589     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
35590    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
35591     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
35592    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
35593     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
35594    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
35595     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
35596    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
35597     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
35598    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
35599     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
35600    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
35601     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
35602    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
35603     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
35604    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
35605     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
35606    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
35607
35608   esac
35609 done # for ac_tag
35610
35611
35612 { (exit 0); exit 0; }
35613 _ACEOF
35614 chmod +x $CONFIG_STATUS
35615 ac_clean_files=$ac_clean_files_save
35616
35617
35618 # configure is writing to config.log, and then calls config.status.
35619 # config.status does its own redirection, appending to config.log.
35620 # Unfortunately, on DOS this fails, as config.log is still kept open
35621 # by configure, so config.status won't be able to write to it; its
35622 # output is simply discarded.  So we exec the FD to /dev/null,
35623 # effectively closing config.log, so it can be properly (re)opened and
35624 # appended to by config.status.  When coming back to configure, we
35625 # need to make the FD available again.
35626 if test "$no_create" != yes; then
35627   ac_cs_success=:
35628   ac_config_status_args=
35629   test "$silent" = yes &&
35630     ac_config_status_args="$ac_config_status_args --quiet"
35631   exec 5>/dev/null
35632   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35633   exec 5>>config.log
35634   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35635   # would make configure fail if this is the last instruction.
35636   $ac_cs_success || { (exit 1); exit 1; }
35637 fi
35638
35639 #
35640 # CONFIG_SUBDIRS section.
35641 #
35642 if test "$no_recursion" != yes; then
35643
35644   # Remove --cache-file and --srcdir arguments so they do not pile up.
35645   ac_sub_configure_args=
35646   ac_prev=
35647   eval "set x $ac_configure_args"
35648   shift
35649   for ac_arg
35650   do
35651     if test -n "$ac_prev"; then
35652       ac_prev=
35653       continue
35654     fi
35655     case $ac_arg in
35656     -cache-file | --cache-file | --cache-fil | --cache-fi \
35657     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35658       ac_prev=cache_file ;;
35659     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35660     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35661     | --c=*)
35662       ;;
35663     --config-cache | -C)
35664       ;;
35665     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35666       ac_prev=srcdir ;;
35667     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35668       ;;
35669     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35670       ac_prev=prefix ;;
35671     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35672       ;;
35673     *)
35674       case $ac_arg in
35675       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35676       esac
35677       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
35678     esac
35679   done
35680
35681   # Always prepend --prefix to ensure using the same prefix
35682   # in subdir configurations.
35683   ac_arg="--prefix=$prefix"
35684   case $ac_arg in
35685   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35686   esac
35687   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
35688
35689   ac_popdir=`pwd`
35690   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35691
35692     # Do not complain, so a configure script can configure whichever
35693     # parts of a large source tree are present.
35694     test -d "$srcdir/$ac_dir" || continue
35695
35696     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35697     echo "$as_me:$LINENO: $ac_msg" >&5
35698     echo "$ac_msg" >&6
35699     { as_dir="$ac_dir"
35700   case $as_dir in #(
35701   -*) as_dir=./$as_dir;;
35702   esac
35703   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35704     as_dirs=
35705     while :; do
35706       case $as_dir in #(
35707       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35708       *) as_qdir=$as_dir;;
35709       esac
35710       as_dirs="'$as_qdir' $as_dirs"
35711       as_dir=`$as_dirname -- "$as_dir" ||
35712 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35713          X"$as_dir" : 'X\(//\)[^/]' \| \
35714          X"$as_dir" : 'X\(//\)$' \| \
35715          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35716 echo X"$as_dir" |
35717     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35718             s//\1/
35719             q
35720           }
35721           /^X\(\/\/\)[^/].*/{
35722             s//\1/
35723             q
35724           }
35725           /^X\(\/\/\)$/{
35726             s//\1/
35727             q
35728           }
35729           /^X\(\/\).*/{
35730             s//\1/
35731             q
35732           }
35733           s/.*/./; q'`
35734       test -d "$as_dir" && break
35735     done
35736     test -z "$as_dirs" || eval "mkdir $as_dirs"
35737   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35738 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35739    { (exit 1); exit 1; }; }; }
35740     ac_builddir=.
35741
35742 case "$ac_dir" in
35743 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35744 *)
35745   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35746   # A ".." for each directory in $ac_dir_suffix.
35747   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35748   case $ac_top_builddir_sub in
35749   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35750   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35751   esac ;;
35752 esac
35753 ac_abs_top_builddir=$ac_pwd
35754 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35755 # for backward compatibility:
35756 ac_top_builddir=$ac_top_build_prefix
35757
35758 case $srcdir in
35759   .)  # We are building in place.
35760     ac_srcdir=.
35761     ac_top_srcdir=$ac_top_builddir_sub
35762     ac_abs_top_srcdir=$ac_pwd ;;
35763   [\\/]* | ?:[\\/]* )  # Absolute name.
35764     ac_srcdir=$srcdir$ac_dir_suffix;
35765     ac_top_srcdir=$srcdir
35766     ac_abs_top_srcdir=$srcdir ;;
35767   *) # Relative name.
35768     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35769     ac_top_srcdir=$ac_top_build_prefix$srcdir
35770     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35771 esac
35772 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35773
35774
35775     cd "$ac_dir"
35776
35777     # Check for guested configure; otherwise get Cygnus style configure.
35778     if test -f "$ac_srcdir/configure.gnu"; then
35779       ac_sub_configure=$ac_srcdir/configure.gnu
35780     elif test -f "$ac_srcdir/configure"; then
35781       ac_sub_configure=$ac_srcdir/configure
35782     elif test -f "$ac_srcdir/configure.in"; then
35783       # This should be Cygnus configure.
35784       ac_sub_configure=$ac_aux_dir/configure
35785     else
35786       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
35787 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
35788       ac_sub_configure=
35789     fi
35790
35791     # The recursion is here.
35792     if test -n "$ac_sub_configure"; then
35793       # Make the cache file name correct relative to the subdirectory.
35794       case $cache_file in
35795       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
35796       *) # Relative name.
35797         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
35798       esac
35799
35800       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
35801 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
35802       # The eval makes quoting arguments work.
35803       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
35804            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
35805         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
35806 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
35807    { (exit 1); exit 1; }; }
35808     fi
35809
35810     cd "$ac_popdir"
35811   done
35812 fi
35813