Added configure switches for PIC16 in configure.ac.
[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.4svn.
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.4svn'
719 PACKAGE_STRING='llvm 2.4svn'
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.4svn 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.4svn:";;
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.4svn
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.4svn, 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   pic16-*)                llvm_cv_target_arch="PIC16" ;;
2379   *)                      llvm_cv_target_arch="Unknown" ;;
2380 esac
2381 fi
2382 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2383 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2384
2385 if test "$llvm_cv_target_arch" = "Unknown" ; then
2386   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2387 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2388 fi
2389
2390 ARCH=$llvm_cv_target_arch
2391
2392
2393 ac_ext=c
2394 ac_cpp='$CPP $CPPFLAGS'
2395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2398 if test -n "$ac_tool_prefix"; then
2399   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2400 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2401 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2403 if test "${ac_cv_prog_CC+set}" = set; then
2404   echo $ECHO_N "(cached) $ECHO_C" >&6
2405 else
2406   if test -n "$CC"; then
2407   ac_cv_prog_CC="$CC" # Let the user override the test.
2408 else
2409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2410 for as_dir in $PATH
2411 do
2412   IFS=$as_save_IFS
2413   test -z "$as_dir" && as_dir=.
2414   for ac_exec_ext in '' $ac_executable_extensions; do
2415   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2416     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2417     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2418     break 2
2419   fi
2420 done
2421 done
2422 IFS=$as_save_IFS
2423
2424 fi
2425 fi
2426 CC=$ac_cv_prog_CC
2427 if test -n "$CC"; then
2428   { echo "$as_me:$LINENO: result: $CC" >&5
2429 echo "${ECHO_T}$CC" >&6; }
2430 else
2431   { echo "$as_me:$LINENO: result: no" >&5
2432 echo "${ECHO_T}no" >&6; }
2433 fi
2434
2435
2436 fi
2437 if test -z "$ac_cv_prog_CC"; then
2438   ac_ct_CC=$CC
2439   # Extract the first word of "gcc", so it can be a program name with args.
2440 set dummy gcc; ac_word=$2
2441 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2443 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2444   echo $ECHO_N "(cached) $ECHO_C" >&6
2445 else
2446   if test -n "$ac_ct_CC"; then
2447   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2448 else
2449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2450 for as_dir in $PATH
2451 do
2452   IFS=$as_save_IFS
2453   test -z "$as_dir" && as_dir=.
2454   for ac_exec_ext in '' $ac_executable_extensions; do
2455   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2456     ac_cv_prog_ac_ct_CC="gcc"
2457     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2458     break 2
2459   fi
2460 done
2461 done
2462 IFS=$as_save_IFS
2463
2464 fi
2465 fi
2466 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2467 if test -n "$ac_ct_CC"; then
2468   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2469 echo "${ECHO_T}$ac_ct_CC" >&6; }
2470 else
2471   { echo "$as_me:$LINENO: result: no" >&5
2472 echo "${ECHO_T}no" >&6; }
2473 fi
2474
2475   if test "x$ac_ct_CC" = x; then
2476     CC=""
2477   else
2478     case $cross_compiling:$ac_tool_warned in
2479 yes:)
2480 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2481 whose name does not start with the host triplet.  If you think this
2482 configuration is useful to you, please write to autoconf@gnu.org." >&5
2483 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2484 whose name does not start with the host triplet.  If you think this
2485 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2486 ac_tool_warned=yes ;;
2487 esac
2488     CC=$ac_ct_CC
2489   fi
2490 else
2491   CC="$ac_cv_prog_CC"
2492 fi
2493
2494 if test -z "$CC"; then
2495           if test -n "$ac_tool_prefix"; then
2496     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2497 set dummy ${ac_tool_prefix}cc; ac_word=$2
2498 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2500 if test "${ac_cv_prog_CC+set}" = set; then
2501   echo $ECHO_N "(cached) $ECHO_C" >&6
2502 else
2503   if test -n "$CC"; then
2504   ac_cv_prog_CC="$CC" # Let the user override the test.
2505 else
2506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2507 for as_dir in $PATH
2508 do
2509   IFS=$as_save_IFS
2510   test -z "$as_dir" && as_dir=.
2511   for ac_exec_ext in '' $ac_executable_extensions; do
2512   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2513     ac_cv_prog_CC="${ac_tool_prefix}cc"
2514     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2515     break 2
2516   fi
2517 done
2518 done
2519 IFS=$as_save_IFS
2520
2521 fi
2522 fi
2523 CC=$ac_cv_prog_CC
2524 if test -n "$CC"; then
2525   { echo "$as_me:$LINENO: result: $CC" >&5
2526 echo "${ECHO_T}$CC" >&6; }
2527 else
2528   { echo "$as_me:$LINENO: result: no" >&5
2529 echo "${ECHO_T}no" >&6; }
2530 fi
2531
2532
2533   fi
2534 fi
2535 if test -z "$CC"; then
2536   # Extract the first word of "cc", so it can be a program name with args.
2537 set dummy cc; ac_word=$2
2538 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2540 if test "${ac_cv_prog_CC+set}" = set; then
2541   echo $ECHO_N "(cached) $ECHO_C" >&6
2542 else
2543   if test -n "$CC"; then
2544   ac_cv_prog_CC="$CC" # Let the user override the test.
2545 else
2546   ac_prog_rejected=no
2547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2548 for as_dir in $PATH
2549 do
2550   IFS=$as_save_IFS
2551   test -z "$as_dir" && as_dir=.
2552   for ac_exec_ext in '' $ac_executable_extensions; do
2553   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2554     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2555        ac_prog_rejected=yes
2556        continue
2557      fi
2558     ac_cv_prog_CC="cc"
2559     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2560     break 2
2561   fi
2562 done
2563 done
2564 IFS=$as_save_IFS
2565
2566 if test $ac_prog_rejected = yes; then
2567   # We found a bogon in the path, so make sure we never use it.
2568   set dummy $ac_cv_prog_CC
2569   shift
2570   if test $# != 0; then
2571     # We chose a different compiler from the bogus one.
2572     # However, it has the same basename, so the bogon will be chosen
2573     # first if we set CC to just the basename; use the full file name.
2574     shift
2575     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2576   fi
2577 fi
2578 fi
2579 fi
2580 CC=$ac_cv_prog_CC
2581 if test -n "$CC"; then
2582   { echo "$as_me:$LINENO: result: $CC" >&5
2583 echo "${ECHO_T}$CC" >&6; }
2584 else
2585   { echo "$as_me:$LINENO: result: no" >&5
2586 echo "${ECHO_T}no" >&6; }
2587 fi
2588
2589
2590 fi
2591 if test -z "$CC"; then
2592   if test -n "$ac_tool_prefix"; then
2593   for ac_prog in cl.exe
2594   do
2595     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2596 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2597 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2599 if test "${ac_cv_prog_CC+set}" = set; then
2600   echo $ECHO_N "(cached) $ECHO_C" >&6
2601 else
2602   if test -n "$CC"; then
2603   ac_cv_prog_CC="$CC" # Let the user override the test.
2604 else
2605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2606 for as_dir in $PATH
2607 do
2608   IFS=$as_save_IFS
2609   test -z "$as_dir" && as_dir=.
2610   for ac_exec_ext in '' $ac_executable_extensions; do
2611   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2612     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2613     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2614     break 2
2615   fi
2616 done
2617 done
2618 IFS=$as_save_IFS
2619
2620 fi
2621 fi
2622 CC=$ac_cv_prog_CC
2623 if test -n "$CC"; then
2624   { echo "$as_me:$LINENO: result: $CC" >&5
2625 echo "${ECHO_T}$CC" >&6; }
2626 else
2627   { echo "$as_me:$LINENO: result: no" >&5
2628 echo "${ECHO_T}no" >&6; }
2629 fi
2630
2631
2632     test -n "$CC" && break
2633   done
2634 fi
2635 if test -z "$CC"; then
2636   ac_ct_CC=$CC
2637   for ac_prog in cl.exe
2638 do
2639   # Extract the first word of "$ac_prog", so it can be a program name with args.
2640 set dummy $ac_prog; ac_word=$2
2641 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2643 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2644   echo $ECHO_N "(cached) $ECHO_C" >&6
2645 else
2646   if test -n "$ac_ct_CC"; then
2647   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2648 else
2649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2650 for as_dir in $PATH
2651 do
2652   IFS=$as_save_IFS
2653   test -z "$as_dir" && as_dir=.
2654   for ac_exec_ext in '' $ac_executable_extensions; do
2655   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2656     ac_cv_prog_ac_ct_CC="$ac_prog"
2657     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2658     break 2
2659   fi
2660 done
2661 done
2662 IFS=$as_save_IFS
2663
2664 fi
2665 fi
2666 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2667 if test -n "$ac_ct_CC"; then
2668   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2669 echo "${ECHO_T}$ac_ct_CC" >&6; }
2670 else
2671   { echo "$as_me:$LINENO: result: no" >&5
2672 echo "${ECHO_T}no" >&6; }
2673 fi
2674
2675
2676   test -n "$ac_ct_CC" && break
2677 done
2678
2679   if test "x$ac_ct_CC" = x; then
2680     CC=""
2681   else
2682     case $cross_compiling:$ac_tool_warned in
2683 yes:)
2684 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2685 whose name does not start with the host triplet.  If you think this
2686 configuration is useful to you, please write to autoconf@gnu.org." >&5
2687 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2688 whose name does not start with the host triplet.  If you think this
2689 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2690 ac_tool_warned=yes ;;
2691 esac
2692     CC=$ac_ct_CC
2693   fi
2694 fi
2695
2696 fi
2697
2698
2699 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2700 See \`config.log' for more details." >&5
2701 echo "$as_me: error: no acceptable C compiler found in \$PATH
2702 See \`config.log' for more details." >&2;}
2703    { (exit 1); exit 1; }; }
2704
2705 # Provide some information about the compiler.
2706 echo "$as_me:$LINENO: checking for C compiler version" >&5
2707 ac_compiler=`set X $ac_compile; echo $2`
2708 { (ac_try="$ac_compiler --version >&5"
2709 case "(($ac_try" in
2710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2711   *) ac_try_echo=$ac_try;;
2712 esac
2713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2714   (eval "$ac_compiler --version >&5") 2>&5
2715   ac_status=$?
2716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717   (exit $ac_status); }
2718 { (ac_try="$ac_compiler -v >&5"
2719 case "(($ac_try" in
2720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2721   *) ac_try_echo=$ac_try;;
2722 esac
2723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2724   (eval "$ac_compiler -v >&5") 2>&5
2725   ac_status=$?
2726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727   (exit $ac_status); }
2728 { (ac_try="$ac_compiler -V >&5"
2729 case "(($ac_try" in
2730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2731   *) ac_try_echo=$ac_try;;
2732 esac
2733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2734   (eval "$ac_compiler -V >&5") 2>&5
2735   ac_status=$?
2736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737   (exit $ac_status); }
2738
2739 cat >conftest.$ac_ext <<_ACEOF
2740 /* confdefs.h.  */
2741 _ACEOF
2742 cat confdefs.h >>conftest.$ac_ext
2743 cat >>conftest.$ac_ext <<_ACEOF
2744 /* end confdefs.h.  */
2745
2746 int
2747 main ()
2748 {
2749
2750   ;
2751   return 0;
2752 }
2753 _ACEOF
2754 ac_clean_files_save=$ac_clean_files
2755 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2756 # Try to create an executable without -o first, disregard a.out.
2757 # It will help us diagnose broken compilers, and finding out an intuition
2758 # of exeext.
2759 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2760 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2761 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2762 #
2763 # List of possible output files, starting from the most likely.
2764 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2765 # only as a last resort.  b.out is created by i960 compilers.
2766 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2767 #
2768 # The IRIX 6 linker writes into existing files which may not be
2769 # executable, retaining their permissions.  Remove them first so a
2770 # subsequent execution test works.
2771 ac_rmfiles=
2772 for ac_file in $ac_files
2773 do
2774   case $ac_file in
2775     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2776     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2777   esac
2778 done
2779 rm -f $ac_rmfiles
2780
2781 if { (ac_try="$ac_link_default"
2782 case "(($ac_try" in
2783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2784   *) ac_try_echo=$ac_try;;
2785 esac
2786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2787   (eval "$ac_link_default") 2>&5
2788   ac_status=$?
2789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790   (exit $ac_status); }; then
2791   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2792 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2793 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2794 # so that the user can short-circuit this test for compilers unknown to
2795 # Autoconf.
2796 for ac_file in $ac_files
2797 do
2798   test -f "$ac_file" || continue
2799   case $ac_file in
2800     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2801         ;;
2802     [ab].out )
2803         # We found the default executable, but exeext='' is most
2804         # certainly right.
2805         break;;
2806     *.* )
2807         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2808         then :; else
2809            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2810         fi
2811         # We set ac_cv_exeext here because the later test for it is not
2812         # safe: cross compilers may not add the suffix if given an `-o'
2813         # argument, so we may need to know it at that point already.
2814         # Even if this section looks crufty: it has the advantage of
2815         # actually working.
2816         break;;
2817     * )
2818         break;;
2819   esac
2820 done
2821 test "$ac_cv_exeext" = no && ac_cv_exeext=
2822
2823 else
2824   echo "$as_me: failed program was:" >&5
2825 sed 's/^/| /' conftest.$ac_ext >&5
2826
2827 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2828 See \`config.log' for more details." >&5
2829 echo "$as_me: error: C compiler cannot create executables
2830 See \`config.log' for more details." >&2;}
2831    { (exit 77); exit 77; }; }
2832 fi
2833
2834 ac_exeext=$ac_cv_exeext
2835 { echo "$as_me:$LINENO: result: $ac_file" >&5
2836 echo "${ECHO_T}$ac_file" >&6; }
2837
2838 # Check that the compiler produces executables we can run.  If not, either
2839 # the compiler is broken, or we cross compile.
2840 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2841 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2842 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2843 # If not cross compiling, check that we can run a simple program.
2844 if test "$cross_compiling" != yes; then
2845   if { ac_try='./$ac_file'
2846   { (case "(($ac_try" in
2847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2848   *) ac_try_echo=$ac_try;;
2849 esac
2850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2851   (eval "$ac_try") 2>&5
2852   ac_status=$?
2853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854   (exit $ac_status); }; }; then
2855     cross_compiling=no
2856   else
2857     if test "$cross_compiling" = maybe; then
2858         cross_compiling=yes
2859     else
2860         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2861 If you meant to cross compile, use \`--host'.
2862 See \`config.log' for more details." >&5
2863 echo "$as_me: error: cannot run C compiled programs.
2864 If you meant to cross compile, use \`--host'.
2865 See \`config.log' for more details." >&2;}
2866    { (exit 1); exit 1; }; }
2867     fi
2868   fi
2869 fi
2870 { echo "$as_me:$LINENO: result: yes" >&5
2871 echo "${ECHO_T}yes" >&6; }
2872
2873 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2874 ac_clean_files=$ac_clean_files_save
2875 # Check that the compiler produces executables we can run.  If not, either
2876 # the compiler is broken, or we cross compile.
2877 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2878 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2879 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2880 echo "${ECHO_T}$cross_compiling" >&6; }
2881
2882 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2883 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2884 if { (ac_try="$ac_link"
2885 case "(($ac_try" in
2886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2887   *) ac_try_echo=$ac_try;;
2888 esac
2889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2890   (eval "$ac_link") 2>&5
2891   ac_status=$?
2892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893   (exit $ac_status); }; then
2894   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2895 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2896 # work properly (i.e., refer to `conftest.exe'), while it won't with
2897 # `rm'.
2898 for ac_file in conftest.exe conftest conftest.*; do
2899   test -f "$ac_file" || continue
2900   case $ac_file in
2901     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2902     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2903           break;;
2904     * ) break;;
2905   esac
2906 done
2907 else
2908   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2909 See \`config.log' for more details." >&5
2910 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2911 See \`config.log' for more details." >&2;}
2912    { (exit 1); exit 1; }; }
2913 fi
2914
2915 rm -f conftest$ac_cv_exeext
2916 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2917 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2918
2919 rm -f conftest.$ac_ext
2920 EXEEXT=$ac_cv_exeext
2921 ac_exeext=$EXEEXT
2922 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2923 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2924 if test "${ac_cv_objext+set}" = set; then
2925   echo $ECHO_N "(cached) $ECHO_C" >&6
2926 else
2927   cat >conftest.$ac_ext <<_ACEOF
2928 /* confdefs.h.  */
2929 _ACEOF
2930 cat confdefs.h >>conftest.$ac_ext
2931 cat >>conftest.$ac_ext <<_ACEOF
2932 /* end confdefs.h.  */
2933
2934 int
2935 main ()
2936 {
2937
2938   ;
2939   return 0;
2940 }
2941 _ACEOF
2942 rm -f conftest.o conftest.obj
2943 if { (ac_try="$ac_compile"
2944 case "(($ac_try" in
2945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2946   *) ac_try_echo=$ac_try;;
2947 esac
2948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2949   (eval "$ac_compile") 2>&5
2950   ac_status=$?
2951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952   (exit $ac_status); }; then
2953   for ac_file in conftest.o conftest.obj conftest.*; do
2954   test -f "$ac_file" || continue;
2955   case $ac_file in
2956     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2957     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2958        break;;
2959   esac
2960 done
2961 else
2962   echo "$as_me: failed program was:" >&5
2963 sed 's/^/| /' conftest.$ac_ext >&5
2964
2965 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2966 See \`config.log' for more details." >&5
2967 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2968 See \`config.log' for more details." >&2;}
2969    { (exit 1); exit 1; }; }
2970 fi
2971
2972 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2973 fi
2974 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2975 echo "${ECHO_T}$ac_cv_objext" >&6; }
2976 OBJEXT=$ac_cv_objext
2977 ac_objext=$OBJEXT
2978 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2979 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2980 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2981   echo $ECHO_N "(cached) $ECHO_C" >&6
2982 else
2983   cat >conftest.$ac_ext <<_ACEOF
2984 /* confdefs.h.  */
2985 _ACEOF
2986 cat confdefs.h >>conftest.$ac_ext
2987 cat >>conftest.$ac_ext <<_ACEOF
2988 /* end confdefs.h.  */
2989
2990 int
2991 main ()
2992 {
2993 #ifndef __GNUC__
2994        choke me
2995 #endif
2996
2997   ;
2998   return 0;
2999 }
3000 _ACEOF
3001 rm -f conftest.$ac_objext
3002 if { (ac_try="$ac_compile"
3003 case "(($ac_try" in
3004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3005   *) ac_try_echo=$ac_try;;
3006 esac
3007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3008   (eval "$ac_compile") 2>conftest.er1
3009   ac_status=$?
3010   grep -v '^ *+' conftest.er1 >conftest.err
3011   rm -f conftest.er1
3012   cat conftest.err >&5
3013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014   (exit $ac_status); } &&
3015          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3016   { (case "(($ac_try" in
3017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3018   *) ac_try_echo=$ac_try;;
3019 esac
3020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3021   (eval "$ac_try") 2>&5
3022   ac_status=$?
3023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024   (exit $ac_status); }; } &&
3025          { ac_try='test -s conftest.$ac_objext'
3026   { (case "(($ac_try" in
3027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3028   *) ac_try_echo=$ac_try;;
3029 esac
3030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3031   (eval "$ac_try") 2>&5
3032   ac_status=$?
3033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034   (exit $ac_status); }; }; then
3035   ac_compiler_gnu=yes
3036 else
3037   echo "$as_me: failed program was:" >&5
3038 sed 's/^/| /' conftest.$ac_ext >&5
3039
3040         ac_compiler_gnu=no
3041 fi
3042
3043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3044 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3045
3046 fi
3047 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3048 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3049 GCC=`test $ac_compiler_gnu = yes && echo yes`
3050 ac_test_CFLAGS=${CFLAGS+set}
3051 ac_save_CFLAGS=$CFLAGS
3052 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3053 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3054 if test "${ac_cv_prog_cc_g+set}" = set; then
3055   echo $ECHO_N "(cached) $ECHO_C" >&6
3056 else
3057   ac_save_c_werror_flag=$ac_c_werror_flag
3058    ac_c_werror_flag=yes
3059    ac_cv_prog_cc_g=no
3060    CFLAGS="-g"
3061    cat >conftest.$ac_ext <<_ACEOF
3062 /* confdefs.h.  */
3063 _ACEOF
3064 cat confdefs.h >>conftest.$ac_ext
3065 cat >>conftest.$ac_ext <<_ACEOF
3066 /* end confdefs.h.  */
3067
3068 int
3069 main ()
3070 {
3071
3072   ;
3073   return 0;
3074 }
3075 _ACEOF
3076 rm -f conftest.$ac_objext
3077 if { (ac_try="$ac_compile"
3078 case "(($ac_try" in
3079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3080   *) ac_try_echo=$ac_try;;
3081 esac
3082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3083   (eval "$ac_compile") 2>conftest.er1
3084   ac_status=$?
3085   grep -v '^ *+' conftest.er1 >conftest.err
3086   rm -f conftest.er1
3087   cat conftest.err >&5
3088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089   (exit $ac_status); } &&
3090          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3091   { (case "(($ac_try" in
3092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3093   *) ac_try_echo=$ac_try;;
3094 esac
3095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3096   (eval "$ac_try") 2>&5
3097   ac_status=$?
3098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099   (exit $ac_status); }; } &&
3100          { ac_try='test -s conftest.$ac_objext'
3101   { (case "(($ac_try" in
3102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103   *) ac_try_echo=$ac_try;;
3104 esac
3105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3106   (eval "$ac_try") 2>&5
3107   ac_status=$?
3108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109   (exit $ac_status); }; }; then
3110   ac_cv_prog_cc_g=yes
3111 else
3112   echo "$as_me: failed program was:" >&5
3113 sed 's/^/| /' conftest.$ac_ext >&5
3114
3115         CFLAGS=""
3116       cat >conftest.$ac_ext <<_ACEOF
3117 /* confdefs.h.  */
3118 _ACEOF
3119 cat confdefs.h >>conftest.$ac_ext
3120 cat >>conftest.$ac_ext <<_ACEOF
3121 /* end confdefs.h.  */
3122
3123 int
3124 main ()
3125 {
3126
3127   ;
3128   return 0;
3129 }
3130 _ACEOF
3131 rm -f conftest.$ac_objext
3132 if { (ac_try="$ac_compile"
3133 case "(($ac_try" in
3134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3135   *) ac_try_echo=$ac_try;;
3136 esac
3137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3138   (eval "$ac_compile") 2>conftest.er1
3139   ac_status=$?
3140   grep -v '^ *+' conftest.er1 >conftest.err
3141   rm -f conftest.er1
3142   cat conftest.err >&5
3143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144   (exit $ac_status); } &&
3145          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3146   { (case "(($ac_try" in
3147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3148   *) ac_try_echo=$ac_try;;
3149 esac
3150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3151   (eval "$ac_try") 2>&5
3152   ac_status=$?
3153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154   (exit $ac_status); }; } &&
3155          { ac_try='test -s conftest.$ac_objext'
3156   { (case "(($ac_try" in
3157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3158   *) ac_try_echo=$ac_try;;
3159 esac
3160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3161   (eval "$ac_try") 2>&5
3162   ac_status=$?
3163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164   (exit $ac_status); }; }; then
3165   :
3166 else
3167   echo "$as_me: failed program was:" >&5
3168 sed 's/^/| /' conftest.$ac_ext >&5
3169
3170         ac_c_werror_flag=$ac_save_c_werror_flag
3171          CFLAGS="-g"
3172          cat >conftest.$ac_ext <<_ACEOF
3173 /* confdefs.h.  */
3174 _ACEOF
3175 cat confdefs.h >>conftest.$ac_ext
3176 cat >>conftest.$ac_ext <<_ACEOF
3177 /* end confdefs.h.  */
3178
3179 int
3180 main ()
3181 {
3182
3183   ;
3184   return 0;
3185 }
3186 _ACEOF
3187 rm -f conftest.$ac_objext
3188 if { (ac_try="$ac_compile"
3189 case "(($ac_try" in
3190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3191   *) ac_try_echo=$ac_try;;
3192 esac
3193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3194   (eval "$ac_compile") 2>conftest.er1
3195   ac_status=$?
3196   grep -v '^ *+' conftest.er1 >conftest.err
3197   rm -f conftest.er1
3198   cat conftest.err >&5
3199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200   (exit $ac_status); } &&
3201          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3202   { (case "(($ac_try" in
3203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3204   *) ac_try_echo=$ac_try;;
3205 esac
3206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3207   (eval "$ac_try") 2>&5
3208   ac_status=$?
3209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210   (exit $ac_status); }; } &&
3211          { ac_try='test -s conftest.$ac_objext'
3212   { (case "(($ac_try" in
3213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3214   *) ac_try_echo=$ac_try;;
3215 esac
3216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3217   (eval "$ac_try") 2>&5
3218   ac_status=$?
3219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3220   (exit $ac_status); }; }; then
3221   ac_cv_prog_cc_g=yes
3222 else
3223   echo "$as_me: failed program was:" >&5
3224 sed 's/^/| /' conftest.$ac_ext >&5
3225
3226
3227 fi
3228
3229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3230 fi
3231
3232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3233 fi
3234
3235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3236    ac_c_werror_flag=$ac_save_c_werror_flag
3237 fi
3238 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3239 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3240 if test "$ac_test_CFLAGS" = set; then
3241   CFLAGS=$ac_save_CFLAGS
3242 elif test $ac_cv_prog_cc_g = yes; then
3243   if test "$GCC" = yes; then
3244     CFLAGS="-g -O2"
3245   else
3246     CFLAGS="-g"
3247   fi
3248 else
3249   if test "$GCC" = yes; then
3250     CFLAGS="-O2"
3251   else
3252     CFLAGS=
3253   fi
3254 fi
3255 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3256 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3257 if test "${ac_cv_prog_cc_c89+set}" = set; then
3258   echo $ECHO_N "(cached) $ECHO_C" >&6
3259 else
3260   ac_cv_prog_cc_c89=no
3261 ac_save_CC=$CC
3262 cat >conftest.$ac_ext <<_ACEOF
3263 /* confdefs.h.  */
3264 _ACEOF
3265 cat confdefs.h >>conftest.$ac_ext
3266 cat >>conftest.$ac_ext <<_ACEOF
3267 /* end confdefs.h.  */
3268 #include <stdarg.h>
3269 #include <stdio.h>
3270 #include <sys/types.h>
3271 #include <sys/stat.h>
3272 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3273 struct buf { int x; };
3274 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3275 static char *e (p, i)
3276      char **p;
3277      int i;
3278 {
3279   return p[i];
3280 }
3281 static char *f (char * (*g) (char **, int), char **p, ...)
3282 {
3283   char *s;
3284   va_list v;
3285   va_start (v,p);
3286   s = g (p, va_arg (v,int));
3287   va_end (v);
3288   return s;
3289 }
3290
3291 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3292    function prototypes and stuff, but not '\xHH' hex character constants.
3293    These don't provoke an error unfortunately, instead are silently treated
3294    as 'x'.  The following induces an error, until -std is added to get
3295    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3296    array size at least.  It's necessary to write '\x00'==0 to get something
3297    that's true only with -std.  */
3298 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3299
3300 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3301    inside strings and character constants.  */
3302 #define FOO(x) 'x'
3303 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3304
3305 int test (int i, double x);
3306 struct s1 {int (*f) (int a);};
3307 struct s2 {int (*f) (double a);};
3308 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3309 int argc;
3310 char **argv;
3311 int
3312 main ()
3313 {
3314 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3315   ;
3316   return 0;
3317 }
3318 _ACEOF
3319 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3320         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3321 do
3322   CC="$ac_save_CC $ac_arg"
3323   rm -f conftest.$ac_objext
3324 if { (ac_try="$ac_compile"
3325 case "(($ac_try" in
3326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3327   *) ac_try_echo=$ac_try;;
3328 esac
3329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3330   (eval "$ac_compile") 2>conftest.er1
3331   ac_status=$?
3332   grep -v '^ *+' conftest.er1 >conftest.err
3333   rm -f conftest.er1
3334   cat conftest.err >&5
3335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3336   (exit $ac_status); } &&
3337          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3338   { (case "(($ac_try" in
3339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3340   *) ac_try_echo=$ac_try;;
3341 esac
3342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3343   (eval "$ac_try") 2>&5
3344   ac_status=$?
3345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346   (exit $ac_status); }; } &&
3347          { ac_try='test -s conftest.$ac_objext'
3348   { (case "(($ac_try" in
3349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3350   *) ac_try_echo=$ac_try;;
3351 esac
3352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3353   (eval "$ac_try") 2>&5
3354   ac_status=$?
3355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356   (exit $ac_status); }; }; then
3357   ac_cv_prog_cc_c89=$ac_arg
3358 else
3359   echo "$as_me: failed program was:" >&5
3360 sed 's/^/| /' conftest.$ac_ext >&5
3361
3362
3363 fi
3364
3365 rm -f core conftest.err conftest.$ac_objext
3366   test "x$ac_cv_prog_cc_c89" != "xno" && break
3367 done
3368 rm -f conftest.$ac_ext
3369 CC=$ac_save_CC
3370
3371 fi
3372 # AC_CACHE_VAL
3373 case "x$ac_cv_prog_cc_c89" in
3374   x)
3375     { echo "$as_me:$LINENO: result: none needed" >&5
3376 echo "${ECHO_T}none needed" >&6; } ;;
3377   xno)
3378     { echo "$as_me:$LINENO: result: unsupported" >&5
3379 echo "${ECHO_T}unsupported" >&6; } ;;
3380   *)
3381     CC="$CC $ac_cv_prog_cc_c89"
3382     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3383 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3384 esac
3385
3386
3387 ac_ext=c
3388 ac_cpp='$CPP $CPPFLAGS'
3389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3392
3393
3394 ac_ext=c
3395 ac_cpp='$CPP $CPPFLAGS'
3396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3399 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3400 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3401 # On Suns, sometimes $CPP names a directory.
3402 if test -n "$CPP" && test -d "$CPP"; then
3403   CPP=
3404 fi
3405 if test -z "$CPP"; then
3406   if test "${ac_cv_prog_CPP+set}" = set; then
3407   echo $ECHO_N "(cached) $ECHO_C" >&6
3408 else
3409       # Double quotes because CPP needs to be expanded
3410     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3411     do
3412       ac_preproc_ok=false
3413 for ac_c_preproc_warn_flag in '' yes
3414 do
3415   # Use a header file that comes with gcc, so configuring glibc
3416   # with a fresh cross-compiler works.
3417   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3418   # <limits.h> exists even on freestanding compilers.
3419   # On the NeXT, cc -E runs the code through the compiler's parser,
3420   # not just through cpp. "Syntax error" is here to catch this case.
3421   cat >conftest.$ac_ext <<_ACEOF
3422 /* confdefs.h.  */
3423 _ACEOF
3424 cat confdefs.h >>conftest.$ac_ext
3425 cat >>conftest.$ac_ext <<_ACEOF
3426 /* end confdefs.h.  */
3427 #ifdef __STDC__
3428 # include <limits.h>
3429 #else
3430 # include <assert.h>
3431 #endif
3432                      Syntax error
3433 _ACEOF
3434 if { (ac_try="$ac_cpp conftest.$ac_ext"
3435 case "(($ac_try" in
3436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3437   *) ac_try_echo=$ac_try;;
3438 esac
3439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3440   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3441   ac_status=$?
3442   grep -v '^ *+' conftest.er1 >conftest.err
3443   rm -f conftest.er1
3444   cat conftest.err >&5
3445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446   (exit $ac_status); } >/dev/null; then
3447   if test -s conftest.err; then
3448     ac_cpp_err=$ac_c_preproc_warn_flag
3449     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3450   else
3451     ac_cpp_err=
3452   fi
3453 else
3454   ac_cpp_err=yes
3455 fi
3456 if test -z "$ac_cpp_err"; then
3457   :
3458 else
3459   echo "$as_me: failed program was:" >&5
3460 sed 's/^/| /' conftest.$ac_ext >&5
3461
3462   # Broken: fails on valid input.
3463 continue
3464 fi
3465
3466 rm -f conftest.err conftest.$ac_ext
3467
3468   # OK, works on sane cases.  Now check whether nonexistent headers
3469   # can be detected and how.
3470   cat >conftest.$ac_ext <<_ACEOF
3471 /* confdefs.h.  */
3472 _ACEOF
3473 cat confdefs.h >>conftest.$ac_ext
3474 cat >>conftest.$ac_ext <<_ACEOF
3475 /* end confdefs.h.  */
3476 #include <ac_nonexistent.h>
3477 _ACEOF
3478 if { (ac_try="$ac_cpp conftest.$ac_ext"
3479 case "(($ac_try" in
3480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3481   *) ac_try_echo=$ac_try;;
3482 esac
3483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3484   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3485   ac_status=$?
3486   grep -v '^ *+' conftest.er1 >conftest.err
3487   rm -f conftest.er1
3488   cat conftest.err >&5
3489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3490   (exit $ac_status); } >/dev/null; then
3491   if test -s conftest.err; then
3492     ac_cpp_err=$ac_c_preproc_warn_flag
3493     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3494   else
3495     ac_cpp_err=
3496   fi
3497 else
3498   ac_cpp_err=yes
3499 fi
3500 if test -z "$ac_cpp_err"; then
3501   # Broken: success on invalid input.
3502 continue
3503 else
3504   echo "$as_me: failed program was:" >&5
3505 sed 's/^/| /' conftest.$ac_ext >&5
3506
3507   # Passes both tests.
3508 ac_preproc_ok=:
3509 break
3510 fi
3511
3512 rm -f conftest.err conftest.$ac_ext
3513
3514 done
3515 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3516 rm -f conftest.err conftest.$ac_ext
3517 if $ac_preproc_ok; then
3518   break
3519 fi
3520
3521     done
3522     ac_cv_prog_CPP=$CPP
3523
3524 fi
3525   CPP=$ac_cv_prog_CPP
3526 else
3527   ac_cv_prog_CPP=$CPP
3528 fi
3529 { echo "$as_me:$LINENO: result: $CPP" >&5
3530 echo "${ECHO_T}$CPP" >&6; }
3531 ac_preproc_ok=false
3532 for ac_c_preproc_warn_flag in '' yes
3533 do
3534   # Use a header file that comes with gcc, so configuring glibc
3535   # with a fresh cross-compiler works.
3536   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3537   # <limits.h> exists even on freestanding compilers.
3538   # On the NeXT, cc -E runs the code through the compiler's parser,
3539   # not just through cpp. "Syntax error" is here to catch this case.
3540   cat >conftest.$ac_ext <<_ACEOF
3541 /* confdefs.h.  */
3542 _ACEOF
3543 cat confdefs.h >>conftest.$ac_ext
3544 cat >>conftest.$ac_ext <<_ACEOF
3545 /* end confdefs.h.  */
3546 #ifdef __STDC__
3547 # include <limits.h>
3548 #else
3549 # include <assert.h>
3550 #endif
3551                      Syntax error
3552 _ACEOF
3553 if { (ac_try="$ac_cpp conftest.$ac_ext"
3554 case "(($ac_try" in
3555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3556   *) ac_try_echo=$ac_try;;
3557 esac
3558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3559   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3560   ac_status=$?
3561   grep -v '^ *+' conftest.er1 >conftest.err
3562   rm -f conftest.er1
3563   cat conftest.err >&5
3564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3565   (exit $ac_status); } >/dev/null; then
3566   if test -s conftest.err; then
3567     ac_cpp_err=$ac_c_preproc_warn_flag
3568     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3569   else
3570     ac_cpp_err=
3571   fi
3572 else
3573   ac_cpp_err=yes
3574 fi
3575 if test -z "$ac_cpp_err"; then
3576   :
3577 else
3578   echo "$as_me: failed program was:" >&5
3579 sed 's/^/| /' conftest.$ac_ext >&5
3580
3581   # Broken: fails on valid input.
3582 continue
3583 fi
3584
3585 rm -f conftest.err conftest.$ac_ext
3586
3587   # OK, works on sane cases.  Now check whether nonexistent headers
3588   # can be detected and how.
3589   cat >conftest.$ac_ext <<_ACEOF
3590 /* confdefs.h.  */
3591 _ACEOF
3592 cat confdefs.h >>conftest.$ac_ext
3593 cat >>conftest.$ac_ext <<_ACEOF
3594 /* end confdefs.h.  */
3595 #include <ac_nonexistent.h>
3596 _ACEOF
3597 if { (ac_try="$ac_cpp conftest.$ac_ext"
3598 case "(($ac_try" in
3599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3600   *) ac_try_echo=$ac_try;;
3601 esac
3602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3603   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3604   ac_status=$?
3605   grep -v '^ *+' conftest.er1 >conftest.err
3606   rm -f conftest.er1
3607   cat conftest.err >&5
3608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609   (exit $ac_status); } >/dev/null; then
3610   if test -s conftest.err; then
3611     ac_cpp_err=$ac_c_preproc_warn_flag
3612     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3613   else
3614     ac_cpp_err=
3615   fi
3616 else
3617   ac_cpp_err=yes
3618 fi
3619 if test -z "$ac_cpp_err"; then
3620   # Broken: success on invalid input.
3621 continue
3622 else
3623   echo "$as_me: failed program was:" >&5
3624 sed 's/^/| /' conftest.$ac_ext >&5
3625
3626   # Passes both tests.
3627 ac_preproc_ok=:
3628 break
3629 fi
3630
3631 rm -f conftest.err conftest.$ac_ext
3632
3633 done
3634 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3635 rm -f conftest.err conftest.$ac_ext
3636 if $ac_preproc_ok; then
3637   :
3638 else
3639   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3640 See \`config.log' for more details." >&5
3641 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3642 See \`config.log' for more details." >&2;}
3643    { (exit 1); exit 1; }; }
3644 fi
3645
3646 ac_ext=c
3647 ac_cpp='$CPP $CPPFLAGS'
3648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3651
3652
3653 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3654 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3655 if test "${ac_cv_path_GREP+set}" = set; then
3656   echo $ECHO_N "(cached) $ECHO_C" >&6
3657 else
3658   # Extract the first word of "grep ggrep" to use in msg output
3659 if test -z "$GREP"; then
3660 set dummy grep ggrep; ac_prog_name=$2
3661 if test "${ac_cv_path_GREP+set}" = set; then
3662   echo $ECHO_N "(cached) $ECHO_C" >&6
3663 else
3664   ac_path_GREP_found=false
3665 # Loop through the user's path and test for each of PROGNAME-LIST
3666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3667 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3668 do
3669   IFS=$as_save_IFS
3670   test -z "$as_dir" && as_dir=.
3671   for ac_prog in grep ggrep; do
3672   for ac_exec_ext in '' $ac_executable_extensions; do
3673     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3674     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3675     # Check for GNU ac_path_GREP and select it if it is found.
3676   # Check for GNU $ac_path_GREP
3677 case `"$ac_path_GREP" --version 2>&1` in
3678 *GNU*)
3679   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3680 *)
3681   ac_count=0
3682   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3683   while :
3684   do
3685     cat "conftest.in" "conftest.in" >"conftest.tmp"
3686     mv "conftest.tmp" "conftest.in"
3687     cp "conftest.in" "conftest.nl"
3688     echo 'GREP' >> "conftest.nl"
3689     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3690     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3691     ac_count=`expr $ac_count + 1`
3692     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3693       # Best one so far, save it but keep looking for a better one
3694       ac_cv_path_GREP="$ac_path_GREP"
3695       ac_path_GREP_max=$ac_count
3696     fi
3697     # 10*(2^10) chars as input seems more than enough
3698     test $ac_count -gt 10 && break
3699   done
3700   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3701 esac
3702
3703
3704     $ac_path_GREP_found && break 3
3705   done
3706 done
3707
3708 done
3709 IFS=$as_save_IFS
3710
3711
3712 fi
3713
3714 GREP="$ac_cv_path_GREP"
3715 if test -z "$GREP"; then
3716   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3717 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3718    { (exit 1); exit 1; }; }
3719 fi
3720
3721 else
3722   ac_cv_path_GREP=$GREP
3723 fi
3724
3725
3726 fi
3727 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3728 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3729  GREP="$ac_cv_path_GREP"
3730
3731
3732 { echo "$as_me:$LINENO: checking for egrep" >&5
3733 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3734 if test "${ac_cv_path_EGREP+set}" = set; then
3735   echo $ECHO_N "(cached) $ECHO_C" >&6
3736 else
3737   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3738    then ac_cv_path_EGREP="$GREP -E"
3739    else
3740      # Extract the first word of "egrep" to use in msg output
3741 if test -z "$EGREP"; then
3742 set dummy egrep; ac_prog_name=$2
3743 if test "${ac_cv_path_EGREP+set}" = set; then
3744   echo $ECHO_N "(cached) $ECHO_C" >&6
3745 else
3746   ac_path_EGREP_found=false
3747 # Loop through the user's path and test for each of PROGNAME-LIST
3748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3749 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3750 do
3751   IFS=$as_save_IFS
3752   test -z "$as_dir" && as_dir=.
3753   for ac_prog in egrep; do
3754   for ac_exec_ext in '' $ac_executable_extensions; do
3755     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3756     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3757     # Check for GNU ac_path_EGREP and select it if it is found.
3758   # Check for GNU $ac_path_EGREP
3759 case `"$ac_path_EGREP" --version 2>&1` in
3760 *GNU*)
3761   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3762 *)
3763   ac_count=0
3764   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3765   while :
3766   do
3767     cat "conftest.in" "conftest.in" >"conftest.tmp"
3768     mv "conftest.tmp" "conftest.in"
3769     cp "conftest.in" "conftest.nl"
3770     echo 'EGREP' >> "conftest.nl"
3771     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3772     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3773     ac_count=`expr $ac_count + 1`
3774     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3775       # Best one so far, save it but keep looking for a better one
3776       ac_cv_path_EGREP="$ac_path_EGREP"
3777       ac_path_EGREP_max=$ac_count
3778     fi
3779     # 10*(2^10) chars as input seems more than enough
3780     test $ac_count -gt 10 && break
3781   done
3782   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3783 esac
3784
3785
3786     $ac_path_EGREP_found && break 3
3787   done
3788 done
3789
3790 done
3791 IFS=$as_save_IFS
3792
3793
3794 fi
3795
3796 EGREP="$ac_cv_path_EGREP"
3797 if test -z "$EGREP"; then
3798   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3799 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3800    { (exit 1); exit 1; }; }
3801 fi
3802
3803 else
3804   ac_cv_path_EGREP=$EGREP
3805 fi
3806
3807
3808    fi
3809 fi
3810 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3811 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3812  EGREP="$ac_cv_path_EGREP"
3813
3814
3815 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3816 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3817 if test "${ac_cv_header_stdc+set}" = set; then
3818   echo $ECHO_N "(cached) $ECHO_C" >&6
3819 else
3820   cat >conftest.$ac_ext <<_ACEOF
3821 /* confdefs.h.  */
3822 _ACEOF
3823 cat confdefs.h >>conftest.$ac_ext
3824 cat >>conftest.$ac_ext <<_ACEOF
3825 /* end confdefs.h.  */
3826 #include <stdlib.h>
3827 #include <stdarg.h>
3828 #include <string.h>
3829 #include <float.h>
3830
3831 int
3832 main ()
3833 {
3834
3835   ;
3836   return 0;
3837 }
3838 _ACEOF
3839 rm -f conftest.$ac_objext
3840 if { (ac_try="$ac_compile"
3841 case "(($ac_try" in
3842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3843   *) ac_try_echo=$ac_try;;
3844 esac
3845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3846   (eval "$ac_compile") 2>conftest.er1
3847   ac_status=$?
3848   grep -v '^ *+' conftest.er1 >conftest.err
3849   rm -f conftest.er1
3850   cat conftest.err >&5
3851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3852   (exit $ac_status); } &&
3853          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3854   { (case "(($ac_try" in
3855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3856   *) ac_try_echo=$ac_try;;
3857 esac
3858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3859   (eval "$ac_try") 2>&5
3860   ac_status=$?
3861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3862   (exit $ac_status); }; } &&
3863          { ac_try='test -s conftest.$ac_objext'
3864   { (case "(($ac_try" in
3865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3866   *) ac_try_echo=$ac_try;;
3867 esac
3868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3869   (eval "$ac_try") 2>&5
3870   ac_status=$?
3871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872   (exit $ac_status); }; }; then
3873   ac_cv_header_stdc=yes
3874 else
3875   echo "$as_me: failed program was:" >&5
3876 sed 's/^/| /' conftest.$ac_ext >&5
3877
3878         ac_cv_header_stdc=no
3879 fi
3880
3881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3882
3883 if test $ac_cv_header_stdc = yes; then
3884   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3885   cat >conftest.$ac_ext <<_ACEOF
3886 /* confdefs.h.  */
3887 _ACEOF
3888 cat confdefs.h >>conftest.$ac_ext
3889 cat >>conftest.$ac_ext <<_ACEOF
3890 /* end confdefs.h.  */
3891 #include <string.h>
3892
3893 _ACEOF
3894 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3895   $EGREP "memchr" >/dev/null 2>&1; then
3896   :
3897 else
3898   ac_cv_header_stdc=no
3899 fi
3900 rm -f conftest*
3901
3902 fi
3903
3904 if test $ac_cv_header_stdc = yes; then
3905   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3906   cat >conftest.$ac_ext <<_ACEOF
3907 /* confdefs.h.  */
3908 _ACEOF
3909 cat confdefs.h >>conftest.$ac_ext
3910 cat >>conftest.$ac_ext <<_ACEOF
3911 /* end confdefs.h.  */
3912 #include <stdlib.h>
3913
3914 _ACEOF
3915 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3916   $EGREP "free" >/dev/null 2>&1; then
3917   :
3918 else
3919   ac_cv_header_stdc=no
3920 fi
3921 rm -f conftest*
3922
3923 fi
3924
3925 if test $ac_cv_header_stdc = yes; then
3926   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3927   if test "$cross_compiling" = yes; then
3928   :
3929 else
3930   cat >conftest.$ac_ext <<_ACEOF
3931 /* confdefs.h.  */
3932 _ACEOF
3933 cat confdefs.h >>conftest.$ac_ext
3934 cat >>conftest.$ac_ext <<_ACEOF
3935 /* end confdefs.h.  */
3936 #include <ctype.h>
3937 #include <stdlib.h>
3938 #if ((' ' & 0x0FF) == 0x020)
3939 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3940 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3941 #else
3942 # define ISLOWER(c) \
3943                    (('a' <= (c) && (c) <= 'i') \
3944                      || ('j' <= (c) && (c) <= 'r') \
3945                      || ('s' <= (c) && (c) <= 'z'))
3946 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3947 #endif
3948
3949 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3950 int
3951 main ()
3952 {
3953   int i;
3954   for (i = 0; i < 256; i++)
3955     if (XOR (islower (i), ISLOWER (i))
3956         || toupper (i) != TOUPPER (i))
3957       return 2;
3958   return 0;
3959 }
3960 _ACEOF
3961 rm -f conftest$ac_exeext
3962 if { (ac_try="$ac_link"
3963 case "(($ac_try" in
3964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3965   *) ac_try_echo=$ac_try;;
3966 esac
3967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3968   (eval "$ac_link") 2>&5
3969   ac_status=$?
3970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3972   { (case "(($ac_try" in
3973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3974   *) ac_try_echo=$ac_try;;
3975 esac
3976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3977   (eval "$ac_try") 2>&5
3978   ac_status=$?
3979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3980   (exit $ac_status); }; }; then
3981   :
3982 else
3983   echo "$as_me: program exited with status $ac_status" >&5
3984 echo "$as_me: failed program was:" >&5
3985 sed 's/^/| /' conftest.$ac_ext >&5
3986
3987 ( exit $ac_status )
3988 ac_cv_header_stdc=no
3989 fi
3990 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3991 fi
3992
3993
3994 fi
3995 fi
3996 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3997 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3998 if test $ac_cv_header_stdc = yes; then
3999
4000 cat >>confdefs.h <<\_ACEOF
4001 #define STDC_HEADERS 1
4002 _ACEOF
4003
4004 fi
4005
4006 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4017                   inttypes.h stdint.h unistd.h
4018 do
4019 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4020 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4021 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4022 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4023   echo $ECHO_N "(cached) $ECHO_C" >&6
4024 else
4025   cat >conftest.$ac_ext <<_ACEOF
4026 /* confdefs.h.  */
4027 _ACEOF
4028 cat confdefs.h >>conftest.$ac_ext
4029 cat >>conftest.$ac_ext <<_ACEOF
4030 /* end confdefs.h.  */
4031 $ac_includes_default
4032
4033 #include <$ac_header>
4034 _ACEOF
4035 rm -f conftest.$ac_objext
4036 if { (ac_try="$ac_compile"
4037 case "(($ac_try" in
4038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4039   *) ac_try_echo=$ac_try;;
4040 esac
4041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4042   (eval "$ac_compile") 2>conftest.er1
4043   ac_status=$?
4044   grep -v '^ *+' conftest.er1 >conftest.err
4045   rm -f conftest.er1
4046   cat conftest.err >&5
4047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4048   (exit $ac_status); } &&
4049          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4050   { (case "(($ac_try" in
4051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4052   *) ac_try_echo=$ac_try;;
4053 esac
4054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4055   (eval "$ac_try") 2>&5
4056   ac_status=$?
4057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4058   (exit $ac_status); }; } &&
4059          { ac_try='test -s conftest.$ac_objext'
4060   { (case "(($ac_try" in
4061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4062   *) ac_try_echo=$ac_try;;
4063 esac
4064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4065   (eval "$ac_try") 2>&5
4066   ac_status=$?
4067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4068   (exit $ac_status); }; }; then
4069   eval "$as_ac_Header=yes"
4070 else
4071   echo "$as_me: failed program was:" >&5
4072 sed 's/^/| /' conftest.$ac_ext >&5
4073
4074         eval "$as_ac_Header=no"
4075 fi
4076
4077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4078 fi
4079 ac_res=`eval echo '${'$as_ac_Header'}'`
4080                { echo "$as_me:$LINENO: result: $ac_res" >&5
4081 echo "${ECHO_T}$ac_res" >&6; }
4082 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4083   cat >>confdefs.h <<_ACEOF
4084 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4085 _ACEOF
4086
4087 fi
4088
4089 done
4090
4091
4092 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4093 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4094 if test "${ac_cv_c_bigendian+set}" = set; then
4095   echo $ECHO_N "(cached) $ECHO_C" >&6
4096 else
4097   # See if sys/param.h defines the BYTE_ORDER macro.
4098 cat >conftest.$ac_ext <<_ACEOF
4099 /* confdefs.h.  */
4100 _ACEOF
4101 cat confdefs.h >>conftest.$ac_ext
4102 cat >>conftest.$ac_ext <<_ACEOF
4103 /* end confdefs.h.  */
4104 #include <sys/types.h>
4105 #include <sys/param.h>
4106
4107 int
4108 main ()
4109 {
4110 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4111  bogus endian macros
4112 #endif
4113
4114   ;
4115   return 0;
4116 }
4117 _ACEOF
4118 rm -f conftest.$ac_objext
4119 if { (ac_try="$ac_compile"
4120 case "(($ac_try" in
4121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4122   *) ac_try_echo=$ac_try;;
4123 esac
4124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4125   (eval "$ac_compile") 2>conftest.er1
4126   ac_status=$?
4127   grep -v '^ *+' conftest.er1 >conftest.err
4128   rm -f conftest.er1
4129   cat conftest.err >&5
4130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4131   (exit $ac_status); } &&
4132          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4133   { (case "(($ac_try" in
4134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4135   *) ac_try_echo=$ac_try;;
4136 esac
4137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4138   (eval "$ac_try") 2>&5
4139   ac_status=$?
4140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4141   (exit $ac_status); }; } &&
4142          { ac_try='test -s conftest.$ac_objext'
4143   { (case "(($ac_try" in
4144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4145   *) ac_try_echo=$ac_try;;
4146 esac
4147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4148   (eval "$ac_try") 2>&5
4149   ac_status=$?
4150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4151   (exit $ac_status); }; }; then
4152   # It does; now see whether it defined to BIG_ENDIAN or not.
4153 cat >conftest.$ac_ext <<_ACEOF
4154 /* confdefs.h.  */
4155 _ACEOF
4156 cat confdefs.h >>conftest.$ac_ext
4157 cat >>conftest.$ac_ext <<_ACEOF
4158 /* end confdefs.h.  */
4159 #include <sys/types.h>
4160 #include <sys/param.h>
4161
4162 int
4163 main ()
4164 {
4165 #if BYTE_ORDER != BIG_ENDIAN
4166  not big endian
4167 #endif
4168
4169   ;
4170   return 0;
4171 }
4172 _ACEOF
4173 rm -f conftest.$ac_objext
4174 if { (ac_try="$ac_compile"
4175 case "(($ac_try" in
4176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4177   *) ac_try_echo=$ac_try;;
4178 esac
4179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4180   (eval "$ac_compile") 2>conftest.er1
4181   ac_status=$?
4182   grep -v '^ *+' conftest.er1 >conftest.err
4183   rm -f conftest.er1
4184   cat conftest.err >&5
4185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186   (exit $ac_status); } &&
4187          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4188   { (case "(($ac_try" in
4189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4190   *) ac_try_echo=$ac_try;;
4191 esac
4192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4193   (eval "$ac_try") 2>&5
4194   ac_status=$?
4195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4196   (exit $ac_status); }; } &&
4197          { ac_try='test -s conftest.$ac_objext'
4198   { (case "(($ac_try" in
4199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4200   *) ac_try_echo=$ac_try;;
4201 esac
4202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4203   (eval "$ac_try") 2>&5
4204   ac_status=$?
4205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4206   (exit $ac_status); }; }; then
4207   ac_cv_c_bigendian=yes
4208 else
4209   echo "$as_me: failed program was:" >&5
4210 sed 's/^/| /' conftest.$ac_ext >&5
4211
4212         ac_cv_c_bigendian=no
4213 fi
4214
4215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4216 else
4217   echo "$as_me: failed program was:" >&5
4218 sed 's/^/| /' conftest.$ac_ext >&5
4219
4220         # It does not; compile a test program.
4221 if test "$cross_compiling" = yes; then
4222   # try to guess the endianness by grepping values into an object file
4223   ac_cv_c_bigendian=unknown
4224   cat >conftest.$ac_ext <<_ACEOF
4225 /* confdefs.h.  */
4226 _ACEOF
4227 cat confdefs.h >>conftest.$ac_ext
4228 cat >>conftest.$ac_ext <<_ACEOF
4229 /* end confdefs.h.  */
4230 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4231 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4232 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4233 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4234 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4235 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4236 int
4237 main ()
4238 {
4239  _ascii (); _ebcdic ();
4240   ;
4241   return 0;
4242 }
4243 _ACEOF
4244 rm -f conftest.$ac_objext
4245 if { (ac_try="$ac_compile"
4246 case "(($ac_try" in
4247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4248   *) ac_try_echo=$ac_try;;
4249 esac
4250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4251   (eval "$ac_compile") 2>conftest.er1
4252   ac_status=$?
4253   grep -v '^ *+' conftest.er1 >conftest.err
4254   rm -f conftest.er1
4255   cat conftest.err >&5
4256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4257   (exit $ac_status); } &&
4258          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4259   { (case "(($ac_try" in
4260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4261   *) ac_try_echo=$ac_try;;
4262 esac
4263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4264   (eval "$ac_try") 2>&5
4265   ac_status=$?
4266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267   (exit $ac_status); }; } &&
4268          { ac_try='test -s conftest.$ac_objext'
4269   { (case "(($ac_try" in
4270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4271   *) ac_try_echo=$ac_try;;
4272 esac
4273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4274   (eval "$ac_try") 2>&5
4275   ac_status=$?
4276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277   (exit $ac_status); }; }; then
4278   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4279   ac_cv_c_bigendian=yes
4280 fi
4281 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4282   if test "$ac_cv_c_bigendian" = unknown; then
4283     ac_cv_c_bigendian=no
4284   else
4285     # finding both strings is unlikely to happen, but who knows?
4286     ac_cv_c_bigendian=unknown
4287   fi
4288 fi
4289 else
4290   echo "$as_me: failed program was:" >&5
4291 sed 's/^/| /' conftest.$ac_ext >&5
4292
4293
4294 fi
4295
4296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4297 else
4298   cat >conftest.$ac_ext <<_ACEOF
4299 /* confdefs.h.  */
4300 _ACEOF
4301 cat confdefs.h >>conftest.$ac_ext
4302 cat >>conftest.$ac_ext <<_ACEOF
4303 /* end confdefs.h.  */
4304 $ac_includes_default
4305 int
4306 main ()
4307 {
4308
4309   /* Are we little or big endian?  From Harbison&Steele.  */
4310   union
4311   {
4312     long int l;
4313     char c[sizeof (long int)];
4314   } u;
4315   u.l = 1;
4316   return u.c[sizeof (long int) - 1] == 1;
4317
4318   ;
4319   return 0;
4320 }
4321 _ACEOF
4322 rm -f conftest$ac_exeext
4323 if { (ac_try="$ac_link"
4324 case "(($ac_try" in
4325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4326   *) ac_try_echo=$ac_try;;
4327 esac
4328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4329   (eval "$ac_link") 2>&5
4330   ac_status=$?
4331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4333   { (case "(($ac_try" in
4334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4335   *) ac_try_echo=$ac_try;;
4336 esac
4337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4338   (eval "$ac_try") 2>&5
4339   ac_status=$?
4340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341   (exit $ac_status); }; }; then
4342   ac_cv_c_bigendian=no
4343 else
4344   echo "$as_me: program exited with status $ac_status" >&5
4345 echo "$as_me: failed program was:" >&5
4346 sed 's/^/| /' conftest.$ac_ext >&5
4347
4348 ( exit $ac_status )
4349 ac_cv_c_bigendian=yes
4350 fi
4351 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4352 fi
4353
4354
4355 fi
4356
4357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4358 fi
4359 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4360 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4361 case $ac_cv_c_bigendian in
4362   yes)
4363     ENDIAN=big
4364  ;;
4365   no)
4366     ENDIAN=little
4367  ;;
4368   *)
4369     { { echo "$as_me:$LINENO: error: unknown endianness
4370 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4371 echo "$as_me: error: unknown endianness
4372 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4373    { (exit 1); exit 1; }; } ;;
4374 esac
4375
4376
4377 if test "$cross_compiling" = yes; then
4378   LLVM_CROSS_COMPILING=1
4379
4380
4381 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4382 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4383 if test "${ac_cv_build_exeext+set}" = set; then
4384   echo $ECHO_N "(cached) $ECHO_C" >&6
4385 else
4386   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4387   ac_cv_build_exeext=.exe
4388 else
4389   ac_build_prefix=${build_alias}-
4390
4391   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4392 set dummy ${ac_build_prefix}gcc; ac_word=$2
4393 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4395 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4396   echo $ECHO_N "(cached) $ECHO_C" >&6
4397 else
4398   if test -n "$BUILD_CC"; then
4399   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4400 else
4401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4402 for as_dir in $PATH
4403 do
4404   IFS=$as_save_IFS
4405   test -z "$as_dir" && as_dir=.
4406   for ac_exec_ext in '' $ac_executable_extensions; do
4407   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4408     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4409     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4410     break 2
4411   fi
4412 done
4413 done
4414 IFS=$as_save_IFS
4415
4416 fi
4417 fi
4418 BUILD_CC=$ac_cv_prog_BUILD_CC
4419 if test -n "$BUILD_CC"; then
4420   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4421 echo "${ECHO_T}$BUILD_CC" >&6; }
4422 else
4423   { echo "$as_me:$LINENO: result: no" >&5
4424 echo "${ECHO_T}no" >&6; }
4425 fi
4426
4427
4428   if test -z "$BUILD_CC"; then
4429      # Extract the first word of "gcc", so it can be a program name with args.
4430 set dummy gcc; ac_word=$2
4431 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4433 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4434   echo $ECHO_N "(cached) $ECHO_C" >&6
4435 else
4436   if test -n "$BUILD_CC"; then
4437   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4438 else
4439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4440 for as_dir in $PATH
4441 do
4442   IFS=$as_save_IFS
4443   test -z "$as_dir" && as_dir=.
4444   for ac_exec_ext in '' $ac_executable_extensions; do
4445   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4446     ac_cv_prog_BUILD_CC="gcc"
4447     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4448     break 2
4449   fi
4450 done
4451 done
4452 IFS=$as_save_IFS
4453
4454 fi
4455 fi
4456 BUILD_CC=$ac_cv_prog_BUILD_CC
4457 if test -n "$BUILD_CC"; then
4458   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4459 echo "${ECHO_T}$BUILD_CC" >&6; }
4460 else
4461   { echo "$as_me:$LINENO: result: no" >&5
4462 echo "${ECHO_T}no" >&6; }
4463 fi
4464
4465
4466      if test -z "$BUILD_CC"; then
4467        # Extract the first word of "cc", so it can be a program name with args.
4468 set dummy cc; ac_word=$2
4469 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4471 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4472   echo $ECHO_N "(cached) $ECHO_C" >&6
4473 else
4474   if test -n "$BUILD_CC"; then
4475   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4476 else
4477   ac_prog_rejected=no
4478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4479 for as_dir in $PATH
4480 do
4481   IFS=$as_save_IFS
4482   test -z "$as_dir" && as_dir=.
4483   for ac_exec_ext in '' $ac_executable_extensions; do
4484   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4485     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4486        ac_prog_rejected=yes
4487        continue
4488      fi
4489     ac_cv_prog_BUILD_CC="cc"
4490     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4491     break 2
4492   fi
4493 done
4494 done
4495 IFS=$as_save_IFS
4496
4497 if test $ac_prog_rejected = yes; then
4498   # We found a bogon in the path, so make sure we never use it.
4499   set dummy $ac_cv_prog_BUILD_CC
4500   shift
4501   if test $# != 0; then
4502     # We chose a different compiler from the bogus one.
4503     # However, it has the same basename, so the bogon will be chosen
4504     # first if we set BUILD_CC to just the basename; use the full file name.
4505     shift
4506     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4507   fi
4508 fi
4509 fi
4510 fi
4511 BUILD_CC=$ac_cv_prog_BUILD_CC
4512 if test -n "$BUILD_CC"; then
4513   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4514 echo "${ECHO_T}$BUILD_CC" >&6; }
4515 else
4516   { echo "$as_me:$LINENO: result: no" >&5
4517 echo "${ECHO_T}no" >&6; }
4518 fi
4519
4520
4521      fi
4522   fi
4523   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4524 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4525    { (exit 1); exit 1; }; }
4526   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4527   rm -f conftest*
4528   echo 'int main () { return 0; }' > conftest.$ac_ext
4529   ac_cv_build_exeext=
4530   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4531   (eval $ac_build_link) 2>&5
4532   ac_status=$?
4533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534   (exit $ac_status); }; then
4535     for file in conftest.*; do
4536       case $file in
4537       *.c | *.o | *.obj) ;;
4538       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4539       esac
4540     done
4541   else
4542     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4543 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4544    { (exit 1); exit 1; }; }
4545   fi
4546   rm -f conftest*
4547   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4548 fi
4549 fi
4550
4551 BUILD_EXEEXT=""
4552 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4553 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4554 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4555 ac_build_exeext=$BUILD_EXEEXT
4556
4557 else
4558   LLVM_CROSS_COMPILING=0
4559
4560 fi
4561
4562 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then
4563   cvsbuild="yes"
4564   optimize="no"
4565   CVSBUILD=CVSBUILD=1
4566
4567 else
4568   cvsbuild="no"
4569   optimize="yes"
4570 fi
4571
4572
4573 # Check whether --enable-optimized was given.
4574 if test "${enable_optimized+set}" = set; then
4575   enableval=$enable_optimized;
4576 else
4577   enableval=$optimize
4578 fi
4579
4580 if test ${enableval} = "no" ; then
4581   ENABLE_OPTIMIZED=
4582
4583 else
4584   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4585
4586 fi
4587
4588 # Check whether --enable-assertions was given.
4589 if test "${enable_assertions+set}" = set; then
4590   enableval=$enable_assertions;
4591 else
4592   enableval="yes"
4593 fi
4594
4595 if test ${enableval} = "yes" ; then
4596   DISABLE_ASSERTIONS=
4597
4598 else
4599   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4600
4601 fi
4602
4603 # Check whether --enable-expensive-checks was given.
4604 if test "${enable_expensive_checks+set}" = set; then
4605   enableval=$enable_expensive_checks;
4606 else
4607   enableval="no"
4608 fi
4609
4610 if test ${enableval} = "yes" ; then
4611   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4612
4613   EXPENSIVE_CHECKS=yes
4614
4615 else
4616   ENABLE_EXPENSIVE_CHECKS=
4617
4618   EXPENSIVE_CHECKS=no
4619
4620 fi
4621
4622 # Check whether --enable-debug-runtime was given.
4623 if test "${enable_debug_runtime+set}" = set; then
4624   enableval=$enable_debug_runtime;
4625 else
4626   enableval=no
4627 fi
4628
4629 if test ${enableval} = "no" ; then
4630   DEBUG_RUNTIME=
4631
4632 else
4633   DEBUG_RUNTIME=DEBUG_RUNTIME=1
4634
4635 fi
4636
4637 # Check whether --enable-jit was given.
4638 if test "${enable_jit+set}" = set; then
4639   enableval=$enable_jit;
4640 else
4641   enableval=default
4642 fi
4643
4644 if test ${enableval} = "no"
4645 then
4646   JIT=
4647
4648 else
4649   case "$llvm_cv_target_arch" in
4650     x86)     TARGET_HAS_JIT=1
4651  ;;
4652     Sparc)   TARGET_HAS_JIT=0
4653  ;;
4654     PowerPC) TARGET_HAS_JIT=1
4655  ;;
4656     x86_64)  TARGET_HAS_JIT=1
4657  ;;
4658     Alpha)   TARGET_HAS_JIT=1
4659  ;;
4660     IA64)    TARGET_HAS_JIT=0
4661  ;;
4662     ARM)     TARGET_HAS_JIT=0
4663  ;;
4664     Mips)    TARGET_HAS_JIT=0
4665  ;;
4666     PIC16)   TARGET_HAS_JIT=0
4667  ;;
4668     *)       TARGET_HAS_JIT=0
4669  ;;
4670   esac
4671 fi
4672
4673 # Check whether --enable-doxygen was given.
4674 if test "${enable_doxygen+set}" = set; then
4675   enableval=$enable_doxygen;
4676 else
4677   enableval=default
4678 fi
4679
4680 case "$enableval" in
4681   yes) ENABLE_DOXYGEN=1
4682  ;;
4683   no)  ENABLE_DOXYGEN=0
4684  ;;
4685   default) ENABLE_DOXYGEN=0
4686  ;;
4687   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4688 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4689    { (exit 1); exit 1; }; } ;;
4690 esac
4691
4692 # Check whether --enable-threads was given.
4693 if test "${enable_threads+set}" = set; then
4694   enableval=$enable_threads;
4695 else
4696   enableval=default
4697 fi
4698
4699 case "$enableval" in
4700   yes) ENABLE_THREADS=1
4701  ;;
4702   no)  ENABLE_THREADS=0
4703  ;;
4704   default) ENABLE_THREADS=1
4705  ;;
4706   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4707 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4708    { (exit 1); exit 1; }; } ;;
4709 esac
4710
4711 cat >>confdefs.h <<_ACEOF
4712 #define ENABLE_THREADS $ENABLE_THREADS
4713 _ACEOF
4714
4715
4716 # Check whether --enable-pic was given.
4717 if test "${enable_pic+set}" = set; then
4718   enableval=$enable_pic;
4719 else
4720   enableval=default
4721 fi
4722
4723 case "$enableval" in
4724   yes) ENABLE_PIC=1
4725  ;;
4726   no)  ENABLE_PIC=0
4727  ;;
4728   default) ENABLE_PIC=0
4729  ;;
4730   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4731 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4732    { (exit 1); exit 1; }; } ;;
4733 esac
4734
4735 cat >>confdefs.h <<_ACEOF
4736 #define ENABLE_PIC $ENABLE_PIC
4737 _ACEOF
4738
4739
4740 TARGETS_TO_BUILD=""
4741 # Check whether --enable-targets was given.
4742 if test "${enable_targets+set}" = set; then
4743   enableval=$enable_targets;
4744 else
4745   enableval=all
4746 fi
4747
4748 case "$enableval" in
4749   all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU PIC16 CBackend MSIL CppBackend" ;;
4750   host-only)
4751     case "$llvm_cv_target_arch" in
4752       x86)     TARGETS_TO_BUILD="X86" ;;
4753       x86_64)  TARGETS_TO_BUILD="X86" ;;
4754       Sparc)   TARGETS_TO_BUILD="Sparc" ;;
4755       PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4756       Alpha)   TARGETS_TO_BUILD="Alpha" ;;
4757       IA64)    TARGETS_TO_BUILD="IA64" ;;
4758       ARM)     TARGETS_TO_BUILD="ARM" ;;
4759       Mips)    TARGETS_TO_BUILD="Mips" ;;
4760       CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
4761       PIC16)   TARGETS_TO_BUILD="PIC16" ;;
4762       *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4763 echo "$as_me: error: Can not set target to build" >&2;}
4764    { (exit 1); exit 1; }; } ;;
4765     esac
4766     ;;
4767   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4768       case "$a_target" in
4769         x86)     TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4770         x86_64)  TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4771         sparc)   TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4772         powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4773         alpha)   TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4774         ia64)    TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4775         arm)     TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4776         mips)    TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4777         spu)     TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4778         pic16)   TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4779         cbe)     TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4780         msil)    TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4781         cpp)     TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4782         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4783 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4784    { (exit 1); exit 1; }; } ;;
4785       esac
4786   done
4787   ;;
4788 esac
4789 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4790
4791
4792 # Check whether --enable-cbe-printf-a was given.
4793 if test "${enable_cbe_printf_a+set}" = set; then
4794   enableval=$enable_cbe_printf_a;
4795 else
4796   enableval=default
4797 fi
4798
4799 case "$enableval" in
4800   yes) ENABLE_CBE_PRINTF_A=1
4801  ;;
4802   no)  ENABLE_CBE_PRINTF_A=0
4803  ;;
4804   default)  ENABLE_CBE_PRINTF_A=1
4805  ;;
4806   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4807 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4808    { (exit 1); exit 1; }; } ;;
4809 esac
4810
4811 cat >>confdefs.h <<_ACEOF
4812 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4813 _ACEOF
4814
4815
4816
4817 # Check whether --with-llvmgccdir was given.
4818 if test "${with_llvmgccdir+set}" = set; then
4819   withval=$with_llvmgccdir;
4820 else
4821   withval=default
4822 fi
4823
4824 case "$withval" in
4825   default) WITH_LLVMGCCDIR=default ;;
4826   /* | [A-Za-z]:[\\/]*)      WITH_LLVMGCCDIR=$withval ;;
4827   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4828 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4829    { (exit 1); exit 1; }; } ;;
4830 esac
4831
4832
4833 # Check whether --with-llvmgcc was given.
4834 if test "${with_llvmgcc+set}" = set; then
4835   withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
4836       WITH_LLVMGCCDIR=""
4837 fi
4838
4839
4840
4841 # Check whether --with-llvmgxx was given.
4842 if test "${with_llvmgxx+set}" = set; then
4843   withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
4844     WITH_LLVMGCCDIR=""
4845 fi
4846
4847
4848 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
4849    { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
4850 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
4851    { (exit 1); exit 1; }; };
4852 fi
4853
4854 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
4855    { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
4856 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
4857    { (exit 1); exit 1; }; };
4858 fi
4859
4860
4861 # Check whether --with-extra-options was given.
4862 if test "${with_extra_options+set}" = set; then
4863   withval=$with_extra_options;
4864 else
4865   withval=default
4866 fi
4867
4868 case "$withval" in
4869   default) EXTRA_OPTIONS= ;;
4870   *) EXTRA_OPTIONS=$withval ;;
4871 esac
4872 EXTRA_OPTIONS=$EXTRA_OPTIONS
4873
4874
4875 # Check whether --enable-bindings was given.
4876 if test "${enable_bindings+set}" = set; then
4877   enableval=$enable_bindings;
4878 else
4879   enableval=default
4880 fi
4881
4882 BINDINGS_TO_BUILD=""
4883 case "$enableval" in
4884   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
4885   all ) BINDINGS_TO_BUILD="ocaml" ;;
4886   none | no) BINDINGS_TO_BUILD="" ;;
4887   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
4888       case "$a_binding" in
4889         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
4890         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
4891 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
4892    { (exit 1); exit 1; }; } ;;
4893       esac
4894   done
4895   ;;
4896 esac
4897
4898
4899 # Check whether --with-ocaml-libdir was given.
4900 if test "${with_ocaml_libdir+set}" = set; then
4901   withval=$with_ocaml_libdir;
4902 else
4903   withval=auto
4904 fi
4905
4906 case "$withval" in
4907   auto) with_ocaml_libdir="$withval" ;;
4908   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
4909   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
4910 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
4911    { (exit 1); exit 1; }; } ;;
4912 esac
4913
4914
4915 ac_ext=c
4916 ac_cpp='$CPP $CPPFLAGS'
4917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4920 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4921 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4922 # On Suns, sometimes $CPP names a directory.
4923 if test -n "$CPP" && test -d "$CPP"; then
4924   CPP=
4925 fi
4926 if test -z "$CPP"; then
4927   if test "${ac_cv_prog_CPP+set}" = set; then
4928   echo $ECHO_N "(cached) $ECHO_C" >&6
4929 else
4930       # Double quotes because CPP needs to be expanded
4931     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4932     do
4933       ac_preproc_ok=false
4934 for ac_c_preproc_warn_flag in '' yes
4935 do
4936   # Use a header file that comes with gcc, so configuring glibc
4937   # with a fresh cross-compiler works.
4938   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4939   # <limits.h> exists even on freestanding compilers.
4940   # On the NeXT, cc -E runs the code through the compiler's parser,
4941   # not just through cpp. "Syntax error" is here to catch this case.
4942   cat >conftest.$ac_ext <<_ACEOF
4943 /* confdefs.h.  */
4944 _ACEOF
4945 cat confdefs.h >>conftest.$ac_ext
4946 cat >>conftest.$ac_ext <<_ACEOF
4947 /* end confdefs.h.  */
4948 #ifdef __STDC__
4949 # include <limits.h>
4950 #else
4951 # include <assert.h>
4952 #endif
4953                      Syntax error
4954 _ACEOF
4955 if { (ac_try="$ac_cpp conftest.$ac_ext"
4956 case "(($ac_try" in
4957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4958   *) ac_try_echo=$ac_try;;
4959 esac
4960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4961   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4962   ac_status=$?
4963   grep -v '^ *+' conftest.er1 >conftest.err
4964   rm -f conftest.er1
4965   cat conftest.err >&5
4966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967   (exit $ac_status); } >/dev/null; then
4968   if test -s conftest.err; then
4969     ac_cpp_err=$ac_c_preproc_warn_flag
4970     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4971   else
4972     ac_cpp_err=
4973   fi
4974 else
4975   ac_cpp_err=yes
4976 fi
4977 if test -z "$ac_cpp_err"; then
4978   :
4979 else
4980   echo "$as_me: failed program was:" >&5
4981 sed 's/^/| /' conftest.$ac_ext >&5
4982
4983   # Broken: fails on valid input.
4984 continue
4985 fi
4986
4987 rm -f conftest.err conftest.$ac_ext
4988
4989   # OK, works on sane cases.  Now check whether nonexistent headers
4990   # can be detected and how.
4991   cat >conftest.$ac_ext <<_ACEOF
4992 /* confdefs.h.  */
4993 _ACEOF
4994 cat confdefs.h >>conftest.$ac_ext
4995 cat >>conftest.$ac_ext <<_ACEOF
4996 /* end confdefs.h.  */
4997 #include <ac_nonexistent.h>
4998 _ACEOF
4999 if { (ac_try="$ac_cpp conftest.$ac_ext"
5000 case "(($ac_try" in
5001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5002   *) ac_try_echo=$ac_try;;
5003 esac
5004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5005   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5006   ac_status=$?
5007   grep -v '^ *+' conftest.er1 >conftest.err
5008   rm -f conftest.er1
5009   cat conftest.err >&5
5010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5011   (exit $ac_status); } >/dev/null; then
5012   if test -s conftest.err; then
5013     ac_cpp_err=$ac_c_preproc_warn_flag
5014     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5015   else
5016     ac_cpp_err=
5017   fi
5018 else
5019   ac_cpp_err=yes
5020 fi
5021 if test -z "$ac_cpp_err"; then
5022   # Broken: success on invalid input.
5023 continue
5024 else
5025   echo "$as_me: failed program was:" >&5
5026 sed 's/^/| /' conftest.$ac_ext >&5
5027
5028   # Passes both tests.
5029 ac_preproc_ok=:
5030 break
5031 fi
5032
5033 rm -f conftest.err conftest.$ac_ext
5034
5035 done
5036 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5037 rm -f conftest.err conftest.$ac_ext
5038 if $ac_preproc_ok; then
5039   break
5040 fi
5041
5042     done
5043     ac_cv_prog_CPP=$CPP
5044
5045 fi
5046   CPP=$ac_cv_prog_CPP
5047 else
5048   ac_cv_prog_CPP=$CPP
5049 fi
5050 { echo "$as_me:$LINENO: result: $CPP" >&5
5051 echo "${ECHO_T}$CPP" >&6; }
5052 ac_preproc_ok=false
5053 for ac_c_preproc_warn_flag in '' yes
5054 do
5055   # Use a header file that comes with gcc, so configuring glibc
5056   # with a fresh cross-compiler works.
5057   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5058   # <limits.h> exists even on freestanding compilers.
5059   # On the NeXT, cc -E runs the code through the compiler's parser,
5060   # not just through cpp. "Syntax error" is here to catch this case.
5061   cat >conftest.$ac_ext <<_ACEOF
5062 /* confdefs.h.  */
5063 _ACEOF
5064 cat confdefs.h >>conftest.$ac_ext
5065 cat >>conftest.$ac_ext <<_ACEOF
5066 /* end confdefs.h.  */
5067 #ifdef __STDC__
5068 # include <limits.h>
5069 #else
5070 # include <assert.h>
5071 #endif
5072                      Syntax error
5073 _ACEOF
5074 if { (ac_try="$ac_cpp conftest.$ac_ext"
5075 case "(($ac_try" in
5076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5077   *) ac_try_echo=$ac_try;;
5078 esac
5079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5080   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5081   ac_status=$?
5082   grep -v '^ *+' conftest.er1 >conftest.err
5083   rm -f conftest.er1
5084   cat conftest.err >&5
5085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086   (exit $ac_status); } >/dev/null; then
5087   if test -s conftest.err; then
5088     ac_cpp_err=$ac_c_preproc_warn_flag
5089     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5090   else
5091     ac_cpp_err=
5092   fi
5093 else
5094   ac_cpp_err=yes
5095 fi
5096 if test -z "$ac_cpp_err"; then
5097   :
5098 else
5099   echo "$as_me: failed program was:" >&5
5100 sed 's/^/| /' conftest.$ac_ext >&5
5101
5102   # Broken: fails on valid input.
5103 continue
5104 fi
5105
5106 rm -f conftest.err conftest.$ac_ext
5107
5108   # OK, works on sane cases.  Now check whether nonexistent headers
5109   # can be detected and how.
5110   cat >conftest.$ac_ext <<_ACEOF
5111 /* confdefs.h.  */
5112 _ACEOF
5113 cat confdefs.h >>conftest.$ac_ext
5114 cat >>conftest.$ac_ext <<_ACEOF
5115 /* end confdefs.h.  */
5116 #include <ac_nonexistent.h>
5117 _ACEOF
5118 if { (ac_try="$ac_cpp conftest.$ac_ext"
5119 case "(($ac_try" in
5120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5121   *) ac_try_echo=$ac_try;;
5122 esac
5123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5124   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5125   ac_status=$?
5126   grep -v '^ *+' conftest.er1 >conftest.err
5127   rm -f conftest.er1
5128   cat conftest.err >&5
5129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5130   (exit $ac_status); } >/dev/null; then
5131   if test -s conftest.err; then
5132     ac_cpp_err=$ac_c_preproc_warn_flag
5133     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5134   else
5135     ac_cpp_err=
5136   fi
5137 else
5138   ac_cpp_err=yes
5139 fi
5140 if test -z "$ac_cpp_err"; then
5141   # Broken: success on invalid input.
5142 continue
5143 else
5144   echo "$as_me: failed program was:" >&5
5145 sed 's/^/| /' conftest.$ac_ext >&5
5146
5147   # Passes both tests.
5148 ac_preproc_ok=:
5149 break
5150 fi
5151
5152 rm -f conftest.err conftest.$ac_ext
5153
5154 done
5155 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5156 rm -f conftest.err conftest.$ac_ext
5157 if $ac_preproc_ok; then
5158   :
5159 else
5160   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5161 See \`config.log' for more details." >&5
5162 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5163 See \`config.log' for more details." >&2;}
5164    { (exit 1); exit 1; }; }
5165 fi
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
5173 ac_ext=c
5174 ac_cpp='$CPP $CPPFLAGS'
5175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5178 if test -n "$ac_tool_prefix"; then
5179   for ac_prog in gcc
5180   do
5181     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5182 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5183 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5185 if test "${ac_cv_prog_CC+set}" = set; then
5186   echo $ECHO_N "(cached) $ECHO_C" >&6
5187 else
5188   if test -n "$CC"; then
5189   ac_cv_prog_CC="$CC" # Let the user override the test.
5190 else
5191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5192 for as_dir in $PATH
5193 do
5194   IFS=$as_save_IFS
5195   test -z "$as_dir" && as_dir=.
5196   for ac_exec_ext in '' $ac_executable_extensions; do
5197   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5198     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5199     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5200     break 2
5201   fi
5202 done
5203 done
5204 IFS=$as_save_IFS
5205
5206 fi
5207 fi
5208 CC=$ac_cv_prog_CC
5209 if test -n "$CC"; then
5210   { echo "$as_me:$LINENO: result: $CC" >&5
5211 echo "${ECHO_T}$CC" >&6; }
5212 else
5213   { echo "$as_me:$LINENO: result: no" >&5
5214 echo "${ECHO_T}no" >&6; }
5215 fi
5216
5217
5218     test -n "$CC" && break
5219   done
5220 fi
5221 if test -z "$CC"; then
5222   ac_ct_CC=$CC
5223   for ac_prog in gcc
5224 do
5225   # Extract the first word of "$ac_prog", so it can be a program name with args.
5226 set dummy $ac_prog; ac_word=$2
5227 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5229 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5230   echo $ECHO_N "(cached) $ECHO_C" >&6
5231 else
5232   if test -n "$ac_ct_CC"; then
5233   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5234 else
5235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5236 for as_dir in $PATH
5237 do
5238   IFS=$as_save_IFS
5239   test -z "$as_dir" && as_dir=.
5240   for ac_exec_ext in '' $ac_executable_extensions; do
5241   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5242     ac_cv_prog_ac_ct_CC="$ac_prog"
5243     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5244     break 2
5245   fi
5246 done
5247 done
5248 IFS=$as_save_IFS
5249
5250 fi
5251 fi
5252 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5253 if test -n "$ac_ct_CC"; then
5254   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5255 echo "${ECHO_T}$ac_ct_CC" >&6; }
5256 else
5257   { echo "$as_me:$LINENO: result: no" >&5
5258 echo "${ECHO_T}no" >&6; }
5259 fi
5260
5261
5262   test -n "$ac_ct_CC" && break
5263 done
5264
5265   if test "x$ac_ct_CC" = x; then
5266     CC=""
5267   else
5268     case $cross_compiling:$ac_tool_warned in
5269 yes:)
5270 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5271 whose name does not start with the host triplet.  If you think this
5272 configuration is useful to you, please write to autoconf@gnu.org." >&5
5273 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5274 whose name does not start with the host triplet.  If you think this
5275 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5276 ac_tool_warned=yes ;;
5277 esac
5278     CC=$ac_ct_CC
5279   fi
5280 fi
5281
5282
5283 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5284 See \`config.log' for more details." >&5
5285 echo "$as_me: error: no acceptable C compiler found in \$PATH
5286 See \`config.log' for more details." >&2;}
5287    { (exit 1); exit 1; }; }
5288
5289 # Provide some information about the compiler.
5290 echo "$as_me:$LINENO: checking for C compiler version" >&5
5291 ac_compiler=`set X $ac_compile; echo $2`
5292 { (ac_try="$ac_compiler --version >&5"
5293 case "(($ac_try" in
5294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5295   *) ac_try_echo=$ac_try;;
5296 esac
5297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5298   (eval "$ac_compiler --version >&5") 2>&5
5299   ac_status=$?
5300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5301   (exit $ac_status); }
5302 { (ac_try="$ac_compiler -v >&5"
5303 case "(($ac_try" in
5304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5305   *) ac_try_echo=$ac_try;;
5306 esac
5307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5308   (eval "$ac_compiler -v >&5") 2>&5
5309   ac_status=$?
5310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5311   (exit $ac_status); }
5312 { (ac_try="$ac_compiler -V >&5"
5313 case "(($ac_try" in
5314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5315   *) ac_try_echo=$ac_try;;
5316 esac
5317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5318   (eval "$ac_compiler -V >&5") 2>&5
5319   ac_status=$?
5320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5321   (exit $ac_status); }
5322
5323 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5324 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5325 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5326   echo $ECHO_N "(cached) $ECHO_C" >&6
5327 else
5328   cat >conftest.$ac_ext <<_ACEOF
5329 /* confdefs.h.  */
5330 _ACEOF
5331 cat confdefs.h >>conftest.$ac_ext
5332 cat >>conftest.$ac_ext <<_ACEOF
5333 /* end confdefs.h.  */
5334
5335 int
5336 main ()
5337 {
5338 #ifndef __GNUC__
5339        choke me
5340 #endif
5341
5342   ;
5343   return 0;
5344 }
5345 _ACEOF
5346 rm -f conftest.$ac_objext
5347 if { (ac_try="$ac_compile"
5348 case "(($ac_try" in
5349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5350   *) ac_try_echo=$ac_try;;
5351 esac
5352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5353   (eval "$ac_compile") 2>conftest.er1
5354   ac_status=$?
5355   grep -v '^ *+' conftest.er1 >conftest.err
5356   rm -f conftest.er1
5357   cat conftest.err >&5
5358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359   (exit $ac_status); } &&
5360          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5361   { (case "(($ac_try" in
5362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5363   *) ac_try_echo=$ac_try;;
5364 esac
5365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5366   (eval "$ac_try") 2>&5
5367   ac_status=$?
5368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369   (exit $ac_status); }; } &&
5370          { ac_try='test -s conftest.$ac_objext'
5371   { (case "(($ac_try" in
5372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5373   *) ac_try_echo=$ac_try;;
5374 esac
5375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5376   (eval "$ac_try") 2>&5
5377   ac_status=$?
5378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5379   (exit $ac_status); }; }; then
5380   ac_compiler_gnu=yes
5381 else
5382   echo "$as_me: failed program was:" >&5
5383 sed 's/^/| /' conftest.$ac_ext >&5
5384
5385         ac_compiler_gnu=no
5386 fi
5387
5388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5389 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5390
5391 fi
5392 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5393 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5394 GCC=`test $ac_compiler_gnu = yes && echo yes`
5395 ac_test_CFLAGS=${CFLAGS+set}
5396 ac_save_CFLAGS=$CFLAGS
5397 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5398 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5399 if test "${ac_cv_prog_cc_g+set}" = set; then
5400   echo $ECHO_N "(cached) $ECHO_C" >&6
5401 else
5402   ac_save_c_werror_flag=$ac_c_werror_flag
5403    ac_c_werror_flag=yes
5404    ac_cv_prog_cc_g=no
5405    CFLAGS="-g"
5406    cat >conftest.$ac_ext <<_ACEOF
5407 /* confdefs.h.  */
5408 _ACEOF
5409 cat confdefs.h >>conftest.$ac_ext
5410 cat >>conftest.$ac_ext <<_ACEOF
5411 /* end confdefs.h.  */
5412
5413 int
5414 main ()
5415 {
5416
5417   ;
5418   return 0;
5419 }
5420 _ACEOF
5421 rm -f conftest.$ac_objext
5422 if { (ac_try="$ac_compile"
5423 case "(($ac_try" in
5424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5425   *) ac_try_echo=$ac_try;;
5426 esac
5427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5428   (eval "$ac_compile") 2>conftest.er1
5429   ac_status=$?
5430   grep -v '^ *+' conftest.er1 >conftest.err
5431   rm -f conftest.er1
5432   cat conftest.err >&5
5433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5434   (exit $ac_status); } &&
5435          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5436   { (case "(($ac_try" in
5437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5438   *) ac_try_echo=$ac_try;;
5439 esac
5440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5441   (eval "$ac_try") 2>&5
5442   ac_status=$?
5443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444   (exit $ac_status); }; } &&
5445          { ac_try='test -s conftest.$ac_objext'
5446   { (case "(($ac_try" in
5447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5448   *) ac_try_echo=$ac_try;;
5449 esac
5450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5451   (eval "$ac_try") 2>&5
5452   ac_status=$?
5453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5454   (exit $ac_status); }; }; then
5455   ac_cv_prog_cc_g=yes
5456 else
5457   echo "$as_me: failed program was:" >&5
5458 sed 's/^/| /' conftest.$ac_ext >&5
5459
5460         CFLAGS=""
5461       cat >conftest.$ac_ext <<_ACEOF
5462 /* confdefs.h.  */
5463 _ACEOF
5464 cat confdefs.h >>conftest.$ac_ext
5465 cat >>conftest.$ac_ext <<_ACEOF
5466 /* end confdefs.h.  */
5467
5468 int
5469 main ()
5470 {
5471
5472   ;
5473   return 0;
5474 }
5475 _ACEOF
5476 rm -f conftest.$ac_objext
5477 if { (ac_try="$ac_compile"
5478 case "(($ac_try" in
5479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5480   *) ac_try_echo=$ac_try;;
5481 esac
5482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5483   (eval "$ac_compile") 2>conftest.er1
5484   ac_status=$?
5485   grep -v '^ *+' conftest.er1 >conftest.err
5486   rm -f conftest.er1
5487   cat conftest.err >&5
5488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5489   (exit $ac_status); } &&
5490          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5491   { (case "(($ac_try" in
5492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5493   *) ac_try_echo=$ac_try;;
5494 esac
5495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5496   (eval "$ac_try") 2>&5
5497   ac_status=$?
5498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5499   (exit $ac_status); }; } &&
5500          { ac_try='test -s conftest.$ac_objext'
5501   { (case "(($ac_try" in
5502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5503   *) ac_try_echo=$ac_try;;
5504 esac
5505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5506   (eval "$ac_try") 2>&5
5507   ac_status=$?
5508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5509   (exit $ac_status); }; }; then
5510   :
5511 else
5512   echo "$as_me: failed program was:" >&5
5513 sed 's/^/| /' conftest.$ac_ext >&5
5514
5515         ac_c_werror_flag=$ac_save_c_werror_flag
5516          CFLAGS="-g"
5517          cat >conftest.$ac_ext <<_ACEOF
5518 /* confdefs.h.  */
5519 _ACEOF
5520 cat confdefs.h >>conftest.$ac_ext
5521 cat >>conftest.$ac_ext <<_ACEOF
5522 /* end confdefs.h.  */
5523
5524 int
5525 main ()
5526 {
5527
5528   ;
5529   return 0;
5530 }
5531 _ACEOF
5532 rm -f conftest.$ac_objext
5533 if { (ac_try="$ac_compile"
5534 case "(($ac_try" in
5535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5536   *) ac_try_echo=$ac_try;;
5537 esac
5538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5539   (eval "$ac_compile") 2>conftest.er1
5540   ac_status=$?
5541   grep -v '^ *+' conftest.er1 >conftest.err
5542   rm -f conftest.er1
5543   cat conftest.err >&5
5544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5545   (exit $ac_status); } &&
5546          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5547   { (case "(($ac_try" in
5548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5549   *) ac_try_echo=$ac_try;;
5550 esac
5551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5552   (eval "$ac_try") 2>&5
5553   ac_status=$?
5554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555   (exit $ac_status); }; } &&
5556          { ac_try='test -s conftest.$ac_objext'
5557   { (case "(($ac_try" in
5558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5559   *) ac_try_echo=$ac_try;;
5560 esac
5561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5562   (eval "$ac_try") 2>&5
5563   ac_status=$?
5564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565   (exit $ac_status); }; }; then
5566   ac_cv_prog_cc_g=yes
5567 else
5568   echo "$as_me: failed program was:" >&5
5569 sed 's/^/| /' conftest.$ac_ext >&5
5570
5571
5572 fi
5573
5574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5575 fi
5576
5577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5578 fi
5579
5580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5581    ac_c_werror_flag=$ac_save_c_werror_flag
5582 fi
5583 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5584 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5585 if test "$ac_test_CFLAGS" = set; then
5586   CFLAGS=$ac_save_CFLAGS
5587 elif test $ac_cv_prog_cc_g = yes; then
5588   if test "$GCC" = yes; then
5589     CFLAGS="-g -O2"
5590   else
5591     CFLAGS="-g"
5592   fi
5593 else
5594   if test "$GCC" = yes; then
5595     CFLAGS="-O2"
5596   else
5597     CFLAGS=
5598   fi
5599 fi
5600 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5601 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5602 if test "${ac_cv_prog_cc_c89+set}" = set; then
5603   echo $ECHO_N "(cached) $ECHO_C" >&6
5604 else
5605   ac_cv_prog_cc_c89=no
5606 ac_save_CC=$CC
5607 cat >conftest.$ac_ext <<_ACEOF
5608 /* confdefs.h.  */
5609 _ACEOF
5610 cat confdefs.h >>conftest.$ac_ext
5611 cat >>conftest.$ac_ext <<_ACEOF
5612 /* end confdefs.h.  */
5613 #include <stdarg.h>
5614 #include <stdio.h>
5615 #include <sys/types.h>
5616 #include <sys/stat.h>
5617 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5618 struct buf { int x; };
5619 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5620 static char *e (p, i)
5621      char **p;
5622      int i;
5623 {
5624   return p[i];
5625 }
5626 static char *f (char * (*g) (char **, int), char **p, ...)
5627 {
5628   char *s;
5629   va_list v;
5630   va_start (v,p);
5631   s = g (p, va_arg (v,int));
5632   va_end (v);
5633   return s;
5634 }
5635
5636 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5637    function prototypes and stuff, but not '\xHH' hex character constants.
5638    These don't provoke an error unfortunately, instead are silently treated
5639    as 'x'.  The following induces an error, until -std is added to get
5640    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5641    array size at least.  It's necessary to write '\x00'==0 to get something
5642    that's true only with -std.  */
5643 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5644
5645 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5646    inside strings and character constants.  */
5647 #define FOO(x) 'x'
5648 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5649
5650 int test (int i, double x);
5651 struct s1 {int (*f) (int a);};
5652 struct s2 {int (*f) (double a);};
5653 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5654 int argc;
5655 char **argv;
5656 int
5657 main ()
5658 {
5659 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5660   ;
5661   return 0;
5662 }
5663 _ACEOF
5664 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5665         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5666 do
5667   CC="$ac_save_CC $ac_arg"
5668   rm -f conftest.$ac_objext
5669 if { (ac_try="$ac_compile"
5670 case "(($ac_try" in
5671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5672   *) ac_try_echo=$ac_try;;
5673 esac
5674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5675   (eval "$ac_compile") 2>conftest.er1
5676   ac_status=$?
5677   grep -v '^ *+' conftest.er1 >conftest.err
5678   rm -f conftest.er1
5679   cat conftest.err >&5
5680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5681   (exit $ac_status); } &&
5682          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5683   { (case "(($ac_try" in
5684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5685   *) ac_try_echo=$ac_try;;
5686 esac
5687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5688   (eval "$ac_try") 2>&5
5689   ac_status=$?
5690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691   (exit $ac_status); }; } &&
5692          { ac_try='test -s conftest.$ac_objext'
5693   { (case "(($ac_try" in
5694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5695   *) ac_try_echo=$ac_try;;
5696 esac
5697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5698   (eval "$ac_try") 2>&5
5699   ac_status=$?
5700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5701   (exit $ac_status); }; }; then
5702   ac_cv_prog_cc_c89=$ac_arg
5703 else
5704   echo "$as_me: failed program was:" >&5
5705 sed 's/^/| /' conftest.$ac_ext >&5
5706
5707
5708 fi
5709
5710 rm -f core conftest.err conftest.$ac_objext
5711   test "x$ac_cv_prog_cc_c89" != "xno" && break
5712 done
5713 rm -f conftest.$ac_ext
5714 CC=$ac_save_CC
5715
5716 fi
5717 # AC_CACHE_VAL
5718 case "x$ac_cv_prog_cc_c89" in
5719   x)
5720     { echo "$as_me:$LINENO: result: none needed" >&5
5721 echo "${ECHO_T}none needed" >&6; } ;;
5722   xno)
5723     { echo "$as_me:$LINENO: result: unsupported" >&5
5724 echo "${ECHO_T}unsupported" >&6; } ;;
5725   *)
5726     CC="$CC $ac_cv_prog_cc_c89"
5727     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5728 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5729 esac
5730
5731
5732 ac_ext=c
5733 ac_cpp='$CPP $CPPFLAGS'
5734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5737
5738 ac_ext=cpp
5739 ac_cpp='$CXXCPP $CPPFLAGS'
5740 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5741 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5742 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5743 if test -z "$CXX"; then
5744   if test -n "$CCC"; then
5745     CXX=$CCC
5746   else
5747     if test -n "$ac_tool_prefix"; then
5748   for ac_prog in g++
5749   do
5750     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5751 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5752 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5754 if test "${ac_cv_prog_CXX+set}" = set; then
5755   echo $ECHO_N "(cached) $ECHO_C" >&6
5756 else
5757   if test -n "$CXX"; then
5758   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5759 else
5760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5761 for as_dir in $PATH
5762 do
5763   IFS=$as_save_IFS
5764   test -z "$as_dir" && as_dir=.
5765   for ac_exec_ext in '' $ac_executable_extensions; do
5766   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5767     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5768     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5769     break 2
5770   fi
5771 done
5772 done
5773 IFS=$as_save_IFS
5774
5775 fi
5776 fi
5777 CXX=$ac_cv_prog_CXX
5778 if test -n "$CXX"; then
5779   { echo "$as_me:$LINENO: result: $CXX" >&5
5780 echo "${ECHO_T}$CXX" >&6; }
5781 else
5782   { echo "$as_me:$LINENO: result: no" >&5
5783 echo "${ECHO_T}no" >&6; }
5784 fi
5785
5786
5787     test -n "$CXX" && break
5788   done
5789 fi
5790 if test -z "$CXX"; then
5791   ac_ct_CXX=$CXX
5792   for ac_prog in g++
5793 do
5794   # Extract the first word of "$ac_prog", so it can be a program name with args.
5795 set dummy $ac_prog; ac_word=$2
5796 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5798 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5799   echo $ECHO_N "(cached) $ECHO_C" >&6
5800 else
5801   if test -n "$ac_ct_CXX"; then
5802   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5803 else
5804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5805 for as_dir in $PATH
5806 do
5807   IFS=$as_save_IFS
5808   test -z "$as_dir" && as_dir=.
5809   for ac_exec_ext in '' $ac_executable_extensions; do
5810   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5811     ac_cv_prog_ac_ct_CXX="$ac_prog"
5812     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5813     break 2
5814   fi
5815 done
5816 done
5817 IFS=$as_save_IFS
5818
5819 fi
5820 fi
5821 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5822 if test -n "$ac_ct_CXX"; then
5823   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5824 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5825 else
5826   { echo "$as_me:$LINENO: result: no" >&5
5827 echo "${ECHO_T}no" >&6; }
5828 fi
5829
5830
5831   test -n "$ac_ct_CXX" && break
5832 done
5833
5834   if test "x$ac_ct_CXX" = x; then
5835     CXX="g++"
5836   else
5837     case $cross_compiling:$ac_tool_warned in
5838 yes:)
5839 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5840 whose name does not start with the host triplet.  If you think this
5841 configuration is useful to you, please write to autoconf@gnu.org." >&5
5842 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5843 whose name does not start with the host triplet.  If you think this
5844 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5845 ac_tool_warned=yes ;;
5846 esac
5847     CXX=$ac_ct_CXX
5848   fi
5849 fi
5850
5851   fi
5852 fi
5853 # Provide some information about the compiler.
5854 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5855 ac_compiler=`set X $ac_compile; echo $2`
5856 { (ac_try="$ac_compiler --version >&5"
5857 case "(($ac_try" in
5858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5859   *) ac_try_echo=$ac_try;;
5860 esac
5861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5862   (eval "$ac_compiler --version >&5") 2>&5
5863   ac_status=$?
5864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5865   (exit $ac_status); }
5866 { (ac_try="$ac_compiler -v >&5"
5867 case "(($ac_try" in
5868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5869   *) ac_try_echo=$ac_try;;
5870 esac
5871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5872   (eval "$ac_compiler -v >&5") 2>&5
5873   ac_status=$?
5874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5875   (exit $ac_status); }
5876 { (ac_try="$ac_compiler -V >&5"
5877 case "(($ac_try" in
5878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5879   *) ac_try_echo=$ac_try;;
5880 esac
5881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5882   (eval "$ac_compiler -V >&5") 2>&5
5883   ac_status=$?
5884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885   (exit $ac_status); }
5886
5887 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5888 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5889 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5890   echo $ECHO_N "(cached) $ECHO_C" >&6
5891 else
5892   cat >conftest.$ac_ext <<_ACEOF
5893 /* confdefs.h.  */
5894 _ACEOF
5895 cat confdefs.h >>conftest.$ac_ext
5896 cat >>conftest.$ac_ext <<_ACEOF
5897 /* end confdefs.h.  */
5898
5899 int
5900 main ()
5901 {
5902 #ifndef __GNUC__
5903        choke me
5904 #endif
5905
5906   ;
5907   return 0;
5908 }
5909 _ACEOF
5910 rm -f conftest.$ac_objext
5911 if { (ac_try="$ac_compile"
5912 case "(($ac_try" in
5913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5914   *) ac_try_echo=$ac_try;;
5915 esac
5916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5917   (eval "$ac_compile") 2>conftest.er1
5918   ac_status=$?
5919   grep -v '^ *+' conftest.er1 >conftest.err
5920   rm -f conftest.er1
5921   cat conftest.err >&5
5922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5923   (exit $ac_status); } &&
5924          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5925   { (case "(($ac_try" in
5926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5927   *) ac_try_echo=$ac_try;;
5928 esac
5929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5930   (eval "$ac_try") 2>&5
5931   ac_status=$?
5932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933   (exit $ac_status); }; } &&
5934          { ac_try='test -s conftest.$ac_objext'
5935   { (case "(($ac_try" in
5936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5937   *) ac_try_echo=$ac_try;;
5938 esac
5939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5940   (eval "$ac_try") 2>&5
5941   ac_status=$?
5942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943   (exit $ac_status); }; }; then
5944   ac_compiler_gnu=yes
5945 else
5946   echo "$as_me: failed program was:" >&5
5947 sed 's/^/| /' conftest.$ac_ext >&5
5948
5949         ac_compiler_gnu=no
5950 fi
5951
5952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5953 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5954
5955 fi
5956 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5957 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5958 GXX=`test $ac_compiler_gnu = yes && echo yes`
5959 ac_test_CXXFLAGS=${CXXFLAGS+set}
5960 ac_save_CXXFLAGS=$CXXFLAGS
5961 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5962 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5963 if test "${ac_cv_prog_cxx_g+set}" = set; then
5964   echo $ECHO_N "(cached) $ECHO_C" >&6
5965 else
5966   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5967    ac_cxx_werror_flag=yes
5968    ac_cv_prog_cxx_g=no
5969    CXXFLAGS="-g"
5970    cat >conftest.$ac_ext <<_ACEOF
5971 /* confdefs.h.  */
5972 _ACEOF
5973 cat confdefs.h >>conftest.$ac_ext
5974 cat >>conftest.$ac_ext <<_ACEOF
5975 /* end confdefs.h.  */
5976
5977 int
5978 main ()
5979 {
5980
5981   ;
5982   return 0;
5983 }
5984 _ACEOF
5985 rm -f conftest.$ac_objext
5986 if { (ac_try="$ac_compile"
5987 case "(($ac_try" in
5988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5989   *) ac_try_echo=$ac_try;;
5990 esac
5991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5992   (eval "$ac_compile") 2>conftest.er1
5993   ac_status=$?
5994   grep -v '^ *+' conftest.er1 >conftest.err
5995   rm -f conftest.er1
5996   cat conftest.err >&5
5997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998   (exit $ac_status); } &&
5999          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6000   { (case "(($ac_try" in
6001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6002   *) ac_try_echo=$ac_try;;
6003 esac
6004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6005   (eval "$ac_try") 2>&5
6006   ac_status=$?
6007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008   (exit $ac_status); }; } &&
6009          { ac_try='test -s conftest.$ac_objext'
6010   { (case "(($ac_try" in
6011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6012   *) ac_try_echo=$ac_try;;
6013 esac
6014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6015   (eval "$ac_try") 2>&5
6016   ac_status=$?
6017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018   (exit $ac_status); }; }; then
6019   ac_cv_prog_cxx_g=yes
6020 else
6021   echo "$as_me: failed program was:" >&5
6022 sed 's/^/| /' conftest.$ac_ext >&5
6023
6024         CXXFLAGS=""
6025       cat >conftest.$ac_ext <<_ACEOF
6026 /* confdefs.h.  */
6027 _ACEOF
6028 cat confdefs.h >>conftest.$ac_ext
6029 cat >>conftest.$ac_ext <<_ACEOF
6030 /* end confdefs.h.  */
6031
6032 int
6033 main ()
6034 {
6035
6036   ;
6037   return 0;
6038 }
6039 _ACEOF
6040 rm -f conftest.$ac_objext
6041 if { (ac_try="$ac_compile"
6042 case "(($ac_try" in
6043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6044   *) ac_try_echo=$ac_try;;
6045 esac
6046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6047   (eval "$ac_compile") 2>conftest.er1
6048   ac_status=$?
6049   grep -v '^ *+' conftest.er1 >conftest.err
6050   rm -f conftest.er1
6051   cat conftest.err >&5
6052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053   (exit $ac_status); } &&
6054          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6055   { (case "(($ac_try" in
6056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6057   *) ac_try_echo=$ac_try;;
6058 esac
6059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6060   (eval "$ac_try") 2>&5
6061   ac_status=$?
6062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6063   (exit $ac_status); }; } &&
6064          { ac_try='test -s conftest.$ac_objext'
6065   { (case "(($ac_try" in
6066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6067   *) ac_try_echo=$ac_try;;
6068 esac
6069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6070   (eval "$ac_try") 2>&5
6071   ac_status=$?
6072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6073   (exit $ac_status); }; }; then
6074   :
6075 else
6076   echo "$as_me: failed program was:" >&5
6077 sed 's/^/| /' conftest.$ac_ext >&5
6078
6079         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6080          CXXFLAGS="-g"
6081          cat >conftest.$ac_ext <<_ACEOF
6082 /* confdefs.h.  */
6083 _ACEOF
6084 cat confdefs.h >>conftest.$ac_ext
6085 cat >>conftest.$ac_ext <<_ACEOF
6086 /* end confdefs.h.  */
6087
6088 int
6089 main ()
6090 {
6091
6092   ;
6093   return 0;
6094 }
6095 _ACEOF
6096 rm -f conftest.$ac_objext
6097 if { (ac_try="$ac_compile"
6098 case "(($ac_try" in
6099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6100   *) ac_try_echo=$ac_try;;
6101 esac
6102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6103   (eval "$ac_compile") 2>conftest.er1
6104   ac_status=$?
6105   grep -v '^ *+' conftest.er1 >conftest.err
6106   rm -f conftest.er1
6107   cat conftest.err >&5
6108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109   (exit $ac_status); } &&
6110          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6111   { (case "(($ac_try" in
6112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6113   *) ac_try_echo=$ac_try;;
6114 esac
6115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6116   (eval "$ac_try") 2>&5
6117   ac_status=$?
6118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119   (exit $ac_status); }; } &&
6120          { ac_try='test -s conftest.$ac_objext'
6121   { (case "(($ac_try" in
6122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6123   *) ac_try_echo=$ac_try;;
6124 esac
6125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6126   (eval "$ac_try") 2>&5
6127   ac_status=$?
6128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129   (exit $ac_status); }; }; then
6130   ac_cv_prog_cxx_g=yes
6131 else
6132   echo "$as_me: failed program was:" >&5
6133 sed 's/^/| /' conftest.$ac_ext >&5
6134
6135
6136 fi
6137
6138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6139 fi
6140
6141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6142 fi
6143
6144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6145    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6146 fi
6147 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6148 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6149 if test "$ac_test_CXXFLAGS" = set; then
6150   CXXFLAGS=$ac_save_CXXFLAGS
6151 elif test $ac_cv_prog_cxx_g = yes; then
6152   if test "$GXX" = yes; then
6153     CXXFLAGS="-g -O2"
6154   else
6155     CXXFLAGS="-g"
6156   fi
6157 else
6158   if test "$GXX" = yes; then
6159     CXXFLAGS="-O2"
6160   else
6161     CXXFLAGS=
6162   fi
6163 fi
6164 ac_ext=c
6165 ac_cpp='$CPP $CPPFLAGS'
6166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6169
6170 { echo "$as_me:$LINENO: checking " >&5
6171 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6172 if test "${ac_cv_has_flex+set}" = set; then
6173   echo $ECHO_N "(cached) $ECHO_C" >&6
6174 else
6175   for ac_prog in flex lex
6176 do
6177   # Extract the first word of "$ac_prog", so it can be a program name with args.
6178 set dummy $ac_prog; ac_word=$2
6179 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6181 if test "${ac_cv_prog_LEX+set}" = set; then
6182   echo $ECHO_N "(cached) $ECHO_C" >&6
6183 else
6184   if test -n "$LEX"; then
6185   ac_cv_prog_LEX="$LEX" # Let the user override the test.
6186 else
6187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6188 for as_dir in $PATH
6189 do
6190   IFS=$as_save_IFS
6191   test -z "$as_dir" && as_dir=.
6192   for ac_exec_ext in '' $ac_executable_extensions; do
6193   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6194     ac_cv_prog_LEX="$ac_prog"
6195     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6196     break 2
6197   fi
6198 done
6199 done
6200 IFS=$as_save_IFS
6201
6202 fi
6203 fi
6204 LEX=$ac_cv_prog_LEX
6205 if test -n "$LEX"; then
6206   { echo "$as_me:$LINENO: result: $LEX" >&5
6207 echo "${ECHO_T}$LEX" >&6; }
6208 else
6209   { echo "$as_me:$LINENO: result: no" >&5
6210 echo "${ECHO_T}no" >&6; }
6211 fi
6212
6213
6214   test -n "$LEX" && break
6215 done
6216 test -n "$LEX" || LEX=":"
6217
6218 if test -z "$LEXLIB"
6219 then
6220   { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6221 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6222 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6223   echo $ECHO_N "(cached) $ECHO_C" >&6
6224 else
6225   ac_check_lib_save_LIBS=$LIBS
6226 LIBS="-lfl  $LIBS"
6227 cat >conftest.$ac_ext <<_ACEOF
6228 /* confdefs.h.  */
6229 _ACEOF
6230 cat confdefs.h >>conftest.$ac_ext
6231 cat >>conftest.$ac_ext <<_ACEOF
6232 /* end confdefs.h.  */
6233
6234 /* Override any GCC internal prototype to avoid an error.
6235    Use char because int might match the return type of a GCC
6236    builtin and then its argument prototype would still apply.  */
6237 #ifdef __cplusplus
6238 extern "C"
6239 #endif
6240 char yywrap ();
6241 int
6242 main ()
6243 {
6244 return yywrap ();
6245   ;
6246   return 0;
6247 }
6248 _ACEOF
6249 rm -f conftest.$ac_objext conftest$ac_exeext
6250 if { (ac_try="$ac_link"
6251 case "(($ac_try" in
6252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6253   *) ac_try_echo=$ac_try;;
6254 esac
6255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6256   (eval "$ac_link") 2>conftest.er1
6257   ac_status=$?
6258   grep -v '^ *+' conftest.er1 >conftest.err
6259   rm -f conftest.er1
6260   cat conftest.err >&5
6261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6262   (exit $ac_status); } &&
6263          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6264   { (case "(($ac_try" in
6265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6266   *) ac_try_echo=$ac_try;;
6267 esac
6268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6269   (eval "$ac_try") 2>&5
6270   ac_status=$?
6271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6272   (exit $ac_status); }; } &&
6273          { ac_try='test -s conftest$ac_exeext'
6274   { (case "(($ac_try" in
6275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6276   *) ac_try_echo=$ac_try;;
6277 esac
6278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6279   (eval "$ac_try") 2>&5
6280   ac_status=$?
6281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6282   (exit $ac_status); }; }; then
6283   ac_cv_lib_fl_yywrap=yes
6284 else
6285   echo "$as_me: failed program was:" >&5
6286 sed 's/^/| /' conftest.$ac_ext >&5
6287
6288         ac_cv_lib_fl_yywrap=no
6289 fi
6290
6291 rm -f core conftest.err conftest.$ac_objext \
6292       conftest$ac_exeext conftest.$ac_ext
6293 LIBS=$ac_check_lib_save_LIBS
6294 fi
6295 { echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6296 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6297 if test $ac_cv_lib_fl_yywrap = yes; then
6298   LEXLIB="-lfl"
6299 else
6300   { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6301 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6302 if test "${ac_cv_lib_l_yywrap+set}" = set; then
6303   echo $ECHO_N "(cached) $ECHO_C" >&6
6304 else
6305   ac_check_lib_save_LIBS=$LIBS
6306 LIBS="-ll  $LIBS"
6307 cat >conftest.$ac_ext <<_ACEOF
6308 /* confdefs.h.  */
6309 _ACEOF
6310 cat confdefs.h >>conftest.$ac_ext
6311 cat >>conftest.$ac_ext <<_ACEOF
6312 /* end confdefs.h.  */
6313
6314 /* Override any GCC internal prototype to avoid an error.
6315    Use char because int might match the return type of a GCC
6316    builtin and then its argument prototype would still apply.  */
6317 #ifdef __cplusplus
6318 extern "C"
6319 #endif
6320 char yywrap ();
6321 int
6322 main ()
6323 {
6324 return yywrap ();
6325   ;
6326   return 0;
6327 }
6328 _ACEOF
6329 rm -f conftest.$ac_objext conftest$ac_exeext
6330 if { (ac_try="$ac_link"
6331 case "(($ac_try" in
6332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6333   *) ac_try_echo=$ac_try;;
6334 esac
6335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6336   (eval "$ac_link") 2>conftest.er1
6337   ac_status=$?
6338   grep -v '^ *+' conftest.er1 >conftest.err
6339   rm -f conftest.er1
6340   cat conftest.err >&5
6341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6342   (exit $ac_status); } &&
6343          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6344   { (case "(($ac_try" in
6345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6346   *) ac_try_echo=$ac_try;;
6347 esac
6348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6349   (eval "$ac_try") 2>&5
6350   ac_status=$?
6351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6352   (exit $ac_status); }; } &&
6353          { ac_try='test -s conftest$ac_exeext'
6354   { (case "(($ac_try" in
6355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6356   *) ac_try_echo=$ac_try;;
6357 esac
6358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6359   (eval "$ac_try") 2>&5
6360   ac_status=$?
6361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362   (exit $ac_status); }; }; then
6363   ac_cv_lib_l_yywrap=yes
6364 else
6365   echo "$as_me: failed program was:" >&5
6366 sed 's/^/| /' conftest.$ac_ext >&5
6367
6368         ac_cv_lib_l_yywrap=no
6369 fi
6370
6371 rm -f core conftest.err conftest.$ac_objext \
6372       conftest$ac_exeext conftest.$ac_ext
6373 LIBS=$ac_check_lib_save_LIBS
6374 fi
6375 { echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6376 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6377 if test $ac_cv_lib_l_yywrap = yes; then
6378   LEXLIB="-ll"
6379 fi
6380
6381 fi
6382
6383 fi
6384
6385 if test "x$LEX" != "x:"; then
6386   { echo "$as_me:$LINENO: checking lex output file root" >&5
6387 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6388 if test "${ac_cv_prog_lex_root+set}" = set; then
6389   echo $ECHO_N "(cached) $ECHO_C" >&6
6390 else
6391   # The minimal lex program is just a single line: %%.  But some broken lexes
6392 # (Solaris, I think it was) want two %% lines, so accommodate them.
6393 cat >conftest.l <<_ACEOF
6394 %%
6395 %%
6396 _ACEOF
6397 { (ac_try="$LEX conftest.l"
6398 case "(($ac_try" in
6399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6400   *) ac_try_echo=$ac_try;;
6401 esac
6402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6403   (eval "$LEX conftest.l") 2>&5
6404   ac_status=$?
6405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6406   (exit $ac_status); }
6407 if test -f lex.yy.c; then
6408   ac_cv_prog_lex_root=lex.yy
6409 elif test -f lexyy.c; then
6410   ac_cv_prog_lex_root=lexyy
6411 else
6412   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6413 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6414    { (exit 1); exit 1; }; }
6415 fi
6416 fi
6417 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6418 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
6419 rm -f conftest.l
6420 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6421
6422 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6423 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6424 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6425   echo $ECHO_N "(cached) $ECHO_C" >&6
6426 else
6427   # POSIX says lex can declare yytext either as a pointer or an array; the
6428 # default is implementation-dependent. Figure out which it is, since
6429 # not all implementations provide the %pointer and %array declarations.
6430 ac_cv_prog_lex_yytext_pointer=no
6431 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6432 ac_save_LIBS=$LIBS
6433 LIBS="$LIBS $LEXLIB"
6434 cat >conftest.$ac_ext <<_ACEOF
6435 `cat $LEX_OUTPUT_ROOT.c`
6436 _ACEOF
6437 rm -f conftest.$ac_objext conftest$ac_exeext
6438 if { (ac_try="$ac_link"
6439 case "(($ac_try" in
6440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6441   *) ac_try_echo=$ac_try;;
6442 esac
6443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6444   (eval "$ac_link") 2>conftest.er1
6445   ac_status=$?
6446   grep -v '^ *+' conftest.er1 >conftest.err
6447   rm -f conftest.er1
6448   cat conftest.err >&5
6449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6450   (exit $ac_status); } &&
6451          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6452   { (case "(($ac_try" in
6453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6454   *) ac_try_echo=$ac_try;;
6455 esac
6456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6457   (eval "$ac_try") 2>&5
6458   ac_status=$?
6459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6460   (exit $ac_status); }; } &&
6461          { ac_try='test -s conftest$ac_exeext'
6462   { (case "(($ac_try" in
6463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6464   *) ac_try_echo=$ac_try;;
6465 esac
6466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6467   (eval "$ac_try") 2>&5
6468   ac_status=$?
6469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470   (exit $ac_status); }; }; then
6471   ac_cv_prog_lex_yytext_pointer=yes
6472 else
6473   echo "$as_me: failed program was:" >&5
6474 sed 's/^/| /' conftest.$ac_ext >&5
6475
6476
6477 fi
6478
6479 rm -f core conftest.err conftest.$ac_objext \
6480       conftest$ac_exeext conftest.$ac_ext
6481 LIBS=$ac_save_LIBS
6482 rm -f "${LEX_OUTPUT_ROOT}.c"
6483
6484 fi
6485 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6486 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6487 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6488
6489 cat >>confdefs.h <<\_ACEOF
6490 #define YYTEXT_POINTER 1
6491 _ACEOF
6492
6493 fi
6494
6495 fi
6496
6497 fi
6498 { echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6499 echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6500 if test "$LEX" != "flex"; then
6501   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6502 echo "$as_me: error: flex not found but required" >&2;}
6503    { (exit 1); exit 1; }; }
6504 else
6505   FLEX=flex
6506
6507 fi
6508
6509 { echo "$as_me:$LINENO: checking " >&5
6510 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6511 if test "${llvm_cv_has_bison+set}" = set; then
6512   echo $ECHO_N "(cached) $ECHO_C" >&6
6513 else
6514   for ac_prog in 'bison -y' byacc
6515 do
6516   # Extract the first word of "$ac_prog", so it can be a program name with args.
6517 set dummy $ac_prog; ac_word=$2
6518 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6520 if test "${ac_cv_prog_YACC+set}" = set; then
6521   echo $ECHO_N "(cached) $ECHO_C" >&6
6522 else
6523   if test -n "$YACC"; then
6524   ac_cv_prog_YACC="$YACC" # Let the user override the test.
6525 else
6526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6527 for as_dir in $PATH
6528 do
6529   IFS=$as_save_IFS
6530   test -z "$as_dir" && as_dir=.
6531   for ac_exec_ext in '' $ac_executable_extensions; do
6532   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6533     ac_cv_prog_YACC="$ac_prog"
6534     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6535     break 2
6536   fi
6537 done
6538 done
6539 IFS=$as_save_IFS
6540
6541 fi
6542 fi
6543 YACC=$ac_cv_prog_YACC
6544 if test -n "$YACC"; then
6545   { echo "$as_me:$LINENO: result: $YACC" >&5
6546 echo "${ECHO_T}$YACC" >&6; }
6547 else
6548   { echo "$as_me:$LINENO: result: no" >&5
6549 echo "${ECHO_T}no" >&6; }
6550 fi
6551
6552
6553   test -n "$YACC" && break
6554 done
6555 test -n "$YACC" || YACC="yacc"
6556
6557 fi
6558 { echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6559 echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6560 if test "$YACC" != "bison -y"; then
6561
6562   { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6563 echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
6564 else
6565   BISON=bison
6566
6567 fi
6568
6569 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6570 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6571 if test "${lt_cv_path_NM+set}" = set; then
6572   echo $ECHO_N "(cached) $ECHO_C" >&6
6573 else
6574   if test -n "$NM"; then
6575   # Let the user override the test.
6576   lt_cv_path_NM="$NM"
6577 else
6578   lt_nm_to_check="${ac_tool_prefix}nm"
6579   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6580     lt_nm_to_check="$lt_nm_to_check nm"
6581   fi
6582   for lt_tmp_nm in $lt_nm_to_check; do
6583     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6584     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6585       IFS="$lt_save_ifs"
6586       test -z "$ac_dir" && ac_dir=.
6587       tmp_nm="$ac_dir/$lt_tmp_nm"
6588       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6589         # Check to see if the nm accepts a BSD-compat flag.
6590         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6591         #   nm: unknown option "B" ignored
6592         # Tru64's nm complains that /dev/null is an invalid object file
6593         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6594         */dev/null* | *'Invalid file or object type'*)
6595           lt_cv_path_NM="$tmp_nm -B"
6596           break
6597           ;;
6598         *)
6599           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6600           */dev/null*)
6601             lt_cv_path_NM="$tmp_nm -p"
6602             break
6603             ;;
6604           *)
6605             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6606             continue # so that we can try to find one that supports BSD flags
6607             ;;
6608           esac
6609           ;;
6610         esac
6611       fi
6612     done
6613     IFS="$lt_save_ifs"
6614   done
6615   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6616 fi
6617 fi
6618 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6619 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6620 NM="$lt_cv_path_NM"
6621
6622
6623
6624 { echo "$as_me:$LINENO: checking for GNU make" >&5
6625 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6626 if test "${llvm_cv_gnu_make_command+set}" = set; then
6627   echo $ECHO_N "(cached) $ECHO_C" >&6
6628 else
6629   llvm_cv_gnu_make_command=''
6630  for a in "$MAKE" make gmake gnumake ; do
6631   if test -z "$a" ; then continue ; fi ;
6632   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6633   then
6634    llvm_cv_gnu_make_command=$a ;
6635    break;
6636   fi
6637  done
6638 fi
6639 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6640 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6641  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6642    ifGNUmake='' ;
6643  else
6644    ifGNUmake='#' ;
6645    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6646 echo "${ECHO_T}\"Not found\"" >&6; };
6647  fi
6648
6649
6650 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6651 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6652 LN_S=$as_ln_s
6653 if test "$LN_S" = "ln -s"; then
6654   { echo "$as_me:$LINENO: result: yes" >&5
6655 echo "${ECHO_T}yes" >&6; }
6656 else
6657   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6658 echo "${ECHO_T}no, using $LN_S" >&6; }
6659 fi
6660
6661 # Extract the first word of "cmp", so it can be a program name with args.
6662 set dummy cmp; ac_word=$2
6663 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6665 if test "${ac_cv_path_CMP+set}" = set; then
6666   echo $ECHO_N "(cached) $ECHO_C" >&6
6667 else
6668   case $CMP in
6669   [\\/]* | ?:[\\/]*)
6670   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6671   ;;
6672   *)
6673   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6674 for as_dir in $PATH
6675 do
6676   IFS=$as_save_IFS
6677   test -z "$as_dir" && as_dir=.
6678   for ac_exec_ext in '' $ac_executable_extensions; do
6679   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6680     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6681     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6682     break 2
6683   fi
6684 done
6685 done
6686 IFS=$as_save_IFS
6687
6688   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6689   ;;
6690 esac
6691 fi
6692 CMP=$ac_cv_path_CMP
6693 if test -n "$CMP"; then
6694   { echo "$as_me:$LINENO: result: $CMP" >&5
6695 echo "${ECHO_T}$CMP" >&6; }
6696 else
6697   { echo "$as_me:$LINENO: result: no" >&5
6698 echo "${ECHO_T}no" >&6; }
6699 fi
6700
6701
6702 # Extract the first word of "cp", so it can be a program name with args.
6703 set dummy cp; ac_word=$2
6704 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6706 if test "${ac_cv_path_CP+set}" = set; then
6707   echo $ECHO_N "(cached) $ECHO_C" >&6
6708 else
6709   case $CP in
6710   [\\/]* | ?:[\\/]*)
6711   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6712   ;;
6713   *)
6714   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6715 for as_dir in $PATH
6716 do
6717   IFS=$as_save_IFS
6718   test -z "$as_dir" && as_dir=.
6719   for ac_exec_ext in '' $ac_executable_extensions; do
6720   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6721     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6722     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6723     break 2
6724   fi
6725 done
6726 done
6727 IFS=$as_save_IFS
6728
6729   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6730   ;;
6731 esac
6732 fi
6733 CP=$ac_cv_path_CP
6734 if test -n "$CP"; then
6735   { echo "$as_me:$LINENO: result: $CP" >&5
6736 echo "${ECHO_T}$CP" >&6; }
6737 else
6738   { echo "$as_me:$LINENO: result: no" >&5
6739 echo "${ECHO_T}no" >&6; }
6740 fi
6741
6742
6743 # Extract the first word of "date", so it can be a program name with args.
6744 set dummy date; ac_word=$2
6745 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6747 if test "${ac_cv_path_DATE+set}" = set; then
6748   echo $ECHO_N "(cached) $ECHO_C" >&6
6749 else
6750   case $DATE in
6751   [\\/]* | ?:[\\/]*)
6752   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6753   ;;
6754   *)
6755   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6756 for as_dir in $PATH
6757 do
6758   IFS=$as_save_IFS
6759   test -z "$as_dir" && as_dir=.
6760   for ac_exec_ext in '' $ac_executable_extensions; do
6761   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6762     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6763     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6764     break 2
6765   fi
6766 done
6767 done
6768 IFS=$as_save_IFS
6769
6770   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6771   ;;
6772 esac
6773 fi
6774 DATE=$ac_cv_path_DATE
6775 if test -n "$DATE"; then
6776   { echo "$as_me:$LINENO: result: $DATE" >&5
6777 echo "${ECHO_T}$DATE" >&6; }
6778 else
6779   { echo "$as_me:$LINENO: result: no" >&5
6780 echo "${ECHO_T}no" >&6; }
6781 fi
6782
6783
6784 # Extract the first word of "find", so it can be a program name with args.
6785 set dummy find; ac_word=$2
6786 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6788 if test "${ac_cv_path_FIND+set}" = set; then
6789   echo $ECHO_N "(cached) $ECHO_C" >&6
6790 else
6791   case $FIND in
6792   [\\/]* | ?:[\\/]*)
6793   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6794   ;;
6795   *)
6796   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6797 for as_dir in $PATH
6798 do
6799   IFS=$as_save_IFS
6800   test -z "$as_dir" && as_dir=.
6801   for ac_exec_ext in '' $ac_executable_extensions; do
6802   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6803     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6804     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6805     break 2
6806   fi
6807 done
6808 done
6809 IFS=$as_save_IFS
6810
6811   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6812   ;;
6813 esac
6814 fi
6815 FIND=$ac_cv_path_FIND
6816 if test -n "$FIND"; then
6817   { echo "$as_me:$LINENO: result: $FIND" >&5
6818 echo "${ECHO_T}$FIND" >&6; }
6819 else
6820   { echo "$as_me:$LINENO: result: no" >&5
6821 echo "${ECHO_T}no" >&6; }
6822 fi
6823
6824
6825 # Extract the first word of "grep", so it can be a program name with args.
6826 set dummy grep; ac_word=$2
6827 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6829 if test "${ac_cv_path_GREP+set}" = set; then
6830   echo $ECHO_N "(cached) $ECHO_C" >&6
6831 else
6832   case $GREP in
6833   [\\/]* | ?:[\\/]*)
6834   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6835   ;;
6836   *)
6837   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6838 for as_dir in $PATH
6839 do
6840   IFS=$as_save_IFS
6841   test -z "$as_dir" && as_dir=.
6842   for ac_exec_ext in '' $ac_executable_extensions; do
6843   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6844     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6845     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6846     break 2
6847   fi
6848 done
6849 done
6850 IFS=$as_save_IFS
6851
6852   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6853   ;;
6854 esac
6855 fi
6856 GREP=$ac_cv_path_GREP
6857 if test -n "$GREP"; then
6858   { echo "$as_me:$LINENO: result: $GREP" >&5
6859 echo "${ECHO_T}$GREP" >&6; }
6860 else
6861   { echo "$as_me:$LINENO: result: no" >&5
6862 echo "${ECHO_T}no" >&6; }
6863 fi
6864
6865
6866 # Extract the first word of "mkdir", so it can be a program name with args.
6867 set dummy mkdir; ac_word=$2
6868 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6870 if test "${ac_cv_path_MKDIR+set}" = set; then
6871   echo $ECHO_N "(cached) $ECHO_C" >&6
6872 else
6873   case $MKDIR in
6874   [\\/]* | ?:[\\/]*)
6875   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6876   ;;
6877   *)
6878   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6879 for as_dir in $PATH
6880 do
6881   IFS=$as_save_IFS
6882   test -z "$as_dir" && as_dir=.
6883   for ac_exec_ext in '' $ac_executable_extensions; do
6884   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6885     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6886     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6887     break 2
6888   fi
6889 done
6890 done
6891 IFS=$as_save_IFS
6892
6893   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6894   ;;
6895 esac
6896 fi
6897 MKDIR=$ac_cv_path_MKDIR
6898 if test -n "$MKDIR"; then
6899   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6900 echo "${ECHO_T}$MKDIR" >&6; }
6901 else
6902   { echo "$as_me:$LINENO: result: no" >&5
6903 echo "${ECHO_T}no" >&6; }
6904 fi
6905
6906
6907 # Extract the first word of "mv", so it can be a program name with args.
6908 set dummy mv; ac_word=$2
6909 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6911 if test "${ac_cv_path_MV+set}" = set; then
6912   echo $ECHO_N "(cached) $ECHO_C" >&6
6913 else
6914   case $MV in
6915   [\\/]* | ?:[\\/]*)
6916   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6917   ;;
6918   *)
6919   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6920 for as_dir in $PATH
6921 do
6922   IFS=$as_save_IFS
6923   test -z "$as_dir" && as_dir=.
6924   for ac_exec_ext in '' $ac_executable_extensions; do
6925   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6926     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6927     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6928     break 2
6929   fi
6930 done
6931 done
6932 IFS=$as_save_IFS
6933
6934   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6935   ;;
6936 esac
6937 fi
6938 MV=$ac_cv_path_MV
6939 if test -n "$MV"; then
6940   { echo "$as_me:$LINENO: result: $MV" >&5
6941 echo "${ECHO_T}$MV" >&6; }
6942 else
6943   { echo "$as_me:$LINENO: result: no" >&5
6944 echo "${ECHO_T}no" >&6; }
6945 fi
6946
6947
6948 if test -n "$ac_tool_prefix"; then
6949   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6950 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6951 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6953 if test "${ac_cv_prog_RANLIB+set}" = set; then
6954   echo $ECHO_N "(cached) $ECHO_C" >&6
6955 else
6956   if test -n "$RANLIB"; then
6957   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6958 else
6959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6960 for as_dir in $PATH
6961 do
6962   IFS=$as_save_IFS
6963   test -z "$as_dir" && as_dir=.
6964   for ac_exec_ext in '' $ac_executable_extensions; do
6965   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6966     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6967     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6968     break 2
6969   fi
6970 done
6971 done
6972 IFS=$as_save_IFS
6973
6974 fi
6975 fi
6976 RANLIB=$ac_cv_prog_RANLIB
6977 if test -n "$RANLIB"; then
6978   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6979 echo "${ECHO_T}$RANLIB" >&6; }
6980 else
6981   { echo "$as_me:$LINENO: result: no" >&5
6982 echo "${ECHO_T}no" >&6; }
6983 fi
6984
6985
6986 fi
6987 if test -z "$ac_cv_prog_RANLIB"; then
6988   ac_ct_RANLIB=$RANLIB
6989   # Extract the first word of "ranlib", so it can be a program name with args.
6990 set dummy ranlib; ac_word=$2
6991 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6993 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6994   echo $ECHO_N "(cached) $ECHO_C" >&6
6995 else
6996   if test -n "$ac_ct_RANLIB"; then
6997   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6998 else
6999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7000 for as_dir in $PATH
7001 do
7002   IFS=$as_save_IFS
7003   test -z "$as_dir" && as_dir=.
7004   for ac_exec_ext in '' $ac_executable_extensions; do
7005   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7006     ac_cv_prog_ac_ct_RANLIB="ranlib"
7007     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7008     break 2
7009   fi
7010 done
7011 done
7012 IFS=$as_save_IFS
7013
7014 fi
7015 fi
7016 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7017 if test -n "$ac_ct_RANLIB"; then
7018   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7019 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7020 else
7021   { echo "$as_me:$LINENO: result: no" >&5
7022 echo "${ECHO_T}no" >&6; }
7023 fi
7024
7025   if test "x$ac_ct_RANLIB" = x; then
7026     RANLIB=":"
7027   else
7028     case $cross_compiling:$ac_tool_warned in
7029 yes:)
7030 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7031 whose name does not start with the host triplet.  If you think this
7032 configuration is useful to you, please write to autoconf@gnu.org." >&5
7033 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7034 whose name does not start with the host triplet.  If you think this
7035 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7036 ac_tool_warned=yes ;;
7037 esac
7038     RANLIB=$ac_ct_RANLIB
7039   fi
7040 else
7041   RANLIB="$ac_cv_prog_RANLIB"
7042 fi
7043
7044 # Extract the first word of "rm", so it can be a program name with args.
7045 set dummy rm; ac_word=$2
7046 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7048 if test "${ac_cv_path_RM+set}" = set; then
7049   echo $ECHO_N "(cached) $ECHO_C" >&6
7050 else
7051   case $RM in
7052   [\\/]* | ?:[\\/]*)
7053   ac_cv_path_RM="$RM" # Let the user override the test with a path.
7054   ;;
7055   *)
7056   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7057 for as_dir in $PATH
7058 do
7059   IFS=$as_save_IFS
7060   test -z "$as_dir" && as_dir=.
7061   for ac_exec_ext in '' $ac_executable_extensions; do
7062   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7063     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7064     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7065     break 2
7066   fi
7067 done
7068 done
7069 IFS=$as_save_IFS
7070
7071   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7072   ;;
7073 esac
7074 fi
7075 RM=$ac_cv_path_RM
7076 if test -n "$RM"; then
7077   { echo "$as_me:$LINENO: result: $RM" >&5
7078 echo "${ECHO_T}$RM" >&6; }
7079 else
7080   { echo "$as_me:$LINENO: result: no" >&5
7081 echo "${ECHO_T}no" >&6; }
7082 fi
7083
7084
7085 # Extract the first word of "sed", so it can be a program name with args.
7086 set dummy sed; ac_word=$2
7087 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7089 if test "${ac_cv_path_SED+set}" = set; then
7090   echo $ECHO_N "(cached) $ECHO_C" >&6
7091 else
7092   case $SED in
7093   [\\/]* | ?:[\\/]*)
7094   ac_cv_path_SED="$SED" # Let the user override the test with a path.
7095   ;;
7096   *)
7097   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7098 for as_dir in $PATH
7099 do
7100   IFS=$as_save_IFS
7101   test -z "$as_dir" && as_dir=.
7102   for ac_exec_ext in '' $ac_executable_extensions; do
7103   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7104     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7105     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7106     break 2
7107   fi
7108 done
7109 done
7110 IFS=$as_save_IFS
7111
7112   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7113   ;;
7114 esac
7115 fi
7116 SED=$ac_cv_path_SED
7117 if test -n "$SED"; then
7118   { echo "$as_me:$LINENO: result: $SED" >&5
7119 echo "${ECHO_T}$SED" >&6; }
7120 else
7121   { echo "$as_me:$LINENO: result: no" >&5
7122 echo "${ECHO_T}no" >&6; }
7123 fi
7124
7125
7126 # Extract the first word of "tar", so it can be a program name with args.
7127 set dummy tar; ac_word=$2
7128 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7129 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7130 if test "${ac_cv_path_TAR+set}" = set; then
7131   echo $ECHO_N "(cached) $ECHO_C" >&6
7132 else
7133   case $TAR in
7134   [\\/]* | ?:[\\/]*)
7135   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7136   ;;
7137   *)
7138   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7139 for as_dir in $PATH
7140 do
7141   IFS=$as_save_IFS
7142   test -z "$as_dir" && as_dir=.
7143   for ac_exec_ext in '' $ac_executable_extensions; do
7144   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7145     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7146     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7147     break 2
7148   fi
7149 done
7150 done
7151 IFS=$as_save_IFS
7152
7153   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7154   ;;
7155 esac
7156 fi
7157 TAR=$ac_cv_path_TAR
7158 if test -n "$TAR"; then
7159   { echo "$as_me:$LINENO: result: $TAR" >&5
7160 echo "${ECHO_T}$TAR" >&6; }
7161 else
7162   { echo "$as_me:$LINENO: result: no" >&5
7163 echo "${ECHO_T}no" >&6; }
7164 fi
7165
7166
7167 # Extract the first word of "pwd", so it can be a program name with args.
7168 set dummy pwd; ac_word=$2
7169 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7171 if test "${ac_cv_path_BINPWD+set}" = set; then
7172   echo $ECHO_N "(cached) $ECHO_C" >&6
7173 else
7174   case $BINPWD in
7175   [\\/]* | ?:[\\/]*)
7176   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7177   ;;
7178   *)
7179   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7180 for as_dir in $PATH
7181 do
7182   IFS=$as_save_IFS
7183   test -z "$as_dir" && as_dir=.
7184   for ac_exec_ext in '' $ac_executable_extensions; do
7185   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7186     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7187     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7188     break 2
7189   fi
7190 done
7191 done
7192 IFS=$as_save_IFS
7193
7194   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7195   ;;
7196 esac
7197 fi
7198 BINPWD=$ac_cv_path_BINPWD
7199 if test -n "$BINPWD"; then
7200   { echo "$as_me:$LINENO: result: $BINPWD" >&5
7201 echo "${ECHO_T}$BINPWD" >&6; }
7202 else
7203   { echo "$as_me:$LINENO: result: no" >&5
7204 echo "${ECHO_T}no" >&6; }
7205 fi
7206
7207
7208
7209 # Extract the first word of "Graphviz", so it can be a program name with args.
7210 set dummy Graphviz; ac_word=$2
7211 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7213 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7214   echo $ECHO_N "(cached) $ECHO_C" >&6
7215 else
7216   case $GRAPHVIZ in
7217   [\\/]* | ?:[\\/]*)
7218   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7219   ;;
7220   *)
7221   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7222 for as_dir in $PATH
7223 do
7224   IFS=$as_save_IFS
7225   test -z "$as_dir" && as_dir=.
7226   for ac_exec_ext in '' $ac_executable_extensions; do
7227   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7228     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7229     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7230     break 2
7231   fi
7232 done
7233 done
7234 IFS=$as_save_IFS
7235
7236   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7237   ;;
7238 esac
7239 fi
7240 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7241 if test -n "$GRAPHVIZ"; then
7242   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7243 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7244 else
7245   { echo "$as_me:$LINENO: result: no" >&5
7246 echo "${ECHO_T}no" >&6; }
7247 fi
7248
7249
7250 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7251
7252 cat >>confdefs.h <<\_ACEOF
7253 #define HAVE_GRAPHVIZ 1
7254 _ACEOF
7255
7256     if test "$llvm_cv_os_type" = "MingW" ; then
7257     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7258   fi
7259
7260 cat >>confdefs.h <<_ACEOF
7261 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7262 _ACEOF
7263
7264 fi
7265 # Extract the first word of "dot", so it can be a program name with args.
7266 set dummy dot; ac_word=$2
7267 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7269 if test "${ac_cv_path_DOT+set}" = set; then
7270   echo $ECHO_N "(cached) $ECHO_C" >&6
7271 else
7272   case $DOT in
7273   [\\/]* | ?:[\\/]*)
7274   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7275   ;;
7276   *)
7277   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7278 for as_dir in $PATH
7279 do
7280   IFS=$as_save_IFS
7281   test -z "$as_dir" && as_dir=.
7282   for ac_exec_ext in '' $ac_executable_extensions; do
7283   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7284     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7285     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7286     break 2
7287   fi
7288 done
7289 done
7290 IFS=$as_save_IFS
7291
7292   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7293   ;;
7294 esac
7295 fi
7296 DOT=$ac_cv_path_DOT
7297 if test -n "$DOT"; then
7298   { echo "$as_me:$LINENO: result: $DOT" >&5
7299 echo "${ECHO_T}$DOT" >&6; }
7300 else
7301   { echo "$as_me:$LINENO: result: no" >&5
7302 echo "${ECHO_T}no" >&6; }
7303 fi
7304
7305
7306 if test "$DOT" != "echo dot" ; then
7307
7308 cat >>confdefs.h <<\_ACEOF
7309 #define HAVE_DOT 1
7310 _ACEOF
7311
7312     if test "$llvm_cv_os_type" = "MingW" ; then
7313     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7314   fi
7315
7316 cat >>confdefs.h <<_ACEOF
7317 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7318 _ACEOF
7319
7320 fi
7321 for ac_prog in gv gsview32
7322 do
7323   # Extract the first word of "$ac_prog", so it can be a program name with args.
7324 set dummy $ac_prog; ac_word=$2
7325 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7327 if test "${ac_cv_path_GV+set}" = set; then
7328   echo $ECHO_N "(cached) $ECHO_C" >&6
7329 else
7330   case $GV in
7331   [\\/]* | ?:[\\/]*)
7332   ac_cv_path_GV="$GV" # Let the user override the test with a path.
7333   ;;
7334   *)
7335   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7336 for as_dir in $PATH
7337 do
7338   IFS=$as_save_IFS
7339   test -z "$as_dir" && as_dir=.
7340   for ac_exec_ext in '' $ac_executable_extensions; do
7341   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7342     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7343     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7344     break 2
7345   fi
7346 done
7347 done
7348 IFS=$as_save_IFS
7349
7350   ;;
7351 esac
7352 fi
7353 GV=$ac_cv_path_GV
7354 if test -n "$GV"; then
7355   { echo "$as_me:$LINENO: result: $GV" >&5
7356 echo "${ECHO_T}$GV" >&6; }
7357 else
7358   { echo "$as_me:$LINENO: result: no" >&5
7359 echo "${ECHO_T}no" >&6; }
7360 fi
7361
7362
7363   test -n "$GV" && break
7364 done
7365 test -n "$GV" || GV="echo gv"
7366
7367 if test "$GV" != "echo gv" ; then
7368
7369 cat >>confdefs.h <<\_ACEOF
7370 #define HAVE_GV 1
7371 _ACEOF
7372
7373     if test "$llvm_cv_os_type" = "MingW" ; then
7374     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7375   fi
7376
7377 cat >>confdefs.h <<_ACEOF
7378 #define LLVM_PATH_GV "$GV${EXEEXT}"
7379 _ACEOF
7380
7381 fi
7382 # Extract the first word of "dotty", so it can be a program name with args.
7383 set dummy dotty; ac_word=$2
7384 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7386 if test "${ac_cv_path_DOTTY+set}" = set; then
7387   echo $ECHO_N "(cached) $ECHO_C" >&6
7388 else
7389   case $DOTTY in
7390   [\\/]* | ?:[\\/]*)
7391   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7392   ;;
7393   *)
7394   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7395 for as_dir in $PATH
7396 do
7397   IFS=$as_save_IFS
7398   test -z "$as_dir" && as_dir=.
7399   for ac_exec_ext in '' $ac_executable_extensions; do
7400   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7401     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7402     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7403     break 2
7404   fi
7405 done
7406 done
7407 IFS=$as_save_IFS
7408
7409   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7410   ;;
7411 esac
7412 fi
7413 DOTTY=$ac_cv_path_DOTTY
7414 if test -n "$DOTTY"; then
7415   { echo "$as_me:$LINENO: result: $DOTTY" >&5
7416 echo "${ECHO_T}$DOTTY" >&6; }
7417 else
7418   { echo "$as_me:$LINENO: result: no" >&5
7419 echo "${ECHO_T}no" >&6; }
7420 fi
7421
7422
7423 if test "$DOTTY" != "echo dotty" ; then
7424
7425 cat >>confdefs.h <<\_ACEOF
7426 #define HAVE_DOTTY 1
7427 _ACEOF
7428
7429     if test "$llvm_cv_os_type" = "MingW" ; then
7430     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7431   fi
7432
7433 cat >>confdefs.h <<_ACEOF
7434 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7435 _ACEOF
7436
7437 fi
7438
7439
7440 # Extract the first word of "perl", so it can be a program name with args.
7441 set dummy perl; ac_word=$2
7442 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7444 if test "${ac_cv_path_PERL+set}" = set; then
7445   echo $ECHO_N "(cached) $ECHO_C" >&6
7446 else
7447   case $PERL in
7448   [\\/]* | ?:[\\/]*)
7449   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7450   ;;
7451   *)
7452   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7453 for as_dir in $PATH
7454 do
7455   IFS=$as_save_IFS
7456   test -z "$as_dir" && as_dir=.
7457   for ac_exec_ext in '' $ac_executable_extensions; do
7458   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7459     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7460     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7461     break 2
7462   fi
7463 done
7464 done
7465 IFS=$as_save_IFS
7466
7467   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7468   ;;
7469 esac
7470 fi
7471 PERL=$ac_cv_path_PERL
7472 if test -n "$PERL"; then
7473   { echo "$as_me:$LINENO: result: $PERL" >&5
7474 echo "${ECHO_T}$PERL" >&6; }
7475 else
7476   { echo "$as_me:$LINENO: result: no" >&5
7477 echo "${ECHO_T}no" >&6; }
7478 fi
7479
7480
7481 if test "$PERL" != "none"; then
7482   { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7483 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7484   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7485     { echo "$as_me:$LINENO: result: yes" >&5
7486 echo "${ECHO_T}yes" >&6; }
7487   else
7488     PERL=none
7489     { echo "$as_me:$LINENO: result: not found" >&5
7490 echo "${ECHO_T}not found" >&6; }
7491   fi
7492 fi
7493
7494
7495 if test x"$PERL" = xnone; then
7496    HAVE_PERL=0
7497
7498    { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7499 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7500    { (exit 1); exit 1; }; }
7501 else
7502    HAVE_PERL=1
7503
7504 fi
7505
7506 # Find a good install program.  We prefer a C program (faster),
7507 # so one script is as good as another.  But avoid the broken or
7508 # incompatible versions:
7509 # SysV /etc/install, /usr/sbin/install
7510 # SunOS /usr/etc/install
7511 # IRIX /sbin/install
7512 # AIX /bin/install
7513 # AmigaOS /C/install, which installs bootblocks on floppy discs
7514 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7515 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7516 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7517 # OS/2's system install, which has a completely different semantic
7518 # ./install, which can be erroneously created by make from ./install.sh.
7519 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7520 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7521 if test -z "$INSTALL"; then
7522 if test "${ac_cv_path_install+set}" = set; then
7523   echo $ECHO_N "(cached) $ECHO_C" >&6
7524 else
7525   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7526 for as_dir in $PATH
7527 do
7528   IFS=$as_save_IFS
7529   test -z "$as_dir" && as_dir=.
7530   # Account for people who put trailing slashes in PATH elements.
7531 case $as_dir/ in
7532   ./ | .// | /cC/* | \
7533   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7534   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7535   /usr/ucb/* ) ;;
7536   *)
7537     # OSF1 and SCO ODT 3.0 have their own names for install.
7538     # Don't use installbsd from OSF since it installs stuff as root
7539     # by default.
7540     for ac_prog in ginstall scoinst install; do
7541       for ac_exec_ext in '' $ac_executable_extensions; do
7542         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7543           if test $ac_prog = install &&
7544             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7545             # AIX install.  It has an incompatible calling convention.
7546             :
7547           elif test $ac_prog = install &&
7548             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7549             # program-specific install script used by HP pwplus--don't use.
7550             :
7551           else
7552             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7553             break 3
7554           fi
7555         fi
7556       done
7557     done
7558     ;;
7559 esac
7560 done
7561 IFS=$as_save_IFS
7562
7563
7564 fi
7565   if test "${ac_cv_path_install+set}" = set; then
7566     INSTALL=$ac_cv_path_install
7567   else
7568     # As a last resort, use the slow shell script.  Don't cache a
7569     # value for INSTALL within a source directory, because that will
7570     # break other packages using the cache if that directory is
7571     # removed, or if the value is a relative name.
7572     INSTALL=$ac_install_sh
7573   fi
7574 fi
7575 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7576 echo "${ECHO_T}$INSTALL" >&6; }
7577
7578 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7579 # It thinks the first close brace ends the variable substitution.
7580 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7581
7582 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7583
7584 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7585
7586
7587 # Extract the first word of "bzip2", so it can be a program name with args.
7588 set dummy bzip2; ac_word=$2
7589 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7590 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7591 if test "${ac_cv_path_BZIP2+set}" = set; then
7592   echo $ECHO_N "(cached) $ECHO_C" >&6
7593 else
7594   case $BZIP2 in
7595   [\\/]* | ?:[\\/]*)
7596   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7597   ;;
7598   *)
7599   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7600 for as_dir in $PATH
7601 do
7602   IFS=$as_save_IFS
7603   test -z "$as_dir" && as_dir=.
7604   for ac_exec_ext in '' $ac_executable_extensions; do
7605   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7606     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7607     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7608     break 2
7609   fi
7610 done
7611 done
7612 IFS=$as_save_IFS
7613
7614   ;;
7615 esac
7616 fi
7617 BZIP2=$ac_cv_path_BZIP2
7618 if test -n "$BZIP2"; then
7619   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7620 echo "${ECHO_T}$BZIP2" >&6; }
7621 else
7622   { echo "$as_me:$LINENO: result: no" >&5
7623 echo "${ECHO_T}no" >&6; }
7624 fi
7625
7626
7627 # Extract the first word of "doxygen", so it can be a program name with args.
7628 set dummy doxygen; ac_word=$2
7629 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7631 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7632   echo $ECHO_N "(cached) $ECHO_C" >&6
7633 else
7634   case $DOXYGEN in
7635   [\\/]* | ?:[\\/]*)
7636   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7637   ;;
7638   *)
7639   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7640 for as_dir in $PATH
7641 do
7642   IFS=$as_save_IFS
7643   test -z "$as_dir" && as_dir=.
7644   for ac_exec_ext in '' $ac_executable_extensions; do
7645   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7646     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7647     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7648     break 2
7649   fi
7650 done
7651 done
7652 IFS=$as_save_IFS
7653
7654   ;;
7655 esac
7656 fi
7657 DOXYGEN=$ac_cv_path_DOXYGEN
7658 if test -n "$DOXYGEN"; then
7659   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7660 echo "${ECHO_T}$DOXYGEN" >&6; }
7661 else
7662   { echo "$as_me:$LINENO: result: no" >&5
7663 echo "${ECHO_T}no" >&6; }
7664 fi
7665
7666
7667 # Extract the first word of "groff", so it can be a program name with args.
7668 set dummy groff; ac_word=$2
7669 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7671 if test "${ac_cv_path_GROFF+set}" = set; then
7672   echo $ECHO_N "(cached) $ECHO_C" >&6
7673 else
7674   case $GROFF in
7675   [\\/]* | ?:[\\/]*)
7676   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7677   ;;
7678   *)
7679   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7680 for as_dir in $PATH
7681 do
7682   IFS=$as_save_IFS
7683   test -z "$as_dir" && as_dir=.
7684   for ac_exec_ext in '' $ac_executable_extensions; do
7685   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7686     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7687     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7688     break 2
7689   fi
7690 done
7691 done
7692 IFS=$as_save_IFS
7693
7694   ;;
7695 esac
7696 fi
7697 GROFF=$ac_cv_path_GROFF
7698 if test -n "$GROFF"; then
7699   { echo "$as_me:$LINENO: result: $GROFF" >&5
7700 echo "${ECHO_T}$GROFF" >&6; }
7701 else
7702   { echo "$as_me:$LINENO: result: no" >&5
7703 echo "${ECHO_T}no" >&6; }
7704 fi
7705
7706
7707 # Extract the first word of "gzip", so it can be a program name with args.
7708 set dummy gzip; ac_word=$2
7709 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7711 if test "${ac_cv_path_GZIP+set}" = set; then
7712   echo $ECHO_N "(cached) $ECHO_C" >&6
7713 else
7714   case $GZIP in
7715   [\\/]* | ?:[\\/]*)
7716   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7717   ;;
7718   *)
7719   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7720 for as_dir in $PATH
7721 do
7722   IFS=$as_save_IFS
7723   test -z "$as_dir" && as_dir=.
7724   for ac_exec_ext in '' $ac_executable_extensions; do
7725   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7726     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7727     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7728     break 2
7729   fi
7730 done
7731 done
7732 IFS=$as_save_IFS
7733
7734   ;;
7735 esac
7736 fi
7737 GZIP=$ac_cv_path_GZIP
7738 if test -n "$GZIP"; then
7739   { echo "$as_me:$LINENO: result: $GZIP" >&5
7740 echo "${ECHO_T}$GZIP" >&6; }
7741 else
7742   { echo "$as_me:$LINENO: result: no" >&5
7743 echo "${ECHO_T}no" >&6; }
7744 fi
7745
7746
7747 # Extract the first word of "pod2html", so it can be a program name with args.
7748 set dummy pod2html; ac_word=$2
7749 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7751 if test "${ac_cv_path_POD2HTML+set}" = set; then
7752   echo $ECHO_N "(cached) $ECHO_C" >&6
7753 else
7754   case $POD2HTML in
7755   [\\/]* | ?:[\\/]*)
7756   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7757   ;;
7758   *)
7759   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7760 for as_dir in $PATH
7761 do
7762   IFS=$as_save_IFS
7763   test -z "$as_dir" && as_dir=.
7764   for ac_exec_ext in '' $ac_executable_extensions; do
7765   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7766     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7767     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7768     break 2
7769   fi
7770 done
7771 done
7772 IFS=$as_save_IFS
7773
7774   ;;
7775 esac
7776 fi
7777 POD2HTML=$ac_cv_path_POD2HTML
7778 if test -n "$POD2HTML"; then
7779   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7780 echo "${ECHO_T}$POD2HTML" >&6; }
7781 else
7782   { echo "$as_me:$LINENO: result: no" >&5
7783 echo "${ECHO_T}no" >&6; }
7784 fi
7785
7786
7787 # Extract the first word of "pod2man", so it can be a program name with args.
7788 set dummy pod2man; ac_word=$2
7789 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7791 if test "${ac_cv_path_POD2MAN+set}" = set; then
7792   echo $ECHO_N "(cached) $ECHO_C" >&6
7793 else
7794   case $POD2MAN in
7795   [\\/]* | ?:[\\/]*)
7796   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7797   ;;
7798   *)
7799   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7800 for as_dir in $PATH
7801 do
7802   IFS=$as_save_IFS
7803   test -z "$as_dir" && as_dir=.
7804   for ac_exec_ext in '' $ac_executable_extensions; do
7805   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7806     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7807     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7808     break 2
7809   fi
7810 done
7811 done
7812 IFS=$as_save_IFS
7813
7814   ;;
7815 esac
7816 fi
7817 POD2MAN=$ac_cv_path_POD2MAN
7818 if test -n "$POD2MAN"; then
7819   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7820 echo "${ECHO_T}$POD2MAN" >&6; }
7821 else
7822   { echo "$as_me:$LINENO: result: no" >&5
7823 echo "${ECHO_T}no" >&6; }
7824 fi
7825
7826
7827 # Extract the first word of "runtest", so it can be a program name with args.
7828 set dummy runtest; ac_word=$2
7829 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7831 if test "${ac_cv_path_RUNTEST+set}" = set; then
7832   echo $ECHO_N "(cached) $ECHO_C" >&6
7833 else
7834   case $RUNTEST in
7835   [\\/]* | ?:[\\/]*)
7836   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7837   ;;
7838   *)
7839   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7840 for as_dir in $PATH
7841 do
7842   IFS=$as_save_IFS
7843   test -z "$as_dir" && as_dir=.
7844   for ac_exec_ext in '' $ac_executable_extensions; do
7845   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7846     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7847     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7848     break 2
7849   fi
7850 done
7851 done
7852 IFS=$as_save_IFS
7853
7854   ;;
7855 esac
7856 fi
7857 RUNTEST=$ac_cv_path_RUNTEST
7858 if test -n "$RUNTEST"; then
7859   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7860 echo "${ECHO_T}$RUNTEST" >&6; }
7861 else
7862   { echo "$as_me:$LINENO: result: no" >&5
7863 echo "${ECHO_T}no" >&6; }
7864 fi
7865
7866
7867
7868 no_itcl=true
7869 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7870 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7871
7872 # Check whether --with-tclinclude was given.
7873 if test "${with_tclinclude+set}" = set; then
7874   withval=$with_tclinclude; with_tclinclude=${withval}
7875 else
7876   with_tclinclude=''
7877 fi
7878
7879 if test "${ac_cv_path_tclsh+set}" = set; then
7880   echo $ECHO_N "(cached) $ECHO_C" >&6
7881 else
7882
7883 if test x"${with_tclinclude}" != x ; then
7884   if test -f ${with_tclinclude}/tclsh ; then
7885     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7886   elif test -f ${with_tclinclude}/src/tclsh ; then
7887     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7888   else
7889     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7890 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7891    { (exit 1); exit 1; }; }
7892   fi
7893 fi
7894
7895 if test x"${ac_cv_path_tclsh}" = x ; then
7896   { echo "$as_me:$LINENO: result: none" >&5
7897 echo "${ECHO_T}none" >&6; }
7898   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
7899 do
7900   # Extract the first word of "$ac_prog", so it can be a program name with args.
7901 set dummy $ac_prog; ac_word=$2
7902 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7904 if test "${ac_cv_path_TCLSH+set}" = set; then
7905   echo $ECHO_N "(cached) $ECHO_C" >&6
7906 else
7907   case $TCLSH in
7908   [\\/]* | ?:[\\/]*)
7909   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7910   ;;
7911   *)
7912   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7913 for as_dir in $PATH
7914 do
7915   IFS=$as_save_IFS
7916   test -z "$as_dir" && as_dir=.
7917   for ac_exec_ext in '' $ac_executable_extensions; do
7918   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7919     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7920     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7921     break 2
7922   fi
7923 done
7924 done
7925 IFS=$as_save_IFS
7926
7927   ;;
7928 esac
7929 fi
7930 TCLSH=$ac_cv_path_TCLSH
7931 if test -n "$TCLSH"; then
7932   { echo "$as_me:$LINENO: result: $TCLSH" >&5
7933 echo "${ECHO_T}$TCLSH" >&6; }
7934 else
7935   { echo "$as_me:$LINENO: result: no" >&5
7936 echo "${ECHO_T}no" >&6; }
7937 fi
7938
7939
7940   test -n "$TCLSH" && break
7941 done
7942
7943   if test x"${TCLSH}" = x ; then
7944     ac_cv_path_tclsh='';
7945   else
7946     ac_cv_path_tclsh="${TCLSH}";
7947   fi
7948 else
7949   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7950 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7951   TCLSH="${ac_cv_path_tclsh}"
7952
7953 fi
7954
7955 fi
7956
7957 # Extract the first word of "zip", so it can be a program name with args.
7958 set dummy zip; ac_word=$2
7959 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7961 if test "${ac_cv_path_ZIP+set}" = set; then
7962   echo $ECHO_N "(cached) $ECHO_C" >&6
7963 else
7964   case $ZIP in
7965   [\\/]* | ?:[\\/]*)
7966   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7967   ;;
7968   *)
7969   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7970 for as_dir in $PATH
7971 do
7972   IFS=$as_save_IFS
7973   test -z "$as_dir" && as_dir=.
7974   for ac_exec_ext in '' $ac_executable_extensions; do
7975   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7976     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7977     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7978     break 2
7979   fi
7980 done
7981 done
7982 IFS=$as_save_IFS
7983
7984   ;;
7985 esac
7986 fi
7987 ZIP=$ac_cv_path_ZIP
7988 if test -n "$ZIP"; then
7989   { echo "$as_me:$LINENO: result: $ZIP" >&5
7990 echo "${ECHO_T}$ZIP" >&6; }
7991 else
7992   { echo "$as_me:$LINENO: result: no" >&5
7993 echo "${ECHO_T}no" >&6; }
7994 fi
7995
7996
7997 for ac_prog in ocamlc.opt ocamlc
7998 do
7999   # Extract the first word of "$ac_prog", so it can be a program name with args.
8000 set dummy $ac_prog; ac_word=$2
8001 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8003 if test "${ac_cv_path_OCAMLC+set}" = set; then
8004   echo $ECHO_N "(cached) $ECHO_C" >&6
8005 else
8006   case $OCAMLC in
8007   [\\/]* | ?:[\\/]*)
8008   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8009   ;;
8010   *)
8011   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8012 for as_dir in $PATH
8013 do
8014   IFS=$as_save_IFS
8015   test -z "$as_dir" && as_dir=.
8016   for ac_exec_ext in '' $ac_executable_extensions; do
8017   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8018     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8019     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8020     break 2
8021   fi
8022 done
8023 done
8024 IFS=$as_save_IFS
8025
8026   ;;
8027 esac
8028 fi
8029 OCAMLC=$ac_cv_path_OCAMLC
8030 if test -n "$OCAMLC"; then
8031   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8032 echo "${ECHO_T}$OCAMLC" >&6; }
8033 else
8034   { echo "$as_me:$LINENO: result: no" >&5
8035 echo "${ECHO_T}no" >&6; }
8036 fi
8037
8038
8039   test -n "$OCAMLC" && break
8040 done
8041
8042 for ac_prog in ocamlopt.opt ocamlopt
8043 do
8044   # Extract the first word of "$ac_prog", so it can be a program name with args.
8045 set dummy $ac_prog; ac_word=$2
8046 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8048 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8049   echo $ECHO_N "(cached) $ECHO_C" >&6
8050 else
8051   case $OCAMLOPT in
8052   [\\/]* | ?:[\\/]*)
8053   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8054   ;;
8055   *)
8056   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8057 for as_dir in $PATH
8058 do
8059   IFS=$as_save_IFS
8060   test -z "$as_dir" && as_dir=.
8061   for ac_exec_ext in '' $ac_executable_extensions; do
8062   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8063     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8064     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8065     break 2
8066   fi
8067 done
8068 done
8069 IFS=$as_save_IFS
8070
8071   ;;
8072 esac
8073 fi
8074 OCAMLOPT=$ac_cv_path_OCAMLOPT
8075 if test -n "$OCAMLOPT"; then
8076   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8077 echo "${ECHO_T}$OCAMLOPT" >&6; }
8078 else
8079   { echo "$as_me:$LINENO: result: no" >&5
8080 echo "${ECHO_T}no" >&6; }
8081 fi
8082
8083
8084   test -n "$OCAMLOPT" && break
8085 done
8086
8087 for ac_prog in ocamldep.opt ocamldep
8088 do
8089   # Extract the first word of "$ac_prog", so it can be a program name with args.
8090 set dummy $ac_prog; ac_word=$2
8091 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8093 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8094   echo $ECHO_N "(cached) $ECHO_C" >&6
8095 else
8096   case $OCAMLDEP in
8097   [\\/]* | ?:[\\/]*)
8098   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8099   ;;
8100   *)
8101   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8102 for as_dir in $PATH
8103 do
8104   IFS=$as_save_IFS
8105   test -z "$as_dir" && as_dir=.
8106   for ac_exec_ext in '' $ac_executable_extensions; do
8107   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8108     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8109     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8110     break 2
8111   fi
8112 done
8113 done
8114 IFS=$as_save_IFS
8115
8116   ;;
8117 esac
8118 fi
8119 OCAMLDEP=$ac_cv_path_OCAMLDEP
8120 if test -n "$OCAMLDEP"; then
8121   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8122 echo "${ECHO_T}$OCAMLDEP" >&6; }
8123 else
8124   { echo "$as_me:$LINENO: result: no" >&5
8125 echo "${ECHO_T}no" >&6; }
8126 fi
8127
8128
8129   test -n "$OCAMLDEP" && break
8130 done
8131
8132 for ac_prog in ocamldoc.opt ocamldoc
8133 do
8134   # Extract the first word of "$ac_prog", so it can be a program name with args.
8135 set dummy $ac_prog; ac_word=$2
8136 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8138 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8139   echo $ECHO_N "(cached) $ECHO_C" >&6
8140 else
8141   case $OCAMLDOC in
8142   [\\/]* | ?:[\\/]*)
8143   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8144   ;;
8145   *)
8146   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8147 for as_dir in $PATH
8148 do
8149   IFS=$as_save_IFS
8150   test -z "$as_dir" && as_dir=.
8151   for ac_exec_ext in '' $ac_executable_extensions; do
8152   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8153     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8154     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8155     break 2
8156   fi
8157 done
8158 done
8159 IFS=$as_save_IFS
8160
8161   ;;
8162 esac
8163 fi
8164 OCAMLDOC=$ac_cv_path_OCAMLDOC
8165 if test -n "$OCAMLDOC"; then
8166   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8167 echo "${ECHO_T}$OCAMLDOC" >&6; }
8168 else
8169   { echo "$as_me:$LINENO: result: no" >&5
8170 echo "${ECHO_T}no" >&6; }
8171 fi
8172
8173
8174   test -n "$OCAMLDOC" && break
8175 done
8176
8177
8178 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8179 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8180 if test "${llvm_cv_link_use_r+set}" = set; then
8181   echo $ECHO_N "(cached) $ECHO_C" >&6
8182 else
8183    ac_ext=c
8184 ac_cpp='$CPP $CPPFLAGS'
8185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8188
8189   oldcflags="$CFLAGS"
8190   CFLAGS="$CFLAGS -Wl,-R."
8191   cat >conftest.$ac_ext <<_ACEOF
8192 /* confdefs.h.  */
8193 _ACEOF
8194 cat confdefs.h >>conftest.$ac_ext
8195 cat >>conftest.$ac_ext <<_ACEOF
8196 /* end confdefs.h.  */
8197
8198 int
8199 main ()
8200 {
8201 int main() { return 0; }
8202   ;
8203   return 0;
8204 }
8205 _ACEOF
8206 rm -f conftest.$ac_objext conftest$ac_exeext
8207 if { (ac_try="$ac_link"
8208 case "(($ac_try" in
8209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8210   *) ac_try_echo=$ac_try;;
8211 esac
8212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8213   (eval "$ac_link") 2>conftest.er1
8214   ac_status=$?
8215   grep -v '^ *+' conftest.er1 >conftest.err
8216   rm -f conftest.er1
8217   cat conftest.err >&5
8218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8219   (exit $ac_status); } &&
8220          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8221   { (case "(($ac_try" in
8222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8223   *) ac_try_echo=$ac_try;;
8224 esac
8225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8226   (eval "$ac_try") 2>&5
8227   ac_status=$?
8228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8229   (exit $ac_status); }; } &&
8230          { ac_try='test -s conftest$ac_exeext'
8231   { (case "(($ac_try" in
8232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8233   *) ac_try_echo=$ac_try;;
8234 esac
8235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8236   (eval "$ac_try") 2>&5
8237   ac_status=$?
8238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8239   (exit $ac_status); }; }; then
8240   llvm_cv_link_use_r=yes
8241 else
8242   echo "$as_me: failed program was:" >&5
8243 sed 's/^/| /' conftest.$ac_ext >&5
8244
8245         llvm_cv_link_use_r=no
8246 fi
8247
8248 rm -f core conftest.err conftest.$ac_objext \
8249       conftest$ac_exeext conftest.$ac_ext
8250   CFLAGS="$oldcflags"
8251   ac_ext=c
8252 ac_cpp='$CPP $CPPFLAGS'
8253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8256
8257
8258 fi
8259 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8260 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8261 if test "$llvm_cv_link_use_r" = yes ; then
8262
8263 cat >>confdefs.h <<\_ACEOF
8264 #define HAVE_LINK_R 1
8265 _ACEOF
8266
8267   fi
8268
8269
8270
8271
8272 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8273 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8274 if test "${ac_cv_c_const+set}" = set; then
8275   echo $ECHO_N "(cached) $ECHO_C" >&6
8276 else
8277   cat >conftest.$ac_ext <<_ACEOF
8278 /* confdefs.h.  */
8279 _ACEOF
8280 cat confdefs.h >>conftest.$ac_ext
8281 cat >>conftest.$ac_ext <<_ACEOF
8282 /* end confdefs.h.  */
8283
8284 int
8285 main ()
8286 {
8287 /* FIXME: Include the comments suggested by Paul. */
8288 #ifndef __cplusplus
8289   /* Ultrix mips cc rejects this.  */
8290   typedef int charset[2];
8291   const charset x;
8292   /* SunOS 4.1.1 cc rejects this.  */
8293   char const *const *ccp;
8294   char **p;
8295   /* NEC SVR4.0.2 mips cc rejects this.  */
8296   struct point {int x, y;};
8297   static struct point const zero = {0,0};
8298   /* AIX XL C 1.02.0.0 rejects this.
8299      It does not let you subtract one const X* pointer from another in
8300      an arm of an if-expression whose if-part is not a constant
8301      expression */
8302   const char *g = "string";
8303   ccp = &g + (g ? g-g : 0);
8304   /* HPUX 7.0 cc rejects these. */
8305   ++ccp;
8306   p = (char**) ccp;
8307   ccp = (char const *const *) p;
8308   { /* SCO 3.2v4 cc rejects this.  */
8309     char *t;
8310     char const *s = 0 ? (char *) 0 : (char const *) 0;
8311
8312     *t++ = 0;
8313     if (s) return 0;
8314   }
8315   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8316     int x[] = {25, 17};
8317     const int *foo = &x[0];
8318     ++foo;
8319   }
8320   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8321     typedef const int *iptr;
8322     iptr p = 0;
8323     ++p;
8324   }
8325   { /* AIX XL C 1.02.0.0 rejects this saying
8326        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8327     struct s { int j; const int *ap[3]; };
8328     struct s *b; b->j = 5;
8329   }
8330   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8331     const int foo = 10;
8332     if (!foo) return 0;
8333   }
8334   return !x[0] && !zero.x;
8335 #endif
8336
8337   ;
8338   return 0;
8339 }
8340 _ACEOF
8341 rm -f conftest.$ac_objext
8342 if { (ac_try="$ac_compile"
8343 case "(($ac_try" in
8344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8345   *) ac_try_echo=$ac_try;;
8346 esac
8347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8348   (eval "$ac_compile") 2>conftest.er1
8349   ac_status=$?
8350   grep -v '^ *+' conftest.er1 >conftest.err
8351   rm -f conftest.er1
8352   cat conftest.err >&5
8353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8354   (exit $ac_status); } &&
8355          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8356   { (case "(($ac_try" in
8357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8358   *) ac_try_echo=$ac_try;;
8359 esac
8360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8361   (eval "$ac_try") 2>&5
8362   ac_status=$?
8363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364   (exit $ac_status); }; } &&
8365          { ac_try='test -s conftest.$ac_objext'
8366   { (case "(($ac_try" in
8367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8368   *) ac_try_echo=$ac_try;;
8369 esac
8370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8371   (eval "$ac_try") 2>&5
8372   ac_status=$?
8373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8374   (exit $ac_status); }; }; then
8375   ac_cv_c_const=yes
8376 else
8377   echo "$as_me: failed program was:" >&5
8378 sed 's/^/| /' conftest.$ac_ext >&5
8379
8380         ac_cv_c_const=no
8381 fi
8382
8383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8384 fi
8385 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8386 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8387 if test $ac_cv_c_const = no; then
8388
8389 cat >>confdefs.h <<\_ACEOF
8390 #define const
8391 _ACEOF
8392
8393 fi
8394
8395
8396
8397
8398
8399
8400 ac_header_dirent=no
8401 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8402   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8403 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8404 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8405 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8406   echo $ECHO_N "(cached) $ECHO_C" >&6
8407 else
8408   cat >conftest.$ac_ext <<_ACEOF
8409 /* confdefs.h.  */
8410 _ACEOF
8411 cat confdefs.h >>conftest.$ac_ext
8412 cat >>conftest.$ac_ext <<_ACEOF
8413 /* end confdefs.h.  */
8414 #include <sys/types.h>
8415 #include <$ac_hdr>
8416
8417 int
8418 main ()
8419 {
8420 if ((DIR *) 0)
8421 return 0;
8422   ;
8423   return 0;
8424 }
8425 _ACEOF
8426 rm -f conftest.$ac_objext
8427 if { (ac_try="$ac_compile"
8428 case "(($ac_try" in
8429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8430   *) ac_try_echo=$ac_try;;
8431 esac
8432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8433   (eval "$ac_compile") 2>conftest.er1
8434   ac_status=$?
8435   grep -v '^ *+' conftest.er1 >conftest.err
8436   rm -f conftest.er1
8437   cat conftest.err >&5
8438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8439   (exit $ac_status); } &&
8440          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8441   { (case "(($ac_try" in
8442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8443   *) ac_try_echo=$ac_try;;
8444 esac
8445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8446   (eval "$ac_try") 2>&5
8447   ac_status=$?
8448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8449   (exit $ac_status); }; } &&
8450          { ac_try='test -s conftest.$ac_objext'
8451   { (case "(($ac_try" in
8452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8453   *) ac_try_echo=$ac_try;;
8454 esac
8455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8456   (eval "$ac_try") 2>&5
8457   ac_status=$?
8458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8459   (exit $ac_status); }; }; then
8460   eval "$as_ac_Header=yes"
8461 else
8462   echo "$as_me: failed program was:" >&5
8463 sed 's/^/| /' conftest.$ac_ext >&5
8464
8465         eval "$as_ac_Header=no"
8466 fi
8467
8468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8469 fi
8470 ac_res=`eval echo '${'$as_ac_Header'}'`
8471                { echo "$as_me:$LINENO: result: $ac_res" >&5
8472 echo "${ECHO_T}$ac_res" >&6; }
8473 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8474   cat >>confdefs.h <<_ACEOF
8475 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8476 _ACEOF
8477
8478 ac_header_dirent=$ac_hdr; break
8479 fi
8480
8481 done
8482 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8483 if test $ac_header_dirent = dirent.h; then
8484   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8485 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8486 if test "${ac_cv_search_opendir+set}" = set; then
8487   echo $ECHO_N "(cached) $ECHO_C" >&6
8488 else
8489   ac_func_search_save_LIBS=$LIBS
8490 cat >conftest.$ac_ext <<_ACEOF
8491 /* confdefs.h.  */
8492 _ACEOF
8493 cat confdefs.h >>conftest.$ac_ext
8494 cat >>conftest.$ac_ext <<_ACEOF
8495 /* end confdefs.h.  */
8496
8497 /* Override any GCC internal prototype to avoid an error.
8498    Use char because int might match the return type of a GCC
8499    builtin and then its argument prototype would still apply.  */
8500 #ifdef __cplusplus
8501 extern "C"
8502 #endif
8503 char opendir ();
8504 int
8505 main ()
8506 {
8507 return opendir ();
8508   ;
8509   return 0;
8510 }
8511 _ACEOF
8512 for ac_lib in '' dir; do
8513   if test -z "$ac_lib"; then
8514     ac_res="none required"
8515   else
8516     ac_res=-l$ac_lib
8517     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8518   fi
8519   rm -f conftest.$ac_objext conftest$ac_exeext
8520 if { (ac_try="$ac_link"
8521 case "(($ac_try" in
8522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8523   *) ac_try_echo=$ac_try;;
8524 esac
8525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8526   (eval "$ac_link") 2>conftest.er1
8527   ac_status=$?
8528   grep -v '^ *+' conftest.er1 >conftest.err
8529   rm -f conftest.er1
8530   cat conftest.err >&5
8531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8532   (exit $ac_status); } &&
8533          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8534   { (case "(($ac_try" in
8535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8536   *) ac_try_echo=$ac_try;;
8537 esac
8538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8539   (eval "$ac_try") 2>&5
8540   ac_status=$?
8541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542   (exit $ac_status); }; } &&
8543          { ac_try='test -s conftest$ac_exeext'
8544   { (case "(($ac_try" in
8545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8546   *) ac_try_echo=$ac_try;;
8547 esac
8548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8549   (eval "$ac_try") 2>&5
8550   ac_status=$?
8551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8552   (exit $ac_status); }; }; then
8553   ac_cv_search_opendir=$ac_res
8554 else
8555   echo "$as_me: failed program was:" >&5
8556 sed 's/^/| /' conftest.$ac_ext >&5
8557
8558
8559 fi
8560
8561 rm -f core conftest.err conftest.$ac_objext \
8562       conftest$ac_exeext
8563   if test "${ac_cv_search_opendir+set}" = set; then
8564   break
8565 fi
8566 done
8567 if test "${ac_cv_search_opendir+set}" = set; then
8568   :
8569 else
8570   ac_cv_search_opendir=no
8571 fi
8572 rm conftest.$ac_ext
8573 LIBS=$ac_func_search_save_LIBS
8574 fi
8575 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8576 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8577 ac_res=$ac_cv_search_opendir
8578 if test "$ac_res" != no; then
8579   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8580
8581 fi
8582
8583 else
8584   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8585 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8586 if test "${ac_cv_search_opendir+set}" = set; then
8587   echo $ECHO_N "(cached) $ECHO_C" >&6
8588 else
8589   ac_func_search_save_LIBS=$LIBS
8590 cat >conftest.$ac_ext <<_ACEOF
8591 /* confdefs.h.  */
8592 _ACEOF
8593 cat confdefs.h >>conftest.$ac_ext
8594 cat >>conftest.$ac_ext <<_ACEOF
8595 /* end confdefs.h.  */
8596
8597 /* Override any GCC internal prototype to avoid an error.
8598    Use char because int might match the return type of a GCC
8599    builtin and then its argument prototype would still apply.  */
8600 #ifdef __cplusplus
8601 extern "C"
8602 #endif
8603 char opendir ();
8604 int
8605 main ()
8606 {
8607 return opendir ();
8608   ;
8609   return 0;
8610 }
8611 _ACEOF
8612 for ac_lib in '' x; do
8613   if test -z "$ac_lib"; then
8614     ac_res="none required"
8615   else
8616     ac_res=-l$ac_lib
8617     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8618   fi
8619   rm -f conftest.$ac_objext conftest$ac_exeext
8620 if { (ac_try="$ac_link"
8621 case "(($ac_try" in
8622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8623   *) ac_try_echo=$ac_try;;
8624 esac
8625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8626   (eval "$ac_link") 2>conftest.er1
8627   ac_status=$?
8628   grep -v '^ *+' conftest.er1 >conftest.err
8629   rm -f conftest.er1
8630   cat conftest.err >&5
8631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8632   (exit $ac_status); } &&
8633          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8634   { (case "(($ac_try" in
8635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8636   *) ac_try_echo=$ac_try;;
8637 esac
8638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8639   (eval "$ac_try") 2>&5
8640   ac_status=$?
8641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8642   (exit $ac_status); }; } &&
8643          { ac_try='test -s conftest$ac_exeext'
8644   { (case "(($ac_try" in
8645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8646   *) ac_try_echo=$ac_try;;
8647 esac
8648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8649   (eval "$ac_try") 2>&5
8650   ac_status=$?
8651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652   (exit $ac_status); }; }; then
8653   ac_cv_search_opendir=$ac_res
8654 else
8655   echo "$as_me: failed program was:" >&5
8656 sed 's/^/| /' conftest.$ac_ext >&5
8657
8658
8659 fi
8660
8661 rm -f core conftest.err conftest.$ac_objext \
8662       conftest$ac_exeext
8663   if test "${ac_cv_search_opendir+set}" = set; then
8664   break
8665 fi
8666 done
8667 if test "${ac_cv_search_opendir+set}" = set; then
8668   :
8669 else
8670   ac_cv_search_opendir=no
8671 fi
8672 rm conftest.$ac_ext
8673 LIBS=$ac_func_search_save_LIBS
8674 fi
8675 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8676 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8677 ac_res=$ac_cv_search_opendir
8678 if test "$ac_res" != no; then
8679   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8680
8681 fi
8682
8683 fi
8684
8685
8686 for ac_header in dlfcn.h
8687 do
8688 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8689 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8690   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8691 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8692 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8693   echo $ECHO_N "(cached) $ECHO_C" >&6
8694 fi
8695 ac_res=`eval echo '${'$as_ac_Header'}'`
8696                { echo "$as_me:$LINENO: result: $ac_res" >&5
8697 echo "${ECHO_T}$ac_res" >&6; }
8698 else
8699   # Is the header compilable?
8700 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8701 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8702 cat >conftest.$ac_ext <<_ACEOF
8703 /* confdefs.h.  */
8704 _ACEOF
8705 cat confdefs.h >>conftest.$ac_ext
8706 cat >>conftest.$ac_ext <<_ACEOF
8707 /* end confdefs.h.  */
8708 $ac_includes_default
8709 #include <$ac_header>
8710 _ACEOF
8711 rm -f conftest.$ac_objext
8712 if { (ac_try="$ac_compile"
8713 case "(($ac_try" in
8714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8715   *) ac_try_echo=$ac_try;;
8716 esac
8717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8718   (eval "$ac_compile") 2>conftest.er1
8719   ac_status=$?
8720   grep -v '^ *+' conftest.er1 >conftest.err
8721   rm -f conftest.er1
8722   cat conftest.err >&5
8723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8724   (exit $ac_status); } &&
8725          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8726   { (case "(($ac_try" in
8727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8728   *) ac_try_echo=$ac_try;;
8729 esac
8730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8731   (eval "$ac_try") 2>&5
8732   ac_status=$?
8733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8734   (exit $ac_status); }; } &&
8735          { ac_try='test -s conftest.$ac_objext'
8736   { (case "(($ac_try" in
8737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8738   *) ac_try_echo=$ac_try;;
8739 esac
8740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8741   (eval "$ac_try") 2>&5
8742   ac_status=$?
8743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8744   (exit $ac_status); }; }; then
8745   ac_header_compiler=yes
8746 else
8747   echo "$as_me: failed program was:" >&5
8748 sed 's/^/| /' conftest.$ac_ext >&5
8749
8750         ac_header_compiler=no
8751 fi
8752
8753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8754 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8755 echo "${ECHO_T}$ac_header_compiler" >&6; }
8756
8757 # Is the header present?
8758 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8759 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8760 cat >conftest.$ac_ext <<_ACEOF
8761 /* confdefs.h.  */
8762 _ACEOF
8763 cat confdefs.h >>conftest.$ac_ext
8764 cat >>conftest.$ac_ext <<_ACEOF
8765 /* end confdefs.h.  */
8766 #include <$ac_header>
8767 _ACEOF
8768 if { (ac_try="$ac_cpp conftest.$ac_ext"
8769 case "(($ac_try" in
8770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8771   *) ac_try_echo=$ac_try;;
8772 esac
8773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8774   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8775   ac_status=$?
8776   grep -v '^ *+' conftest.er1 >conftest.err
8777   rm -f conftest.er1
8778   cat conftest.err >&5
8779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8780   (exit $ac_status); } >/dev/null; then
8781   if test -s conftest.err; then
8782     ac_cpp_err=$ac_c_preproc_warn_flag
8783     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8784   else
8785     ac_cpp_err=
8786   fi
8787 else
8788   ac_cpp_err=yes
8789 fi
8790 if test -z "$ac_cpp_err"; then
8791   ac_header_preproc=yes
8792 else
8793   echo "$as_me: failed program was:" >&5
8794 sed 's/^/| /' conftest.$ac_ext >&5
8795
8796   ac_header_preproc=no
8797 fi
8798
8799 rm -f conftest.err conftest.$ac_ext
8800 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8801 echo "${ECHO_T}$ac_header_preproc" >&6; }
8802
8803 # So?  What about this header?
8804 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8805   yes:no: )
8806     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8807 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8808     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8809 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8810     ac_header_preproc=yes
8811     ;;
8812   no:yes:* )
8813     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8814 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8815     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8816 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8817     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8818 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8819     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8820 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8821     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8822 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8823     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8824 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8825     ( cat <<\_ASBOX
8826 ## ----------------------------------- ##
8827 ## Report this to llvmbugs@cs.uiuc.edu ##
8828 ## ----------------------------------- ##
8829 _ASBOX
8830      ) | sed "s/^/$as_me: WARNING:     /" >&2
8831     ;;
8832 esac
8833 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8834 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8835 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8836   echo $ECHO_N "(cached) $ECHO_C" >&6
8837 else
8838   eval "$as_ac_Header=\$ac_header_preproc"
8839 fi
8840 ac_res=`eval echo '${'$as_ac_Header'}'`
8841                { echo "$as_me:$LINENO: result: $ac_res" >&5
8842 echo "${ECHO_T}$ac_res" >&6; }
8843
8844 fi
8845 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8846   cat >>confdefs.h <<_ACEOF
8847 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8848 _ACEOF
8849
8850 fi
8851
8852 done
8853
8854 # Check whether --enable-ltdl-install was given.
8855 if test "${enable_ltdl_install+set}" = set; then
8856   enableval=$enable_ltdl_install;
8857 fi
8858
8859
8860
8861
8862 if test x"${enable_ltdl_install-no}" != xno; then
8863   INSTALL_LTDL_TRUE=
8864   INSTALL_LTDL_FALSE='#'
8865 else
8866   INSTALL_LTDL_TRUE='#'
8867   INSTALL_LTDL_FALSE=
8868 fi
8869
8870
8871
8872 if test x"${enable_ltdl_convenience-no}" != xno; then
8873   CONVENIENCE_LTDL_TRUE=
8874   CONVENIENCE_LTDL_FALSE='#'
8875 else
8876   CONVENIENCE_LTDL_TRUE='#'
8877   CONVENIENCE_LTDL_FALSE=
8878 fi
8879
8880
8881 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8882 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8883 library_names_spec=
8884 libname_spec='lib$name'
8885 soname_spec=
8886 shrext_cmds=".so"
8887 postinstall_cmds=
8888 postuninstall_cmds=
8889 finish_cmds=
8890 finish_eval=
8891 shlibpath_var=
8892 shlibpath_overrides_runpath=unknown
8893 version_type=none
8894 dynamic_linker="$host_os ld.so"
8895 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8896 if test "$GCC" = yes; then
8897   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8898   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8899     # if the path contains ";" then we assume it to be the separator
8900     # otherwise default to the standard path separator (i.e. ":") - it is
8901     # assumed that no part of a normal pathname contains ";" but that should
8902     # okay in the real world where ";" in dirpaths is itself problematic.
8903     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8904   else
8905     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8906   fi
8907 else
8908   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8909 fi
8910 need_lib_prefix=unknown
8911 hardcode_into_libs=no
8912
8913 # when you set need_version to no, make sure it does not cause -set_version
8914 # flags to be left without arguments
8915 need_version=unknown
8916
8917 case $host_os in
8918 aix3*)
8919   version_type=linux
8920   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8921   shlibpath_var=LIBPATH
8922
8923   # AIX 3 has no versioning support, so we append a major version to the name.
8924   soname_spec='${libname}${release}${shared_ext}$major'
8925   ;;
8926
8927 aix4* | aix5*)
8928   version_type=linux
8929   need_lib_prefix=no
8930   need_version=no
8931   hardcode_into_libs=yes
8932   if test "$host_cpu" = ia64; then
8933     # AIX 5 supports IA64
8934     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8935     shlibpath_var=LD_LIBRARY_PATH
8936   else
8937     # With GCC up to 2.95.x, collect2 would create an import file
8938     # for dependence libraries.  The import file would start with
8939     # the line `#! .'.  This would cause the generated library to
8940     # depend on `.', always an invalid library.  This was fixed in
8941     # development snapshots of GCC prior to 3.0.
8942     case $host_os in
8943       aix4 | aix4.[01] | aix4.[01].*)
8944       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8945            echo ' yes '
8946            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8947         :
8948       else
8949         can_build_shared=no
8950       fi
8951       ;;
8952     esac
8953     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8954     # soname into executable. Probably we can add versioning support to
8955     # collect2, so additional links can be useful in future.
8956     if test "$aix_use_runtimelinking" = yes; then
8957       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8958       # instead of lib<name>.a to let people know that these are not
8959       # typical AIX shared libraries.
8960       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8961     else
8962       # We preserve .a as extension for shared libraries through AIX4.2
8963       # and later when we are not doing run time linking.
8964       library_names_spec='${libname}${release}.a $libname.a'
8965       soname_spec='${libname}${release}${shared_ext}$major'
8966     fi
8967     shlibpath_var=LIBPATH
8968   fi
8969   ;;
8970
8971 amigaos*)
8972   library_names_spec='$libname.ixlibrary $libname.a'
8973   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8974   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'
8975   ;;
8976
8977 beos*)
8978   library_names_spec='${libname}${shared_ext}'
8979   dynamic_linker="$host_os ld.so"
8980   shlibpath_var=LIBRARY_PATH
8981   ;;
8982
8983 bsdi[45]*)
8984   version_type=linux
8985   need_version=no
8986   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8987   soname_spec='${libname}${release}${shared_ext}$major'
8988   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8989   shlibpath_var=LD_LIBRARY_PATH
8990   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8991   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8992   # the default ld.so.conf also contains /usr/contrib/lib and
8993   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8994   # libtool to hard-code these into programs
8995   ;;
8996
8997 cygwin* | mingw* | pw32*)
8998   version_type=windows
8999   shrext_cmds=".dll"
9000   need_version=no
9001   need_lib_prefix=no
9002
9003   case $GCC,$host_os in
9004   yes,cygwin* | yes,mingw* | yes,pw32*)
9005     library_names_spec='$libname.dll.a'
9006     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9007     postinstall_cmds='base_file=`basename \${file}`~
9008       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9009       dldir=$destdir/`dirname \$dlpath`~
9010       test -d \$dldir || mkdir -p \$dldir~
9011       $install_prog $dir/$dlname \$dldir/$dlname~
9012       chmod a+x \$dldir/$dlname'
9013     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9014       dlpath=$dir/\$dldll~
9015        $rm \$dlpath'
9016     shlibpath_overrides_runpath=yes
9017
9018     case $host_os in
9019     cygwin*)
9020       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9021       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9022       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9023       ;;
9024     mingw*)
9025       # MinGW DLLs use traditional 'lib' prefix
9026       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9027       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9028       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9029         # It is most probably a Windows format PATH printed by
9030         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9031         # path with ; separators, and with drive letters. We can handle the
9032         # drive letters (cygwin fileutils understands them), so leave them,
9033         # especially as we might pass files found there to a mingw objdump,
9034         # which wouldn't understand a cygwinified path. Ahh.
9035         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9036       else
9037         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9038       fi
9039       ;;
9040     pw32*)
9041       # pw32 DLLs use 'pw' prefix rather than 'lib'
9042       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9043       ;;
9044     esac
9045     ;;
9046
9047   *)
9048     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9049     ;;
9050   esac
9051   dynamic_linker='Win32 ld.exe'
9052   # FIXME: first we should search . and the directory the executable is in
9053   shlibpath_var=PATH
9054   ;;
9055
9056 darwin* | rhapsody*)
9057   dynamic_linker="$host_os dyld"
9058   version_type=darwin
9059   need_lib_prefix=no
9060   need_version=no
9061   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9062   soname_spec='${libname}${release}${major}$shared_ext'
9063   shlibpath_overrides_runpath=yes
9064   shlibpath_var=DYLD_LIBRARY_PATH
9065   shrext_cmds='.dylib'
9066   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9067   if test "$GCC" = yes; then
9068     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"`
9069   else
9070     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9071   fi
9072   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9073   ;;
9074
9075 dgux*)
9076   version_type=linux
9077   need_lib_prefix=no
9078   need_version=no
9079   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9080   soname_spec='${libname}${release}${shared_ext}$major'
9081   shlibpath_var=LD_LIBRARY_PATH
9082   ;;
9083
9084 freebsd1*)
9085   dynamic_linker=no
9086   ;;
9087
9088 kfreebsd*-gnu)
9089   version_type=linux
9090   need_lib_prefix=no
9091   need_version=no
9092   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9093   soname_spec='${libname}${release}${shared_ext}$major'
9094   shlibpath_var=LD_LIBRARY_PATH
9095   shlibpath_overrides_runpath=no
9096   hardcode_into_libs=yes
9097   dynamic_linker='GNU ld.so'
9098   ;;
9099
9100 freebsd* | dragonfly*)
9101   # DragonFly does not have aout.  When/if they implement a new
9102   # versioning mechanism, adjust this.
9103   if test -x /usr/bin/objformat; then
9104     objformat=`/usr/bin/objformat`
9105   else
9106     case $host_os in
9107     freebsd[123]*) objformat=aout ;;
9108     *) objformat=elf ;;
9109     esac
9110   fi
9111   version_type=freebsd-$objformat
9112   case $version_type in
9113     freebsd-elf*)
9114       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9115       need_version=no
9116       need_lib_prefix=no
9117       ;;
9118     freebsd-*)
9119       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9120       need_version=yes
9121       ;;
9122   esac
9123   shlibpath_var=LD_LIBRARY_PATH
9124   case $host_os in
9125   freebsd2*)
9126     shlibpath_overrides_runpath=yes
9127     ;;
9128   freebsd3.[01]* | freebsdelf3.[01]*)
9129     shlibpath_overrides_runpath=yes
9130     hardcode_into_libs=yes
9131     ;;
9132   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9133   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9134     shlibpath_overrides_runpath=no
9135     hardcode_into_libs=yes
9136     ;;
9137   freebsd*) # from 4.6 on
9138     shlibpath_overrides_runpath=yes
9139     hardcode_into_libs=yes
9140     ;;
9141   esac
9142   ;;
9143
9144 gnu*)
9145   version_type=linux
9146   need_lib_prefix=no
9147   need_version=no
9148   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9149   soname_spec='${libname}${release}${shared_ext}$major'
9150   shlibpath_var=LD_LIBRARY_PATH
9151   hardcode_into_libs=yes
9152   ;;
9153
9154 hpux9* | hpux10* | hpux11*)
9155   # Give a soname corresponding to the major version so that dld.sl refuses to
9156   # link against other versions.
9157   version_type=sunos
9158   need_lib_prefix=no
9159   need_version=no
9160   case $host_cpu in
9161   ia64*)
9162     shrext_cmds='.so'
9163     hardcode_into_libs=yes
9164     dynamic_linker="$host_os dld.so"
9165     shlibpath_var=LD_LIBRARY_PATH
9166     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9167     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9168     soname_spec='${libname}${release}${shared_ext}$major'
9169     if test "X$HPUX_IA64_MODE" = X32; then
9170       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9171     else
9172       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9173     fi
9174     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9175     ;;
9176    hppa*64*)
9177      shrext_cmds='.sl'
9178      hardcode_into_libs=yes
9179      dynamic_linker="$host_os dld.sl"
9180      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9181      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9182      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9183      soname_spec='${libname}${release}${shared_ext}$major'
9184      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9185      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9186      ;;
9187    *)
9188     shrext_cmds='.sl'
9189     dynamic_linker="$host_os dld.sl"
9190     shlibpath_var=SHLIB_PATH
9191     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9192     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9193     soname_spec='${libname}${release}${shared_ext}$major'
9194     ;;
9195   esac
9196   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9197   postinstall_cmds='chmod 555 $lib'
9198   ;;
9199
9200 interix3*)
9201   version_type=linux
9202   need_lib_prefix=no
9203   need_version=no
9204   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9205   soname_spec='${libname}${release}${shared_ext}$major'
9206   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9207   shlibpath_var=LD_LIBRARY_PATH
9208   shlibpath_overrides_runpath=no
9209   hardcode_into_libs=yes
9210   ;;
9211
9212 irix5* | irix6* | nonstopux*)
9213   case $host_os in
9214     nonstopux*) version_type=nonstopux ;;
9215     *)
9216         if test "$lt_cv_prog_gnu_ld" = yes; then
9217                 version_type=linux
9218         else
9219                 version_type=irix
9220         fi ;;
9221   esac
9222   need_lib_prefix=no
9223   need_version=no
9224   soname_spec='${libname}${release}${shared_ext}$major'
9225   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9226   case $host_os in
9227   irix5* | nonstopux*)
9228     libsuff= shlibsuff=
9229     ;;
9230   *)
9231     case $LD in # libtool.m4 will add one of these switches to LD
9232     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9233       libsuff= shlibsuff= libmagic=32-bit;;
9234     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9235       libsuff=32 shlibsuff=N32 libmagic=N32;;
9236     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9237       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9238     *) libsuff= shlibsuff= libmagic=never-match;;
9239     esac
9240     ;;
9241   esac
9242   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9243   shlibpath_overrides_runpath=no
9244   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9245   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9246   hardcode_into_libs=yes
9247   ;;
9248
9249 # No shared lib support for Linux oldld, aout, or coff.
9250 linux*oldld* | linux*aout* | linux*coff*)
9251   dynamic_linker=no
9252   ;;
9253
9254 # This must be Linux ELF.
9255 linux*)
9256   version_type=linux
9257   need_lib_prefix=no
9258   need_version=no
9259   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9260   soname_spec='${libname}${release}${shared_ext}$major'
9261   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9262   shlibpath_var=LD_LIBRARY_PATH
9263   shlibpath_overrides_runpath=no
9264   # This implies no fast_install, which is unacceptable.
9265   # Some rework will be needed to allow for fast_install
9266   # before this can be enabled.
9267   hardcode_into_libs=yes
9268
9269   # Append ld.so.conf contents to the search path
9270   if test -f /etc/ld.so.conf; then
9271     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' ' '`
9272     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9273   fi
9274
9275   # We used to test for /lib/ld.so.1 and disable shared libraries on
9276   # powerpc, because MkLinux only supported shared libraries with the
9277   # GNU dynamic linker.  Since this was broken with cross compilers,
9278   # most powerpc-linux boxes support dynamic linking these days and
9279   # people can always --disable-shared, the test was removed, and we
9280   # assume the GNU/Linux dynamic linker is in use.
9281   dynamic_linker='GNU/Linux ld.so'
9282   ;;
9283
9284 knetbsd*-gnu)
9285   version_type=linux
9286   need_lib_prefix=no
9287   need_version=no
9288   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9289   soname_spec='${libname}${release}${shared_ext}$major'
9290   shlibpath_var=LD_LIBRARY_PATH
9291   shlibpath_overrides_runpath=no
9292   hardcode_into_libs=yes
9293   dynamic_linker='GNU ld.so'
9294   ;;
9295
9296 netbsd*)
9297   version_type=sunos
9298   need_lib_prefix=no
9299   need_version=no
9300   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9301     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9302     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9303     dynamic_linker='NetBSD (a.out) ld.so'
9304   else
9305     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9306     soname_spec='${libname}${release}${shared_ext}$major'
9307     dynamic_linker='NetBSD ld.elf_so'
9308   fi
9309   shlibpath_var=LD_LIBRARY_PATH
9310   shlibpath_overrides_runpath=yes
9311   hardcode_into_libs=yes
9312   ;;
9313
9314 newsos6)
9315   version_type=linux
9316   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9317   shlibpath_var=LD_LIBRARY_PATH
9318   shlibpath_overrides_runpath=yes
9319   ;;
9320
9321 nto-qnx*)
9322   version_type=linux
9323   need_lib_prefix=no
9324   need_version=no
9325   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9326   soname_spec='${libname}${release}${shared_ext}$major'
9327   shlibpath_var=LD_LIBRARY_PATH
9328   shlibpath_overrides_runpath=yes
9329   ;;
9330
9331 openbsd*)
9332   version_type=sunos
9333   sys_lib_dlsearch_path_spec="/usr/lib"
9334   need_lib_prefix=no
9335   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9336   case $host_os in
9337     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9338     *)                         need_version=no  ;;
9339   esac
9340   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9341   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9342   shlibpath_var=LD_LIBRARY_PATH
9343   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9344     case $host_os in
9345       openbsd2.[89] | openbsd2.[89].*)
9346         shlibpath_overrides_runpath=no
9347         ;;
9348       *)
9349         shlibpath_overrides_runpath=yes
9350         ;;
9351       esac
9352   else
9353     shlibpath_overrides_runpath=yes
9354   fi
9355   ;;
9356
9357 os2*)
9358   libname_spec='$name'
9359   shrext_cmds=".dll"
9360   need_lib_prefix=no
9361   library_names_spec='$libname${shared_ext} $libname.a'
9362   dynamic_linker='OS/2 ld.exe'
9363   shlibpath_var=LIBPATH
9364   ;;
9365
9366 osf3* | osf4* | osf5*)
9367   version_type=osf
9368   need_lib_prefix=no
9369   need_version=no
9370   soname_spec='${libname}${release}${shared_ext}$major'
9371   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9372   shlibpath_var=LD_LIBRARY_PATH
9373   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9374   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9375   ;;
9376
9377 solaris*)
9378   version_type=linux
9379   need_lib_prefix=no
9380   need_version=no
9381   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9382   soname_spec='${libname}${release}${shared_ext}$major'
9383   shlibpath_var=LD_LIBRARY_PATH
9384   shlibpath_overrides_runpath=yes
9385   hardcode_into_libs=yes
9386   # ldd complains unless libraries are executable
9387   postinstall_cmds='chmod +x $lib'
9388   ;;
9389
9390 sunos4*)
9391   version_type=sunos
9392   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9393   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9394   shlibpath_var=LD_LIBRARY_PATH
9395   shlibpath_overrides_runpath=yes
9396   if test "$with_gnu_ld" = yes; then
9397     need_lib_prefix=no
9398   fi
9399   need_version=yes
9400   ;;
9401
9402 sysv4 | sysv4.3*)
9403   version_type=linux
9404   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9405   soname_spec='${libname}${release}${shared_ext}$major'
9406   shlibpath_var=LD_LIBRARY_PATH
9407   case $host_vendor in
9408     sni)
9409       shlibpath_overrides_runpath=no
9410       need_lib_prefix=no
9411       export_dynamic_flag_spec='${wl}-Blargedynsym'
9412       runpath_var=LD_RUN_PATH
9413       ;;
9414     siemens)
9415       need_lib_prefix=no
9416       ;;
9417     motorola)
9418       need_lib_prefix=no
9419       need_version=no
9420       shlibpath_overrides_runpath=no
9421       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9422       ;;
9423   esac
9424   ;;
9425
9426 sysv4*MP*)
9427   if test -d /usr/nec ;then
9428     version_type=linux
9429     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9430     soname_spec='$libname${shared_ext}.$major'
9431     shlibpath_var=LD_LIBRARY_PATH
9432   fi
9433   ;;
9434
9435 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9436   version_type=freebsd-elf
9437   need_lib_prefix=no
9438   need_version=no
9439   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9440   soname_spec='${libname}${release}${shared_ext}$major'
9441   shlibpath_var=LD_LIBRARY_PATH
9442   hardcode_into_libs=yes
9443   if test "$with_gnu_ld" = yes; then
9444     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9445     shlibpath_overrides_runpath=no
9446   else
9447     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9448     shlibpath_overrides_runpath=yes
9449     case $host_os in
9450       sco3.2v5*)
9451         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9452         ;;
9453     esac
9454   fi
9455   sys_lib_dlsearch_path_spec='/usr/lib'
9456   ;;
9457
9458 uts4*)
9459   version_type=linux
9460   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9461   soname_spec='${libname}${release}${shared_ext}$major'
9462   shlibpath_var=LD_LIBRARY_PATH
9463   ;;
9464
9465 *)
9466   dynamic_linker=no
9467   ;;
9468 esac
9469 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9470 echo "${ECHO_T}$dynamic_linker" >&6; }
9471 test "$dynamic_linker" = no && can_build_shared=no
9472
9473 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9474 if test "$GCC" = yes; then
9475   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9476 fi
9477
9478
9479 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9480 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9481 if test "${libltdl_cv_shlibext+set}" = set; then
9482   echo $ECHO_N "(cached) $ECHO_C" >&6
9483 else
9484
9485 module=yes
9486 eval libltdl_cv_shlibext=$shrext_cmds
9487
9488 fi
9489 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9490 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9491 if test -n "$libltdl_cv_shlibext"; then
9492
9493 cat >>confdefs.h <<_ACEOF
9494 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9495 _ACEOF
9496
9497 fi
9498
9499
9500 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9501 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9502 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9503   echo $ECHO_N "(cached) $ECHO_C" >&6
9504 else
9505   libltdl_cv_shlibpath_var="$shlibpath_var"
9506 fi
9507 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9508 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9509 if test -n "$libltdl_cv_shlibpath_var"; then
9510
9511 cat >>confdefs.h <<_ACEOF
9512 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9513 _ACEOF
9514
9515 fi
9516
9517
9518 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9519 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9520 if test "${libltdl_cv_sys_search_path+set}" = set; then
9521   echo $ECHO_N "(cached) $ECHO_C" >&6
9522 else
9523   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9524 fi
9525 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9526 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9527 if test -n "$libltdl_cv_sys_search_path"; then
9528   sys_search_path=
9529   for dir in $libltdl_cv_sys_search_path; do
9530     if test -z "$sys_search_path"; then
9531       sys_search_path="$dir"
9532     else
9533       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9534     fi
9535   done
9536
9537 cat >>confdefs.h <<_ACEOF
9538 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9539 _ACEOF
9540
9541 fi
9542
9543 { echo "$as_me:$LINENO: checking for objdir" >&5
9544 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9545 if test "${libltdl_cv_objdir+set}" = set; then
9546   echo $ECHO_N "(cached) $ECHO_C" >&6
9547 else
9548   libltdl_cv_objdir="$objdir"
9549   if test -n "$objdir"; then
9550     :
9551   else
9552     rm -f .libs 2>/dev/null
9553     mkdir .libs 2>/dev/null
9554     if test -d .libs; then
9555       libltdl_cv_objdir=.libs
9556     else
9557       # MS-DOS does not allow filenames that begin with a dot.
9558       libltdl_cv_objdir=_libs
9559     fi
9560   rmdir .libs 2>/dev/null
9561   fi
9562
9563 fi
9564 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9565 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9566
9567 cat >>confdefs.h <<_ACEOF
9568 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9569 _ACEOF
9570
9571
9572
9573
9574
9575
9576 # Check for command to grab the raw symbol name followed by C symbol from nm.
9577 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9578 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9579 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9580   echo $ECHO_N "(cached) $ECHO_C" >&6
9581 else
9582
9583 # These are sane defaults that work on at least a few old systems.
9584 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9585
9586 # Character class describing NM global symbol codes.
9587 symcode='[BCDEGRST]'
9588
9589 # Regexp to match symbols that can be accessed directly from C.
9590 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9591
9592 # Transform an extracted symbol line into a proper C declaration
9593 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9594
9595 # Transform an extracted symbol line into symbol name and symbol address
9596 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'"
9597
9598 # Define system-specific variables.
9599 case $host_os in
9600 aix*)
9601   symcode='[BCDT]'
9602   ;;
9603 cygwin* | mingw* | pw32*)
9604   symcode='[ABCDGISTW]'
9605   ;;
9606 hpux*) # Its linker distinguishes data from code symbols
9607   if test "$host_cpu" = ia64; then
9608     symcode='[ABCDEGRST]'
9609   fi
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   ;;
9613 linux*)
9614   if test "$host_cpu" = ia64; then
9615     symcode='[ABCDGIRSTW]'
9616     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9617     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'"
9618   fi
9619   ;;
9620 irix* | nonstopux*)
9621   symcode='[BCDEGRST]'
9622   ;;
9623 osf*)
9624   symcode='[BCDEGQRST]'
9625   ;;
9626 solaris*)
9627   symcode='[BDRT]'
9628   ;;
9629 sco3.2v5*)
9630   symcode='[DT]'
9631   ;;
9632 sysv4.2uw2*)
9633   symcode='[DT]'
9634   ;;
9635 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9636   symcode='[ABDT]'
9637   ;;
9638 sysv4)
9639   symcode='[DFNSTU]'
9640   ;;
9641 esac
9642
9643 # Handle CRLF in mingw tool chain
9644 opt_cr=
9645 case $build_os in
9646 mingw*)
9647   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9648   ;;
9649 esac
9650
9651 # If we're using GNU nm, then use its standard symbol codes.
9652 case `$NM -V 2>&1` in
9653 *GNU* | *'with BFD'*)
9654   symcode='[ABCDGIRSTW]' ;;
9655 esac
9656
9657 # Try without a prefix undercore, then with it.
9658 for ac_symprfx in "" "_"; do
9659
9660   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9661   symxfrm="\\1 $ac_symprfx\\2 \\2"
9662
9663   # Write the raw and C identifiers.
9664   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9665
9666   # Check to see that the pipe works correctly.
9667   pipe_works=no
9668
9669   rm -f conftest*
9670   cat > conftest.$ac_ext <<EOF
9671 #ifdef __cplusplus
9672 extern "C" {
9673 #endif
9674 char nm_test_var;
9675 void nm_test_func(){}
9676 #ifdef __cplusplus
9677 }
9678 #endif
9679 int main(){nm_test_var='a';nm_test_func();return(0);}
9680 EOF
9681
9682   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9683   (eval $ac_compile) 2>&5
9684   ac_status=$?
9685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686   (exit $ac_status); }; then
9687     # Now try to grab the symbols.
9688     nlist=conftest.nm
9689     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9690   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9691   ac_status=$?
9692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9693   (exit $ac_status); } && test -s "$nlist"; then
9694       # Try sorting and uniquifying the output.
9695       if sort "$nlist" | uniq > "$nlist"T; then
9696         mv -f "$nlist"T "$nlist"
9697       else
9698         rm -f "$nlist"T
9699       fi
9700
9701       # Make sure that we snagged all the symbols we need.
9702       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9703         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9704           cat <<EOF > conftest.$ac_ext
9705 #ifdef __cplusplus
9706 extern "C" {
9707 #endif
9708
9709 EOF
9710           # Now generate the symbol file.
9711           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9712
9713           cat <<EOF >> conftest.$ac_ext
9714 #if defined (__STDC__) && __STDC__
9715 # define lt_ptr_t void *
9716 #else
9717 # define lt_ptr_t char *
9718 # define const
9719 #endif
9720
9721 /* The mapping between symbol names and symbols. */
9722 const struct {
9723   const char *name;
9724   lt_ptr_t address;
9725 }
9726 lt_preloaded_symbols[] =
9727 {
9728 EOF
9729           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9730           cat <<\EOF >> conftest.$ac_ext
9731   {0, (lt_ptr_t) 0}
9732 };
9733
9734 #ifdef __cplusplus
9735 }
9736 #endif
9737 EOF
9738           # Now try linking the two files.
9739           mv conftest.$ac_objext conftstm.$ac_objext
9740           lt_save_LIBS="$LIBS"
9741           lt_save_CFLAGS="$CFLAGS"
9742           LIBS="conftstm.$ac_objext"
9743           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9744           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9745   (eval $ac_link) 2>&5
9746   ac_status=$?
9747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9748   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9749             pipe_works=yes
9750           fi
9751           LIBS="$lt_save_LIBS"
9752           CFLAGS="$lt_save_CFLAGS"
9753         else
9754           echo "cannot find nm_test_func in $nlist" >&5
9755         fi
9756       else
9757         echo "cannot find nm_test_var in $nlist" >&5
9758       fi
9759     else
9760       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9761     fi
9762   else
9763     echo "$progname: failed program was:" >&5
9764     cat conftest.$ac_ext >&5
9765   fi
9766   rm -f conftest* conftst*
9767
9768   # Do not use the global_symbol_pipe unless it works.
9769   if test "$pipe_works" = yes; then
9770     break
9771   else
9772     lt_cv_sys_global_symbol_pipe=
9773   fi
9774 done
9775
9776 fi
9777
9778 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9779   lt_cv_sys_global_symbol_to_cdecl=
9780 fi
9781 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9782   { echo "$as_me:$LINENO: result: failed" >&5
9783 echo "${ECHO_T}failed" >&6; }
9784 else
9785   { echo "$as_me:$LINENO: result: ok" >&5
9786 echo "${ECHO_T}ok" >&6; }
9787 fi
9788
9789
9790 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9791 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9792 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9793   echo $ECHO_N "(cached) $ECHO_C" >&6
9794 else
9795   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9796     libltdl_cv_preloaded_symbols=yes
9797   else
9798     libltdl_cv_preloaded_symbols=no
9799   fi
9800
9801 fi
9802 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9803 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9804 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9805
9806 cat >>confdefs.h <<\_ACEOF
9807 #define HAVE_PRELOADED_SYMBOLS 1
9808 _ACEOF
9809
9810 fi
9811
9812 LIBADD_DL=
9813
9814 ac_ext=c
9815 ac_cpp='$CPP $CPPFLAGS'
9816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9819
9820
9821 { echo "$as_me:$LINENO: checking for shl_load" >&5
9822 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9823 if test "${ac_cv_func_shl_load+set}" = set; then
9824   echo $ECHO_N "(cached) $ECHO_C" >&6
9825 else
9826   cat >conftest.$ac_ext <<_ACEOF
9827 /* confdefs.h.  */
9828 _ACEOF
9829 cat confdefs.h >>conftest.$ac_ext
9830 cat >>conftest.$ac_ext <<_ACEOF
9831 /* end confdefs.h.  */
9832 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9833    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9834 #define shl_load innocuous_shl_load
9835
9836 /* System header to define __stub macros and hopefully few prototypes,
9837     which can conflict with char shl_load (); below.
9838     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9839     <limits.h> exists even on freestanding compilers.  */
9840
9841 #ifdef __STDC__
9842 # include <limits.h>
9843 #else
9844 # include <assert.h>
9845 #endif
9846
9847 #undef shl_load
9848
9849 /* Override any GCC internal prototype to avoid an error.
9850    Use char because int might match the return type of a GCC
9851    builtin and then its argument prototype would still apply.  */
9852 #ifdef __cplusplus
9853 extern "C"
9854 #endif
9855 char shl_load ();
9856 /* The GNU C library defines this for functions which it implements
9857     to always fail with ENOSYS.  Some functions are actually named
9858     something starting with __ and the normal name is an alias.  */
9859 #if defined __stub_shl_load || defined __stub___shl_load
9860 choke me
9861 #endif
9862
9863 int
9864 main ()
9865 {
9866 return shl_load ();
9867   ;
9868   return 0;
9869 }
9870 _ACEOF
9871 rm -f conftest.$ac_objext conftest$ac_exeext
9872 if { (ac_try="$ac_link"
9873 case "(($ac_try" in
9874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9875   *) ac_try_echo=$ac_try;;
9876 esac
9877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9878   (eval "$ac_link") 2>conftest.er1
9879   ac_status=$?
9880   grep -v '^ *+' conftest.er1 >conftest.err
9881   rm -f conftest.er1
9882   cat conftest.err >&5
9883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884   (exit $ac_status); } &&
9885          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9886   { (case "(($ac_try" in
9887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9888   *) ac_try_echo=$ac_try;;
9889 esac
9890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9891   (eval "$ac_try") 2>&5
9892   ac_status=$?
9893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9894   (exit $ac_status); }; } &&
9895          { ac_try='test -s conftest$ac_exeext'
9896   { (case "(($ac_try" in
9897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9898   *) ac_try_echo=$ac_try;;
9899 esac
9900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9901   (eval "$ac_try") 2>&5
9902   ac_status=$?
9903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9904   (exit $ac_status); }; }; then
9905   ac_cv_func_shl_load=yes
9906 else
9907   echo "$as_me: failed program was:" >&5
9908 sed 's/^/| /' conftest.$ac_ext >&5
9909
9910         ac_cv_func_shl_load=no
9911 fi
9912
9913 rm -f core conftest.err conftest.$ac_objext \
9914       conftest$ac_exeext conftest.$ac_ext
9915 fi
9916 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9917 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9918 if test $ac_cv_func_shl_load = yes; then
9919
9920 cat >>confdefs.h <<\_ACEOF
9921 #define HAVE_SHL_LOAD 1
9922 _ACEOF
9923
9924 else
9925   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9926 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9927 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9928   echo $ECHO_N "(cached) $ECHO_C" >&6
9929 else
9930   ac_check_lib_save_LIBS=$LIBS
9931 LIBS="-ldld  $LIBS"
9932 cat >conftest.$ac_ext <<_ACEOF
9933 /* confdefs.h.  */
9934 _ACEOF
9935 cat confdefs.h >>conftest.$ac_ext
9936 cat >>conftest.$ac_ext <<_ACEOF
9937 /* end confdefs.h.  */
9938
9939 /* Override any GCC internal prototype to avoid an error.
9940    Use char because int might match the return type of a GCC
9941    builtin and then its argument prototype would still apply.  */
9942 #ifdef __cplusplus
9943 extern "C"
9944 #endif
9945 char shl_load ();
9946 int
9947 main ()
9948 {
9949 return shl_load ();
9950   ;
9951   return 0;
9952 }
9953 _ACEOF
9954 rm -f conftest.$ac_objext conftest$ac_exeext
9955 if { (ac_try="$ac_link"
9956 case "(($ac_try" in
9957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9958   *) ac_try_echo=$ac_try;;
9959 esac
9960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9961   (eval "$ac_link") 2>conftest.er1
9962   ac_status=$?
9963   grep -v '^ *+' conftest.er1 >conftest.err
9964   rm -f conftest.er1
9965   cat conftest.err >&5
9966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9967   (exit $ac_status); } &&
9968          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9969   { (case "(($ac_try" in
9970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9971   *) ac_try_echo=$ac_try;;
9972 esac
9973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9974   (eval "$ac_try") 2>&5
9975   ac_status=$?
9976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977   (exit $ac_status); }; } &&
9978          { ac_try='test -s conftest$ac_exeext'
9979   { (case "(($ac_try" in
9980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9981   *) ac_try_echo=$ac_try;;
9982 esac
9983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9984   (eval "$ac_try") 2>&5
9985   ac_status=$?
9986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9987   (exit $ac_status); }; }; then
9988   ac_cv_lib_dld_shl_load=yes
9989 else
9990   echo "$as_me: failed program was:" >&5
9991 sed 's/^/| /' conftest.$ac_ext >&5
9992
9993         ac_cv_lib_dld_shl_load=no
9994 fi
9995
9996 rm -f core conftest.err conftest.$ac_objext \
9997       conftest$ac_exeext conftest.$ac_ext
9998 LIBS=$ac_check_lib_save_LIBS
9999 fi
10000 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10001 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10002 if test $ac_cv_lib_dld_shl_load = yes; then
10003
10004 cat >>confdefs.h <<\_ACEOF
10005 #define HAVE_SHL_LOAD 1
10006 _ACEOF
10007
10008         LIBADD_DL="$LIBADD_DL -ldld"
10009 else
10010   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10011 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10012 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10013   echo $ECHO_N "(cached) $ECHO_C" >&6
10014 else
10015   ac_check_lib_save_LIBS=$LIBS
10016 LIBS="-ldl  $LIBS"
10017 cat >conftest.$ac_ext <<_ACEOF
10018 /* confdefs.h.  */
10019 _ACEOF
10020 cat confdefs.h >>conftest.$ac_ext
10021 cat >>conftest.$ac_ext <<_ACEOF
10022 /* end confdefs.h.  */
10023
10024 /* Override any GCC internal prototype to avoid an error.
10025    Use char because int might match the return type of a GCC
10026    builtin and then its argument prototype would still apply.  */
10027 #ifdef __cplusplus
10028 extern "C"
10029 #endif
10030 char dlopen ();
10031 int
10032 main ()
10033 {
10034 return dlopen ();
10035   ;
10036   return 0;
10037 }
10038 _ACEOF
10039 rm -f conftest.$ac_objext conftest$ac_exeext
10040 if { (ac_try="$ac_link"
10041 case "(($ac_try" in
10042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10043   *) ac_try_echo=$ac_try;;
10044 esac
10045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10046   (eval "$ac_link") 2>conftest.er1
10047   ac_status=$?
10048   grep -v '^ *+' conftest.er1 >conftest.err
10049   rm -f conftest.er1
10050   cat conftest.err >&5
10051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10052   (exit $ac_status); } &&
10053          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10054   { (case "(($ac_try" in
10055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10056   *) ac_try_echo=$ac_try;;
10057 esac
10058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10059   (eval "$ac_try") 2>&5
10060   ac_status=$?
10061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062   (exit $ac_status); }; } &&
10063          { ac_try='test -s conftest$ac_exeext'
10064   { (case "(($ac_try" in
10065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10066   *) ac_try_echo=$ac_try;;
10067 esac
10068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10069   (eval "$ac_try") 2>&5
10070   ac_status=$?
10071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10072   (exit $ac_status); }; }; then
10073   ac_cv_lib_dl_dlopen=yes
10074 else
10075   echo "$as_me: failed program was:" >&5
10076 sed 's/^/| /' conftest.$ac_ext >&5
10077
10078         ac_cv_lib_dl_dlopen=no
10079 fi
10080
10081 rm -f core conftest.err conftest.$ac_objext \
10082       conftest$ac_exeext conftest.$ac_ext
10083 LIBS=$ac_check_lib_save_LIBS
10084 fi
10085 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10086 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10087 if test $ac_cv_lib_dl_dlopen = yes; then
10088
10089 cat >>confdefs.h <<\_ACEOF
10090 #define HAVE_LIBDL 1
10091 _ACEOF
10092
10093                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10094 else
10095   cat >conftest.$ac_ext <<_ACEOF
10096 /* confdefs.h.  */
10097 _ACEOF
10098 cat confdefs.h >>conftest.$ac_ext
10099 cat >>conftest.$ac_ext <<_ACEOF
10100 /* end confdefs.h.  */
10101 #if HAVE_DLFCN_H
10102 #  include <dlfcn.h>
10103 #endif
10104
10105 int
10106 main ()
10107 {
10108 dlopen(0, 0);
10109   ;
10110   return 0;
10111 }
10112 _ACEOF
10113 rm -f conftest.$ac_objext conftest$ac_exeext
10114 if { (ac_try="$ac_link"
10115 case "(($ac_try" in
10116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10117   *) ac_try_echo=$ac_try;;
10118 esac
10119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10120   (eval "$ac_link") 2>conftest.er1
10121   ac_status=$?
10122   grep -v '^ *+' conftest.er1 >conftest.err
10123   rm -f conftest.er1
10124   cat conftest.err >&5
10125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10126   (exit $ac_status); } &&
10127          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10128   { (case "(($ac_try" in
10129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10130   *) ac_try_echo=$ac_try;;
10131 esac
10132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10133   (eval "$ac_try") 2>&5
10134   ac_status=$?
10135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10136   (exit $ac_status); }; } &&
10137          { ac_try='test -s conftest$ac_exeext'
10138   { (case "(($ac_try" in
10139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10140   *) ac_try_echo=$ac_try;;
10141 esac
10142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10143   (eval "$ac_try") 2>&5
10144   ac_status=$?
10145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146   (exit $ac_status); }; }; then
10147
10148 cat >>confdefs.h <<\_ACEOF
10149 #define HAVE_LIBDL 1
10150 _ACEOF
10151  libltdl_cv_func_dlopen="yes"
10152 else
10153   echo "$as_me: failed program was:" >&5
10154 sed 's/^/| /' conftest.$ac_ext >&5
10155
10156         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10157 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10158 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10159   echo $ECHO_N "(cached) $ECHO_C" >&6
10160 else
10161   ac_check_lib_save_LIBS=$LIBS
10162 LIBS="-lsvld  $LIBS"
10163 cat >conftest.$ac_ext <<_ACEOF
10164 /* confdefs.h.  */
10165 _ACEOF
10166 cat confdefs.h >>conftest.$ac_ext
10167 cat >>conftest.$ac_ext <<_ACEOF
10168 /* end confdefs.h.  */
10169
10170 /* Override any GCC internal prototype to avoid an error.
10171    Use char because int might match the return type of a GCC
10172    builtin and then its argument prototype would still apply.  */
10173 #ifdef __cplusplus
10174 extern "C"
10175 #endif
10176 char dlopen ();
10177 int
10178 main ()
10179 {
10180 return dlopen ();
10181   ;
10182   return 0;
10183 }
10184 _ACEOF
10185 rm -f conftest.$ac_objext conftest$ac_exeext
10186 if { (ac_try="$ac_link"
10187 case "(($ac_try" in
10188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10189   *) ac_try_echo=$ac_try;;
10190 esac
10191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10192   (eval "$ac_link") 2>conftest.er1
10193   ac_status=$?
10194   grep -v '^ *+' conftest.er1 >conftest.err
10195   rm -f conftest.er1
10196   cat conftest.err >&5
10197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10198   (exit $ac_status); } &&
10199          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10200   { (case "(($ac_try" in
10201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10202   *) ac_try_echo=$ac_try;;
10203 esac
10204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10205   (eval "$ac_try") 2>&5
10206   ac_status=$?
10207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10208   (exit $ac_status); }; } &&
10209          { ac_try='test -s conftest$ac_exeext'
10210   { (case "(($ac_try" in
10211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10212   *) ac_try_echo=$ac_try;;
10213 esac
10214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10215   (eval "$ac_try") 2>&5
10216   ac_status=$?
10217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10218   (exit $ac_status); }; }; then
10219   ac_cv_lib_svld_dlopen=yes
10220 else
10221   echo "$as_me: failed program was:" >&5
10222 sed 's/^/| /' conftest.$ac_ext >&5
10223
10224         ac_cv_lib_svld_dlopen=no
10225 fi
10226
10227 rm -f core conftest.err conftest.$ac_objext \
10228       conftest$ac_exeext conftest.$ac_ext
10229 LIBS=$ac_check_lib_save_LIBS
10230 fi
10231 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10232 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10233 if test $ac_cv_lib_svld_dlopen = yes; then
10234
10235 cat >>confdefs.h <<\_ACEOF
10236 #define HAVE_LIBDL 1
10237 _ACEOF
10238
10239                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10240 else
10241   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10242 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10243 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10244   echo $ECHO_N "(cached) $ECHO_C" >&6
10245 else
10246   ac_check_lib_save_LIBS=$LIBS
10247 LIBS="-ldld  $LIBS"
10248 cat >conftest.$ac_ext <<_ACEOF
10249 /* confdefs.h.  */
10250 _ACEOF
10251 cat confdefs.h >>conftest.$ac_ext
10252 cat >>conftest.$ac_ext <<_ACEOF
10253 /* end confdefs.h.  */
10254
10255 /* Override any GCC internal prototype to avoid an error.
10256    Use char because int might match the return type of a GCC
10257    builtin and then its argument prototype would still apply.  */
10258 #ifdef __cplusplus
10259 extern "C"
10260 #endif
10261 char dld_link ();
10262 int
10263 main ()
10264 {
10265 return dld_link ();
10266   ;
10267   return 0;
10268 }
10269 _ACEOF
10270 rm -f conftest.$ac_objext conftest$ac_exeext
10271 if { (ac_try="$ac_link"
10272 case "(($ac_try" in
10273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10274   *) ac_try_echo=$ac_try;;
10275 esac
10276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10277   (eval "$ac_link") 2>conftest.er1
10278   ac_status=$?
10279   grep -v '^ *+' conftest.er1 >conftest.err
10280   rm -f conftest.er1
10281   cat conftest.err >&5
10282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10283   (exit $ac_status); } &&
10284          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10285   { (case "(($ac_try" in
10286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10287   *) ac_try_echo=$ac_try;;
10288 esac
10289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10290   (eval "$ac_try") 2>&5
10291   ac_status=$?
10292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10293   (exit $ac_status); }; } &&
10294          { ac_try='test -s conftest$ac_exeext'
10295   { (case "(($ac_try" in
10296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10297   *) ac_try_echo=$ac_try;;
10298 esac
10299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10300   (eval "$ac_try") 2>&5
10301   ac_status=$?
10302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10303   (exit $ac_status); }; }; then
10304   ac_cv_lib_dld_dld_link=yes
10305 else
10306   echo "$as_me: failed program was:" >&5
10307 sed 's/^/| /' conftest.$ac_ext >&5
10308
10309         ac_cv_lib_dld_dld_link=no
10310 fi
10311
10312 rm -f core conftest.err conftest.$ac_objext \
10313       conftest$ac_exeext conftest.$ac_ext
10314 LIBS=$ac_check_lib_save_LIBS
10315 fi
10316 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10317 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10318 if test $ac_cv_lib_dld_dld_link = yes; then
10319
10320 cat >>confdefs.h <<\_ACEOF
10321 #define HAVE_DLD 1
10322 _ACEOF
10323
10324                 LIBADD_DL="$LIBADD_DL -ldld"
10325 else
10326   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10327 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10328 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10329   echo $ECHO_N "(cached) $ECHO_C" >&6
10330 else
10331   cat >conftest.$ac_ext <<_ACEOF
10332 /* confdefs.h.  */
10333 _ACEOF
10334 cat confdefs.h >>conftest.$ac_ext
10335 cat >>conftest.$ac_ext <<_ACEOF
10336 /* end confdefs.h.  */
10337 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10338    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10339 #define _dyld_func_lookup innocuous__dyld_func_lookup
10340
10341 /* System header to define __stub macros and hopefully few prototypes,
10342     which can conflict with char _dyld_func_lookup (); below.
10343     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10344     <limits.h> exists even on freestanding compilers.  */
10345
10346 #ifdef __STDC__
10347 # include <limits.h>
10348 #else
10349 # include <assert.h>
10350 #endif
10351
10352 #undef _dyld_func_lookup
10353
10354 /* Override any GCC internal prototype to avoid an error.
10355    Use char because int might match the return type of a GCC
10356    builtin and then its argument prototype would still apply.  */
10357 #ifdef __cplusplus
10358 extern "C"
10359 #endif
10360 char _dyld_func_lookup ();
10361 /* The GNU C library defines this for functions which it implements
10362     to always fail with ENOSYS.  Some functions are actually named
10363     something starting with __ and the normal name is an alias.  */
10364 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10365 choke me
10366 #endif
10367
10368 int
10369 main ()
10370 {
10371 return _dyld_func_lookup ();
10372   ;
10373   return 0;
10374 }
10375 _ACEOF
10376 rm -f conftest.$ac_objext conftest$ac_exeext
10377 if { (ac_try="$ac_link"
10378 case "(($ac_try" in
10379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10380   *) ac_try_echo=$ac_try;;
10381 esac
10382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10383   (eval "$ac_link") 2>conftest.er1
10384   ac_status=$?
10385   grep -v '^ *+' conftest.er1 >conftest.err
10386   rm -f conftest.er1
10387   cat conftest.err >&5
10388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10389   (exit $ac_status); } &&
10390          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10391   { (case "(($ac_try" in
10392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10393   *) ac_try_echo=$ac_try;;
10394 esac
10395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10396   (eval "$ac_try") 2>&5
10397   ac_status=$?
10398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10399   (exit $ac_status); }; } &&
10400          { ac_try='test -s conftest$ac_exeext'
10401   { (case "(($ac_try" in
10402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10403   *) ac_try_echo=$ac_try;;
10404 esac
10405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10406   (eval "$ac_try") 2>&5
10407   ac_status=$?
10408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409   (exit $ac_status); }; }; then
10410   ac_cv_func__dyld_func_lookup=yes
10411 else
10412   echo "$as_me: failed program was:" >&5
10413 sed 's/^/| /' conftest.$ac_ext >&5
10414
10415         ac_cv_func__dyld_func_lookup=no
10416 fi
10417
10418 rm -f core conftest.err conftest.$ac_objext \
10419       conftest$ac_exeext conftest.$ac_ext
10420 fi
10421 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10422 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10423 if test $ac_cv_func__dyld_func_lookup = yes; then
10424
10425 cat >>confdefs.h <<\_ACEOF
10426 #define HAVE_DYLD 1
10427 _ACEOF
10428
10429 fi
10430
10431
10432 fi
10433
10434
10435 fi
10436
10437
10438 fi
10439
10440 rm -f core conftest.err conftest.$ac_objext \
10441       conftest$ac_exeext conftest.$ac_ext
10442
10443 fi
10444
10445
10446 fi
10447
10448
10449 fi
10450
10451
10452 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10453 then
10454   lt_save_LIBS="$LIBS"
10455   LIBS="$LIBS $LIBADD_DL"
10456
10457 for ac_func in dlerror
10458 do
10459 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10460 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10461 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10462 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10463   echo $ECHO_N "(cached) $ECHO_C" >&6
10464 else
10465   cat >conftest.$ac_ext <<_ACEOF
10466 /* confdefs.h.  */
10467 _ACEOF
10468 cat confdefs.h >>conftest.$ac_ext
10469 cat >>conftest.$ac_ext <<_ACEOF
10470 /* end confdefs.h.  */
10471 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10472    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10473 #define $ac_func innocuous_$ac_func
10474
10475 /* System header to define __stub macros and hopefully few prototypes,
10476     which can conflict with char $ac_func (); below.
10477     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10478     <limits.h> exists even on freestanding compilers.  */
10479
10480 #ifdef __STDC__
10481 # include <limits.h>
10482 #else
10483 # include <assert.h>
10484 #endif
10485
10486 #undef $ac_func
10487
10488 /* Override any GCC internal prototype to avoid an error.
10489    Use char because int might match the return type of a GCC
10490    builtin and then its argument prototype would still apply.  */
10491 #ifdef __cplusplus
10492 extern "C"
10493 #endif
10494 char $ac_func ();
10495 /* The GNU C library defines this for functions which it implements
10496     to always fail with ENOSYS.  Some functions are actually named
10497     something starting with __ and the normal name is an alias.  */
10498 #if defined __stub_$ac_func || defined __stub___$ac_func
10499 choke me
10500 #endif
10501
10502 int
10503 main ()
10504 {
10505 return $ac_func ();
10506   ;
10507   return 0;
10508 }
10509 _ACEOF
10510 rm -f conftest.$ac_objext conftest$ac_exeext
10511 if { (ac_try="$ac_link"
10512 case "(($ac_try" in
10513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10514   *) ac_try_echo=$ac_try;;
10515 esac
10516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10517   (eval "$ac_link") 2>conftest.er1
10518   ac_status=$?
10519   grep -v '^ *+' conftest.er1 >conftest.err
10520   rm -f conftest.er1
10521   cat conftest.err >&5
10522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10523   (exit $ac_status); } &&
10524          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10525   { (case "(($ac_try" in
10526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10527   *) ac_try_echo=$ac_try;;
10528 esac
10529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10530   (eval "$ac_try") 2>&5
10531   ac_status=$?
10532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10533   (exit $ac_status); }; } &&
10534          { ac_try='test -s conftest$ac_exeext'
10535   { (case "(($ac_try" in
10536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10537   *) ac_try_echo=$ac_try;;
10538 esac
10539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10540   (eval "$ac_try") 2>&5
10541   ac_status=$?
10542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10543   (exit $ac_status); }; }; then
10544   eval "$as_ac_var=yes"
10545 else
10546   echo "$as_me: failed program was:" >&5
10547 sed 's/^/| /' conftest.$ac_ext >&5
10548
10549         eval "$as_ac_var=no"
10550 fi
10551
10552 rm -f core conftest.err conftest.$ac_objext \
10553       conftest$ac_exeext conftest.$ac_ext
10554 fi
10555 ac_res=`eval echo '${'$as_ac_var'}'`
10556                { echo "$as_me:$LINENO: result: $ac_res" >&5
10557 echo "${ECHO_T}$ac_res" >&6; }
10558 if test `eval echo '${'$as_ac_var'}'` = yes; then
10559   cat >>confdefs.h <<_ACEOF
10560 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10561 _ACEOF
10562
10563 fi
10564 done
10565
10566   LIBS="$lt_save_LIBS"
10567 fi
10568 ac_ext=c
10569 ac_cpp='$CPP $CPPFLAGS'
10570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10573
10574
10575
10576 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10577 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10578 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10579   echo $ECHO_N "(cached) $ECHO_C" >&6
10580 else
10581   ac_cv_sys_symbol_underscore=no
10582   cat > conftest.$ac_ext <<EOF
10583 void nm_test_func(){}
10584 int main(){nm_test_func;return 0;}
10585 EOF
10586   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10587   (eval $ac_compile) 2>&5
10588   ac_status=$?
10589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10590   (exit $ac_status); }; then
10591     # Now try to grab the symbols.
10592     ac_nlist=conftest.nm
10593     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10594   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10595   ac_status=$?
10596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10597   (exit $ac_status); } && test -s "$ac_nlist"; then
10598       # See whether the symbols have a leading underscore.
10599       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10600         ac_cv_sys_symbol_underscore=yes
10601       else
10602         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10603           :
10604         else
10605           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10606         fi
10607       fi
10608     else
10609       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10610     fi
10611   else
10612     echo "configure: failed program was:" >&5
10613     cat conftest.c >&5
10614   fi
10615   rm -rf conftest*
10616
10617 fi
10618 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10619 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10620
10621
10622 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10623   if test x"$libltdl_cv_func_dlopen" = xyes ||
10624      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10625         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10626 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10627 if test "${libltdl_cv_need_uscore+set}" = set; then
10628   echo $ECHO_N "(cached) $ECHO_C" >&6
10629 else
10630   libltdl_cv_need_uscore=unknown
10631           save_LIBS="$LIBS"
10632           LIBS="$LIBS $LIBADD_DL"
10633           if test "$cross_compiling" = yes; then :
10634   libltdl_cv_need_uscore=cross
10635 else
10636   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10637   lt_status=$lt_dlunknown
10638   cat > conftest.$ac_ext <<EOF
10639 #line 10639 "configure"
10640 #include "confdefs.h"
10641
10642 #if HAVE_DLFCN_H
10643 #include <dlfcn.h>
10644 #endif
10645
10646 #include <stdio.h>
10647
10648 #ifdef RTLD_GLOBAL
10649 #  define LT_DLGLOBAL           RTLD_GLOBAL
10650 #else
10651 #  ifdef DL_GLOBAL
10652 #    define LT_DLGLOBAL         DL_GLOBAL
10653 #  else
10654 #    define LT_DLGLOBAL         0
10655 #  endif
10656 #endif
10657
10658 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10659    find out it does not work in some platform. */
10660 #ifndef LT_DLLAZY_OR_NOW
10661 #  ifdef RTLD_LAZY
10662 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10663 #  else
10664 #    ifdef DL_LAZY
10665 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10666 #    else
10667 #      ifdef RTLD_NOW
10668 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10669 #      else
10670 #        ifdef DL_NOW
10671 #          define LT_DLLAZY_OR_NOW      DL_NOW
10672 #        else
10673 #          define LT_DLLAZY_OR_NOW      0
10674 #        endif
10675 #      endif
10676 #    endif
10677 #  endif
10678 #endif
10679
10680 #ifdef __cplusplus
10681 extern "C" void exit (int);
10682 #endif
10683
10684 void fnord() { int i=42;}
10685 int main ()
10686 {
10687   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10688   int status = $lt_dlunknown;
10689
10690   if (self)
10691     {
10692       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10693       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10694       /* dlclose (self); */
10695     }
10696   else
10697     puts (dlerror ());
10698
10699     exit (status);
10700 }
10701 EOF
10702   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10703   (eval $ac_link) 2>&5
10704   ac_status=$?
10705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10706   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10707     (./conftest; exit; ) >&5 2>/dev/null
10708     lt_status=$?
10709     case x$lt_status in
10710       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10711       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10712       x$lt_dlunknown|x*)  ;;
10713     esac
10714   else :
10715     # compilation failed
10716
10717   fi
10718 fi
10719 rm -fr conftest*
10720
10721           LIBS="$save_LIBS"
10722
10723 fi
10724 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10725 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10726   fi
10727 fi
10728
10729 if test x"$libltdl_cv_need_uscore" = xyes; then
10730
10731 cat >>confdefs.h <<\_ACEOF
10732 #define NEED_USCORE 1
10733 _ACEOF
10734
10735 fi
10736
10737
10738 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10739 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10740 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10741   echo $ECHO_N "(cached) $ECHO_C" >&6
10742 else
10743   # PORTME does your system automatically load deplibs for dlopen?
10744   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10745   # For now, we just catch OSes we know something about -- in the
10746   # future, we'll try test this programmatically.
10747   libltdl_cv_sys_dlopen_deplibs=unknown
10748   case "$host_os" in
10749   aix3*|aix4.1.*|aix4.2.*)
10750     # Unknown whether this is true for these versions of AIX, but
10751     # we want this `case' here to explicitly catch those versions.
10752     libltdl_cv_sys_dlopen_deplibs=unknown
10753     ;;
10754   aix[45]*)
10755     libltdl_cv_sys_dlopen_deplibs=yes
10756     ;;
10757   darwin*)
10758     # Assuming the user has installed a libdl from somewhere, this is true
10759     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10760     libltdl_cv_sys_dlopen_deplibs=yes
10761     ;;
10762   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10763     # GNU and its variants, using gnu ld.so (Glibc)
10764     libltdl_cv_sys_dlopen_deplibs=yes
10765     ;;
10766   hpux10*|hpux11*)
10767     libltdl_cv_sys_dlopen_deplibs=yes
10768     ;;
10769   interix*)
10770     libltdl_cv_sys_dlopen_deplibs=yes
10771     ;;
10772   irix[12345]*|irix6.[01]*)
10773     # Catch all versions of IRIX before 6.2, and indicate that we don't
10774     # know how it worked for any of those versions.
10775     libltdl_cv_sys_dlopen_deplibs=unknown
10776     ;;
10777   irix*)
10778     # The case above catches anything before 6.2, and it's known that
10779     # at 6.2 and later dlopen does load deplibs.
10780     libltdl_cv_sys_dlopen_deplibs=yes
10781     ;;
10782   netbsd*)
10783     libltdl_cv_sys_dlopen_deplibs=yes
10784     ;;
10785   openbsd*)
10786     libltdl_cv_sys_dlopen_deplibs=yes
10787     ;;
10788   osf[1234]*)
10789     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10790     # it did *not* use an RPATH in a shared library to find objects the
10791     # library depends on, so we explictly say `no'.
10792     libltdl_cv_sys_dlopen_deplibs=no
10793     ;;
10794   osf5.0|osf5.0a|osf5.1)
10795     # dlopen *does* load deplibs and with the right loader patch applied
10796     # it even uses RPATH in a shared library to search for shared objects
10797     # that the library depends on, but there's no easy way to know if that
10798     # patch is installed.  Since this is the case, all we can really
10799     # say is unknown -- it depends on the patch being installed.  If
10800     # it is, this changes to `yes'.  Without it, it would be `no'.
10801     libltdl_cv_sys_dlopen_deplibs=unknown
10802     ;;
10803   osf*)
10804     # the two cases above should catch all versions of osf <= 5.1.  Read
10805     # the comments above for what we know about them.
10806     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10807     # is used to find them so we can finally say `yes'.
10808     libltdl_cv_sys_dlopen_deplibs=yes
10809     ;;
10810   solaris*)
10811     libltdl_cv_sys_dlopen_deplibs=yes
10812     ;;
10813   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10814     libltdl_cv_sys_dlopen_deplibs=yes
10815     ;;
10816   esac
10817
10818 fi
10819 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10820 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10821 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10822
10823 cat >>confdefs.h <<\_ACEOF
10824 #define LTDL_DLOPEN_DEPLIBS 1
10825 _ACEOF
10826
10827 fi
10828
10829
10830 for ac_header in argz.h
10831 do
10832 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10833 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10834   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10835 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10836 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10837   echo $ECHO_N "(cached) $ECHO_C" >&6
10838 fi
10839 ac_res=`eval echo '${'$as_ac_Header'}'`
10840                { echo "$as_me:$LINENO: result: $ac_res" >&5
10841 echo "${ECHO_T}$ac_res" >&6; }
10842 else
10843   # Is the header compilable?
10844 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10845 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10846 cat >conftest.$ac_ext <<_ACEOF
10847 /* confdefs.h.  */
10848 _ACEOF
10849 cat confdefs.h >>conftest.$ac_ext
10850 cat >>conftest.$ac_ext <<_ACEOF
10851 /* end confdefs.h.  */
10852 $ac_includes_default
10853 #include <$ac_header>
10854 _ACEOF
10855 rm -f conftest.$ac_objext
10856 if { (ac_try="$ac_compile"
10857 case "(($ac_try" in
10858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10859   *) ac_try_echo=$ac_try;;
10860 esac
10861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10862   (eval "$ac_compile") 2>conftest.er1
10863   ac_status=$?
10864   grep -v '^ *+' conftest.er1 >conftest.err
10865   rm -f conftest.er1
10866   cat conftest.err >&5
10867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10868   (exit $ac_status); } &&
10869          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10870   { (case "(($ac_try" in
10871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10872   *) ac_try_echo=$ac_try;;
10873 esac
10874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10875   (eval "$ac_try") 2>&5
10876   ac_status=$?
10877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10878   (exit $ac_status); }; } &&
10879          { ac_try='test -s conftest.$ac_objext'
10880   { (case "(($ac_try" in
10881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10882   *) ac_try_echo=$ac_try;;
10883 esac
10884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10885   (eval "$ac_try") 2>&5
10886   ac_status=$?
10887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10888   (exit $ac_status); }; }; then
10889   ac_header_compiler=yes
10890 else
10891   echo "$as_me: failed program was:" >&5
10892 sed 's/^/| /' conftest.$ac_ext >&5
10893
10894         ac_header_compiler=no
10895 fi
10896
10897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10898 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10899 echo "${ECHO_T}$ac_header_compiler" >&6; }
10900
10901 # Is the header present?
10902 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10903 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10904 cat >conftest.$ac_ext <<_ACEOF
10905 /* confdefs.h.  */
10906 _ACEOF
10907 cat confdefs.h >>conftest.$ac_ext
10908 cat >>conftest.$ac_ext <<_ACEOF
10909 /* end confdefs.h.  */
10910 #include <$ac_header>
10911 _ACEOF
10912 if { (ac_try="$ac_cpp conftest.$ac_ext"
10913 case "(($ac_try" in
10914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10915   *) ac_try_echo=$ac_try;;
10916 esac
10917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10918   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10919   ac_status=$?
10920   grep -v '^ *+' conftest.er1 >conftest.err
10921   rm -f conftest.er1
10922   cat conftest.err >&5
10923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10924   (exit $ac_status); } >/dev/null; then
10925   if test -s conftest.err; then
10926     ac_cpp_err=$ac_c_preproc_warn_flag
10927     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10928   else
10929     ac_cpp_err=
10930   fi
10931 else
10932   ac_cpp_err=yes
10933 fi
10934 if test -z "$ac_cpp_err"; then
10935   ac_header_preproc=yes
10936 else
10937   echo "$as_me: failed program was:" >&5
10938 sed 's/^/| /' conftest.$ac_ext >&5
10939
10940   ac_header_preproc=no
10941 fi
10942
10943 rm -f conftest.err conftest.$ac_ext
10944 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10945 echo "${ECHO_T}$ac_header_preproc" >&6; }
10946
10947 # So?  What about this header?
10948 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10949   yes:no: )
10950     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10951 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10952     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10953 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10954     ac_header_preproc=yes
10955     ;;
10956   no:yes:* )
10957     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10958 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10959     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10960 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10961     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10962 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10963     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10964 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10965     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10966 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10967     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10968 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10969     ( cat <<\_ASBOX
10970 ## ----------------------------------- ##
10971 ## Report this to llvmbugs@cs.uiuc.edu ##
10972 ## ----------------------------------- ##
10973 _ASBOX
10974      ) | sed "s/^/$as_me: WARNING:     /" >&2
10975     ;;
10976 esac
10977 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10978 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10979 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10980   echo $ECHO_N "(cached) $ECHO_C" >&6
10981 else
10982   eval "$as_ac_Header=\$ac_header_preproc"
10983 fi
10984 ac_res=`eval echo '${'$as_ac_Header'}'`
10985                { echo "$as_me:$LINENO: result: $ac_res" >&5
10986 echo "${ECHO_T}$ac_res" >&6; }
10987
10988 fi
10989 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10990   cat >>confdefs.h <<_ACEOF
10991 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10992 _ACEOF
10993
10994 fi
10995
10996 done
10997
10998
10999 { echo "$as_me:$LINENO: checking for error_t" >&5
11000 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11001 if test "${ac_cv_type_error_t+set}" = set; then
11002   echo $ECHO_N "(cached) $ECHO_C" >&6
11003 else
11004   cat >conftest.$ac_ext <<_ACEOF
11005 /* confdefs.h.  */
11006 _ACEOF
11007 cat confdefs.h >>conftest.$ac_ext
11008 cat >>conftest.$ac_ext <<_ACEOF
11009 /* end confdefs.h.  */
11010 #if HAVE_ARGZ_H
11011 #  include <argz.h>
11012 #endif
11013
11014 typedef error_t ac__type_new_;
11015 int
11016 main ()
11017 {
11018 if ((ac__type_new_ *) 0)
11019   return 0;
11020 if (sizeof (ac__type_new_))
11021   return 0;
11022   ;
11023   return 0;
11024 }
11025 _ACEOF
11026 rm -f conftest.$ac_objext
11027 if { (ac_try="$ac_compile"
11028 case "(($ac_try" in
11029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11030   *) ac_try_echo=$ac_try;;
11031 esac
11032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11033   (eval "$ac_compile") 2>conftest.er1
11034   ac_status=$?
11035   grep -v '^ *+' conftest.er1 >conftest.err
11036   rm -f conftest.er1
11037   cat conftest.err >&5
11038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11039   (exit $ac_status); } &&
11040          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11041   { (case "(($ac_try" in
11042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11043   *) ac_try_echo=$ac_try;;
11044 esac
11045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11046   (eval "$ac_try") 2>&5
11047   ac_status=$?
11048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049   (exit $ac_status); }; } &&
11050          { ac_try='test -s conftest.$ac_objext'
11051   { (case "(($ac_try" in
11052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11053   *) ac_try_echo=$ac_try;;
11054 esac
11055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11056   (eval "$ac_try") 2>&5
11057   ac_status=$?
11058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11059   (exit $ac_status); }; }; then
11060   ac_cv_type_error_t=yes
11061 else
11062   echo "$as_me: failed program was:" >&5
11063 sed 's/^/| /' conftest.$ac_ext >&5
11064
11065         ac_cv_type_error_t=no
11066 fi
11067
11068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11069 fi
11070 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11071 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11072 if test $ac_cv_type_error_t = yes; then
11073
11074 cat >>confdefs.h <<_ACEOF
11075 #define HAVE_ERROR_T 1
11076 _ACEOF
11077
11078
11079 else
11080
11081 cat >>confdefs.h <<\_ACEOF
11082 #define error_t int
11083 _ACEOF
11084
11085 fi
11086
11087
11088
11089
11090
11091
11092
11093 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11094 do
11095 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11096 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11097 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11098 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11099   echo $ECHO_N "(cached) $ECHO_C" >&6
11100 else
11101   cat >conftest.$ac_ext <<_ACEOF
11102 /* confdefs.h.  */
11103 _ACEOF
11104 cat confdefs.h >>conftest.$ac_ext
11105 cat >>conftest.$ac_ext <<_ACEOF
11106 /* end confdefs.h.  */
11107 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11108    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11109 #define $ac_func innocuous_$ac_func
11110
11111 /* System header to define __stub macros and hopefully few prototypes,
11112     which can conflict with char $ac_func (); below.
11113     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11114     <limits.h> exists even on freestanding compilers.  */
11115
11116 #ifdef __STDC__
11117 # include <limits.h>
11118 #else
11119 # include <assert.h>
11120 #endif
11121
11122 #undef $ac_func
11123
11124 /* Override any GCC internal prototype to avoid an error.
11125    Use char because int might match the return type of a GCC
11126    builtin and then its argument prototype would still apply.  */
11127 #ifdef __cplusplus
11128 extern "C"
11129 #endif
11130 char $ac_func ();
11131 /* The GNU C library defines this for functions which it implements
11132     to always fail with ENOSYS.  Some functions are actually named
11133     something starting with __ and the normal name is an alias.  */
11134 #if defined __stub_$ac_func || defined __stub___$ac_func
11135 choke me
11136 #endif
11137
11138 int
11139 main ()
11140 {
11141 return $ac_func ();
11142   ;
11143   return 0;
11144 }
11145 _ACEOF
11146 rm -f conftest.$ac_objext conftest$ac_exeext
11147 if { (ac_try="$ac_link"
11148 case "(($ac_try" in
11149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11150   *) ac_try_echo=$ac_try;;
11151 esac
11152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11153   (eval "$ac_link") 2>conftest.er1
11154   ac_status=$?
11155   grep -v '^ *+' conftest.er1 >conftest.err
11156   rm -f conftest.er1
11157   cat conftest.err >&5
11158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11159   (exit $ac_status); } &&
11160          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11161   { (case "(($ac_try" in
11162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11163   *) ac_try_echo=$ac_try;;
11164 esac
11165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11166   (eval "$ac_try") 2>&5
11167   ac_status=$?
11168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11169   (exit $ac_status); }; } &&
11170          { ac_try='test -s conftest$ac_exeext'
11171   { (case "(($ac_try" in
11172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11173   *) ac_try_echo=$ac_try;;
11174 esac
11175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11176   (eval "$ac_try") 2>&5
11177   ac_status=$?
11178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11179   (exit $ac_status); }; }; then
11180   eval "$as_ac_var=yes"
11181 else
11182   echo "$as_me: failed program was:" >&5
11183 sed 's/^/| /' conftest.$ac_ext >&5
11184
11185         eval "$as_ac_var=no"
11186 fi
11187
11188 rm -f core conftest.err conftest.$ac_objext \
11189       conftest$ac_exeext conftest.$ac_ext
11190 fi
11191 ac_res=`eval echo '${'$as_ac_var'}'`
11192                { echo "$as_me:$LINENO: result: $ac_res" >&5
11193 echo "${ECHO_T}$ac_res" >&6; }
11194 if test `eval echo '${'$as_ac_var'}'` = yes; then
11195   cat >>confdefs.h <<_ACEOF
11196 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11197 _ACEOF
11198
11199 fi
11200 done
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11230                   stdio.h unistd.h
11231 do
11232 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11233 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11234   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11235 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11236 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11237   echo $ECHO_N "(cached) $ECHO_C" >&6
11238 fi
11239 ac_res=`eval echo '${'$as_ac_Header'}'`
11240                { echo "$as_me:$LINENO: result: $ac_res" >&5
11241 echo "${ECHO_T}$ac_res" >&6; }
11242 else
11243   # Is the header compilable?
11244 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11245 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11246 cat >conftest.$ac_ext <<_ACEOF
11247 /* confdefs.h.  */
11248 _ACEOF
11249 cat confdefs.h >>conftest.$ac_ext
11250 cat >>conftest.$ac_ext <<_ACEOF
11251 /* end confdefs.h.  */
11252 $ac_includes_default
11253 #include <$ac_header>
11254 _ACEOF
11255 rm -f conftest.$ac_objext
11256 if { (ac_try="$ac_compile"
11257 case "(($ac_try" in
11258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11259   *) ac_try_echo=$ac_try;;
11260 esac
11261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11262   (eval "$ac_compile") 2>conftest.er1
11263   ac_status=$?
11264   grep -v '^ *+' conftest.er1 >conftest.err
11265   rm -f conftest.er1
11266   cat conftest.err >&5
11267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11268   (exit $ac_status); } &&
11269          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11270   { (case "(($ac_try" in
11271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11272   *) ac_try_echo=$ac_try;;
11273 esac
11274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11275   (eval "$ac_try") 2>&5
11276   ac_status=$?
11277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11278   (exit $ac_status); }; } &&
11279          { ac_try='test -s conftest.$ac_objext'
11280   { (case "(($ac_try" in
11281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11282   *) ac_try_echo=$ac_try;;
11283 esac
11284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11285   (eval "$ac_try") 2>&5
11286   ac_status=$?
11287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11288   (exit $ac_status); }; }; then
11289   ac_header_compiler=yes
11290 else
11291   echo "$as_me: failed program was:" >&5
11292 sed 's/^/| /' conftest.$ac_ext >&5
11293
11294         ac_header_compiler=no
11295 fi
11296
11297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11298 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11299 echo "${ECHO_T}$ac_header_compiler" >&6; }
11300
11301 # Is the header present?
11302 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11303 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11304 cat >conftest.$ac_ext <<_ACEOF
11305 /* confdefs.h.  */
11306 _ACEOF
11307 cat confdefs.h >>conftest.$ac_ext
11308 cat >>conftest.$ac_ext <<_ACEOF
11309 /* end confdefs.h.  */
11310 #include <$ac_header>
11311 _ACEOF
11312 if { (ac_try="$ac_cpp conftest.$ac_ext"
11313 case "(($ac_try" in
11314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11315   *) ac_try_echo=$ac_try;;
11316 esac
11317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11318   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11319   ac_status=$?
11320   grep -v '^ *+' conftest.er1 >conftest.err
11321   rm -f conftest.er1
11322   cat conftest.err >&5
11323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11324   (exit $ac_status); } >/dev/null; then
11325   if test -s conftest.err; then
11326     ac_cpp_err=$ac_c_preproc_warn_flag
11327     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11328   else
11329     ac_cpp_err=
11330   fi
11331 else
11332   ac_cpp_err=yes
11333 fi
11334 if test -z "$ac_cpp_err"; then
11335   ac_header_preproc=yes
11336 else
11337   echo "$as_me: failed program was:" >&5
11338 sed 's/^/| /' conftest.$ac_ext >&5
11339
11340   ac_header_preproc=no
11341 fi
11342
11343 rm -f conftest.err conftest.$ac_ext
11344 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11345 echo "${ECHO_T}$ac_header_preproc" >&6; }
11346
11347 # So?  What about this header?
11348 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11349   yes:no: )
11350     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11351 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11352     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11353 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11354     ac_header_preproc=yes
11355     ;;
11356   no:yes:* )
11357     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11358 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11359     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11360 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11361     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11362 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11363     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11364 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11365     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11366 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11367     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11368 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11369     ( cat <<\_ASBOX
11370 ## ----------------------------------- ##
11371 ## Report this to llvmbugs@cs.uiuc.edu ##
11372 ## ----------------------------------- ##
11373 _ASBOX
11374      ) | sed "s/^/$as_me: WARNING:     /" >&2
11375     ;;
11376 esac
11377 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11378 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11379 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11380   echo $ECHO_N "(cached) $ECHO_C" >&6
11381 else
11382   eval "$as_ac_Header=\$ac_header_preproc"
11383 fi
11384 ac_res=`eval echo '${'$as_ac_Header'}'`
11385                { echo "$as_me:$LINENO: result: $ac_res" >&5
11386 echo "${ECHO_T}$ac_res" >&6; }
11387
11388 fi
11389 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11390   cat >>confdefs.h <<_ACEOF
11391 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11392 _ACEOF
11393
11394 fi
11395
11396 done
11397
11398
11399
11400
11401
11402 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11403 do
11404 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11405 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11406   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11407 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11408 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11409   echo $ECHO_N "(cached) $ECHO_C" >&6
11410 fi
11411 ac_res=`eval echo '${'$as_ac_Header'}'`
11412                { echo "$as_me:$LINENO: result: $ac_res" >&5
11413 echo "${ECHO_T}$ac_res" >&6; }
11414 else
11415   # Is the header compilable?
11416 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11417 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11418 cat >conftest.$ac_ext <<_ACEOF
11419 /* confdefs.h.  */
11420 _ACEOF
11421 cat confdefs.h >>conftest.$ac_ext
11422 cat >>conftest.$ac_ext <<_ACEOF
11423 /* end confdefs.h.  */
11424 $ac_includes_default
11425 #include <$ac_header>
11426 _ACEOF
11427 rm -f conftest.$ac_objext
11428 if { (ac_try="$ac_compile"
11429 case "(($ac_try" in
11430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11431   *) ac_try_echo=$ac_try;;
11432 esac
11433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11434   (eval "$ac_compile") 2>conftest.er1
11435   ac_status=$?
11436   grep -v '^ *+' conftest.er1 >conftest.err
11437   rm -f conftest.er1
11438   cat conftest.err >&5
11439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11440   (exit $ac_status); } &&
11441          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11442   { (case "(($ac_try" in
11443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11444   *) ac_try_echo=$ac_try;;
11445 esac
11446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11447   (eval "$ac_try") 2>&5
11448   ac_status=$?
11449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11450   (exit $ac_status); }; } &&
11451          { ac_try='test -s conftest.$ac_objext'
11452   { (case "(($ac_try" in
11453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11454   *) ac_try_echo=$ac_try;;
11455 esac
11456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11457   (eval "$ac_try") 2>&5
11458   ac_status=$?
11459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11460   (exit $ac_status); }; }; then
11461   ac_header_compiler=yes
11462 else
11463   echo "$as_me: failed program was:" >&5
11464 sed 's/^/| /' conftest.$ac_ext >&5
11465
11466         ac_header_compiler=no
11467 fi
11468
11469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11470 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11471 echo "${ECHO_T}$ac_header_compiler" >&6; }
11472
11473 # Is the header present?
11474 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11475 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11476 cat >conftest.$ac_ext <<_ACEOF
11477 /* confdefs.h.  */
11478 _ACEOF
11479 cat confdefs.h >>conftest.$ac_ext
11480 cat >>conftest.$ac_ext <<_ACEOF
11481 /* end confdefs.h.  */
11482 #include <$ac_header>
11483 _ACEOF
11484 if { (ac_try="$ac_cpp conftest.$ac_ext"
11485 case "(($ac_try" in
11486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11487   *) ac_try_echo=$ac_try;;
11488 esac
11489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11490   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11491   ac_status=$?
11492   grep -v '^ *+' conftest.er1 >conftest.err
11493   rm -f conftest.er1
11494   cat conftest.err >&5
11495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496   (exit $ac_status); } >/dev/null; then
11497   if test -s conftest.err; then
11498     ac_cpp_err=$ac_c_preproc_warn_flag
11499     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11500   else
11501     ac_cpp_err=
11502   fi
11503 else
11504   ac_cpp_err=yes
11505 fi
11506 if test -z "$ac_cpp_err"; then
11507   ac_header_preproc=yes
11508 else
11509   echo "$as_me: failed program was:" >&5
11510 sed 's/^/| /' conftest.$ac_ext >&5
11511
11512   ac_header_preproc=no
11513 fi
11514
11515 rm -f conftest.err conftest.$ac_ext
11516 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11517 echo "${ECHO_T}$ac_header_preproc" >&6; }
11518
11519 # So?  What about this header?
11520 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11521   yes:no: )
11522     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11523 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11524     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11525 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11526     ac_header_preproc=yes
11527     ;;
11528   no:yes:* )
11529     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11530 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11531     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11532 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11533     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11534 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11535     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11536 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11537     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11538 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11539     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11540 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11541     ( cat <<\_ASBOX
11542 ## ----------------------------------- ##
11543 ## Report this to llvmbugs@cs.uiuc.edu ##
11544 ## ----------------------------------- ##
11545 _ASBOX
11546      ) | sed "s/^/$as_me: WARNING:     /" >&2
11547     ;;
11548 esac
11549 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11550 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11551 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11552   echo $ECHO_N "(cached) $ECHO_C" >&6
11553 else
11554   eval "$as_ac_Header=\$ac_header_preproc"
11555 fi
11556 ac_res=`eval echo '${'$as_ac_Header'}'`
11557                { echo "$as_me:$LINENO: result: $ac_res" >&5
11558 echo "${ECHO_T}$ac_res" >&6; }
11559
11560 fi
11561 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11562   cat >>confdefs.h <<_ACEOF
11563 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11564 _ACEOF
11565
11566 fi
11567
11568 done
11569
11570
11571
11572 for ac_header in string.h strings.h
11573 do
11574 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11575 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11576   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11577 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11578 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11579   echo $ECHO_N "(cached) $ECHO_C" >&6
11580 fi
11581 ac_res=`eval echo '${'$as_ac_Header'}'`
11582                { echo "$as_me:$LINENO: result: $ac_res" >&5
11583 echo "${ECHO_T}$ac_res" >&6; }
11584 else
11585   # Is the header compilable?
11586 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11587 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11588 cat >conftest.$ac_ext <<_ACEOF
11589 /* confdefs.h.  */
11590 _ACEOF
11591 cat confdefs.h >>conftest.$ac_ext
11592 cat >>conftest.$ac_ext <<_ACEOF
11593 /* end confdefs.h.  */
11594 $ac_includes_default
11595 #include <$ac_header>
11596 _ACEOF
11597 rm -f conftest.$ac_objext
11598 if { (ac_try="$ac_compile"
11599 case "(($ac_try" in
11600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11601   *) ac_try_echo=$ac_try;;
11602 esac
11603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11604   (eval "$ac_compile") 2>conftest.er1
11605   ac_status=$?
11606   grep -v '^ *+' conftest.er1 >conftest.err
11607   rm -f conftest.er1
11608   cat conftest.err >&5
11609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11610   (exit $ac_status); } &&
11611          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11612   { (case "(($ac_try" in
11613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11614   *) ac_try_echo=$ac_try;;
11615 esac
11616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11617   (eval "$ac_try") 2>&5
11618   ac_status=$?
11619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11620   (exit $ac_status); }; } &&
11621          { ac_try='test -s conftest.$ac_objext'
11622   { (case "(($ac_try" in
11623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11624   *) ac_try_echo=$ac_try;;
11625 esac
11626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11627   (eval "$ac_try") 2>&5
11628   ac_status=$?
11629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11630   (exit $ac_status); }; }; then
11631   ac_header_compiler=yes
11632 else
11633   echo "$as_me: failed program was:" >&5
11634 sed 's/^/| /' conftest.$ac_ext >&5
11635
11636         ac_header_compiler=no
11637 fi
11638
11639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11640 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11641 echo "${ECHO_T}$ac_header_compiler" >&6; }
11642
11643 # Is the header present?
11644 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11645 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11646 cat >conftest.$ac_ext <<_ACEOF
11647 /* confdefs.h.  */
11648 _ACEOF
11649 cat confdefs.h >>conftest.$ac_ext
11650 cat >>conftest.$ac_ext <<_ACEOF
11651 /* end confdefs.h.  */
11652 #include <$ac_header>
11653 _ACEOF
11654 if { (ac_try="$ac_cpp conftest.$ac_ext"
11655 case "(($ac_try" in
11656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11657   *) ac_try_echo=$ac_try;;
11658 esac
11659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11660   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11661   ac_status=$?
11662   grep -v '^ *+' conftest.er1 >conftest.err
11663   rm -f conftest.er1
11664   cat conftest.err >&5
11665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666   (exit $ac_status); } >/dev/null; then
11667   if test -s conftest.err; then
11668     ac_cpp_err=$ac_c_preproc_warn_flag
11669     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11670   else
11671     ac_cpp_err=
11672   fi
11673 else
11674   ac_cpp_err=yes
11675 fi
11676 if test -z "$ac_cpp_err"; then
11677   ac_header_preproc=yes
11678 else
11679   echo "$as_me: failed program was:" >&5
11680 sed 's/^/| /' conftest.$ac_ext >&5
11681
11682   ac_header_preproc=no
11683 fi
11684
11685 rm -f conftest.err conftest.$ac_ext
11686 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11687 echo "${ECHO_T}$ac_header_preproc" >&6; }
11688
11689 # So?  What about this header?
11690 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11691   yes:no: )
11692     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11693 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11694     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11695 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11696     ac_header_preproc=yes
11697     ;;
11698   no:yes:* )
11699     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11700 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11701     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11702 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11703     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11704 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11705     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11706 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11707     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11708 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11709     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11710 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11711     ( cat <<\_ASBOX
11712 ## ----------------------------------- ##
11713 ## Report this to llvmbugs@cs.uiuc.edu ##
11714 ## ----------------------------------- ##
11715 _ASBOX
11716      ) | sed "s/^/$as_me: WARNING:     /" >&2
11717     ;;
11718 esac
11719 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11720 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11721 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11722   echo $ECHO_N "(cached) $ECHO_C" >&6
11723 else
11724   eval "$as_ac_Header=\$ac_header_preproc"
11725 fi
11726 ac_res=`eval echo '${'$as_ac_Header'}'`
11727                { echo "$as_me:$LINENO: result: $ac_res" >&5
11728 echo "${ECHO_T}$ac_res" >&6; }
11729
11730 fi
11731 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11732   cat >>confdefs.h <<_ACEOF
11733 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11734 _ACEOF
11735  break
11736 fi
11737
11738 done
11739
11740
11741
11742
11743 for ac_func in strchr index
11744 do
11745 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11746 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11747 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11748 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11749   echo $ECHO_N "(cached) $ECHO_C" >&6
11750 else
11751   cat >conftest.$ac_ext <<_ACEOF
11752 /* confdefs.h.  */
11753 _ACEOF
11754 cat confdefs.h >>conftest.$ac_ext
11755 cat >>conftest.$ac_ext <<_ACEOF
11756 /* end confdefs.h.  */
11757 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11758    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11759 #define $ac_func innocuous_$ac_func
11760
11761 /* System header to define __stub macros and hopefully few prototypes,
11762     which can conflict with char $ac_func (); below.
11763     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11764     <limits.h> exists even on freestanding compilers.  */
11765
11766 #ifdef __STDC__
11767 # include <limits.h>
11768 #else
11769 # include <assert.h>
11770 #endif
11771
11772 #undef $ac_func
11773
11774 /* Override any GCC internal prototype to avoid an error.
11775    Use char because int might match the return type of a GCC
11776    builtin and then its argument prototype would still apply.  */
11777 #ifdef __cplusplus
11778 extern "C"
11779 #endif
11780 char $ac_func ();
11781 /* The GNU C library defines this for functions which it implements
11782     to always fail with ENOSYS.  Some functions are actually named
11783     something starting with __ and the normal name is an alias.  */
11784 #if defined __stub_$ac_func || defined __stub___$ac_func
11785 choke me
11786 #endif
11787
11788 int
11789 main ()
11790 {
11791 return $ac_func ();
11792   ;
11793   return 0;
11794 }
11795 _ACEOF
11796 rm -f conftest.$ac_objext conftest$ac_exeext
11797 if { (ac_try="$ac_link"
11798 case "(($ac_try" in
11799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11800   *) ac_try_echo=$ac_try;;
11801 esac
11802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11803   (eval "$ac_link") 2>conftest.er1
11804   ac_status=$?
11805   grep -v '^ *+' conftest.er1 >conftest.err
11806   rm -f conftest.er1
11807   cat conftest.err >&5
11808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11809   (exit $ac_status); } &&
11810          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11811   { (case "(($ac_try" in
11812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11813   *) ac_try_echo=$ac_try;;
11814 esac
11815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11816   (eval "$ac_try") 2>&5
11817   ac_status=$?
11818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11819   (exit $ac_status); }; } &&
11820          { ac_try='test -s conftest$ac_exeext'
11821   { (case "(($ac_try" in
11822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11823   *) ac_try_echo=$ac_try;;
11824 esac
11825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11826   (eval "$ac_try") 2>&5
11827   ac_status=$?
11828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11829   (exit $ac_status); }; }; then
11830   eval "$as_ac_var=yes"
11831 else
11832   echo "$as_me: failed program was:" >&5
11833 sed 's/^/| /' conftest.$ac_ext >&5
11834
11835         eval "$as_ac_var=no"
11836 fi
11837
11838 rm -f core conftest.err conftest.$ac_objext \
11839       conftest$ac_exeext conftest.$ac_ext
11840 fi
11841 ac_res=`eval echo '${'$as_ac_var'}'`
11842                { echo "$as_me:$LINENO: result: $ac_res" >&5
11843 echo "${ECHO_T}$ac_res" >&6; }
11844 if test `eval echo '${'$as_ac_var'}'` = yes; then
11845   cat >>confdefs.h <<_ACEOF
11846 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11847 _ACEOF
11848  break
11849 fi
11850 done
11851
11852
11853
11854 for ac_func in strrchr rindex
11855 do
11856 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11857 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11858 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11859 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11860   echo $ECHO_N "(cached) $ECHO_C" >&6
11861 else
11862   cat >conftest.$ac_ext <<_ACEOF
11863 /* confdefs.h.  */
11864 _ACEOF
11865 cat confdefs.h >>conftest.$ac_ext
11866 cat >>conftest.$ac_ext <<_ACEOF
11867 /* end confdefs.h.  */
11868 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11869    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11870 #define $ac_func innocuous_$ac_func
11871
11872 /* System header to define __stub macros and hopefully few prototypes,
11873     which can conflict with char $ac_func (); below.
11874     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11875     <limits.h> exists even on freestanding compilers.  */
11876
11877 #ifdef __STDC__
11878 # include <limits.h>
11879 #else
11880 # include <assert.h>
11881 #endif
11882
11883 #undef $ac_func
11884
11885 /* Override any GCC internal prototype to avoid an error.
11886    Use char because int might match the return type of a GCC
11887    builtin and then its argument prototype would still apply.  */
11888 #ifdef __cplusplus
11889 extern "C"
11890 #endif
11891 char $ac_func ();
11892 /* The GNU C library defines this for functions which it implements
11893     to always fail with ENOSYS.  Some functions are actually named
11894     something starting with __ and the normal name is an alias.  */
11895 #if defined __stub_$ac_func || defined __stub___$ac_func
11896 choke me
11897 #endif
11898
11899 int
11900 main ()
11901 {
11902 return $ac_func ();
11903   ;
11904   return 0;
11905 }
11906 _ACEOF
11907 rm -f conftest.$ac_objext conftest$ac_exeext
11908 if { (ac_try="$ac_link"
11909 case "(($ac_try" in
11910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11911   *) ac_try_echo=$ac_try;;
11912 esac
11913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11914   (eval "$ac_link") 2>conftest.er1
11915   ac_status=$?
11916   grep -v '^ *+' conftest.er1 >conftest.err
11917   rm -f conftest.er1
11918   cat conftest.err >&5
11919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11920   (exit $ac_status); } &&
11921          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11922   { (case "(($ac_try" in
11923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11924   *) ac_try_echo=$ac_try;;
11925 esac
11926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11927   (eval "$ac_try") 2>&5
11928   ac_status=$?
11929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11930   (exit $ac_status); }; } &&
11931          { ac_try='test -s conftest$ac_exeext'
11932   { (case "(($ac_try" in
11933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11934   *) ac_try_echo=$ac_try;;
11935 esac
11936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11937   (eval "$ac_try") 2>&5
11938   ac_status=$?
11939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11940   (exit $ac_status); }; }; then
11941   eval "$as_ac_var=yes"
11942 else
11943   echo "$as_me: failed program was:" >&5
11944 sed 's/^/| /' conftest.$ac_ext >&5
11945
11946         eval "$as_ac_var=no"
11947 fi
11948
11949 rm -f core conftest.err conftest.$ac_objext \
11950       conftest$ac_exeext conftest.$ac_ext
11951 fi
11952 ac_res=`eval echo '${'$as_ac_var'}'`
11953                { echo "$as_me:$LINENO: result: $ac_res" >&5
11954 echo "${ECHO_T}$ac_res" >&6; }
11955 if test `eval echo '${'$as_ac_var'}'` = yes; then
11956   cat >>confdefs.h <<_ACEOF
11957 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11958 _ACEOF
11959  break
11960 fi
11961 done
11962
11963
11964
11965 for ac_func in memcpy bcopy
11966 do
11967 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11968 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11969 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11970 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11971   echo $ECHO_N "(cached) $ECHO_C" >&6
11972 else
11973   cat >conftest.$ac_ext <<_ACEOF
11974 /* confdefs.h.  */
11975 _ACEOF
11976 cat confdefs.h >>conftest.$ac_ext
11977 cat >>conftest.$ac_ext <<_ACEOF
11978 /* end confdefs.h.  */
11979 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11980    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11981 #define $ac_func innocuous_$ac_func
11982
11983 /* System header to define __stub macros and hopefully few prototypes,
11984     which can conflict with char $ac_func (); below.
11985     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11986     <limits.h> exists even on freestanding compilers.  */
11987
11988 #ifdef __STDC__
11989 # include <limits.h>
11990 #else
11991 # include <assert.h>
11992 #endif
11993
11994 #undef $ac_func
11995
11996 /* Override any GCC internal prototype to avoid an error.
11997    Use char because int might match the return type of a GCC
11998    builtin and then its argument prototype would still apply.  */
11999 #ifdef __cplusplus
12000 extern "C"
12001 #endif
12002 char $ac_func ();
12003 /* The GNU C library defines this for functions which it implements
12004     to always fail with ENOSYS.  Some functions are actually named
12005     something starting with __ and the normal name is an alias.  */
12006 #if defined __stub_$ac_func || defined __stub___$ac_func
12007 choke me
12008 #endif
12009
12010 int
12011 main ()
12012 {
12013 return $ac_func ();
12014   ;
12015   return 0;
12016 }
12017 _ACEOF
12018 rm -f conftest.$ac_objext conftest$ac_exeext
12019 if { (ac_try="$ac_link"
12020 case "(($ac_try" in
12021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12022   *) ac_try_echo=$ac_try;;
12023 esac
12024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12025   (eval "$ac_link") 2>conftest.er1
12026   ac_status=$?
12027   grep -v '^ *+' conftest.er1 >conftest.err
12028   rm -f conftest.er1
12029   cat conftest.err >&5
12030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12031   (exit $ac_status); } &&
12032          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12033   { (case "(($ac_try" in
12034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12035   *) ac_try_echo=$ac_try;;
12036 esac
12037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12038   (eval "$ac_try") 2>&5
12039   ac_status=$?
12040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041   (exit $ac_status); }; } &&
12042          { ac_try='test -s conftest$ac_exeext'
12043   { (case "(($ac_try" in
12044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12045   *) ac_try_echo=$ac_try;;
12046 esac
12047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12048   (eval "$ac_try") 2>&5
12049   ac_status=$?
12050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12051   (exit $ac_status); }; }; then
12052   eval "$as_ac_var=yes"
12053 else
12054   echo "$as_me: failed program was:" >&5
12055 sed 's/^/| /' conftest.$ac_ext >&5
12056
12057         eval "$as_ac_var=no"
12058 fi
12059
12060 rm -f core conftest.err conftest.$ac_objext \
12061       conftest$ac_exeext conftest.$ac_ext
12062 fi
12063 ac_res=`eval echo '${'$as_ac_var'}'`
12064                { echo "$as_me:$LINENO: result: $ac_res" >&5
12065 echo "${ECHO_T}$ac_res" >&6; }
12066 if test `eval echo '${'$as_ac_var'}'` = yes; then
12067   cat >>confdefs.h <<_ACEOF
12068 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12069 _ACEOF
12070  break
12071 fi
12072 done
12073
12074
12075
12076 for ac_func in memmove strcmp
12077 do
12078 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12079 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12080 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12081 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12082   echo $ECHO_N "(cached) $ECHO_C" >&6
12083 else
12084   cat >conftest.$ac_ext <<_ACEOF
12085 /* confdefs.h.  */
12086 _ACEOF
12087 cat confdefs.h >>conftest.$ac_ext
12088 cat >>conftest.$ac_ext <<_ACEOF
12089 /* end confdefs.h.  */
12090 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12091    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12092 #define $ac_func innocuous_$ac_func
12093
12094 /* System header to define __stub macros and hopefully few prototypes,
12095     which can conflict with char $ac_func (); below.
12096     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12097     <limits.h> exists even on freestanding compilers.  */
12098
12099 #ifdef __STDC__
12100 # include <limits.h>
12101 #else
12102 # include <assert.h>
12103 #endif
12104
12105 #undef $ac_func
12106
12107 /* Override any GCC internal prototype to avoid an error.
12108    Use char because int might match the return type of a GCC
12109    builtin and then its argument prototype would still apply.  */
12110 #ifdef __cplusplus
12111 extern "C"
12112 #endif
12113 char $ac_func ();
12114 /* The GNU C library defines this for functions which it implements
12115     to always fail with ENOSYS.  Some functions are actually named
12116     something starting with __ and the normal name is an alias.  */
12117 #if defined __stub_$ac_func || defined __stub___$ac_func
12118 choke me
12119 #endif
12120
12121 int
12122 main ()
12123 {
12124 return $ac_func ();
12125   ;
12126   return 0;
12127 }
12128 _ACEOF
12129 rm -f conftest.$ac_objext conftest$ac_exeext
12130 if { (ac_try="$ac_link"
12131 case "(($ac_try" in
12132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12133   *) ac_try_echo=$ac_try;;
12134 esac
12135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12136   (eval "$ac_link") 2>conftest.er1
12137   ac_status=$?
12138   grep -v '^ *+' conftest.er1 >conftest.err
12139   rm -f conftest.er1
12140   cat conftest.err >&5
12141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12142   (exit $ac_status); } &&
12143          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12144   { (case "(($ac_try" in
12145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12146   *) ac_try_echo=$ac_try;;
12147 esac
12148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12149   (eval "$ac_try") 2>&5
12150   ac_status=$?
12151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12152   (exit $ac_status); }; } &&
12153          { ac_try='test -s conftest$ac_exeext'
12154   { (case "(($ac_try" in
12155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12156   *) ac_try_echo=$ac_try;;
12157 esac
12158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12159   (eval "$ac_try") 2>&5
12160   ac_status=$?
12161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12162   (exit $ac_status); }; }; then
12163   eval "$as_ac_var=yes"
12164 else
12165   echo "$as_me: failed program was:" >&5
12166 sed 's/^/| /' conftest.$ac_ext >&5
12167
12168         eval "$as_ac_var=no"
12169 fi
12170
12171 rm -f core conftest.err conftest.$ac_objext \
12172       conftest$ac_exeext conftest.$ac_ext
12173 fi
12174 ac_res=`eval echo '${'$as_ac_var'}'`
12175                { echo "$as_me:$LINENO: result: $ac_res" >&5
12176 echo "${ECHO_T}$ac_res" >&6; }
12177 if test `eval echo '${'$as_ac_var'}'` = yes; then
12178   cat >>confdefs.h <<_ACEOF
12179 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12180 _ACEOF
12181
12182 fi
12183 done
12184
12185
12186
12187
12188 for ac_func in closedir opendir readdir
12189 do
12190 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12191 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12192 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12193 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12194   echo $ECHO_N "(cached) $ECHO_C" >&6
12195 else
12196   cat >conftest.$ac_ext <<_ACEOF
12197 /* confdefs.h.  */
12198 _ACEOF
12199 cat confdefs.h >>conftest.$ac_ext
12200 cat >>conftest.$ac_ext <<_ACEOF
12201 /* end confdefs.h.  */
12202 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12203    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12204 #define $ac_func innocuous_$ac_func
12205
12206 /* System header to define __stub macros and hopefully few prototypes,
12207     which can conflict with char $ac_func (); below.
12208     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12209     <limits.h> exists even on freestanding compilers.  */
12210
12211 #ifdef __STDC__
12212 # include <limits.h>
12213 #else
12214 # include <assert.h>
12215 #endif
12216
12217 #undef $ac_func
12218
12219 /* Override any GCC internal prototype to avoid an error.
12220    Use char because int might match the return type of a GCC
12221    builtin and then its argument prototype would still apply.  */
12222 #ifdef __cplusplus
12223 extern "C"
12224 #endif
12225 char $ac_func ();
12226 /* The GNU C library defines this for functions which it implements
12227     to always fail with ENOSYS.  Some functions are actually named
12228     something starting with __ and the normal name is an alias.  */
12229 #if defined __stub_$ac_func || defined __stub___$ac_func
12230 choke me
12231 #endif
12232
12233 int
12234 main ()
12235 {
12236 return $ac_func ();
12237   ;
12238   return 0;
12239 }
12240 _ACEOF
12241 rm -f conftest.$ac_objext conftest$ac_exeext
12242 if { (ac_try="$ac_link"
12243 case "(($ac_try" in
12244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12245   *) ac_try_echo=$ac_try;;
12246 esac
12247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12248   (eval "$ac_link") 2>conftest.er1
12249   ac_status=$?
12250   grep -v '^ *+' conftest.er1 >conftest.err
12251   rm -f conftest.er1
12252   cat conftest.err >&5
12253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12254   (exit $ac_status); } &&
12255          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12256   { (case "(($ac_try" in
12257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12258   *) ac_try_echo=$ac_try;;
12259 esac
12260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12261   (eval "$ac_try") 2>&5
12262   ac_status=$?
12263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12264   (exit $ac_status); }; } &&
12265          { ac_try='test -s conftest$ac_exeext'
12266   { (case "(($ac_try" in
12267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12268   *) ac_try_echo=$ac_try;;
12269 esac
12270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12271   (eval "$ac_try") 2>&5
12272   ac_status=$?
12273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12274   (exit $ac_status); }; }; then
12275   eval "$as_ac_var=yes"
12276 else
12277   echo "$as_me: failed program was:" >&5
12278 sed 's/^/| /' conftest.$ac_ext >&5
12279
12280         eval "$as_ac_var=no"
12281 fi
12282
12283 rm -f core conftest.err conftest.$ac_objext \
12284       conftest$ac_exeext conftest.$ac_ext
12285 fi
12286 ac_res=`eval echo '${'$as_ac_var'}'`
12287                { echo "$as_me:$LINENO: result: $ac_res" >&5
12288 echo "${ECHO_T}$ac_res" >&6; }
12289 if test `eval echo '${'$as_ac_var'}'` = yes; then
12290   cat >>confdefs.h <<_ACEOF
12291 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12292 _ACEOF
12293
12294 fi
12295 done
12296
12297
12298 # Check whether --enable-shared was given.
12299 if test "${enable_shared+set}" = set; then
12300   enableval=$enable_shared; p=${PACKAGE-default}
12301     case $enableval in
12302     yes) enable_shared=yes ;;
12303     no) enable_shared=no ;;
12304     *)
12305       enable_shared=no
12306       # Look at the argument we got.  We use all the common list separators.
12307       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12308       for pkg in $enableval; do
12309         IFS="$lt_save_ifs"
12310         if test "X$pkg" = "X$p"; then
12311           enable_shared=yes
12312         fi
12313       done
12314       IFS="$lt_save_ifs"
12315       ;;
12316     esac
12317 else
12318   enable_shared=yes
12319 fi
12320
12321
12322 # Check whether --enable-static was given.
12323 if test "${enable_static+set}" = set; then
12324   enableval=$enable_static; p=${PACKAGE-default}
12325     case $enableval in
12326     yes) enable_static=yes ;;
12327     no) enable_static=no ;;
12328     *)
12329      enable_static=no
12330       # Look at the argument we got.  We use all the common list separators.
12331       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12332       for pkg in $enableval; do
12333         IFS="$lt_save_ifs"
12334         if test "X$pkg" = "X$p"; then
12335           enable_static=yes
12336         fi
12337       done
12338       IFS="$lt_save_ifs"
12339       ;;
12340     esac
12341 else
12342   enable_static=yes
12343 fi
12344
12345
12346 # Check whether --enable-fast-install was given.
12347 if test "${enable_fast_install+set}" = set; then
12348   enableval=$enable_fast_install; p=${PACKAGE-default}
12349     case $enableval in
12350     yes) enable_fast_install=yes ;;
12351     no) enable_fast_install=no ;;
12352     *)
12353       enable_fast_install=no
12354       # Look at the argument we got.  We use all the common list separators.
12355       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12356       for pkg in $enableval; do
12357         IFS="$lt_save_ifs"
12358         if test "X$pkg" = "X$p"; then
12359           enable_fast_install=yes
12360         fi
12361       done
12362       IFS="$lt_save_ifs"
12363       ;;
12364     esac
12365 else
12366   enable_fast_install=yes
12367 fi
12368
12369
12370 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12371 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12372 if test "${lt_cv_path_SED+set}" = set; then
12373   echo $ECHO_N "(cached) $ECHO_C" >&6
12374 else
12375   # Loop through the user's path and test for sed and gsed.
12376 # Then use that list of sed's as ones to test for truncation.
12377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12378 for as_dir in $PATH
12379 do
12380   IFS=$as_save_IFS
12381   test -z "$as_dir" && as_dir=.
12382   for lt_ac_prog in sed gsed; do
12383     for ac_exec_ext in '' $ac_executable_extensions; do
12384       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12385         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12386       fi
12387     done
12388   done
12389 done
12390 lt_ac_max=0
12391 lt_ac_count=0
12392 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12393 # along with /bin/sed that truncates output.
12394 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12395   test ! -f $lt_ac_sed && continue
12396   cat /dev/null > conftest.in
12397   lt_ac_count=0
12398   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12399   # Check for GNU sed and select it if it is found.
12400   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12401     lt_cv_path_SED=$lt_ac_sed
12402     break
12403   fi
12404   while true; do
12405     cat conftest.in conftest.in >conftest.tmp
12406     mv conftest.tmp conftest.in
12407     cp conftest.in conftest.nl
12408     echo >>conftest.nl
12409     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12410     cmp -s conftest.out conftest.nl || break
12411     # 10000 chars as input seems more than enough
12412     test $lt_ac_count -gt 10 && break
12413     lt_ac_count=`expr $lt_ac_count + 1`
12414     if test $lt_ac_count -gt $lt_ac_max; then
12415       lt_ac_max=$lt_ac_count
12416       lt_cv_path_SED=$lt_ac_sed
12417     fi
12418   done
12419 done
12420
12421 fi
12422
12423 SED=$lt_cv_path_SED
12424 { echo "$as_me:$LINENO: result: $SED" >&5
12425 echo "${ECHO_T}$SED" >&6; }
12426
12427
12428 # Check whether --with-gnu-ld was given.
12429 if test "${with_gnu_ld+set}" = set; then
12430   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12431 else
12432   with_gnu_ld=no
12433 fi
12434
12435 ac_prog=ld
12436 if test "$GCC" = yes; then
12437   # Check if gcc -print-prog-name=ld gives a path.
12438   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12439 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12440   case $host in
12441   *-*-mingw*)
12442     # gcc leaves a trailing carriage return which upsets mingw
12443     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12444   *)
12445     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12446   esac
12447   case $ac_prog in
12448     # Accept absolute paths.
12449     [\\/]* | ?:[\\/]*)
12450       re_direlt='/[^/][^/]*/\.\./'
12451       # Canonicalize the pathname of ld
12452       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12453       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12454         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12455       done
12456       test -z "$LD" && LD="$ac_prog"
12457       ;;
12458   "")
12459     # If it fails, then pretend we aren't using GCC.
12460     ac_prog=ld
12461     ;;
12462   *)
12463     # If it is relative, then search for the first ld in PATH.
12464     with_gnu_ld=unknown
12465     ;;
12466   esac
12467 elif test "$with_gnu_ld" = yes; then
12468   { echo "$as_me:$LINENO: checking for GNU ld" >&5
12469 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12470 else
12471   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12472 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12473 fi
12474 if test "${lt_cv_path_LD+set}" = set; then
12475   echo $ECHO_N "(cached) $ECHO_C" >&6
12476 else
12477   if test -z "$LD"; then
12478   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12479   for ac_dir in $PATH; do
12480     IFS="$lt_save_ifs"
12481     test -z "$ac_dir" && ac_dir=.
12482     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12483       lt_cv_path_LD="$ac_dir/$ac_prog"
12484       # Check to see if the program is GNU ld.  I'd rather use --version,
12485       # but apparently some variants of GNU ld only accept -v.
12486       # Break only if it was the GNU/non-GNU ld that we prefer.
12487       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12488       *GNU* | *'with BFD'*)
12489         test "$with_gnu_ld" != no && break
12490         ;;
12491       *)
12492         test "$with_gnu_ld" != yes && break
12493         ;;
12494       esac
12495     fi
12496   done
12497   IFS="$lt_save_ifs"
12498 else
12499   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12500 fi
12501 fi
12502
12503 LD="$lt_cv_path_LD"
12504 if test -n "$LD"; then
12505   { echo "$as_me:$LINENO: result: $LD" >&5
12506 echo "${ECHO_T}$LD" >&6; }
12507 else
12508   { echo "$as_me:$LINENO: result: no" >&5
12509 echo "${ECHO_T}no" >&6; }
12510 fi
12511 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12512 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12513    { (exit 1); exit 1; }; }
12514 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12515 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12516 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12517   echo $ECHO_N "(cached) $ECHO_C" >&6
12518 else
12519   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12520 case `$LD -v 2>&1 </dev/null` in
12521 *GNU* | *'with BFD'*)
12522   lt_cv_prog_gnu_ld=yes
12523   ;;
12524 *)
12525   lt_cv_prog_gnu_ld=no
12526   ;;
12527 esac
12528 fi
12529 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12530 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12531 with_gnu_ld=$lt_cv_prog_gnu_ld
12532
12533
12534 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12535 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12536 if test "${lt_cv_ld_reload_flag+set}" = set; then
12537   echo $ECHO_N "(cached) $ECHO_C" >&6
12538 else
12539   lt_cv_ld_reload_flag='-r'
12540 fi
12541 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12542 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12543 reload_flag=$lt_cv_ld_reload_flag
12544 case $reload_flag in
12545 "" | " "*) ;;
12546 *) reload_flag=" $reload_flag" ;;
12547 esac
12548 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12549 case $host_os in
12550   darwin*)
12551     if test "$GCC" = yes; then
12552       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12553     else
12554       reload_cmds='$LD$reload_flag -o $output$reload_objs'
12555     fi
12556     ;;
12557 esac
12558
12559 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12560 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12561 if test "${lt_cv_deplibs_check_method+set}" = set; then
12562   echo $ECHO_N "(cached) $ECHO_C" >&6
12563 else
12564   lt_cv_file_magic_cmd='$MAGIC_CMD'
12565 lt_cv_file_magic_test_file=
12566 lt_cv_deplibs_check_method='unknown'
12567 # Need to set the preceding variable on all platforms that support
12568 # interlibrary dependencies.
12569 # 'none' -- dependencies not supported.
12570 # `unknown' -- same as none, but documents that we really don't know.
12571 # 'pass_all' -- all dependencies passed with no checks.
12572 # 'test_compile' -- check by making test program.
12573 # 'file_magic [[regex]]' -- check by looking for files in library path
12574 # which responds to the $file_magic_cmd with a given extended regex.
12575 # If you have `file' or equivalent on your system and you're not sure
12576 # whether `pass_all' will *always* work, you probably want this one.
12577
12578 case $host_os in
12579 aix4* | aix5*)
12580   lt_cv_deplibs_check_method=pass_all
12581   ;;
12582
12583 beos*)
12584   lt_cv_deplibs_check_method=pass_all
12585   ;;
12586
12587 bsdi[45]*)
12588   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12589   lt_cv_file_magic_cmd='/usr/bin/file -L'
12590   lt_cv_file_magic_test_file=/shlib/libc.so
12591   ;;
12592
12593 cygwin*)
12594   # func_win32_libid is a shell function defined in ltmain.sh
12595   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12596   lt_cv_file_magic_cmd='func_win32_libid'
12597   ;;
12598
12599 mingw* | pw32*)
12600   # Base MSYS/MinGW do not provide the 'file' command needed by
12601   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12602   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12603   lt_cv_file_magic_cmd='$OBJDUMP -f'
12604   ;;
12605
12606 darwin* | rhapsody*)
12607   lt_cv_deplibs_check_method=pass_all
12608   ;;
12609
12610 freebsd* | kfreebsd*-gnu | dragonfly*)
12611   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12612     case $host_cpu in
12613     i*86 )
12614       # Not sure whether the presence of OpenBSD here was a mistake.
12615       # Let's accept both of them until this is cleared up.
12616       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12617       lt_cv_file_magic_cmd=/usr/bin/file
12618       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12619       ;;
12620     esac
12621   else
12622     lt_cv_deplibs_check_method=pass_all
12623   fi
12624   ;;
12625
12626 gnu*)
12627   lt_cv_deplibs_check_method=pass_all
12628   ;;
12629
12630 hpux10.20* | hpux11*)
12631   lt_cv_file_magic_cmd=/usr/bin/file
12632   case $host_cpu in
12633   ia64*)
12634     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12635     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12636     ;;
12637   hppa*64*)
12638     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]'
12639     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12640     ;;
12641   *)
12642     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12643     lt_cv_file_magic_test_file=/usr/lib/libc.sl
12644     ;;
12645   esac
12646   ;;
12647
12648 interix3*)
12649   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12650   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12651   ;;
12652
12653 irix5* | irix6* | nonstopux*)
12654   case $LD in
12655   *-32|*"-32 ") libmagic=32-bit;;
12656   *-n32|*"-n32 ") libmagic=N32;;
12657   *-64|*"-64 ") libmagic=64-bit;;
12658   *) libmagic=never-match;;
12659   esac
12660   lt_cv_deplibs_check_method=pass_all
12661   ;;
12662
12663 # This must be Linux ELF.
12664 linux*)
12665   lt_cv_deplibs_check_method=pass_all
12666   ;;
12667
12668 netbsd*)
12669   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12670     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12671   else
12672     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12673   fi
12674   ;;
12675
12676 newos6*)
12677   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12678   lt_cv_file_magic_cmd=/usr/bin/file
12679   lt_cv_file_magic_test_file=/usr/lib/libnls.so
12680   ;;
12681
12682 nto-qnx*)
12683   lt_cv_deplibs_check_method=unknown
12684   ;;
12685
12686 openbsd*)
12687   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12688     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12689   else
12690     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12691   fi
12692   ;;
12693
12694 osf3* | osf4* | osf5*)
12695   lt_cv_deplibs_check_method=pass_all
12696   ;;
12697
12698 solaris*)
12699   lt_cv_deplibs_check_method=pass_all
12700   ;;
12701
12702 sysv4 | sysv4.3*)
12703   case $host_vendor in
12704   motorola)
12705     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]'
12706     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12707     ;;
12708   ncr)
12709     lt_cv_deplibs_check_method=pass_all
12710     ;;
12711   sequent)
12712     lt_cv_file_magic_cmd='/bin/file'
12713     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12714     ;;
12715   sni)
12716     lt_cv_file_magic_cmd='/bin/file'
12717     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12718     lt_cv_file_magic_test_file=/lib/libc.so
12719     ;;
12720   siemens)
12721     lt_cv_deplibs_check_method=pass_all
12722     ;;
12723   pc)
12724     lt_cv_deplibs_check_method=pass_all
12725     ;;
12726   esac
12727   ;;
12728
12729 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12730   lt_cv_deplibs_check_method=pass_all
12731   ;;
12732 esac
12733
12734 fi
12735 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12736 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12737 file_magic_cmd=$lt_cv_file_magic_cmd
12738 deplibs_check_method=$lt_cv_deplibs_check_method
12739 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12740
12741
12742
12743 # If no C compiler was specified, use CC.
12744 LTCC=${LTCC-"$CC"}
12745
12746 # If no C compiler flags were specified, use CFLAGS.
12747 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12748
12749 # Allow CC to be a program name with arguments.
12750 compiler=$CC
12751
12752 # Check whether --enable-libtool-lock was given.
12753 if test "${enable_libtool_lock+set}" = set; then
12754   enableval=$enable_libtool_lock;
12755 fi
12756
12757 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12758
12759 # Some flags need to be propagated to the compiler or linker for good
12760 # libtool support.
12761 case $host in
12762 ia64-*-hpux*)
12763   # Find out which ABI we are using.
12764   echo 'int i;' > conftest.$ac_ext
12765   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12766   (eval $ac_compile) 2>&5
12767   ac_status=$?
12768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12769   (exit $ac_status); }; then
12770     case `/usr/bin/file conftest.$ac_objext` in
12771     *ELF-32*)
12772       HPUX_IA64_MODE="32"
12773       ;;
12774     *ELF-64*)
12775       HPUX_IA64_MODE="64"
12776       ;;
12777     esac
12778   fi
12779   rm -rf conftest*
12780   ;;
12781 *-*-irix6*)
12782   # Find out which ABI we are using.
12783   echo '#line 12783 "configure"' > conftest.$ac_ext
12784   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12785   (eval $ac_compile) 2>&5
12786   ac_status=$?
12787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12788   (exit $ac_status); }; then
12789    if test "$lt_cv_prog_gnu_ld" = yes; then
12790     case `/usr/bin/file conftest.$ac_objext` in
12791     *32-bit*)
12792       LD="${LD-ld} -melf32bsmip"
12793       ;;
12794     *N32*)
12795       LD="${LD-ld} -melf32bmipn32"
12796       ;;
12797     *64-bit*)
12798       LD="${LD-ld} -melf64bmip"
12799       ;;
12800     esac
12801    else
12802     case `/usr/bin/file conftest.$ac_objext` in
12803     *32-bit*)
12804       LD="${LD-ld} -32"
12805       ;;
12806     *N32*)
12807       LD="${LD-ld} -n32"
12808       ;;
12809     *64-bit*)
12810       LD="${LD-ld} -64"
12811       ;;
12812     esac
12813    fi
12814   fi
12815   rm -rf conftest*
12816   ;;
12817
12818 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12819   # Find out which ABI we are using.
12820   echo 'int i;' > conftest.$ac_ext
12821   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12822   (eval $ac_compile) 2>&5
12823   ac_status=$?
12824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12825   (exit $ac_status); }; then
12826     case `/usr/bin/file conftest.o` in
12827     *32-bit*)
12828       case $host in
12829         x86_64-*linux*)
12830           LD="${LD-ld} -m elf_i386"
12831           ;;
12832         ppc64-*linux*|powerpc64-*linux*)
12833           LD="${LD-ld} -m elf32ppclinux"
12834           ;;
12835         s390x-*linux*)
12836           LD="${LD-ld} -m elf_s390"
12837           ;;
12838         sparc64-*linux*)
12839           LD="${LD-ld} -m elf32_sparc"
12840           ;;
12841       esac
12842       ;;
12843     *64-bit*)
12844       case $host in
12845         x86_64-*linux*)
12846           LD="${LD-ld} -m elf_x86_64"
12847           ;;
12848         ppc*-*linux*|powerpc*-*linux*)
12849           LD="${LD-ld} -m elf64ppc"
12850           ;;
12851         s390*-*linux*)
12852           LD="${LD-ld} -m elf64_s390"
12853           ;;
12854         sparc*-*linux*)
12855           LD="${LD-ld} -m elf64_sparc"
12856           ;;
12857       esac
12858       ;;
12859     esac
12860   fi
12861   rm -rf conftest*
12862   ;;
12863
12864 *-*-sco3.2v5*)
12865   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12866   SAVE_CFLAGS="$CFLAGS"
12867   CFLAGS="$CFLAGS -belf"
12868   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12869 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
12870 if test "${lt_cv_cc_needs_belf+set}" = set; then
12871   echo $ECHO_N "(cached) $ECHO_C" >&6
12872 else
12873   ac_ext=c
12874 ac_cpp='$CPP $CPPFLAGS'
12875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12878
12879      cat >conftest.$ac_ext <<_ACEOF
12880 /* confdefs.h.  */
12881 _ACEOF
12882 cat confdefs.h >>conftest.$ac_ext
12883 cat >>conftest.$ac_ext <<_ACEOF
12884 /* end confdefs.h.  */
12885
12886 int
12887 main ()
12888 {
12889
12890   ;
12891   return 0;
12892 }
12893 _ACEOF
12894 rm -f conftest.$ac_objext conftest$ac_exeext
12895 if { (ac_try="$ac_link"
12896 case "(($ac_try" in
12897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12898   *) ac_try_echo=$ac_try;;
12899 esac
12900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12901   (eval "$ac_link") 2>conftest.er1
12902   ac_status=$?
12903   grep -v '^ *+' conftest.er1 >conftest.err
12904   rm -f conftest.er1
12905   cat conftest.err >&5
12906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12907   (exit $ac_status); } &&
12908          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12909   { (case "(($ac_try" in
12910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12911   *) ac_try_echo=$ac_try;;
12912 esac
12913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12914   (eval "$ac_try") 2>&5
12915   ac_status=$?
12916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12917   (exit $ac_status); }; } &&
12918          { ac_try='test -s conftest$ac_exeext'
12919   { (case "(($ac_try" in
12920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12921   *) ac_try_echo=$ac_try;;
12922 esac
12923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12924   (eval "$ac_try") 2>&5
12925   ac_status=$?
12926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12927   (exit $ac_status); }; }; then
12928   lt_cv_cc_needs_belf=yes
12929 else
12930   echo "$as_me: failed program was:" >&5
12931 sed 's/^/| /' conftest.$ac_ext >&5
12932
12933         lt_cv_cc_needs_belf=no
12934 fi
12935
12936 rm -f core conftest.err conftest.$ac_objext \
12937       conftest$ac_exeext conftest.$ac_ext
12938      ac_ext=c
12939 ac_cpp='$CPP $CPPFLAGS'
12940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12943
12944 fi
12945 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12946 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
12947   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12948     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12949     CFLAGS="$SAVE_CFLAGS"
12950   fi
12951   ;;
12952 sparc*-*solaris*)
12953   # Find out which ABI we are using.
12954   echo 'int i;' > conftest.$ac_ext
12955   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12956   (eval $ac_compile) 2>&5
12957   ac_status=$?
12958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12959   (exit $ac_status); }; then
12960     case `/usr/bin/file conftest.o` in
12961     *64-bit*)
12962       case $lt_cv_prog_gnu_ld in
12963       yes*) LD="${LD-ld} -m elf64_sparc" ;;
12964       *)    LD="${LD-ld} -64" ;;
12965       esac
12966       ;;
12967     esac
12968   fi
12969   rm -rf conftest*
12970   ;;
12971
12972
12973 esac
12974
12975 need_locks="$enable_libtool_lock"
12976
12977
12978
12979
12980 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12981     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12982     (test "X$CXX" != "Xg++"))) ; then
12983   ac_ext=cpp
12984 ac_cpp='$CXXCPP $CPPFLAGS'
12985 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12986 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12987 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12988 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12989 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12990 if test -z "$CXXCPP"; then
12991   if test "${ac_cv_prog_CXXCPP+set}" = set; then
12992   echo $ECHO_N "(cached) $ECHO_C" >&6
12993 else
12994       # Double quotes because CXXCPP needs to be expanded
12995     for CXXCPP in "$CXX -E" "/lib/cpp"
12996     do
12997       ac_preproc_ok=false
12998 for ac_cxx_preproc_warn_flag in '' yes
12999 do
13000   # Use a header file that comes with gcc, so configuring glibc
13001   # with a fresh cross-compiler works.
13002   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13003   # <limits.h> exists even on freestanding compilers.
13004   # On the NeXT, cc -E runs the code through the compiler's parser,
13005   # not just through cpp. "Syntax error" is here to catch this case.
13006   cat >conftest.$ac_ext <<_ACEOF
13007 /* confdefs.h.  */
13008 _ACEOF
13009 cat confdefs.h >>conftest.$ac_ext
13010 cat >>conftest.$ac_ext <<_ACEOF
13011 /* end confdefs.h.  */
13012 #ifdef __STDC__
13013 # include <limits.h>
13014 #else
13015 # include <assert.h>
13016 #endif
13017                      Syntax error
13018 _ACEOF
13019 if { (ac_try="$ac_cpp conftest.$ac_ext"
13020 case "(($ac_try" in
13021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13022   *) ac_try_echo=$ac_try;;
13023 esac
13024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13025   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13026   ac_status=$?
13027   grep -v '^ *+' conftest.er1 >conftest.err
13028   rm -f conftest.er1
13029   cat conftest.err >&5
13030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13031   (exit $ac_status); } >/dev/null; then
13032   if test -s conftest.err; then
13033     ac_cpp_err=$ac_cxx_preproc_warn_flag
13034     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13035   else
13036     ac_cpp_err=
13037   fi
13038 else
13039   ac_cpp_err=yes
13040 fi
13041 if test -z "$ac_cpp_err"; then
13042   :
13043 else
13044   echo "$as_me: failed program was:" >&5
13045 sed 's/^/| /' conftest.$ac_ext >&5
13046
13047   # Broken: fails on valid input.
13048 continue
13049 fi
13050
13051 rm -f conftest.err conftest.$ac_ext
13052
13053   # OK, works on sane cases.  Now check whether nonexistent headers
13054   # can be detected and how.
13055   cat >conftest.$ac_ext <<_ACEOF
13056 /* confdefs.h.  */
13057 _ACEOF
13058 cat confdefs.h >>conftest.$ac_ext
13059 cat >>conftest.$ac_ext <<_ACEOF
13060 /* end confdefs.h.  */
13061 #include <ac_nonexistent.h>
13062 _ACEOF
13063 if { (ac_try="$ac_cpp conftest.$ac_ext"
13064 case "(($ac_try" in
13065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13066   *) ac_try_echo=$ac_try;;
13067 esac
13068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13069   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13070   ac_status=$?
13071   grep -v '^ *+' conftest.er1 >conftest.err
13072   rm -f conftest.er1
13073   cat conftest.err >&5
13074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13075   (exit $ac_status); } >/dev/null; then
13076   if test -s conftest.err; then
13077     ac_cpp_err=$ac_cxx_preproc_warn_flag
13078     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13079   else
13080     ac_cpp_err=
13081   fi
13082 else
13083   ac_cpp_err=yes
13084 fi
13085 if test -z "$ac_cpp_err"; then
13086   # Broken: success on invalid input.
13087 continue
13088 else
13089   echo "$as_me: failed program was:" >&5
13090 sed 's/^/| /' conftest.$ac_ext >&5
13091
13092   # Passes both tests.
13093 ac_preproc_ok=:
13094 break
13095 fi
13096
13097 rm -f conftest.err conftest.$ac_ext
13098
13099 done
13100 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13101 rm -f conftest.err conftest.$ac_ext
13102 if $ac_preproc_ok; then
13103   break
13104 fi
13105
13106     done
13107     ac_cv_prog_CXXCPP=$CXXCPP
13108
13109 fi
13110   CXXCPP=$ac_cv_prog_CXXCPP
13111 else
13112   ac_cv_prog_CXXCPP=$CXXCPP
13113 fi
13114 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
13115 echo "${ECHO_T}$CXXCPP" >&6; }
13116 ac_preproc_ok=false
13117 for ac_cxx_preproc_warn_flag in '' yes
13118 do
13119   # Use a header file that comes with gcc, so configuring glibc
13120   # with a fresh cross-compiler works.
13121   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13122   # <limits.h> exists even on freestanding compilers.
13123   # On the NeXT, cc -E runs the code through the compiler's parser,
13124   # not just through cpp. "Syntax error" is here to catch this case.
13125   cat >conftest.$ac_ext <<_ACEOF
13126 /* confdefs.h.  */
13127 _ACEOF
13128 cat confdefs.h >>conftest.$ac_ext
13129 cat >>conftest.$ac_ext <<_ACEOF
13130 /* end confdefs.h.  */
13131 #ifdef __STDC__
13132 # include <limits.h>
13133 #else
13134 # include <assert.h>
13135 #endif
13136                      Syntax error
13137 _ACEOF
13138 if { (ac_try="$ac_cpp conftest.$ac_ext"
13139 case "(($ac_try" in
13140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13141   *) ac_try_echo=$ac_try;;
13142 esac
13143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13144   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13145   ac_status=$?
13146   grep -v '^ *+' conftest.er1 >conftest.err
13147   rm -f conftest.er1
13148   cat conftest.err >&5
13149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13150   (exit $ac_status); } >/dev/null; then
13151   if test -s conftest.err; then
13152     ac_cpp_err=$ac_cxx_preproc_warn_flag
13153     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13154   else
13155     ac_cpp_err=
13156   fi
13157 else
13158   ac_cpp_err=yes
13159 fi
13160 if test -z "$ac_cpp_err"; then
13161   :
13162 else
13163   echo "$as_me: failed program was:" >&5
13164 sed 's/^/| /' conftest.$ac_ext >&5
13165
13166   # Broken: fails on valid input.
13167 continue
13168 fi
13169
13170 rm -f conftest.err conftest.$ac_ext
13171
13172   # OK, works on sane cases.  Now check whether nonexistent headers
13173   # can be detected and how.
13174   cat >conftest.$ac_ext <<_ACEOF
13175 /* confdefs.h.  */
13176 _ACEOF
13177 cat confdefs.h >>conftest.$ac_ext
13178 cat >>conftest.$ac_ext <<_ACEOF
13179 /* end confdefs.h.  */
13180 #include <ac_nonexistent.h>
13181 _ACEOF
13182 if { (ac_try="$ac_cpp conftest.$ac_ext"
13183 case "(($ac_try" in
13184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13185   *) ac_try_echo=$ac_try;;
13186 esac
13187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13188   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13189   ac_status=$?
13190   grep -v '^ *+' conftest.er1 >conftest.err
13191   rm -f conftest.er1
13192   cat conftest.err >&5
13193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13194   (exit $ac_status); } >/dev/null; then
13195   if test -s conftest.err; then
13196     ac_cpp_err=$ac_cxx_preproc_warn_flag
13197     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13198   else
13199     ac_cpp_err=
13200   fi
13201 else
13202   ac_cpp_err=yes
13203 fi
13204 if test -z "$ac_cpp_err"; then
13205   # Broken: success on invalid input.
13206 continue
13207 else
13208   echo "$as_me: failed program was:" >&5
13209 sed 's/^/| /' conftest.$ac_ext >&5
13210
13211   # Passes both tests.
13212 ac_preproc_ok=:
13213 break
13214 fi
13215
13216 rm -f conftest.err conftest.$ac_ext
13217
13218 done
13219 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13220 rm -f conftest.err conftest.$ac_ext
13221 if $ac_preproc_ok; then
13222   :
13223 else
13224   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13225 See \`config.log' for more details." >&5
13226 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13227 See \`config.log' for more details." >&2;}
13228    { (exit 1); exit 1; }; }
13229 fi
13230
13231 ac_ext=cpp
13232 ac_cpp='$CXXCPP $CPPFLAGS'
13233 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13234 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13235 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13236
13237 fi
13238
13239
13240 ac_ext=f
13241 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13242 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13243 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13244 if test -n "$ac_tool_prefix"; then
13245   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
13246   do
13247     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13248 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13249 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13251 if test "${ac_cv_prog_F77+set}" = set; then
13252   echo $ECHO_N "(cached) $ECHO_C" >&6
13253 else
13254   if test -n "$F77"; then
13255   ac_cv_prog_F77="$F77" # Let the user override the test.
13256 else
13257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13258 for as_dir in $PATH
13259 do
13260   IFS=$as_save_IFS
13261   test -z "$as_dir" && as_dir=.
13262   for ac_exec_ext in '' $ac_executable_extensions; do
13263   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13264     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13265     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13266     break 2
13267   fi
13268 done
13269 done
13270 IFS=$as_save_IFS
13271
13272 fi
13273 fi
13274 F77=$ac_cv_prog_F77
13275 if test -n "$F77"; then
13276   { echo "$as_me:$LINENO: result: $F77" >&5
13277 echo "${ECHO_T}$F77" >&6; }
13278 else
13279   { echo "$as_me:$LINENO: result: no" >&5
13280 echo "${ECHO_T}no" >&6; }
13281 fi
13282
13283
13284     test -n "$F77" && break
13285   done
13286 fi
13287 if test -z "$F77"; then
13288   ac_ct_F77=$F77
13289   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
13290 do
13291   # Extract the first word of "$ac_prog", so it can be a program name with args.
13292 set dummy $ac_prog; ac_word=$2
13293 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13295 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13296   echo $ECHO_N "(cached) $ECHO_C" >&6
13297 else
13298   if test -n "$ac_ct_F77"; then
13299   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13300 else
13301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13302 for as_dir in $PATH
13303 do
13304   IFS=$as_save_IFS
13305   test -z "$as_dir" && as_dir=.
13306   for ac_exec_ext in '' $ac_executable_extensions; do
13307   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13308     ac_cv_prog_ac_ct_F77="$ac_prog"
13309     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13310     break 2
13311   fi
13312 done
13313 done
13314 IFS=$as_save_IFS
13315
13316 fi
13317 fi
13318 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13319 if test -n "$ac_ct_F77"; then
13320   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13321 echo "${ECHO_T}$ac_ct_F77" >&6; }
13322 else
13323   { echo "$as_me:$LINENO: result: no" >&5
13324 echo "${ECHO_T}no" >&6; }
13325 fi
13326
13327
13328   test -n "$ac_ct_F77" && break
13329 done
13330
13331   if test "x$ac_ct_F77" = x; then
13332     F77=""
13333   else
13334     case $cross_compiling:$ac_tool_warned in
13335 yes:)
13336 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13337 whose name does not start with the host triplet.  If you think this
13338 configuration is useful to you, please write to autoconf@gnu.org." >&5
13339 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13340 whose name does not start with the host triplet.  If you think this
13341 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13342 ac_tool_warned=yes ;;
13343 esac
13344     F77=$ac_ct_F77
13345   fi
13346 fi
13347
13348
13349 # Provide some information about the compiler.
13350 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13351 ac_compiler=`set X $ac_compile; echo $2`
13352 { (ac_try="$ac_compiler --version >&5"
13353 case "(($ac_try" in
13354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13355   *) ac_try_echo=$ac_try;;
13356 esac
13357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13358   (eval "$ac_compiler --version >&5") 2>&5
13359   ac_status=$?
13360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13361   (exit $ac_status); }
13362 { (ac_try="$ac_compiler -v >&5"
13363 case "(($ac_try" in
13364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13365   *) ac_try_echo=$ac_try;;
13366 esac
13367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13368   (eval "$ac_compiler -v >&5") 2>&5
13369   ac_status=$?
13370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13371   (exit $ac_status); }
13372 { (ac_try="$ac_compiler -V >&5"
13373 case "(($ac_try" in
13374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13375   *) ac_try_echo=$ac_try;;
13376 esac
13377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13378   (eval "$ac_compiler -V >&5") 2>&5
13379   ac_status=$?
13380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13381   (exit $ac_status); }
13382 rm -f a.out
13383
13384 # If we don't use `.F' as extension, the preprocessor is not run on the
13385 # input file.  (Note that this only needs to work for GNU compilers.)
13386 ac_save_ext=$ac_ext
13387 ac_ext=F
13388 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13389 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13390 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13391   echo $ECHO_N "(cached) $ECHO_C" >&6
13392 else
13393   cat >conftest.$ac_ext <<_ACEOF
13394       program main
13395 #ifndef __GNUC__
13396        choke me
13397 #endif
13398
13399       end
13400 _ACEOF
13401 rm -f conftest.$ac_objext
13402 if { (ac_try="$ac_compile"
13403 case "(($ac_try" in
13404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13405   *) ac_try_echo=$ac_try;;
13406 esac
13407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13408   (eval "$ac_compile") 2>conftest.er1
13409   ac_status=$?
13410   grep -v '^ *+' conftest.er1 >conftest.err
13411   rm -f conftest.er1
13412   cat conftest.err >&5
13413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13414   (exit $ac_status); } &&
13415          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13416   { (case "(($ac_try" in
13417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13418   *) ac_try_echo=$ac_try;;
13419 esac
13420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13421   (eval "$ac_try") 2>&5
13422   ac_status=$?
13423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13424   (exit $ac_status); }; } &&
13425          { ac_try='test -s conftest.$ac_objext'
13426   { (case "(($ac_try" in
13427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13428   *) ac_try_echo=$ac_try;;
13429 esac
13430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13431   (eval "$ac_try") 2>&5
13432   ac_status=$?
13433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13434   (exit $ac_status); }; }; then
13435   ac_compiler_gnu=yes
13436 else
13437   echo "$as_me: failed program was:" >&5
13438 sed 's/^/| /' conftest.$ac_ext >&5
13439
13440         ac_compiler_gnu=no
13441 fi
13442
13443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13444 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13445
13446 fi
13447 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13448 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13449 ac_ext=$ac_save_ext
13450 ac_test_FFLAGS=${FFLAGS+set}
13451 ac_save_FFLAGS=$FFLAGS
13452 FFLAGS=
13453 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13454 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13455 if test "${ac_cv_prog_f77_g+set}" = set; then
13456   echo $ECHO_N "(cached) $ECHO_C" >&6
13457 else
13458   FFLAGS=-g
13459 cat >conftest.$ac_ext <<_ACEOF
13460       program main
13461
13462       end
13463 _ACEOF
13464 rm -f conftest.$ac_objext
13465 if { (ac_try="$ac_compile"
13466 case "(($ac_try" in
13467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13468   *) ac_try_echo=$ac_try;;
13469 esac
13470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13471   (eval "$ac_compile") 2>conftest.er1
13472   ac_status=$?
13473   grep -v '^ *+' conftest.er1 >conftest.err
13474   rm -f conftest.er1
13475   cat conftest.err >&5
13476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13477   (exit $ac_status); } &&
13478          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13479   { (case "(($ac_try" in
13480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13481   *) ac_try_echo=$ac_try;;
13482 esac
13483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13484   (eval "$ac_try") 2>&5
13485   ac_status=$?
13486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13487   (exit $ac_status); }; } &&
13488          { ac_try='test -s conftest.$ac_objext'
13489   { (case "(($ac_try" in
13490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13491   *) ac_try_echo=$ac_try;;
13492 esac
13493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13494   (eval "$ac_try") 2>&5
13495   ac_status=$?
13496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13497   (exit $ac_status); }; }; then
13498   ac_cv_prog_f77_g=yes
13499 else
13500   echo "$as_me: failed program was:" >&5
13501 sed 's/^/| /' conftest.$ac_ext >&5
13502
13503         ac_cv_prog_f77_g=no
13504 fi
13505
13506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13507
13508 fi
13509 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13510 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13511 if test "$ac_test_FFLAGS" = set; then
13512   FFLAGS=$ac_save_FFLAGS
13513 elif test $ac_cv_prog_f77_g = yes; then
13514   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13515     FFLAGS="-g -O2"
13516   else
13517     FFLAGS="-g"
13518   fi
13519 else
13520   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13521     FFLAGS="-O2"
13522   else
13523     FFLAGS=
13524   fi
13525 fi
13526
13527 G77=`test $ac_compiler_gnu = yes && echo yes`
13528 ac_ext=c
13529 ac_cpp='$CPP $CPPFLAGS'
13530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13533
13534
13535
13536 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13537
13538 # find the maximum length of command line arguments
13539 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13540 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13541 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13542   echo $ECHO_N "(cached) $ECHO_C" >&6
13543 else
13544     i=0
13545   teststring="ABCD"
13546
13547   case $build_os in
13548   msdosdjgpp*)
13549     # On DJGPP, this test can blow up pretty badly due to problems in libc
13550     # (any single argument exceeding 2000 bytes causes a buffer overrun
13551     # during glob expansion).  Even if it were fixed, the result of this
13552     # check would be larger than it should be.
13553     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
13554     ;;
13555
13556   gnu*)
13557     # Under GNU Hurd, this test is not required because there is
13558     # no limit to the length of command line arguments.
13559     # Libtool will interpret -1 as no limit whatsoever
13560     lt_cv_sys_max_cmd_len=-1;
13561     ;;
13562
13563   cygwin* | mingw*)
13564     # On Win9x/ME, this test blows up -- it succeeds, but takes
13565     # about 5 minutes as the teststring grows exponentially.
13566     # Worse, since 9x/ME are not pre-emptively multitasking,
13567     # you end up with a "frozen" computer, even though with patience
13568     # the test eventually succeeds (with a max line length of 256k).
13569     # Instead, let's just punt: use the minimum linelength reported by
13570     # all of the supported platforms: 8192 (on NT/2K/XP).
13571     lt_cv_sys_max_cmd_len=8192;
13572     ;;
13573
13574   amigaos*)
13575     # On AmigaOS with pdksh, this test takes hours, literally.
13576     # So we just punt and use a minimum line length of 8192.
13577     lt_cv_sys_max_cmd_len=8192;
13578     ;;
13579
13580   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13581     # This has been around since 386BSD, at least.  Likely further.
13582     if test -x /sbin/sysctl; then
13583       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13584     elif test -x /usr/sbin/sysctl; then
13585       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13586     else
13587       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
13588     fi
13589     # And add a safety zone
13590     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13591     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13592     ;;
13593
13594   interix*)
13595     # We know the value 262144 and hardcode it with a safety zone (like BSD)
13596     lt_cv_sys_max_cmd_len=196608
13597     ;;
13598
13599   osf*)
13600     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13601     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13602     # nice to cause kernel panics so lets avoid the loop below.
13603     # First set a reasonable default.
13604     lt_cv_sys_max_cmd_len=16384
13605     #
13606     if test -x /sbin/sysconfig; then
13607       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13608         *1*) lt_cv_sys_max_cmd_len=-1 ;;
13609       esac
13610     fi
13611     ;;
13612   sco3.2v5*)
13613     lt_cv_sys_max_cmd_len=102400
13614     ;;
13615   sysv5* | sco5v6* | sysv4.2uw2*)
13616     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13617     if test -n "$kargmax"; then
13618       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
13619     else
13620       lt_cv_sys_max_cmd_len=32768
13621     fi
13622     ;;
13623   *)
13624     # If test is not a shell built-in, we'll probably end up computing a
13625     # maximum length that is only half of the actual maximum length, but
13626     # we can't tell.
13627     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13628     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13629                = "XX$teststring") >/dev/null 2>&1 &&
13630             new_result=`expr "X$teststring" : ".*" 2>&1` &&
13631             lt_cv_sys_max_cmd_len=$new_result &&
13632             test $i != 17 # 1/2 MB should be enough
13633     do
13634       i=`expr $i + 1`
13635       teststring=$teststring$teststring
13636     done
13637     teststring=
13638     # Add a significant safety factor because C++ compilers can tack on massive
13639     # amounts of additional arguments before passing them to the linker.
13640     # It appears as though 1/2 is a usable value.
13641     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13642     ;;
13643   esac
13644
13645 fi
13646
13647 if test -n $lt_cv_sys_max_cmd_len ; then
13648   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13649 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13650 else
13651   { echo "$as_me:$LINENO: result: none" >&5
13652 echo "${ECHO_T}none" >&6; }
13653 fi
13654
13655
13656
13657
13658 # Check for command to grab the raw symbol name followed by C symbol from nm.
13659 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13660 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13661 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13662   echo $ECHO_N "(cached) $ECHO_C" >&6
13663 else
13664
13665 # These are sane defaults that work on at least a few old systems.
13666 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
13667
13668 # Character class describing NM global symbol codes.
13669 symcode='[BCDEGRST]'
13670
13671 # Regexp to match symbols that can be accessed directly from C.
13672 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13673
13674 # Transform an extracted symbol line into a proper C declaration
13675 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13676
13677 # Transform an extracted symbol line into symbol name and symbol address
13678 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'"
13679
13680 # Define system-specific variables.
13681 case $host_os in
13682 aix*)
13683   symcode='[BCDT]'
13684   ;;
13685 cygwin* | mingw* | pw32*)
13686   symcode='[ABCDGISTW]'
13687   ;;
13688 hpux*) # Its linker distinguishes data from code symbols
13689   if test "$host_cpu" = ia64; then
13690     symcode='[ABCDEGRST]'
13691   fi
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   ;;
13695 linux*)
13696   if test "$host_cpu" = ia64; then
13697     symcode='[ABCDGIRSTW]'
13698     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13699     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'"
13700   fi
13701   ;;
13702 irix* | nonstopux*)
13703   symcode='[BCDEGRST]'
13704   ;;
13705 osf*)
13706   symcode='[BCDEGQRST]'
13707   ;;
13708 solaris*)
13709   symcode='[BDRT]'
13710   ;;
13711 sco3.2v5*)
13712   symcode='[DT]'
13713   ;;
13714 sysv4.2uw2*)
13715   symcode='[DT]'
13716   ;;
13717 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13718   symcode='[ABDT]'
13719   ;;
13720 sysv4)
13721   symcode='[DFNSTU]'
13722   ;;
13723 esac
13724
13725 # Handle CRLF in mingw tool chain
13726 opt_cr=
13727 case $build_os in
13728 mingw*)
13729   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13730   ;;
13731 esac
13732
13733 # If we're using GNU nm, then use its standard symbol codes.
13734 case `$NM -V 2>&1` in
13735 *GNU* | *'with BFD'*)
13736   symcode='[ABCDGIRSTW]' ;;
13737 esac
13738
13739 # Try without a prefix undercore, then with it.
13740 for ac_symprfx in "" "_"; do
13741
13742   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13743   symxfrm="\\1 $ac_symprfx\\2 \\2"
13744
13745   # Write the raw and C identifiers.
13746   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13747
13748   # Check to see that the pipe works correctly.
13749   pipe_works=no
13750
13751   rm -f conftest*
13752   cat > conftest.$ac_ext <<EOF
13753 #ifdef __cplusplus
13754 extern "C" {
13755 #endif
13756 char nm_test_var;
13757 void nm_test_func(){}
13758 #ifdef __cplusplus
13759 }
13760 #endif
13761 int main(){nm_test_var='a';nm_test_func();return(0);}
13762 EOF
13763
13764   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13765   (eval $ac_compile) 2>&5
13766   ac_status=$?
13767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13768   (exit $ac_status); }; then
13769     # Now try to grab the symbols.
13770     nlist=conftest.nm
13771     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13772   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13773   ac_status=$?
13774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13775   (exit $ac_status); } && test -s "$nlist"; then
13776       # Try sorting and uniquifying the output.
13777       if sort "$nlist" | uniq > "$nlist"T; then
13778         mv -f "$nlist"T "$nlist"
13779       else
13780         rm -f "$nlist"T
13781       fi
13782
13783       # Make sure that we snagged all the symbols we need.
13784       if grep ' nm_test_var$' "$nlist" >/dev/null; then
13785         if grep ' nm_test_func$' "$nlist" >/dev/null; then
13786           cat <<EOF > conftest.$ac_ext
13787 #ifdef __cplusplus
13788 extern "C" {
13789 #endif
13790
13791 EOF
13792           # Now generate the symbol file.
13793           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13794
13795           cat <<EOF >> conftest.$ac_ext
13796 #if defined (__STDC__) && __STDC__
13797 # define lt_ptr_t void *
13798 #else
13799 # define lt_ptr_t char *
13800 # define const
13801 #endif
13802
13803 /* The mapping between symbol names and symbols. */
13804 const struct {
13805   const char *name;
13806   lt_ptr_t address;
13807 }
13808 lt_preloaded_symbols[] =
13809 {
13810 EOF
13811           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13812           cat <<\EOF >> conftest.$ac_ext
13813   {0, (lt_ptr_t) 0}
13814 };
13815
13816 #ifdef __cplusplus
13817 }
13818 #endif
13819 EOF
13820           # Now try linking the two files.
13821           mv conftest.$ac_objext conftstm.$ac_objext
13822           lt_save_LIBS="$LIBS"
13823           lt_save_CFLAGS="$CFLAGS"
13824           LIBS="conftstm.$ac_objext"
13825           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13826           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13827   (eval $ac_link) 2>&5
13828   ac_status=$?
13829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13830   (exit $ac_status); } && test -s conftest${ac_exeext}; then
13831             pipe_works=yes
13832           fi
13833           LIBS="$lt_save_LIBS"
13834           CFLAGS="$lt_save_CFLAGS"
13835         else
13836           echo "cannot find nm_test_func in $nlist" >&5
13837         fi
13838       else
13839         echo "cannot find nm_test_var in $nlist" >&5
13840       fi
13841     else
13842       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13843     fi
13844   else
13845     echo "$progname: failed program was:" >&5
13846     cat conftest.$ac_ext >&5
13847   fi
13848   rm -f conftest* conftst*
13849
13850   # Do not use the global_symbol_pipe unless it works.
13851   if test "$pipe_works" = yes; then
13852     break
13853   else
13854     lt_cv_sys_global_symbol_pipe=
13855   fi
13856 done
13857
13858 fi
13859
13860 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13861   lt_cv_sys_global_symbol_to_cdecl=
13862 fi
13863 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13864   { echo "$as_me:$LINENO: result: failed" >&5
13865 echo "${ECHO_T}failed" >&6; }
13866 else
13867   { echo "$as_me:$LINENO: result: ok" >&5
13868 echo "${ECHO_T}ok" >&6; }
13869 fi
13870
13871 { echo "$as_me:$LINENO: checking for objdir" >&5
13872 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
13873 if test "${lt_cv_objdir+set}" = set; then
13874   echo $ECHO_N "(cached) $ECHO_C" >&6
13875 else
13876   rm -f .libs 2>/dev/null
13877 mkdir .libs 2>/dev/null
13878 if test -d .libs; then
13879   lt_cv_objdir=.libs
13880 else
13881   # MS-DOS does not allow filenames that begin with a dot.
13882   lt_cv_objdir=_libs
13883 fi
13884 rmdir .libs 2>/dev/null
13885 fi
13886 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13887 echo "${ECHO_T}$lt_cv_objdir" >&6; }
13888 objdir=$lt_cv_objdir
13889
13890
13891
13892
13893
13894 case $host_os in
13895 aix3*)
13896   # AIX sometimes has problems with the GCC collect2 program.  For some
13897   # reason, if we set the COLLECT_NAMES environment variable, the problems
13898   # vanish in a puff of smoke.
13899   if test "X${COLLECT_NAMES+set}" != Xset; then
13900     COLLECT_NAMES=
13901     export COLLECT_NAMES
13902   fi
13903   ;;
13904 esac
13905
13906 # Sed substitution that helps us do robust quoting.  It backslashifies
13907 # metacharacters that are still active within double-quoted strings.
13908 Xsed='sed -e 1s/^X//'
13909 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13910
13911 # Same as above, but do not quote variable references.
13912 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13913
13914 # Sed substitution to delay expansion of an escaped shell variable in a
13915 # double_quote_subst'ed string.
13916 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13917
13918 # Sed substitution to avoid accidental globbing in evaled expressions
13919 no_glob_subst='s/\*/\\\*/g'
13920
13921 # Constants:
13922 rm="rm -f"
13923
13924 # Global variables:
13925 default_ofile=mklib
13926 can_build_shared=yes
13927
13928 # All known linkers require a `.a' archive for static linking (except MSVC,
13929 # which needs '.lib').
13930 libext=a
13931 ltmain="$ac_aux_dir/ltmain.sh"
13932 ofile="$default_ofile"
13933 with_gnu_ld="$lt_cv_prog_gnu_ld"
13934
13935 if test -n "$ac_tool_prefix"; then
13936   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13937 set dummy ${ac_tool_prefix}ar; ac_word=$2
13938 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13940 if test "${ac_cv_prog_AR+set}" = set; then
13941   echo $ECHO_N "(cached) $ECHO_C" >&6
13942 else
13943   if test -n "$AR"; then
13944   ac_cv_prog_AR="$AR" # Let the user override the test.
13945 else
13946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13947 for as_dir in $PATH
13948 do
13949   IFS=$as_save_IFS
13950   test -z "$as_dir" && as_dir=.
13951   for ac_exec_ext in '' $ac_executable_extensions; do
13952   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13953     ac_cv_prog_AR="${ac_tool_prefix}ar"
13954     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13955     break 2
13956   fi
13957 done
13958 done
13959 IFS=$as_save_IFS
13960
13961 fi
13962 fi
13963 AR=$ac_cv_prog_AR
13964 if test -n "$AR"; then
13965   { echo "$as_me:$LINENO: result: $AR" >&5
13966 echo "${ECHO_T}$AR" >&6; }
13967 else
13968   { echo "$as_me:$LINENO: result: no" >&5
13969 echo "${ECHO_T}no" >&6; }
13970 fi
13971
13972
13973 fi
13974 if test -z "$ac_cv_prog_AR"; then
13975   ac_ct_AR=$AR
13976   # Extract the first word of "ar", so it can be a program name with args.
13977 set dummy ar; ac_word=$2
13978 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13980 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13981   echo $ECHO_N "(cached) $ECHO_C" >&6
13982 else
13983   if test -n "$ac_ct_AR"; then
13984   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13985 else
13986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13987 for as_dir in $PATH
13988 do
13989   IFS=$as_save_IFS
13990   test -z "$as_dir" && as_dir=.
13991   for ac_exec_ext in '' $ac_executable_extensions; do
13992   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13993     ac_cv_prog_ac_ct_AR="ar"
13994     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13995     break 2
13996   fi
13997 done
13998 done
13999 IFS=$as_save_IFS
14000
14001 fi
14002 fi
14003 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14004 if test -n "$ac_ct_AR"; then
14005   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14006 echo "${ECHO_T}$ac_ct_AR" >&6; }
14007 else
14008   { echo "$as_me:$LINENO: result: no" >&5
14009 echo "${ECHO_T}no" >&6; }
14010 fi
14011
14012   if test "x$ac_ct_AR" = x; then
14013     AR="false"
14014   else
14015     case $cross_compiling:$ac_tool_warned in
14016 yes:)
14017 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14018 whose name does not start with the host triplet.  If you think this
14019 configuration is useful to you, please write to autoconf@gnu.org." >&5
14020 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14021 whose name does not start with the host triplet.  If you think this
14022 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14023 ac_tool_warned=yes ;;
14024 esac
14025     AR=$ac_ct_AR
14026   fi
14027 else
14028   AR="$ac_cv_prog_AR"
14029 fi
14030
14031 if test -n "$ac_tool_prefix"; then
14032   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14033 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14034 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14036 if test "${ac_cv_prog_RANLIB+set}" = set; then
14037   echo $ECHO_N "(cached) $ECHO_C" >&6
14038 else
14039   if test -n "$RANLIB"; then
14040   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14041 else
14042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14043 for as_dir in $PATH
14044 do
14045   IFS=$as_save_IFS
14046   test -z "$as_dir" && as_dir=.
14047   for ac_exec_ext in '' $ac_executable_extensions; do
14048   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14049     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14050     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14051     break 2
14052   fi
14053 done
14054 done
14055 IFS=$as_save_IFS
14056
14057 fi
14058 fi
14059 RANLIB=$ac_cv_prog_RANLIB
14060 if test -n "$RANLIB"; then
14061   { echo "$as_me:$LINENO: result: $RANLIB" >&5
14062 echo "${ECHO_T}$RANLIB" >&6; }
14063 else
14064   { echo "$as_me:$LINENO: result: no" >&5
14065 echo "${ECHO_T}no" >&6; }
14066 fi
14067
14068
14069 fi
14070 if test -z "$ac_cv_prog_RANLIB"; then
14071   ac_ct_RANLIB=$RANLIB
14072   # Extract the first word of "ranlib", so it can be a program name with args.
14073 set dummy ranlib; ac_word=$2
14074 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14076 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14077   echo $ECHO_N "(cached) $ECHO_C" >&6
14078 else
14079   if test -n "$ac_ct_RANLIB"; then
14080   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14081 else
14082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14083 for as_dir in $PATH
14084 do
14085   IFS=$as_save_IFS
14086   test -z "$as_dir" && as_dir=.
14087   for ac_exec_ext in '' $ac_executable_extensions; do
14088   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14089     ac_cv_prog_ac_ct_RANLIB="ranlib"
14090     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14091     break 2
14092   fi
14093 done
14094 done
14095 IFS=$as_save_IFS
14096
14097 fi
14098 fi
14099 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14100 if test -n "$ac_ct_RANLIB"; then
14101   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14102 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14103 else
14104   { echo "$as_me:$LINENO: result: no" >&5
14105 echo "${ECHO_T}no" >&6; }
14106 fi
14107
14108   if test "x$ac_ct_RANLIB" = x; then
14109     RANLIB=":"
14110   else
14111     case $cross_compiling:$ac_tool_warned in
14112 yes:)
14113 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14114 whose name does not start with the host triplet.  If you think this
14115 configuration is useful to you, please write to autoconf@gnu.org." >&5
14116 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14117 whose name does not start with the host triplet.  If you think this
14118 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14119 ac_tool_warned=yes ;;
14120 esac
14121     RANLIB=$ac_ct_RANLIB
14122   fi
14123 else
14124   RANLIB="$ac_cv_prog_RANLIB"
14125 fi
14126
14127 if test -n "$ac_tool_prefix"; then
14128   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14129 set dummy ${ac_tool_prefix}strip; ac_word=$2
14130 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14132 if test "${ac_cv_prog_STRIP+set}" = set; then
14133   echo $ECHO_N "(cached) $ECHO_C" >&6
14134 else
14135   if test -n "$STRIP"; then
14136   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14137 else
14138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14139 for as_dir in $PATH
14140 do
14141   IFS=$as_save_IFS
14142   test -z "$as_dir" && as_dir=.
14143   for ac_exec_ext in '' $ac_executable_extensions; do
14144   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14145     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14146     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14147     break 2
14148   fi
14149 done
14150 done
14151 IFS=$as_save_IFS
14152
14153 fi
14154 fi
14155 STRIP=$ac_cv_prog_STRIP
14156 if test -n "$STRIP"; then
14157   { echo "$as_me:$LINENO: result: $STRIP" >&5
14158 echo "${ECHO_T}$STRIP" >&6; }
14159 else
14160   { echo "$as_me:$LINENO: result: no" >&5
14161 echo "${ECHO_T}no" >&6; }
14162 fi
14163
14164
14165 fi
14166 if test -z "$ac_cv_prog_STRIP"; then
14167   ac_ct_STRIP=$STRIP
14168   # Extract the first word of "strip", so it can be a program name with args.
14169 set dummy strip; ac_word=$2
14170 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14172 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14173   echo $ECHO_N "(cached) $ECHO_C" >&6
14174 else
14175   if test -n "$ac_ct_STRIP"; then
14176   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14177 else
14178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14179 for as_dir in $PATH
14180 do
14181   IFS=$as_save_IFS
14182   test -z "$as_dir" && as_dir=.
14183   for ac_exec_ext in '' $ac_executable_extensions; do
14184   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14185     ac_cv_prog_ac_ct_STRIP="strip"
14186     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14187     break 2
14188   fi
14189 done
14190 done
14191 IFS=$as_save_IFS
14192
14193 fi
14194 fi
14195 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14196 if test -n "$ac_ct_STRIP"; then
14197   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14198 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14199 else
14200   { echo "$as_me:$LINENO: result: no" >&5
14201 echo "${ECHO_T}no" >&6; }
14202 fi
14203
14204   if test "x$ac_ct_STRIP" = x; then
14205     STRIP=":"
14206   else
14207     case $cross_compiling:$ac_tool_warned in
14208 yes:)
14209 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14210 whose name does not start with the host triplet.  If you think this
14211 configuration is useful to you, please write to autoconf@gnu.org." >&5
14212 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14213 whose name does not start with the host triplet.  If you think this
14214 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14215 ac_tool_warned=yes ;;
14216 esac
14217     STRIP=$ac_ct_STRIP
14218   fi
14219 else
14220   STRIP="$ac_cv_prog_STRIP"
14221 fi
14222
14223
14224 old_CC="$CC"
14225 old_CFLAGS="$CFLAGS"
14226
14227 # Set sane defaults for various variables
14228 test -z "$AR" && AR=ar
14229 test -z "$AR_FLAGS" && AR_FLAGS=cru
14230 test -z "$AS" && AS=as
14231 test -z "$CC" && CC=cc
14232 test -z "$LTCC" && LTCC=$CC
14233 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14234 test -z "$DLLTOOL" && DLLTOOL=dlltool
14235 test -z "$LD" && LD=ld
14236 test -z "$LN_S" && LN_S="ln -s"
14237 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14238 test -z "$NM" && NM=nm
14239 test -z "$SED" && SED=sed
14240 test -z "$OBJDUMP" && OBJDUMP=objdump
14241 test -z "$RANLIB" && RANLIB=:
14242 test -z "$STRIP" && STRIP=:
14243 test -z "$ac_objext" && ac_objext=o
14244
14245 # Determine commands to create old-style static archives.
14246 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14247 old_postinstall_cmds='chmod 644 $oldlib'
14248 old_postuninstall_cmds=
14249
14250 if test -n "$RANLIB"; then
14251   case $host_os in
14252   openbsd*)
14253     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14254     ;;
14255   *)
14256     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14257     ;;
14258   esac
14259   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14260 fi
14261
14262 for cc_temp in $compiler""; do
14263   case $cc_temp in
14264     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14265     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14266     \-*) ;;
14267     *) break;;
14268   esac
14269 done
14270 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14271
14272
14273 # Only perform the check for file, if the check method requires it
14274 case $deplibs_check_method in
14275 file_magic*)
14276   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14277     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14278 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14279 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14280   echo $ECHO_N "(cached) $ECHO_C" >&6
14281 else
14282   case $MAGIC_CMD in
14283 [\\/*] |  ?:[\\/]*)
14284   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14285   ;;
14286 *)
14287   lt_save_MAGIC_CMD="$MAGIC_CMD"
14288   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14289   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14290   for ac_dir in $ac_dummy; do
14291     IFS="$lt_save_ifs"
14292     test -z "$ac_dir" && ac_dir=.
14293     if test -f $ac_dir/${ac_tool_prefix}file; then
14294       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14295       if test -n "$file_magic_test_file"; then
14296         case $deplibs_check_method in
14297         "file_magic "*)
14298           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14299           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14300           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14301             $EGREP "$file_magic_regex" > /dev/null; then
14302             :
14303           else
14304             cat <<EOF 1>&2
14305
14306 *** Warning: the command libtool uses to detect shared libraries,
14307 *** $file_magic_cmd, produces output that libtool cannot recognize.
14308 *** The result is that libtool may fail to recognize shared libraries
14309 *** as such.  This will affect the creation of libtool libraries that
14310 *** depend on shared libraries, but programs linked with such libtool
14311 *** libraries will work regardless of this problem.  Nevertheless, you
14312 *** may want to report the problem to your system manager and/or to
14313 *** bug-libtool@gnu.org
14314
14315 EOF
14316           fi ;;
14317         esac
14318       fi
14319       break
14320     fi
14321   done
14322   IFS="$lt_save_ifs"
14323   MAGIC_CMD="$lt_save_MAGIC_CMD"
14324   ;;
14325 esac
14326 fi
14327
14328 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14329 if test -n "$MAGIC_CMD"; then
14330   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14331 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14332 else
14333   { echo "$as_me:$LINENO: result: no" >&5
14334 echo "${ECHO_T}no" >&6; }
14335 fi
14336
14337 if test -z "$lt_cv_path_MAGIC_CMD"; then
14338   if test -n "$ac_tool_prefix"; then
14339     { echo "$as_me:$LINENO: checking for file" >&5
14340 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14341 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14342   echo $ECHO_N "(cached) $ECHO_C" >&6
14343 else
14344   case $MAGIC_CMD in
14345 [\\/*] |  ?:[\\/]*)
14346   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14347   ;;
14348 *)
14349   lt_save_MAGIC_CMD="$MAGIC_CMD"
14350   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14351   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14352   for ac_dir in $ac_dummy; do
14353     IFS="$lt_save_ifs"
14354     test -z "$ac_dir" && ac_dir=.
14355     if test -f $ac_dir/file; then
14356       lt_cv_path_MAGIC_CMD="$ac_dir/file"
14357       if test -n "$file_magic_test_file"; then
14358         case $deplibs_check_method in
14359         "file_magic "*)
14360           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14361           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14362           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14363             $EGREP "$file_magic_regex" > /dev/null; then
14364             :
14365           else
14366             cat <<EOF 1>&2
14367
14368 *** Warning: the command libtool uses to detect shared libraries,
14369 *** $file_magic_cmd, produces output that libtool cannot recognize.
14370 *** The result is that libtool may fail to recognize shared libraries
14371 *** as such.  This will affect the creation of libtool libraries that
14372 *** depend on shared libraries, but programs linked with such libtool
14373 *** libraries will work regardless of this problem.  Nevertheless, you
14374 *** may want to report the problem to your system manager and/or to
14375 *** bug-libtool@gnu.org
14376
14377 EOF
14378           fi ;;
14379         esac
14380       fi
14381       break
14382     fi
14383   done
14384   IFS="$lt_save_ifs"
14385   MAGIC_CMD="$lt_save_MAGIC_CMD"
14386   ;;
14387 esac
14388 fi
14389
14390 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14391 if test -n "$MAGIC_CMD"; then
14392   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14393 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14394 else
14395   { echo "$as_me:$LINENO: result: no" >&5
14396 echo "${ECHO_T}no" >&6; }
14397 fi
14398
14399   else
14400     MAGIC_CMD=:
14401   fi
14402 fi
14403
14404   fi
14405   ;;
14406 esac
14407
14408 enable_dlopen=yes
14409 enable_win32_dll=no
14410
14411 # Check whether --enable-libtool-lock was given.
14412 if test "${enable_libtool_lock+set}" = set; then
14413   enableval=$enable_libtool_lock;
14414 fi
14415
14416 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14417
14418
14419 # Check whether --with-pic was given.
14420 if test "${with_pic+set}" = set; then
14421   withval=$with_pic; pic_mode="$withval"
14422 else
14423   pic_mode=default
14424 fi
14425
14426 test -z "$pic_mode" && pic_mode=default
14427
14428 # Use C for the default configuration in the libtool script
14429 tagname=
14430 lt_save_CC="$CC"
14431 ac_ext=c
14432 ac_cpp='$CPP $CPPFLAGS'
14433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14436
14437
14438 # Source file extension for C test sources.
14439 ac_ext=c
14440
14441 # Object file extension for compiled C test sources.
14442 objext=o
14443 objext=$objext
14444
14445 # Code to be used in simple compile tests
14446 lt_simple_compile_test_code="int some_variable = 0;\n"
14447
14448 # Code to be used in simple link tests
14449 lt_simple_link_test_code='int main(){return(0);}\n'
14450
14451
14452 # If no C compiler was specified, use CC.
14453 LTCC=${LTCC-"$CC"}
14454
14455 # If no C compiler flags were specified, use CFLAGS.
14456 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14457
14458 # Allow CC to be a program name with arguments.
14459 compiler=$CC
14460
14461
14462 # save warnings/boilerplate of simple test code
14463 ac_outfile=conftest.$ac_objext
14464 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14465 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14466 _lt_compiler_boilerplate=`cat conftest.err`
14467 $rm conftest*
14468
14469 ac_outfile=conftest.$ac_objext
14470 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14471 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14472 _lt_linker_boilerplate=`cat conftest.err`
14473 $rm conftest*
14474
14475
14476
14477 lt_prog_compiler_no_builtin_flag=
14478
14479 if test "$GCC" = yes; then
14480   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14481
14482
14483 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14484 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14485 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14486   echo $ECHO_N "(cached) $ECHO_C" >&6
14487 else
14488   lt_cv_prog_compiler_rtti_exceptions=no
14489   ac_outfile=conftest.$ac_objext
14490    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14491    lt_compiler_flag="-fno-rtti -fno-exceptions"
14492    # Insert the option either (1) after the last *FLAGS variable, or
14493    # (2) before a word containing "conftest.", or (3) at the end.
14494    # Note that $ac_compile itself does not contain backslashes and begins
14495    # with a dollar sign (not a hyphen), so the echo should work correctly.
14496    # The option is referenced via a variable to avoid confusing sed.
14497    lt_compile=`echo "$ac_compile" | $SED \
14498    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14499    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14500    -e 's:$: $lt_compiler_flag:'`
14501    (eval echo "\"\$as_me:14501: $lt_compile\"" >&5)
14502    (eval "$lt_compile" 2>conftest.err)
14503    ac_status=$?
14504    cat conftest.err >&5
14505    echo "$as_me:14505: \$? = $ac_status" >&5
14506    if (exit $ac_status) && test -s "$ac_outfile"; then
14507      # The compiler can only warn and ignore the option if not recognized
14508      # So say no if there are warnings other than the usual output.
14509      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14510      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14511      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14512        lt_cv_prog_compiler_rtti_exceptions=yes
14513      fi
14514    fi
14515    $rm conftest*
14516
14517 fi
14518 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14519 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14520
14521 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14522     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14523 else
14524     :
14525 fi
14526
14527 fi
14528
14529 lt_prog_compiler_wl=
14530 lt_prog_compiler_pic=
14531 lt_prog_compiler_static=
14532
14533 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14534 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14535
14536   if test "$GCC" = yes; then
14537     lt_prog_compiler_wl='-Wl,'
14538     lt_prog_compiler_static='-static'
14539
14540     case $host_os in
14541       aix*)
14542       # All AIX code is PIC.
14543       if test "$host_cpu" = ia64; then
14544         # AIX 5 now supports IA64 processor
14545         lt_prog_compiler_static='-Bstatic'
14546       fi
14547       ;;
14548
14549     amigaos*)
14550       # FIXME: we need at least 68020 code to build shared libraries, but
14551       # adding the `-m68020' flag to GCC prevents building anything better,
14552       # like `-m68040'.
14553       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14554       ;;
14555
14556     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14557       # PIC is the default for these OSes.
14558       ;;
14559
14560     mingw* | pw32* | os2*)
14561       # This hack is so that the source file can tell whether it is being
14562       # built for inclusion in a dll (and should export symbols for example).
14563       lt_prog_compiler_pic='-DDLL_EXPORT'
14564       ;;
14565
14566     darwin* | rhapsody*)
14567       # PIC is the default on this platform
14568       # Common symbols not allowed in MH_DYLIB files
14569       lt_prog_compiler_pic='-fno-common'
14570       ;;
14571
14572     interix3*)
14573       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14574       # Instead, we relocate shared libraries at runtime.
14575       ;;
14576
14577     msdosdjgpp*)
14578       # Just because we use GCC doesn't mean we suddenly get shared libraries
14579       # on systems that don't support them.
14580       lt_prog_compiler_can_build_shared=no
14581       enable_shared=no
14582       ;;
14583
14584     sysv4*MP*)
14585       if test -d /usr/nec; then
14586         lt_prog_compiler_pic=-Kconform_pic
14587       fi
14588       ;;
14589
14590     hpux*)
14591       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14592       # not for PA HP-UX.
14593       case $host_cpu in
14594       hppa*64*|ia64*)
14595         # +Z the default
14596         ;;
14597       *)
14598         lt_prog_compiler_pic='-fPIC'
14599         ;;
14600       esac
14601       ;;
14602
14603     *)
14604       lt_prog_compiler_pic='-fPIC'
14605       ;;
14606     esac
14607   else
14608     # PORTME Check for flag to pass linker flags through the system compiler.
14609     case $host_os in
14610     aix*)
14611       lt_prog_compiler_wl='-Wl,'
14612       if test "$host_cpu" = ia64; then
14613         # AIX 5 now supports IA64 processor
14614         lt_prog_compiler_static='-Bstatic'
14615       else
14616         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14617       fi
14618       ;;
14619       darwin*)
14620         # PIC is the default on this platform
14621         # Common symbols not allowed in MH_DYLIB files
14622        case $cc_basename in
14623          xlc*)
14624          lt_prog_compiler_pic='-qnocommon'
14625          lt_prog_compiler_wl='-Wl,'
14626          ;;
14627        esac
14628        ;;
14629
14630     mingw* | pw32* | os2*)
14631       # This hack is so that the source file can tell whether it is being
14632       # built for inclusion in a dll (and should export symbols for example).
14633       lt_prog_compiler_pic='-DDLL_EXPORT'
14634       ;;
14635
14636     hpux9* | hpux10* | hpux11*)
14637       lt_prog_compiler_wl='-Wl,'
14638       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14639       # not for PA HP-UX.
14640       case $host_cpu in
14641       hppa*64*|ia64*)
14642         # +Z the default
14643         ;;
14644       *)
14645         lt_prog_compiler_pic='+Z'
14646         ;;
14647       esac
14648       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14649       lt_prog_compiler_static='${wl}-a ${wl}archive'
14650       ;;
14651
14652     irix5* | irix6* | nonstopux*)
14653       lt_prog_compiler_wl='-Wl,'
14654       # PIC (with -KPIC) is the default.
14655       lt_prog_compiler_static='-non_shared'
14656       ;;
14657
14658     newsos6)
14659       lt_prog_compiler_pic='-KPIC'
14660       lt_prog_compiler_static='-Bstatic'
14661       ;;
14662
14663     linux*)
14664       case $cc_basename in
14665       icc* | ecc*)
14666         lt_prog_compiler_wl='-Wl,'
14667         lt_prog_compiler_pic='-KPIC'
14668         lt_prog_compiler_static='-static'
14669         ;;
14670       pgcc* | pgf77* | pgf90* | pgf95*)
14671         # Portland Group compilers (*not* the Pentium gcc compiler,
14672         # which looks to be a dead project)
14673         lt_prog_compiler_wl='-Wl,'
14674         lt_prog_compiler_pic='-fpic'
14675         lt_prog_compiler_static='-Bstatic'
14676         ;;
14677       ccc*)
14678         lt_prog_compiler_wl='-Wl,'
14679         # All Alpha code is PIC.
14680         lt_prog_compiler_static='-non_shared'
14681         ;;
14682       esac
14683       ;;
14684
14685     osf3* | osf4* | osf5*)
14686       lt_prog_compiler_wl='-Wl,'
14687       # All OSF/1 code is PIC.
14688       lt_prog_compiler_static='-non_shared'
14689       ;;
14690
14691     solaris*)
14692       lt_prog_compiler_pic='-KPIC'
14693       lt_prog_compiler_static='-Bstatic'
14694       case $cc_basename in
14695       f77* | f90* | f95*)
14696         lt_prog_compiler_wl='-Qoption ld ';;
14697       *)
14698         lt_prog_compiler_wl='-Wl,';;
14699       esac
14700       ;;
14701
14702     sunos4*)
14703       lt_prog_compiler_wl='-Qoption ld '
14704       lt_prog_compiler_pic='-PIC'
14705       lt_prog_compiler_static='-Bstatic'
14706       ;;
14707
14708     sysv4 | sysv4.2uw2* | sysv4.3*)
14709       lt_prog_compiler_wl='-Wl,'
14710       lt_prog_compiler_pic='-KPIC'
14711       lt_prog_compiler_static='-Bstatic'
14712       ;;
14713
14714     sysv4*MP*)
14715       if test -d /usr/nec ;then
14716         lt_prog_compiler_pic='-Kconform_pic'
14717         lt_prog_compiler_static='-Bstatic'
14718       fi
14719       ;;
14720
14721     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14722       lt_prog_compiler_wl='-Wl,'
14723       lt_prog_compiler_pic='-KPIC'
14724       lt_prog_compiler_static='-Bstatic'
14725       ;;
14726
14727     unicos*)
14728       lt_prog_compiler_wl='-Wl,'
14729       lt_prog_compiler_can_build_shared=no
14730       ;;
14731
14732     uts4*)
14733       lt_prog_compiler_pic='-pic'
14734       lt_prog_compiler_static='-Bstatic'
14735       ;;
14736
14737     *)
14738       lt_prog_compiler_can_build_shared=no
14739       ;;
14740     esac
14741   fi
14742
14743 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14744 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14745
14746 #
14747 # Check to make sure the PIC flag actually works.
14748 #
14749 if test -n "$lt_prog_compiler_pic"; then
14750
14751 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14752 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
14753 if test "${lt_prog_compiler_pic_works+set}" = set; then
14754   echo $ECHO_N "(cached) $ECHO_C" >&6
14755 else
14756   lt_prog_compiler_pic_works=no
14757   ac_outfile=conftest.$ac_objext
14758    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14759    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14760    # Insert the option either (1) after the last *FLAGS variable, or
14761    # (2) before a word containing "conftest.", or (3) at the end.
14762    # Note that $ac_compile itself does not contain backslashes and begins
14763    # with a dollar sign (not a hyphen), so the echo should work correctly.
14764    # The option is referenced via a variable to avoid confusing sed.
14765    lt_compile=`echo "$ac_compile" | $SED \
14766    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14767    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14768    -e 's:$: $lt_compiler_flag:'`
14769    (eval echo "\"\$as_me:14769: $lt_compile\"" >&5)
14770    (eval "$lt_compile" 2>conftest.err)
14771    ac_status=$?
14772    cat conftest.err >&5
14773    echo "$as_me:14773: \$? = $ac_status" >&5
14774    if (exit $ac_status) && test -s "$ac_outfile"; then
14775      # The compiler can only warn and ignore the option if not recognized
14776      # So say no if there are warnings other than the usual output.
14777      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14778      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14779      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14780        lt_prog_compiler_pic_works=yes
14781      fi
14782    fi
14783    $rm conftest*
14784
14785 fi
14786 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14787 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
14788
14789 if test x"$lt_prog_compiler_pic_works" = xyes; then
14790     case $lt_prog_compiler_pic in
14791      "" | " "*) ;;
14792      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14793      esac
14794 else
14795     lt_prog_compiler_pic=
14796      lt_prog_compiler_can_build_shared=no
14797 fi
14798
14799 fi
14800 case $host_os in
14801   # For platforms which do not support PIC, -DPIC is meaningless:
14802   *djgpp*)
14803     lt_prog_compiler_pic=
14804     ;;
14805   *)
14806     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14807     ;;
14808 esac
14809
14810 #
14811 # Check to make sure the static flag actually works.
14812 #
14813 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14814 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14815 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14816 if test "${lt_prog_compiler_static_works+set}" = set; then
14817   echo $ECHO_N "(cached) $ECHO_C" >&6
14818 else
14819   lt_prog_compiler_static_works=no
14820    save_LDFLAGS="$LDFLAGS"
14821    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14822    printf "$lt_simple_link_test_code" > conftest.$ac_ext
14823    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14824      # The linker can only warn and ignore the option if not recognized
14825      # So say no if there are warnings
14826      if test -s conftest.err; then
14827        # Append any errors to the config.log.
14828        cat conftest.err 1>&5
14829        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14830        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14831        if diff conftest.exp conftest.er2 >/dev/null; then
14832          lt_prog_compiler_static_works=yes
14833        fi
14834      else
14835        lt_prog_compiler_static_works=yes
14836      fi
14837    fi
14838    $rm conftest*
14839    LDFLAGS="$save_LDFLAGS"
14840
14841 fi
14842 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14843 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14844
14845 if test x"$lt_prog_compiler_static_works" = xyes; then
14846     :
14847 else
14848     lt_prog_compiler_static=
14849 fi
14850
14851
14852 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14853 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14854 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14855   echo $ECHO_N "(cached) $ECHO_C" >&6
14856 else
14857   lt_cv_prog_compiler_c_o=no
14858    $rm -r conftest 2>/dev/null
14859    mkdir conftest
14860    cd conftest
14861    mkdir out
14862    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14863
14864    lt_compiler_flag="-o out/conftest2.$ac_objext"
14865    # Insert the option either (1) after the last *FLAGS variable, or
14866    # (2) before a word containing "conftest.", or (3) at the end.
14867    # Note that $ac_compile itself does not contain backslashes and begins
14868    # with a dollar sign (not a hyphen), so the echo should work correctly.
14869    lt_compile=`echo "$ac_compile" | $SED \
14870    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14871    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14872    -e 's:$: $lt_compiler_flag:'`
14873    (eval echo "\"\$as_me:14873: $lt_compile\"" >&5)
14874    (eval "$lt_compile" 2>out/conftest.err)
14875    ac_status=$?
14876    cat out/conftest.err >&5
14877    echo "$as_me:14877: \$? = $ac_status" >&5
14878    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14879    then
14880      # The compiler can only warn and ignore the option if not recognized
14881      # So say no if there are warnings
14882      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14883      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14884      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14885        lt_cv_prog_compiler_c_o=yes
14886      fi
14887    fi
14888    chmod u+w . 2>&5
14889    $rm conftest*
14890    # SGI C++ compiler will create directory out/ii_files/ for
14891    # template instantiation
14892    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14893    $rm out/* && rmdir out
14894    cd ..
14895    rmdir conftest
14896    $rm conftest*
14897
14898 fi
14899 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14900 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
14901
14902
14903 hard_links="nottested"
14904 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14905   # do not overwrite the value of need_locks provided by the user
14906   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14907 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14908   hard_links=yes
14909   $rm conftest*
14910   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14911   touch conftest.a
14912   ln conftest.a conftest.b 2>&5 || hard_links=no
14913   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14914   { echo "$as_me:$LINENO: result: $hard_links" >&5
14915 echo "${ECHO_T}$hard_links" >&6; }
14916   if test "$hard_links" = no; then
14917     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14918 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14919     need_locks=warn
14920   fi
14921 else
14922   need_locks=no
14923 fi
14924
14925 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14926 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14927
14928   runpath_var=
14929   allow_undefined_flag=
14930   enable_shared_with_static_runtimes=no
14931   archive_cmds=
14932   archive_expsym_cmds=
14933   old_archive_From_new_cmds=
14934   old_archive_from_expsyms_cmds=
14935   export_dynamic_flag_spec=
14936   whole_archive_flag_spec=
14937   thread_safe_flag_spec=
14938   hardcode_libdir_flag_spec=
14939   hardcode_libdir_flag_spec_ld=
14940   hardcode_libdir_separator=
14941   hardcode_direct=no
14942   hardcode_minus_L=no
14943   hardcode_shlibpath_var=unsupported
14944   link_all_deplibs=unknown
14945   hardcode_automatic=no
14946   module_cmds=
14947   module_expsym_cmds=
14948   always_export_symbols=no
14949   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14950   # include_expsyms should be a list of space-separated symbols to be *always*
14951   # included in the symbol list
14952   include_expsyms=
14953   # exclude_expsyms can be an extended regexp of symbols to exclude
14954   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14955   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14956   # as well as any symbol that contains `d'.
14957   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14958   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14959   # platforms (ab)use it in PIC code, but their linkers get confused if
14960   # the symbol is explicitly referenced.  Since portable code cannot
14961   # rely on this symbol name, it's probably fine to never include it in
14962   # preloaded symbol tables.
14963   extract_expsyms_cmds=
14964   # Just being paranoid about ensuring that cc_basename is set.
14965   for cc_temp in $compiler""; do
14966   case $cc_temp in
14967     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14968     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14969     \-*) ;;
14970     *) break;;
14971   esac
14972 done
14973 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14974
14975   case $host_os in
14976   cygwin* | mingw* | pw32*)
14977     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14978     # When not using gcc, we currently assume that we are using
14979     # Microsoft Visual C++.
14980     if test "$GCC" != yes; then
14981       with_gnu_ld=no
14982     fi
14983     ;;
14984   interix*)
14985     # we just hope/assume this is gcc and not c89 (= MSVC++)
14986     with_gnu_ld=yes
14987     ;;
14988   openbsd*)
14989     with_gnu_ld=no
14990     ;;
14991   esac
14992
14993   ld_shlibs=yes
14994   if test "$with_gnu_ld" = yes; then
14995     # If archive_cmds runs LD, not CC, wlarc should be empty
14996     wlarc='${wl}'
14997
14998     # Set some defaults for GNU ld with shared library support. These
14999     # are reset later if shared libraries are not supported. Putting them
15000     # here allows them to be overridden if necessary.
15001     runpath_var=LD_RUN_PATH
15002     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15003     export_dynamic_flag_spec='${wl}--export-dynamic'
15004     # ancient GNU ld didn't support --whole-archive et. al.
15005     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15006         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15007       else
15008         whole_archive_flag_spec=
15009     fi
15010     supports_anon_versioning=no
15011     case `$LD -v 2>/dev/null` in
15012       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15013       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15014       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15015       *\ 2.11.*) ;; # other 2.11 versions
15016       *) supports_anon_versioning=yes ;;
15017     esac
15018
15019     # See if GNU ld supports shared libraries.
15020     case $host_os in
15021     aix3* | aix4* | aix5*)
15022       # On AIX/PPC, the GNU linker is very broken
15023       if test "$host_cpu" != ia64; then
15024         ld_shlibs=no
15025         cat <<EOF 1>&2
15026
15027 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15028 *** to be unable to reliably create shared libraries on AIX.
15029 *** Therefore, libtool is disabling shared libraries support.  If you
15030 *** really care for shared libraries, you may want to modify your PATH
15031 *** so that a non-GNU linker is found, and then restart.
15032
15033 EOF
15034       fi
15035       ;;
15036
15037     amigaos*)
15038       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)'
15039       hardcode_libdir_flag_spec='-L$libdir'
15040       hardcode_minus_L=yes
15041
15042       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15043       # that the semantics of dynamic libraries on AmigaOS, at least up
15044       # to version 4, is to share data among multiple programs linked
15045       # with the same dynamic library.  Since this doesn't match the
15046       # behavior of shared libraries on other platforms, we can't use
15047       # them.
15048       ld_shlibs=no
15049       ;;
15050
15051     beos*)
15052       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15053         allow_undefined_flag=unsupported
15054         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15055         # support --undefined.  This deserves some investigation.  FIXME
15056         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15057       else
15058         ld_shlibs=no
15059       fi
15060       ;;
15061
15062     cygwin* | mingw* | pw32*)
15063       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15064       # as there is no search path for DLLs.
15065       hardcode_libdir_flag_spec='-L$libdir'
15066       allow_undefined_flag=unsupported
15067       always_export_symbols=no
15068       enable_shared_with_static_runtimes=yes
15069       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15070
15071       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15072         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15073         # If the export-symbols file already is a .def file (1st line
15074         # is EXPORTS), use it as is; otherwise, prepend...
15075         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15076           cp $export_symbols $output_objdir/$soname.def;
15077         else
15078           echo EXPORTS > $output_objdir/$soname.def;
15079           cat $export_symbols >> $output_objdir/$soname.def;
15080         fi~
15081         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15082       else
15083         ld_shlibs=no
15084       fi
15085       ;;
15086
15087     interix3*)
15088       hardcode_direct=no
15089       hardcode_shlibpath_var=no
15090       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15091       export_dynamic_flag_spec='${wl}-E'
15092       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15093       # Instead, shared libraries are loaded at an image base (0x10000000 by
15094       # default) and relocated if they conflict, which is a slow very memory
15095       # consuming and fragmenting process.  To avoid this, we pick a random,
15096       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15097       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15098       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15099       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'
15100       ;;
15101
15102     linux*)
15103       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15104         tmp_addflag=
15105         case $cc_basename,$host_cpu in
15106         pgcc*)                          # Portland Group C compiler
15107           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'
15108           tmp_addflag=' $pic_flag'
15109           ;;
15110         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
15111           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'
15112           tmp_addflag=' $pic_flag -Mnomain' ;;
15113         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
15114           tmp_addflag=' -i_dynamic' ;;
15115         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15116           tmp_addflag=' -i_dynamic -nofor_main' ;;
15117         ifc* | ifort*)                  # Intel Fortran compiler
15118           tmp_addflag=' -nofor_main' ;;
15119         esac
15120         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15121
15122         if test $supports_anon_versioning = yes; then
15123           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15124   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15125   $echo "local: *; };" >> $output_objdir/$libname.ver~
15126           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15127         fi
15128       else
15129         ld_shlibs=no
15130       fi
15131       ;;
15132
15133     netbsd*)
15134       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15135         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15136         wlarc=
15137       else
15138         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15139         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15140       fi
15141       ;;
15142
15143     solaris*)
15144       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15145         ld_shlibs=no
15146         cat <<EOF 1>&2
15147
15148 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15149 *** create shared libraries on Solaris systems.  Therefore, libtool
15150 *** is disabling shared libraries support.  We urge you to upgrade GNU
15151 *** binutils to release 2.9.1 or newer.  Another option is to modify
15152 *** your PATH or compiler configuration so that the native linker is
15153 *** used, and then restart.
15154
15155 EOF
15156       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15157         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15158         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15159       else
15160         ld_shlibs=no
15161       fi
15162       ;;
15163
15164     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15165       case `$LD -v 2>&1` in
15166         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15167         ld_shlibs=no
15168         cat <<_LT_EOF 1>&2
15169
15170 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15171 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15172 *** is disabling shared libraries support.  We urge you to upgrade GNU
15173 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15174 *** your PATH or compiler configuration so that the native linker is
15175 *** used, and then restart.
15176
15177 _LT_EOF
15178         ;;
15179         *)
15180           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15181             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15182             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15183             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15184           else
15185             ld_shlibs=no
15186           fi
15187         ;;
15188       esac
15189       ;;
15190
15191     sunos4*)
15192       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15193       wlarc=
15194       hardcode_direct=yes
15195       hardcode_shlibpath_var=no
15196       ;;
15197
15198     *)
15199       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15200         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15201         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15202       else
15203         ld_shlibs=no
15204       fi
15205       ;;
15206     esac
15207
15208     if test "$ld_shlibs" = no; then
15209       runpath_var=
15210       hardcode_libdir_flag_spec=
15211       export_dynamic_flag_spec=
15212       whole_archive_flag_spec=
15213     fi
15214   else
15215     # PORTME fill in a description of your system's linker (not GNU ld)
15216     case $host_os in
15217     aix3*)
15218       allow_undefined_flag=unsupported
15219       always_export_symbols=yes
15220       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'
15221       # Note: this linker hardcodes the directories in LIBPATH if there
15222       # are no directories specified by -L.
15223       hardcode_minus_L=yes
15224       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15225         # Neither direct hardcoding nor static linking is supported with a
15226         # broken collect2.
15227         hardcode_direct=unsupported
15228       fi
15229       ;;
15230
15231     aix4* | aix5*)
15232       if test "$host_cpu" = ia64; then
15233         # On IA64, the linker does run time linking by default, so we don't
15234         # have to do anything special.
15235         aix_use_runtimelinking=no
15236         exp_sym_flag='-Bexport'
15237         no_entry_flag=""
15238       else
15239         # If we're using GNU nm, then we don't want the "-C" option.
15240         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15241         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15242           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'
15243         else
15244           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'
15245         fi
15246         aix_use_runtimelinking=no
15247
15248         # Test if we are trying to use run time linking or normal
15249         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15250         # need to do runtime linking.
15251         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15252           for ld_flag in $LDFLAGS; do
15253           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15254             aix_use_runtimelinking=yes
15255             break
15256           fi
15257           done
15258           ;;
15259         esac
15260
15261         exp_sym_flag='-bexport'
15262         no_entry_flag='-bnoentry'
15263       fi
15264
15265       # When large executables or shared objects are built, AIX ld can
15266       # have problems creating the table of contents.  If linking a library
15267       # or program results in "error TOC overflow" add -mminimal-toc to
15268       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15269       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15270
15271       archive_cmds=''
15272       hardcode_direct=yes
15273       hardcode_libdir_separator=':'
15274       link_all_deplibs=yes
15275
15276       if test "$GCC" = yes; then
15277         case $host_os in aix4.[012]|aix4.[012].*)
15278         # We only want to do this on AIX 4.2 and lower, the check
15279         # below for broken collect2 doesn't work under 4.3+
15280           collect2name=`${CC} -print-prog-name=collect2`
15281           if test -f "$collect2name" && \
15282            strings "$collect2name" | grep resolve_lib_name >/dev/null
15283           then
15284           # We have reworked collect2
15285           hardcode_direct=yes
15286           else
15287           # We have old collect2
15288           hardcode_direct=unsupported
15289           # It fails to find uninstalled libraries when the uninstalled
15290           # path is not listed in the libpath.  Setting hardcode_minus_L
15291           # to unsupported forces relinking
15292           hardcode_minus_L=yes
15293           hardcode_libdir_flag_spec='-L$libdir'
15294           hardcode_libdir_separator=
15295           fi
15296           ;;
15297         esac
15298         shared_flag='-shared'
15299         if test "$aix_use_runtimelinking" = yes; then
15300           shared_flag="$shared_flag "'${wl}-G'
15301         fi
15302       else
15303         # not using gcc
15304         if test "$host_cpu" = ia64; then
15305         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15306         # chokes on -Wl,-G. The following line is correct:
15307           shared_flag='-G'
15308         else
15309           if test "$aix_use_runtimelinking" = yes; then
15310             shared_flag='${wl}-G'
15311           else
15312             shared_flag='${wl}-bM:SRE'
15313           fi
15314         fi
15315       fi
15316
15317       # It seems that -bexpall does not export symbols beginning with
15318       # underscore (_), so it is better to generate a list of symbols to export.
15319       always_export_symbols=yes
15320       if test "$aix_use_runtimelinking" = yes; then
15321         # Warning - without using the other runtime loading flags (-brtl),
15322         # -berok will link without error, but may produce a broken library.
15323         allow_undefined_flag='-berok'
15324        # Determine the default libpath from the value encoded in an empty executable.
15325        cat >conftest.$ac_ext <<_ACEOF
15326 /* confdefs.h.  */
15327 _ACEOF
15328 cat confdefs.h >>conftest.$ac_ext
15329 cat >>conftest.$ac_ext <<_ACEOF
15330 /* end confdefs.h.  */
15331
15332 int
15333 main ()
15334 {
15335
15336   ;
15337   return 0;
15338 }
15339 _ACEOF
15340 rm -f conftest.$ac_objext conftest$ac_exeext
15341 if { (ac_try="$ac_link"
15342 case "(($ac_try" in
15343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15344   *) ac_try_echo=$ac_try;;
15345 esac
15346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15347   (eval "$ac_link") 2>conftest.er1
15348   ac_status=$?
15349   grep -v '^ *+' conftest.er1 >conftest.err
15350   rm -f conftest.er1
15351   cat conftest.err >&5
15352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15353   (exit $ac_status); } &&
15354          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15355   { (case "(($ac_try" in
15356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15357   *) ac_try_echo=$ac_try;;
15358 esac
15359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15360   (eval "$ac_try") 2>&5
15361   ac_status=$?
15362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15363   (exit $ac_status); }; } &&
15364          { ac_try='test -s conftest$ac_exeext'
15365   { (case "(($ac_try" in
15366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15367   *) ac_try_echo=$ac_try;;
15368 esac
15369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15370   (eval "$ac_try") 2>&5
15371   ac_status=$?
15372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15373   (exit $ac_status); }; }; then
15374
15375 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15376 }'`
15377 # Check for a 64-bit object if we didn't find anything.
15378 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; }
15379 }'`; fi
15380 else
15381   echo "$as_me: failed program was:" >&5
15382 sed 's/^/| /' conftest.$ac_ext >&5
15383
15384
15385 fi
15386
15387 rm -f core conftest.err conftest.$ac_objext \
15388       conftest$ac_exeext conftest.$ac_ext
15389 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15390
15391        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15392         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"
15393        else
15394         if test "$host_cpu" = ia64; then
15395           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15396           allow_undefined_flag="-z nodefs"
15397           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"
15398         else
15399          # Determine the default libpath from the value encoded in an empty executable.
15400          cat >conftest.$ac_ext <<_ACEOF
15401 /* confdefs.h.  */
15402 _ACEOF
15403 cat confdefs.h >>conftest.$ac_ext
15404 cat >>conftest.$ac_ext <<_ACEOF
15405 /* end confdefs.h.  */
15406
15407 int
15408 main ()
15409 {
15410
15411   ;
15412   return 0;
15413 }
15414 _ACEOF
15415 rm -f conftest.$ac_objext conftest$ac_exeext
15416 if { (ac_try="$ac_link"
15417 case "(($ac_try" in
15418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15419   *) ac_try_echo=$ac_try;;
15420 esac
15421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15422   (eval "$ac_link") 2>conftest.er1
15423   ac_status=$?
15424   grep -v '^ *+' conftest.er1 >conftest.err
15425   rm -f conftest.er1
15426   cat conftest.err >&5
15427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15428   (exit $ac_status); } &&
15429          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15430   { (case "(($ac_try" in
15431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15432   *) ac_try_echo=$ac_try;;
15433 esac
15434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15435   (eval "$ac_try") 2>&5
15436   ac_status=$?
15437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15438   (exit $ac_status); }; } &&
15439          { ac_try='test -s conftest$ac_exeext'
15440   { (case "(($ac_try" in
15441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15442   *) ac_try_echo=$ac_try;;
15443 esac
15444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15445   (eval "$ac_try") 2>&5
15446   ac_status=$?
15447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15448   (exit $ac_status); }; }; then
15449
15450 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15451 }'`
15452 # Check for a 64-bit object if we didn't find anything.
15453 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; }
15454 }'`; fi
15455 else
15456   echo "$as_me: failed program was:" >&5
15457 sed 's/^/| /' conftest.$ac_ext >&5
15458
15459
15460 fi
15461
15462 rm -f core conftest.err conftest.$ac_objext \
15463       conftest$ac_exeext conftest.$ac_ext
15464 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15465
15466          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15467           # Warning - without using the other run time loading flags,
15468           # -berok will link without error, but may produce a broken library.
15469           no_undefined_flag=' ${wl}-bernotok'
15470           allow_undefined_flag=' ${wl}-berok'
15471           # Exported symbols can be pulled into shared objects from archives
15472           whole_archive_flag_spec='$convenience'
15473           archive_cmds_need_lc=yes
15474           # This is similar to how AIX traditionally builds its shared libraries.
15475           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'
15476         fi
15477       fi
15478       ;;
15479
15480     amigaos*)
15481       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)'
15482       hardcode_libdir_flag_spec='-L$libdir'
15483       hardcode_minus_L=yes
15484       # see comment about different semantics on the GNU ld section
15485       ld_shlibs=no
15486       ;;
15487
15488     bsdi[45]*)
15489       export_dynamic_flag_spec=-rdynamic
15490       ;;
15491
15492     cygwin* | mingw* | pw32*)
15493       # When not using gcc, we currently assume that we are using
15494       # Microsoft Visual C++.
15495       # hardcode_libdir_flag_spec is actually meaningless, as there is
15496       # no search path for DLLs.
15497       hardcode_libdir_flag_spec=' '
15498       allow_undefined_flag=unsupported
15499       # Tell ltmain to make .lib files, not .a files.
15500       libext=lib
15501       # Tell ltmain to make .dll files, not .so files.
15502       shrext_cmds=".dll"
15503       # FIXME: Setting linknames here is a bad hack.
15504       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15505       # The linker will automatically build a .lib file if we build a DLL.
15506       old_archive_From_new_cmds='true'
15507       # FIXME: Should let the user specify the lib program.
15508       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15509       fix_srcfile_path='`cygpath -w "$srcfile"`'
15510       enable_shared_with_static_runtimes=yes
15511       ;;
15512
15513     darwin* | rhapsody*)
15514       case $host_os in
15515         rhapsody* | darwin1.[012])
15516          allow_undefined_flag='${wl}-undefined ${wl}suppress'
15517          ;;
15518        *) # Darwin 1.3 on
15519          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15520            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15521          else
15522            case ${MACOSX_DEPLOYMENT_TARGET} in
15523              10.[012])
15524                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15525                ;;
15526              10.*)
15527                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15528                ;;
15529            esac
15530          fi
15531          ;;
15532       esac
15533       archive_cmds_need_lc=no
15534       hardcode_direct=no
15535       hardcode_automatic=yes
15536       hardcode_shlibpath_var=unsupported
15537       whole_archive_flag_spec=''
15538       link_all_deplibs=yes
15539     if test "$GCC" = yes ; then
15540         output_verbose_link_cmd='echo'
15541         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15542       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15543       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15544       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}'
15545       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}'
15546     else
15547       case $cc_basename in
15548         xlc*)
15549          output_verbose_link_cmd='echo'
15550          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15551          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15552           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15553          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}'
15554           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}'
15555           ;;
15556        *)
15557          ld_shlibs=no
15558           ;;
15559       esac
15560     fi
15561       ;;
15562
15563     dgux*)
15564       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15565       hardcode_libdir_flag_spec='-L$libdir'
15566       hardcode_shlibpath_var=no
15567       ;;
15568
15569     freebsd1*)
15570       ld_shlibs=no
15571       ;;
15572
15573     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15574     # support.  Future versions do this automatically, but an explicit c++rt0.o
15575     # does not break anything, and helps significantly (at the cost of a little
15576     # extra space).
15577     freebsd2.2*)
15578       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15579       hardcode_libdir_flag_spec='-R$libdir'
15580       hardcode_direct=yes
15581       hardcode_shlibpath_var=no
15582       ;;
15583
15584     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15585     freebsd2*)
15586       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15587       hardcode_direct=yes
15588       hardcode_minus_L=yes
15589       hardcode_shlibpath_var=no
15590       ;;
15591
15592     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15593     freebsd* | kfreebsd*-gnu | dragonfly*)
15594       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15595       hardcode_libdir_flag_spec='-R$libdir'
15596       hardcode_direct=yes
15597       hardcode_shlibpath_var=no
15598       ;;
15599
15600     hpux9*)
15601       if test "$GCC" = yes; then
15602         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'
15603       else
15604         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'
15605       fi
15606       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15607       hardcode_libdir_separator=:
15608       hardcode_direct=yes
15609
15610       # hardcode_minus_L: Not really in the search PATH,
15611       # but as the default location of the library.
15612       hardcode_minus_L=yes
15613       export_dynamic_flag_spec='${wl}-E'
15614       ;;
15615
15616     hpux10*)
15617       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15618         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15619       else
15620         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15621       fi
15622       if test "$with_gnu_ld" = no; then
15623         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15624         hardcode_libdir_separator=:
15625
15626         hardcode_direct=yes
15627         export_dynamic_flag_spec='${wl}-E'
15628
15629         # hardcode_minus_L: Not really in the search PATH,
15630         # but as the default location of the library.
15631         hardcode_minus_L=yes
15632       fi
15633       ;;
15634
15635     hpux11*)
15636       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15637         case $host_cpu in
15638         hppa*64*)
15639           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15640           ;;
15641         ia64*)
15642           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15643           ;;
15644         *)
15645           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15646           ;;
15647         esac
15648       else
15649         case $host_cpu in
15650         hppa*64*)
15651           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15652           ;;
15653         ia64*)
15654           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15655           ;;
15656         *)
15657           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15658           ;;
15659         esac
15660       fi
15661       if test "$with_gnu_ld" = no; then
15662         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15663         hardcode_libdir_separator=:
15664
15665         case $host_cpu in
15666         hppa*64*|ia64*)
15667           hardcode_libdir_flag_spec_ld='+b $libdir'
15668           hardcode_direct=no
15669           hardcode_shlibpath_var=no
15670           ;;
15671         *)
15672           hardcode_direct=yes
15673           export_dynamic_flag_spec='${wl}-E'
15674
15675           # hardcode_minus_L: Not really in the search PATH,
15676           # but as the default location of the library.
15677           hardcode_minus_L=yes
15678           ;;
15679         esac
15680       fi
15681       ;;
15682
15683     irix5* | irix6* | nonstopux*)
15684       if test "$GCC" = yes; then
15685         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'
15686       else
15687         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'
15688         hardcode_libdir_flag_spec_ld='-rpath $libdir'
15689       fi
15690       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15691       hardcode_libdir_separator=:
15692       link_all_deplibs=yes
15693       ;;
15694
15695     netbsd*)
15696       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15697         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15698       else
15699         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15700       fi
15701       hardcode_libdir_flag_spec='-R$libdir'
15702       hardcode_direct=yes
15703       hardcode_shlibpath_var=no
15704       ;;
15705
15706     newsos6)
15707       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15708       hardcode_direct=yes
15709       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15710       hardcode_libdir_separator=:
15711       hardcode_shlibpath_var=no
15712       ;;
15713
15714     openbsd*)
15715       hardcode_direct=yes
15716       hardcode_shlibpath_var=no
15717       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15718         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15719         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15720         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15721         export_dynamic_flag_spec='${wl}-E'
15722       else
15723        case $host_os in
15724          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15725            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15726            hardcode_libdir_flag_spec='-R$libdir'
15727            ;;
15728          *)
15729            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15730            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15731            ;;
15732        esac
15733       fi
15734       ;;
15735
15736     os2*)
15737       hardcode_libdir_flag_spec='-L$libdir'
15738       hardcode_minus_L=yes
15739       allow_undefined_flag=unsupported
15740       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'
15741       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15742       ;;
15743
15744     osf3*)
15745       if test "$GCC" = yes; then
15746         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15747         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'
15748       else
15749         allow_undefined_flag=' -expect_unresolved \*'
15750         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'
15751       fi
15752       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15753       hardcode_libdir_separator=:
15754       ;;
15755
15756     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15757       if test "$GCC" = yes; then
15758         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15759         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'
15760         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15761       else
15762         allow_undefined_flag=' -expect_unresolved \*'
15763         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'
15764         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15765         $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'
15766
15767         # Both c and cxx compiler support -rpath directly
15768         hardcode_libdir_flag_spec='-rpath $libdir'
15769       fi
15770       hardcode_libdir_separator=:
15771       ;;
15772
15773     solaris*)
15774       no_undefined_flag=' -z text'
15775       if test "$GCC" = yes; then
15776         wlarc='${wl}'
15777         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15778         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15779           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15780       else
15781         wlarc=''
15782         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15783         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15784         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15785       fi
15786       hardcode_libdir_flag_spec='-R$libdir'
15787       hardcode_shlibpath_var=no
15788       case $host_os in
15789       solaris2.[0-5] | solaris2.[0-5].*) ;;
15790       *)
15791         # The compiler driver will combine linker options so we
15792         # cannot just pass the convience library names through
15793         # without $wl, iff we do not link with $LD.
15794         # Luckily, gcc supports the same syntax we need for Sun Studio.
15795         # Supported since Solaris 2.6 (maybe 2.5.1?)
15796         case $wlarc in
15797         '')
15798           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15799         *)
15800           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' ;;
15801         esac ;;
15802       esac
15803       link_all_deplibs=yes
15804       ;;
15805
15806     sunos4*)
15807       if test "x$host_vendor" = xsequent; then
15808         # Use $CC to link under sequent, because it throws in some extra .o
15809         # files that make .init and .fini sections work.
15810         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15811       else
15812         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15813       fi
15814       hardcode_libdir_flag_spec='-L$libdir'
15815       hardcode_direct=yes
15816       hardcode_minus_L=yes
15817       hardcode_shlibpath_var=no
15818       ;;
15819
15820     sysv4)
15821       case $host_vendor in
15822         sni)
15823           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15824           hardcode_direct=yes # is this really true???
15825         ;;
15826         siemens)
15827           ## LD is ld it makes a PLAMLIB
15828           ## CC just makes a GrossModule.
15829           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15830           reload_cmds='$CC -r -o $output$reload_objs'
15831           hardcode_direct=no
15832         ;;
15833         motorola)
15834           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15835           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15836         ;;
15837       esac
15838       runpath_var='LD_RUN_PATH'
15839       hardcode_shlibpath_var=no
15840       ;;
15841
15842     sysv4.3*)
15843       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15844       hardcode_shlibpath_var=no
15845       export_dynamic_flag_spec='-Bexport'
15846       ;;
15847
15848     sysv4*MP*)
15849       if test -d /usr/nec; then
15850         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15851         hardcode_shlibpath_var=no
15852         runpath_var=LD_RUN_PATH
15853         hardcode_runpath_var=yes
15854         ld_shlibs=yes
15855       fi
15856       ;;
15857
15858     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15859       no_undefined_flag='${wl}-z,text'
15860       archive_cmds_need_lc=no
15861       hardcode_shlibpath_var=no
15862       runpath_var='LD_RUN_PATH'
15863
15864       if test "$GCC" = yes; then
15865         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15866         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15867       else
15868         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15869         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15870       fi
15871       ;;
15872
15873     sysv5* | sco3.2v5* | sco5v6*)
15874       # Note: We can NOT use -z defs as we might desire, because we do not
15875       # link with -lc, and that would cause any symbols used from libc to
15876       # always be unresolved, which means just about no library would
15877       # ever link correctly.  If we're not using GNU ld we use -z text
15878       # though, which does catch some bad symbols but isn't as heavy-handed
15879       # as -z defs.
15880       no_undefined_flag='${wl}-z,text'
15881       allow_undefined_flag='${wl}-z,nodefs'
15882       archive_cmds_need_lc=no
15883       hardcode_shlibpath_var=no
15884       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15885       hardcode_libdir_separator=':'
15886       link_all_deplibs=yes
15887       export_dynamic_flag_spec='${wl}-Bexport'
15888       runpath_var='LD_RUN_PATH'
15889
15890       if test "$GCC" = yes; then
15891         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15892         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15893       else
15894         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15895         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15896       fi
15897       ;;
15898
15899     uts4*)
15900       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15901       hardcode_libdir_flag_spec='-L$libdir'
15902       hardcode_shlibpath_var=no
15903       ;;
15904
15905     *)
15906       ld_shlibs=no
15907       ;;
15908     esac
15909   fi
15910
15911 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15912 echo "${ECHO_T}$ld_shlibs" >&6; }
15913 test "$ld_shlibs" = no && can_build_shared=no
15914
15915 #
15916 # Do we need to explicitly link libc?
15917 #
15918 case "x$archive_cmds_need_lc" in
15919 x|xyes)
15920   # Assume -lc should be added
15921   archive_cmds_need_lc=yes
15922
15923   if test "$enable_shared" = yes && test "$GCC" = yes; then
15924     case $archive_cmds in
15925     *'~'*)
15926       # FIXME: we may have to deal with multi-command sequences.
15927       ;;
15928     '$CC '*)
15929       # Test whether the compiler implicitly links with -lc since on some
15930       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15931       # to ld, don't add -lc before -lgcc.
15932       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15933 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15934       $rm conftest*
15935       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15936
15937       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15938   (eval $ac_compile) 2>&5
15939   ac_status=$?
15940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15941   (exit $ac_status); } 2>conftest.err; then
15942         soname=conftest
15943         lib=conftest
15944         libobjs=conftest.$ac_objext
15945         deplibs=
15946         wl=$lt_prog_compiler_wl
15947         pic_flag=$lt_prog_compiler_pic
15948         compiler_flags=-v
15949         linker_flags=-v
15950         verstring=
15951         output_objdir=.
15952         libname=conftest
15953         lt_save_allow_undefined_flag=$allow_undefined_flag
15954         allow_undefined_flag=
15955         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15956   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15957   ac_status=$?
15958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15959   (exit $ac_status); }
15960         then
15961           archive_cmds_need_lc=no
15962         else
15963           archive_cmds_need_lc=yes
15964         fi
15965         allow_undefined_flag=$lt_save_allow_undefined_flag
15966       else
15967         cat conftest.err 1>&5
15968       fi
15969       $rm conftest*
15970       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15971 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
15972       ;;
15973     esac
15974   fi
15975   ;;
15976 esac
15977
15978 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15979 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15980 library_names_spec=
15981 libname_spec='lib$name'
15982 soname_spec=
15983 shrext_cmds=".so"
15984 postinstall_cmds=
15985 postuninstall_cmds=
15986 finish_cmds=
15987 finish_eval=
15988 shlibpath_var=
15989 shlibpath_overrides_runpath=unknown
15990 version_type=none
15991 dynamic_linker="$host_os ld.so"
15992 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15993 if test "$GCC" = yes; then
15994   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15995   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15996     # if the path contains ";" then we assume it to be the separator
15997     # otherwise default to the standard path separator (i.e. ":") - it is
15998     # assumed that no part of a normal pathname contains ";" but that should
15999     # okay in the real world where ";" in dirpaths is itself problematic.
16000     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16001   else
16002     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16003   fi
16004 else
16005   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16006 fi
16007 need_lib_prefix=unknown
16008 hardcode_into_libs=no
16009
16010 # when you set need_version to no, make sure it does not cause -set_version
16011 # flags to be left without arguments
16012 need_version=unknown
16013
16014 case $host_os in
16015 aix3*)
16016   version_type=linux
16017   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16018   shlibpath_var=LIBPATH
16019
16020   # AIX 3 has no versioning support, so we append a major version to the name.
16021   soname_spec='${libname}${release}${shared_ext}$major'
16022   ;;
16023
16024 aix4* | aix5*)
16025   version_type=linux
16026   need_lib_prefix=no
16027   need_version=no
16028   hardcode_into_libs=yes
16029   if test "$host_cpu" = ia64; then
16030     # AIX 5 supports IA64
16031     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16032     shlibpath_var=LD_LIBRARY_PATH
16033   else
16034     # With GCC up to 2.95.x, collect2 would create an import file
16035     # for dependence libraries.  The import file would start with
16036     # the line `#! .'.  This would cause the generated library to
16037     # depend on `.', always an invalid library.  This was fixed in
16038     # development snapshots of GCC prior to 3.0.
16039     case $host_os in
16040       aix4 | aix4.[01] | aix4.[01].*)
16041       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16042            echo ' yes '
16043            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16044         :
16045       else
16046         can_build_shared=no
16047       fi
16048       ;;
16049     esac
16050     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16051     # soname into executable. Probably we can add versioning support to
16052     # collect2, so additional links can be useful in future.
16053     if test "$aix_use_runtimelinking" = yes; then
16054       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16055       # instead of lib<name>.a to let people know that these are not
16056       # typical AIX shared libraries.
16057       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16058     else
16059       # We preserve .a as extension for shared libraries through AIX4.2
16060       # and later when we are not doing run time linking.
16061       library_names_spec='${libname}${release}.a $libname.a'
16062       soname_spec='${libname}${release}${shared_ext}$major'
16063     fi
16064     shlibpath_var=LIBPATH
16065   fi
16066   ;;
16067
16068 amigaos*)
16069   library_names_spec='$libname.ixlibrary $libname.a'
16070   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16071   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'
16072   ;;
16073
16074 beos*)
16075   library_names_spec='${libname}${shared_ext}'
16076   dynamic_linker="$host_os ld.so"
16077   shlibpath_var=LIBRARY_PATH
16078   ;;
16079
16080 bsdi[45]*)
16081   version_type=linux
16082   need_version=no
16083   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16084   soname_spec='${libname}${release}${shared_ext}$major'
16085   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16086   shlibpath_var=LD_LIBRARY_PATH
16087   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16088   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16089   # the default ld.so.conf also contains /usr/contrib/lib and
16090   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16091   # libtool to hard-code these into programs
16092   ;;
16093
16094 cygwin* | mingw* | pw32*)
16095   version_type=windows
16096   shrext_cmds=".dll"
16097   need_version=no
16098   need_lib_prefix=no
16099
16100   case $GCC,$host_os in
16101   yes,cygwin* | yes,mingw* | yes,pw32*)
16102     library_names_spec='$libname.dll.a'
16103     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16104     postinstall_cmds='base_file=`basename \${file}`~
16105       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16106       dldir=$destdir/`dirname \$dlpath`~
16107       test -d \$dldir || mkdir -p \$dldir~
16108       $install_prog $dir/$dlname \$dldir/$dlname~
16109       chmod a+x \$dldir/$dlname'
16110     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16111       dlpath=$dir/\$dldll~
16112        $rm \$dlpath'
16113     shlibpath_overrides_runpath=yes
16114
16115     case $host_os in
16116     cygwin*)
16117       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16118       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16119       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16120       ;;
16121     mingw*)
16122       # MinGW DLLs use traditional 'lib' prefix
16123       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16124       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16125       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16126         # It is most probably a Windows format PATH printed by
16127         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16128         # path with ; separators, and with drive letters. We can handle the
16129         # drive letters (cygwin fileutils understands them), so leave them,
16130         # especially as we might pass files found there to a mingw objdump,
16131         # which wouldn't understand a cygwinified path. Ahh.
16132         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16133       else
16134         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16135       fi
16136       ;;
16137     pw32*)
16138       # pw32 DLLs use 'pw' prefix rather than 'lib'
16139       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16140       ;;
16141     esac
16142     ;;
16143
16144   *)
16145     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16146     ;;
16147   esac
16148   dynamic_linker='Win32 ld.exe'
16149   # FIXME: first we should search . and the directory the executable is in
16150   shlibpath_var=PATH
16151   ;;
16152
16153 darwin* | rhapsody*)
16154   dynamic_linker="$host_os dyld"
16155   version_type=darwin
16156   need_lib_prefix=no
16157   need_version=no
16158   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16159   soname_spec='${libname}${release}${major}$shared_ext'
16160   shlibpath_overrides_runpath=yes
16161   shlibpath_var=DYLD_LIBRARY_PATH
16162   shrext_cmds='.dylib'
16163   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16164   if test "$GCC" = yes; then
16165     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"`
16166   else
16167     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16168   fi
16169   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16170   ;;
16171
16172 dgux*)
16173   version_type=linux
16174   need_lib_prefix=no
16175   need_version=no
16176   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16177   soname_spec='${libname}${release}${shared_ext}$major'
16178   shlibpath_var=LD_LIBRARY_PATH
16179   ;;
16180
16181 freebsd1*)
16182   dynamic_linker=no
16183   ;;
16184
16185 kfreebsd*-gnu)
16186   version_type=linux
16187   need_lib_prefix=no
16188   need_version=no
16189   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16190   soname_spec='${libname}${release}${shared_ext}$major'
16191   shlibpath_var=LD_LIBRARY_PATH
16192   shlibpath_overrides_runpath=no
16193   hardcode_into_libs=yes
16194   dynamic_linker='GNU ld.so'
16195   ;;
16196
16197 freebsd* | dragonfly*)
16198   # DragonFly does not have aout.  When/if they implement a new
16199   # versioning mechanism, adjust this.
16200   if test -x /usr/bin/objformat; then
16201     objformat=`/usr/bin/objformat`
16202   else
16203     case $host_os in
16204     freebsd[123]*) objformat=aout ;;
16205     *) objformat=elf ;;
16206     esac
16207   fi
16208   version_type=freebsd-$objformat
16209   case $version_type in
16210     freebsd-elf*)
16211       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16212       need_version=no
16213       need_lib_prefix=no
16214       ;;
16215     freebsd-*)
16216       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16217       need_version=yes
16218       ;;
16219   esac
16220   shlibpath_var=LD_LIBRARY_PATH
16221   case $host_os in
16222   freebsd2*)
16223     shlibpath_overrides_runpath=yes
16224     ;;
16225   freebsd3.[01]* | freebsdelf3.[01]*)
16226     shlibpath_overrides_runpath=yes
16227     hardcode_into_libs=yes
16228     ;;
16229   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16230   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16231     shlibpath_overrides_runpath=no
16232     hardcode_into_libs=yes
16233     ;;
16234   freebsd*) # from 4.6 on
16235     shlibpath_overrides_runpath=yes
16236     hardcode_into_libs=yes
16237     ;;
16238   esac
16239   ;;
16240
16241 gnu*)
16242   version_type=linux
16243   need_lib_prefix=no
16244   need_version=no
16245   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16246   soname_spec='${libname}${release}${shared_ext}$major'
16247   shlibpath_var=LD_LIBRARY_PATH
16248   hardcode_into_libs=yes
16249   ;;
16250
16251 hpux9* | hpux10* | hpux11*)
16252   # Give a soname corresponding to the major version so that dld.sl refuses to
16253   # link against other versions.
16254   version_type=sunos
16255   need_lib_prefix=no
16256   need_version=no
16257   case $host_cpu in
16258   ia64*)
16259     shrext_cmds='.so'
16260     hardcode_into_libs=yes
16261     dynamic_linker="$host_os dld.so"
16262     shlibpath_var=LD_LIBRARY_PATH
16263     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16264     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16265     soname_spec='${libname}${release}${shared_ext}$major'
16266     if test "X$HPUX_IA64_MODE" = X32; then
16267       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16268     else
16269       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16270     fi
16271     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16272     ;;
16273    hppa*64*)
16274      shrext_cmds='.sl'
16275      hardcode_into_libs=yes
16276      dynamic_linker="$host_os dld.sl"
16277      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16278      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16279      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16280      soname_spec='${libname}${release}${shared_ext}$major'
16281      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16282      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16283      ;;
16284    *)
16285     shrext_cmds='.sl'
16286     dynamic_linker="$host_os dld.sl"
16287     shlibpath_var=SHLIB_PATH
16288     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16289     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16290     soname_spec='${libname}${release}${shared_ext}$major'
16291     ;;
16292   esac
16293   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16294   postinstall_cmds='chmod 555 $lib'
16295   ;;
16296
16297 interix3*)
16298   version_type=linux
16299   need_lib_prefix=no
16300   need_version=no
16301   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16302   soname_spec='${libname}${release}${shared_ext}$major'
16303   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16304   shlibpath_var=LD_LIBRARY_PATH
16305   shlibpath_overrides_runpath=no
16306   hardcode_into_libs=yes
16307   ;;
16308
16309 irix5* | irix6* | nonstopux*)
16310   case $host_os in
16311     nonstopux*) version_type=nonstopux ;;
16312     *)
16313         if test "$lt_cv_prog_gnu_ld" = yes; then
16314                 version_type=linux
16315         else
16316                 version_type=irix
16317         fi ;;
16318   esac
16319   need_lib_prefix=no
16320   need_version=no
16321   soname_spec='${libname}${release}${shared_ext}$major'
16322   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16323   case $host_os in
16324   irix5* | nonstopux*)
16325     libsuff= shlibsuff=
16326     ;;
16327   *)
16328     case $LD in # libtool.m4 will add one of these switches to LD
16329     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16330       libsuff= shlibsuff= libmagic=32-bit;;
16331     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16332       libsuff=32 shlibsuff=N32 libmagic=N32;;
16333     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16334       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16335     *) libsuff= shlibsuff= libmagic=never-match;;
16336     esac
16337     ;;
16338   esac
16339   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16340   shlibpath_overrides_runpath=no
16341   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16342   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16343   hardcode_into_libs=yes
16344   ;;
16345
16346 # No shared lib support for Linux oldld, aout, or coff.
16347 linux*oldld* | linux*aout* | linux*coff*)
16348   dynamic_linker=no
16349   ;;
16350
16351 # This must be Linux ELF.
16352 linux*)
16353   version_type=linux
16354   need_lib_prefix=no
16355   need_version=no
16356   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16357   soname_spec='${libname}${release}${shared_ext}$major'
16358   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16359   shlibpath_var=LD_LIBRARY_PATH
16360   shlibpath_overrides_runpath=no
16361   # This implies no fast_install, which is unacceptable.
16362   # Some rework will be needed to allow for fast_install
16363   # before this can be enabled.
16364   hardcode_into_libs=yes
16365
16366   # Append ld.so.conf contents to the search path
16367   if test -f /etc/ld.so.conf; then
16368     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' ' '`
16369     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16370   fi
16371
16372   # We used to test for /lib/ld.so.1 and disable shared libraries on
16373   # powerpc, because MkLinux only supported shared libraries with the
16374   # GNU dynamic linker.  Since this was broken with cross compilers,
16375   # most powerpc-linux boxes support dynamic linking these days and
16376   # people can always --disable-shared, the test was removed, and we
16377   # assume the GNU/Linux dynamic linker is in use.
16378   dynamic_linker='GNU/Linux ld.so'
16379   ;;
16380
16381 knetbsd*-gnu)
16382   version_type=linux
16383   need_lib_prefix=no
16384   need_version=no
16385   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16386   soname_spec='${libname}${release}${shared_ext}$major'
16387   shlibpath_var=LD_LIBRARY_PATH
16388   shlibpath_overrides_runpath=no
16389   hardcode_into_libs=yes
16390   dynamic_linker='GNU ld.so'
16391   ;;
16392
16393 netbsd*)
16394   version_type=sunos
16395   need_lib_prefix=no
16396   need_version=no
16397   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16398     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16399     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16400     dynamic_linker='NetBSD (a.out) ld.so'
16401   else
16402     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16403     soname_spec='${libname}${release}${shared_ext}$major'
16404     dynamic_linker='NetBSD ld.elf_so'
16405   fi
16406   shlibpath_var=LD_LIBRARY_PATH
16407   shlibpath_overrides_runpath=yes
16408   hardcode_into_libs=yes
16409   ;;
16410
16411 newsos6)
16412   version_type=linux
16413   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16414   shlibpath_var=LD_LIBRARY_PATH
16415   shlibpath_overrides_runpath=yes
16416   ;;
16417
16418 nto-qnx*)
16419   version_type=linux
16420   need_lib_prefix=no
16421   need_version=no
16422   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16423   soname_spec='${libname}${release}${shared_ext}$major'
16424   shlibpath_var=LD_LIBRARY_PATH
16425   shlibpath_overrides_runpath=yes
16426   ;;
16427
16428 openbsd*)
16429   version_type=sunos
16430   sys_lib_dlsearch_path_spec="/usr/lib"
16431   need_lib_prefix=no
16432   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16433   case $host_os in
16434     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16435     *)                         need_version=no  ;;
16436   esac
16437   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16438   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16439   shlibpath_var=LD_LIBRARY_PATH
16440   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16441     case $host_os in
16442       openbsd2.[89] | openbsd2.[89].*)
16443         shlibpath_overrides_runpath=no
16444         ;;
16445       *)
16446         shlibpath_overrides_runpath=yes
16447         ;;
16448       esac
16449   else
16450     shlibpath_overrides_runpath=yes
16451   fi
16452   ;;
16453
16454 os2*)
16455   libname_spec='$name'
16456   shrext_cmds=".dll"
16457   need_lib_prefix=no
16458   library_names_spec='$libname${shared_ext} $libname.a'
16459   dynamic_linker='OS/2 ld.exe'
16460   shlibpath_var=LIBPATH
16461   ;;
16462
16463 osf3* | osf4* | osf5*)
16464   version_type=osf
16465   need_lib_prefix=no
16466   need_version=no
16467   soname_spec='${libname}${release}${shared_ext}$major'
16468   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16469   shlibpath_var=LD_LIBRARY_PATH
16470   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16471   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16472   ;;
16473
16474 solaris*)
16475   version_type=linux
16476   need_lib_prefix=no
16477   need_version=no
16478   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16479   soname_spec='${libname}${release}${shared_ext}$major'
16480   shlibpath_var=LD_LIBRARY_PATH
16481   shlibpath_overrides_runpath=yes
16482   hardcode_into_libs=yes
16483   # ldd complains unless libraries are executable
16484   postinstall_cmds='chmod +x $lib'
16485   ;;
16486
16487 sunos4*)
16488   version_type=sunos
16489   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16490   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16491   shlibpath_var=LD_LIBRARY_PATH
16492   shlibpath_overrides_runpath=yes
16493   if test "$with_gnu_ld" = yes; then
16494     need_lib_prefix=no
16495   fi
16496   need_version=yes
16497   ;;
16498
16499 sysv4 | sysv4.3*)
16500   version_type=linux
16501   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16502   soname_spec='${libname}${release}${shared_ext}$major'
16503   shlibpath_var=LD_LIBRARY_PATH
16504   case $host_vendor in
16505     sni)
16506       shlibpath_overrides_runpath=no
16507       need_lib_prefix=no
16508       export_dynamic_flag_spec='${wl}-Blargedynsym'
16509       runpath_var=LD_RUN_PATH
16510       ;;
16511     siemens)
16512       need_lib_prefix=no
16513       ;;
16514     motorola)
16515       need_lib_prefix=no
16516       need_version=no
16517       shlibpath_overrides_runpath=no
16518       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16519       ;;
16520   esac
16521   ;;
16522
16523 sysv4*MP*)
16524   if test -d /usr/nec ;then
16525     version_type=linux
16526     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16527     soname_spec='$libname${shared_ext}.$major'
16528     shlibpath_var=LD_LIBRARY_PATH
16529   fi
16530   ;;
16531
16532 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16533   version_type=freebsd-elf
16534   need_lib_prefix=no
16535   need_version=no
16536   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16537   soname_spec='${libname}${release}${shared_ext}$major'
16538   shlibpath_var=LD_LIBRARY_PATH
16539   hardcode_into_libs=yes
16540   if test "$with_gnu_ld" = yes; then
16541     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16542     shlibpath_overrides_runpath=no
16543   else
16544     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16545     shlibpath_overrides_runpath=yes
16546     case $host_os in
16547       sco3.2v5*)
16548         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16549         ;;
16550     esac
16551   fi
16552   sys_lib_dlsearch_path_spec='/usr/lib'
16553   ;;
16554
16555 uts4*)
16556   version_type=linux
16557   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16558   soname_spec='${libname}${release}${shared_ext}$major'
16559   shlibpath_var=LD_LIBRARY_PATH
16560   ;;
16561
16562 *)
16563   dynamic_linker=no
16564   ;;
16565 esac
16566 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16567 echo "${ECHO_T}$dynamic_linker" >&6; }
16568 test "$dynamic_linker" = no && can_build_shared=no
16569
16570 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16571 if test "$GCC" = yes; then
16572   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16573 fi
16574
16575 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16576 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16577 hardcode_action=
16578 if test -n "$hardcode_libdir_flag_spec" || \
16579    test -n "$runpath_var" || \
16580    test "X$hardcode_automatic" = "Xyes" ; then
16581
16582   # We can hardcode non-existant directories.
16583   if test "$hardcode_direct" != no &&
16584      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16585      # have to relink, otherwise we might link with an installed library
16586      # when we should be linking with a yet-to-be-installed one
16587      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16588      test "$hardcode_minus_L" != no; then
16589     # Linking always hardcodes the temporary library directory.
16590     hardcode_action=relink
16591   else
16592     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16593     hardcode_action=immediate
16594   fi
16595 else
16596   # We cannot hardcode anything, or else we can only hardcode existing
16597   # directories.
16598   hardcode_action=unsupported
16599 fi
16600 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16601 echo "${ECHO_T}$hardcode_action" >&6; }
16602
16603 if test "$hardcode_action" = relink; then
16604   # Fast installation is not supported
16605   enable_fast_install=no
16606 elif test "$shlibpath_overrides_runpath" = yes ||
16607      test "$enable_shared" = no; then
16608   # Fast installation is not necessary
16609   enable_fast_install=needless
16610 fi
16611
16612 striplib=
16613 old_striplib=
16614 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16615 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16616 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16617   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16618   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16619   { echo "$as_me:$LINENO: result: yes" >&5
16620 echo "${ECHO_T}yes" >&6; }
16621 else
16622 # FIXME - insert some real tests, host_os isn't really good enough
16623   case $host_os in
16624    darwin*)
16625        if test -n "$STRIP" ; then
16626          striplib="$STRIP -x"
16627          { echo "$as_me:$LINENO: result: yes" >&5
16628 echo "${ECHO_T}yes" >&6; }
16629        else
16630   { echo "$as_me:$LINENO: result: no" >&5
16631 echo "${ECHO_T}no" >&6; }
16632 fi
16633        ;;
16634    *)
16635   { echo "$as_me:$LINENO: result: no" >&5
16636 echo "${ECHO_T}no" >&6; }
16637     ;;
16638   esac
16639 fi
16640
16641 if test "x$enable_dlopen" != xyes; then
16642   enable_dlopen=unknown
16643   enable_dlopen_self=unknown
16644   enable_dlopen_self_static=unknown
16645 else
16646   lt_cv_dlopen=no
16647   lt_cv_dlopen_libs=
16648
16649   case $host_os in
16650   beos*)
16651     lt_cv_dlopen="load_add_on"
16652     lt_cv_dlopen_libs=
16653     lt_cv_dlopen_self=yes
16654     ;;
16655
16656   mingw* | pw32*)
16657     lt_cv_dlopen="LoadLibrary"
16658     lt_cv_dlopen_libs=
16659    ;;
16660
16661   cygwin*)
16662     lt_cv_dlopen="dlopen"
16663     lt_cv_dlopen_libs=
16664    ;;
16665
16666   darwin*)
16667   # if libdl is installed we need to link against it
16668     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16669 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16670 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16671   echo $ECHO_N "(cached) $ECHO_C" >&6
16672 else
16673   ac_check_lib_save_LIBS=$LIBS
16674 LIBS="-ldl  $LIBS"
16675 cat >conftest.$ac_ext <<_ACEOF
16676 /* confdefs.h.  */
16677 _ACEOF
16678 cat confdefs.h >>conftest.$ac_ext
16679 cat >>conftest.$ac_ext <<_ACEOF
16680 /* end confdefs.h.  */
16681
16682 /* Override any GCC internal prototype to avoid an error.
16683    Use char because int might match the return type of a GCC
16684    builtin and then its argument prototype would still apply.  */
16685 #ifdef __cplusplus
16686 extern "C"
16687 #endif
16688 char dlopen ();
16689 int
16690 main ()
16691 {
16692 return dlopen ();
16693   ;
16694   return 0;
16695 }
16696 _ACEOF
16697 rm -f conftest.$ac_objext conftest$ac_exeext
16698 if { (ac_try="$ac_link"
16699 case "(($ac_try" in
16700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16701   *) ac_try_echo=$ac_try;;
16702 esac
16703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16704   (eval "$ac_link") 2>conftest.er1
16705   ac_status=$?
16706   grep -v '^ *+' conftest.er1 >conftest.err
16707   rm -f conftest.er1
16708   cat conftest.err >&5
16709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16710   (exit $ac_status); } &&
16711          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16712   { (case "(($ac_try" in
16713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16714   *) ac_try_echo=$ac_try;;
16715 esac
16716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16717   (eval "$ac_try") 2>&5
16718   ac_status=$?
16719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16720   (exit $ac_status); }; } &&
16721          { ac_try='test -s conftest$ac_exeext'
16722   { (case "(($ac_try" in
16723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16724   *) ac_try_echo=$ac_try;;
16725 esac
16726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16727   (eval "$ac_try") 2>&5
16728   ac_status=$?
16729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16730   (exit $ac_status); }; }; then
16731   ac_cv_lib_dl_dlopen=yes
16732 else
16733   echo "$as_me: failed program was:" >&5
16734 sed 's/^/| /' conftest.$ac_ext >&5
16735
16736         ac_cv_lib_dl_dlopen=no
16737 fi
16738
16739 rm -f core conftest.err conftest.$ac_objext \
16740       conftest$ac_exeext conftest.$ac_ext
16741 LIBS=$ac_check_lib_save_LIBS
16742 fi
16743 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16744 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16745 if test $ac_cv_lib_dl_dlopen = yes; then
16746   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16747 else
16748
16749     lt_cv_dlopen="dyld"
16750     lt_cv_dlopen_libs=
16751     lt_cv_dlopen_self=yes
16752
16753 fi
16754
16755    ;;
16756
16757   *)
16758     { echo "$as_me:$LINENO: checking for shl_load" >&5
16759 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16760 if test "${ac_cv_func_shl_load+set}" = set; then
16761   echo $ECHO_N "(cached) $ECHO_C" >&6
16762 else
16763   cat >conftest.$ac_ext <<_ACEOF
16764 /* confdefs.h.  */
16765 _ACEOF
16766 cat confdefs.h >>conftest.$ac_ext
16767 cat >>conftest.$ac_ext <<_ACEOF
16768 /* end confdefs.h.  */
16769 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16770    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16771 #define shl_load innocuous_shl_load
16772
16773 /* System header to define __stub macros and hopefully few prototypes,
16774     which can conflict with char shl_load (); below.
16775     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16776     <limits.h> exists even on freestanding compilers.  */
16777
16778 #ifdef __STDC__
16779 # include <limits.h>
16780 #else
16781 # include <assert.h>
16782 #endif
16783
16784 #undef shl_load
16785
16786 /* Override any GCC internal prototype to avoid an error.
16787    Use char because int might match the return type of a GCC
16788    builtin and then its argument prototype would still apply.  */
16789 #ifdef __cplusplus
16790 extern "C"
16791 #endif
16792 char shl_load ();
16793 /* The GNU C library defines this for functions which it implements
16794     to always fail with ENOSYS.  Some functions are actually named
16795     something starting with __ and the normal name is an alias.  */
16796 #if defined __stub_shl_load || defined __stub___shl_load
16797 choke me
16798 #endif
16799
16800 int
16801 main ()
16802 {
16803 return shl_load ();
16804   ;
16805   return 0;
16806 }
16807 _ACEOF
16808 rm -f conftest.$ac_objext conftest$ac_exeext
16809 if { (ac_try="$ac_link"
16810 case "(($ac_try" in
16811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16812   *) ac_try_echo=$ac_try;;
16813 esac
16814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16815   (eval "$ac_link") 2>conftest.er1
16816   ac_status=$?
16817   grep -v '^ *+' conftest.er1 >conftest.err
16818   rm -f conftest.er1
16819   cat conftest.err >&5
16820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16821   (exit $ac_status); } &&
16822          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16823   { (case "(($ac_try" in
16824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16825   *) ac_try_echo=$ac_try;;
16826 esac
16827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16828   (eval "$ac_try") 2>&5
16829   ac_status=$?
16830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16831   (exit $ac_status); }; } &&
16832          { ac_try='test -s conftest$ac_exeext'
16833   { (case "(($ac_try" in
16834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16835   *) ac_try_echo=$ac_try;;
16836 esac
16837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16838   (eval "$ac_try") 2>&5
16839   ac_status=$?
16840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16841   (exit $ac_status); }; }; then
16842   ac_cv_func_shl_load=yes
16843 else
16844   echo "$as_me: failed program was:" >&5
16845 sed 's/^/| /' conftest.$ac_ext >&5
16846
16847         ac_cv_func_shl_load=no
16848 fi
16849
16850 rm -f core conftest.err conftest.$ac_objext \
16851       conftest$ac_exeext conftest.$ac_ext
16852 fi
16853 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16854 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
16855 if test $ac_cv_func_shl_load = yes; then
16856   lt_cv_dlopen="shl_load"
16857 else
16858   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16859 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
16860 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16861   echo $ECHO_N "(cached) $ECHO_C" >&6
16862 else
16863   ac_check_lib_save_LIBS=$LIBS
16864 LIBS="-ldld  $LIBS"
16865 cat >conftest.$ac_ext <<_ACEOF
16866 /* confdefs.h.  */
16867 _ACEOF
16868 cat confdefs.h >>conftest.$ac_ext
16869 cat >>conftest.$ac_ext <<_ACEOF
16870 /* end confdefs.h.  */
16871
16872 /* Override any GCC internal prototype to avoid an error.
16873    Use char because int might match the return type of a GCC
16874    builtin and then its argument prototype would still apply.  */
16875 #ifdef __cplusplus
16876 extern "C"
16877 #endif
16878 char shl_load ();
16879 int
16880 main ()
16881 {
16882 return shl_load ();
16883   ;
16884   return 0;
16885 }
16886 _ACEOF
16887 rm -f conftest.$ac_objext conftest$ac_exeext
16888 if { (ac_try="$ac_link"
16889 case "(($ac_try" in
16890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16891   *) ac_try_echo=$ac_try;;
16892 esac
16893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16894   (eval "$ac_link") 2>conftest.er1
16895   ac_status=$?
16896   grep -v '^ *+' conftest.er1 >conftest.err
16897   rm -f conftest.er1
16898   cat conftest.err >&5
16899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16900   (exit $ac_status); } &&
16901          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16902   { (case "(($ac_try" in
16903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16904   *) ac_try_echo=$ac_try;;
16905 esac
16906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16907   (eval "$ac_try") 2>&5
16908   ac_status=$?
16909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16910   (exit $ac_status); }; } &&
16911          { ac_try='test -s conftest$ac_exeext'
16912   { (case "(($ac_try" in
16913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16914   *) ac_try_echo=$ac_try;;
16915 esac
16916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16917   (eval "$ac_try") 2>&5
16918   ac_status=$?
16919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16920   (exit $ac_status); }; }; then
16921   ac_cv_lib_dld_shl_load=yes
16922 else
16923   echo "$as_me: failed program was:" >&5
16924 sed 's/^/| /' conftest.$ac_ext >&5
16925
16926         ac_cv_lib_dld_shl_load=no
16927 fi
16928
16929 rm -f core conftest.err conftest.$ac_objext \
16930       conftest$ac_exeext conftest.$ac_ext
16931 LIBS=$ac_check_lib_save_LIBS
16932 fi
16933 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16934 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
16935 if test $ac_cv_lib_dld_shl_load = yes; then
16936   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16937 else
16938   { echo "$as_me:$LINENO: checking for dlopen" >&5
16939 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
16940 if test "${ac_cv_func_dlopen+set}" = set; then
16941   echo $ECHO_N "(cached) $ECHO_C" >&6
16942 else
16943   cat >conftest.$ac_ext <<_ACEOF
16944 /* confdefs.h.  */
16945 _ACEOF
16946 cat confdefs.h >>conftest.$ac_ext
16947 cat >>conftest.$ac_ext <<_ACEOF
16948 /* end confdefs.h.  */
16949 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16950    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16951 #define dlopen innocuous_dlopen
16952
16953 /* System header to define __stub macros and hopefully few prototypes,
16954     which can conflict with char dlopen (); below.
16955     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16956     <limits.h> exists even on freestanding compilers.  */
16957
16958 #ifdef __STDC__
16959 # include <limits.h>
16960 #else
16961 # include <assert.h>
16962 #endif
16963
16964 #undef dlopen
16965
16966 /* Override any GCC internal prototype to avoid an error.
16967    Use char because int might match the return type of a GCC
16968    builtin and then its argument prototype would still apply.  */
16969 #ifdef __cplusplus
16970 extern "C"
16971 #endif
16972 char dlopen ();
16973 /* The GNU C library defines this for functions which it implements
16974     to always fail with ENOSYS.  Some functions are actually named
16975     something starting with __ and the normal name is an alias.  */
16976 #if defined __stub_dlopen || defined __stub___dlopen
16977 choke me
16978 #endif
16979
16980 int
16981 main ()
16982 {
16983 return dlopen ();
16984   ;
16985   return 0;
16986 }
16987 _ACEOF
16988 rm -f conftest.$ac_objext conftest$ac_exeext
16989 if { (ac_try="$ac_link"
16990 case "(($ac_try" in
16991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16992   *) ac_try_echo=$ac_try;;
16993 esac
16994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16995   (eval "$ac_link") 2>conftest.er1
16996   ac_status=$?
16997   grep -v '^ *+' conftest.er1 >conftest.err
16998   rm -f conftest.er1
16999   cat conftest.err >&5
17000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17001   (exit $ac_status); } &&
17002          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17003   { (case "(($ac_try" in
17004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17005   *) ac_try_echo=$ac_try;;
17006 esac
17007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17008   (eval "$ac_try") 2>&5
17009   ac_status=$?
17010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17011   (exit $ac_status); }; } &&
17012          { ac_try='test -s conftest$ac_exeext'
17013   { (case "(($ac_try" in
17014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17015   *) ac_try_echo=$ac_try;;
17016 esac
17017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17018   (eval "$ac_try") 2>&5
17019   ac_status=$?
17020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17021   (exit $ac_status); }; }; then
17022   ac_cv_func_dlopen=yes
17023 else
17024   echo "$as_me: failed program was:" >&5
17025 sed 's/^/| /' conftest.$ac_ext >&5
17026
17027         ac_cv_func_dlopen=no
17028 fi
17029
17030 rm -f core conftest.err conftest.$ac_objext \
17031       conftest$ac_exeext conftest.$ac_ext
17032 fi
17033 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17034 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
17035 if test $ac_cv_func_dlopen = yes; then
17036   lt_cv_dlopen="dlopen"
17037 else
17038   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17039 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17040 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17041   echo $ECHO_N "(cached) $ECHO_C" >&6
17042 else
17043   ac_check_lib_save_LIBS=$LIBS
17044 LIBS="-ldl  $LIBS"
17045 cat >conftest.$ac_ext <<_ACEOF
17046 /* confdefs.h.  */
17047 _ACEOF
17048 cat confdefs.h >>conftest.$ac_ext
17049 cat >>conftest.$ac_ext <<_ACEOF
17050 /* end confdefs.h.  */
17051
17052 /* Override any GCC internal prototype to avoid an error.
17053    Use char because int might match the return type of a GCC
17054    builtin and then its argument prototype would still apply.  */
17055 #ifdef __cplusplus
17056 extern "C"
17057 #endif
17058 char dlopen ();
17059 int
17060 main ()
17061 {
17062 return dlopen ();
17063   ;
17064   return 0;
17065 }
17066 _ACEOF
17067 rm -f conftest.$ac_objext conftest$ac_exeext
17068 if { (ac_try="$ac_link"
17069 case "(($ac_try" in
17070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17071   *) ac_try_echo=$ac_try;;
17072 esac
17073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17074   (eval "$ac_link") 2>conftest.er1
17075   ac_status=$?
17076   grep -v '^ *+' conftest.er1 >conftest.err
17077   rm -f conftest.er1
17078   cat conftest.err >&5
17079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17080   (exit $ac_status); } &&
17081          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17082   { (case "(($ac_try" in
17083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17084   *) ac_try_echo=$ac_try;;
17085 esac
17086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17087   (eval "$ac_try") 2>&5
17088   ac_status=$?
17089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17090   (exit $ac_status); }; } &&
17091          { ac_try='test -s conftest$ac_exeext'
17092   { (case "(($ac_try" in
17093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17094   *) ac_try_echo=$ac_try;;
17095 esac
17096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17097   (eval "$ac_try") 2>&5
17098   ac_status=$?
17099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17100   (exit $ac_status); }; }; then
17101   ac_cv_lib_dl_dlopen=yes
17102 else
17103   echo "$as_me: failed program was:" >&5
17104 sed 's/^/| /' conftest.$ac_ext >&5
17105
17106         ac_cv_lib_dl_dlopen=no
17107 fi
17108
17109 rm -f core conftest.err conftest.$ac_objext \
17110       conftest$ac_exeext conftest.$ac_ext
17111 LIBS=$ac_check_lib_save_LIBS
17112 fi
17113 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17114 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17115 if test $ac_cv_lib_dl_dlopen = yes; then
17116   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17117 else
17118   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17119 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17120 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17121   echo $ECHO_N "(cached) $ECHO_C" >&6
17122 else
17123   ac_check_lib_save_LIBS=$LIBS
17124 LIBS="-lsvld  $LIBS"
17125 cat >conftest.$ac_ext <<_ACEOF
17126 /* confdefs.h.  */
17127 _ACEOF
17128 cat confdefs.h >>conftest.$ac_ext
17129 cat >>conftest.$ac_ext <<_ACEOF
17130 /* end confdefs.h.  */
17131
17132 /* Override any GCC internal prototype to avoid an error.
17133    Use char because int might match the return type of a GCC
17134    builtin and then its argument prototype would still apply.  */
17135 #ifdef __cplusplus
17136 extern "C"
17137 #endif
17138 char dlopen ();
17139 int
17140 main ()
17141 {
17142 return dlopen ();
17143   ;
17144   return 0;
17145 }
17146 _ACEOF
17147 rm -f conftest.$ac_objext conftest$ac_exeext
17148 if { (ac_try="$ac_link"
17149 case "(($ac_try" in
17150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17151   *) ac_try_echo=$ac_try;;
17152 esac
17153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17154   (eval "$ac_link") 2>conftest.er1
17155   ac_status=$?
17156   grep -v '^ *+' conftest.er1 >conftest.err
17157   rm -f conftest.er1
17158   cat conftest.err >&5
17159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17160   (exit $ac_status); } &&
17161          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17162   { (case "(($ac_try" in
17163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17164   *) ac_try_echo=$ac_try;;
17165 esac
17166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17167   (eval "$ac_try") 2>&5
17168   ac_status=$?
17169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17170   (exit $ac_status); }; } &&
17171          { ac_try='test -s conftest$ac_exeext'
17172   { (case "(($ac_try" in
17173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17174   *) ac_try_echo=$ac_try;;
17175 esac
17176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17177   (eval "$ac_try") 2>&5
17178   ac_status=$?
17179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17180   (exit $ac_status); }; }; then
17181   ac_cv_lib_svld_dlopen=yes
17182 else
17183   echo "$as_me: failed program was:" >&5
17184 sed 's/^/| /' conftest.$ac_ext >&5
17185
17186         ac_cv_lib_svld_dlopen=no
17187 fi
17188
17189 rm -f core conftest.err conftest.$ac_objext \
17190       conftest$ac_exeext conftest.$ac_ext
17191 LIBS=$ac_check_lib_save_LIBS
17192 fi
17193 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17194 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17195 if test $ac_cv_lib_svld_dlopen = yes; then
17196   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17197 else
17198   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17199 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17200 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17201   echo $ECHO_N "(cached) $ECHO_C" >&6
17202 else
17203   ac_check_lib_save_LIBS=$LIBS
17204 LIBS="-ldld  $LIBS"
17205 cat >conftest.$ac_ext <<_ACEOF
17206 /* confdefs.h.  */
17207 _ACEOF
17208 cat confdefs.h >>conftest.$ac_ext
17209 cat >>conftest.$ac_ext <<_ACEOF
17210 /* end confdefs.h.  */
17211
17212 /* Override any GCC internal prototype to avoid an error.
17213    Use char because int might match the return type of a GCC
17214    builtin and then its argument prototype would still apply.  */
17215 #ifdef __cplusplus
17216 extern "C"
17217 #endif
17218 char dld_link ();
17219 int
17220 main ()
17221 {
17222 return dld_link ();
17223   ;
17224   return 0;
17225 }
17226 _ACEOF
17227 rm -f conftest.$ac_objext conftest$ac_exeext
17228 if { (ac_try="$ac_link"
17229 case "(($ac_try" in
17230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17231   *) ac_try_echo=$ac_try;;
17232 esac
17233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17234   (eval "$ac_link") 2>conftest.er1
17235   ac_status=$?
17236   grep -v '^ *+' conftest.er1 >conftest.err
17237   rm -f conftest.er1
17238   cat conftest.err >&5
17239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17240   (exit $ac_status); } &&
17241          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17242   { (case "(($ac_try" in
17243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17244   *) ac_try_echo=$ac_try;;
17245 esac
17246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17247   (eval "$ac_try") 2>&5
17248   ac_status=$?
17249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17250   (exit $ac_status); }; } &&
17251          { ac_try='test -s conftest$ac_exeext'
17252   { (case "(($ac_try" in
17253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17254   *) ac_try_echo=$ac_try;;
17255 esac
17256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17257   (eval "$ac_try") 2>&5
17258   ac_status=$?
17259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17260   (exit $ac_status); }; }; then
17261   ac_cv_lib_dld_dld_link=yes
17262 else
17263   echo "$as_me: failed program was:" >&5
17264 sed 's/^/| /' conftest.$ac_ext >&5
17265
17266         ac_cv_lib_dld_dld_link=no
17267 fi
17268
17269 rm -f core conftest.err conftest.$ac_objext \
17270       conftest$ac_exeext conftest.$ac_ext
17271 LIBS=$ac_check_lib_save_LIBS
17272 fi
17273 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17274 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17275 if test $ac_cv_lib_dld_dld_link = yes; then
17276   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17277 fi
17278
17279
17280 fi
17281
17282
17283 fi
17284
17285
17286 fi
17287
17288
17289 fi
17290
17291
17292 fi
17293
17294     ;;
17295   esac
17296
17297   if test "x$lt_cv_dlopen" != xno; then
17298     enable_dlopen=yes
17299   else
17300     enable_dlopen=no
17301   fi
17302
17303   case $lt_cv_dlopen in
17304   dlopen)
17305     save_CPPFLAGS="$CPPFLAGS"
17306     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17307
17308     save_LDFLAGS="$LDFLAGS"
17309     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17310
17311     save_LIBS="$LIBS"
17312     LIBS="$lt_cv_dlopen_libs $LIBS"
17313
17314     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17315 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17316 if test "${lt_cv_dlopen_self+set}" = set; then
17317   echo $ECHO_N "(cached) $ECHO_C" >&6
17318 else
17319           if test "$cross_compiling" = yes; then :
17320   lt_cv_dlopen_self=cross
17321 else
17322   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17323   lt_status=$lt_dlunknown
17324   cat > conftest.$ac_ext <<EOF
17325 #line 17325 "configure"
17326 #include "confdefs.h"
17327
17328 #if HAVE_DLFCN_H
17329 #include <dlfcn.h>
17330 #endif
17331
17332 #include <stdio.h>
17333
17334 #ifdef RTLD_GLOBAL
17335 #  define LT_DLGLOBAL           RTLD_GLOBAL
17336 #else
17337 #  ifdef DL_GLOBAL
17338 #    define LT_DLGLOBAL         DL_GLOBAL
17339 #  else
17340 #    define LT_DLGLOBAL         0
17341 #  endif
17342 #endif
17343
17344 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17345    find out it does not work in some platform. */
17346 #ifndef LT_DLLAZY_OR_NOW
17347 #  ifdef RTLD_LAZY
17348 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17349 #  else
17350 #    ifdef DL_LAZY
17351 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17352 #    else
17353 #      ifdef RTLD_NOW
17354 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17355 #      else
17356 #        ifdef DL_NOW
17357 #          define LT_DLLAZY_OR_NOW      DL_NOW
17358 #        else
17359 #          define LT_DLLAZY_OR_NOW      0
17360 #        endif
17361 #      endif
17362 #    endif
17363 #  endif
17364 #endif
17365
17366 #ifdef __cplusplus
17367 extern "C" void exit (int);
17368 #endif
17369
17370 void fnord() { int i=42;}
17371 int main ()
17372 {
17373   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17374   int status = $lt_dlunknown;
17375
17376   if (self)
17377     {
17378       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17379       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17380       /* dlclose (self); */
17381     }
17382   else
17383     puts (dlerror ());
17384
17385     exit (status);
17386 }
17387 EOF
17388   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17389   (eval $ac_link) 2>&5
17390   ac_status=$?
17391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17392   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17393     (./conftest; exit; ) >&5 2>/dev/null
17394     lt_status=$?
17395     case x$lt_status in
17396       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17397       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17398       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17399     esac
17400   else :
17401     # compilation failed
17402     lt_cv_dlopen_self=no
17403   fi
17404 fi
17405 rm -fr conftest*
17406
17407
17408 fi
17409 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17410 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17411
17412     if test "x$lt_cv_dlopen_self" = xyes; then
17413       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17414       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17415 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17416 if test "${lt_cv_dlopen_self_static+set}" = set; then
17417   echo $ECHO_N "(cached) $ECHO_C" >&6
17418 else
17419           if test "$cross_compiling" = yes; then :
17420   lt_cv_dlopen_self_static=cross
17421 else
17422   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17423   lt_status=$lt_dlunknown
17424   cat > conftest.$ac_ext <<EOF
17425 #line 17425 "configure"
17426 #include "confdefs.h"
17427
17428 #if HAVE_DLFCN_H
17429 #include <dlfcn.h>
17430 #endif
17431
17432 #include <stdio.h>
17433
17434 #ifdef RTLD_GLOBAL
17435 #  define LT_DLGLOBAL           RTLD_GLOBAL
17436 #else
17437 #  ifdef DL_GLOBAL
17438 #    define LT_DLGLOBAL         DL_GLOBAL
17439 #  else
17440 #    define LT_DLGLOBAL         0
17441 #  endif
17442 #endif
17443
17444 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17445    find out it does not work in some platform. */
17446 #ifndef LT_DLLAZY_OR_NOW
17447 #  ifdef RTLD_LAZY
17448 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17449 #  else
17450 #    ifdef DL_LAZY
17451 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17452 #    else
17453 #      ifdef RTLD_NOW
17454 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17455 #      else
17456 #        ifdef DL_NOW
17457 #          define LT_DLLAZY_OR_NOW      DL_NOW
17458 #        else
17459 #          define LT_DLLAZY_OR_NOW      0
17460 #        endif
17461 #      endif
17462 #    endif
17463 #  endif
17464 #endif
17465
17466 #ifdef __cplusplus
17467 extern "C" void exit (int);
17468 #endif
17469
17470 void fnord() { int i=42;}
17471 int main ()
17472 {
17473   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17474   int status = $lt_dlunknown;
17475
17476   if (self)
17477     {
17478       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17479       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17480       /* dlclose (self); */
17481     }
17482   else
17483     puts (dlerror ());
17484
17485     exit (status);
17486 }
17487 EOF
17488   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17489   (eval $ac_link) 2>&5
17490   ac_status=$?
17491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17492   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17493     (./conftest; exit; ) >&5 2>/dev/null
17494     lt_status=$?
17495     case x$lt_status in
17496       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17497       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17498       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17499     esac
17500   else :
17501     # compilation failed
17502     lt_cv_dlopen_self_static=no
17503   fi
17504 fi
17505 rm -fr conftest*
17506
17507
17508 fi
17509 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17510 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17511     fi
17512
17513     CPPFLAGS="$save_CPPFLAGS"
17514     LDFLAGS="$save_LDFLAGS"
17515     LIBS="$save_LIBS"
17516     ;;
17517   esac
17518
17519   case $lt_cv_dlopen_self in
17520   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17521   *) enable_dlopen_self=unknown ;;
17522   esac
17523
17524   case $lt_cv_dlopen_self_static in
17525   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17526   *) enable_dlopen_self_static=unknown ;;
17527   esac
17528 fi
17529
17530
17531 # Report which library types will actually be built
17532 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17533 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17534 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17535 echo "${ECHO_T}$can_build_shared" >&6; }
17536
17537 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17538 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17539 test "$can_build_shared" = "no" && enable_shared=no
17540
17541 # On AIX, shared libraries and static libraries use the same namespace, and
17542 # are all built from PIC.
17543 case $host_os in
17544 aix3*)
17545   test "$enable_shared" = yes && enable_static=no
17546   if test -n "$RANLIB"; then
17547     archive_cmds="$archive_cmds~\$RANLIB \$lib"
17548     postinstall_cmds='$RANLIB $lib'
17549   fi
17550   ;;
17551
17552 aix4* | aix5*)
17553   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17554     test "$enable_shared" = yes && enable_static=no
17555   fi
17556     ;;
17557 esac
17558 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17559 echo "${ECHO_T}$enable_shared" >&6; }
17560
17561 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17562 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17563 # Make sure either enable_shared or enable_static is yes.
17564 test "$enable_shared" = yes || enable_static=yes
17565 { echo "$as_me:$LINENO: result: $enable_static" >&5
17566 echo "${ECHO_T}$enable_static" >&6; }
17567
17568 # The else clause should only fire when bootstrapping the
17569 # libtool distribution, otherwise you forgot to ship ltmain.sh
17570 # with your package, and you will get complaints that there are
17571 # no rules to generate ltmain.sh.
17572 if test -f "$ltmain"; then
17573   # See if we are running on zsh, and set the options which allow our commands through
17574   # without removal of \ escapes.
17575   if test -n "${ZSH_VERSION+set}" ; then
17576     setopt NO_GLOB_SUBST
17577   fi
17578   # Now quote all the things that may contain metacharacters while being
17579   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17580   # variables and quote the copies for generation of the libtool script.
17581   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17582     SED SHELL STRIP \
17583     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17584     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17585     deplibs_check_method reload_flag reload_cmds need_locks \
17586     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17587     lt_cv_sys_global_symbol_to_c_name_address \
17588     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17589     old_postinstall_cmds old_postuninstall_cmds \
17590     compiler \
17591     CC \
17592     LD \
17593     lt_prog_compiler_wl \
17594     lt_prog_compiler_pic \
17595     lt_prog_compiler_static \
17596     lt_prog_compiler_no_builtin_flag \
17597     export_dynamic_flag_spec \
17598     thread_safe_flag_spec \
17599     whole_archive_flag_spec \
17600     enable_shared_with_static_runtimes \
17601     old_archive_cmds \
17602     old_archive_from_new_cmds \
17603     predep_objects \
17604     postdep_objects \
17605     predeps \
17606     postdeps \
17607     compiler_lib_search_path \
17608     archive_cmds \
17609     archive_expsym_cmds \
17610     postinstall_cmds \
17611     postuninstall_cmds \
17612     old_archive_from_expsyms_cmds \
17613     allow_undefined_flag \
17614     no_undefined_flag \
17615     export_symbols_cmds \
17616     hardcode_libdir_flag_spec \
17617     hardcode_libdir_flag_spec_ld \
17618     hardcode_libdir_separator \
17619     hardcode_automatic \
17620     module_cmds \
17621     module_expsym_cmds \
17622     lt_cv_prog_compiler_c_o \
17623     exclude_expsyms \
17624     include_expsyms; do
17625
17626     case $var in
17627     old_archive_cmds | \
17628     old_archive_from_new_cmds | \
17629     archive_cmds | \
17630     archive_expsym_cmds | \
17631     module_cmds | \
17632     module_expsym_cmds | \
17633     old_archive_from_expsyms_cmds | \
17634     export_symbols_cmds | \
17635     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17636     postinstall_cmds | postuninstall_cmds | \
17637     old_postinstall_cmds | old_postuninstall_cmds | \
17638     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17639       # Double-quote double-evaled strings.
17640       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17641       ;;
17642     *)
17643       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17644       ;;
17645     esac
17646   done
17647
17648   case $lt_echo in
17649   *'\$0 --fallback-echo"')
17650     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17651     ;;
17652   esac
17653
17654 cfgfile="${ofile}T"
17655   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17656   $rm -f "$cfgfile"
17657   { echo "$as_me:$LINENO: creating $ofile" >&5
17658 echo "$as_me: creating $ofile" >&6;}
17659
17660   cat <<__EOF__ >> "$cfgfile"
17661 #! $SHELL
17662
17663 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17664 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17665 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17666 #
17667 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17668 # Free Software Foundation, Inc.
17669 #
17670 # This file is part of GNU Libtool:
17671 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17672 #
17673 # This program is free software; you can redistribute it and/or modify
17674 # it under the terms of the GNU General Public License as published by
17675 # the Free Software Foundation; either version 2 of the License, or
17676 # (at your option) any later version.
17677 #
17678 # This program is distributed in the hope that it will be useful, but
17679 # WITHOUT ANY WARRANTY; without even the implied warranty of
17680 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17681 # General Public License for more details.
17682 #
17683 # You should have received a copy of the GNU General Public License
17684 # along with this program; if not, write to the Free Software
17685 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17686 #
17687 # As a special exception to the GNU General Public License, if you
17688 # distribute this file as part of a program that contains a
17689 # configuration script generated by Autoconf, you may include it under
17690 # the same distribution terms that you use for the rest of that program.
17691
17692 # A sed program that does not truncate output.
17693 SED=$lt_SED
17694
17695 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17696 Xsed="$SED -e 1s/^X//"
17697
17698 # The HP-UX ksh and POSIX shell print the target directory to stdout
17699 # if CDPATH is set.
17700 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17701
17702 # The names of the tagged configurations supported by this script.
17703 available_tags=
17704
17705 # ### BEGIN LIBTOOL CONFIG
17706
17707 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17708
17709 # Shell to use when invoking shell scripts.
17710 SHELL=$lt_SHELL
17711
17712 # Whether or not to build shared libraries.
17713 build_libtool_libs=$enable_shared
17714
17715 # Whether or not to build static libraries.
17716 build_old_libs=$enable_static
17717
17718 # Whether or not to add -lc for building shared libraries.
17719 build_libtool_need_lc=$archive_cmds_need_lc
17720
17721 # Whether or not to disallow shared libs when runtime libs are static
17722 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17723
17724 # Whether or not to optimize for fast installation.
17725 fast_install=$enable_fast_install
17726
17727 # The host system.
17728 host_alias=$host_alias
17729 host=$host
17730 host_os=$host_os
17731
17732 # The build system.
17733 build_alias=$build_alias
17734 build=$build
17735 build_os=$build_os
17736
17737 # An echo program that does not interpret backslashes.
17738 echo=$lt_echo
17739
17740 # The archiver.
17741 AR=$lt_AR
17742 AR_FLAGS=$lt_AR_FLAGS
17743
17744 # A C compiler.
17745 LTCC=$lt_LTCC
17746
17747 # LTCC compiler flags.
17748 LTCFLAGS=$lt_LTCFLAGS
17749
17750 # A language-specific compiler.
17751 CC=$lt_compiler
17752
17753 # Is the compiler the GNU C compiler?
17754 with_gcc=$GCC
17755
17756 # An ERE matcher.
17757 EGREP=$lt_EGREP
17758
17759 # The linker used to build libraries.
17760 LD=$lt_LD
17761
17762 # Whether we need hard or soft links.
17763 LN_S=$lt_LN_S
17764
17765 # A BSD-compatible nm program.
17766 NM=$lt_NM
17767
17768 # A symbol stripping program
17769 STRIP=$lt_STRIP
17770
17771 # Used to examine libraries when file_magic_cmd begins "file"
17772 MAGIC_CMD=$MAGIC_CMD
17773
17774 # Used on cygwin: DLL creation program.
17775 DLLTOOL="$DLLTOOL"
17776
17777 # Used on cygwin: object dumper.
17778 OBJDUMP="$OBJDUMP"
17779
17780 # Used on cygwin: assembler.
17781 AS="$AS"
17782
17783 # The name of the directory that contains temporary libtool files.
17784 objdir=$objdir
17785
17786 # How to create reloadable object files.
17787 reload_flag=$lt_reload_flag
17788 reload_cmds=$lt_reload_cmds
17789
17790 # How to pass a linker flag through the compiler.
17791 wl=$lt_lt_prog_compiler_wl
17792
17793 # Object file suffix (normally "o").
17794 objext="$ac_objext"
17795
17796 # Old archive suffix (normally "a").
17797 libext="$libext"
17798
17799 # Shared library suffix (normally ".so").
17800 shrext_cmds='$shrext_cmds'
17801
17802 # Executable file suffix (normally "").
17803 exeext="$exeext"
17804
17805 # Additional compiler flags for building library objects.
17806 pic_flag=$lt_lt_prog_compiler_pic
17807 pic_mode=$pic_mode
17808
17809 # What is the maximum length of a command?
17810 max_cmd_len=$lt_cv_sys_max_cmd_len
17811
17812 # Does compiler simultaneously support -c and -o options?
17813 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17814
17815 # Must we lock files when doing compilation?
17816 need_locks=$lt_need_locks
17817
17818 # Do we need the lib prefix for modules?
17819 need_lib_prefix=$need_lib_prefix
17820
17821 # Do we need a version for libraries?
17822 need_version=$need_version
17823
17824 # Whether dlopen is supported.
17825 dlopen_support=$enable_dlopen
17826
17827 # Whether dlopen of programs is supported.
17828 dlopen_self=$enable_dlopen_self
17829
17830 # Whether dlopen of statically linked programs is supported.
17831 dlopen_self_static=$enable_dlopen_self_static
17832
17833 # Compiler flag to prevent dynamic linking.
17834 link_static_flag=$lt_lt_prog_compiler_static
17835
17836 # Compiler flag to turn off builtin functions.
17837 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17838
17839 # Compiler flag to allow reflexive dlopens.
17840 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17841
17842 # Compiler flag to generate shared objects directly from archives.
17843 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17844
17845 # Compiler flag to generate thread-safe objects.
17846 thread_safe_flag_spec=$lt_thread_safe_flag_spec
17847
17848 # Library versioning type.
17849 version_type=$version_type
17850
17851 # Format of library name prefix.
17852 libname_spec=$lt_libname_spec
17853
17854 # List of archive names.  First name is the real one, the rest are links.
17855 # The last name is the one that the linker finds with -lNAME.
17856 library_names_spec=$lt_library_names_spec
17857
17858 # The coded name of the library, if different from the real name.
17859 soname_spec=$lt_soname_spec
17860
17861 # Commands used to build and install an old-style archive.
17862 RANLIB=$lt_RANLIB
17863 old_archive_cmds=$lt_old_archive_cmds
17864 old_postinstall_cmds=$lt_old_postinstall_cmds
17865 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17866
17867 # Create an old-style archive from a shared archive.
17868 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17869
17870 # Create a temporary old-style archive to link instead of a shared archive.
17871 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17872
17873 # Commands used to build and install a shared archive.
17874 archive_cmds=$lt_archive_cmds
17875 archive_expsym_cmds=$lt_archive_expsym_cmds
17876 postinstall_cmds=$lt_postinstall_cmds
17877 postuninstall_cmds=$lt_postuninstall_cmds
17878
17879 # Commands used to build a loadable module (assumed same as above if empty)
17880 module_cmds=$lt_module_cmds
17881 module_expsym_cmds=$lt_module_expsym_cmds
17882
17883 # Commands to strip libraries.
17884 old_striplib=$lt_old_striplib
17885 striplib=$lt_striplib
17886
17887 # Dependencies to place before the objects being linked to create a
17888 # shared library.
17889 predep_objects=$lt_predep_objects
17890
17891 # Dependencies to place after the objects being linked to create a
17892 # shared library.
17893 postdep_objects=$lt_postdep_objects
17894
17895 # Dependencies to place before the objects being linked to create a
17896 # shared library.
17897 predeps=$lt_predeps
17898
17899 # Dependencies to place after the objects being linked to create a
17900 # shared library.
17901 postdeps=$lt_postdeps
17902
17903 # The library search path used internally by the compiler when linking
17904 # a shared library.
17905 compiler_lib_search_path=$lt_compiler_lib_search_path
17906
17907 # Method to check whether dependent libraries are shared objects.
17908 deplibs_check_method=$lt_deplibs_check_method
17909
17910 # Command to use when deplibs_check_method == file_magic.
17911 file_magic_cmd=$lt_file_magic_cmd
17912
17913 # Flag that allows shared libraries with undefined symbols to be built.
17914 allow_undefined_flag=$lt_allow_undefined_flag
17915
17916 # Flag that forces no undefined symbols.
17917 no_undefined_flag=$lt_no_undefined_flag
17918
17919 # Commands used to finish a libtool library installation in a directory.
17920 finish_cmds=$lt_finish_cmds
17921
17922 # Same as above, but a single script fragment to be evaled but not shown.
17923 finish_eval=$lt_finish_eval
17924
17925 # Take the output of nm and produce a listing of raw symbols and C names.
17926 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17927
17928 # Transform the output of nm in a proper C declaration
17929 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17930
17931 # Transform the output of nm in a C name address pair
17932 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17933
17934 # This is the shared library runtime path variable.
17935 runpath_var=$runpath_var
17936
17937 # This is the shared library path variable.
17938 shlibpath_var=$shlibpath_var
17939
17940 # Is shlibpath searched before the hard-coded library search path?
17941 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17942
17943 # How to hardcode a shared library path into an executable.
17944 hardcode_action=$hardcode_action
17945
17946 # Whether we should hardcode library paths into libraries.
17947 hardcode_into_libs=$hardcode_into_libs
17948
17949 # Flag to hardcode \$libdir into a binary during linking.
17950 # This must work even if \$libdir does not exist.
17951 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17952
17953 # If ld is used when linking, flag to hardcode \$libdir into
17954 # a binary during linking. This must work even if \$libdir does
17955 # not exist.
17956 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17957
17958 # Whether we need a single -rpath flag with a separated argument.
17959 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17960
17961 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17962 # resulting binary.
17963 hardcode_direct=$hardcode_direct
17964
17965 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17966 # resulting binary.
17967 hardcode_minus_L=$hardcode_minus_L
17968
17969 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17970 # the resulting binary.
17971 hardcode_shlibpath_var=$hardcode_shlibpath_var
17972
17973 # Set to yes if building a shared library automatically hardcodes DIR into the library
17974 # and all subsequent libraries and executables linked against it.
17975 hardcode_automatic=$hardcode_automatic
17976
17977 # Variables whose values should be saved in libtool wrapper scripts and
17978 # restored at relink time.
17979 variables_saved_for_relink="$variables_saved_for_relink"
17980
17981 # Whether libtool must link a program against all its dependency libraries.
17982 link_all_deplibs=$link_all_deplibs
17983
17984 # Compile-time system search path for libraries
17985 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17986
17987 # Run-time system search path for libraries
17988 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17989
17990 # Fix the shell variable \$srcfile for the compiler.
17991 fix_srcfile_path="$fix_srcfile_path"
17992
17993 # Set to yes if exported symbols are required.
17994 always_export_symbols=$always_export_symbols
17995
17996 # The commands to list exported symbols.
17997 export_symbols_cmds=$lt_export_symbols_cmds
17998
17999 # The commands to extract the exported symbol list from a shared archive.
18000 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18001
18002 # Symbols that should not be listed in the preloaded symbols.
18003 exclude_expsyms=$lt_exclude_expsyms
18004
18005 # Symbols that must always be exported.
18006 include_expsyms=$lt_include_expsyms
18007
18008 # ### END LIBTOOL CONFIG
18009
18010 __EOF__
18011
18012
18013   case $host_os in
18014   aix3*)
18015     cat <<\EOF >> "$cfgfile"
18016
18017 # AIX sometimes has problems with the GCC collect2 program.  For some
18018 # reason, if we set the COLLECT_NAMES environment variable, the problems
18019 # vanish in a puff of smoke.
18020 if test "X${COLLECT_NAMES+set}" != Xset; then
18021   COLLECT_NAMES=
18022   export COLLECT_NAMES
18023 fi
18024 EOF
18025     ;;
18026   esac
18027
18028   # We use sed instead of cat because bash on DJGPP gets confused if
18029   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18030   # text mode, it properly converts lines to CR/LF.  This bash problem
18031   # is reportedly fixed, but why not run on old versions too?
18032   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
18033
18034   mv -f "$cfgfile" "$ofile" || \
18035     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18036   chmod +x "$ofile"
18037
18038 else
18039   # If there is no Makefile yet, we rely on a make rule to execute
18040   # `config.status --recheck' to rerun these tests and create the
18041   # libtool script then.
18042   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18043   if test -f "$ltmain_in"; then
18044     test -f Makefile && make "$ltmain"
18045   fi
18046 fi
18047
18048
18049 ac_ext=c
18050 ac_cpp='$CPP $CPPFLAGS'
18051 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18052 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18053 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18054
18055 CC="$lt_save_CC"
18056
18057
18058 # Check whether --with-tags was given.
18059 if test "${with_tags+set}" = set; then
18060   withval=$with_tags; tagnames="$withval"
18061 fi
18062
18063
18064 if test -f "$ltmain" && test -n "$tagnames"; then
18065   if test ! -f "${ofile}"; then
18066     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18067 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18068   fi
18069
18070   if test -z "$LTCC"; then
18071     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18072     if test -z "$LTCC"; then
18073       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18074 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18075     else
18076       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18077 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18078     fi
18079   fi
18080   if test -z "$LTCFLAGS"; then
18081     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18082   fi
18083
18084   # Extract list of available tagged configurations in $ofile.
18085   # Note that this assumes the entire list is on one line.
18086   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18087
18088   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18089   for tagname in $tagnames; do
18090     IFS="$lt_save_ifs"
18091     # Check whether tagname contains only valid characters
18092     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18093     "") ;;
18094     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18095 echo "$as_me: error: invalid tag name: $tagname" >&2;}
18096    { (exit 1); exit 1; }; }
18097         ;;
18098     esac
18099
18100     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18101     then
18102       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18103 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18104    { (exit 1); exit 1; }; }
18105     fi
18106
18107     # Update the list of available tags.
18108     if test -n "$tagname"; then
18109       echo appending configuration tag \"$tagname\" to $ofile
18110
18111       case $tagname in
18112       CXX)
18113         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18114             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18115             (test "X$CXX" != "Xg++"))) ; then
18116           ac_ext=cpp
18117 ac_cpp='$CXXCPP $CPPFLAGS'
18118 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18119 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18120 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18121
18122
18123
18124
18125 archive_cmds_need_lc_CXX=no
18126 allow_undefined_flag_CXX=
18127 always_export_symbols_CXX=no
18128 archive_expsym_cmds_CXX=
18129 export_dynamic_flag_spec_CXX=
18130 hardcode_direct_CXX=no
18131 hardcode_libdir_flag_spec_CXX=
18132 hardcode_libdir_flag_spec_ld_CXX=
18133 hardcode_libdir_separator_CXX=
18134 hardcode_minus_L_CXX=no
18135 hardcode_shlibpath_var_CXX=unsupported
18136 hardcode_automatic_CXX=no
18137 module_cmds_CXX=
18138 module_expsym_cmds_CXX=
18139 link_all_deplibs_CXX=unknown
18140 old_archive_cmds_CXX=$old_archive_cmds
18141 no_undefined_flag_CXX=
18142 whole_archive_flag_spec_CXX=
18143 enable_shared_with_static_runtimes_CXX=no
18144
18145 # Dependencies to place before and after the object being linked:
18146 predep_objects_CXX=
18147 postdep_objects_CXX=
18148 predeps_CXX=
18149 postdeps_CXX=
18150 compiler_lib_search_path_CXX=
18151
18152 # Source file extension for C++ test sources.
18153 ac_ext=cpp
18154
18155 # Object file extension for compiled C++ test sources.
18156 objext=o
18157 objext_CXX=$objext
18158
18159 # Code to be used in simple compile tests
18160 lt_simple_compile_test_code="int some_variable = 0;\n"
18161
18162 # Code to be used in simple link tests
18163 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18164
18165 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18166
18167 # If no C compiler was specified, use CC.
18168 LTCC=${LTCC-"$CC"}
18169
18170 # If no C compiler flags were specified, use CFLAGS.
18171 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18172
18173 # Allow CC to be a program name with arguments.
18174 compiler=$CC
18175
18176
18177 # save warnings/boilerplate of simple test code
18178 ac_outfile=conftest.$ac_objext
18179 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18180 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18181 _lt_compiler_boilerplate=`cat conftest.err`
18182 $rm conftest*
18183
18184 ac_outfile=conftest.$ac_objext
18185 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18186 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18187 _lt_linker_boilerplate=`cat conftest.err`
18188 $rm conftest*
18189
18190
18191 # Allow CC to be a program name with arguments.
18192 lt_save_CC=$CC
18193 lt_save_LD=$LD
18194 lt_save_GCC=$GCC
18195 GCC=$GXX
18196 lt_save_with_gnu_ld=$with_gnu_ld
18197 lt_save_path_LD=$lt_cv_path_LD
18198 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18199   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18200 else
18201   $as_unset lt_cv_prog_gnu_ld
18202 fi
18203 if test -n "${lt_cv_path_LDCXX+set}"; then
18204   lt_cv_path_LD=$lt_cv_path_LDCXX
18205 else
18206   $as_unset lt_cv_path_LD
18207 fi
18208 test -z "${LDCXX+set}" || LD=$LDCXX
18209 CC=${CXX-"c++"}
18210 compiler=$CC
18211 compiler_CXX=$CC
18212 for cc_temp in $compiler""; do
18213   case $cc_temp in
18214     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18215     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18216     \-*) ;;
18217     *) break;;
18218   esac
18219 done
18220 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18221
18222
18223 # We don't want -fno-exception wen compiling C++ code, so set the
18224 # no_builtin_flag separately
18225 if test "$GXX" = yes; then
18226   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18227 else
18228   lt_prog_compiler_no_builtin_flag_CXX=
18229 fi
18230
18231 if test "$GXX" = yes; then
18232   # Set up default GNU C++ configuration
18233
18234
18235 # Check whether --with-gnu-ld was given.
18236 if test "${with_gnu_ld+set}" = set; then
18237   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18238 else
18239   with_gnu_ld=no
18240 fi
18241
18242 ac_prog=ld
18243 if test "$GCC" = yes; then
18244   # Check if gcc -print-prog-name=ld gives a path.
18245   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18246 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18247   case $host in
18248   *-*-mingw*)
18249     # gcc leaves a trailing carriage return which upsets mingw
18250     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18251   *)
18252     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18253   esac
18254   case $ac_prog in
18255     # Accept absolute paths.
18256     [\\/]* | ?:[\\/]*)
18257       re_direlt='/[^/][^/]*/\.\./'
18258       # Canonicalize the pathname of ld
18259       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18260       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18261         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18262       done
18263       test -z "$LD" && LD="$ac_prog"
18264       ;;
18265   "")
18266     # If it fails, then pretend we aren't using GCC.
18267     ac_prog=ld
18268     ;;
18269   *)
18270     # If it is relative, then search for the first ld in PATH.
18271     with_gnu_ld=unknown
18272     ;;
18273   esac
18274 elif test "$with_gnu_ld" = yes; then
18275   { echo "$as_me:$LINENO: checking for GNU ld" >&5
18276 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18277 else
18278   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18279 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18280 fi
18281 if test "${lt_cv_path_LD+set}" = set; then
18282   echo $ECHO_N "(cached) $ECHO_C" >&6
18283 else
18284   if test -z "$LD"; then
18285   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18286   for ac_dir in $PATH; do
18287     IFS="$lt_save_ifs"
18288     test -z "$ac_dir" && ac_dir=.
18289     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18290       lt_cv_path_LD="$ac_dir/$ac_prog"
18291       # Check to see if the program is GNU ld.  I'd rather use --version,
18292       # but apparently some variants of GNU ld only accept -v.
18293       # Break only if it was the GNU/non-GNU ld that we prefer.
18294       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18295       *GNU* | *'with BFD'*)
18296         test "$with_gnu_ld" != no && break
18297         ;;
18298       *)
18299         test "$with_gnu_ld" != yes && break
18300         ;;
18301       esac
18302     fi
18303   done
18304   IFS="$lt_save_ifs"
18305 else
18306   lt_cv_path_LD="$LD" # Let the user override the test with a path.
18307 fi
18308 fi
18309
18310 LD="$lt_cv_path_LD"
18311 if test -n "$LD"; then
18312   { echo "$as_me:$LINENO: result: $LD" >&5
18313 echo "${ECHO_T}$LD" >&6; }
18314 else
18315   { echo "$as_me:$LINENO: result: no" >&5
18316 echo "${ECHO_T}no" >&6; }
18317 fi
18318 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18319 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18320    { (exit 1); exit 1; }; }
18321 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18322 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18323 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18324   echo $ECHO_N "(cached) $ECHO_C" >&6
18325 else
18326   # I'd rather use --version here, but apparently some GNU lds only accept -v.
18327 case `$LD -v 2>&1 </dev/null` in
18328 *GNU* | *'with BFD'*)
18329   lt_cv_prog_gnu_ld=yes
18330   ;;
18331 *)
18332   lt_cv_prog_gnu_ld=no
18333   ;;
18334 esac
18335 fi
18336 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18337 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18338 with_gnu_ld=$lt_cv_prog_gnu_ld
18339
18340
18341
18342   # Check if GNU C++ uses GNU ld as the underlying linker, since the
18343   # archiving commands below assume that GNU ld is being used.
18344   if test "$with_gnu_ld" = yes; then
18345     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18346     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'
18347
18348     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18349     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18350
18351     # If archive_cmds runs LD, not CC, wlarc should be empty
18352     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18353     #     investigate it a little bit more. (MM)
18354     wlarc='${wl}'
18355
18356     # ancient GNU ld didn't support --whole-archive et. al.
18357     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18358         grep 'no-whole-archive' > /dev/null; then
18359       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18360     else
18361       whole_archive_flag_spec_CXX=
18362     fi
18363   else
18364     with_gnu_ld=no
18365     wlarc=
18366
18367     # A generic and very simple default shared library creation
18368     # command for GNU C++ for the case where it uses the native
18369     # linker, instead of GNU ld.  If possible, this setting should
18370     # overridden to take advantage of the native linker features on
18371     # the platform it is being used on.
18372     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18373   fi
18374
18375   # Commands to make compiler produce verbose output that lists
18376   # what "hidden" libraries, object files and flags are used when
18377   # linking a shared library.
18378   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18379
18380 else
18381   GXX=no
18382   with_gnu_ld=no
18383   wlarc=
18384 fi
18385
18386 # PORTME: fill in a description of your system's C++ link characteristics
18387 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18388 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18389 ld_shlibs_CXX=yes
18390 case $host_os in
18391   aix3*)
18392     # FIXME: insert proper C++ library support
18393     ld_shlibs_CXX=no
18394     ;;
18395   aix4* | aix5*)
18396     if test "$host_cpu" = ia64; then
18397       # On IA64, the linker does run time linking by default, so we don't
18398       # have to do anything special.
18399       aix_use_runtimelinking=no
18400       exp_sym_flag='-Bexport'
18401       no_entry_flag=""
18402     else
18403       aix_use_runtimelinking=no
18404
18405       # Test if we are trying to use run time linking or normal
18406       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18407       # need to do runtime linking.
18408       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18409         for ld_flag in $LDFLAGS; do
18410           case $ld_flag in
18411           *-brtl*)
18412             aix_use_runtimelinking=yes
18413             break
18414             ;;
18415           esac
18416         done
18417         ;;
18418       esac
18419
18420       exp_sym_flag='-bexport'
18421       no_entry_flag='-bnoentry'
18422     fi
18423
18424     # When large executables or shared objects are built, AIX ld can
18425     # have problems creating the table of contents.  If linking a library
18426     # or program results in "error TOC overflow" add -mminimal-toc to
18427     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18428     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18429
18430     archive_cmds_CXX=''
18431     hardcode_direct_CXX=yes
18432     hardcode_libdir_separator_CXX=':'
18433     link_all_deplibs_CXX=yes
18434
18435     if test "$GXX" = yes; then
18436       case $host_os in aix4.[012]|aix4.[012].*)
18437       # We only want to do this on AIX 4.2 and lower, the check
18438       # below for broken collect2 doesn't work under 4.3+
18439         collect2name=`${CC} -print-prog-name=collect2`
18440         if test -f "$collect2name" && \
18441            strings "$collect2name" | grep resolve_lib_name >/dev/null
18442         then
18443           # We have reworked collect2
18444           hardcode_direct_CXX=yes
18445         else
18446           # We have old collect2
18447           hardcode_direct_CXX=unsupported
18448           # It fails to find uninstalled libraries when the uninstalled
18449           # path is not listed in the libpath.  Setting hardcode_minus_L
18450           # to unsupported forces relinking
18451           hardcode_minus_L_CXX=yes
18452           hardcode_libdir_flag_spec_CXX='-L$libdir'
18453           hardcode_libdir_separator_CXX=
18454         fi
18455         ;;
18456       esac
18457       shared_flag='-shared'
18458       if test "$aix_use_runtimelinking" = yes; then
18459         shared_flag="$shared_flag "'${wl}-G'
18460       fi
18461     else
18462       # not using gcc
18463       if test "$host_cpu" = ia64; then
18464         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18465         # chokes on -Wl,-G. The following line is correct:
18466         shared_flag='-G'
18467       else
18468         if test "$aix_use_runtimelinking" = yes; then
18469           shared_flag='${wl}-G'
18470         else
18471           shared_flag='${wl}-bM:SRE'
18472         fi
18473       fi
18474     fi
18475
18476     # It seems that -bexpall does not export symbols beginning with
18477     # underscore (_), so it is better to generate a list of symbols to export.
18478     always_export_symbols_CXX=yes
18479     if test "$aix_use_runtimelinking" = yes; then
18480       # Warning - without using the other runtime loading flags (-brtl),
18481       # -berok will link without error, but may produce a broken library.
18482       allow_undefined_flag_CXX='-berok'
18483       # Determine the default libpath from the value encoded in an empty executable.
18484       cat >conftest.$ac_ext <<_ACEOF
18485 /* confdefs.h.  */
18486 _ACEOF
18487 cat confdefs.h >>conftest.$ac_ext
18488 cat >>conftest.$ac_ext <<_ACEOF
18489 /* end confdefs.h.  */
18490
18491 int
18492 main ()
18493 {
18494
18495   ;
18496   return 0;
18497 }
18498 _ACEOF
18499 rm -f conftest.$ac_objext conftest$ac_exeext
18500 if { (ac_try="$ac_link"
18501 case "(($ac_try" in
18502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18503   *) ac_try_echo=$ac_try;;
18504 esac
18505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18506   (eval "$ac_link") 2>conftest.er1
18507   ac_status=$?
18508   grep -v '^ *+' conftest.er1 >conftest.err
18509   rm -f conftest.er1
18510   cat conftest.err >&5
18511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18512   (exit $ac_status); } &&
18513          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18514   { (case "(($ac_try" in
18515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18516   *) ac_try_echo=$ac_try;;
18517 esac
18518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18519   (eval "$ac_try") 2>&5
18520   ac_status=$?
18521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18522   (exit $ac_status); }; } &&
18523          { ac_try='test -s conftest$ac_exeext'
18524   { (case "(($ac_try" in
18525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18526   *) ac_try_echo=$ac_try;;
18527 esac
18528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18529   (eval "$ac_try") 2>&5
18530   ac_status=$?
18531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18532   (exit $ac_status); }; }; then
18533
18534 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18535 }'`
18536 # Check for a 64-bit object if we didn't find anything.
18537 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18538 }'`; fi
18539 else
18540   echo "$as_me: failed program was:" >&5
18541 sed 's/^/| /' conftest.$ac_ext >&5
18542
18543
18544 fi
18545
18546 rm -f core conftest.err conftest.$ac_objext \
18547       conftest$ac_exeext conftest.$ac_ext
18548 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18549
18550       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18551
18552       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"
18553      else
18554       if test "$host_cpu" = ia64; then
18555         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18556         allow_undefined_flag_CXX="-z nodefs"
18557         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"
18558       else
18559         # Determine the default libpath from the value encoded in an empty executable.
18560         cat >conftest.$ac_ext <<_ACEOF
18561 /* confdefs.h.  */
18562 _ACEOF
18563 cat confdefs.h >>conftest.$ac_ext
18564 cat >>conftest.$ac_ext <<_ACEOF
18565 /* end confdefs.h.  */
18566
18567 int
18568 main ()
18569 {
18570
18571   ;
18572   return 0;
18573 }
18574 _ACEOF
18575 rm -f conftest.$ac_objext conftest$ac_exeext
18576 if { (ac_try="$ac_link"
18577 case "(($ac_try" in
18578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18579   *) ac_try_echo=$ac_try;;
18580 esac
18581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18582   (eval "$ac_link") 2>conftest.er1
18583   ac_status=$?
18584   grep -v '^ *+' conftest.er1 >conftest.err
18585   rm -f conftest.er1
18586   cat conftest.err >&5
18587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18588   (exit $ac_status); } &&
18589          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18590   { (case "(($ac_try" in
18591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18592   *) ac_try_echo=$ac_try;;
18593 esac
18594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18595   (eval "$ac_try") 2>&5
18596   ac_status=$?
18597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18598   (exit $ac_status); }; } &&
18599          { ac_try='test -s conftest$ac_exeext'
18600   { (case "(($ac_try" in
18601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18602   *) ac_try_echo=$ac_try;;
18603 esac
18604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18605   (eval "$ac_try") 2>&5
18606   ac_status=$?
18607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18608   (exit $ac_status); }; }; then
18609
18610 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18611 }'`
18612 # Check for a 64-bit object if we didn't find anything.
18613 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; }
18614 }'`; fi
18615 else
18616   echo "$as_me: failed program was:" >&5
18617 sed 's/^/| /' conftest.$ac_ext >&5
18618
18619
18620 fi
18621
18622 rm -f core conftest.err conftest.$ac_objext \
18623       conftest$ac_exeext conftest.$ac_ext
18624 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18625
18626         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18627         # Warning - without using the other run time loading flags,
18628         # -berok will link without error, but may produce a broken library.
18629         no_undefined_flag_CXX=' ${wl}-bernotok'
18630         allow_undefined_flag_CXX=' ${wl}-berok'
18631         # Exported symbols can be pulled into shared objects from archives
18632         whole_archive_flag_spec_CXX='$convenience'
18633         archive_cmds_need_lc_CXX=yes
18634         # This is similar to how AIX traditionally builds its shared libraries.
18635         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'
18636       fi
18637     fi
18638     ;;
18639
18640   beos*)
18641     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18642       allow_undefined_flag_CXX=unsupported
18643       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18644       # support --undefined.  This deserves some investigation.  FIXME
18645       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18646     else
18647       ld_shlibs_CXX=no
18648     fi
18649     ;;
18650
18651   chorus*)
18652     case $cc_basename in
18653       *)
18654         # FIXME: insert proper C++ library support
18655         ld_shlibs_CXX=no
18656         ;;
18657     esac
18658     ;;
18659
18660   cygwin* | mingw* | pw32*)
18661     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18662     # as there is no search path for DLLs.
18663     hardcode_libdir_flag_spec_CXX='-L$libdir'
18664     allow_undefined_flag_CXX=unsupported
18665     always_export_symbols_CXX=no
18666     enable_shared_with_static_runtimes_CXX=yes
18667
18668     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18669       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'
18670       # If the export-symbols file already is a .def file (1st line
18671       # is EXPORTS), use it as is; otherwise, prepend...
18672       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18673         cp $export_symbols $output_objdir/$soname.def;
18674       else
18675         echo EXPORTS > $output_objdir/$soname.def;
18676         cat $export_symbols >> $output_objdir/$soname.def;
18677       fi~
18678       $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'
18679     else
18680       ld_shlibs_CXX=no
18681     fi
18682   ;;
18683       darwin* | rhapsody*)
18684         case $host_os in
18685         rhapsody* | darwin1.[012])
18686          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18687          ;;
18688        *) # Darwin 1.3 on
18689          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18690            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18691          else
18692            case ${MACOSX_DEPLOYMENT_TARGET} in
18693              10.[012])
18694                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18695                ;;
18696              10.*)
18697                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18698                ;;
18699            esac
18700          fi
18701          ;;
18702         esac
18703       archive_cmds_need_lc_CXX=no
18704       hardcode_direct_CXX=no
18705       hardcode_automatic_CXX=yes
18706       hardcode_shlibpath_var_CXX=unsupported
18707       whole_archive_flag_spec_CXX=''
18708       link_all_deplibs_CXX=yes
18709
18710     if test "$GXX" = yes ; then
18711       lt_int_apple_cc_single_mod=no
18712       output_verbose_link_cmd='echo'
18713       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18714        lt_int_apple_cc_single_mod=yes
18715       fi
18716       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18717        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18718       else
18719           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'
18720         fi
18721         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18722         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18723           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18724             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}'
18725           else
18726             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}'
18727           fi
18728             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}'
18729       else
18730       case $cc_basename in
18731         xlc*)
18732          output_verbose_link_cmd='echo'
18733           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'
18734           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18735           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18736           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}'
18737           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}'
18738           ;;
18739        *)
18740          ld_shlibs_CXX=no
18741           ;;
18742       esac
18743       fi
18744         ;;
18745
18746   dgux*)
18747     case $cc_basename in
18748       ec++*)
18749         # FIXME: insert proper C++ library support
18750         ld_shlibs_CXX=no
18751         ;;
18752       ghcx*)
18753         # Green Hills C++ Compiler
18754         # FIXME: insert proper C++ library support
18755         ld_shlibs_CXX=no
18756         ;;
18757       *)
18758         # FIXME: insert proper C++ library support
18759         ld_shlibs_CXX=no
18760         ;;
18761     esac
18762     ;;
18763   freebsd[12]*)
18764     # C++ shared libraries reported to be fairly broken before switch to ELF
18765     ld_shlibs_CXX=no
18766     ;;
18767   freebsd-elf*)
18768     archive_cmds_need_lc_CXX=no
18769     ;;
18770   freebsd* | kfreebsd*-gnu | dragonfly*)
18771     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18772     # conventions
18773     ld_shlibs_CXX=yes
18774     ;;
18775   gnu*)
18776     ;;
18777   hpux9*)
18778     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18779     hardcode_libdir_separator_CXX=:
18780     export_dynamic_flag_spec_CXX='${wl}-E'
18781     hardcode_direct_CXX=yes
18782     hardcode_minus_L_CXX=yes # Not in the search PATH,
18783                                 # but as the default
18784                                 # location of the library.
18785
18786     case $cc_basename in
18787     CC*)
18788       # FIXME: insert proper C++ library support
18789       ld_shlibs_CXX=no
18790       ;;
18791     aCC*)
18792       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'
18793       # Commands to make compiler produce verbose output that lists
18794       # what "hidden" libraries, object files and flags are used when
18795       # linking a shared library.
18796       #
18797       # There doesn't appear to be a way to prevent this compiler from
18798       # explicitly linking system object files so we need to strip them
18799       # from the output so that they don't get included in the library
18800       # dependencies.
18801       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'
18802       ;;
18803     *)
18804       if test "$GXX" = yes; then
18805         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'
18806       else
18807         # FIXME: insert proper C++ library support
18808         ld_shlibs_CXX=no
18809       fi
18810       ;;
18811     esac
18812     ;;
18813   hpux10*|hpux11*)
18814     if test $with_gnu_ld = no; then
18815       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18816       hardcode_libdir_separator_CXX=:
18817
18818       case $host_cpu in
18819       hppa*64*|ia64*)
18820         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
18821         ;;
18822       *)
18823         export_dynamic_flag_spec_CXX='${wl}-E'
18824         ;;
18825       esac
18826     fi
18827     case $host_cpu in
18828     hppa*64*|ia64*)
18829       hardcode_direct_CXX=no
18830       hardcode_shlibpath_var_CXX=no
18831       ;;
18832     *)
18833       hardcode_direct_CXX=yes
18834       hardcode_minus_L_CXX=yes # Not in the search PATH,
18835                                               # but as the default
18836                                               # location of the library.
18837       ;;
18838     esac
18839
18840     case $cc_basename in
18841       CC*)
18842         # FIXME: insert proper C++ library support
18843         ld_shlibs_CXX=no
18844         ;;
18845       aCC*)
18846         case $host_cpu in
18847         hppa*64*)
18848           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18849           ;;
18850         ia64*)
18851           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18852           ;;
18853         *)
18854           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18855           ;;
18856         esac
18857         # Commands to make compiler produce verbose output that lists
18858         # what "hidden" libraries, object files and flags are used when
18859         # linking a shared library.
18860         #
18861         # There doesn't appear to be a way to prevent this compiler from
18862         # explicitly linking system object files so we need to strip them
18863         # from the output so that they don't get included in the library
18864         # dependencies.
18865         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'
18866         ;;
18867       *)
18868         if test "$GXX" = yes; then
18869           if test $with_gnu_ld = no; then
18870             case $host_cpu in
18871             hppa*64*)
18872               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18873               ;;
18874             ia64*)
18875               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18876               ;;
18877             *)
18878               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'
18879               ;;
18880             esac
18881           fi
18882         else
18883           # FIXME: insert proper C++ library support
18884           ld_shlibs_CXX=no
18885         fi
18886         ;;
18887     esac
18888     ;;
18889   interix3*)
18890     hardcode_direct_CXX=no
18891     hardcode_shlibpath_var_CXX=no
18892     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18893     export_dynamic_flag_spec_CXX='${wl}-E'
18894     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18895     # Instead, shared libraries are loaded at an image base (0x10000000 by
18896     # default) and relocated if they conflict, which is a slow very memory
18897     # consuming and fragmenting process.  To avoid this, we pick a random,
18898     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18899     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18900     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'
18901     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'
18902     ;;
18903   irix5* | irix6*)
18904     case $cc_basename in
18905       CC*)
18906         # SGI C++
18907         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'
18908
18909         # Archives containing C++ object files must be created using
18910         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
18911         # necessary to make sure instantiated templates are included
18912         # in the archive.
18913         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18914         ;;
18915       *)
18916         if test "$GXX" = yes; then
18917           if test "$with_gnu_ld" = no; then
18918             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'
18919           else
18920             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'
18921           fi
18922         fi
18923         link_all_deplibs_CXX=yes
18924         ;;
18925     esac
18926     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18927     hardcode_libdir_separator_CXX=:
18928     ;;
18929   linux*)
18930     case $cc_basename in
18931       KCC*)
18932         # Kuck and Associates, Inc. (KAI) C++ Compiler
18933
18934         # KCC will only create a shared library if the output file
18935         # ends with ".so" (or ".sl" for HP-UX), so rename the library
18936         # to its proper name (with version) after linking.
18937         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'
18938         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'
18939         # Commands to make compiler produce verbose output that lists
18940         # what "hidden" libraries, object files and flags are used when
18941         # linking a shared library.
18942         #
18943         # There doesn't appear to be a way to prevent this compiler from
18944         # explicitly linking system object files so we need to strip them
18945         # from the output so that they don't get included in the library
18946         # dependencies.
18947         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'
18948
18949         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18950         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18951
18952         # Archives containing C++ object files must be created using
18953         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18954         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18955         ;;
18956       icpc*)
18957         # Intel C++
18958         with_gnu_ld=yes
18959         # version 8.0 and above of icpc choke on multiply defined symbols
18960         # if we add $predep_objects and $postdep_objects, however 7.1 and
18961         # earlier do not add the objects themselves.
18962         case `$CC -V 2>&1` in
18963         *"Version 7."*)
18964           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18965           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'
18966           ;;
18967         *)  # Version 8.0 or newer
18968           tmp_idyn=
18969           case $host_cpu in
18970             ia64*) tmp_idyn=' -i_dynamic';;
18971           esac
18972           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18973           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'
18974           ;;
18975         esac
18976         archive_cmds_need_lc_CXX=no
18977         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18978         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18979         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18980         ;;
18981       pgCC*)
18982         # Portland Group C++ compiler
18983         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18984         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'
18985
18986         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18987         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18988         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'
18989         ;;
18990       cxx*)
18991         # Compaq C++
18992         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18993         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'
18994
18995         runpath_var=LD_RUN_PATH
18996         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18997         hardcode_libdir_separator_CXX=:
18998
18999         # Commands to make compiler produce verbose output that lists
19000         # what "hidden" libraries, object files and flags are used when
19001         # linking a shared library.
19002         #
19003         # There doesn't appear to be a way to prevent this compiler from
19004         # explicitly linking system object files so we need to strip them
19005         # from the output so that they don't get included in the library
19006         # dependencies.
19007         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'
19008         ;;
19009     esac
19010     ;;
19011   lynxos*)
19012     # FIXME: insert proper C++ library support
19013     ld_shlibs_CXX=no
19014     ;;
19015   m88k*)
19016     # FIXME: insert proper C++ library support
19017     ld_shlibs_CXX=no
19018     ;;
19019   mvs*)
19020     case $cc_basename in
19021       cxx*)
19022         # FIXME: insert proper C++ library support
19023         ld_shlibs_CXX=no
19024         ;;
19025       *)
19026         # FIXME: insert proper C++ library support
19027         ld_shlibs_CXX=no
19028         ;;
19029     esac
19030     ;;
19031   netbsd*)
19032     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19033       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19034       wlarc=
19035       hardcode_libdir_flag_spec_CXX='-R$libdir'
19036       hardcode_direct_CXX=yes
19037       hardcode_shlibpath_var_CXX=no
19038     fi
19039     # Workaround some broken pre-1.5 toolchains
19040     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19041     ;;
19042   openbsd2*)
19043     # C++ shared libraries are fairly broken
19044     ld_shlibs_CXX=no
19045     ;;
19046   openbsd*)
19047     hardcode_direct_CXX=yes
19048     hardcode_shlibpath_var_CXX=no
19049     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19050     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19051     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19052       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19053       export_dynamic_flag_spec_CXX='${wl}-E'
19054       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19055     fi
19056     output_verbose_link_cmd='echo'
19057     ;;
19058   osf3*)
19059     case $cc_basename in
19060       KCC*)
19061         # Kuck and Associates, Inc. (KAI) C++ Compiler
19062
19063         # KCC will only create a shared library if the output file
19064         # ends with ".so" (or ".sl" for HP-UX), so rename the library
19065         # to its proper name (with version) after linking.
19066         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'
19067
19068         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19069         hardcode_libdir_separator_CXX=:
19070
19071         # Archives containing C++ object files must be created using
19072         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19073         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19074
19075         ;;
19076       RCC*)
19077         # Rational C++ 2.4.1
19078         # FIXME: insert proper C++ library support
19079         ld_shlibs_CXX=no
19080         ;;
19081       cxx*)
19082         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19083         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'
19084
19085         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19086         hardcode_libdir_separator_CXX=:
19087
19088         # Commands to make compiler produce verbose output that lists
19089         # what "hidden" libraries, object files and flags are used when
19090         # linking a shared library.
19091         #
19092         # There doesn't appear to be a way to prevent this compiler from
19093         # explicitly linking system object files so we need to strip them
19094         # from the output so that they don't get included in the library
19095         # dependencies.
19096         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'
19097         ;;
19098       *)
19099         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19100           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19101           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'
19102
19103           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19104           hardcode_libdir_separator_CXX=:
19105
19106           # Commands to make compiler produce verbose output that lists
19107           # what "hidden" libraries, object files and flags are used when
19108           # linking a shared library.
19109           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19110
19111         else
19112           # FIXME: insert proper C++ library support
19113           ld_shlibs_CXX=no
19114         fi
19115         ;;
19116     esac
19117     ;;
19118   osf4* | osf5*)
19119     case $cc_basename in
19120       KCC*)
19121         # Kuck and Associates, Inc. (KAI) C++ Compiler
19122
19123         # KCC will only create a shared library if the output file
19124         # ends with ".so" (or ".sl" for HP-UX), so rename the library
19125         # to its proper name (with version) after linking.
19126         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'
19127
19128         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19129         hardcode_libdir_separator_CXX=:
19130
19131         # Archives containing C++ object files must be created using
19132         # the KAI C++ compiler.
19133         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19134         ;;
19135       RCC*)
19136         # Rational C++ 2.4.1
19137         # FIXME: insert proper C++ library support
19138         ld_shlibs_CXX=no
19139         ;;
19140       cxx*)
19141         allow_undefined_flag_CXX=' -expect_unresolved \*'
19142         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'
19143         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19144           echo "-hidden">> $lib.exp~
19145           $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~
19146           $rm $lib.exp'
19147
19148         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19149         hardcode_libdir_separator_CXX=:
19150
19151         # Commands to make compiler produce verbose output that lists
19152         # what "hidden" libraries, object files and flags are used when
19153         # linking a shared library.
19154         #
19155         # There doesn't appear to be a way to prevent this compiler from
19156         # explicitly linking system object files so we need to strip them
19157         # from the output so that they don't get included in the library
19158         # dependencies.
19159         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'
19160         ;;
19161       *)
19162         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19163           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19164          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'
19165
19166           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19167           hardcode_libdir_separator_CXX=:
19168
19169           # Commands to make compiler produce verbose output that lists
19170           # what "hidden" libraries, object files and flags are used when
19171           # linking a shared library.
19172           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19173
19174         else
19175           # FIXME: insert proper C++ library support
19176           ld_shlibs_CXX=no
19177         fi
19178         ;;
19179     esac
19180     ;;
19181   psos*)
19182     # FIXME: insert proper C++ library support
19183     ld_shlibs_CXX=no
19184     ;;
19185   sunos4*)
19186     case $cc_basename in
19187       CC*)
19188         # Sun C++ 4.x
19189         # FIXME: insert proper C++ library support
19190         ld_shlibs_CXX=no
19191         ;;
19192       lcc*)
19193         # Lucid
19194         # FIXME: insert proper C++ library support
19195         ld_shlibs_CXX=no
19196         ;;
19197       *)
19198         # FIXME: insert proper C++ library support
19199         ld_shlibs_CXX=no
19200         ;;
19201     esac
19202     ;;
19203   solaris*)
19204     case $cc_basename in
19205       CC*)
19206         # Sun C++ 4.2, 5.x and Centerline C++
19207         archive_cmds_need_lc_CXX=yes
19208         no_undefined_flag_CXX=' -zdefs'
19209         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19210         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19211         $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'
19212
19213         hardcode_libdir_flag_spec_CXX='-R$libdir'
19214         hardcode_shlibpath_var_CXX=no
19215         case $host_os in
19216           solaris2.[0-5] | solaris2.[0-5].*) ;;
19217           *)
19218             # The C++ compiler is used as linker so we must use $wl
19219             # flag to pass the commands to the underlying system
19220             # linker. We must also pass each convience library through
19221             # to the system linker between allextract/defaultextract.
19222             # The C++ compiler will combine linker options so we
19223             # cannot just pass the convience library names through
19224             # without $wl.
19225             # Supported since Solaris 2.6 (maybe 2.5.1?)
19226             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'
19227             ;;
19228         esac
19229         link_all_deplibs_CXX=yes
19230
19231         output_verbose_link_cmd='echo'
19232
19233         # Archives containing C++ object files must be created using
19234         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
19235         # necessary to make sure instantiated templates are included
19236         # in the archive.
19237         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19238         ;;
19239       gcx*)
19240         # Green Hills C++ Compiler
19241         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19242
19243         # The C++ compiler must be used to create the archive.
19244         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19245         ;;
19246       *)
19247         # GNU C++ compiler with Solaris linker
19248         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19249           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19250           if $CC --version | grep -v '^2\.7' > /dev/null; then
19251             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19252             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19253                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19254
19255             # Commands to make compiler produce verbose output that lists
19256             # what "hidden" libraries, object files and flags are used when
19257             # linking a shared library.
19258             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19259           else
19260             # g++ 2.7 appears to require `-G' NOT `-shared' on this
19261             # platform.
19262             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19263             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19264                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19265
19266             # Commands to make compiler produce verbose output that lists
19267             # what "hidden" libraries, object files and flags are used when
19268             # linking a shared library.
19269             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19270           fi
19271
19272           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19273         fi
19274         ;;
19275     esac
19276     ;;
19277   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19278     no_undefined_flag_CXX='${wl}-z,text'
19279     archive_cmds_need_lc_CXX=no
19280     hardcode_shlibpath_var_CXX=no
19281     runpath_var='LD_RUN_PATH'
19282
19283     case $cc_basename in
19284       CC*)
19285         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19286         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19287         ;;
19288       *)
19289         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19290         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19291         ;;
19292     esac
19293     ;;
19294   sysv5* | sco3.2v5* | sco5v6*)
19295     # Note: We can NOT use -z defs as we might desire, because we do not
19296     # link with -lc, and that would cause any symbols used from libc to
19297     # always be unresolved, which means just about no library would
19298     # ever link correctly.  If we're not using GNU ld we use -z text
19299     # though, which does catch some bad symbols but isn't as heavy-handed
19300     # as -z defs.
19301     # For security reasons, it is highly recommended that you always
19302     # use absolute paths for naming shared libraries, and exclude the
19303     # DT_RUNPATH tag from executables and libraries.  But doing so
19304     # requires that you compile everything twice, which is a pain.
19305     # So that behaviour is only enabled if SCOABSPATH is set to a
19306     # non-empty value in the environment.  Most likely only useful for
19307     # creating official distributions of packages.
19308     # This is a hack until libtool officially supports absolute path
19309     # names for shared libraries.
19310     no_undefined_flag_CXX='${wl}-z,text'
19311     allow_undefined_flag_CXX='${wl}-z,nodefs'
19312     archive_cmds_need_lc_CXX=no
19313     hardcode_shlibpath_var_CXX=no
19314     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19315     hardcode_libdir_separator_CXX=':'
19316     link_all_deplibs_CXX=yes
19317     export_dynamic_flag_spec_CXX='${wl}-Bexport'
19318     runpath_var='LD_RUN_PATH'
19319
19320     case $cc_basename in
19321       CC*)
19322         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19323         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19324         ;;
19325       *)
19326         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19327         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19328         ;;
19329     esac
19330     ;;
19331   tandem*)
19332     case $cc_basename in
19333       NCC*)
19334         # NonStop-UX NCC 3.20
19335         # FIXME: insert proper C++ library support
19336         ld_shlibs_CXX=no
19337         ;;
19338       *)
19339         # FIXME: insert proper C++ library support
19340         ld_shlibs_CXX=no
19341         ;;
19342     esac
19343     ;;
19344   vxworks*)
19345     # FIXME: insert proper C++ library support
19346     ld_shlibs_CXX=no
19347     ;;
19348   *)
19349     # FIXME: insert proper C++ library support
19350     ld_shlibs_CXX=no
19351     ;;
19352 esac
19353 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19354 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19355 test "$ld_shlibs_CXX" = no && can_build_shared=no
19356
19357 GCC_CXX="$GXX"
19358 LD_CXX="$LD"
19359
19360
19361 cat > conftest.$ac_ext <<EOF
19362 class Foo
19363 {
19364 public:
19365   Foo (void) { a = 0; }
19366 private:
19367   int a;
19368 };
19369 EOF
19370
19371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19372   (eval $ac_compile) 2>&5
19373   ac_status=$?
19374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19375   (exit $ac_status); }; then
19376   # Parse the compiler output and extract the necessary
19377   # objects, libraries and library flags.
19378
19379   # Sentinel used to keep track of whether or not we are before
19380   # the conftest object file.
19381   pre_test_object_deps_done=no
19382
19383   # The `*' in the case matches for architectures that use `case' in
19384   # $output_verbose_cmd can trigger glob expansion during the loop
19385   # eval without this substitution.
19386   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19387
19388   for p in `eval $output_verbose_link_cmd`; do
19389     case $p in
19390
19391     -L* | -R* | -l*)
19392        # Some compilers place space between "-{L,R}" and the path.
19393        # Remove the space.
19394        if test $p = "-L" \
19395           || test $p = "-R"; then
19396          prev=$p
19397          continue
19398        else
19399          prev=
19400        fi
19401
19402        if test "$pre_test_object_deps_done" = no; then
19403          case $p in
19404          -L* | -R*)
19405            # Internal compiler library paths should come after those
19406            # provided the user.  The postdeps already come after the
19407            # user supplied libs so there is no need to process them.
19408            if test -z "$compiler_lib_search_path_CXX"; then
19409              compiler_lib_search_path_CXX="${prev}${p}"
19410            else
19411              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19412            fi
19413            ;;
19414          # The "-l" case would never come before the object being
19415          # linked, so don't bother handling this case.
19416          esac
19417        else
19418          if test -z "$postdeps_CXX"; then
19419            postdeps_CXX="${prev}${p}"
19420          else
19421            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19422          fi
19423        fi
19424        ;;
19425
19426     *.$objext)
19427        # This assumes that the test object file only shows up
19428        # once in the compiler output.
19429        if test "$p" = "conftest.$objext"; then
19430          pre_test_object_deps_done=yes
19431          continue
19432        fi
19433
19434        if test "$pre_test_object_deps_done" = no; then
19435          if test -z "$predep_objects_CXX"; then
19436            predep_objects_CXX="$p"
19437          else
19438            predep_objects_CXX="$predep_objects_CXX $p"
19439          fi
19440        else
19441          if test -z "$postdep_objects_CXX"; then
19442            postdep_objects_CXX="$p"
19443          else
19444            postdep_objects_CXX="$postdep_objects_CXX $p"
19445          fi
19446        fi
19447        ;;
19448
19449     *) ;; # Ignore the rest.
19450
19451     esac
19452   done
19453
19454   # Clean up.
19455   rm -f a.out a.exe
19456 else
19457   echo "libtool.m4: error: problem compiling CXX test program"
19458 fi
19459
19460 $rm -f confest.$objext
19461
19462 # PORTME: override above test on systems where it is broken
19463 case $host_os in
19464 interix3*)
19465   # Interix 3.5 installs completely hosed .la files for C++, so rather than
19466   # hack all around it, let's just trust "g++" to DTRT.
19467   predep_objects_CXX=
19468   postdep_objects_CXX=
19469   postdeps_CXX=
19470   ;;
19471
19472 solaris*)
19473   case $cc_basename in
19474   CC*)
19475     # Adding this requires a known-good setup of shared libraries for
19476     # Sun compiler versions before 5.6, else PIC objects from an old
19477     # archive will be linked into the output, leading to subtle bugs.
19478     postdeps_CXX='-lCstd -lCrun'
19479     ;;
19480   esac
19481   ;;
19482 esac
19483
19484
19485 case " $postdeps_CXX " in
19486 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19487 esac
19488
19489 lt_prog_compiler_wl_CXX=
19490 lt_prog_compiler_pic_CXX=
19491 lt_prog_compiler_static_CXX=
19492
19493 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19494 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19495
19496   # C++ specific cases for pic, static, wl, etc.
19497   if test "$GXX" = yes; then
19498     lt_prog_compiler_wl_CXX='-Wl,'
19499     lt_prog_compiler_static_CXX='-static'
19500
19501     case $host_os in
19502     aix*)
19503       # All AIX code is PIC.
19504       if test "$host_cpu" = ia64; then
19505         # AIX 5 now supports IA64 processor
19506         lt_prog_compiler_static_CXX='-Bstatic'
19507       fi
19508       ;;
19509     amigaos*)
19510       # FIXME: we need at least 68020 code to build shared libraries, but
19511       # adding the `-m68020' flag to GCC prevents building anything better,
19512       # like `-m68040'.
19513       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19514       ;;
19515     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19516       # PIC is the default for these OSes.
19517       ;;
19518     mingw* | os2* | pw32*)
19519       # This hack is so that the source file can tell whether it is being
19520       # built for inclusion in a dll (and should export symbols for example).
19521       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19522       ;;
19523     darwin* | rhapsody*)
19524       # PIC is the default on this platform
19525       # Common symbols not allowed in MH_DYLIB files
19526       lt_prog_compiler_pic_CXX='-fno-common'
19527       ;;
19528     *djgpp*)
19529       # DJGPP does not support shared libraries at all
19530       lt_prog_compiler_pic_CXX=
19531       ;;
19532     interix3*)
19533       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19534       # Instead, we relocate shared libraries at runtime.
19535       ;;
19536     sysv4*MP*)
19537       if test -d /usr/nec; then
19538         lt_prog_compiler_pic_CXX=-Kconform_pic
19539       fi
19540       ;;
19541     hpux*)
19542       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19543       # not for PA HP-UX.
19544       case $host_cpu in
19545       hppa*64*|ia64*)
19546         ;;
19547       *)
19548         lt_prog_compiler_pic_CXX='-fPIC'
19549         ;;
19550       esac
19551       ;;
19552     *)
19553       lt_prog_compiler_pic_CXX='-fPIC'
19554       ;;
19555     esac
19556   else
19557     case $host_os in
19558       aix4* | aix5*)
19559         # All AIX code is PIC.
19560         if test "$host_cpu" = ia64; then
19561           # AIX 5 now supports IA64 processor
19562           lt_prog_compiler_static_CXX='-Bstatic'
19563         else
19564           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19565         fi
19566         ;;
19567       chorus*)
19568         case $cc_basename in
19569         cxch68*)
19570           # Green Hills C++ Compiler
19571           # _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"
19572           ;;
19573         esac
19574         ;;
19575        darwin*)
19576          # PIC is the default on this platform
19577          # Common symbols not allowed in MH_DYLIB files
19578          case $cc_basename in
19579            xlc*)
19580            lt_prog_compiler_pic_CXX='-qnocommon'
19581            lt_prog_compiler_wl_CXX='-Wl,'
19582            ;;
19583          esac
19584        ;;
19585       dgux*)
19586         case $cc_basename in
19587           ec++*)
19588             lt_prog_compiler_pic_CXX='-KPIC'
19589             ;;
19590           ghcx*)
19591             # Green Hills C++ Compiler
19592             lt_prog_compiler_pic_CXX='-pic'
19593             ;;
19594           *)
19595             ;;
19596         esac
19597         ;;
19598       freebsd* | kfreebsd*-gnu | dragonfly*)
19599         # FreeBSD uses GNU C++
19600         ;;
19601       hpux9* | hpux10* | hpux11*)
19602         case $cc_basename in
19603           CC*)
19604             lt_prog_compiler_wl_CXX='-Wl,'
19605             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19606             if test "$host_cpu" != ia64; then
19607               lt_prog_compiler_pic_CXX='+Z'
19608             fi
19609             ;;
19610           aCC*)
19611             lt_prog_compiler_wl_CXX='-Wl,'
19612             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19613             case $host_cpu in
19614             hppa*64*|ia64*)
19615               # +Z the default
19616               ;;
19617             *)
19618               lt_prog_compiler_pic_CXX='+Z'
19619               ;;
19620             esac
19621             ;;
19622           *)
19623             ;;
19624         esac
19625         ;;
19626       interix*)
19627         # This is c89, which is MS Visual C++ (no shared libs)
19628         # Anyone wants to do a port?
19629         ;;
19630       irix5* | irix6* | nonstopux*)
19631         case $cc_basename in
19632           CC*)
19633             lt_prog_compiler_wl_CXX='-Wl,'
19634             lt_prog_compiler_static_CXX='-non_shared'
19635             # CC pic flag -KPIC is the default.
19636             ;;
19637           *)
19638             ;;
19639         esac
19640         ;;
19641       linux*)
19642         case $cc_basename in
19643           KCC*)
19644             # KAI C++ Compiler
19645             lt_prog_compiler_wl_CXX='--backend -Wl,'
19646             lt_prog_compiler_pic_CXX='-fPIC'
19647             ;;
19648           icpc* | ecpc*)
19649             # Intel C++
19650             lt_prog_compiler_wl_CXX='-Wl,'
19651             lt_prog_compiler_pic_CXX='-KPIC'
19652             lt_prog_compiler_static_CXX='-static'
19653             ;;
19654           pgCC*)
19655             # Portland Group C++ compiler.
19656             lt_prog_compiler_wl_CXX='-Wl,'
19657             lt_prog_compiler_pic_CXX='-fpic'
19658             lt_prog_compiler_static_CXX='-Bstatic'
19659             ;;
19660           cxx*)
19661             # Compaq C++
19662             # Make sure the PIC flag is empty.  It appears that all Alpha
19663             # Linux and Compaq Tru64 Unix objects are PIC.
19664             lt_prog_compiler_pic_CXX=
19665             lt_prog_compiler_static_CXX='-non_shared'
19666             ;;
19667           *)
19668             ;;
19669         esac
19670         ;;
19671       lynxos*)
19672         ;;
19673       m88k*)
19674         ;;
19675       mvs*)
19676         case $cc_basename in
19677           cxx*)
19678             lt_prog_compiler_pic_CXX='-W c,exportall'
19679             ;;
19680           *)
19681             ;;
19682         esac
19683         ;;
19684       netbsd*)
19685         ;;
19686       osf3* | osf4* | osf5*)
19687         case $cc_basename in
19688           KCC*)
19689             lt_prog_compiler_wl_CXX='--backend -Wl,'
19690             ;;
19691           RCC*)
19692             # Rational C++ 2.4.1
19693             lt_prog_compiler_pic_CXX='-pic'
19694             ;;
19695           cxx*)
19696             # Digital/Compaq C++
19697             lt_prog_compiler_wl_CXX='-Wl,'
19698             # Make sure the PIC flag is empty.  It appears that all Alpha
19699             # Linux and Compaq Tru64 Unix objects are PIC.
19700             lt_prog_compiler_pic_CXX=
19701             lt_prog_compiler_static_CXX='-non_shared'
19702             ;;
19703           *)
19704             ;;
19705         esac
19706         ;;
19707       psos*)
19708         ;;
19709       solaris*)
19710         case $cc_basename in
19711           CC*)
19712             # Sun C++ 4.2, 5.x and Centerline C++
19713             lt_prog_compiler_pic_CXX='-KPIC'
19714             lt_prog_compiler_static_CXX='-Bstatic'
19715             lt_prog_compiler_wl_CXX='-Qoption ld '
19716             ;;
19717           gcx*)
19718             # Green Hills C++ Compiler
19719             lt_prog_compiler_pic_CXX='-PIC'
19720             ;;
19721           *)
19722             ;;
19723         esac
19724         ;;
19725       sunos4*)
19726         case $cc_basename in
19727           CC*)
19728             # Sun C++ 4.x
19729             lt_prog_compiler_pic_CXX='-pic'
19730             lt_prog_compiler_static_CXX='-Bstatic'
19731             ;;
19732           lcc*)
19733             # Lucid
19734             lt_prog_compiler_pic_CXX='-pic'
19735             ;;
19736           *)
19737             ;;
19738         esac
19739         ;;
19740       tandem*)
19741         case $cc_basename in
19742           NCC*)
19743             # NonStop-UX NCC 3.20
19744             lt_prog_compiler_pic_CXX='-KPIC'
19745             ;;
19746           *)
19747             ;;
19748         esac
19749         ;;
19750       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19751         case $cc_basename in
19752           CC*)
19753             lt_prog_compiler_wl_CXX='-Wl,'
19754             lt_prog_compiler_pic_CXX='-KPIC'
19755             lt_prog_compiler_static_CXX='-Bstatic'
19756             ;;
19757         esac
19758         ;;
19759       vxworks*)
19760         ;;
19761       *)
19762         lt_prog_compiler_can_build_shared_CXX=no
19763         ;;
19764     esac
19765   fi
19766
19767 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19768 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19769
19770 #
19771 # Check to make sure the PIC flag actually works.
19772 #
19773 if test -n "$lt_prog_compiler_pic_CXX"; then
19774
19775 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19776 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19777 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19778   echo $ECHO_N "(cached) $ECHO_C" >&6
19779 else
19780   lt_prog_compiler_pic_works_CXX=no
19781   ac_outfile=conftest.$ac_objext
19782    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19783    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19784    # Insert the option either (1) after the last *FLAGS variable, or
19785    # (2) before a word containing "conftest.", or (3) at the end.
19786    # Note that $ac_compile itself does not contain backslashes and begins
19787    # with a dollar sign (not a hyphen), so the echo should work correctly.
19788    # The option is referenced via a variable to avoid confusing sed.
19789    lt_compile=`echo "$ac_compile" | $SED \
19790    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19791    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19792    -e 's:$: $lt_compiler_flag:'`
19793    (eval echo "\"\$as_me:19793: $lt_compile\"" >&5)
19794    (eval "$lt_compile" 2>conftest.err)
19795    ac_status=$?
19796    cat conftest.err >&5
19797    echo "$as_me:19797: \$? = $ac_status" >&5
19798    if (exit $ac_status) && test -s "$ac_outfile"; then
19799      # The compiler can only warn and ignore the option if not recognized
19800      # So say no if there are warnings other than the usual output.
19801      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19802      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19803      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19804        lt_prog_compiler_pic_works_CXX=yes
19805      fi
19806    fi
19807    $rm conftest*
19808
19809 fi
19810 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19811 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
19812
19813 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19814     case $lt_prog_compiler_pic_CXX in
19815      "" | " "*) ;;
19816      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19817      esac
19818 else
19819     lt_prog_compiler_pic_CXX=
19820      lt_prog_compiler_can_build_shared_CXX=no
19821 fi
19822
19823 fi
19824 case $host_os in
19825   # For platforms which do not support PIC, -DPIC is meaningless:
19826   *djgpp*)
19827     lt_prog_compiler_pic_CXX=
19828     ;;
19829   *)
19830     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19831     ;;
19832 esac
19833
19834 #
19835 # Check to make sure the static flag actually works.
19836 #
19837 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19838 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19839 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19840 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19841   echo $ECHO_N "(cached) $ECHO_C" >&6
19842 else
19843   lt_prog_compiler_static_works_CXX=no
19844    save_LDFLAGS="$LDFLAGS"
19845    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19846    printf "$lt_simple_link_test_code" > conftest.$ac_ext
19847    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19848      # The linker can only warn and ignore the option if not recognized
19849      # So say no if there are warnings
19850      if test -s conftest.err; then
19851        # Append any errors to the config.log.
19852        cat conftest.err 1>&5
19853        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19854        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19855        if diff conftest.exp conftest.er2 >/dev/null; then
19856          lt_prog_compiler_static_works_CXX=yes
19857        fi
19858      else
19859        lt_prog_compiler_static_works_CXX=yes
19860      fi
19861    fi
19862    $rm conftest*
19863    LDFLAGS="$save_LDFLAGS"
19864
19865 fi
19866 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19867 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19868
19869 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19870     :
19871 else
19872     lt_prog_compiler_static_CXX=
19873 fi
19874
19875
19876 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19877 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19878 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19879   echo $ECHO_N "(cached) $ECHO_C" >&6
19880 else
19881   lt_cv_prog_compiler_c_o_CXX=no
19882    $rm -r conftest 2>/dev/null
19883    mkdir conftest
19884    cd conftest
19885    mkdir out
19886    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19887
19888    lt_compiler_flag="-o out/conftest2.$ac_objext"
19889    # Insert the option either (1) after the last *FLAGS variable, or
19890    # (2) before a word containing "conftest.", or (3) at the end.
19891    # Note that $ac_compile itself does not contain backslashes and begins
19892    # with a dollar sign (not a hyphen), so the echo should work correctly.
19893    lt_compile=`echo "$ac_compile" | $SED \
19894    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19895    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19896    -e 's:$: $lt_compiler_flag:'`
19897    (eval echo "\"\$as_me:19897: $lt_compile\"" >&5)
19898    (eval "$lt_compile" 2>out/conftest.err)
19899    ac_status=$?
19900    cat out/conftest.err >&5
19901    echo "$as_me:19901: \$? = $ac_status" >&5
19902    if (exit $ac_status) && test -s out/conftest2.$ac_objext
19903    then
19904      # The compiler can only warn and ignore the option if not recognized
19905      # So say no if there are warnings
19906      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19907      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19908      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19909        lt_cv_prog_compiler_c_o_CXX=yes
19910      fi
19911    fi
19912    chmod u+w . 2>&5
19913    $rm conftest*
19914    # SGI C++ compiler will create directory out/ii_files/ for
19915    # template instantiation
19916    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19917    $rm out/* && rmdir out
19918    cd ..
19919    rmdir conftest
19920    $rm conftest*
19921
19922 fi
19923 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19924 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
19925
19926
19927 hard_links="nottested"
19928 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19929   # do not overwrite the value of need_locks provided by the user
19930   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19931 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19932   hard_links=yes
19933   $rm conftest*
19934   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19935   touch conftest.a
19936   ln conftest.a conftest.b 2>&5 || hard_links=no
19937   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19938   { echo "$as_me:$LINENO: result: $hard_links" >&5
19939 echo "${ECHO_T}$hard_links" >&6; }
19940   if test "$hard_links" = no; then
19941     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19942 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19943     need_locks=warn
19944   fi
19945 else
19946   need_locks=no
19947 fi
19948
19949 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19950 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19951
19952   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19953   case $host_os in
19954   aix4* | aix5*)
19955     # If we're using GNU nm, then we don't want the "-C" option.
19956     # -C means demangle to AIX nm, but means don't demangle with GNU nm
19957     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19958       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'
19959     else
19960       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'
19961     fi
19962     ;;
19963   pw32*)
19964     export_symbols_cmds_CXX="$ltdll_cmds"
19965   ;;
19966   cygwin* | mingw*)
19967     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'
19968   ;;
19969   *)
19970     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19971   ;;
19972   esac
19973
19974 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19975 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19976 test "$ld_shlibs_CXX" = no && can_build_shared=no
19977
19978 #
19979 # Do we need to explicitly link libc?
19980 #
19981 case "x$archive_cmds_need_lc_CXX" in
19982 x|xyes)
19983   # Assume -lc should be added
19984   archive_cmds_need_lc_CXX=yes
19985
19986   if test "$enable_shared" = yes && test "$GCC" = yes; then
19987     case $archive_cmds_CXX in
19988     *'~'*)
19989       # FIXME: we may have to deal with multi-command sequences.
19990       ;;
19991     '$CC '*)
19992       # Test whether the compiler implicitly links with -lc since on some
19993       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19994       # to ld, don't add -lc before -lgcc.
19995       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19996 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19997       $rm conftest*
19998       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19999
20000       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20001   (eval $ac_compile) 2>&5
20002   ac_status=$?
20003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20004   (exit $ac_status); } 2>conftest.err; then
20005         soname=conftest
20006         lib=conftest
20007         libobjs=conftest.$ac_objext
20008         deplibs=
20009         wl=$lt_prog_compiler_wl_CXX
20010         pic_flag=$lt_prog_compiler_pic_CXX
20011         compiler_flags=-v
20012         linker_flags=-v
20013         verstring=
20014         output_objdir=.
20015         libname=conftest
20016         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20017         allow_undefined_flag_CXX=
20018         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20019   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20020   ac_status=$?
20021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20022   (exit $ac_status); }
20023         then
20024           archive_cmds_need_lc_CXX=no
20025         else
20026           archive_cmds_need_lc_CXX=yes
20027         fi
20028         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20029       else
20030         cat conftest.err 1>&5
20031       fi
20032       $rm conftest*
20033       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20034 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
20035       ;;
20036     esac
20037   fi
20038   ;;
20039 esac
20040
20041 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20042 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
20043 library_names_spec=
20044 libname_spec='lib$name'
20045 soname_spec=
20046 shrext_cmds=".so"
20047 postinstall_cmds=
20048 postuninstall_cmds=
20049 finish_cmds=
20050 finish_eval=
20051 shlibpath_var=
20052 shlibpath_overrides_runpath=unknown
20053 version_type=none
20054 dynamic_linker="$host_os ld.so"
20055 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20056 if test "$GCC" = yes; then
20057   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20058   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20059     # if the path contains ";" then we assume it to be the separator
20060     # otherwise default to the standard path separator (i.e. ":") - it is
20061     # assumed that no part of a normal pathname contains ";" but that should
20062     # okay in the real world where ";" in dirpaths is itself problematic.
20063     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20064   else
20065     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20066   fi
20067 else
20068   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20069 fi
20070 need_lib_prefix=unknown
20071 hardcode_into_libs=no
20072
20073 # when you set need_version to no, make sure it does not cause -set_version
20074 # flags to be left without arguments
20075 need_version=unknown
20076
20077 case $host_os in
20078 aix3*)
20079   version_type=linux
20080   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20081   shlibpath_var=LIBPATH
20082
20083   # AIX 3 has no versioning support, so we append a major version to the name.
20084   soname_spec='${libname}${release}${shared_ext}$major'
20085   ;;
20086
20087 aix4* | aix5*)
20088   version_type=linux
20089   need_lib_prefix=no
20090   need_version=no
20091   hardcode_into_libs=yes
20092   if test "$host_cpu" = ia64; then
20093     # AIX 5 supports IA64
20094     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20095     shlibpath_var=LD_LIBRARY_PATH
20096   else
20097     # With GCC up to 2.95.x, collect2 would create an import file
20098     # for dependence libraries.  The import file would start with
20099     # the line `#! .'.  This would cause the generated library to
20100     # depend on `.', always an invalid library.  This was fixed in
20101     # development snapshots of GCC prior to 3.0.
20102     case $host_os in
20103       aix4 | aix4.[01] | aix4.[01].*)
20104       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20105            echo ' yes '
20106            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20107         :
20108       else
20109         can_build_shared=no
20110       fi
20111       ;;
20112     esac
20113     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20114     # soname into executable. Probably we can add versioning support to
20115     # collect2, so additional links can be useful in future.
20116     if test "$aix_use_runtimelinking" = yes; then
20117       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20118       # instead of lib<name>.a to let people know that these are not
20119       # typical AIX shared libraries.
20120       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20121     else
20122       # We preserve .a as extension for shared libraries through AIX4.2
20123       # and later when we are not doing run time linking.
20124       library_names_spec='${libname}${release}.a $libname.a'
20125       soname_spec='${libname}${release}${shared_ext}$major'
20126     fi
20127     shlibpath_var=LIBPATH
20128   fi
20129   ;;
20130
20131 amigaos*)
20132   library_names_spec='$libname.ixlibrary $libname.a'
20133   # Create ${libname}_ixlibrary.a entries in /sys/libs.
20134   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'
20135   ;;
20136
20137 beos*)
20138   library_names_spec='${libname}${shared_ext}'
20139   dynamic_linker="$host_os ld.so"
20140   shlibpath_var=LIBRARY_PATH
20141   ;;
20142
20143 bsdi[45]*)
20144   version_type=linux
20145   need_version=no
20146   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20147   soname_spec='${libname}${release}${shared_ext}$major'
20148   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20149   shlibpath_var=LD_LIBRARY_PATH
20150   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20151   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20152   # the default ld.so.conf also contains /usr/contrib/lib and
20153   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20154   # libtool to hard-code these into programs
20155   ;;
20156
20157 cygwin* | mingw* | pw32*)
20158   version_type=windows
20159   shrext_cmds=".dll"
20160   need_version=no
20161   need_lib_prefix=no
20162
20163   case $GCC,$host_os in
20164   yes,cygwin* | yes,mingw* | yes,pw32*)
20165     library_names_spec='$libname.dll.a'
20166     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20167     postinstall_cmds='base_file=`basename \${file}`~
20168       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20169       dldir=$destdir/`dirname \$dlpath`~
20170       test -d \$dldir || mkdir -p \$dldir~
20171       $install_prog $dir/$dlname \$dldir/$dlname~
20172       chmod a+x \$dldir/$dlname'
20173     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20174       dlpath=$dir/\$dldll~
20175        $rm \$dlpath'
20176     shlibpath_overrides_runpath=yes
20177
20178     case $host_os in
20179     cygwin*)
20180       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20181       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20182       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20183       ;;
20184     mingw*)
20185       # MinGW DLLs use traditional 'lib' prefix
20186       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20187       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20188       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20189         # It is most probably a Windows format PATH printed by
20190         # mingw gcc, but we are running on Cygwin. Gcc prints its search
20191         # path with ; separators, and with drive letters. We can handle the
20192         # drive letters (cygwin fileutils understands them), so leave them,
20193         # especially as we might pass files found there to a mingw objdump,
20194         # which wouldn't understand a cygwinified path. Ahh.
20195         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20196       else
20197         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20198       fi
20199       ;;
20200     pw32*)
20201       # pw32 DLLs use 'pw' prefix rather than 'lib'
20202       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20203       ;;
20204     esac
20205     ;;
20206
20207   *)
20208     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20209     ;;
20210   esac
20211   dynamic_linker='Win32 ld.exe'
20212   # FIXME: first we should search . and the directory the executable is in
20213   shlibpath_var=PATH
20214   ;;
20215
20216 darwin* | rhapsody*)
20217   dynamic_linker="$host_os dyld"
20218   version_type=darwin
20219   need_lib_prefix=no
20220   need_version=no
20221   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20222   soname_spec='${libname}${release}${major}$shared_ext'
20223   shlibpath_overrides_runpath=yes
20224   shlibpath_var=DYLD_LIBRARY_PATH
20225   shrext_cmds='.dylib'
20226   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20227   if test "$GCC" = yes; then
20228     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"`
20229   else
20230     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20231   fi
20232   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20233   ;;
20234
20235 dgux*)
20236   version_type=linux
20237   need_lib_prefix=no
20238   need_version=no
20239   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20240   soname_spec='${libname}${release}${shared_ext}$major'
20241   shlibpath_var=LD_LIBRARY_PATH
20242   ;;
20243
20244 freebsd1*)
20245   dynamic_linker=no
20246   ;;
20247
20248 kfreebsd*-gnu)
20249   version_type=linux
20250   need_lib_prefix=no
20251   need_version=no
20252   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20253   soname_spec='${libname}${release}${shared_ext}$major'
20254   shlibpath_var=LD_LIBRARY_PATH
20255   shlibpath_overrides_runpath=no
20256   hardcode_into_libs=yes
20257   dynamic_linker='GNU ld.so'
20258   ;;
20259
20260 freebsd* | dragonfly*)
20261   # DragonFly does not have aout.  When/if they implement a new
20262   # versioning mechanism, adjust this.
20263   if test -x /usr/bin/objformat; then
20264     objformat=`/usr/bin/objformat`
20265   else
20266     case $host_os in
20267     freebsd[123]*) objformat=aout ;;
20268     *) objformat=elf ;;
20269     esac
20270   fi
20271   version_type=freebsd-$objformat
20272   case $version_type in
20273     freebsd-elf*)
20274       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20275       need_version=no
20276       need_lib_prefix=no
20277       ;;
20278     freebsd-*)
20279       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20280       need_version=yes
20281       ;;
20282   esac
20283   shlibpath_var=LD_LIBRARY_PATH
20284   case $host_os in
20285   freebsd2*)
20286     shlibpath_overrides_runpath=yes
20287     ;;
20288   freebsd3.[01]* | freebsdelf3.[01]*)
20289     shlibpath_overrides_runpath=yes
20290     hardcode_into_libs=yes
20291     ;;
20292   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20293   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20294     shlibpath_overrides_runpath=no
20295     hardcode_into_libs=yes
20296     ;;
20297   freebsd*) # from 4.6 on
20298     shlibpath_overrides_runpath=yes
20299     hardcode_into_libs=yes
20300     ;;
20301   esac
20302   ;;
20303
20304 gnu*)
20305   version_type=linux
20306   need_lib_prefix=no
20307   need_version=no
20308   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20309   soname_spec='${libname}${release}${shared_ext}$major'
20310   shlibpath_var=LD_LIBRARY_PATH
20311   hardcode_into_libs=yes
20312   ;;
20313
20314 hpux9* | hpux10* | hpux11*)
20315   # Give a soname corresponding to the major version so that dld.sl refuses to
20316   # link against other versions.
20317   version_type=sunos
20318   need_lib_prefix=no
20319   need_version=no
20320   case $host_cpu in
20321   ia64*)
20322     shrext_cmds='.so'
20323     hardcode_into_libs=yes
20324     dynamic_linker="$host_os dld.so"
20325     shlibpath_var=LD_LIBRARY_PATH
20326     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20327     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20328     soname_spec='${libname}${release}${shared_ext}$major'
20329     if test "X$HPUX_IA64_MODE" = X32; then
20330       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20331     else
20332       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20333     fi
20334     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20335     ;;
20336    hppa*64*)
20337      shrext_cmds='.sl'
20338      hardcode_into_libs=yes
20339      dynamic_linker="$host_os dld.sl"
20340      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20341      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20342      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20343      soname_spec='${libname}${release}${shared_ext}$major'
20344      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20345      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20346      ;;
20347    *)
20348     shrext_cmds='.sl'
20349     dynamic_linker="$host_os dld.sl"
20350     shlibpath_var=SHLIB_PATH
20351     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20352     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20353     soname_spec='${libname}${release}${shared_ext}$major'
20354     ;;
20355   esac
20356   # HP-UX runs *really* slowly unless shared libraries are mode 555.
20357   postinstall_cmds='chmod 555 $lib'
20358   ;;
20359
20360 interix3*)
20361   version_type=linux
20362   need_lib_prefix=no
20363   need_version=no
20364   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20365   soname_spec='${libname}${release}${shared_ext}$major'
20366   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20367   shlibpath_var=LD_LIBRARY_PATH
20368   shlibpath_overrides_runpath=no
20369   hardcode_into_libs=yes
20370   ;;
20371
20372 irix5* | irix6* | nonstopux*)
20373   case $host_os in
20374     nonstopux*) version_type=nonstopux ;;
20375     *)
20376         if test "$lt_cv_prog_gnu_ld" = yes; then
20377                 version_type=linux
20378         else
20379                 version_type=irix
20380         fi ;;
20381   esac
20382   need_lib_prefix=no
20383   need_version=no
20384   soname_spec='${libname}${release}${shared_ext}$major'
20385   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20386   case $host_os in
20387   irix5* | nonstopux*)
20388     libsuff= shlibsuff=
20389     ;;
20390   *)
20391     case $LD in # libtool.m4 will add one of these switches to LD
20392     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20393       libsuff= shlibsuff= libmagic=32-bit;;
20394     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20395       libsuff=32 shlibsuff=N32 libmagic=N32;;
20396     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20397       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20398     *) libsuff= shlibsuff= libmagic=never-match;;
20399     esac
20400     ;;
20401   esac
20402   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20403   shlibpath_overrides_runpath=no
20404   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20405   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20406   hardcode_into_libs=yes
20407   ;;
20408
20409 # No shared lib support for Linux oldld, aout, or coff.
20410 linux*oldld* | linux*aout* | linux*coff*)
20411   dynamic_linker=no
20412   ;;
20413
20414 # This must be Linux ELF.
20415 linux*)
20416   version_type=linux
20417   need_lib_prefix=no
20418   need_version=no
20419   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20420   soname_spec='${libname}${release}${shared_ext}$major'
20421   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20422   shlibpath_var=LD_LIBRARY_PATH
20423   shlibpath_overrides_runpath=no
20424   # This implies no fast_install, which is unacceptable.
20425   # Some rework will be needed to allow for fast_install
20426   # before this can be enabled.
20427   hardcode_into_libs=yes
20428
20429   # Append ld.so.conf contents to the search path
20430   if test -f /etc/ld.so.conf; then
20431     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' ' '`
20432     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20433   fi
20434
20435   # We used to test for /lib/ld.so.1 and disable shared libraries on
20436   # powerpc, because MkLinux only supported shared libraries with the
20437   # GNU dynamic linker.  Since this was broken with cross compilers,
20438   # most powerpc-linux boxes support dynamic linking these days and
20439   # people can always --disable-shared, the test was removed, and we
20440   # assume the GNU/Linux dynamic linker is in use.
20441   dynamic_linker='GNU/Linux ld.so'
20442   ;;
20443
20444 knetbsd*-gnu)
20445   version_type=linux
20446   need_lib_prefix=no
20447   need_version=no
20448   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20449   soname_spec='${libname}${release}${shared_ext}$major'
20450   shlibpath_var=LD_LIBRARY_PATH
20451   shlibpath_overrides_runpath=no
20452   hardcode_into_libs=yes
20453   dynamic_linker='GNU ld.so'
20454   ;;
20455
20456 netbsd*)
20457   version_type=sunos
20458   need_lib_prefix=no
20459   need_version=no
20460   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20461     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20462     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20463     dynamic_linker='NetBSD (a.out) ld.so'
20464   else
20465     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20466     soname_spec='${libname}${release}${shared_ext}$major'
20467     dynamic_linker='NetBSD ld.elf_so'
20468   fi
20469   shlibpath_var=LD_LIBRARY_PATH
20470   shlibpath_overrides_runpath=yes
20471   hardcode_into_libs=yes
20472   ;;
20473
20474 newsos6)
20475   version_type=linux
20476   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20477   shlibpath_var=LD_LIBRARY_PATH
20478   shlibpath_overrides_runpath=yes
20479   ;;
20480
20481 nto-qnx*)
20482   version_type=linux
20483   need_lib_prefix=no
20484   need_version=no
20485   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20486   soname_spec='${libname}${release}${shared_ext}$major'
20487   shlibpath_var=LD_LIBRARY_PATH
20488   shlibpath_overrides_runpath=yes
20489   ;;
20490
20491 openbsd*)
20492   version_type=sunos
20493   sys_lib_dlsearch_path_spec="/usr/lib"
20494   need_lib_prefix=no
20495   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20496   case $host_os in
20497     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20498     *)                         need_version=no  ;;
20499   esac
20500   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20501   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20502   shlibpath_var=LD_LIBRARY_PATH
20503   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20504     case $host_os in
20505       openbsd2.[89] | openbsd2.[89].*)
20506         shlibpath_overrides_runpath=no
20507         ;;
20508       *)
20509         shlibpath_overrides_runpath=yes
20510         ;;
20511       esac
20512   else
20513     shlibpath_overrides_runpath=yes
20514   fi
20515   ;;
20516
20517 os2*)
20518   libname_spec='$name'
20519   shrext_cmds=".dll"
20520   need_lib_prefix=no
20521   library_names_spec='$libname${shared_ext} $libname.a'
20522   dynamic_linker='OS/2 ld.exe'
20523   shlibpath_var=LIBPATH
20524   ;;
20525
20526 osf3* | osf4* | osf5*)
20527   version_type=osf
20528   need_lib_prefix=no
20529   need_version=no
20530   soname_spec='${libname}${release}${shared_ext}$major'
20531   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20532   shlibpath_var=LD_LIBRARY_PATH
20533   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20534   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20535   ;;
20536
20537 solaris*)
20538   version_type=linux
20539   need_lib_prefix=no
20540   need_version=no
20541   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20542   soname_spec='${libname}${release}${shared_ext}$major'
20543   shlibpath_var=LD_LIBRARY_PATH
20544   shlibpath_overrides_runpath=yes
20545   hardcode_into_libs=yes
20546   # ldd complains unless libraries are executable
20547   postinstall_cmds='chmod +x $lib'
20548   ;;
20549
20550 sunos4*)
20551   version_type=sunos
20552   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20553   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20554   shlibpath_var=LD_LIBRARY_PATH
20555   shlibpath_overrides_runpath=yes
20556   if test "$with_gnu_ld" = yes; then
20557     need_lib_prefix=no
20558   fi
20559   need_version=yes
20560   ;;
20561
20562 sysv4 | sysv4.3*)
20563   version_type=linux
20564   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20565   soname_spec='${libname}${release}${shared_ext}$major'
20566   shlibpath_var=LD_LIBRARY_PATH
20567   case $host_vendor in
20568     sni)
20569       shlibpath_overrides_runpath=no
20570       need_lib_prefix=no
20571       export_dynamic_flag_spec='${wl}-Blargedynsym'
20572       runpath_var=LD_RUN_PATH
20573       ;;
20574     siemens)
20575       need_lib_prefix=no
20576       ;;
20577     motorola)
20578       need_lib_prefix=no
20579       need_version=no
20580       shlibpath_overrides_runpath=no
20581       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20582       ;;
20583   esac
20584   ;;
20585
20586 sysv4*MP*)
20587   if test -d /usr/nec ;then
20588     version_type=linux
20589     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20590     soname_spec='$libname${shared_ext}.$major'
20591     shlibpath_var=LD_LIBRARY_PATH
20592   fi
20593   ;;
20594
20595 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20596   version_type=freebsd-elf
20597   need_lib_prefix=no
20598   need_version=no
20599   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20600   soname_spec='${libname}${release}${shared_ext}$major'
20601   shlibpath_var=LD_LIBRARY_PATH
20602   hardcode_into_libs=yes
20603   if test "$with_gnu_ld" = yes; then
20604     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20605     shlibpath_overrides_runpath=no
20606   else
20607     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20608     shlibpath_overrides_runpath=yes
20609     case $host_os in
20610       sco3.2v5*)
20611         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20612         ;;
20613     esac
20614   fi
20615   sys_lib_dlsearch_path_spec='/usr/lib'
20616   ;;
20617
20618 uts4*)
20619   version_type=linux
20620   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20621   soname_spec='${libname}${release}${shared_ext}$major'
20622   shlibpath_var=LD_LIBRARY_PATH
20623   ;;
20624
20625 *)
20626   dynamic_linker=no
20627   ;;
20628 esac
20629 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20630 echo "${ECHO_T}$dynamic_linker" >&6; }
20631 test "$dynamic_linker" = no && can_build_shared=no
20632
20633 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20634 if test "$GCC" = yes; then
20635   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20636 fi
20637
20638 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20639 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20640 hardcode_action_CXX=
20641 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20642    test -n "$runpath_var_CXX" || \
20643    test "X$hardcode_automatic_CXX" = "Xyes" ; then
20644
20645   # We can hardcode non-existant directories.
20646   if test "$hardcode_direct_CXX" != no &&
20647      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20648      # have to relink, otherwise we might link with an installed library
20649      # when we should be linking with a yet-to-be-installed one
20650      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20651      test "$hardcode_minus_L_CXX" != no; then
20652     # Linking always hardcodes the temporary library directory.
20653     hardcode_action_CXX=relink
20654   else
20655     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20656     hardcode_action_CXX=immediate
20657   fi
20658 else
20659   # We cannot hardcode anything, or else we can only hardcode existing
20660   # directories.
20661   hardcode_action_CXX=unsupported
20662 fi
20663 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20664 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20665
20666 if test "$hardcode_action_CXX" = relink; then
20667   # Fast installation is not supported
20668   enable_fast_install=no
20669 elif test "$shlibpath_overrides_runpath" = yes ||
20670      test "$enable_shared" = no; then
20671   # Fast installation is not necessary
20672   enable_fast_install=needless
20673 fi
20674
20675
20676 # The else clause should only fire when bootstrapping the
20677 # libtool distribution, otherwise you forgot to ship ltmain.sh
20678 # with your package, and you will get complaints that there are
20679 # no rules to generate ltmain.sh.
20680 if test -f "$ltmain"; then
20681   # See if we are running on zsh, and set the options which allow our commands through
20682   # without removal of \ escapes.
20683   if test -n "${ZSH_VERSION+set}" ; then
20684     setopt NO_GLOB_SUBST
20685   fi
20686   # Now quote all the things that may contain metacharacters while being
20687   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20688   # variables and quote the copies for generation of the libtool script.
20689   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20690     SED SHELL STRIP \
20691     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20692     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20693     deplibs_check_method reload_flag reload_cmds need_locks \
20694     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20695     lt_cv_sys_global_symbol_to_c_name_address \
20696     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20697     old_postinstall_cmds old_postuninstall_cmds \
20698     compiler_CXX \
20699     CC_CXX \
20700     LD_CXX \
20701     lt_prog_compiler_wl_CXX \
20702     lt_prog_compiler_pic_CXX \
20703     lt_prog_compiler_static_CXX \
20704     lt_prog_compiler_no_builtin_flag_CXX \
20705     export_dynamic_flag_spec_CXX \
20706     thread_safe_flag_spec_CXX \
20707     whole_archive_flag_spec_CXX \
20708     enable_shared_with_static_runtimes_CXX \
20709     old_archive_cmds_CXX \
20710     old_archive_from_new_cmds_CXX \
20711     predep_objects_CXX \
20712     postdep_objects_CXX \
20713     predeps_CXX \
20714     postdeps_CXX \
20715     compiler_lib_search_path_CXX \
20716     archive_cmds_CXX \
20717     archive_expsym_cmds_CXX \
20718     postinstall_cmds_CXX \
20719     postuninstall_cmds_CXX \
20720     old_archive_from_expsyms_cmds_CXX \
20721     allow_undefined_flag_CXX \
20722     no_undefined_flag_CXX \
20723     export_symbols_cmds_CXX \
20724     hardcode_libdir_flag_spec_CXX \
20725     hardcode_libdir_flag_spec_ld_CXX \
20726     hardcode_libdir_separator_CXX \
20727     hardcode_automatic_CXX \
20728     module_cmds_CXX \
20729     module_expsym_cmds_CXX \
20730     lt_cv_prog_compiler_c_o_CXX \
20731     exclude_expsyms_CXX \
20732     include_expsyms_CXX; do
20733
20734     case $var in
20735     old_archive_cmds_CXX | \
20736     old_archive_from_new_cmds_CXX | \
20737     archive_cmds_CXX | \
20738     archive_expsym_cmds_CXX | \
20739     module_cmds_CXX | \
20740     module_expsym_cmds_CXX | \
20741     old_archive_from_expsyms_cmds_CXX | \
20742     export_symbols_cmds_CXX | \
20743     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20744     postinstall_cmds | postuninstall_cmds | \
20745     old_postinstall_cmds | old_postuninstall_cmds | \
20746     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20747       # Double-quote double-evaled strings.
20748       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20749       ;;
20750     *)
20751       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20752       ;;
20753     esac
20754   done
20755
20756   case $lt_echo in
20757   *'\$0 --fallback-echo"')
20758     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20759     ;;
20760   esac
20761
20762 cfgfile="$ofile"
20763
20764   cat <<__EOF__ >> "$cfgfile"
20765 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20766
20767 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20768
20769 # Shell to use when invoking shell scripts.
20770 SHELL=$lt_SHELL
20771
20772 # Whether or not to build shared libraries.
20773 build_libtool_libs=$enable_shared
20774
20775 # Whether or not to build static libraries.
20776 build_old_libs=$enable_static
20777
20778 # Whether or not to add -lc for building shared libraries.
20779 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20780
20781 # Whether or not to disallow shared libs when runtime libs are static
20782 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20783
20784 # Whether or not to optimize for fast installation.
20785 fast_install=$enable_fast_install
20786
20787 # The host system.
20788 host_alias=$host_alias
20789 host=$host
20790 host_os=$host_os
20791
20792 # The build system.
20793 build_alias=$build_alias
20794 build=$build
20795 build_os=$build_os
20796
20797 # An echo program that does not interpret backslashes.
20798 echo=$lt_echo
20799
20800 # The archiver.
20801 AR=$lt_AR
20802 AR_FLAGS=$lt_AR_FLAGS
20803
20804 # A C compiler.
20805 LTCC=$lt_LTCC
20806
20807 # LTCC compiler flags.
20808 LTCFLAGS=$lt_LTCFLAGS
20809
20810 # A language-specific compiler.
20811 CC=$lt_compiler_CXX
20812
20813 # Is the compiler the GNU C compiler?
20814 with_gcc=$GCC_CXX
20815
20816 # An ERE matcher.
20817 EGREP=$lt_EGREP
20818
20819 # The linker used to build libraries.
20820 LD=$lt_LD_CXX
20821
20822 # Whether we need hard or soft links.
20823 LN_S=$lt_LN_S
20824
20825 # A BSD-compatible nm program.
20826 NM=$lt_NM
20827
20828 # A symbol stripping program
20829 STRIP=$lt_STRIP
20830
20831 # Used to examine libraries when file_magic_cmd begins "file"
20832 MAGIC_CMD=$MAGIC_CMD
20833
20834 # Used on cygwin: DLL creation program.
20835 DLLTOOL="$DLLTOOL"
20836
20837 # Used on cygwin: object dumper.
20838 OBJDUMP="$OBJDUMP"
20839
20840 # Used on cygwin: assembler.
20841 AS="$AS"
20842
20843 # The name of the directory that contains temporary libtool files.
20844 objdir=$objdir
20845
20846 # How to create reloadable object files.
20847 reload_flag=$lt_reload_flag
20848 reload_cmds=$lt_reload_cmds
20849
20850 # How to pass a linker flag through the compiler.
20851 wl=$lt_lt_prog_compiler_wl_CXX
20852
20853 # Object file suffix (normally "o").
20854 objext="$ac_objext"
20855
20856 # Old archive suffix (normally "a").
20857 libext="$libext"
20858
20859 # Shared library suffix (normally ".so").
20860 shrext_cmds='$shrext_cmds'
20861
20862 # Executable file suffix (normally "").
20863 exeext="$exeext"
20864
20865 # Additional compiler flags for building library objects.
20866 pic_flag=$lt_lt_prog_compiler_pic_CXX
20867 pic_mode=$pic_mode
20868
20869 # What is the maximum length of a command?
20870 max_cmd_len=$lt_cv_sys_max_cmd_len
20871
20872 # Does compiler simultaneously support -c and -o options?
20873 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20874
20875 # Must we lock files when doing compilation?
20876 need_locks=$lt_need_locks
20877
20878 # Do we need the lib prefix for modules?
20879 need_lib_prefix=$need_lib_prefix
20880
20881 # Do we need a version for libraries?
20882 need_version=$need_version
20883
20884 # Whether dlopen is supported.
20885 dlopen_support=$enable_dlopen
20886
20887 # Whether dlopen of programs is supported.
20888 dlopen_self=$enable_dlopen_self
20889
20890 # Whether dlopen of statically linked programs is supported.
20891 dlopen_self_static=$enable_dlopen_self_static
20892
20893 # Compiler flag to prevent dynamic linking.
20894 link_static_flag=$lt_lt_prog_compiler_static_CXX
20895
20896 # Compiler flag to turn off builtin functions.
20897 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20898
20899 # Compiler flag to allow reflexive dlopens.
20900 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20901
20902 # Compiler flag to generate shared objects directly from archives.
20903 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20904
20905 # Compiler flag to generate thread-safe objects.
20906 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20907
20908 # Library versioning type.
20909 version_type=$version_type
20910
20911 # Format of library name prefix.
20912 libname_spec=$lt_libname_spec
20913
20914 # List of archive names.  First name is the real one, the rest are links.
20915 # The last name is the one that the linker finds with -lNAME.
20916 library_names_spec=$lt_library_names_spec
20917
20918 # The coded name of the library, if different from the real name.
20919 soname_spec=$lt_soname_spec
20920
20921 # Commands used to build and install an old-style archive.
20922 RANLIB=$lt_RANLIB
20923 old_archive_cmds=$lt_old_archive_cmds_CXX
20924 old_postinstall_cmds=$lt_old_postinstall_cmds
20925 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20926
20927 # Create an old-style archive from a shared archive.
20928 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20929
20930 # Create a temporary old-style archive to link instead of a shared archive.
20931 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20932
20933 # Commands used to build and install a shared archive.
20934 archive_cmds=$lt_archive_cmds_CXX
20935 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20936 postinstall_cmds=$lt_postinstall_cmds
20937 postuninstall_cmds=$lt_postuninstall_cmds
20938
20939 # Commands used to build a loadable module (assumed same as above if empty)
20940 module_cmds=$lt_module_cmds_CXX
20941 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20942
20943 # Commands to strip libraries.
20944 old_striplib=$lt_old_striplib
20945 striplib=$lt_striplib
20946
20947 # Dependencies to place before the objects being linked to create a
20948 # shared library.
20949 predep_objects=$lt_predep_objects_CXX
20950
20951 # Dependencies to place after the objects being linked to create a
20952 # shared library.
20953 postdep_objects=$lt_postdep_objects_CXX
20954
20955 # Dependencies to place before the objects being linked to create a
20956 # shared library.
20957 predeps=$lt_predeps_CXX
20958
20959 # Dependencies to place after the objects being linked to create a
20960 # shared library.
20961 postdeps=$lt_postdeps_CXX
20962
20963 # The library search path used internally by the compiler when linking
20964 # a shared library.
20965 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20966
20967 # Method to check whether dependent libraries are shared objects.
20968 deplibs_check_method=$lt_deplibs_check_method
20969
20970 # Command to use when deplibs_check_method == file_magic.
20971 file_magic_cmd=$lt_file_magic_cmd
20972
20973 # Flag that allows shared libraries with undefined symbols to be built.
20974 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20975
20976 # Flag that forces no undefined symbols.
20977 no_undefined_flag=$lt_no_undefined_flag_CXX
20978
20979 # Commands used to finish a libtool library installation in a directory.
20980 finish_cmds=$lt_finish_cmds
20981
20982 # Same as above, but a single script fragment to be evaled but not shown.
20983 finish_eval=$lt_finish_eval
20984
20985 # Take the output of nm and produce a listing of raw symbols and C names.
20986 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20987
20988 # Transform the output of nm in a proper C declaration
20989 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20990
20991 # Transform the output of nm in a C name address pair
20992 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20993
20994 # This is the shared library runtime path variable.
20995 runpath_var=$runpath_var
20996
20997 # This is the shared library path variable.
20998 shlibpath_var=$shlibpath_var
20999
21000 # Is shlibpath searched before the hard-coded library search path?
21001 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21002
21003 # How to hardcode a shared library path into an executable.
21004 hardcode_action=$hardcode_action_CXX
21005
21006 # Whether we should hardcode library paths into libraries.
21007 hardcode_into_libs=$hardcode_into_libs
21008
21009 # Flag to hardcode \$libdir into a binary during linking.
21010 # This must work even if \$libdir does not exist.
21011 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21012
21013 # If ld is used when linking, flag to hardcode \$libdir into
21014 # a binary during linking. This must work even if \$libdir does
21015 # not exist.
21016 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21017
21018 # Whether we need a single -rpath flag with a separated argument.
21019 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21020
21021 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21022 # resulting binary.
21023 hardcode_direct=$hardcode_direct_CXX
21024
21025 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21026 # resulting binary.
21027 hardcode_minus_L=$hardcode_minus_L_CXX
21028
21029 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21030 # the resulting binary.
21031 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21032
21033 # Set to yes if building a shared library automatically hardcodes DIR into the library
21034 # and all subsequent libraries and executables linked against it.
21035 hardcode_automatic=$hardcode_automatic_CXX
21036
21037 # Variables whose values should be saved in libtool wrapper scripts and
21038 # restored at relink time.
21039 variables_saved_for_relink="$variables_saved_for_relink"
21040
21041 # Whether libtool must link a program against all its dependency libraries.
21042 link_all_deplibs=$link_all_deplibs_CXX
21043
21044 # Compile-time system search path for libraries
21045 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21046
21047 # Run-time system search path for libraries
21048 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21049
21050 # Fix the shell variable \$srcfile for the compiler.
21051 fix_srcfile_path="$fix_srcfile_path_CXX"
21052
21053 # Set to yes if exported symbols are required.
21054 always_export_symbols=$always_export_symbols_CXX
21055
21056 # The commands to list exported symbols.
21057 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21058
21059 # The commands to extract the exported symbol list from a shared archive.
21060 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21061
21062 # Symbols that should not be listed in the preloaded symbols.
21063 exclude_expsyms=$lt_exclude_expsyms_CXX
21064
21065 # Symbols that must always be exported.
21066 include_expsyms=$lt_include_expsyms_CXX
21067
21068 # ### END LIBTOOL TAG CONFIG: $tagname
21069
21070 __EOF__
21071
21072
21073 else
21074   # If there is no Makefile yet, we rely on a make rule to execute
21075   # `config.status --recheck' to rerun these tests and create the
21076   # libtool script then.
21077   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21078   if test -f "$ltmain_in"; then
21079     test -f Makefile && make "$ltmain"
21080   fi
21081 fi
21082
21083
21084 ac_ext=c
21085 ac_cpp='$CPP $CPPFLAGS'
21086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21089
21090 CC=$lt_save_CC
21091 LDCXX=$LD
21092 LD=$lt_save_LD
21093 GCC=$lt_save_GCC
21094 with_gnu_ldcxx=$with_gnu_ld
21095 with_gnu_ld=$lt_save_with_gnu_ld
21096 lt_cv_path_LDCXX=$lt_cv_path_LD
21097 lt_cv_path_LD=$lt_save_path_LD
21098 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21099 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21100
21101         else
21102           tagname=""
21103         fi
21104         ;;
21105
21106       F77)
21107         if test -n "$F77" && test "X$F77" != "Xno"; then
21108
21109 ac_ext=f
21110 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21111 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21112 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21113
21114
21115 archive_cmds_need_lc_F77=no
21116 allow_undefined_flag_F77=
21117 always_export_symbols_F77=no
21118 archive_expsym_cmds_F77=
21119 export_dynamic_flag_spec_F77=
21120 hardcode_direct_F77=no
21121 hardcode_libdir_flag_spec_F77=
21122 hardcode_libdir_flag_spec_ld_F77=
21123 hardcode_libdir_separator_F77=
21124 hardcode_minus_L_F77=no
21125 hardcode_automatic_F77=no
21126 module_cmds_F77=
21127 module_expsym_cmds_F77=
21128 link_all_deplibs_F77=unknown
21129 old_archive_cmds_F77=$old_archive_cmds
21130 no_undefined_flag_F77=
21131 whole_archive_flag_spec_F77=
21132 enable_shared_with_static_runtimes_F77=no
21133
21134 # Source file extension for f77 test sources.
21135 ac_ext=f
21136
21137 # Object file extension for compiled f77 test sources.
21138 objext=o
21139 objext_F77=$objext
21140
21141 # Code to be used in simple compile tests
21142 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
21143
21144 # Code to be used in simple link tests
21145 lt_simple_link_test_code="      program t\n      end\n"
21146
21147 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21148
21149 # If no C compiler was specified, use CC.
21150 LTCC=${LTCC-"$CC"}
21151
21152 # If no C compiler flags were specified, use CFLAGS.
21153 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21154
21155 # Allow CC to be a program name with arguments.
21156 compiler=$CC
21157
21158
21159 # save warnings/boilerplate of simple test code
21160 ac_outfile=conftest.$ac_objext
21161 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21162 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21163 _lt_compiler_boilerplate=`cat conftest.err`
21164 $rm conftest*
21165
21166 ac_outfile=conftest.$ac_objext
21167 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21168 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21169 _lt_linker_boilerplate=`cat conftest.err`
21170 $rm conftest*
21171
21172
21173 # Allow CC to be a program name with arguments.
21174 lt_save_CC="$CC"
21175 CC=${F77-"f77"}
21176 compiler=$CC
21177 compiler_F77=$CC
21178 for cc_temp in $compiler""; do
21179   case $cc_temp in
21180     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21181     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21182     \-*) ;;
21183     *) break;;
21184   esac
21185 done
21186 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21187
21188
21189 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21190 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21191 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21192 echo "${ECHO_T}$can_build_shared" >&6; }
21193
21194 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21195 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21196 test "$can_build_shared" = "no" && enable_shared=no
21197
21198 # On AIX, shared libraries and static libraries use the same namespace, and
21199 # are all built from PIC.
21200 case $host_os in
21201 aix3*)
21202   test "$enable_shared" = yes && enable_static=no
21203   if test -n "$RANLIB"; then
21204     archive_cmds="$archive_cmds~\$RANLIB \$lib"
21205     postinstall_cmds='$RANLIB $lib'
21206   fi
21207   ;;
21208 aix4* | aix5*)
21209   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21210     test "$enable_shared" = yes && enable_static=no
21211   fi
21212   ;;
21213 esac
21214 { echo "$as_me:$LINENO: result: $enable_shared" >&5
21215 echo "${ECHO_T}$enable_shared" >&6; }
21216
21217 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21218 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21219 # Make sure either enable_shared or enable_static is yes.
21220 test "$enable_shared" = yes || enable_static=yes
21221 { echo "$as_me:$LINENO: result: $enable_static" >&5
21222 echo "${ECHO_T}$enable_static" >&6; }
21223
21224 GCC_F77="$G77"
21225 LD_F77="$LD"
21226
21227 lt_prog_compiler_wl_F77=
21228 lt_prog_compiler_pic_F77=
21229 lt_prog_compiler_static_F77=
21230
21231 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21232 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21233
21234   if test "$GCC" = yes; then
21235     lt_prog_compiler_wl_F77='-Wl,'
21236     lt_prog_compiler_static_F77='-static'
21237
21238     case $host_os in
21239       aix*)
21240       # All AIX code is PIC.
21241       if test "$host_cpu" = ia64; then
21242         # AIX 5 now supports IA64 processor
21243         lt_prog_compiler_static_F77='-Bstatic'
21244       fi
21245       ;;
21246
21247     amigaos*)
21248       # FIXME: we need at least 68020 code to build shared libraries, but
21249       # adding the `-m68020' flag to GCC prevents building anything better,
21250       # like `-m68040'.
21251       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21252       ;;
21253
21254     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21255       # PIC is the default for these OSes.
21256       ;;
21257
21258     mingw* | pw32* | os2*)
21259       # This hack is so that the source file can tell whether it is being
21260       # built for inclusion in a dll (and should export symbols for example).
21261       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21262       ;;
21263
21264     darwin* | rhapsody*)
21265       # PIC is the default on this platform
21266       # Common symbols not allowed in MH_DYLIB files
21267       lt_prog_compiler_pic_F77='-fno-common'
21268       ;;
21269
21270     interix3*)
21271       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21272       # Instead, we relocate shared libraries at runtime.
21273       ;;
21274
21275     msdosdjgpp*)
21276       # Just because we use GCC doesn't mean we suddenly get shared libraries
21277       # on systems that don't support them.
21278       lt_prog_compiler_can_build_shared_F77=no
21279       enable_shared=no
21280       ;;
21281
21282     sysv4*MP*)
21283       if test -d /usr/nec; then
21284         lt_prog_compiler_pic_F77=-Kconform_pic
21285       fi
21286       ;;
21287
21288     hpux*)
21289       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21290       # not for PA HP-UX.
21291       case $host_cpu in
21292       hppa*64*|ia64*)
21293         # +Z the default
21294         ;;
21295       *)
21296         lt_prog_compiler_pic_F77='-fPIC'
21297         ;;
21298       esac
21299       ;;
21300
21301     *)
21302       lt_prog_compiler_pic_F77='-fPIC'
21303       ;;
21304     esac
21305   else
21306     # PORTME Check for flag to pass linker flags through the system compiler.
21307     case $host_os in
21308     aix*)
21309       lt_prog_compiler_wl_F77='-Wl,'
21310       if test "$host_cpu" = ia64; then
21311         # AIX 5 now supports IA64 processor
21312         lt_prog_compiler_static_F77='-Bstatic'
21313       else
21314         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21315       fi
21316       ;;
21317       darwin*)
21318         # PIC is the default on this platform
21319         # Common symbols not allowed in MH_DYLIB files
21320        case $cc_basename in
21321          xlc*)
21322          lt_prog_compiler_pic_F77='-qnocommon'
21323          lt_prog_compiler_wl_F77='-Wl,'
21324          ;;
21325        esac
21326        ;;
21327
21328     mingw* | pw32* | os2*)
21329       # This hack is so that the source file can tell whether it is being
21330       # built for inclusion in a dll (and should export symbols for example).
21331       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21332       ;;
21333
21334     hpux9* | hpux10* | hpux11*)
21335       lt_prog_compiler_wl_F77='-Wl,'
21336       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21337       # not for PA HP-UX.
21338       case $host_cpu in
21339       hppa*64*|ia64*)
21340         # +Z the default
21341         ;;
21342       *)
21343         lt_prog_compiler_pic_F77='+Z'
21344         ;;
21345       esac
21346       # Is there a better lt_prog_compiler_static that works with the bundled CC?
21347       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21348       ;;
21349
21350     irix5* | irix6* | nonstopux*)
21351       lt_prog_compiler_wl_F77='-Wl,'
21352       # PIC (with -KPIC) is the default.
21353       lt_prog_compiler_static_F77='-non_shared'
21354       ;;
21355
21356     newsos6)
21357       lt_prog_compiler_pic_F77='-KPIC'
21358       lt_prog_compiler_static_F77='-Bstatic'
21359       ;;
21360
21361     linux*)
21362       case $cc_basename in
21363       icc* | ecc*)
21364         lt_prog_compiler_wl_F77='-Wl,'
21365         lt_prog_compiler_pic_F77='-KPIC'
21366         lt_prog_compiler_static_F77='-static'
21367         ;;
21368       pgcc* | pgf77* | pgf90* | pgf95*)
21369         # Portland Group compilers (*not* the Pentium gcc compiler,
21370         # which looks to be a dead project)
21371         lt_prog_compiler_wl_F77='-Wl,'
21372         lt_prog_compiler_pic_F77='-fpic'
21373         lt_prog_compiler_static_F77='-Bstatic'
21374         ;;
21375       ccc*)
21376         lt_prog_compiler_wl_F77='-Wl,'
21377         # All Alpha code is PIC.
21378         lt_prog_compiler_static_F77='-non_shared'
21379         ;;
21380       esac
21381       ;;
21382
21383     osf3* | osf4* | osf5*)
21384       lt_prog_compiler_wl_F77='-Wl,'
21385       # All OSF/1 code is PIC.
21386       lt_prog_compiler_static_F77='-non_shared'
21387       ;;
21388
21389     solaris*)
21390       lt_prog_compiler_pic_F77='-KPIC'
21391       lt_prog_compiler_static_F77='-Bstatic'
21392       case $cc_basename in
21393       f77* | f90* | f95*)
21394         lt_prog_compiler_wl_F77='-Qoption ld ';;
21395       *)
21396         lt_prog_compiler_wl_F77='-Wl,';;
21397       esac
21398       ;;
21399
21400     sunos4*)
21401       lt_prog_compiler_wl_F77='-Qoption ld '
21402       lt_prog_compiler_pic_F77='-PIC'
21403       lt_prog_compiler_static_F77='-Bstatic'
21404       ;;
21405
21406     sysv4 | sysv4.2uw2* | sysv4.3*)
21407       lt_prog_compiler_wl_F77='-Wl,'
21408       lt_prog_compiler_pic_F77='-KPIC'
21409       lt_prog_compiler_static_F77='-Bstatic'
21410       ;;
21411
21412     sysv4*MP*)
21413       if test -d /usr/nec ;then
21414         lt_prog_compiler_pic_F77='-Kconform_pic'
21415         lt_prog_compiler_static_F77='-Bstatic'
21416       fi
21417       ;;
21418
21419     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21420       lt_prog_compiler_wl_F77='-Wl,'
21421       lt_prog_compiler_pic_F77='-KPIC'
21422       lt_prog_compiler_static_F77='-Bstatic'
21423       ;;
21424
21425     unicos*)
21426       lt_prog_compiler_wl_F77='-Wl,'
21427       lt_prog_compiler_can_build_shared_F77=no
21428       ;;
21429
21430     uts4*)
21431       lt_prog_compiler_pic_F77='-pic'
21432       lt_prog_compiler_static_F77='-Bstatic'
21433       ;;
21434
21435     *)
21436       lt_prog_compiler_can_build_shared_F77=no
21437       ;;
21438     esac
21439   fi
21440
21441 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21442 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21443
21444 #
21445 # Check to make sure the PIC flag actually works.
21446 #
21447 if test -n "$lt_prog_compiler_pic_F77"; then
21448
21449 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21450 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21451 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21452   echo $ECHO_N "(cached) $ECHO_C" >&6
21453 else
21454   lt_prog_compiler_pic_works_F77=no
21455   ac_outfile=conftest.$ac_objext
21456    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21457    lt_compiler_flag="$lt_prog_compiler_pic_F77"
21458    # Insert the option either (1) after the last *FLAGS variable, or
21459    # (2) before a word containing "conftest.", or (3) at the end.
21460    # Note that $ac_compile itself does not contain backslashes and begins
21461    # with a dollar sign (not a hyphen), so the echo should work correctly.
21462    # The option is referenced via a variable to avoid confusing sed.
21463    lt_compile=`echo "$ac_compile" | $SED \
21464    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21465    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21466    -e 's:$: $lt_compiler_flag:'`
21467    (eval echo "\"\$as_me:21467: $lt_compile\"" >&5)
21468    (eval "$lt_compile" 2>conftest.err)
21469    ac_status=$?
21470    cat conftest.err >&5
21471    echo "$as_me:21471: \$? = $ac_status" >&5
21472    if (exit $ac_status) && test -s "$ac_outfile"; then
21473      # The compiler can only warn and ignore the option if not recognized
21474      # So say no if there are warnings other than the usual output.
21475      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21476      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21477      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21478        lt_prog_compiler_pic_works_F77=yes
21479      fi
21480    fi
21481    $rm conftest*
21482
21483 fi
21484 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21485 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21486
21487 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21488     case $lt_prog_compiler_pic_F77 in
21489      "" | " "*) ;;
21490      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21491      esac
21492 else
21493     lt_prog_compiler_pic_F77=
21494      lt_prog_compiler_can_build_shared_F77=no
21495 fi
21496
21497 fi
21498 case $host_os in
21499   # For platforms which do not support PIC, -DPIC is meaningless:
21500   *djgpp*)
21501     lt_prog_compiler_pic_F77=
21502     ;;
21503   *)
21504     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21505     ;;
21506 esac
21507
21508 #
21509 # Check to make sure the static flag actually works.
21510 #
21511 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21512 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21513 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21514 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21515   echo $ECHO_N "(cached) $ECHO_C" >&6
21516 else
21517   lt_prog_compiler_static_works_F77=no
21518    save_LDFLAGS="$LDFLAGS"
21519    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21520    printf "$lt_simple_link_test_code" > conftest.$ac_ext
21521    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21522      # The linker can only warn and ignore the option if not recognized
21523      # So say no if there are warnings
21524      if test -s conftest.err; then
21525        # Append any errors to the config.log.
21526        cat conftest.err 1>&5
21527        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21528        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21529        if diff conftest.exp conftest.er2 >/dev/null; then
21530          lt_prog_compiler_static_works_F77=yes
21531        fi
21532      else
21533        lt_prog_compiler_static_works_F77=yes
21534      fi
21535    fi
21536    $rm conftest*
21537    LDFLAGS="$save_LDFLAGS"
21538
21539 fi
21540 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21541 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21542
21543 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21544     :
21545 else
21546     lt_prog_compiler_static_F77=
21547 fi
21548
21549
21550 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21551 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21552 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21553   echo $ECHO_N "(cached) $ECHO_C" >&6
21554 else
21555   lt_cv_prog_compiler_c_o_F77=no
21556    $rm -r conftest 2>/dev/null
21557    mkdir conftest
21558    cd conftest
21559    mkdir out
21560    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21561
21562    lt_compiler_flag="-o out/conftest2.$ac_objext"
21563    # Insert the option either (1) after the last *FLAGS variable, or
21564    # (2) before a word containing "conftest.", or (3) at the end.
21565    # Note that $ac_compile itself does not contain backslashes and begins
21566    # with a dollar sign (not a hyphen), so the echo should work correctly.
21567    lt_compile=`echo "$ac_compile" | $SED \
21568    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21569    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21570    -e 's:$: $lt_compiler_flag:'`
21571    (eval echo "\"\$as_me:21571: $lt_compile\"" >&5)
21572    (eval "$lt_compile" 2>out/conftest.err)
21573    ac_status=$?
21574    cat out/conftest.err >&5
21575    echo "$as_me:21575: \$? = $ac_status" >&5
21576    if (exit $ac_status) && test -s out/conftest2.$ac_objext
21577    then
21578      # The compiler can only warn and ignore the option if not recognized
21579      # So say no if there are warnings
21580      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21581      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21582      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21583        lt_cv_prog_compiler_c_o_F77=yes
21584      fi
21585    fi
21586    chmod u+w . 2>&5
21587    $rm conftest*
21588    # SGI C++ compiler will create directory out/ii_files/ for
21589    # template instantiation
21590    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21591    $rm out/* && rmdir out
21592    cd ..
21593    rmdir conftest
21594    $rm conftest*
21595
21596 fi
21597 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21598 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21599
21600
21601 hard_links="nottested"
21602 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21603   # do not overwrite the value of need_locks provided by the user
21604   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21605 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21606   hard_links=yes
21607   $rm conftest*
21608   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21609   touch conftest.a
21610   ln conftest.a conftest.b 2>&5 || hard_links=no
21611   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21612   { echo "$as_me:$LINENO: result: $hard_links" >&5
21613 echo "${ECHO_T}$hard_links" >&6; }
21614   if test "$hard_links" = no; then
21615     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21616 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21617     need_locks=warn
21618   fi
21619 else
21620   need_locks=no
21621 fi
21622
21623 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21624 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21625
21626   runpath_var=
21627   allow_undefined_flag_F77=
21628   enable_shared_with_static_runtimes_F77=no
21629   archive_cmds_F77=
21630   archive_expsym_cmds_F77=
21631   old_archive_From_new_cmds_F77=
21632   old_archive_from_expsyms_cmds_F77=
21633   export_dynamic_flag_spec_F77=
21634   whole_archive_flag_spec_F77=
21635   thread_safe_flag_spec_F77=
21636   hardcode_libdir_flag_spec_F77=
21637   hardcode_libdir_flag_spec_ld_F77=
21638   hardcode_libdir_separator_F77=
21639   hardcode_direct_F77=no
21640   hardcode_minus_L_F77=no
21641   hardcode_shlibpath_var_F77=unsupported
21642   link_all_deplibs_F77=unknown
21643   hardcode_automatic_F77=no
21644   module_cmds_F77=
21645   module_expsym_cmds_F77=
21646   always_export_symbols_F77=no
21647   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21648   # include_expsyms should be a list of space-separated symbols to be *always*
21649   # included in the symbol list
21650   include_expsyms_F77=
21651   # exclude_expsyms can be an extended regexp of symbols to exclude
21652   # it will be wrapped by ` (' and `)$', so one must not match beginning or
21653   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21654   # as well as any symbol that contains `d'.
21655   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21656   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21657   # platforms (ab)use it in PIC code, but their linkers get confused if
21658   # the symbol is explicitly referenced.  Since portable code cannot
21659   # rely on this symbol name, it's probably fine to never include it in
21660   # preloaded symbol tables.
21661   extract_expsyms_cmds=
21662   # Just being paranoid about ensuring that cc_basename is set.
21663   for cc_temp in $compiler""; do
21664   case $cc_temp in
21665     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21666     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21667     \-*) ;;
21668     *) break;;
21669   esac
21670 done
21671 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21672
21673   case $host_os in
21674   cygwin* | mingw* | pw32*)
21675     # FIXME: the MSVC++ port hasn't been tested in a loooong time
21676     # When not using gcc, we currently assume that we are using
21677     # Microsoft Visual C++.
21678     if test "$GCC" != yes; then
21679       with_gnu_ld=no
21680     fi
21681     ;;
21682   interix*)
21683     # we just hope/assume this is gcc and not c89 (= MSVC++)
21684     with_gnu_ld=yes
21685     ;;
21686   openbsd*)
21687     with_gnu_ld=no
21688     ;;
21689   esac
21690
21691   ld_shlibs_F77=yes
21692   if test "$with_gnu_ld" = yes; then
21693     # If archive_cmds runs LD, not CC, wlarc should be empty
21694     wlarc='${wl}'
21695
21696     # Set some defaults for GNU ld with shared library support. These
21697     # are reset later if shared libraries are not supported. Putting them
21698     # here allows them to be overridden if necessary.
21699     runpath_var=LD_RUN_PATH
21700     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21701     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21702     # ancient GNU ld didn't support --whole-archive et. al.
21703     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21704         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21705       else
21706         whole_archive_flag_spec_F77=
21707     fi
21708     supports_anon_versioning=no
21709     case `$LD -v 2>/dev/null` in
21710       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21711       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21712       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21713       *\ 2.11.*) ;; # other 2.11 versions
21714       *) supports_anon_versioning=yes ;;
21715     esac
21716
21717     # See if GNU ld supports shared libraries.
21718     case $host_os in
21719     aix3* | aix4* | aix5*)
21720       # On AIX/PPC, the GNU linker is very broken
21721       if test "$host_cpu" != ia64; then
21722         ld_shlibs_F77=no
21723         cat <<EOF 1>&2
21724
21725 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21726 *** to be unable to reliably create shared libraries on AIX.
21727 *** Therefore, libtool is disabling shared libraries support.  If you
21728 *** really care for shared libraries, you may want to modify your PATH
21729 *** so that a non-GNU linker is found, and then restart.
21730
21731 EOF
21732       fi
21733       ;;
21734
21735     amigaos*)
21736       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)'
21737       hardcode_libdir_flag_spec_F77='-L$libdir'
21738       hardcode_minus_L_F77=yes
21739
21740       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21741       # that the semantics of dynamic libraries on AmigaOS, at least up
21742       # to version 4, is to share data among multiple programs linked
21743       # with the same dynamic library.  Since this doesn't match the
21744       # behavior of shared libraries on other platforms, we can't use
21745       # them.
21746       ld_shlibs_F77=no
21747       ;;
21748
21749     beos*)
21750       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21751         allow_undefined_flag_F77=unsupported
21752         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21753         # support --undefined.  This deserves some investigation.  FIXME
21754         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21755       else
21756         ld_shlibs_F77=no
21757       fi
21758       ;;
21759
21760     cygwin* | mingw* | pw32*)
21761       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21762       # as there is no search path for DLLs.
21763       hardcode_libdir_flag_spec_F77='-L$libdir'
21764       allow_undefined_flag_F77=unsupported
21765       always_export_symbols_F77=no
21766       enable_shared_with_static_runtimes_F77=yes
21767       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21768
21769       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21770         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21771         # If the export-symbols file already is a .def file (1st line
21772         # is EXPORTS), use it as is; otherwise, prepend...
21773         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21774           cp $export_symbols $output_objdir/$soname.def;
21775         else
21776           echo EXPORTS > $output_objdir/$soname.def;
21777           cat $export_symbols >> $output_objdir/$soname.def;
21778         fi~
21779         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21780       else
21781         ld_shlibs_F77=no
21782       fi
21783       ;;
21784
21785     interix3*)
21786       hardcode_direct_F77=no
21787       hardcode_shlibpath_var_F77=no
21788       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21789       export_dynamic_flag_spec_F77='${wl}-E'
21790       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21791       # Instead, shared libraries are loaded at an image base (0x10000000 by
21792       # default) and relocated if they conflict, which is a slow very memory
21793       # consuming and fragmenting process.  To avoid this, we pick a random,
21794       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21795       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
21796       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'
21797       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'
21798       ;;
21799
21800     linux*)
21801       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21802         tmp_addflag=
21803         case $cc_basename,$host_cpu in
21804         pgcc*)                          # Portland Group C compiler
21805           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'
21806           tmp_addflag=' $pic_flag'
21807           ;;
21808         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
21809           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'
21810           tmp_addflag=' $pic_flag -Mnomain' ;;
21811         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
21812           tmp_addflag=' -i_dynamic' ;;
21813         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
21814           tmp_addflag=' -i_dynamic -nofor_main' ;;
21815         ifc* | ifort*)                  # Intel Fortran compiler
21816           tmp_addflag=' -nofor_main' ;;
21817         esac
21818         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21819
21820         if test $supports_anon_versioning = yes; then
21821           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21822   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21823   $echo "local: *; };" >> $output_objdir/$libname.ver~
21824           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21825         fi
21826       else
21827         ld_shlibs_F77=no
21828       fi
21829       ;;
21830
21831     netbsd*)
21832       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21833         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21834         wlarc=
21835       else
21836         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21837         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21838       fi
21839       ;;
21840
21841     solaris*)
21842       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21843         ld_shlibs_F77=no
21844         cat <<EOF 1>&2
21845
21846 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21847 *** create shared libraries on Solaris systems.  Therefore, libtool
21848 *** is disabling shared libraries support.  We urge you to upgrade GNU
21849 *** binutils to release 2.9.1 or newer.  Another option is to modify
21850 *** your PATH or compiler configuration so that the native linker is
21851 *** used, and then restart.
21852
21853 EOF
21854       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21855         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21856         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21857       else
21858         ld_shlibs_F77=no
21859       fi
21860       ;;
21861
21862     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21863       case `$LD -v 2>&1` in
21864         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21865         ld_shlibs_F77=no
21866         cat <<_LT_EOF 1>&2
21867
21868 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21869 *** reliably create shared libraries on SCO systems.  Therefore, libtool
21870 *** is disabling shared libraries support.  We urge you to upgrade GNU
21871 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
21872 *** your PATH or compiler configuration so that the native linker is
21873 *** used, and then restart.
21874
21875 _LT_EOF
21876         ;;
21877         *)
21878           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21879             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21880             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21881             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21882           else
21883             ld_shlibs_F77=no
21884           fi
21885         ;;
21886       esac
21887       ;;
21888
21889     sunos4*)
21890       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21891       wlarc=
21892       hardcode_direct_F77=yes
21893       hardcode_shlibpath_var_F77=no
21894       ;;
21895
21896     *)
21897       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21898         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21899         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21900       else
21901         ld_shlibs_F77=no
21902       fi
21903       ;;
21904     esac
21905
21906     if test "$ld_shlibs_F77" = no; then
21907       runpath_var=
21908       hardcode_libdir_flag_spec_F77=
21909       export_dynamic_flag_spec_F77=
21910       whole_archive_flag_spec_F77=
21911     fi
21912   else
21913     # PORTME fill in a description of your system's linker (not GNU ld)
21914     case $host_os in
21915     aix3*)
21916       allow_undefined_flag_F77=unsupported
21917       always_export_symbols_F77=yes
21918       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'
21919       # Note: this linker hardcodes the directories in LIBPATH if there
21920       # are no directories specified by -L.
21921       hardcode_minus_L_F77=yes
21922       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
21923         # Neither direct hardcoding nor static linking is supported with a
21924         # broken collect2.
21925         hardcode_direct_F77=unsupported
21926       fi
21927       ;;
21928
21929     aix4* | aix5*)
21930       if test "$host_cpu" = ia64; then
21931         # On IA64, the linker does run time linking by default, so we don't
21932         # have to do anything special.
21933         aix_use_runtimelinking=no
21934         exp_sym_flag='-Bexport'
21935         no_entry_flag=""
21936       else
21937         # If we're using GNU nm, then we don't want the "-C" option.
21938         # -C means demangle to AIX nm, but means don't demangle with GNU nm
21939         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21940           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'
21941         else
21942           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'
21943         fi
21944         aix_use_runtimelinking=no
21945
21946         # Test if we are trying to use run time linking or normal
21947         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21948         # need to do runtime linking.
21949         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21950           for ld_flag in $LDFLAGS; do
21951           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21952             aix_use_runtimelinking=yes
21953             break
21954           fi
21955           done
21956           ;;
21957         esac
21958
21959         exp_sym_flag='-bexport'
21960         no_entry_flag='-bnoentry'
21961       fi
21962
21963       # When large executables or shared objects are built, AIX ld can
21964       # have problems creating the table of contents.  If linking a library
21965       # or program results in "error TOC overflow" add -mminimal-toc to
21966       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
21967       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21968
21969       archive_cmds_F77=''
21970       hardcode_direct_F77=yes
21971       hardcode_libdir_separator_F77=':'
21972       link_all_deplibs_F77=yes
21973
21974       if test "$GCC" = yes; then
21975         case $host_os in aix4.[012]|aix4.[012].*)
21976         # We only want to do this on AIX 4.2 and lower, the check
21977         # below for broken collect2 doesn't work under 4.3+
21978           collect2name=`${CC} -print-prog-name=collect2`
21979           if test -f "$collect2name" && \
21980            strings "$collect2name" | grep resolve_lib_name >/dev/null
21981           then
21982           # We have reworked collect2
21983           hardcode_direct_F77=yes
21984           else
21985           # We have old collect2
21986           hardcode_direct_F77=unsupported
21987           # It fails to find uninstalled libraries when the uninstalled
21988           # path is not listed in the libpath.  Setting hardcode_minus_L
21989           # to unsupported forces relinking
21990           hardcode_minus_L_F77=yes
21991           hardcode_libdir_flag_spec_F77='-L$libdir'
21992           hardcode_libdir_separator_F77=
21993           fi
21994           ;;
21995         esac
21996         shared_flag='-shared'
21997         if test "$aix_use_runtimelinking" = yes; then
21998           shared_flag="$shared_flag "'${wl}-G'
21999         fi
22000       else
22001         # not using gcc
22002         if test "$host_cpu" = ia64; then
22003         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22004         # chokes on -Wl,-G. The following line is correct:
22005           shared_flag='-G'
22006         else
22007           if test "$aix_use_runtimelinking" = yes; then
22008             shared_flag='${wl}-G'
22009           else
22010             shared_flag='${wl}-bM:SRE'
22011           fi
22012         fi
22013       fi
22014
22015       # It seems that -bexpall does not export symbols beginning with
22016       # underscore (_), so it is better to generate a list of symbols to export.
22017       always_export_symbols_F77=yes
22018       if test "$aix_use_runtimelinking" = yes; then
22019         # Warning - without using the other runtime loading flags (-brtl),
22020         # -berok will link without error, but may produce a broken library.
22021         allow_undefined_flag_F77='-berok'
22022        # Determine the default libpath from the value encoded in an empty executable.
22023        cat >conftest.$ac_ext <<_ACEOF
22024       program main
22025
22026       end
22027 _ACEOF
22028 rm -f conftest.$ac_objext conftest$ac_exeext
22029 if { (ac_try="$ac_link"
22030 case "(($ac_try" in
22031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22032   *) ac_try_echo=$ac_try;;
22033 esac
22034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22035   (eval "$ac_link") 2>conftest.er1
22036   ac_status=$?
22037   grep -v '^ *+' conftest.er1 >conftest.err
22038   rm -f conftest.er1
22039   cat conftest.err >&5
22040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22041   (exit $ac_status); } &&
22042          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22043   { (case "(($ac_try" in
22044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22045   *) ac_try_echo=$ac_try;;
22046 esac
22047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22048   (eval "$ac_try") 2>&5
22049   ac_status=$?
22050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22051   (exit $ac_status); }; } &&
22052          { ac_try='test -s conftest$ac_exeext'
22053   { (case "(($ac_try" in
22054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22055   *) ac_try_echo=$ac_try;;
22056 esac
22057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22058   (eval "$ac_try") 2>&5
22059   ac_status=$?
22060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22061   (exit $ac_status); }; }; then
22062
22063 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22064 }'`
22065 # Check for a 64-bit object if we didn't find anything.
22066 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; }
22067 }'`; fi
22068 else
22069   echo "$as_me: failed program was:" >&5
22070 sed 's/^/| /' conftest.$ac_ext >&5
22071
22072
22073 fi
22074
22075 rm -f core conftest.err conftest.$ac_objext \
22076       conftest$ac_exeext conftest.$ac_ext
22077 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22078
22079        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22080         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"
22081        else
22082         if test "$host_cpu" = ia64; then
22083           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22084           allow_undefined_flag_F77="-z nodefs"
22085           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"
22086         else
22087          # Determine the default libpath from the value encoded in an empty executable.
22088          cat >conftest.$ac_ext <<_ACEOF
22089       program main
22090
22091       end
22092 _ACEOF
22093 rm -f conftest.$ac_objext conftest$ac_exeext
22094 if { (ac_try="$ac_link"
22095 case "(($ac_try" in
22096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22097   *) ac_try_echo=$ac_try;;
22098 esac
22099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22100   (eval "$ac_link") 2>conftest.er1
22101   ac_status=$?
22102   grep -v '^ *+' conftest.er1 >conftest.err
22103   rm -f conftest.er1
22104   cat conftest.err >&5
22105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22106   (exit $ac_status); } &&
22107          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22108   { (case "(($ac_try" in
22109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22110   *) ac_try_echo=$ac_try;;
22111 esac
22112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22113   (eval "$ac_try") 2>&5
22114   ac_status=$?
22115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22116   (exit $ac_status); }; } &&
22117          { ac_try='test -s conftest$ac_exeext'
22118   { (case "(($ac_try" in
22119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22120   *) ac_try_echo=$ac_try;;
22121 esac
22122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22123   (eval "$ac_try") 2>&5
22124   ac_status=$?
22125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22126   (exit $ac_status); }; }; then
22127
22128 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22129 }'`
22130 # Check for a 64-bit object if we didn't find anything.
22131 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; }
22132 }'`; fi
22133 else
22134   echo "$as_me: failed program was:" >&5
22135 sed 's/^/| /' conftest.$ac_ext >&5
22136
22137
22138 fi
22139
22140 rm -f core conftest.err conftest.$ac_objext \
22141       conftest$ac_exeext conftest.$ac_ext
22142 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22143
22144          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22145           # Warning - without using the other run time loading flags,
22146           # -berok will link without error, but may produce a broken library.
22147           no_undefined_flag_F77=' ${wl}-bernotok'
22148           allow_undefined_flag_F77=' ${wl}-berok'
22149           # Exported symbols can be pulled into shared objects from archives
22150           whole_archive_flag_spec_F77='$convenience'
22151           archive_cmds_need_lc_F77=yes
22152           # This is similar to how AIX traditionally builds its shared libraries.
22153           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'
22154         fi
22155       fi
22156       ;;
22157
22158     amigaos*)
22159       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)'
22160       hardcode_libdir_flag_spec_F77='-L$libdir'
22161       hardcode_minus_L_F77=yes
22162       # see comment about different semantics on the GNU ld section
22163       ld_shlibs_F77=no
22164       ;;
22165
22166     bsdi[45]*)
22167       export_dynamic_flag_spec_F77=-rdynamic
22168       ;;
22169
22170     cygwin* | mingw* | pw32*)
22171       # When not using gcc, we currently assume that we are using
22172       # Microsoft Visual C++.
22173       # hardcode_libdir_flag_spec is actually meaningless, as there is
22174       # no search path for DLLs.
22175       hardcode_libdir_flag_spec_F77=' '
22176       allow_undefined_flag_F77=unsupported
22177       # Tell ltmain to make .lib files, not .a files.
22178       libext=lib
22179       # Tell ltmain to make .dll files, not .so files.
22180       shrext_cmds=".dll"
22181       # FIXME: Setting linknames here is a bad hack.
22182       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22183       # The linker will automatically build a .lib file if we build a DLL.
22184       old_archive_From_new_cmds_F77='true'
22185       # FIXME: Should let the user specify the lib program.
22186       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22187       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22188       enable_shared_with_static_runtimes_F77=yes
22189       ;;
22190
22191     darwin* | rhapsody*)
22192       case $host_os in
22193         rhapsody* | darwin1.[012])
22194          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22195          ;;
22196        *) # Darwin 1.3 on
22197          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22198            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22199          else
22200            case ${MACOSX_DEPLOYMENT_TARGET} in
22201              10.[012])
22202                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22203                ;;
22204              10.*)
22205                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22206                ;;
22207            esac
22208          fi
22209          ;;
22210       esac
22211       archive_cmds_need_lc_F77=no
22212       hardcode_direct_F77=no
22213       hardcode_automatic_F77=yes
22214       hardcode_shlibpath_var_F77=unsupported
22215       whole_archive_flag_spec_F77=''
22216       link_all_deplibs_F77=yes
22217     if test "$GCC" = yes ; then
22218         output_verbose_link_cmd='echo'
22219         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22220       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22221       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22222       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}'
22223       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}'
22224     else
22225       case $cc_basename in
22226         xlc*)
22227          output_verbose_link_cmd='echo'
22228          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22229          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22230           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22231          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}'
22232           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}'
22233           ;;
22234        *)
22235          ld_shlibs_F77=no
22236           ;;
22237       esac
22238     fi
22239       ;;
22240
22241     dgux*)
22242       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22243       hardcode_libdir_flag_spec_F77='-L$libdir'
22244       hardcode_shlibpath_var_F77=no
22245       ;;
22246
22247     freebsd1*)
22248       ld_shlibs_F77=no
22249       ;;
22250
22251     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22252     # support.  Future versions do this automatically, but an explicit c++rt0.o
22253     # does not break anything, and helps significantly (at the cost of a little
22254     # extra space).
22255     freebsd2.2*)
22256       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22257       hardcode_libdir_flag_spec_F77='-R$libdir'
22258       hardcode_direct_F77=yes
22259       hardcode_shlibpath_var_F77=no
22260       ;;
22261
22262     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22263     freebsd2*)
22264       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22265       hardcode_direct_F77=yes
22266       hardcode_minus_L_F77=yes
22267       hardcode_shlibpath_var_F77=no
22268       ;;
22269
22270     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22271     freebsd* | kfreebsd*-gnu | dragonfly*)
22272       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22273       hardcode_libdir_flag_spec_F77='-R$libdir'
22274       hardcode_direct_F77=yes
22275       hardcode_shlibpath_var_F77=no
22276       ;;
22277
22278     hpux9*)
22279       if test "$GCC" = yes; then
22280         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'
22281       else
22282         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'
22283       fi
22284       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22285       hardcode_libdir_separator_F77=:
22286       hardcode_direct_F77=yes
22287
22288       # hardcode_minus_L: Not really in the search PATH,
22289       # but as the default location of the library.
22290       hardcode_minus_L_F77=yes
22291       export_dynamic_flag_spec_F77='${wl}-E'
22292       ;;
22293
22294     hpux10*)
22295       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22296         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22297       else
22298         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22299       fi
22300       if test "$with_gnu_ld" = no; then
22301         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22302         hardcode_libdir_separator_F77=:
22303
22304         hardcode_direct_F77=yes
22305         export_dynamic_flag_spec_F77='${wl}-E'
22306
22307         # hardcode_minus_L: Not really in the search PATH,
22308         # but as the default location of the library.
22309         hardcode_minus_L_F77=yes
22310       fi
22311       ;;
22312
22313     hpux11*)
22314       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22315         case $host_cpu in
22316         hppa*64*)
22317           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22318           ;;
22319         ia64*)
22320           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22321           ;;
22322         *)
22323           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22324           ;;
22325         esac
22326       else
22327         case $host_cpu in
22328         hppa*64*)
22329           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22330           ;;
22331         ia64*)
22332           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22333           ;;
22334         *)
22335           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22336           ;;
22337         esac
22338       fi
22339       if test "$with_gnu_ld" = no; then
22340         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22341         hardcode_libdir_separator_F77=:
22342
22343         case $host_cpu in
22344         hppa*64*|ia64*)
22345           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22346           hardcode_direct_F77=no
22347           hardcode_shlibpath_var_F77=no
22348           ;;
22349         *)
22350           hardcode_direct_F77=yes
22351           export_dynamic_flag_spec_F77='${wl}-E'
22352
22353           # hardcode_minus_L: Not really in the search PATH,
22354           # but as the default location of the library.
22355           hardcode_minus_L_F77=yes
22356           ;;
22357         esac
22358       fi
22359       ;;
22360
22361     irix5* | irix6* | nonstopux*)
22362       if test "$GCC" = yes; then
22363         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'
22364       else
22365         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'
22366         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22367       fi
22368       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22369       hardcode_libdir_separator_F77=:
22370       link_all_deplibs_F77=yes
22371       ;;
22372
22373     netbsd*)
22374       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22375         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
22376       else
22377         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
22378       fi
22379       hardcode_libdir_flag_spec_F77='-R$libdir'
22380       hardcode_direct_F77=yes
22381       hardcode_shlibpath_var_F77=no
22382       ;;
22383
22384     newsos6)
22385       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22386       hardcode_direct_F77=yes
22387       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22388       hardcode_libdir_separator_F77=:
22389       hardcode_shlibpath_var_F77=no
22390       ;;
22391
22392     openbsd*)
22393       hardcode_direct_F77=yes
22394       hardcode_shlibpath_var_F77=no
22395       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22396         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22397         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22398         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22399         export_dynamic_flag_spec_F77='${wl}-E'
22400       else
22401        case $host_os in
22402          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22403            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22404            hardcode_libdir_flag_spec_F77='-R$libdir'
22405            ;;
22406          *)
22407            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22408            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22409            ;;
22410        esac
22411       fi
22412       ;;
22413
22414     os2*)
22415       hardcode_libdir_flag_spec_F77='-L$libdir'
22416       hardcode_minus_L_F77=yes
22417       allow_undefined_flag_F77=unsupported
22418       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'
22419       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22420       ;;
22421
22422     osf3*)
22423       if test "$GCC" = yes; then
22424         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22425         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'
22426       else
22427         allow_undefined_flag_F77=' -expect_unresolved \*'
22428         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'
22429       fi
22430       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22431       hardcode_libdir_separator_F77=:
22432       ;;
22433
22434     osf4* | osf5*)      # as osf3* with the addition of -msym flag
22435       if test "$GCC" = yes; then
22436         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22437         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'
22438         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22439       else
22440         allow_undefined_flag_F77=' -expect_unresolved \*'
22441         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'
22442         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~
22443         $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'
22444
22445         # Both c and cxx compiler support -rpath directly
22446         hardcode_libdir_flag_spec_F77='-rpath $libdir'
22447       fi
22448       hardcode_libdir_separator_F77=:
22449       ;;
22450
22451     solaris*)
22452       no_undefined_flag_F77=' -z text'
22453       if test "$GCC" = yes; then
22454         wlarc='${wl}'
22455         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22456         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22457           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22458       else
22459         wlarc=''
22460         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22461         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22462         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22463       fi
22464       hardcode_libdir_flag_spec_F77='-R$libdir'
22465       hardcode_shlibpath_var_F77=no
22466       case $host_os in
22467       solaris2.[0-5] | solaris2.[0-5].*) ;;
22468       *)
22469         # The compiler driver will combine linker options so we
22470         # cannot just pass the convience library names through
22471         # without $wl, iff we do not link with $LD.
22472         # Luckily, gcc supports the same syntax we need for Sun Studio.
22473         # Supported since Solaris 2.6 (maybe 2.5.1?)
22474         case $wlarc in
22475         '')
22476           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22477         *)
22478           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' ;;
22479         esac ;;
22480       esac
22481       link_all_deplibs_F77=yes
22482       ;;
22483
22484     sunos4*)
22485       if test "x$host_vendor" = xsequent; then
22486         # Use $CC to link under sequent, because it throws in some extra .o
22487         # files that make .init and .fini sections work.
22488         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22489       else
22490         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22491       fi
22492       hardcode_libdir_flag_spec_F77='-L$libdir'
22493       hardcode_direct_F77=yes
22494       hardcode_minus_L_F77=yes
22495       hardcode_shlibpath_var_F77=no
22496       ;;
22497
22498     sysv4)
22499       case $host_vendor in
22500         sni)
22501           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22502           hardcode_direct_F77=yes # is this really true???
22503         ;;
22504         siemens)
22505           ## LD is ld it makes a PLAMLIB
22506           ## CC just makes a GrossModule.
22507           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22508           reload_cmds_F77='$CC -r -o $output$reload_objs'
22509           hardcode_direct_F77=no
22510         ;;
22511         motorola)
22512           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22513           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22514         ;;
22515       esac
22516       runpath_var='LD_RUN_PATH'
22517       hardcode_shlibpath_var_F77=no
22518       ;;
22519
22520     sysv4.3*)
22521       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22522       hardcode_shlibpath_var_F77=no
22523       export_dynamic_flag_spec_F77='-Bexport'
22524       ;;
22525
22526     sysv4*MP*)
22527       if test -d /usr/nec; then
22528         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22529         hardcode_shlibpath_var_F77=no
22530         runpath_var=LD_RUN_PATH
22531         hardcode_runpath_var=yes
22532         ld_shlibs_F77=yes
22533       fi
22534       ;;
22535
22536     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22537       no_undefined_flag_F77='${wl}-z,text'
22538       archive_cmds_need_lc_F77=no
22539       hardcode_shlibpath_var_F77=no
22540       runpath_var='LD_RUN_PATH'
22541
22542       if test "$GCC" = yes; then
22543         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22544         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22545       else
22546         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22547         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22548       fi
22549       ;;
22550
22551     sysv5* | sco3.2v5* | sco5v6*)
22552       # Note: We can NOT use -z defs as we might desire, because we do not
22553       # link with -lc, and that would cause any symbols used from libc to
22554       # always be unresolved, which means just about no library would
22555       # ever link correctly.  If we're not using GNU ld we use -z text
22556       # though, which does catch some bad symbols but isn't as heavy-handed
22557       # as -z defs.
22558       no_undefined_flag_F77='${wl}-z,text'
22559       allow_undefined_flag_F77='${wl}-z,nodefs'
22560       archive_cmds_need_lc_F77=no
22561       hardcode_shlibpath_var_F77=no
22562       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22563       hardcode_libdir_separator_F77=':'
22564       link_all_deplibs_F77=yes
22565       export_dynamic_flag_spec_F77='${wl}-Bexport'
22566       runpath_var='LD_RUN_PATH'
22567
22568       if test "$GCC" = yes; then
22569         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22570         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22571       else
22572         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22573         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22574       fi
22575       ;;
22576
22577     uts4*)
22578       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22579       hardcode_libdir_flag_spec_F77='-L$libdir'
22580       hardcode_shlibpath_var_F77=no
22581       ;;
22582
22583     *)
22584       ld_shlibs_F77=no
22585       ;;
22586     esac
22587   fi
22588
22589 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22590 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22591 test "$ld_shlibs_F77" = no && can_build_shared=no
22592
22593 #
22594 # Do we need to explicitly link libc?
22595 #
22596 case "x$archive_cmds_need_lc_F77" in
22597 x|xyes)
22598   # Assume -lc should be added
22599   archive_cmds_need_lc_F77=yes
22600
22601   if test "$enable_shared" = yes && test "$GCC" = yes; then
22602     case $archive_cmds_F77 in
22603     *'~'*)
22604       # FIXME: we may have to deal with multi-command sequences.
22605       ;;
22606     '$CC '*)
22607       # Test whether the compiler implicitly links with -lc since on some
22608       # systems, -lgcc has to come before -lc. If gcc already passes -lc
22609       # to ld, don't add -lc before -lgcc.
22610       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22611 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22612       $rm conftest*
22613       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22614
22615       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22616   (eval $ac_compile) 2>&5
22617   ac_status=$?
22618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22619   (exit $ac_status); } 2>conftest.err; then
22620         soname=conftest
22621         lib=conftest
22622         libobjs=conftest.$ac_objext
22623         deplibs=
22624         wl=$lt_prog_compiler_wl_F77
22625         pic_flag=$lt_prog_compiler_pic_F77
22626         compiler_flags=-v
22627         linker_flags=-v
22628         verstring=
22629         output_objdir=.
22630         libname=conftest
22631         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22632         allow_undefined_flag_F77=
22633         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22634   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22635   ac_status=$?
22636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22637   (exit $ac_status); }
22638         then
22639           archive_cmds_need_lc_F77=no
22640         else
22641           archive_cmds_need_lc_F77=yes
22642         fi
22643         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22644       else
22645         cat conftest.err 1>&5
22646       fi
22647       $rm conftest*
22648       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22649 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22650       ;;
22651     esac
22652   fi
22653   ;;
22654 esac
22655
22656 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22657 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22658 library_names_spec=
22659 libname_spec='lib$name'
22660 soname_spec=
22661 shrext_cmds=".so"
22662 postinstall_cmds=
22663 postuninstall_cmds=
22664 finish_cmds=
22665 finish_eval=
22666 shlibpath_var=
22667 shlibpath_overrides_runpath=unknown
22668 version_type=none
22669 dynamic_linker="$host_os ld.so"
22670 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22671 if test "$GCC" = yes; then
22672   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22673   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22674     # if the path contains ";" then we assume it to be the separator
22675     # otherwise default to the standard path separator (i.e. ":") - it is
22676     # assumed that no part of a normal pathname contains ";" but that should
22677     # okay in the real world where ";" in dirpaths is itself problematic.
22678     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22679   else
22680     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22681   fi
22682 else
22683   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22684 fi
22685 need_lib_prefix=unknown
22686 hardcode_into_libs=no
22687
22688 # when you set need_version to no, make sure it does not cause -set_version
22689 # flags to be left without arguments
22690 need_version=unknown
22691
22692 case $host_os in
22693 aix3*)
22694   version_type=linux
22695   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22696   shlibpath_var=LIBPATH
22697
22698   # AIX 3 has no versioning support, so we append a major version to the name.
22699   soname_spec='${libname}${release}${shared_ext}$major'
22700   ;;
22701
22702 aix4* | aix5*)
22703   version_type=linux
22704   need_lib_prefix=no
22705   need_version=no
22706   hardcode_into_libs=yes
22707   if test "$host_cpu" = ia64; then
22708     # AIX 5 supports IA64
22709     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22710     shlibpath_var=LD_LIBRARY_PATH
22711   else
22712     # With GCC up to 2.95.x, collect2 would create an import file
22713     # for dependence libraries.  The import file would start with
22714     # the line `#! .'.  This would cause the generated library to
22715     # depend on `.', always an invalid library.  This was fixed in
22716     # development snapshots of GCC prior to 3.0.
22717     case $host_os in
22718       aix4 | aix4.[01] | aix4.[01].*)
22719       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22720            echo ' yes '
22721            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22722         :
22723       else
22724         can_build_shared=no
22725       fi
22726       ;;
22727     esac
22728     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22729     # soname into executable. Probably we can add versioning support to
22730     # collect2, so additional links can be useful in future.
22731     if test "$aix_use_runtimelinking" = yes; then
22732       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22733       # instead of lib<name>.a to let people know that these are not
22734       # typical AIX shared libraries.
22735       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22736     else
22737       # We preserve .a as extension for shared libraries through AIX4.2
22738       # and later when we are not doing run time linking.
22739       library_names_spec='${libname}${release}.a $libname.a'
22740       soname_spec='${libname}${release}${shared_ext}$major'
22741     fi
22742     shlibpath_var=LIBPATH
22743   fi
22744   ;;
22745
22746 amigaos*)
22747   library_names_spec='$libname.ixlibrary $libname.a'
22748   # Create ${libname}_ixlibrary.a entries in /sys/libs.
22749   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'
22750   ;;
22751
22752 beos*)
22753   library_names_spec='${libname}${shared_ext}'
22754   dynamic_linker="$host_os ld.so"
22755   shlibpath_var=LIBRARY_PATH
22756   ;;
22757
22758 bsdi[45]*)
22759   version_type=linux
22760   need_version=no
22761   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22762   soname_spec='${libname}${release}${shared_ext}$major'
22763   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22764   shlibpath_var=LD_LIBRARY_PATH
22765   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22766   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22767   # the default ld.so.conf also contains /usr/contrib/lib and
22768   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22769   # libtool to hard-code these into programs
22770   ;;
22771
22772 cygwin* | mingw* | pw32*)
22773   version_type=windows
22774   shrext_cmds=".dll"
22775   need_version=no
22776   need_lib_prefix=no
22777
22778   case $GCC,$host_os in
22779   yes,cygwin* | yes,mingw* | yes,pw32*)
22780     library_names_spec='$libname.dll.a'
22781     # DLL is installed to $(libdir)/../bin by postinstall_cmds
22782     postinstall_cmds='base_file=`basename \${file}`~
22783       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22784       dldir=$destdir/`dirname \$dlpath`~
22785       test -d \$dldir || mkdir -p \$dldir~
22786       $install_prog $dir/$dlname \$dldir/$dlname~
22787       chmod a+x \$dldir/$dlname'
22788     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22789       dlpath=$dir/\$dldll~
22790        $rm \$dlpath'
22791     shlibpath_overrides_runpath=yes
22792
22793     case $host_os in
22794     cygwin*)
22795       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22796       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22797       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22798       ;;
22799     mingw*)
22800       # MinGW DLLs use traditional 'lib' prefix
22801       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22802       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22803       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22804         # It is most probably a Windows format PATH printed by
22805         # mingw gcc, but we are running on Cygwin. Gcc prints its search
22806         # path with ; separators, and with drive letters. We can handle the
22807         # drive letters (cygwin fileutils understands them), so leave them,
22808         # especially as we might pass files found there to a mingw objdump,
22809         # which wouldn't understand a cygwinified path. Ahh.
22810         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22811       else
22812         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22813       fi
22814       ;;
22815     pw32*)
22816       # pw32 DLLs use 'pw' prefix rather than 'lib'
22817       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22818       ;;
22819     esac
22820     ;;
22821
22822   *)
22823     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22824     ;;
22825   esac
22826   dynamic_linker='Win32 ld.exe'
22827   # FIXME: first we should search . and the directory the executable is in
22828   shlibpath_var=PATH
22829   ;;
22830
22831 darwin* | rhapsody*)
22832   dynamic_linker="$host_os dyld"
22833   version_type=darwin
22834   need_lib_prefix=no
22835   need_version=no
22836   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22837   soname_spec='${libname}${release}${major}$shared_ext'
22838   shlibpath_overrides_runpath=yes
22839   shlibpath_var=DYLD_LIBRARY_PATH
22840   shrext_cmds='.dylib'
22841   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22842   if test "$GCC" = yes; then
22843     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"`
22844   else
22845     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22846   fi
22847   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22848   ;;
22849
22850 dgux*)
22851   version_type=linux
22852   need_lib_prefix=no
22853   need_version=no
22854   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22855   soname_spec='${libname}${release}${shared_ext}$major'
22856   shlibpath_var=LD_LIBRARY_PATH
22857   ;;
22858
22859 freebsd1*)
22860   dynamic_linker=no
22861   ;;
22862
22863 kfreebsd*-gnu)
22864   version_type=linux
22865   need_lib_prefix=no
22866   need_version=no
22867   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22868   soname_spec='${libname}${release}${shared_ext}$major'
22869   shlibpath_var=LD_LIBRARY_PATH
22870   shlibpath_overrides_runpath=no
22871   hardcode_into_libs=yes
22872   dynamic_linker='GNU ld.so'
22873   ;;
22874
22875 freebsd* | dragonfly*)
22876   # DragonFly does not have aout.  When/if they implement a new
22877   # versioning mechanism, adjust this.
22878   if test -x /usr/bin/objformat; then
22879     objformat=`/usr/bin/objformat`
22880   else
22881     case $host_os in
22882     freebsd[123]*) objformat=aout ;;
22883     *) objformat=elf ;;
22884     esac
22885   fi
22886   version_type=freebsd-$objformat
22887   case $version_type in
22888     freebsd-elf*)
22889       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22890       need_version=no
22891       need_lib_prefix=no
22892       ;;
22893     freebsd-*)
22894       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22895       need_version=yes
22896       ;;
22897   esac
22898   shlibpath_var=LD_LIBRARY_PATH
22899   case $host_os in
22900   freebsd2*)
22901     shlibpath_overrides_runpath=yes
22902     ;;
22903   freebsd3.[01]* | freebsdelf3.[01]*)
22904     shlibpath_overrides_runpath=yes
22905     hardcode_into_libs=yes
22906     ;;
22907   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22908   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22909     shlibpath_overrides_runpath=no
22910     hardcode_into_libs=yes
22911     ;;
22912   freebsd*) # from 4.6 on
22913     shlibpath_overrides_runpath=yes
22914     hardcode_into_libs=yes
22915     ;;
22916   esac
22917   ;;
22918
22919 gnu*)
22920   version_type=linux
22921   need_lib_prefix=no
22922   need_version=no
22923   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22924   soname_spec='${libname}${release}${shared_ext}$major'
22925   shlibpath_var=LD_LIBRARY_PATH
22926   hardcode_into_libs=yes
22927   ;;
22928
22929 hpux9* | hpux10* | hpux11*)
22930   # Give a soname corresponding to the major version so that dld.sl refuses to
22931   # link against other versions.
22932   version_type=sunos
22933   need_lib_prefix=no
22934   need_version=no
22935   case $host_cpu in
22936   ia64*)
22937     shrext_cmds='.so'
22938     hardcode_into_libs=yes
22939     dynamic_linker="$host_os dld.so"
22940     shlibpath_var=LD_LIBRARY_PATH
22941     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22942     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22943     soname_spec='${libname}${release}${shared_ext}$major'
22944     if test "X$HPUX_IA64_MODE" = X32; then
22945       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22946     else
22947       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22948     fi
22949     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22950     ;;
22951    hppa*64*)
22952      shrext_cmds='.sl'
22953      hardcode_into_libs=yes
22954      dynamic_linker="$host_os dld.sl"
22955      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22956      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22957      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22958      soname_spec='${libname}${release}${shared_ext}$major'
22959      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22960      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22961      ;;
22962    *)
22963     shrext_cmds='.sl'
22964     dynamic_linker="$host_os dld.sl"
22965     shlibpath_var=SHLIB_PATH
22966     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22967     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22968     soname_spec='${libname}${release}${shared_ext}$major'
22969     ;;
22970   esac
22971   # HP-UX runs *really* slowly unless shared libraries are mode 555.
22972   postinstall_cmds='chmod 555 $lib'
22973   ;;
22974
22975 interix3*)
22976   version_type=linux
22977   need_lib_prefix=no
22978   need_version=no
22979   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22980   soname_spec='${libname}${release}${shared_ext}$major'
22981   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22982   shlibpath_var=LD_LIBRARY_PATH
22983   shlibpath_overrides_runpath=no
22984   hardcode_into_libs=yes
22985   ;;
22986
22987 irix5* | irix6* | nonstopux*)
22988   case $host_os in
22989     nonstopux*) version_type=nonstopux ;;
22990     *)
22991         if test "$lt_cv_prog_gnu_ld" = yes; then
22992                 version_type=linux
22993         else
22994                 version_type=irix
22995         fi ;;
22996   esac
22997   need_lib_prefix=no
22998   need_version=no
22999   soname_spec='${libname}${release}${shared_ext}$major'
23000   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23001   case $host_os in
23002   irix5* | nonstopux*)
23003     libsuff= shlibsuff=
23004     ;;
23005   *)
23006     case $LD in # libtool.m4 will add one of these switches to LD
23007     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23008       libsuff= shlibsuff= libmagic=32-bit;;
23009     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23010       libsuff=32 shlibsuff=N32 libmagic=N32;;
23011     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23012       libsuff=64 shlibsuff=64 libmagic=64-bit;;
23013     *) libsuff= shlibsuff= libmagic=never-match;;
23014     esac
23015     ;;
23016   esac
23017   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23018   shlibpath_overrides_runpath=no
23019   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23020   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23021   hardcode_into_libs=yes
23022   ;;
23023
23024 # No shared lib support for Linux oldld, aout, or coff.
23025 linux*oldld* | linux*aout* | linux*coff*)
23026   dynamic_linker=no
23027   ;;
23028
23029 # This must be Linux ELF.
23030 linux*)
23031   version_type=linux
23032   need_lib_prefix=no
23033   need_version=no
23034   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23035   soname_spec='${libname}${release}${shared_ext}$major'
23036   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23037   shlibpath_var=LD_LIBRARY_PATH
23038   shlibpath_overrides_runpath=no
23039   # This implies no fast_install, which is unacceptable.
23040   # Some rework will be needed to allow for fast_install
23041   # before this can be enabled.
23042   hardcode_into_libs=yes
23043
23044   # Append ld.so.conf contents to the search path
23045   if test -f /etc/ld.so.conf; then
23046     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' ' '`
23047     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23048   fi
23049
23050   # We used to test for /lib/ld.so.1 and disable shared libraries on
23051   # powerpc, because MkLinux only supported shared libraries with the
23052   # GNU dynamic linker.  Since this was broken with cross compilers,
23053   # most powerpc-linux boxes support dynamic linking these days and
23054   # people can always --disable-shared, the test was removed, and we
23055   # assume the GNU/Linux dynamic linker is in use.
23056   dynamic_linker='GNU/Linux ld.so'
23057   ;;
23058
23059 knetbsd*-gnu)
23060   version_type=linux
23061   need_lib_prefix=no
23062   need_version=no
23063   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23064   soname_spec='${libname}${release}${shared_ext}$major'
23065   shlibpath_var=LD_LIBRARY_PATH
23066   shlibpath_overrides_runpath=no
23067   hardcode_into_libs=yes
23068   dynamic_linker='GNU ld.so'
23069   ;;
23070
23071 netbsd*)
23072   version_type=sunos
23073   need_lib_prefix=no
23074   need_version=no
23075   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23076     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23077     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23078     dynamic_linker='NetBSD (a.out) ld.so'
23079   else
23080     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23081     soname_spec='${libname}${release}${shared_ext}$major'
23082     dynamic_linker='NetBSD ld.elf_so'
23083   fi
23084   shlibpath_var=LD_LIBRARY_PATH
23085   shlibpath_overrides_runpath=yes
23086   hardcode_into_libs=yes
23087   ;;
23088
23089 newsos6)
23090   version_type=linux
23091   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23092   shlibpath_var=LD_LIBRARY_PATH
23093   shlibpath_overrides_runpath=yes
23094   ;;
23095
23096 nto-qnx*)
23097   version_type=linux
23098   need_lib_prefix=no
23099   need_version=no
23100   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23101   soname_spec='${libname}${release}${shared_ext}$major'
23102   shlibpath_var=LD_LIBRARY_PATH
23103   shlibpath_overrides_runpath=yes
23104   ;;
23105
23106 openbsd*)
23107   version_type=sunos
23108   sys_lib_dlsearch_path_spec="/usr/lib"
23109   need_lib_prefix=no
23110   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23111   case $host_os in
23112     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23113     *)                         need_version=no  ;;
23114   esac
23115   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23116   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23117   shlibpath_var=LD_LIBRARY_PATH
23118   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23119     case $host_os in
23120       openbsd2.[89] | openbsd2.[89].*)
23121         shlibpath_overrides_runpath=no
23122         ;;
23123       *)
23124         shlibpath_overrides_runpath=yes
23125         ;;
23126       esac
23127   else
23128     shlibpath_overrides_runpath=yes
23129   fi
23130   ;;
23131
23132 os2*)
23133   libname_spec='$name'
23134   shrext_cmds=".dll"
23135   need_lib_prefix=no
23136   library_names_spec='$libname${shared_ext} $libname.a'
23137   dynamic_linker='OS/2 ld.exe'
23138   shlibpath_var=LIBPATH
23139   ;;
23140
23141 osf3* | osf4* | osf5*)
23142   version_type=osf
23143   need_lib_prefix=no
23144   need_version=no
23145   soname_spec='${libname}${release}${shared_ext}$major'
23146   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23147   shlibpath_var=LD_LIBRARY_PATH
23148   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23149   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23150   ;;
23151
23152 solaris*)
23153   version_type=linux
23154   need_lib_prefix=no
23155   need_version=no
23156   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23157   soname_spec='${libname}${release}${shared_ext}$major'
23158   shlibpath_var=LD_LIBRARY_PATH
23159   shlibpath_overrides_runpath=yes
23160   hardcode_into_libs=yes
23161   # ldd complains unless libraries are executable
23162   postinstall_cmds='chmod +x $lib'
23163   ;;
23164
23165 sunos4*)
23166   version_type=sunos
23167   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23168   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23169   shlibpath_var=LD_LIBRARY_PATH
23170   shlibpath_overrides_runpath=yes
23171   if test "$with_gnu_ld" = yes; then
23172     need_lib_prefix=no
23173   fi
23174   need_version=yes
23175   ;;
23176
23177 sysv4 | sysv4.3*)
23178   version_type=linux
23179   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23180   soname_spec='${libname}${release}${shared_ext}$major'
23181   shlibpath_var=LD_LIBRARY_PATH
23182   case $host_vendor in
23183     sni)
23184       shlibpath_overrides_runpath=no
23185       need_lib_prefix=no
23186       export_dynamic_flag_spec='${wl}-Blargedynsym'
23187       runpath_var=LD_RUN_PATH
23188       ;;
23189     siemens)
23190       need_lib_prefix=no
23191       ;;
23192     motorola)
23193       need_lib_prefix=no
23194       need_version=no
23195       shlibpath_overrides_runpath=no
23196       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23197       ;;
23198   esac
23199   ;;
23200
23201 sysv4*MP*)
23202   if test -d /usr/nec ;then
23203     version_type=linux
23204     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23205     soname_spec='$libname${shared_ext}.$major'
23206     shlibpath_var=LD_LIBRARY_PATH
23207   fi
23208   ;;
23209
23210 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23211   version_type=freebsd-elf
23212   need_lib_prefix=no
23213   need_version=no
23214   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23215   soname_spec='${libname}${release}${shared_ext}$major'
23216   shlibpath_var=LD_LIBRARY_PATH
23217   hardcode_into_libs=yes
23218   if test "$with_gnu_ld" = yes; then
23219     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23220     shlibpath_overrides_runpath=no
23221   else
23222     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23223     shlibpath_overrides_runpath=yes
23224     case $host_os in
23225       sco3.2v5*)
23226         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23227         ;;
23228     esac
23229   fi
23230   sys_lib_dlsearch_path_spec='/usr/lib'
23231   ;;
23232
23233 uts4*)
23234   version_type=linux
23235   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23236   soname_spec='${libname}${release}${shared_ext}$major'
23237   shlibpath_var=LD_LIBRARY_PATH
23238   ;;
23239
23240 *)
23241   dynamic_linker=no
23242   ;;
23243 esac
23244 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23245 echo "${ECHO_T}$dynamic_linker" >&6; }
23246 test "$dynamic_linker" = no && can_build_shared=no
23247
23248 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23249 if test "$GCC" = yes; then
23250   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23251 fi
23252
23253 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23254 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23255 hardcode_action_F77=
23256 if test -n "$hardcode_libdir_flag_spec_F77" || \
23257    test -n "$runpath_var_F77" || \
23258    test "X$hardcode_automatic_F77" = "Xyes" ; then
23259
23260   # We can hardcode non-existant directories.
23261   if test "$hardcode_direct_F77" != no &&
23262      # If the only mechanism to avoid hardcoding is shlibpath_var, we
23263      # have to relink, otherwise we might link with an installed library
23264      # when we should be linking with a yet-to-be-installed one
23265      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23266      test "$hardcode_minus_L_F77" != no; then
23267     # Linking always hardcodes the temporary library directory.
23268     hardcode_action_F77=relink
23269   else
23270     # We can link without hardcoding, and we can hardcode nonexisting dirs.
23271     hardcode_action_F77=immediate
23272   fi
23273 else
23274   # We cannot hardcode anything, or else we can only hardcode existing
23275   # directories.
23276   hardcode_action_F77=unsupported
23277 fi
23278 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23279 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23280
23281 if test "$hardcode_action_F77" = relink; then
23282   # Fast installation is not supported
23283   enable_fast_install=no
23284 elif test "$shlibpath_overrides_runpath" = yes ||
23285      test "$enable_shared" = no; then
23286   # Fast installation is not necessary
23287   enable_fast_install=needless
23288 fi
23289
23290
23291 # The else clause should only fire when bootstrapping the
23292 # libtool distribution, otherwise you forgot to ship ltmain.sh
23293 # with your package, and you will get complaints that there are
23294 # no rules to generate ltmain.sh.
23295 if test -f "$ltmain"; then
23296   # See if we are running on zsh, and set the options which allow our commands through
23297   # without removal of \ escapes.
23298   if test -n "${ZSH_VERSION+set}" ; then
23299     setopt NO_GLOB_SUBST
23300   fi
23301   # Now quote all the things that may contain metacharacters while being
23302   # careful not to overquote the AC_SUBSTed values.  We take copies of the
23303   # variables and quote the copies for generation of the libtool script.
23304   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23305     SED SHELL STRIP \
23306     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23307     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23308     deplibs_check_method reload_flag reload_cmds need_locks \
23309     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23310     lt_cv_sys_global_symbol_to_c_name_address \
23311     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23312     old_postinstall_cmds old_postuninstall_cmds \
23313     compiler_F77 \
23314     CC_F77 \
23315     LD_F77 \
23316     lt_prog_compiler_wl_F77 \
23317     lt_prog_compiler_pic_F77 \
23318     lt_prog_compiler_static_F77 \
23319     lt_prog_compiler_no_builtin_flag_F77 \
23320     export_dynamic_flag_spec_F77 \
23321     thread_safe_flag_spec_F77 \
23322     whole_archive_flag_spec_F77 \
23323     enable_shared_with_static_runtimes_F77 \
23324     old_archive_cmds_F77 \
23325     old_archive_from_new_cmds_F77 \
23326     predep_objects_F77 \
23327     postdep_objects_F77 \
23328     predeps_F77 \
23329     postdeps_F77 \
23330     compiler_lib_search_path_F77 \
23331     archive_cmds_F77 \
23332     archive_expsym_cmds_F77 \
23333     postinstall_cmds_F77 \
23334     postuninstall_cmds_F77 \
23335     old_archive_from_expsyms_cmds_F77 \
23336     allow_undefined_flag_F77 \
23337     no_undefined_flag_F77 \
23338     export_symbols_cmds_F77 \
23339     hardcode_libdir_flag_spec_F77 \
23340     hardcode_libdir_flag_spec_ld_F77 \
23341     hardcode_libdir_separator_F77 \
23342     hardcode_automatic_F77 \
23343     module_cmds_F77 \
23344     module_expsym_cmds_F77 \
23345     lt_cv_prog_compiler_c_o_F77 \
23346     exclude_expsyms_F77 \
23347     include_expsyms_F77; do
23348
23349     case $var in
23350     old_archive_cmds_F77 | \
23351     old_archive_from_new_cmds_F77 | \
23352     archive_cmds_F77 | \
23353     archive_expsym_cmds_F77 | \
23354     module_cmds_F77 | \
23355     module_expsym_cmds_F77 | \
23356     old_archive_from_expsyms_cmds_F77 | \
23357     export_symbols_cmds_F77 | \
23358     extract_expsyms_cmds | reload_cmds | finish_cmds | \
23359     postinstall_cmds | postuninstall_cmds | \
23360     old_postinstall_cmds | old_postuninstall_cmds | \
23361     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23362       # Double-quote double-evaled strings.
23363       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23364       ;;
23365     *)
23366       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23367       ;;
23368     esac
23369   done
23370
23371   case $lt_echo in
23372   *'\$0 --fallback-echo"')
23373     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23374     ;;
23375   esac
23376
23377 cfgfile="$ofile"
23378
23379   cat <<__EOF__ >> "$cfgfile"
23380 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23381
23382 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23383
23384 # Shell to use when invoking shell scripts.
23385 SHELL=$lt_SHELL
23386
23387 # Whether or not to build shared libraries.
23388 build_libtool_libs=$enable_shared
23389
23390 # Whether or not to build static libraries.
23391 build_old_libs=$enable_static
23392
23393 # Whether or not to add -lc for building shared libraries.
23394 build_libtool_need_lc=$archive_cmds_need_lc_F77
23395
23396 # Whether or not to disallow shared libs when runtime libs are static
23397 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23398
23399 # Whether or not to optimize for fast installation.
23400 fast_install=$enable_fast_install
23401
23402 # The host system.
23403 host_alias=$host_alias
23404 host=$host
23405 host_os=$host_os
23406
23407 # The build system.
23408 build_alias=$build_alias
23409 build=$build
23410 build_os=$build_os
23411
23412 # An echo program that does not interpret backslashes.
23413 echo=$lt_echo
23414
23415 # The archiver.
23416 AR=$lt_AR
23417 AR_FLAGS=$lt_AR_FLAGS
23418
23419 # A C compiler.
23420 LTCC=$lt_LTCC
23421
23422 # LTCC compiler flags.
23423 LTCFLAGS=$lt_LTCFLAGS
23424
23425 # A language-specific compiler.
23426 CC=$lt_compiler_F77
23427
23428 # Is the compiler the GNU C compiler?
23429 with_gcc=$GCC_F77
23430
23431 # An ERE matcher.
23432 EGREP=$lt_EGREP
23433
23434 # The linker used to build libraries.
23435 LD=$lt_LD_F77
23436
23437 # Whether we need hard or soft links.
23438 LN_S=$lt_LN_S
23439
23440 # A BSD-compatible nm program.
23441 NM=$lt_NM
23442
23443 # A symbol stripping program
23444 STRIP=$lt_STRIP
23445
23446 # Used to examine libraries when file_magic_cmd begins "file"
23447 MAGIC_CMD=$MAGIC_CMD
23448
23449 # Used on cygwin: DLL creation program.
23450 DLLTOOL="$DLLTOOL"
23451
23452 # Used on cygwin: object dumper.
23453 OBJDUMP="$OBJDUMP"
23454
23455 # Used on cygwin: assembler.
23456 AS="$AS"
23457
23458 # The name of the directory that contains temporary libtool files.
23459 objdir=$objdir
23460
23461 # How to create reloadable object files.
23462 reload_flag=$lt_reload_flag
23463 reload_cmds=$lt_reload_cmds
23464
23465 # How to pass a linker flag through the compiler.
23466 wl=$lt_lt_prog_compiler_wl_F77
23467
23468 # Object file suffix (normally "o").
23469 objext="$ac_objext"
23470
23471 # Old archive suffix (normally "a").
23472 libext="$libext"
23473
23474 # Shared library suffix (normally ".so").
23475 shrext_cmds='$shrext_cmds'
23476
23477 # Executable file suffix (normally "").
23478 exeext="$exeext"
23479
23480 # Additional compiler flags for building library objects.
23481 pic_flag=$lt_lt_prog_compiler_pic_F77
23482 pic_mode=$pic_mode
23483
23484 # What is the maximum length of a command?
23485 max_cmd_len=$lt_cv_sys_max_cmd_len
23486
23487 # Does compiler simultaneously support -c and -o options?
23488 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23489
23490 # Must we lock files when doing compilation?
23491 need_locks=$lt_need_locks
23492
23493 # Do we need the lib prefix for modules?
23494 need_lib_prefix=$need_lib_prefix
23495
23496 # Do we need a version for libraries?
23497 need_version=$need_version
23498
23499 # Whether dlopen is supported.
23500 dlopen_support=$enable_dlopen
23501
23502 # Whether dlopen of programs is supported.
23503 dlopen_self=$enable_dlopen_self
23504
23505 # Whether dlopen of statically linked programs is supported.
23506 dlopen_self_static=$enable_dlopen_self_static
23507
23508 # Compiler flag to prevent dynamic linking.
23509 link_static_flag=$lt_lt_prog_compiler_static_F77
23510
23511 # Compiler flag to turn off builtin functions.
23512 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23513
23514 # Compiler flag to allow reflexive dlopens.
23515 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23516
23517 # Compiler flag to generate shared objects directly from archives.
23518 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23519
23520 # Compiler flag to generate thread-safe objects.
23521 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23522
23523 # Library versioning type.
23524 version_type=$version_type
23525
23526 # Format of library name prefix.
23527 libname_spec=$lt_libname_spec
23528
23529 # List of archive names.  First name is the real one, the rest are links.
23530 # The last name is the one that the linker finds with -lNAME.
23531 library_names_spec=$lt_library_names_spec
23532
23533 # The coded name of the library, if different from the real name.
23534 soname_spec=$lt_soname_spec
23535
23536 # Commands used to build and install an old-style archive.
23537 RANLIB=$lt_RANLIB
23538 old_archive_cmds=$lt_old_archive_cmds_F77
23539 old_postinstall_cmds=$lt_old_postinstall_cmds
23540 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23541
23542 # Create an old-style archive from a shared archive.
23543 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23544
23545 # Create a temporary old-style archive to link instead of a shared archive.
23546 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23547
23548 # Commands used to build and install a shared archive.
23549 archive_cmds=$lt_archive_cmds_F77
23550 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23551 postinstall_cmds=$lt_postinstall_cmds
23552 postuninstall_cmds=$lt_postuninstall_cmds
23553
23554 # Commands used to build a loadable module (assumed same as above if empty)
23555 module_cmds=$lt_module_cmds_F77
23556 module_expsym_cmds=$lt_module_expsym_cmds_F77
23557
23558 # Commands to strip libraries.
23559 old_striplib=$lt_old_striplib
23560 striplib=$lt_striplib
23561
23562 # Dependencies to place before the objects being linked to create a
23563 # shared library.
23564 predep_objects=$lt_predep_objects_F77
23565
23566 # Dependencies to place after the objects being linked to create a
23567 # shared library.
23568 postdep_objects=$lt_postdep_objects_F77
23569
23570 # Dependencies to place before the objects being linked to create a
23571 # shared library.
23572 predeps=$lt_predeps_F77
23573
23574 # Dependencies to place after the objects being linked to create a
23575 # shared library.
23576 postdeps=$lt_postdeps_F77
23577
23578 # The library search path used internally by the compiler when linking
23579 # a shared library.
23580 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23581
23582 # Method to check whether dependent libraries are shared objects.
23583 deplibs_check_method=$lt_deplibs_check_method
23584
23585 # Command to use when deplibs_check_method == file_magic.
23586 file_magic_cmd=$lt_file_magic_cmd
23587
23588 # Flag that allows shared libraries with undefined symbols to be built.
23589 allow_undefined_flag=$lt_allow_undefined_flag_F77
23590
23591 # Flag that forces no undefined symbols.
23592 no_undefined_flag=$lt_no_undefined_flag_F77
23593
23594 # Commands used to finish a libtool library installation in a directory.
23595 finish_cmds=$lt_finish_cmds
23596
23597 # Same as above, but a single script fragment to be evaled but not shown.
23598 finish_eval=$lt_finish_eval
23599
23600 # Take the output of nm and produce a listing of raw symbols and C names.
23601 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23602
23603 # Transform the output of nm in a proper C declaration
23604 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23605
23606 # Transform the output of nm in a C name address pair
23607 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23608
23609 # This is the shared library runtime path variable.
23610 runpath_var=$runpath_var
23611
23612 # This is the shared library path variable.
23613 shlibpath_var=$shlibpath_var
23614
23615 # Is shlibpath searched before the hard-coded library search path?
23616 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23617
23618 # How to hardcode a shared library path into an executable.
23619 hardcode_action=$hardcode_action_F77
23620
23621 # Whether we should hardcode library paths into libraries.
23622 hardcode_into_libs=$hardcode_into_libs
23623
23624 # Flag to hardcode \$libdir into a binary during linking.
23625 # This must work even if \$libdir does not exist.
23626 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23627
23628 # If ld is used when linking, flag to hardcode \$libdir into
23629 # a binary during linking. This must work even if \$libdir does
23630 # not exist.
23631 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23632
23633 # Whether we need a single -rpath flag with a separated argument.
23634 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23635
23636 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23637 # resulting binary.
23638 hardcode_direct=$hardcode_direct_F77
23639
23640 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23641 # resulting binary.
23642 hardcode_minus_L=$hardcode_minus_L_F77
23643
23644 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23645 # the resulting binary.
23646 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23647
23648 # Set to yes if building a shared library automatically hardcodes DIR into the library
23649 # and all subsequent libraries and executables linked against it.
23650 hardcode_automatic=$hardcode_automatic_F77
23651
23652 # Variables whose values should be saved in libtool wrapper scripts and
23653 # restored at relink time.
23654 variables_saved_for_relink="$variables_saved_for_relink"
23655
23656 # Whether libtool must link a program against all its dependency libraries.
23657 link_all_deplibs=$link_all_deplibs_F77
23658
23659 # Compile-time system search path for libraries
23660 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23661
23662 # Run-time system search path for libraries
23663 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23664
23665 # Fix the shell variable \$srcfile for the compiler.
23666 fix_srcfile_path="$fix_srcfile_path_F77"
23667
23668 # Set to yes if exported symbols are required.
23669 always_export_symbols=$always_export_symbols_F77
23670
23671 # The commands to list exported symbols.
23672 export_symbols_cmds=$lt_export_symbols_cmds_F77
23673
23674 # The commands to extract the exported symbol list from a shared archive.
23675 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23676
23677 # Symbols that should not be listed in the preloaded symbols.
23678 exclude_expsyms=$lt_exclude_expsyms_F77
23679
23680 # Symbols that must always be exported.
23681 include_expsyms=$lt_include_expsyms_F77
23682
23683 # ### END LIBTOOL TAG CONFIG: $tagname
23684
23685 __EOF__
23686
23687
23688 else
23689   # If there is no Makefile yet, we rely on a make rule to execute
23690   # `config.status --recheck' to rerun these tests and create the
23691   # libtool script then.
23692   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23693   if test -f "$ltmain_in"; then
23694     test -f Makefile && make "$ltmain"
23695   fi
23696 fi
23697
23698
23699 ac_ext=c
23700 ac_cpp='$CPP $CPPFLAGS'
23701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23704
23705 CC="$lt_save_CC"
23706
23707         else
23708           tagname=""
23709         fi
23710         ;;
23711
23712       GCJ)
23713         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23714           ac_ext=c
23715 ac_cpp='$CPP $CPPFLAGS'
23716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23719
23720
23721 # Source file extension for Java test sources.
23722 ac_ext=java
23723
23724 # Object file extension for compiled Java test sources.
23725 objext=o
23726 objext_GCJ=$objext
23727
23728 # Code to be used in simple compile tests
23729 lt_simple_compile_test_code="class foo {}\n"
23730
23731 # Code to be used in simple link tests
23732 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23733
23734 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23735
23736 # If no C compiler was specified, use CC.
23737 LTCC=${LTCC-"$CC"}
23738
23739 # If no C compiler flags were specified, use CFLAGS.
23740 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23741
23742 # Allow CC to be a program name with arguments.
23743 compiler=$CC
23744
23745
23746 # save warnings/boilerplate of simple test code
23747 ac_outfile=conftest.$ac_objext
23748 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23749 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23750 _lt_compiler_boilerplate=`cat conftest.err`
23751 $rm conftest*
23752
23753 ac_outfile=conftest.$ac_objext
23754 printf "$lt_simple_link_test_code" >conftest.$ac_ext
23755 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23756 _lt_linker_boilerplate=`cat conftest.err`
23757 $rm conftest*
23758
23759
23760 # Allow CC to be a program name with arguments.
23761 lt_save_CC="$CC"
23762 CC=${GCJ-"gcj"}
23763 compiler=$CC
23764 compiler_GCJ=$CC
23765 for cc_temp in $compiler""; do
23766   case $cc_temp in
23767     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23768     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23769     \-*) ;;
23770     *) break;;
23771   esac
23772 done
23773 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23774
23775
23776 # GCJ did not exist at the time GCC didn't implicitly link libc in.
23777 archive_cmds_need_lc_GCJ=no
23778
23779 old_archive_cmds_GCJ=$old_archive_cmds
23780
23781
23782 lt_prog_compiler_no_builtin_flag_GCJ=
23783
23784 if test "$GCC" = yes; then
23785   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23786
23787
23788 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23789 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23790 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23791   echo $ECHO_N "(cached) $ECHO_C" >&6
23792 else
23793   lt_cv_prog_compiler_rtti_exceptions=no
23794   ac_outfile=conftest.$ac_objext
23795    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23796    lt_compiler_flag="-fno-rtti -fno-exceptions"
23797    # Insert the option either (1) after the last *FLAGS variable, or
23798    # (2) before a word containing "conftest.", or (3) at the end.
23799    # Note that $ac_compile itself does not contain backslashes and begins
23800    # with a dollar sign (not a hyphen), so the echo should work correctly.
23801    # The option is referenced via a variable to avoid confusing sed.
23802    lt_compile=`echo "$ac_compile" | $SED \
23803    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23804    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23805    -e 's:$: $lt_compiler_flag:'`
23806    (eval echo "\"\$as_me:23806: $lt_compile\"" >&5)
23807    (eval "$lt_compile" 2>conftest.err)
23808    ac_status=$?
23809    cat conftest.err >&5
23810    echo "$as_me:23810: \$? = $ac_status" >&5
23811    if (exit $ac_status) && test -s "$ac_outfile"; then
23812      # The compiler can only warn and ignore the option if not recognized
23813      # So say no if there are warnings other than the usual output.
23814      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23815      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23816      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23817        lt_cv_prog_compiler_rtti_exceptions=yes
23818      fi
23819    fi
23820    $rm conftest*
23821
23822 fi
23823 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23824 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
23825
23826 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23827     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23828 else
23829     :
23830 fi
23831
23832 fi
23833
23834 lt_prog_compiler_wl_GCJ=
23835 lt_prog_compiler_pic_GCJ=
23836 lt_prog_compiler_static_GCJ=
23837
23838 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23839 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
23840
23841   if test "$GCC" = yes; then
23842     lt_prog_compiler_wl_GCJ='-Wl,'
23843     lt_prog_compiler_static_GCJ='-static'
23844
23845     case $host_os in
23846       aix*)
23847       # All AIX code is PIC.
23848       if test "$host_cpu" = ia64; then
23849         # AIX 5 now supports IA64 processor
23850         lt_prog_compiler_static_GCJ='-Bstatic'
23851       fi
23852       ;;
23853
23854     amigaos*)
23855       # FIXME: we need at least 68020 code to build shared libraries, but
23856       # adding the `-m68020' flag to GCC prevents building anything better,
23857       # like `-m68040'.
23858       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23859       ;;
23860
23861     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23862       # PIC is the default for these OSes.
23863       ;;
23864
23865     mingw* | pw32* | os2*)
23866       # This hack is so that the source file can tell whether it is being
23867       # built for inclusion in a dll (and should export symbols for example).
23868       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23869       ;;
23870
23871     darwin* | rhapsody*)
23872       # PIC is the default on this platform
23873       # Common symbols not allowed in MH_DYLIB files
23874       lt_prog_compiler_pic_GCJ='-fno-common'
23875       ;;
23876
23877     interix3*)
23878       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23879       # Instead, we relocate shared libraries at runtime.
23880       ;;
23881
23882     msdosdjgpp*)
23883       # Just because we use GCC doesn't mean we suddenly get shared libraries
23884       # on systems that don't support them.
23885       lt_prog_compiler_can_build_shared_GCJ=no
23886       enable_shared=no
23887       ;;
23888
23889     sysv4*MP*)
23890       if test -d /usr/nec; then
23891         lt_prog_compiler_pic_GCJ=-Kconform_pic
23892       fi
23893       ;;
23894
23895     hpux*)
23896       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23897       # not for PA HP-UX.
23898       case $host_cpu in
23899       hppa*64*|ia64*)
23900         # +Z the default
23901         ;;
23902       *)
23903         lt_prog_compiler_pic_GCJ='-fPIC'
23904         ;;
23905       esac
23906       ;;
23907
23908     *)
23909       lt_prog_compiler_pic_GCJ='-fPIC'
23910       ;;
23911     esac
23912   else
23913     # PORTME Check for flag to pass linker flags through the system compiler.
23914     case $host_os in
23915     aix*)
23916       lt_prog_compiler_wl_GCJ='-Wl,'
23917       if test "$host_cpu" = ia64; then
23918         # AIX 5 now supports IA64 processor
23919         lt_prog_compiler_static_GCJ='-Bstatic'
23920       else
23921         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23922       fi
23923       ;;
23924       darwin*)
23925         # PIC is the default on this platform
23926         # Common symbols not allowed in MH_DYLIB files
23927        case $cc_basename in
23928          xlc*)
23929          lt_prog_compiler_pic_GCJ='-qnocommon'
23930          lt_prog_compiler_wl_GCJ='-Wl,'
23931          ;;
23932        esac
23933        ;;
23934
23935     mingw* | pw32* | os2*)
23936       # This hack is so that the source file can tell whether it is being
23937       # built for inclusion in a dll (and should export symbols for example).
23938       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23939       ;;
23940
23941     hpux9* | hpux10* | hpux11*)
23942       lt_prog_compiler_wl_GCJ='-Wl,'
23943       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23944       # not for PA HP-UX.
23945       case $host_cpu in
23946       hppa*64*|ia64*)
23947         # +Z the default
23948         ;;
23949       *)
23950         lt_prog_compiler_pic_GCJ='+Z'
23951         ;;
23952       esac
23953       # Is there a better lt_prog_compiler_static that works with the bundled CC?
23954       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23955       ;;
23956
23957     irix5* | irix6* | nonstopux*)
23958       lt_prog_compiler_wl_GCJ='-Wl,'
23959       # PIC (with -KPIC) is the default.
23960       lt_prog_compiler_static_GCJ='-non_shared'
23961       ;;
23962
23963     newsos6)
23964       lt_prog_compiler_pic_GCJ='-KPIC'
23965       lt_prog_compiler_static_GCJ='-Bstatic'
23966       ;;
23967
23968     linux*)
23969       case $cc_basename in
23970       icc* | ecc*)
23971         lt_prog_compiler_wl_GCJ='-Wl,'
23972         lt_prog_compiler_pic_GCJ='-KPIC'
23973         lt_prog_compiler_static_GCJ='-static'
23974         ;;
23975       pgcc* | pgf77* | pgf90* | pgf95*)
23976         # Portland Group compilers (*not* the Pentium gcc compiler,
23977         # which looks to be a dead project)
23978         lt_prog_compiler_wl_GCJ='-Wl,'
23979         lt_prog_compiler_pic_GCJ='-fpic'
23980         lt_prog_compiler_static_GCJ='-Bstatic'
23981         ;;
23982       ccc*)
23983         lt_prog_compiler_wl_GCJ='-Wl,'
23984         # All Alpha code is PIC.
23985         lt_prog_compiler_static_GCJ='-non_shared'
23986         ;;
23987       esac
23988       ;;
23989
23990     osf3* | osf4* | osf5*)
23991       lt_prog_compiler_wl_GCJ='-Wl,'
23992       # All OSF/1 code is PIC.
23993       lt_prog_compiler_static_GCJ='-non_shared'
23994       ;;
23995
23996     solaris*)
23997       lt_prog_compiler_pic_GCJ='-KPIC'
23998       lt_prog_compiler_static_GCJ='-Bstatic'
23999       case $cc_basename in
24000       f77* | f90* | f95*)
24001         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
24002       *)
24003         lt_prog_compiler_wl_GCJ='-Wl,';;
24004       esac
24005       ;;
24006
24007     sunos4*)
24008       lt_prog_compiler_wl_GCJ='-Qoption ld '
24009       lt_prog_compiler_pic_GCJ='-PIC'
24010       lt_prog_compiler_static_GCJ='-Bstatic'
24011       ;;
24012
24013     sysv4 | sysv4.2uw2* | sysv4.3*)
24014       lt_prog_compiler_wl_GCJ='-Wl,'
24015       lt_prog_compiler_pic_GCJ='-KPIC'
24016       lt_prog_compiler_static_GCJ='-Bstatic'
24017       ;;
24018
24019     sysv4*MP*)
24020       if test -d /usr/nec ;then
24021         lt_prog_compiler_pic_GCJ='-Kconform_pic'
24022         lt_prog_compiler_static_GCJ='-Bstatic'
24023       fi
24024       ;;
24025
24026     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24027       lt_prog_compiler_wl_GCJ='-Wl,'
24028       lt_prog_compiler_pic_GCJ='-KPIC'
24029       lt_prog_compiler_static_GCJ='-Bstatic'
24030       ;;
24031
24032     unicos*)
24033       lt_prog_compiler_wl_GCJ='-Wl,'
24034       lt_prog_compiler_can_build_shared_GCJ=no
24035       ;;
24036
24037     uts4*)
24038       lt_prog_compiler_pic_GCJ='-pic'
24039       lt_prog_compiler_static_GCJ='-Bstatic'
24040       ;;
24041
24042     *)
24043       lt_prog_compiler_can_build_shared_GCJ=no
24044       ;;
24045     esac
24046   fi
24047
24048 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24049 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
24050
24051 #
24052 # Check to make sure the PIC flag actually works.
24053 #
24054 if test -n "$lt_prog_compiler_pic_GCJ"; then
24055
24056 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24057 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
24058 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24059   echo $ECHO_N "(cached) $ECHO_C" >&6
24060 else
24061   lt_prog_compiler_pic_works_GCJ=no
24062   ac_outfile=conftest.$ac_objext
24063    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24064    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24065    # Insert the option either (1) after the last *FLAGS variable, or
24066    # (2) before a word containing "conftest.", or (3) at the end.
24067    # Note that $ac_compile itself does not contain backslashes and begins
24068    # with a dollar sign (not a hyphen), so the echo should work correctly.
24069    # The option is referenced via a variable to avoid confusing sed.
24070    lt_compile=`echo "$ac_compile" | $SED \
24071    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24072    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24073    -e 's:$: $lt_compiler_flag:'`
24074    (eval echo "\"\$as_me:24074: $lt_compile\"" >&5)
24075    (eval "$lt_compile" 2>conftest.err)
24076    ac_status=$?
24077    cat conftest.err >&5
24078    echo "$as_me:24078: \$? = $ac_status" >&5
24079    if (exit $ac_status) && test -s "$ac_outfile"; then
24080      # The compiler can only warn and ignore the option if not recognized
24081      # So say no if there are warnings other than the usual output.
24082      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24083      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24084      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24085        lt_prog_compiler_pic_works_GCJ=yes
24086      fi
24087    fi
24088    $rm conftest*
24089
24090 fi
24091 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24092 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24093
24094 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24095     case $lt_prog_compiler_pic_GCJ in
24096      "" | " "*) ;;
24097      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24098      esac
24099 else
24100     lt_prog_compiler_pic_GCJ=
24101      lt_prog_compiler_can_build_shared_GCJ=no
24102 fi
24103
24104 fi
24105 case $host_os in
24106   # For platforms which do not support PIC, -DPIC is meaningless:
24107   *djgpp*)
24108     lt_prog_compiler_pic_GCJ=
24109     ;;
24110   *)
24111     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24112     ;;
24113 esac
24114
24115 #
24116 # Check to make sure the static flag actually works.
24117 #
24118 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24119 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24120 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24121 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24122   echo $ECHO_N "(cached) $ECHO_C" >&6
24123 else
24124   lt_prog_compiler_static_works_GCJ=no
24125    save_LDFLAGS="$LDFLAGS"
24126    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24127    printf "$lt_simple_link_test_code" > conftest.$ac_ext
24128    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24129      # The linker can only warn and ignore the option if not recognized
24130      # So say no if there are warnings
24131      if test -s conftest.err; then
24132        # Append any errors to the config.log.
24133        cat conftest.err 1>&5
24134        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24135        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24136        if diff conftest.exp conftest.er2 >/dev/null; then
24137          lt_prog_compiler_static_works_GCJ=yes
24138        fi
24139      else
24140        lt_prog_compiler_static_works_GCJ=yes
24141      fi
24142    fi
24143    $rm conftest*
24144    LDFLAGS="$save_LDFLAGS"
24145
24146 fi
24147 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24148 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24149
24150 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24151     :
24152 else
24153     lt_prog_compiler_static_GCJ=
24154 fi
24155
24156
24157 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24158 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24159 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24160   echo $ECHO_N "(cached) $ECHO_C" >&6
24161 else
24162   lt_cv_prog_compiler_c_o_GCJ=no
24163    $rm -r conftest 2>/dev/null
24164    mkdir conftest
24165    cd conftest
24166    mkdir out
24167    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24168
24169    lt_compiler_flag="-o out/conftest2.$ac_objext"
24170    # Insert the option either (1) after the last *FLAGS variable, or
24171    # (2) before a word containing "conftest.", or (3) at the end.
24172    # Note that $ac_compile itself does not contain backslashes and begins
24173    # with a dollar sign (not a hyphen), so the echo should work correctly.
24174    lt_compile=`echo "$ac_compile" | $SED \
24175    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24176    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24177    -e 's:$: $lt_compiler_flag:'`
24178    (eval echo "\"\$as_me:24178: $lt_compile\"" >&5)
24179    (eval "$lt_compile" 2>out/conftest.err)
24180    ac_status=$?
24181    cat out/conftest.err >&5
24182    echo "$as_me:24182: \$? = $ac_status" >&5
24183    if (exit $ac_status) && test -s out/conftest2.$ac_objext
24184    then
24185      # The compiler can only warn and ignore the option if not recognized
24186      # So say no if there are warnings
24187      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24188      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24189      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24190        lt_cv_prog_compiler_c_o_GCJ=yes
24191      fi
24192    fi
24193    chmod u+w . 2>&5
24194    $rm conftest*
24195    # SGI C++ compiler will create directory out/ii_files/ for
24196    # template instantiation
24197    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24198    $rm out/* && rmdir out
24199    cd ..
24200    rmdir conftest
24201    $rm conftest*
24202
24203 fi
24204 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24205 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24206
24207
24208 hard_links="nottested"
24209 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24210   # do not overwrite the value of need_locks provided by the user
24211   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24212 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24213   hard_links=yes
24214   $rm conftest*
24215   ln conftest.a conftest.b 2>/dev/null && hard_links=no
24216   touch conftest.a
24217   ln conftest.a conftest.b 2>&5 || hard_links=no
24218   ln conftest.a conftest.b 2>/dev/null && hard_links=no
24219   { echo "$as_me:$LINENO: result: $hard_links" >&5
24220 echo "${ECHO_T}$hard_links" >&6; }
24221   if test "$hard_links" = no; then
24222     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24223 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24224     need_locks=warn
24225   fi
24226 else
24227   need_locks=no
24228 fi
24229
24230 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24231 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24232
24233   runpath_var=
24234   allow_undefined_flag_GCJ=
24235   enable_shared_with_static_runtimes_GCJ=no
24236   archive_cmds_GCJ=
24237   archive_expsym_cmds_GCJ=
24238   old_archive_From_new_cmds_GCJ=
24239   old_archive_from_expsyms_cmds_GCJ=
24240   export_dynamic_flag_spec_GCJ=
24241   whole_archive_flag_spec_GCJ=
24242   thread_safe_flag_spec_GCJ=
24243   hardcode_libdir_flag_spec_GCJ=
24244   hardcode_libdir_flag_spec_ld_GCJ=
24245   hardcode_libdir_separator_GCJ=
24246   hardcode_direct_GCJ=no
24247   hardcode_minus_L_GCJ=no
24248   hardcode_shlibpath_var_GCJ=unsupported
24249   link_all_deplibs_GCJ=unknown
24250   hardcode_automatic_GCJ=no
24251   module_cmds_GCJ=
24252   module_expsym_cmds_GCJ=
24253   always_export_symbols_GCJ=no
24254   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24255   # include_expsyms should be a list of space-separated symbols to be *always*
24256   # included in the symbol list
24257   include_expsyms_GCJ=
24258   # exclude_expsyms can be an extended regexp of symbols to exclude
24259   # it will be wrapped by ` (' and `)$', so one must not match beginning or
24260   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24261   # as well as any symbol that contains `d'.
24262   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24263   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24264   # platforms (ab)use it in PIC code, but their linkers get confused if
24265   # the symbol is explicitly referenced.  Since portable code cannot
24266   # rely on this symbol name, it's probably fine to never include it in
24267   # preloaded symbol tables.
24268   extract_expsyms_cmds=
24269   # Just being paranoid about ensuring that cc_basename is set.
24270   for cc_temp in $compiler""; do
24271   case $cc_temp in
24272     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24273     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24274     \-*) ;;
24275     *) break;;
24276   esac
24277 done
24278 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24279
24280   case $host_os in
24281   cygwin* | mingw* | pw32*)
24282     # FIXME: the MSVC++ port hasn't been tested in a loooong time
24283     # When not using gcc, we currently assume that we are using
24284     # Microsoft Visual C++.
24285     if test "$GCC" != yes; then
24286       with_gnu_ld=no
24287     fi
24288     ;;
24289   interix*)
24290     # we just hope/assume this is gcc and not c89 (= MSVC++)
24291     with_gnu_ld=yes
24292     ;;
24293   openbsd*)
24294     with_gnu_ld=no
24295     ;;
24296   esac
24297
24298   ld_shlibs_GCJ=yes
24299   if test "$with_gnu_ld" = yes; then
24300     # If archive_cmds runs LD, not CC, wlarc should be empty
24301     wlarc='${wl}'
24302
24303     # Set some defaults for GNU ld with shared library support. These
24304     # are reset later if shared libraries are not supported. Putting them
24305     # here allows them to be overridden if necessary.
24306     runpath_var=LD_RUN_PATH
24307     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24308     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24309     # ancient GNU ld didn't support --whole-archive et. al.
24310     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24311         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24312       else
24313         whole_archive_flag_spec_GCJ=
24314     fi
24315     supports_anon_versioning=no
24316     case `$LD -v 2>/dev/null` in
24317       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24318       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24319       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24320       *\ 2.11.*) ;; # other 2.11 versions
24321       *) supports_anon_versioning=yes ;;
24322     esac
24323
24324     # See if GNU ld supports shared libraries.
24325     case $host_os in
24326     aix3* | aix4* | aix5*)
24327       # On AIX/PPC, the GNU linker is very broken
24328       if test "$host_cpu" != ia64; then
24329         ld_shlibs_GCJ=no
24330         cat <<EOF 1>&2
24331
24332 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24333 *** to be unable to reliably create shared libraries on AIX.
24334 *** Therefore, libtool is disabling shared libraries support.  If you
24335 *** really care for shared libraries, you may want to modify your PATH
24336 *** so that a non-GNU linker is found, and then restart.
24337
24338 EOF
24339       fi
24340       ;;
24341
24342     amigaos*)
24343       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)'
24344       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24345       hardcode_minus_L_GCJ=yes
24346
24347       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24348       # that the semantics of dynamic libraries on AmigaOS, at least up
24349       # to version 4, is to share data among multiple programs linked
24350       # with the same dynamic library.  Since this doesn't match the
24351       # behavior of shared libraries on other platforms, we can't use
24352       # them.
24353       ld_shlibs_GCJ=no
24354       ;;
24355
24356     beos*)
24357       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24358         allow_undefined_flag_GCJ=unsupported
24359         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24360         # support --undefined.  This deserves some investigation.  FIXME
24361         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24362       else
24363         ld_shlibs_GCJ=no
24364       fi
24365       ;;
24366
24367     cygwin* | mingw* | pw32*)
24368       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24369       # as there is no search path for DLLs.
24370       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24371       allow_undefined_flag_GCJ=unsupported
24372       always_export_symbols_GCJ=no
24373       enable_shared_with_static_runtimes_GCJ=yes
24374       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24375
24376       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24377         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24378         # If the export-symbols file already is a .def file (1st line
24379         # is EXPORTS), use it as is; otherwise, prepend...
24380         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24381           cp $export_symbols $output_objdir/$soname.def;
24382         else
24383           echo EXPORTS > $output_objdir/$soname.def;
24384           cat $export_symbols >> $output_objdir/$soname.def;
24385         fi~
24386         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24387       else
24388         ld_shlibs_GCJ=no
24389       fi
24390       ;;
24391
24392     interix3*)
24393       hardcode_direct_GCJ=no
24394       hardcode_shlibpath_var_GCJ=no
24395       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24396       export_dynamic_flag_spec_GCJ='${wl}-E'
24397       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24398       # Instead, shared libraries are loaded at an image base (0x10000000 by
24399       # default) and relocated if they conflict, which is a slow very memory
24400       # consuming and fragmenting process.  To avoid this, we pick a random,
24401       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24402       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
24403       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'
24404       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'
24405       ;;
24406
24407     linux*)
24408       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24409         tmp_addflag=
24410         case $cc_basename,$host_cpu in
24411         pgcc*)                          # Portland Group C compiler
24412           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'
24413           tmp_addflag=' $pic_flag'
24414           ;;
24415         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
24416           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'
24417           tmp_addflag=' $pic_flag -Mnomain' ;;
24418         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
24419           tmp_addflag=' -i_dynamic' ;;
24420         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
24421           tmp_addflag=' -i_dynamic -nofor_main' ;;
24422         ifc* | ifort*)                  # Intel Fortran compiler
24423           tmp_addflag=' -nofor_main' ;;
24424         esac
24425         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24426
24427         if test $supports_anon_versioning = yes; then
24428           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24429   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24430   $echo "local: *; };" >> $output_objdir/$libname.ver~
24431           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24432         fi
24433       else
24434         ld_shlibs_GCJ=no
24435       fi
24436       ;;
24437
24438     netbsd*)
24439       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24440         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24441         wlarc=
24442       else
24443         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24444         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24445       fi
24446       ;;
24447
24448     solaris*)
24449       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24450         ld_shlibs_GCJ=no
24451         cat <<EOF 1>&2
24452
24453 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24454 *** create shared libraries on Solaris systems.  Therefore, libtool
24455 *** is disabling shared libraries support.  We urge you to upgrade GNU
24456 *** binutils to release 2.9.1 or newer.  Another option is to modify
24457 *** your PATH or compiler configuration so that the native linker is
24458 *** used, and then restart.
24459
24460 EOF
24461       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24462         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24463         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24464       else
24465         ld_shlibs_GCJ=no
24466       fi
24467       ;;
24468
24469     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24470       case `$LD -v 2>&1` in
24471         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24472         ld_shlibs_GCJ=no
24473         cat <<_LT_EOF 1>&2
24474
24475 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24476 *** reliably create shared libraries on SCO systems.  Therefore, libtool
24477 *** is disabling shared libraries support.  We urge you to upgrade GNU
24478 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
24479 *** your PATH or compiler configuration so that the native linker is
24480 *** used, and then restart.
24481
24482 _LT_EOF
24483         ;;
24484         *)
24485           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24486             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24487             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24488             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24489           else
24490             ld_shlibs_GCJ=no
24491           fi
24492         ;;
24493       esac
24494       ;;
24495
24496     sunos4*)
24497       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24498       wlarc=
24499       hardcode_direct_GCJ=yes
24500       hardcode_shlibpath_var_GCJ=no
24501       ;;
24502
24503     *)
24504       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24505         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24506         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24507       else
24508         ld_shlibs_GCJ=no
24509       fi
24510       ;;
24511     esac
24512
24513     if test "$ld_shlibs_GCJ" = no; then
24514       runpath_var=
24515       hardcode_libdir_flag_spec_GCJ=
24516       export_dynamic_flag_spec_GCJ=
24517       whole_archive_flag_spec_GCJ=
24518     fi
24519   else
24520     # PORTME fill in a description of your system's linker (not GNU ld)
24521     case $host_os in
24522     aix3*)
24523       allow_undefined_flag_GCJ=unsupported
24524       always_export_symbols_GCJ=yes
24525       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'
24526       # Note: this linker hardcodes the directories in LIBPATH if there
24527       # are no directories specified by -L.
24528       hardcode_minus_L_GCJ=yes
24529       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24530         # Neither direct hardcoding nor static linking is supported with a
24531         # broken collect2.
24532         hardcode_direct_GCJ=unsupported
24533       fi
24534       ;;
24535
24536     aix4* | aix5*)
24537       if test "$host_cpu" = ia64; then
24538         # On IA64, the linker does run time linking by default, so we don't
24539         # have to do anything special.
24540         aix_use_runtimelinking=no
24541         exp_sym_flag='-Bexport'
24542         no_entry_flag=""
24543       else
24544         # If we're using GNU nm, then we don't want the "-C" option.
24545         # -C means demangle to AIX nm, but means don't demangle with GNU nm
24546         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24547           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'
24548         else
24549           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'
24550         fi
24551         aix_use_runtimelinking=no
24552
24553         # Test if we are trying to use run time linking or normal
24554         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24555         # need to do runtime linking.
24556         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24557           for ld_flag in $LDFLAGS; do
24558           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24559             aix_use_runtimelinking=yes
24560             break
24561           fi
24562           done
24563           ;;
24564         esac
24565
24566         exp_sym_flag='-bexport'
24567         no_entry_flag='-bnoentry'
24568       fi
24569
24570       # When large executables or shared objects are built, AIX ld can
24571       # have problems creating the table of contents.  If linking a library
24572       # or program results in "error TOC overflow" add -mminimal-toc to
24573       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
24574       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24575
24576       archive_cmds_GCJ=''
24577       hardcode_direct_GCJ=yes
24578       hardcode_libdir_separator_GCJ=':'
24579       link_all_deplibs_GCJ=yes
24580
24581       if test "$GCC" = yes; then
24582         case $host_os in aix4.[012]|aix4.[012].*)
24583         # We only want to do this on AIX 4.2 and lower, the check
24584         # below for broken collect2 doesn't work under 4.3+
24585           collect2name=`${CC} -print-prog-name=collect2`
24586           if test -f "$collect2name" && \
24587            strings "$collect2name" | grep resolve_lib_name >/dev/null
24588           then
24589           # We have reworked collect2
24590           hardcode_direct_GCJ=yes
24591           else
24592           # We have old collect2
24593           hardcode_direct_GCJ=unsupported
24594           # It fails to find uninstalled libraries when the uninstalled
24595           # path is not listed in the libpath.  Setting hardcode_minus_L
24596           # to unsupported forces relinking
24597           hardcode_minus_L_GCJ=yes
24598           hardcode_libdir_flag_spec_GCJ='-L$libdir'
24599           hardcode_libdir_separator_GCJ=
24600           fi
24601           ;;
24602         esac
24603         shared_flag='-shared'
24604         if test "$aix_use_runtimelinking" = yes; then
24605           shared_flag="$shared_flag "'${wl}-G'
24606         fi
24607       else
24608         # not using gcc
24609         if test "$host_cpu" = ia64; then
24610         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24611         # chokes on -Wl,-G. The following line is correct:
24612           shared_flag='-G'
24613         else
24614           if test "$aix_use_runtimelinking" = yes; then
24615             shared_flag='${wl}-G'
24616           else
24617             shared_flag='${wl}-bM:SRE'
24618           fi
24619         fi
24620       fi
24621
24622       # It seems that -bexpall does not export symbols beginning with
24623       # underscore (_), so it is better to generate a list of symbols to export.
24624       always_export_symbols_GCJ=yes
24625       if test "$aix_use_runtimelinking" = yes; then
24626         # Warning - without using the other runtime loading flags (-brtl),
24627         # -berok will link without error, but may produce a broken library.
24628         allow_undefined_flag_GCJ='-berok'
24629        # Determine the default libpath from the value encoded in an empty executable.
24630        cat >conftest.$ac_ext <<_ACEOF
24631 /* confdefs.h.  */
24632 _ACEOF
24633 cat confdefs.h >>conftest.$ac_ext
24634 cat >>conftest.$ac_ext <<_ACEOF
24635 /* end confdefs.h.  */
24636
24637 int
24638 main ()
24639 {
24640
24641   ;
24642   return 0;
24643 }
24644 _ACEOF
24645 rm -f conftest.$ac_objext conftest$ac_exeext
24646 if { (ac_try="$ac_link"
24647 case "(($ac_try" in
24648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24649   *) ac_try_echo=$ac_try;;
24650 esac
24651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24652   (eval "$ac_link") 2>conftest.er1
24653   ac_status=$?
24654   grep -v '^ *+' conftest.er1 >conftest.err
24655   rm -f conftest.er1
24656   cat conftest.err >&5
24657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24658   (exit $ac_status); } &&
24659          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24660   { (case "(($ac_try" in
24661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24662   *) ac_try_echo=$ac_try;;
24663 esac
24664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24665   (eval "$ac_try") 2>&5
24666   ac_status=$?
24667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24668   (exit $ac_status); }; } &&
24669          { ac_try='test -s conftest$ac_exeext'
24670   { (case "(($ac_try" in
24671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24672   *) ac_try_echo=$ac_try;;
24673 esac
24674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24675   (eval "$ac_try") 2>&5
24676   ac_status=$?
24677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24678   (exit $ac_status); }; }; then
24679
24680 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24681 }'`
24682 # Check for a 64-bit object if we didn't find anything.
24683 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; }
24684 }'`; fi
24685 else
24686   echo "$as_me: failed program was:" >&5
24687 sed 's/^/| /' conftest.$ac_ext >&5
24688
24689
24690 fi
24691
24692 rm -f core conftest.err conftest.$ac_objext \
24693       conftest$ac_exeext conftest.$ac_ext
24694 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24695
24696        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24697         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"
24698        else
24699         if test "$host_cpu" = ia64; then
24700           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24701           allow_undefined_flag_GCJ="-z nodefs"
24702           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"
24703         else
24704          # Determine the default libpath from the value encoded in an empty executable.
24705          cat >conftest.$ac_ext <<_ACEOF
24706 /* confdefs.h.  */
24707 _ACEOF
24708 cat confdefs.h >>conftest.$ac_ext
24709 cat >>conftest.$ac_ext <<_ACEOF
24710 /* end confdefs.h.  */
24711
24712 int
24713 main ()
24714 {
24715
24716   ;
24717   return 0;
24718 }
24719 _ACEOF
24720 rm -f conftest.$ac_objext conftest$ac_exeext
24721 if { (ac_try="$ac_link"
24722 case "(($ac_try" in
24723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24724   *) ac_try_echo=$ac_try;;
24725 esac
24726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24727   (eval "$ac_link") 2>conftest.er1
24728   ac_status=$?
24729   grep -v '^ *+' conftest.er1 >conftest.err
24730   rm -f conftest.er1
24731   cat conftest.err >&5
24732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24733   (exit $ac_status); } &&
24734          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24735   { (case "(($ac_try" in
24736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24737   *) ac_try_echo=$ac_try;;
24738 esac
24739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24740   (eval "$ac_try") 2>&5
24741   ac_status=$?
24742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24743   (exit $ac_status); }; } &&
24744          { ac_try='test -s conftest$ac_exeext'
24745   { (case "(($ac_try" in
24746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24747   *) ac_try_echo=$ac_try;;
24748 esac
24749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24750   (eval "$ac_try") 2>&5
24751   ac_status=$?
24752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24753   (exit $ac_status); }; }; then
24754
24755 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24756 }'`
24757 # Check for a 64-bit object if we didn't find anything.
24758 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; }
24759 }'`; fi
24760 else
24761   echo "$as_me: failed program was:" >&5
24762 sed 's/^/| /' conftest.$ac_ext >&5
24763
24764
24765 fi
24766
24767 rm -f core conftest.err conftest.$ac_objext \
24768       conftest$ac_exeext conftest.$ac_ext
24769 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24770
24771          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24772           # Warning - without using the other run time loading flags,
24773           # -berok will link without error, but may produce a broken library.
24774           no_undefined_flag_GCJ=' ${wl}-bernotok'
24775           allow_undefined_flag_GCJ=' ${wl}-berok'
24776           # Exported symbols can be pulled into shared objects from archives
24777           whole_archive_flag_spec_GCJ='$convenience'
24778           archive_cmds_need_lc_GCJ=yes
24779           # This is similar to how AIX traditionally builds its shared libraries.
24780           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'
24781         fi
24782       fi
24783       ;;
24784
24785     amigaos*)
24786       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)'
24787       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24788       hardcode_minus_L_GCJ=yes
24789       # see comment about different semantics on the GNU ld section
24790       ld_shlibs_GCJ=no
24791       ;;
24792
24793     bsdi[45]*)
24794       export_dynamic_flag_spec_GCJ=-rdynamic
24795       ;;
24796
24797     cygwin* | mingw* | pw32*)
24798       # When not using gcc, we currently assume that we are using
24799       # Microsoft Visual C++.
24800       # hardcode_libdir_flag_spec is actually meaningless, as there is
24801       # no search path for DLLs.
24802       hardcode_libdir_flag_spec_GCJ=' '
24803       allow_undefined_flag_GCJ=unsupported
24804       # Tell ltmain to make .lib files, not .a files.
24805       libext=lib
24806       # Tell ltmain to make .dll files, not .so files.
24807       shrext_cmds=".dll"
24808       # FIXME: Setting linknames here is a bad hack.
24809       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24810       # The linker will automatically build a .lib file if we build a DLL.
24811       old_archive_From_new_cmds_GCJ='true'
24812       # FIXME: Should let the user specify the lib program.
24813       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
24814       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
24815       enable_shared_with_static_runtimes_GCJ=yes
24816       ;;
24817
24818     darwin* | rhapsody*)
24819       case $host_os in
24820         rhapsody* | darwin1.[012])
24821          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24822          ;;
24823        *) # Darwin 1.3 on
24824          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24825            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24826          else
24827            case ${MACOSX_DEPLOYMENT_TARGET} in
24828              10.[012])
24829                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24830                ;;
24831              10.*)
24832                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24833                ;;
24834            esac
24835          fi
24836          ;;
24837       esac
24838       archive_cmds_need_lc_GCJ=no
24839       hardcode_direct_GCJ=no
24840       hardcode_automatic_GCJ=yes
24841       hardcode_shlibpath_var_GCJ=unsupported
24842       whole_archive_flag_spec_GCJ=''
24843       link_all_deplibs_GCJ=yes
24844     if test "$GCC" = yes ; then
24845         output_verbose_link_cmd='echo'
24846         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24847       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24848       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24849       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}'
24850       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}'
24851     else
24852       case $cc_basename in
24853         xlc*)
24854          output_verbose_link_cmd='echo'
24855          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24856          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24857           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24858          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}'
24859           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}'
24860           ;;
24861        *)
24862          ld_shlibs_GCJ=no
24863           ;;
24864       esac
24865     fi
24866       ;;
24867
24868     dgux*)
24869       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24870       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24871       hardcode_shlibpath_var_GCJ=no
24872       ;;
24873
24874     freebsd1*)
24875       ld_shlibs_GCJ=no
24876       ;;
24877
24878     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24879     # support.  Future versions do this automatically, but an explicit c++rt0.o
24880     # does not break anything, and helps significantly (at the cost of a little
24881     # extra space).
24882     freebsd2.2*)
24883       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24884       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24885       hardcode_direct_GCJ=yes
24886       hardcode_shlibpath_var_GCJ=no
24887       ;;
24888
24889     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24890     freebsd2*)
24891       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24892       hardcode_direct_GCJ=yes
24893       hardcode_minus_L_GCJ=yes
24894       hardcode_shlibpath_var_GCJ=no
24895       ;;
24896
24897     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24898     freebsd* | kfreebsd*-gnu | dragonfly*)
24899       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24900       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24901       hardcode_direct_GCJ=yes
24902       hardcode_shlibpath_var_GCJ=no
24903       ;;
24904
24905     hpux9*)
24906       if test "$GCC" = yes; then
24907         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'
24908       else
24909         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'
24910       fi
24911       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24912       hardcode_libdir_separator_GCJ=:
24913       hardcode_direct_GCJ=yes
24914
24915       # hardcode_minus_L: Not really in the search PATH,
24916       # but as the default location of the library.
24917       hardcode_minus_L_GCJ=yes
24918       export_dynamic_flag_spec_GCJ='${wl}-E'
24919       ;;
24920
24921     hpux10*)
24922       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24923         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24924       else
24925         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24926       fi
24927       if test "$with_gnu_ld" = no; then
24928         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24929         hardcode_libdir_separator_GCJ=:
24930
24931         hardcode_direct_GCJ=yes
24932         export_dynamic_flag_spec_GCJ='${wl}-E'
24933
24934         # hardcode_minus_L: Not really in the search PATH,
24935         # but as the default location of the library.
24936         hardcode_minus_L_GCJ=yes
24937       fi
24938       ;;
24939
24940     hpux11*)
24941       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24942         case $host_cpu in
24943         hppa*64*)
24944           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24945           ;;
24946         ia64*)
24947           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24948           ;;
24949         *)
24950           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24951           ;;
24952         esac
24953       else
24954         case $host_cpu in
24955         hppa*64*)
24956           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24957           ;;
24958         ia64*)
24959           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24960           ;;
24961         *)
24962           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24963           ;;
24964         esac
24965       fi
24966       if test "$with_gnu_ld" = no; then
24967         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24968         hardcode_libdir_separator_GCJ=:
24969
24970         case $host_cpu in
24971         hppa*64*|ia64*)
24972           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24973           hardcode_direct_GCJ=no
24974           hardcode_shlibpath_var_GCJ=no
24975           ;;
24976         *)
24977           hardcode_direct_GCJ=yes
24978           export_dynamic_flag_spec_GCJ='${wl}-E'
24979
24980           # hardcode_minus_L: Not really in the search PATH,
24981           # but as the default location of the library.
24982           hardcode_minus_L_GCJ=yes
24983           ;;
24984         esac
24985       fi
24986       ;;
24987
24988     irix5* | irix6* | nonstopux*)
24989       if test "$GCC" = yes; then
24990         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'
24991       else
24992         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'
24993         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24994       fi
24995       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24996       hardcode_libdir_separator_GCJ=:
24997       link_all_deplibs_GCJ=yes
24998       ;;
24999
25000     netbsd*)
25001       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25002         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
25003       else
25004         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
25005       fi
25006       hardcode_libdir_flag_spec_GCJ='-R$libdir'
25007       hardcode_direct_GCJ=yes
25008       hardcode_shlibpath_var_GCJ=no
25009       ;;
25010
25011     newsos6)
25012       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25013       hardcode_direct_GCJ=yes
25014       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25015       hardcode_libdir_separator_GCJ=:
25016       hardcode_shlibpath_var_GCJ=no
25017       ;;
25018
25019     openbsd*)
25020       hardcode_direct_GCJ=yes
25021       hardcode_shlibpath_var_GCJ=no
25022       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25023         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25024         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
25025         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25026         export_dynamic_flag_spec_GCJ='${wl}-E'
25027       else
25028        case $host_os in
25029          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25030            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25031            hardcode_libdir_flag_spec_GCJ='-R$libdir'
25032            ;;
25033          *)
25034            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25035            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25036            ;;
25037        esac
25038       fi
25039       ;;
25040
25041     os2*)
25042       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25043       hardcode_minus_L_GCJ=yes
25044       allow_undefined_flag_GCJ=unsupported
25045       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'
25046       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25047       ;;
25048
25049     osf3*)
25050       if test "$GCC" = yes; then
25051         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25052         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'
25053       else
25054         allow_undefined_flag_GCJ=' -expect_unresolved \*'
25055         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'
25056       fi
25057       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25058       hardcode_libdir_separator_GCJ=:
25059       ;;
25060
25061     osf4* | osf5*)      # as osf3* with the addition of -msym flag
25062       if test "$GCC" = yes; then
25063         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25064         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'
25065         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25066       else
25067         allow_undefined_flag_GCJ=' -expect_unresolved \*'
25068         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'
25069         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~
25070         $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'
25071
25072         # Both c and cxx compiler support -rpath directly
25073         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25074       fi
25075       hardcode_libdir_separator_GCJ=:
25076       ;;
25077
25078     solaris*)
25079       no_undefined_flag_GCJ=' -z text'
25080       if test "$GCC" = yes; then
25081         wlarc='${wl}'
25082         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25083         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25084           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25085       else
25086         wlarc=''
25087         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25088         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25089         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25090       fi
25091       hardcode_libdir_flag_spec_GCJ='-R$libdir'
25092       hardcode_shlibpath_var_GCJ=no
25093       case $host_os in
25094       solaris2.[0-5] | solaris2.[0-5].*) ;;
25095       *)
25096         # The compiler driver will combine linker options so we
25097         # cannot just pass the convience library names through
25098         # without $wl, iff we do not link with $LD.
25099         # Luckily, gcc supports the same syntax we need for Sun Studio.
25100         # Supported since Solaris 2.6 (maybe 2.5.1?)
25101         case $wlarc in
25102         '')
25103           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25104         *)
25105           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' ;;
25106         esac ;;
25107       esac
25108       link_all_deplibs_GCJ=yes
25109       ;;
25110
25111     sunos4*)
25112       if test "x$host_vendor" = xsequent; then
25113         # Use $CC to link under sequent, because it throws in some extra .o
25114         # files that make .init and .fini sections work.
25115         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25116       else
25117         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25118       fi
25119       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25120       hardcode_direct_GCJ=yes
25121       hardcode_minus_L_GCJ=yes
25122       hardcode_shlibpath_var_GCJ=no
25123       ;;
25124
25125     sysv4)
25126       case $host_vendor in
25127         sni)
25128           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25129           hardcode_direct_GCJ=yes # is this really true???
25130         ;;
25131         siemens)
25132           ## LD is ld it makes a PLAMLIB
25133           ## CC just makes a GrossModule.
25134           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25135           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25136           hardcode_direct_GCJ=no
25137         ;;
25138         motorola)
25139           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25140           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25141         ;;
25142       esac
25143       runpath_var='LD_RUN_PATH'
25144       hardcode_shlibpath_var_GCJ=no
25145       ;;
25146
25147     sysv4.3*)
25148       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25149       hardcode_shlibpath_var_GCJ=no
25150       export_dynamic_flag_spec_GCJ='-Bexport'
25151       ;;
25152
25153     sysv4*MP*)
25154       if test -d /usr/nec; then
25155         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25156         hardcode_shlibpath_var_GCJ=no
25157         runpath_var=LD_RUN_PATH
25158         hardcode_runpath_var=yes
25159         ld_shlibs_GCJ=yes
25160       fi
25161       ;;
25162
25163     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25164       no_undefined_flag_GCJ='${wl}-z,text'
25165       archive_cmds_need_lc_GCJ=no
25166       hardcode_shlibpath_var_GCJ=no
25167       runpath_var='LD_RUN_PATH'
25168
25169       if test "$GCC" = yes; then
25170         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25171         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25172       else
25173         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25174         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25175       fi
25176       ;;
25177
25178     sysv5* | sco3.2v5* | sco5v6*)
25179       # Note: We can NOT use -z defs as we might desire, because we do not
25180       # link with -lc, and that would cause any symbols used from libc to
25181       # always be unresolved, which means just about no library would
25182       # ever link correctly.  If we're not using GNU ld we use -z text
25183       # though, which does catch some bad symbols but isn't as heavy-handed
25184       # as -z defs.
25185       no_undefined_flag_GCJ='${wl}-z,text'
25186       allow_undefined_flag_GCJ='${wl}-z,nodefs'
25187       archive_cmds_need_lc_GCJ=no
25188       hardcode_shlibpath_var_GCJ=no
25189       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25190       hardcode_libdir_separator_GCJ=':'
25191       link_all_deplibs_GCJ=yes
25192       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25193       runpath_var='LD_RUN_PATH'
25194
25195       if test "$GCC" = yes; then
25196         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25197         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25198       else
25199         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25200         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25201       fi
25202       ;;
25203
25204     uts4*)
25205       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25206       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25207       hardcode_shlibpath_var_GCJ=no
25208       ;;
25209
25210     *)
25211       ld_shlibs_GCJ=no
25212       ;;
25213     esac
25214   fi
25215
25216 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25217 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25218 test "$ld_shlibs_GCJ" = no && can_build_shared=no
25219
25220 #
25221 # Do we need to explicitly link libc?
25222 #
25223 case "x$archive_cmds_need_lc_GCJ" in
25224 x|xyes)
25225   # Assume -lc should be added
25226   archive_cmds_need_lc_GCJ=yes
25227
25228   if test "$enable_shared" = yes && test "$GCC" = yes; then
25229     case $archive_cmds_GCJ in
25230     *'~'*)
25231       # FIXME: we may have to deal with multi-command sequences.
25232       ;;
25233     '$CC '*)
25234       # Test whether the compiler implicitly links with -lc since on some
25235       # systems, -lgcc has to come before -lc. If gcc already passes -lc
25236       # to ld, don't add -lc before -lgcc.
25237       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25238 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25239       $rm conftest*
25240       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25241
25242       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25243   (eval $ac_compile) 2>&5
25244   ac_status=$?
25245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25246   (exit $ac_status); } 2>conftest.err; then
25247         soname=conftest
25248         lib=conftest
25249         libobjs=conftest.$ac_objext
25250         deplibs=
25251         wl=$lt_prog_compiler_wl_GCJ
25252         pic_flag=$lt_prog_compiler_pic_GCJ
25253         compiler_flags=-v
25254         linker_flags=-v
25255         verstring=
25256         output_objdir=.
25257         libname=conftest
25258         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25259         allow_undefined_flag_GCJ=
25260         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25261   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25262   ac_status=$?
25263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25264   (exit $ac_status); }
25265         then
25266           archive_cmds_need_lc_GCJ=no
25267         else
25268           archive_cmds_need_lc_GCJ=yes
25269         fi
25270         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25271       else
25272         cat conftest.err 1>&5
25273       fi
25274       $rm conftest*
25275       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25276 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25277       ;;
25278     esac
25279   fi
25280   ;;
25281 esac
25282
25283 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25284 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25285 library_names_spec=
25286 libname_spec='lib$name'
25287 soname_spec=
25288 shrext_cmds=".so"
25289 postinstall_cmds=
25290 postuninstall_cmds=
25291 finish_cmds=
25292 finish_eval=
25293 shlibpath_var=
25294 shlibpath_overrides_runpath=unknown
25295 version_type=none
25296 dynamic_linker="$host_os ld.so"
25297 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25298 if test "$GCC" = yes; then
25299   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25300   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25301     # if the path contains ";" then we assume it to be the separator
25302     # otherwise default to the standard path separator (i.e. ":") - it is
25303     # assumed that no part of a normal pathname contains ";" but that should
25304     # okay in the real world where ";" in dirpaths is itself problematic.
25305     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25306   else
25307     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25308   fi
25309 else
25310   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25311 fi
25312 need_lib_prefix=unknown
25313 hardcode_into_libs=no
25314
25315 # when you set need_version to no, make sure it does not cause -set_version
25316 # flags to be left without arguments
25317 need_version=unknown
25318
25319 case $host_os in
25320 aix3*)
25321   version_type=linux
25322   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25323   shlibpath_var=LIBPATH
25324
25325   # AIX 3 has no versioning support, so we append a major version to the name.
25326   soname_spec='${libname}${release}${shared_ext}$major'
25327   ;;
25328
25329 aix4* | aix5*)
25330   version_type=linux
25331   need_lib_prefix=no
25332   need_version=no
25333   hardcode_into_libs=yes
25334   if test "$host_cpu" = ia64; then
25335     # AIX 5 supports IA64
25336     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25337     shlibpath_var=LD_LIBRARY_PATH
25338   else
25339     # With GCC up to 2.95.x, collect2 would create an import file
25340     # for dependence libraries.  The import file would start with
25341     # the line `#! .'.  This would cause the generated library to
25342     # depend on `.', always an invalid library.  This was fixed in
25343     # development snapshots of GCC prior to 3.0.
25344     case $host_os in
25345       aix4 | aix4.[01] | aix4.[01].*)
25346       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25347            echo ' yes '
25348            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25349         :
25350       else
25351         can_build_shared=no
25352       fi
25353       ;;
25354     esac
25355     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25356     # soname into executable. Probably we can add versioning support to
25357     # collect2, so additional links can be useful in future.
25358     if test "$aix_use_runtimelinking" = yes; then
25359       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25360       # instead of lib<name>.a to let people know that these are not
25361       # typical AIX shared libraries.
25362       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25363     else
25364       # We preserve .a as extension for shared libraries through AIX4.2
25365       # and later when we are not doing run time linking.
25366       library_names_spec='${libname}${release}.a $libname.a'
25367       soname_spec='${libname}${release}${shared_ext}$major'
25368     fi
25369     shlibpath_var=LIBPATH
25370   fi
25371   ;;
25372
25373 amigaos*)
25374   library_names_spec='$libname.ixlibrary $libname.a'
25375   # Create ${libname}_ixlibrary.a entries in /sys/libs.
25376   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'
25377   ;;
25378
25379 beos*)
25380   library_names_spec='${libname}${shared_ext}'
25381   dynamic_linker="$host_os ld.so"
25382   shlibpath_var=LIBRARY_PATH
25383   ;;
25384
25385 bsdi[45]*)
25386   version_type=linux
25387   need_version=no
25388   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25389   soname_spec='${libname}${release}${shared_ext}$major'
25390   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25391   shlibpath_var=LD_LIBRARY_PATH
25392   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25393   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25394   # the default ld.so.conf also contains /usr/contrib/lib and
25395   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25396   # libtool to hard-code these into programs
25397   ;;
25398
25399 cygwin* | mingw* | pw32*)
25400   version_type=windows
25401   shrext_cmds=".dll"
25402   need_version=no
25403   need_lib_prefix=no
25404
25405   case $GCC,$host_os in
25406   yes,cygwin* | yes,mingw* | yes,pw32*)
25407     library_names_spec='$libname.dll.a'
25408     # DLL is installed to $(libdir)/../bin by postinstall_cmds
25409     postinstall_cmds='base_file=`basename \${file}`~
25410       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25411       dldir=$destdir/`dirname \$dlpath`~
25412       test -d \$dldir || mkdir -p \$dldir~
25413       $install_prog $dir/$dlname \$dldir/$dlname~
25414       chmod a+x \$dldir/$dlname'
25415     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25416       dlpath=$dir/\$dldll~
25417        $rm \$dlpath'
25418     shlibpath_overrides_runpath=yes
25419
25420     case $host_os in
25421     cygwin*)
25422       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25423       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25424       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25425       ;;
25426     mingw*)
25427       # MinGW DLLs use traditional 'lib' prefix
25428       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25429       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25430       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25431         # It is most probably a Windows format PATH printed by
25432         # mingw gcc, but we are running on Cygwin. Gcc prints its search
25433         # path with ; separators, and with drive letters. We can handle the
25434         # drive letters (cygwin fileutils understands them), so leave them,
25435         # especially as we might pass files found there to a mingw objdump,
25436         # which wouldn't understand a cygwinified path. Ahh.
25437         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25438       else
25439         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25440       fi
25441       ;;
25442     pw32*)
25443       # pw32 DLLs use 'pw' prefix rather than 'lib'
25444       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25445       ;;
25446     esac
25447     ;;
25448
25449   *)
25450     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25451     ;;
25452   esac
25453   dynamic_linker='Win32 ld.exe'
25454   # FIXME: first we should search . and the directory the executable is in
25455   shlibpath_var=PATH
25456   ;;
25457
25458 darwin* | rhapsody*)
25459   dynamic_linker="$host_os dyld"
25460   version_type=darwin
25461   need_lib_prefix=no
25462   need_version=no
25463   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25464   soname_spec='${libname}${release}${major}$shared_ext'
25465   shlibpath_overrides_runpath=yes
25466   shlibpath_var=DYLD_LIBRARY_PATH
25467   shrext_cmds='.dylib'
25468   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25469   if test "$GCC" = yes; then
25470     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"`
25471   else
25472     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25473   fi
25474   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25475   ;;
25476
25477 dgux*)
25478   version_type=linux
25479   need_lib_prefix=no
25480   need_version=no
25481   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25482   soname_spec='${libname}${release}${shared_ext}$major'
25483   shlibpath_var=LD_LIBRARY_PATH
25484   ;;
25485
25486 freebsd1*)
25487   dynamic_linker=no
25488   ;;
25489
25490 kfreebsd*-gnu)
25491   version_type=linux
25492   need_lib_prefix=no
25493   need_version=no
25494   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25495   soname_spec='${libname}${release}${shared_ext}$major'
25496   shlibpath_var=LD_LIBRARY_PATH
25497   shlibpath_overrides_runpath=no
25498   hardcode_into_libs=yes
25499   dynamic_linker='GNU ld.so'
25500   ;;
25501
25502 freebsd* | dragonfly*)
25503   # DragonFly does not have aout.  When/if they implement a new
25504   # versioning mechanism, adjust this.
25505   if test -x /usr/bin/objformat; then
25506     objformat=`/usr/bin/objformat`
25507   else
25508     case $host_os in
25509     freebsd[123]*) objformat=aout ;;
25510     *) objformat=elf ;;
25511     esac
25512   fi
25513   version_type=freebsd-$objformat
25514   case $version_type in
25515     freebsd-elf*)
25516       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25517       need_version=no
25518       need_lib_prefix=no
25519       ;;
25520     freebsd-*)
25521       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25522       need_version=yes
25523       ;;
25524   esac
25525   shlibpath_var=LD_LIBRARY_PATH
25526   case $host_os in
25527   freebsd2*)
25528     shlibpath_overrides_runpath=yes
25529     ;;
25530   freebsd3.[01]* | freebsdelf3.[01]*)
25531     shlibpath_overrides_runpath=yes
25532     hardcode_into_libs=yes
25533     ;;
25534   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25535   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25536     shlibpath_overrides_runpath=no
25537     hardcode_into_libs=yes
25538     ;;
25539   freebsd*) # from 4.6 on
25540     shlibpath_overrides_runpath=yes
25541     hardcode_into_libs=yes
25542     ;;
25543   esac
25544   ;;
25545
25546 gnu*)
25547   version_type=linux
25548   need_lib_prefix=no
25549   need_version=no
25550   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25551   soname_spec='${libname}${release}${shared_ext}$major'
25552   shlibpath_var=LD_LIBRARY_PATH
25553   hardcode_into_libs=yes
25554   ;;
25555
25556 hpux9* | hpux10* | hpux11*)
25557   # Give a soname corresponding to the major version so that dld.sl refuses to
25558   # link against other versions.
25559   version_type=sunos
25560   need_lib_prefix=no
25561   need_version=no
25562   case $host_cpu in
25563   ia64*)
25564     shrext_cmds='.so'
25565     hardcode_into_libs=yes
25566     dynamic_linker="$host_os dld.so"
25567     shlibpath_var=LD_LIBRARY_PATH
25568     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25569     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25570     soname_spec='${libname}${release}${shared_ext}$major'
25571     if test "X$HPUX_IA64_MODE" = X32; then
25572       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25573     else
25574       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25575     fi
25576     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25577     ;;
25578    hppa*64*)
25579      shrext_cmds='.sl'
25580      hardcode_into_libs=yes
25581      dynamic_linker="$host_os dld.sl"
25582      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25583      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25584      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25585      soname_spec='${libname}${release}${shared_ext}$major'
25586      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25587      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25588      ;;
25589    *)
25590     shrext_cmds='.sl'
25591     dynamic_linker="$host_os dld.sl"
25592     shlibpath_var=SHLIB_PATH
25593     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25594     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25595     soname_spec='${libname}${release}${shared_ext}$major'
25596     ;;
25597   esac
25598   # HP-UX runs *really* slowly unless shared libraries are mode 555.
25599   postinstall_cmds='chmod 555 $lib'
25600   ;;
25601
25602 interix3*)
25603   version_type=linux
25604   need_lib_prefix=no
25605   need_version=no
25606   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25607   soname_spec='${libname}${release}${shared_ext}$major'
25608   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25609   shlibpath_var=LD_LIBRARY_PATH
25610   shlibpath_overrides_runpath=no
25611   hardcode_into_libs=yes
25612   ;;
25613
25614 irix5* | irix6* | nonstopux*)
25615   case $host_os in
25616     nonstopux*) version_type=nonstopux ;;
25617     *)
25618         if test "$lt_cv_prog_gnu_ld" = yes; then
25619                 version_type=linux
25620         else
25621                 version_type=irix
25622         fi ;;
25623   esac
25624   need_lib_prefix=no
25625   need_version=no
25626   soname_spec='${libname}${release}${shared_ext}$major'
25627   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25628   case $host_os in
25629   irix5* | nonstopux*)
25630     libsuff= shlibsuff=
25631     ;;
25632   *)
25633     case $LD in # libtool.m4 will add one of these switches to LD
25634     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25635       libsuff= shlibsuff= libmagic=32-bit;;
25636     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25637       libsuff=32 shlibsuff=N32 libmagic=N32;;
25638     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25639       libsuff=64 shlibsuff=64 libmagic=64-bit;;
25640     *) libsuff= shlibsuff= libmagic=never-match;;
25641     esac
25642     ;;
25643   esac
25644   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25645   shlibpath_overrides_runpath=no
25646   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25647   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25648   hardcode_into_libs=yes
25649   ;;
25650
25651 # No shared lib support for Linux oldld, aout, or coff.
25652 linux*oldld* | linux*aout* | linux*coff*)
25653   dynamic_linker=no
25654   ;;
25655
25656 # This must be Linux ELF.
25657 linux*)
25658   version_type=linux
25659   need_lib_prefix=no
25660   need_version=no
25661   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25662   soname_spec='${libname}${release}${shared_ext}$major'
25663   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25664   shlibpath_var=LD_LIBRARY_PATH
25665   shlibpath_overrides_runpath=no
25666   # This implies no fast_install, which is unacceptable.
25667   # Some rework will be needed to allow for fast_install
25668   # before this can be enabled.
25669   hardcode_into_libs=yes
25670
25671   # Append ld.so.conf contents to the search path
25672   if test -f /etc/ld.so.conf; then
25673     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' ' '`
25674     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25675   fi
25676
25677   # We used to test for /lib/ld.so.1 and disable shared libraries on
25678   # powerpc, because MkLinux only supported shared libraries with the
25679   # GNU dynamic linker.  Since this was broken with cross compilers,
25680   # most powerpc-linux boxes support dynamic linking these days and
25681   # people can always --disable-shared, the test was removed, and we
25682   # assume the GNU/Linux dynamic linker is in use.
25683   dynamic_linker='GNU/Linux ld.so'
25684   ;;
25685
25686 knetbsd*-gnu)
25687   version_type=linux
25688   need_lib_prefix=no
25689   need_version=no
25690   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25691   soname_spec='${libname}${release}${shared_ext}$major'
25692   shlibpath_var=LD_LIBRARY_PATH
25693   shlibpath_overrides_runpath=no
25694   hardcode_into_libs=yes
25695   dynamic_linker='GNU ld.so'
25696   ;;
25697
25698 netbsd*)
25699   version_type=sunos
25700   need_lib_prefix=no
25701   need_version=no
25702   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25703     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25704     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25705     dynamic_linker='NetBSD (a.out) ld.so'
25706   else
25707     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25708     soname_spec='${libname}${release}${shared_ext}$major'
25709     dynamic_linker='NetBSD ld.elf_so'
25710   fi
25711   shlibpath_var=LD_LIBRARY_PATH
25712   shlibpath_overrides_runpath=yes
25713   hardcode_into_libs=yes
25714   ;;
25715
25716 newsos6)
25717   version_type=linux
25718   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25719   shlibpath_var=LD_LIBRARY_PATH
25720   shlibpath_overrides_runpath=yes
25721   ;;
25722
25723 nto-qnx*)
25724   version_type=linux
25725   need_lib_prefix=no
25726   need_version=no
25727   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25728   soname_spec='${libname}${release}${shared_ext}$major'
25729   shlibpath_var=LD_LIBRARY_PATH
25730   shlibpath_overrides_runpath=yes
25731   ;;
25732
25733 openbsd*)
25734   version_type=sunos
25735   sys_lib_dlsearch_path_spec="/usr/lib"
25736   need_lib_prefix=no
25737   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25738   case $host_os in
25739     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25740     *)                         need_version=no  ;;
25741   esac
25742   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25743   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25744   shlibpath_var=LD_LIBRARY_PATH
25745   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25746     case $host_os in
25747       openbsd2.[89] | openbsd2.[89].*)
25748         shlibpath_overrides_runpath=no
25749         ;;
25750       *)
25751         shlibpath_overrides_runpath=yes
25752         ;;
25753       esac
25754   else
25755     shlibpath_overrides_runpath=yes
25756   fi
25757   ;;
25758
25759 os2*)
25760   libname_spec='$name'
25761   shrext_cmds=".dll"
25762   need_lib_prefix=no
25763   library_names_spec='$libname${shared_ext} $libname.a'
25764   dynamic_linker='OS/2 ld.exe'
25765   shlibpath_var=LIBPATH
25766   ;;
25767
25768 osf3* | osf4* | osf5*)
25769   version_type=osf
25770   need_lib_prefix=no
25771   need_version=no
25772   soname_spec='${libname}${release}${shared_ext}$major'
25773   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25774   shlibpath_var=LD_LIBRARY_PATH
25775   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25776   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25777   ;;
25778
25779 solaris*)
25780   version_type=linux
25781   need_lib_prefix=no
25782   need_version=no
25783   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25784   soname_spec='${libname}${release}${shared_ext}$major'
25785   shlibpath_var=LD_LIBRARY_PATH
25786   shlibpath_overrides_runpath=yes
25787   hardcode_into_libs=yes
25788   # ldd complains unless libraries are executable
25789   postinstall_cmds='chmod +x $lib'
25790   ;;
25791
25792 sunos4*)
25793   version_type=sunos
25794   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25795   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25796   shlibpath_var=LD_LIBRARY_PATH
25797   shlibpath_overrides_runpath=yes
25798   if test "$with_gnu_ld" = yes; then
25799     need_lib_prefix=no
25800   fi
25801   need_version=yes
25802   ;;
25803
25804 sysv4 | sysv4.3*)
25805   version_type=linux
25806   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25807   soname_spec='${libname}${release}${shared_ext}$major'
25808   shlibpath_var=LD_LIBRARY_PATH
25809   case $host_vendor in
25810     sni)
25811       shlibpath_overrides_runpath=no
25812       need_lib_prefix=no
25813       export_dynamic_flag_spec='${wl}-Blargedynsym'
25814       runpath_var=LD_RUN_PATH
25815       ;;
25816     siemens)
25817       need_lib_prefix=no
25818       ;;
25819     motorola)
25820       need_lib_prefix=no
25821       need_version=no
25822       shlibpath_overrides_runpath=no
25823       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25824       ;;
25825   esac
25826   ;;
25827
25828 sysv4*MP*)
25829   if test -d /usr/nec ;then
25830     version_type=linux
25831     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25832     soname_spec='$libname${shared_ext}.$major'
25833     shlibpath_var=LD_LIBRARY_PATH
25834   fi
25835   ;;
25836
25837 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25838   version_type=freebsd-elf
25839   need_lib_prefix=no
25840   need_version=no
25841   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25842   soname_spec='${libname}${release}${shared_ext}$major'
25843   shlibpath_var=LD_LIBRARY_PATH
25844   hardcode_into_libs=yes
25845   if test "$with_gnu_ld" = yes; then
25846     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25847     shlibpath_overrides_runpath=no
25848   else
25849     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25850     shlibpath_overrides_runpath=yes
25851     case $host_os in
25852       sco3.2v5*)
25853         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25854         ;;
25855     esac
25856   fi
25857   sys_lib_dlsearch_path_spec='/usr/lib'
25858   ;;
25859
25860 uts4*)
25861   version_type=linux
25862   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25863   soname_spec='${libname}${release}${shared_ext}$major'
25864   shlibpath_var=LD_LIBRARY_PATH
25865   ;;
25866
25867 *)
25868   dynamic_linker=no
25869   ;;
25870 esac
25871 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25872 echo "${ECHO_T}$dynamic_linker" >&6; }
25873 test "$dynamic_linker" = no && can_build_shared=no
25874
25875 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25876 if test "$GCC" = yes; then
25877   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25878 fi
25879
25880 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25881 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
25882 hardcode_action_GCJ=
25883 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25884    test -n "$runpath_var_GCJ" || \
25885    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25886
25887   # We can hardcode non-existant directories.
25888   if test "$hardcode_direct_GCJ" != no &&
25889      # If the only mechanism to avoid hardcoding is shlibpath_var, we
25890      # have to relink, otherwise we might link with an installed library
25891      # when we should be linking with a yet-to-be-installed one
25892      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25893      test "$hardcode_minus_L_GCJ" != no; then
25894     # Linking always hardcodes the temporary library directory.
25895     hardcode_action_GCJ=relink
25896   else
25897     # We can link without hardcoding, and we can hardcode nonexisting dirs.
25898     hardcode_action_GCJ=immediate
25899   fi
25900 else
25901   # We cannot hardcode anything, or else we can only hardcode existing
25902   # directories.
25903   hardcode_action_GCJ=unsupported
25904 fi
25905 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25906 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
25907
25908 if test "$hardcode_action_GCJ" = relink; then
25909   # Fast installation is not supported
25910   enable_fast_install=no
25911 elif test "$shlibpath_overrides_runpath" = yes ||
25912      test "$enable_shared" = no; then
25913   # Fast installation is not necessary
25914   enable_fast_install=needless
25915 fi
25916
25917
25918 # The else clause should only fire when bootstrapping the
25919 # libtool distribution, otherwise you forgot to ship ltmain.sh
25920 # with your package, and you will get complaints that there are
25921 # no rules to generate ltmain.sh.
25922 if test -f "$ltmain"; then
25923   # See if we are running on zsh, and set the options which allow our commands through
25924   # without removal of \ escapes.
25925   if test -n "${ZSH_VERSION+set}" ; then
25926     setopt NO_GLOB_SUBST
25927   fi
25928   # Now quote all the things that may contain metacharacters while being
25929   # careful not to overquote the AC_SUBSTed values.  We take copies of the
25930   # variables and quote the copies for generation of the libtool script.
25931   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25932     SED SHELL STRIP \
25933     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25934     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25935     deplibs_check_method reload_flag reload_cmds need_locks \
25936     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25937     lt_cv_sys_global_symbol_to_c_name_address \
25938     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25939     old_postinstall_cmds old_postuninstall_cmds \
25940     compiler_GCJ \
25941     CC_GCJ \
25942     LD_GCJ \
25943     lt_prog_compiler_wl_GCJ \
25944     lt_prog_compiler_pic_GCJ \
25945     lt_prog_compiler_static_GCJ \
25946     lt_prog_compiler_no_builtin_flag_GCJ \
25947     export_dynamic_flag_spec_GCJ \
25948     thread_safe_flag_spec_GCJ \
25949     whole_archive_flag_spec_GCJ \
25950     enable_shared_with_static_runtimes_GCJ \
25951     old_archive_cmds_GCJ \
25952     old_archive_from_new_cmds_GCJ \
25953     predep_objects_GCJ \
25954     postdep_objects_GCJ \
25955     predeps_GCJ \
25956     postdeps_GCJ \
25957     compiler_lib_search_path_GCJ \
25958     archive_cmds_GCJ \
25959     archive_expsym_cmds_GCJ \
25960     postinstall_cmds_GCJ \
25961     postuninstall_cmds_GCJ \
25962     old_archive_from_expsyms_cmds_GCJ \
25963     allow_undefined_flag_GCJ \
25964     no_undefined_flag_GCJ \
25965     export_symbols_cmds_GCJ \
25966     hardcode_libdir_flag_spec_GCJ \
25967     hardcode_libdir_flag_spec_ld_GCJ \
25968     hardcode_libdir_separator_GCJ \
25969     hardcode_automatic_GCJ \
25970     module_cmds_GCJ \
25971     module_expsym_cmds_GCJ \
25972     lt_cv_prog_compiler_c_o_GCJ \
25973     exclude_expsyms_GCJ \
25974     include_expsyms_GCJ; do
25975
25976     case $var in
25977     old_archive_cmds_GCJ | \
25978     old_archive_from_new_cmds_GCJ | \
25979     archive_cmds_GCJ | \
25980     archive_expsym_cmds_GCJ | \
25981     module_cmds_GCJ | \
25982     module_expsym_cmds_GCJ | \
25983     old_archive_from_expsyms_cmds_GCJ | \
25984     export_symbols_cmds_GCJ | \
25985     extract_expsyms_cmds | reload_cmds | finish_cmds | \
25986     postinstall_cmds | postuninstall_cmds | \
25987     old_postinstall_cmds | old_postuninstall_cmds | \
25988     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25989       # Double-quote double-evaled strings.
25990       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25991       ;;
25992     *)
25993       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25994       ;;
25995     esac
25996   done
25997
25998   case $lt_echo in
25999   *'\$0 --fallback-echo"')
26000     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26001     ;;
26002   esac
26003
26004 cfgfile="$ofile"
26005
26006   cat <<__EOF__ >> "$cfgfile"
26007 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26008
26009 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26010
26011 # Shell to use when invoking shell scripts.
26012 SHELL=$lt_SHELL
26013
26014 # Whether or not to build shared libraries.
26015 build_libtool_libs=$enable_shared
26016
26017 # Whether or not to build static libraries.
26018 build_old_libs=$enable_static
26019
26020 # Whether or not to add -lc for building shared libraries.
26021 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26022
26023 # Whether or not to disallow shared libs when runtime libs are static
26024 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26025
26026 # Whether or not to optimize for fast installation.
26027 fast_install=$enable_fast_install
26028
26029 # The host system.
26030 host_alias=$host_alias
26031 host=$host
26032 host_os=$host_os
26033
26034 # The build system.
26035 build_alias=$build_alias
26036 build=$build
26037 build_os=$build_os
26038
26039 # An echo program that does not interpret backslashes.
26040 echo=$lt_echo
26041
26042 # The archiver.
26043 AR=$lt_AR
26044 AR_FLAGS=$lt_AR_FLAGS
26045
26046 # A C compiler.
26047 LTCC=$lt_LTCC
26048
26049 # LTCC compiler flags.
26050 LTCFLAGS=$lt_LTCFLAGS
26051
26052 # A language-specific compiler.
26053 CC=$lt_compiler_GCJ
26054
26055 # Is the compiler the GNU C compiler?
26056 with_gcc=$GCC_GCJ
26057
26058 # An ERE matcher.
26059 EGREP=$lt_EGREP
26060
26061 # The linker used to build libraries.
26062 LD=$lt_LD_GCJ
26063
26064 # Whether we need hard or soft links.
26065 LN_S=$lt_LN_S
26066
26067 # A BSD-compatible nm program.
26068 NM=$lt_NM
26069
26070 # A symbol stripping program
26071 STRIP=$lt_STRIP
26072
26073 # Used to examine libraries when file_magic_cmd begins "file"
26074 MAGIC_CMD=$MAGIC_CMD
26075
26076 # Used on cygwin: DLL creation program.
26077 DLLTOOL="$DLLTOOL"
26078
26079 # Used on cygwin: object dumper.
26080 OBJDUMP="$OBJDUMP"
26081
26082 # Used on cygwin: assembler.
26083 AS="$AS"
26084
26085 # The name of the directory that contains temporary libtool files.
26086 objdir=$objdir
26087
26088 # How to create reloadable object files.
26089 reload_flag=$lt_reload_flag
26090 reload_cmds=$lt_reload_cmds
26091
26092 # How to pass a linker flag through the compiler.
26093 wl=$lt_lt_prog_compiler_wl_GCJ
26094
26095 # Object file suffix (normally "o").
26096 objext="$ac_objext"
26097
26098 # Old archive suffix (normally "a").
26099 libext="$libext"
26100
26101 # Shared library suffix (normally ".so").
26102 shrext_cmds='$shrext_cmds'
26103
26104 # Executable file suffix (normally "").
26105 exeext="$exeext"
26106
26107 # Additional compiler flags for building library objects.
26108 pic_flag=$lt_lt_prog_compiler_pic_GCJ
26109 pic_mode=$pic_mode
26110
26111 # What is the maximum length of a command?
26112 max_cmd_len=$lt_cv_sys_max_cmd_len
26113
26114 # Does compiler simultaneously support -c and -o options?
26115 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26116
26117 # Must we lock files when doing compilation?
26118 need_locks=$lt_need_locks
26119
26120 # Do we need the lib prefix for modules?
26121 need_lib_prefix=$need_lib_prefix
26122
26123 # Do we need a version for libraries?
26124 need_version=$need_version
26125
26126 # Whether dlopen is supported.
26127 dlopen_support=$enable_dlopen
26128
26129 # Whether dlopen of programs is supported.
26130 dlopen_self=$enable_dlopen_self
26131
26132 # Whether dlopen of statically linked programs is supported.
26133 dlopen_self_static=$enable_dlopen_self_static
26134
26135 # Compiler flag to prevent dynamic linking.
26136 link_static_flag=$lt_lt_prog_compiler_static_GCJ
26137
26138 # Compiler flag to turn off builtin functions.
26139 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26140
26141 # Compiler flag to allow reflexive dlopens.
26142 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26143
26144 # Compiler flag to generate shared objects directly from archives.
26145 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26146
26147 # Compiler flag to generate thread-safe objects.
26148 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26149
26150 # Library versioning type.
26151 version_type=$version_type
26152
26153 # Format of library name prefix.
26154 libname_spec=$lt_libname_spec
26155
26156 # List of archive names.  First name is the real one, the rest are links.
26157 # The last name is the one that the linker finds with -lNAME.
26158 library_names_spec=$lt_library_names_spec
26159
26160 # The coded name of the library, if different from the real name.
26161 soname_spec=$lt_soname_spec
26162
26163 # Commands used to build and install an old-style archive.
26164 RANLIB=$lt_RANLIB
26165 old_archive_cmds=$lt_old_archive_cmds_GCJ
26166 old_postinstall_cmds=$lt_old_postinstall_cmds
26167 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26168
26169 # Create an old-style archive from a shared archive.
26170 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26171
26172 # Create a temporary old-style archive to link instead of a shared archive.
26173 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26174
26175 # Commands used to build and install a shared archive.
26176 archive_cmds=$lt_archive_cmds_GCJ
26177 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26178 postinstall_cmds=$lt_postinstall_cmds
26179 postuninstall_cmds=$lt_postuninstall_cmds
26180
26181 # Commands used to build a loadable module (assumed same as above if empty)
26182 module_cmds=$lt_module_cmds_GCJ
26183 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26184
26185 # Commands to strip libraries.
26186 old_striplib=$lt_old_striplib
26187 striplib=$lt_striplib
26188
26189 # Dependencies to place before the objects being linked to create a
26190 # shared library.
26191 predep_objects=$lt_predep_objects_GCJ
26192
26193 # Dependencies to place after the objects being linked to create a
26194 # shared library.
26195 postdep_objects=$lt_postdep_objects_GCJ
26196
26197 # Dependencies to place before the objects being linked to create a
26198 # shared library.
26199 predeps=$lt_predeps_GCJ
26200
26201 # Dependencies to place after the objects being linked to create a
26202 # shared library.
26203 postdeps=$lt_postdeps_GCJ
26204
26205 # The library search path used internally by the compiler when linking
26206 # a shared library.
26207 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26208
26209 # Method to check whether dependent libraries are shared objects.
26210 deplibs_check_method=$lt_deplibs_check_method
26211
26212 # Command to use when deplibs_check_method == file_magic.
26213 file_magic_cmd=$lt_file_magic_cmd
26214
26215 # Flag that allows shared libraries with undefined symbols to be built.
26216 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26217
26218 # Flag that forces no undefined symbols.
26219 no_undefined_flag=$lt_no_undefined_flag_GCJ
26220
26221 # Commands used to finish a libtool library installation in a directory.
26222 finish_cmds=$lt_finish_cmds
26223
26224 # Same as above, but a single script fragment to be evaled but not shown.
26225 finish_eval=$lt_finish_eval
26226
26227 # Take the output of nm and produce a listing of raw symbols and C names.
26228 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26229
26230 # Transform the output of nm in a proper C declaration
26231 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26232
26233 # Transform the output of nm in a C name address pair
26234 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26235
26236 # This is the shared library runtime path variable.
26237 runpath_var=$runpath_var
26238
26239 # This is the shared library path variable.
26240 shlibpath_var=$shlibpath_var
26241
26242 # Is shlibpath searched before the hard-coded library search path?
26243 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26244
26245 # How to hardcode a shared library path into an executable.
26246 hardcode_action=$hardcode_action_GCJ
26247
26248 # Whether we should hardcode library paths into libraries.
26249 hardcode_into_libs=$hardcode_into_libs
26250
26251 # Flag to hardcode \$libdir into a binary during linking.
26252 # This must work even if \$libdir does not exist.
26253 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26254
26255 # If ld is used when linking, flag to hardcode \$libdir into
26256 # a binary during linking. This must work even if \$libdir does
26257 # not exist.
26258 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26259
26260 # Whether we need a single -rpath flag with a separated argument.
26261 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26262
26263 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26264 # resulting binary.
26265 hardcode_direct=$hardcode_direct_GCJ
26266
26267 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26268 # resulting binary.
26269 hardcode_minus_L=$hardcode_minus_L_GCJ
26270
26271 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26272 # the resulting binary.
26273 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26274
26275 # Set to yes if building a shared library automatically hardcodes DIR into the library
26276 # and all subsequent libraries and executables linked against it.
26277 hardcode_automatic=$hardcode_automatic_GCJ
26278
26279 # Variables whose values should be saved in libtool wrapper scripts and
26280 # restored at relink time.
26281 variables_saved_for_relink="$variables_saved_for_relink"
26282
26283 # Whether libtool must link a program against all its dependency libraries.
26284 link_all_deplibs=$link_all_deplibs_GCJ
26285
26286 # Compile-time system search path for libraries
26287 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26288
26289 # Run-time system search path for libraries
26290 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26291
26292 # Fix the shell variable \$srcfile for the compiler.
26293 fix_srcfile_path="$fix_srcfile_path_GCJ"
26294
26295 # Set to yes if exported symbols are required.
26296 always_export_symbols=$always_export_symbols_GCJ
26297
26298 # The commands to list exported symbols.
26299 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26300
26301 # The commands to extract the exported symbol list from a shared archive.
26302 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26303
26304 # Symbols that should not be listed in the preloaded symbols.
26305 exclude_expsyms=$lt_exclude_expsyms_GCJ
26306
26307 # Symbols that must always be exported.
26308 include_expsyms=$lt_include_expsyms_GCJ
26309
26310 # ### END LIBTOOL TAG CONFIG: $tagname
26311
26312 __EOF__
26313
26314
26315 else
26316   # If there is no Makefile yet, we rely on a make rule to execute
26317   # `config.status --recheck' to rerun these tests and create the
26318   # libtool script then.
26319   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26320   if test -f "$ltmain_in"; then
26321     test -f Makefile && make "$ltmain"
26322   fi
26323 fi
26324
26325
26326 ac_ext=c
26327 ac_cpp='$CPP $CPPFLAGS'
26328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26331
26332 CC="$lt_save_CC"
26333
26334         else
26335           tagname=""
26336         fi
26337         ;;
26338
26339       RC)
26340         ac_ext=c
26341 ac_cpp='$CPP $CPPFLAGS'
26342 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26343 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26344 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26345
26346
26347 # Source file extension for RC test sources.
26348 ac_ext=rc
26349
26350 # Object file extension for compiled RC test sources.
26351 objext=o
26352 objext_RC=$objext
26353
26354 # Code to be used in simple compile tests
26355 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26356
26357 # Code to be used in simple link tests
26358 lt_simple_link_test_code="$lt_simple_compile_test_code"
26359
26360 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26361
26362 # If no C compiler was specified, use CC.
26363 LTCC=${LTCC-"$CC"}
26364
26365 # If no C compiler flags were specified, use CFLAGS.
26366 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26367
26368 # Allow CC to be a program name with arguments.
26369 compiler=$CC
26370
26371
26372 # save warnings/boilerplate of simple test code
26373 ac_outfile=conftest.$ac_objext
26374 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26375 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26376 _lt_compiler_boilerplate=`cat conftest.err`
26377 $rm conftest*
26378
26379 ac_outfile=conftest.$ac_objext
26380 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26381 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26382 _lt_linker_boilerplate=`cat conftest.err`
26383 $rm conftest*
26384
26385
26386 # Allow CC to be a program name with arguments.
26387 lt_save_CC="$CC"
26388 CC=${RC-"windres"}
26389 compiler=$CC
26390 compiler_RC=$CC
26391 for cc_temp in $compiler""; do
26392   case $cc_temp in
26393     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26394     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26395     \-*) ;;
26396     *) break;;
26397   esac
26398 done
26399 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26400
26401 lt_cv_prog_compiler_c_o_RC=yes
26402
26403 # The else clause should only fire when bootstrapping the
26404 # libtool distribution, otherwise you forgot to ship ltmain.sh
26405 # with your package, and you will get complaints that there are
26406 # no rules to generate ltmain.sh.
26407 if test -f "$ltmain"; then
26408   # See if we are running on zsh, and set the options which allow our commands through
26409   # without removal of \ escapes.
26410   if test -n "${ZSH_VERSION+set}" ; then
26411     setopt NO_GLOB_SUBST
26412   fi
26413   # Now quote all the things that may contain metacharacters while being
26414   # careful not to overquote the AC_SUBSTed values.  We take copies of the
26415   # variables and quote the copies for generation of the libtool script.
26416   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26417     SED SHELL STRIP \
26418     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26419     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26420     deplibs_check_method reload_flag reload_cmds need_locks \
26421     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26422     lt_cv_sys_global_symbol_to_c_name_address \
26423     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26424     old_postinstall_cmds old_postuninstall_cmds \
26425     compiler_RC \
26426     CC_RC \
26427     LD_RC \
26428     lt_prog_compiler_wl_RC \
26429     lt_prog_compiler_pic_RC \
26430     lt_prog_compiler_static_RC \
26431     lt_prog_compiler_no_builtin_flag_RC \
26432     export_dynamic_flag_spec_RC \
26433     thread_safe_flag_spec_RC \
26434     whole_archive_flag_spec_RC \
26435     enable_shared_with_static_runtimes_RC \
26436     old_archive_cmds_RC \
26437     old_archive_from_new_cmds_RC \
26438     predep_objects_RC \
26439     postdep_objects_RC \
26440     predeps_RC \
26441     postdeps_RC \
26442     compiler_lib_search_path_RC \
26443     archive_cmds_RC \
26444     archive_expsym_cmds_RC \
26445     postinstall_cmds_RC \
26446     postuninstall_cmds_RC \
26447     old_archive_from_expsyms_cmds_RC \
26448     allow_undefined_flag_RC \
26449     no_undefined_flag_RC \
26450     export_symbols_cmds_RC \
26451     hardcode_libdir_flag_spec_RC \
26452     hardcode_libdir_flag_spec_ld_RC \
26453     hardcode_libdir_separator_RC \
26454     hardcode_automatic_RC \
26455     module_cmds_RC \
26456     module_expsym_cmds_RC \
26457     lt_cv_prog_compiler_c_o_RC \
26458     exclude_expsyms_RC \
26459     include_expsyms_RC; do
26460
26461     case $var in
26462     old_archive_cmds_RC | \
26463     old_archive_from_new_cmds_RC | \
26464     archive_cmds_RC | \
26465     archive_expsym_cmds_RC | \
26466     module_cmds_RC | \
26467     module_expsym_cmds_RC | \
26468     old_archive_from_expsyms_cmds_RC | \
26469     export_symbols_cmds_RC | \
26470     extract_expsyms_cmds | reload_cmds | finish_cmds | \
26471     postinstall_cmds | postuninstall_cmds | \
26472     old_postinstall_cmds | old_postuninstall_cmds | \
26473     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26474       # Double-quote double-evaled strings.
26475       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26476       ;;
26477     *)
26478       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26479       ;;
26480     esac
26481   done
26482
26483   case $lt_echo in
26484   *'\$0 --fallback-echo"')
26485     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26486     ;;
26487   esac
26488
26489 cfgfile="$ofile"
26490
26491   cat <<__EOF__ >> "$cfgfile"
26492 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26493
26494 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26495
26496 # Shell to use when invoking shell scripts.
26497 SHELL=$lt_SHELL
26498
26499 # Whether or not to build shared libraries.
26500 build_libtool_libs=$enable_shared
26501
26502 # Whether or not to build static libraries.
26503 build_old_libs=$enable_static
26504
26505 # Whether or not to add -lc for building shared libraries.
26506 build_libtool_need_lc=$archive_cmds_need_lc_RC
26507
26508 # Whether or not to disallow shared libs when runtime libs are static
26509 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26510
26511 # Whether or not to optimize for fast installation.
26512 fast_install=$enable_fast_install
26513
26514 # The host system.
26515 host_alias=$host_alias
26516 host=$host
26517 host_os=$host_os
26518
26519 # The build system.
26520 build_alias=$build_alias
26521 build=$build
26522 build_os=$build_os
26523
26524 # An echo program that does not interpret backslashes.
26525 echo=$lt_echo
26526
26527 # The archiver.
26528 AR=$lt_AR
26529 AR_FLAGS=$lt_AR_FLAGS
26530
26531 # A C compiler.
26532 LTCC=$lt_LTCC
26533
26534 # LTCC compiler flags.
26535 LTCFLAGS=$lt_LTCFLAGS
26536
26537 # A language-specific compiler.
26538 CC=$lt_compiler_RC
26539
26540 # Is the compiler the GNU C compiler?
26541 with_gcc=$GCC_RC
26542
26543 # An ERE matcher.
26544 EGREP=$lt_EGREP
26545
26546 # The linker used to build libraries.
26547 LD=$lt_LD_RC
26548
26549 # Whether we need hard or soft links.
26550 LN_S=$lt_LN_S
26551
26552 # A BSD-compatible nm program.
26553 NM=$lt_NM
26554
26555 # A symbol stripping program
26556 STRIP=$lt_STRIP
26557
26558 # Used to examine libraries when file_magic_cmd begins "file"
26559 MAGIC_CMD=$MAGIC_CMD
26560
26561 # Used on cygwin: DLL creation program.
26562 DLLTOOL="$DLLTOOL"
26563
26564 # Used on cygwin: object dumper.
26565 OBJDUMP="$OBJDUMP"
26566
26567 # Used on cygwin: assembler.
26568 AS="$AS"
26569
26570 # The name of the directory that contains temporary libtool files.
26571 objdir=$objdir
26572
26573 # How to create reloadable object files.
26574 reload_flag=$lt_reload_flag
26575 reload_cmds=$lt_reload_cmds
26576
26577 # How to pass a linker flag through the compiler.
26578 wl=$lt_lt_prog_compiler_wl_RC
26579
26580 # Object file suffix (normally "o").
26581 objext="$ac_objext"
26582
26583 # Old archive suffix (normally "a").
26584 libext="$libext"
26585
26586 # Shared library suffix (normally ".so").
26587 shrext_cmds='$shrext_cmds'
26588
26589 # Executable file suffix (normally "").
26590 exeext="$exeext"
26591
26592 # Additional compiler flags for building library objects.
26593 pic_flag=$lt_lt_prog_compiler_pic_RC
26594 pic_mode=$pic_mode
26595
26596 # What is the maximum length of a command?
26597 max_cmd_len=$lt_cv_sys_max_cmd_len
26598
26599 # Does compiler simultaneously support -c and -o options?
26600 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26601
26602 # Must we lock files when doing compilation?
26603 need_locks=$lt_need_locks
26604
26605 # Do we need the lib prefix for modules?
26606 need_lib_prefix=$need_lib_prefix
26607
26608 # Do we need a version for libraries?
26609 need_version=$need_version
26610
26611 # Whether dlopen is supported.
26612 dlopen_support=$enable_dlopen
26613
26614 # Whether dlopen of programs is supported.
26615 dlopen_self=$enable_dlopen_self
26616
26617 # Whether dlopen of statically linked programs is supported.
26618 dlopen_self_static=$enable_dlopen_self_static
26619
26620 # Compiler flag to prevent dynamic linking.
26621 link_static_flag=$lt_lt_prog_compiler_static_RC
26622
26623 # Compiler flag to turn off builtin functions.
26624 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26625
26626 # Compiler flag to allow reflexive dlopens.
26627 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26628
26629 # Compiler flag to generate shared objects directly from archives.
26630 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26631
26632 # Compiler flag to generate thread-safe objects.
26633 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26634
26635 # Library versioning type.
26636 version_type=$version_type
26637
26638 # Format of library name prefix.
26639 libname_spec=$lt_libname_spec
26640
26641 # List of archive names.  First name is the real one, the rest are links.
26642 # The last name is the one that the linker finds with -lNAME.
26643 library_names_spec=$lt_library_names_spec
26644
26645 # The coded name of the library, if different from the real name.
26646 soname_spec=$lt_soname_spec
26647
26648 # Commands used to build and install an old-style archive.
26649 RANLIB=$lt_RANLIB
26650 old_archive_cmds=$lt_old_archive_cmds_RC
26651 old_postinstall_cmds=$lt_old_postinstall_cmds
26652 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26653
26654 # Create an old-style archive from a shared archive.
26655 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26656
26657 # Create a temporary old-style archive to link instead of a shared archive.
26658 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26659
26660 # Commands used to build and install a shared archive.
26661 archive_cmds=$lt_archive_cmds_RC
26662 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26663 postinstall_cmds=$lt_postinstall_cmds
26664 postuninstall_cmds=$lt_postuninstall_cmds
26665
26666 # Commands used to build a loadable module (assumed same as above if empty)
26667 module_cmds=$lt_module_cmds_RC
26668 module_expsym_cmds=$lt_module_expsym_cmds_RC
26669
26670 # Commands to strip libraries.
26671 old_striplib=$lt_old_striplib
26672 striplib=$lt_striplib
26673
26674 # Dependencies to place before the objects being linked to create a
26675 # shared library.
26676 predep_objects=$lt_predep_objects_RC
26677
26678 # Dependencies to place after the objects being linked to create a
26679 # shared library.
26680 postdep_objects=$lt_postdep_objects_RC
26681
26682 # Dependencies to place before the objects being linked to create a
26683 # shared library.
26684 predeps=$lt_predeps_RC
26685
26686 # Dependencies to place after the objects being linked to create a
26687 # shared library.
26688 postdeps=$lt_postdeps_RC
26689
26690 # The library search path used internally by the compiler when linking
26691 # a shared library.
26692 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26693
26694 # Method to check whether dependent libraries are shared objects.
26695 deplibs_check_method=$lt_deplibs_check_method
26696
26697 # Command to use when deplibs_check_method == file_magic.
26698 file_magic_cmd=$lt_file_magic_cmd
26699
26700 # Flag that allows shared libraries with undefined symbols to be built.
26701 allow_undefined_flag=$lt_allow_undefined_flag_RC
26702
26703 # Flag that forces no undefined symbols.
26704 no_undefined_flag=$lt_no_undefined_flag_RC
26705
26706 # Commands used to finish a libtool library installation in a directory.
26707 finish_cmds=$lt_finish_cmds
26708
26709 # Same as above, but a single script fragment to be evaled but not shown.
26710 finish_eval=$lt_finish_eval
26711
26712 # Take the output of nm and produce a listing of raw symbols and C names.
26713 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26714
26715 # Transform the output of nm in a proper C declaration
26716 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26717
26718 # Transform the output of nm in a C name address pair
26719 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26720
26721 # This is the shared library runtime path variable.
26722 runpath_var=$runpath_var
26723
26724 # This is the shared library path variable.
26725 shlibpath_var=$shlibpath_var
26726
26727 # Is shlibpath searched before the hard-coded library search path?
26728 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26729
26730 # How to hardcode a shared library path into an executable.
26731 hardcode_action=$hardcode_action_RC
26732
26733 # Whether we should hardcode library paths into libraries.
26734 hardcode_into_libs=$hardcode_into_libs
26735
26736 # Flag to hardcode \$libdir into a binary during linking.
26737 # This must work even if \$libdir does not exist.
26738 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26739
26740 # If ld is used when linking, flag to hardcode \$libdir into
26741 # a binary during linking. This must work even if \$libdir does
26742 # not exist.
26743 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26744
26745 # Whether we need a single -rpath flag with a separated argument.
26746 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26747
26748 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26749 # resulting binary.
26750 hardcode_direct=$hardcode_direct_RC
26751
26752 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26753 # resulting binary.
26754 hardcode_minus_L=$hardcode_minus_L_RC
26755
26756 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26757 # the resulting binary.
26758 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26759
26760 # Set to yes if building a shared library automatically hardcodes DIR into the library
26761 # and all subsequent libraries and executables linked against it.
26762 hardcode_automatic=$hardcode_automatic_RC
26763
26764 # Variables whose values should be saved in libtool wrapper scripts and
26765 # restored at relink time.
26766 variables_saved_for_relink="$variables_saved_for_relink"
26767
26768 # Whether libtool must link a program against all its dependency libraries.
26769 link_all_deplibs=$link_all_deplibs_RC
26770
26771 # Compile-time system search path for libraries
26772 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26773
26774 # Run-time system search path for libraries
26775 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26776
26777 # Fix the shell variable \$srcfile for the compiler.
26778 fix_srcfile_path="$fix_srcfile_path_RC"
26779
26780 # Set to yes if exported symbols are required.
26781 always_export_symbols=$always_export_symbols_RC
26782
26783 # The commands to list exported symbols.
26784 export_symbols_cmds=$lt_export_symbols_cmds_RC
26785
26786 # The commands to extract the exported symbol list from a shared archive.
26787 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26788
26789 # Symbols that should not be listed in the preloaded symbols.
26790 exclude_expsyms=$lt_exclude_expsyms_RC
26791
26792 # Symbols that must always be exported.
26793 include_expsyms=$lt_include_expsyms_RC
26794
26795 # ### END LIBTOOL TAG CONFIG: $tagname
26796
26797 __EOF__
26798
26799
26800 else
26801   # If there is no Makefile yet, we rely on a make rule to execute
26802   # `config.status --recheck' to rerun these tests and create the
26803   # libtool script then.
26804   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26805   if test -f "$ltmain_in"; then
26806     test -f Makefile && make "$ltmain"
26807   fi
26808 fi
26809
26810
26811 ac_ext=c
26812 ac_cpp='$CPP $CPPFLAGS'
26813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26816
26817 CC="$lt_save_CC"
26818
26819         ;;
26820
26821       *)
26822         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26823 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26824    { (exit 1); exit 1; }; }
26825         ;;
26826       esac
26827
26828       # Append the new tag name to the list of available tags.
26829       if test -n "$tagname" ; then
26830       available_tags="$available_tags $tagname"
26831     fi
26832     fi
26833   done
26834   IFS="$lt_save_ifs"
26835
26836   # Now substitute the updated list of available tags.
26837   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26838     mv "${ofile}T" "$ofile"
26839     chmod +x "$ofile"
26840   else
26841     rm -f "${ofile}T"
26842     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26843 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26844    { (exit 1); exit 1; }; }
26845   fi
26846 fi
26847
26848
26849
26850 # This can be used to rebuild libtool when needed
26851 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26852
26853 # Always use our own libtool.
26854 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
26855
26856 # Prevent multiple expansion
26857
26858
26859
26860
26861
26862
26863
26864
26865
26866
26867
26868
26869
26870
26871
26872
26873
26874
26875
26876
26877
26878 if test "$lt_cv_dlopen_self" = "yes" ; then
26879
26880 cat >>confdefs.h <<\_ACEOF
26881 #define CAN_DLOPEN_SELF 1
26882 _ACEOF
26883
26884 fi
26885
26886 if test "$WITH_LLVMGCCDIR" = "default" ; then
26887   LLVMGCC="llvm-gcc${EXEEXT}"
26888   LLVMGXX="llvm-g++${EXEEXT}"
26889   # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26890 set dummy $LLVMGCC; ac_word=$2
26891 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26893 if test "${ac_cv_path_LLVMGCC+set}" = set; then
26894   echo $ECHO_N "(cached) $ECHO_C" >&6
26895 else
26896   case $LLVMGCC in
26897   [\\/]* | ?:[\\/]*)
26898   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26899   ;;
26900   *)
26901   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26902 for as_dir in $PATH
26903 do
26904   IFS=$as_save_IFS
26905   test -z "$as_dir" && as_dir=.
26906   for ac_exec_ext in '' $ac_executable_extensions; do
26907   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26908     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26909     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26910     break 2
26911   fi
26912 done
26913 done
26914 IFS=$as_save_IFS
26915
26916   ;;
26917 esac
26918 fi
26919 LLVMGCC=$ac_cv_path_LLVMGCC
26920 if test -n "$LLVMGCC"; then
26921   { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26922 echo "${ECHO_T}$LLVMGCC" >&6; }
26923 else
26924   { echo "$as_me:$LINENO: result: no" >&5
26925 echo "${ECHO_T}no" >&6; }
26926 fi
26927
26928
26929   # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26930 set dummy $LLVMGXX; ac_word=$2
26931 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26933 if test "${ac_cv_path_LLVMGXX+set}" = set; then
26934   echo $ECHO_N "(cached) $ECHO_C" >&6
26935 else
26936   case $LLVMGXX in
26937   [\\/]* | ?:[\\/]*)
26938   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26939   ;;
26940   *)
26941   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26942 for as_dir in $PATH
26943 do
26944   IFS=$as_save_IFS
26945   test -z "$as_dir" && as_dir=.
26946   for ac_exec_ext in '' $ac_executable_extensions; do
26947   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26948     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26949     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26950     break 2
26951   fi
26952 done
26953 done
26954 IFS=$as_save_IFS
26955
26956   ;;
26957 esac
26958 fi
26959 LLVMGXX=$ac_cv_path_LLVMGXX
26960 if test -n "$LLVMGXX"; then
26961   { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26962 echo "${ECHO_T}$LLVMGXX" >&6; }
26963 else
26964   { echo "$as_me:$LINENO: result: no" >&5
26965 echo "${ECHO_T}no" >&6; }
26966 fi
26967
26968
26969 else
26970   if test -z "$LLVMGCC"; then
26971     LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26972   fi
26973   if test -z "$LLVMGXX"; then
26974     LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
26975   fi
26976   LLVMGCC=$LLVMGCC
26977
26978   LLVMGXX=$LLVMGXX
26979
26980 fi
26981
26982 { echo "$as_me:$LINENO: checking tool compatibility" >&5
26983 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
26984
26985 ICC=no
26986 IXX=no
26987 case $CC in
26988   icc*|icpc*)
26989     ICC=yes
26990     IXX=yes
26991     ;;
26992    *)
26993     ;;
26994 esac
26995
26996 if test "$GCC" != "yes" && test "$ICC" != "yes"
26997 then
26998   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26999 echo "$as_me: error: gcc|icc required but not found" >&2;}
27000    { (exit 1); exit 1; }; }
27001 fi
27002
27003 if test "$GXX" != "yes" && test "$IXX" != "yes"
27004 then
27005   { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27006 echo "$as_me: error: g++|icc required but not found" >&2;}
27007    { (exit 1); exit 1; }; }
27008 fi
27009
27010 if test "$GCC" = "yes"
27011 then
27012   cat >conftest.$ac_ext <<_ACEOF
27013 #if !defined(__GNUC__) || __GNUC__ < 3
27014 #error Unsupported GCC version
27015 #endif
27016
27017 _ACEOF
27018 rm -f conftest.$ac_objext
27019 if { (ac_try="$ac_compile"
27020 case "(($ac_try" in
27021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27022   *) ac_try_echo=$ac_try;;
27023 esac
27024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27025   (eval "$ac_compile") 2>conftest.er1
27026   ac_status=$?
27027   grep -v '^ *+' conftest.er1 >conftest.err
27028   rm -f conftest.er1
27029   cat conftest.err >&5
27030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27031   (exit $ac_status); } &&
27032          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27033   { (case "(($ac_try" in
27034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27035   *) ac_try_echo=$ac_try;;
27036 esac
27037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27038   (eval "$ac_try") 2>&5
27039   ac_status=$?
27040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27041   (exit $ac_status); }; } &&
27042          { ac_try='test -s conftest.$ac_objext'
27043   { (case "(($ac_try" in
27044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27045   *) ac_try_echo=$ac_try;;
27046 esac
27047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27048   (eval "$ac_try") 2>&5
27049   ac_status=$?
27050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27051   (exit $ac_status); }; }; then
27052   :
27053 else
27054   echo "$as_me: failed program was:" >&5
27055 sed 's/^/| /' conftest.$ac_ext >&5
27056
27057         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
27058 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27059    { (exit 1); exit 1; }; }
27060 fi
27061
27062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27063 fi
27064
27065 if test -z "$llvm_cv_gnu_make_command"
27066 then
27067   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27068 echo "$as_me: error: GNU Make required but not found" >&2;}
27069    { (exit 1); exit 1; }; }
27070 fi
27071
27072 { echo "$as_me:$LINENO: result: ok" >&5
27073 echo "${ECHO_T}ok" >&6; }
27074
27075
27076
27077 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
27078 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
27079 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
27080   echo $ECHO_N "(cached) $ECHO_C" >&6
27081 else
27082   ac_check_lib_save_LIBS=$LIBS
27083 LIBS="-lelf  $LIBS"
27084 cat >conftest.$ac_ext <<_ACEOF
27085 /* confdefs.h.  */
27086 _ACEOF
27087 cat confdefs.h >>conftest.$ac_ext
27088 cat >>conftest.$ac_ext <<_ACEOF
27089 /* end confdefs.h.  */
27090
27091 /* Override any GCC internal prototype to avoid an error.
27092    Use char because int might match the return type of a GCC
27093    builtin and then its argument prototype would still apply.  */
27094 #ifdef __cplusplus
27095 extern "C"
27096 #endif
27097 char elf_begin ();
27098 int
27099 main ()
27100 {
27101 return elf_begin ();
27102   ;
27103   return 0;
27104 }
27105 _ACEOF
27106 rm -f conftest.$ac_objext conftest$ac_exeext
27107 if { (ac_try="$ac_link"
27108 case "(($ac_try" in
27109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27110   *) ac_try_echo=$ac_try;;
27111 esac
27112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27113   (eval "$ac_link") 2>conftest.er1
27114   ac_status=$?
27115   grep -v '^ *+' conftest.er1 >conftest.err
27116   rm -f conftest.er1
27117   cat conftest.err >&5
27118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27119   (exit $ac_status); } &&
27120          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27121   { (case "(($ac_try" in
27122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27123   *) ac_try_echo=$ac_try;;
27124 esac
27125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27126   (eval "$ac_try") 2>&5
27127   ac_status=$?
27128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27129   (exit $ac_status); }; } &&
27130          { ac_try='test -s conftest$ac_exeext'
27131   { (case "(($ac_try" in
27132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27133   *) ac_try_echo=$ac_try;;
27134 esac
27135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27136   (eval "$ac_try") 2>&5
27137   ac_status=$?
27138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27139   (exit $ac_status); }; }; then
27140   ac_cv_lib_elf_elf_begin=yes
27141 else
27142   echo "$as_me: failed program was:" >&5
27143 sed 's/^/| /' conftest.$ac_ext >&5
27144
27145         ac_cv_lib_elf_elf_begin=no
27146 fi
27147
27148 rm -f core conftest.err conftest.$ac_objext \
27149       conftest$ac_exeext conftest.$ac_ext
27150 LIBS=$ac_check_lib_save_LIBS
27151 fi
27152 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
27153 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
27154 if test $ac_cv_lib_elf_elf_begin = yes; then
27155   cat >>confdefs.h <<_ACEOF
27156 #define HAVE_LIBELF 1
27157 _ACEOF
27158
27159   LIBS="-lelf $LIBS"
27160
27161 fi
27162
27163
27164 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
27165 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
27166 if test "${ac_cv_lib_m_sin+set}" = set; then
27167   echo $ECHO_N "(cached) $ECHO_C" >&6
27168 else
27169   ac_check_lib_save_LIBS=$LIBS
27170 LIBS="-lm  $LIBS"
27171 cat >conftest.$ac_ext <<_ACEOF
27172 /* confdefs.h.  */
27173 _ACEOF
27174 cat confdefs.h >>conftest.$ac_ext
27175 cat >>conftest.$ac_ext <<_ACEOF
27176 /* end confdefs.h.  */
27177
27178 /* Override any GCC internal prototype to avoid an error.
27179    Use char because int might match the return type of a GCC
27180    builtin and then its argument prototype would still apply.  */
27181 #ifdef __cplusplus
27182 extern "C"
27183 #endif
27184 char sin ();
27185 int
27186 main ()
27187 {
27188 return sin ();
27189   ;
27190   return 0;
27191 }
27192 _ACEOF
27193 rm -f conftest.$ac_objext conftest$ac_exeext
27194 if { (ac_try="$ac_link"
27195 case "(($ac_try" in
27196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27197   *) ac_try_echo=$ac_try;;
27198 esac
27199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27200   (eval "$ac_link") 2>conftest.er1
27201   ac_status=$?
27202   grep -v '^ *+' conftest.er1 >conftest.err
27203   rm -f conftest.er1
27204   cat conftest.err >&5
27205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27206   (exit $ac_status); } &&
27207          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27208   { (case "(($ac_try" in
27209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27210   *) ac_try_echo=$ac_try;;
27211 esac
27212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27213   (eval "$ac_try") 2>&5
27214   ac_status=$?
27215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27216   (exit $ac_status); }; } &&
27217          { ac_try='test -s conftest$ac_exeext'
27218   { (case "(($ac_try" in
27219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27220   *) ac_try_echo=$ac_try;;
27221 esac
27222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27223   (eval "$ac_try") 2>&5
27224   ac_status=$?
27225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27226   (exit $ac_status); }; }; then
27227   ac_cv_lib_m_sin=yes
27228 else
27229   echo "$as_me: failed program was:" >&5
27230 sed 's/^/| /' conftest.$ac_ext >&5
27231
27232         ac_cv_lib_m_sin=no
27233 fi
27234
27235 rm -f core conftest.err conftest.$ac_objext \
27236       conftest$ac_exeext conftest.$ac_ext
27237 LIBS=$ac_check_lib_save_LIBS
27238 fi
27239 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27240 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27241 if test $ac_cv_lib_m_sin = yes; then
27242   cat >>confdefs.h <<_ACEOF
27243 #define HAVE_LIBM 1
27244 _ACEOF
27245
27246   LIBS="-lm $LIBS"
27247
27248 fi
27249
27250 if test "$llvm_cv_os_type" = "MingW" ; then
27251
27252 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27253 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27254 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27255   echo $ECHO_N "(cached) $ECHO_C" >&6
27256 else
27257   ac_check_lib_save_LIBS=$LIBS
27258 LIBS="-limagehlp  $LIBS"
27259 cat >conftest.$ac_ext <<_ACEOF
27260 /* confdefs.h.  */
27261 _ACEOF
27262 cat confdefs.h >>conftest.$ac_ext
27263 cat >>conftest.$ac_ext <<_ACEOF
27264 /* end confdefs.h.  */
27265
27266
27267 int
27268 main ()
27269 {
27270 return main ();
27271   ;
27272   return 0;
27273 }
27274 _ACEOF
27275 rm -f conftest.$ac_objext conftest$ac_exeext
27276 if { (ac_try="$ac_link"
27277 case "(($ac_try" in
27278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27279   *) ac_try_echo=$ac_try;;
27280 esac
27281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27282   (eval "$ac_link") 2>conftest.er1
27283   ac_status=$?
27284   grep -v '^ *+' conftest.er1 >conftest.err
27285   rm -f conftest.er1
27286   cat conftest.err >&5
27287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27288   (exit $ac_status); } &&
27289          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27290   { (case "(($ac_try" in
27291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27292   *) ac_try_echo=$ac_try;;
27293 esac
27294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27295   (eval "$ac_try") 2>&5
27296   ac_status=$?
27297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27298   (exit $ac_status); }; } &&
27299          { ac_try='test -s conftest$ac_exeext'
27300   { (case "(($ac_try" in
27301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27302   *) ac_try_echo=$ac_try;;
27303 esac
27304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27305   (eval "$ac_try") 2>&5
27306   ac_status=$?
27307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27308   (exit $ac_status); }; }; then
27309   ac_cv_lib_imagehlp_main=yes
27310 else
27311   echo "$as_me: failed program was:" >&5
27312 sed 's/^/| /' conftest.$ac_ext >&5
27313
27314         ac_cv_lib_imagehlp_main=no
27315 fi
27316
27317 rm -f core conftest.err conftest.$ac_objext \
27318       conftest$ac_exeext conftest.$ac_ext
27319 LIBS=$ac_check_lib_save_LIBS
27320 fi
27321 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27322 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27323 if test $ac_cv_lib_imagehlp_main = yes; then
27324   cat >>confdefs.h <<_ACEOF
27325 #define HAVE_LIBIMAGEHLP 1
27326 _ACEOF
27327
27328   LIBS="-limagehlp $LIBS"
27329
27330 fi
27331
27332
27333 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27334 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27335 if test "${ac_cv_lib_psapi_main+set}" = set; then
27336   echo $ECHO_N "(cached) $ECHO_C" >&6
27337 else
27338   ac_check_lib_save_LIBS=$LIBS
27339 LIBS="-lpsapi  $LIBS"
27340 cat >conftest.$ac_ext <<_ACEOF
27341 /* confdefs.h.  */
27342 _ACEOF
27343 cat confdefs.h >>conftest.$ac_ext
27344 cat >>conftest.$ac_ext <<_ACEOF
27345 /* end confdefs.h.  */
27346
27347
27348 int
27349 main ()
27350 {
27351 return main ();
27352   ;
27353   return 0;
27354 }
27355 _ACEOF
27356 rm -f conftest.$ac_objext conftest$ac_exeext
27357 if { (ac_try="$ac_link"
27358 case "(($ac_try" in
27359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27360   *) ac_try_echo=$ac_try;;
27361 esac
27362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27363   (eval "$ac_link") 2>conftest.er1
27364   ac_status=$?
27365   grep -v '^ *+' conftest.er1 >conftest.err
27366   rm -f conftest.er1
27367   cat conftest.err >&5
27368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27369   (exit $ac_status); } &&
27370          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27371   { (case "(($ac_try" in
27372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27373   *) ac_try_echo=$ac_try;;
27374 esac
27375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27376   (eval "$ac_try") 2>&5
27377   ac_status=$?
27378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27379   (exit $ac_status); }; } &&
27380          { ac_try='test -s conftest$ac_exeext'
27381   { (case "(($ac_try" in
27382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27383   *) ac_try_echo=$ac_try;;
27384 esac
27385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27386   (eval "$ac_try") 2>&5
27387   ac_status=$?
27388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27389   (exit $ac_status); }; }; then
27390   ac_cv_lib_psapi_main=yes
27391 else
27392   echo "$as_me: failed program was:" >&5
27393 sed 's/^/| /' conftest.$ac_ext >&5
27394
27395         ac_cv_lib_psapi_main=no
27396 fi
27397
27398 rm -f core conftest.err conftest.$ac_objext \
27399       conftest$ac_exeext conftest.$ac_ext
27400 LIBS=$ac_check_lib_save_LIBS
27401 fi
27402 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27403 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27404 if test $ac_cv_lib_psapi_main = yes; then
27405   cat >>confdefs.h <<_ACEOF
27406 #define HAVE_LIBPSAPI 1
27407 _ACEOF
27408
27409   LIBS="-lpsapi $LIBS"
27410
27411 fi
27412
27413 fi
27414
27415 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27416 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27417 if test "${ac_cv_search_dlopen+set}" = set; then
27418   echo $ECHO_N "(cached) $ECHO_C" >&6
27419 else
27420   ac_func_search_save_LIBS=$LIBS
27421 cat >conftest.$ac_ext <<_ACEOF
27422 /* confdefs.h.  */
27423 _ACEOF
27424 cat confdefs.h >>conftest.$ac_ext
27425 cat >>conftest.$ac_ext <<_ACEOF
27426 /* end confdefs.h.  */
27427
27428 /* Override any GCC internal prototype to avoid an error.
27429    Use char because int might match the return type of a GCC
27430    builtin and then its argument prototype would still apply.  */
27431 #ifdef __cplusplus
27432 extern "C"
27433 #endif
27434 char dlopen ();
27435 int
27436 main ()
27437 {
27438 return dlopen ();
27439   ;
27440   return 0;
27441 }
27442 _ACEOF
27443 for ac_lib in '' dl; do
27444   if test -z "$ac_lib"; then
27445     ac_res="none required"
27446   else
27447     ac_res=-l$ac_lib
27448     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27449   fi
27450   rm -f conftest.$ac_objext conftest$ac_exeext
27451 if { (ac_try="$ac_link"
27452 case "(($ac_try" in
27453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27454   *) ac_try_echo=$ac_try;;
27455 esac
27456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27457   (eval "$ac_link") 2>conftest.er1
27458   ac_status=$?
27459   grep -v '^ *+' conftest.er1 >conftest.err
27460   rm -f conftest.er1
27461   cat conftest.err >&5
27462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27463   (exit $ac_status); } &&
27464          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27465   { (case "(($ac_try" in
27466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27467   *) ac_try_echo=$ac_try;;
27468 esac
27469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27470   (eval "$ac_try") 2>&5
27471   ac_status=$?
27472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27473   (exit $ac_status); }; } &&
27474          { ac_try='test -s conftest$ac_exeext'
27475   { (case "(($ac_try" in
27476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27477   *) ac_try_echo=$ac_try;;
27478 esac
27479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27480   (eval "$ac_try") 2>&5
27481   ac_status=$?
27482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27483   (exit $ac_status); }; }; then
27484   ac_cv_search_dlopen=$ac_res
27485 else
27486   echo "$as_me: failed program was:" >&5
27487 sed 's/^/| /' conftest.$ac_ext >&5
27488
27489
27490 fi
27491
27492 rm -f core conftest.err conftest.$ac_objext \
27493       conftest$ac_exeext
27494   if test "${ac_cv_search_dlopen+set}" = set; then
27495   break
27496 fi
27497 done
27498 if test "${ac_cv_search_dlopen+set}" = set; then
27499   :
27500 else
27501   ac_cv_search_dlopen=no
27502 fi
27503 rm conftest.$ac_ext
27504 LIBS=$ac_func_search_save_LIBS
27505 fi
27506 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27507 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27508 ac_res=$ac_cv_search_dlopen
27509 if test "$ac_res" != no; then
27510   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27511
27512 cat >>confdefs.h <<\_ACEOF
27513 #define HAVE_DLOPEN 1
27514 _ACEOF
27515
27516 else
27517   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27518 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27519 fi
27520
27521
27522 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27523 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27524 if test "${ac_cv_search_mallinfo+set}" = set; then
27525   echo $ECHO_N "(cached) $ECHO_C" >&6
27526 else
27527   ac_func_search_save_LIBS=$LIBS
27528 cat >conftest.$ac_ext <<_ACEOF
27529 /* confdefs.h.  */
27530 _ACEOF
27531 cat confdefs.h >>conftest.$ac_ext
27532 cat >>conftest.$ac_ext <<_ACEOF
27533 /* end confdefs.h.  */
27534
27535 /* Override any GCC internal prototype to avoid an error.
27536    Use char because int might match the return type of a GCC
27537    builtin and then its argument prototype would still apply.  */
27538 #ifdef __cplusplus
27539 extern "C"
27540 #endif
27541 char mallinfo ();
27542 int
27543 main ()
27544 {
27545 return mallinfo ();
27546   ;
27547   return 0;
27548 }
27549 _ACEOF
27550 for ac_lib in '' malloc; do
27551   if test -z "$ac_lib"; then
27552     ac_res="none required"
27553   else
27554     ac_res=-l$ac_lib
27555     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27556   fi
27557   rm -f conftest.$ac_objext conftest$ac_exeext
27558 if { (ac_try="$ac_link"
27559 case "(($ac_try" in
27560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27561   *) ac_try_echo=$ac_try;;
27562 esac
27563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27564   (eval "$ac_link") 2>conftest.er1
27565   ac_status=$?
27566   grep -v '^ *+' conftest.er1 >conftest.err
27567   rm -f conftest.er1
27568   cat conftest.err >&5
27569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27570   (exit $ac_status); } &&
27571          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27572   { (case "(($ac_try" in
27573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27574   *) ac_try_echo=$ac_try;;
27575 esac
27576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27577   (eval "$ac_try") 2>&5
27578   ac_status=$?
27579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27580   (exit $ac_status); }; } &&
27581          { ac_try='test -s conftest$ac_exeext'
27582   { (case "(($ac_try" in
27583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27584   *) ac_try_echo=$ac_try;;
27585 esac
27586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27587   (eval "$ac_try") 2>&5
27588   ac_status=$?
27589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27590   (exit $ac_status); }; }; then
27591   ac_cv_search_mallinfo=$ac_res
27592 else
27593   echo "$as_me: failed program was:" >&5
27594 sed 's/^/| /' conftest.$ac_ext >&5
27595
27596
27597 fi
27598
27599 rm -f core conftest.err conftest.$ac_objext \
27600       conftest$ac_exeext
27601   if test "${ac_cv_search_mallinfo+set}" = set; then
27602   break
27603 fi
27604 done
27605 if test "${ac_cv_search_mallinfo+set}" = set; then
27606   :
27607 else
27608   ac_cv_search_mallinfo=no
27609 fi
27610 rm conftest.$ac_ext
27611 LIBS=$ac_func_search_save_LIBS
27612 fi
27613 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27614 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27615 ac_res=$ac_cv_search_mallinfo
27616 if test "$ac_res" != no; then
27617   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27618
27619 cat >>confdefs.h <<\_ACEOF
27620 #define HAVE_MALLINFO 1
27621 _ACEOF
27622
27623 fi
27624
27625
27626 if test "$ENABLE_THREADS" -eq 1 ; then
27627
27628 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27629 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27630 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27631   echo $ECHO_N "(cached) $ECHO_C" >&6
27632 else
27633   ac_check_lib_save_LIBS=$LIBS
27634 LIBS="-lpthread  $LIBS"
27635 cat >conftest.$ac_ext <<_ACEOF
27636 /* confdefs.h.  */
27637 _ACEOF
27638 cat confdefs.h >>conftest.$ac_ext
27639 cat >>conftest.$ac_ext <<_ACEOF
27640 /* end confdefs.h.  */
27641
27642 /* Override any GCC internal prototype to avoid an error.
27643    Use char because int might match the return type of a GCC
27644    builtin and then its argument prototype would still apply.  */
27645 #ifdef __cplusplus
27646 extern "C"
27647 #endif
27648 char pthread_mutex_init ();
27649 int
27650 main ()
27651 {
27652 return pthread_mutex_init ();
27653   ;
27654   return 0;
27655 }
27656 _ACEOF
27657 rm -f conftest.$ac_objext conftest$ac_exeext
27658 if { (ac_try="$ac_link"
27659 case "(($ac_try" in
27660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27661   *) ac_try_echo=$ac_try;;
27662 esac
27663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27664   (eval "$ac_link") 2>conftest.er1
27665   ac_status=$?
27666   grep -v '^ *+' conftest.er1 >conftest.err
27667   rm -f conftest.er1
27668   cat conftest.err >&5
27669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27670   (exit $ac_status); } &&
27671          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27672   { (case "(($ac_try" in
27673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27674   *) ac_try_echo=$ac_try;;
27675 esac
27676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27677   (eval "$ac_try") 2>&5
27678   ac_status=$?
27679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27680   (exit $ac_status); }; } &&
27681          { ac_try='test -s conftest$ac_exeext'
27682   { (case "(($ac_try" in
27683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27684   *) ac_try_echo=$ac_try;;
27685 esac
27686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27687   (eval "$ac_try") 2>&5
27688   ac_status=$?
27689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27690   (exit $ac_status); }; }; then
27691   ac_cv_lib_pthread_pthread_mutex_init=yes
27692 else
27693   echo "$as_me: failed program was:" >&5
27694 sed 's/^/| /' conftest.$ac_ext >&5
27695
27696         ac_cv_lib_pthread_pthread_mutex_init=no
27697 fi
27698
27699 rm -f core conftest.err conftest.$ac_objext \
27700       conftest$ac_exeext conftest.$ac_ext
27701 LIBS=$ac_check_lib_save_LIBS
27702 fi
27703 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27704 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
27705 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27706   cat >>confdefs.h <<_ACEOF
27707 #define HAVE_LIBPTHREAD 1
27708 _ACEOF
27709
27710   LIBS="-lpthread $LIBS"
27711
27712 fi
27713
27714   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27715 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
27716 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27717   echo $ECHO_N "(cached) $ECHO_C" >&6
27718 else
27719   ac_func_search_save_LIBS=$LIBS
27720 cat >conftest.$ac_ext <<_ACEOF
27721 /* confdefs.h.  */
27722 _ACEOF
27723 cat confdefs.h >>conftest.$ac_ext
27724 cat >>conftest.$ac_ext <<_ACEOF
27725 /* end confdefs.h.  */
27726
27727 /* Override any GCC internal prototype to avoid an error.
27728    Use char because int might match the return type of a GCC
27729    builtin and then its argument prototype would still apply.  */
27730 #ifdef __cplusplus
27731 extern "C"
27732 #endif
27733 char pthread_mutex_lock ();
27734 int
27735 main ()
27736 {
27737 return pthread_mutex_lock ();
27738   ;
27739   return 0;
27740 }
27741 _ACEOF
27742 for ac_lib in '' pthread; do
27743   if test -z "$ac_lib"; then
27744     ac_res="none required"
27745   else
27746     ac_res=-l$ac_lib
27747     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27748   fi
27749   rm -f conftest.$ac_objext conftest$ac_exeext
27750 if { (ac_try="$ac_link"
27751 case "(($ac_try" in
27752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27753   *) ac_try_echo=$ac_try;;
27754 esac
27755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27756   (eval "$ac_link") 2>conftest.er1
27757   ac_status=$?
27758   grep -v '^ *+' conftest.er1 >conftest.err
27759   rm -f conftest.er1
27760   cat conftest.err >&5
27761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27762   (exit $ac_status); } &&
27763          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27764   { (case "(($ac_try" in
27765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27766   *) ac_try_echo=$ac_try;;
27767 esac
27768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27769   (eval "$ac_try") 2>&5
27770   ac_status=$?
27771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27772   (exit $ac_status); }; } &&
27773          { ac_try='test -s conftest$ac_exeext'
27774   { (case "(($ac_try" in
27775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27776   *) ac_try_echo=$ac_try;;
27777 esac
27778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27779   (eval "$ac_try") 2>&5
27780   ac_status=$?
27781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27782   (exit $ac_status); }; }; then
27783   ac_cv_search_pthread_mutex_lock=$ac_res
27784 else
27785   echo "$as_me: failed program was:" >&5
27786 sed 's/^/| /' conftest.$ac_ext >&5
27787
27788
27789 fi
27790
27791 rm -f core conftest.err conftest.$ac_objext \
27792       conftest$ac_exeext
27793   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27794   break
27795 fi
27796 done
27797 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27798   :
27799 else
27800   ac_cv_search_pthread_mutex_lock=no
27801 fi
27802 rm conftest.$ac_ext
27803 LIBS=$ac_func_search_save_LIBS
27804 fi
27805 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27806 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27807 ac_res=$ac_cv_search_pthread_mutex_lock
27808 if test "$ac_res" != no; then
27809   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27810
27811 cat >>confdefs.h <<\_ACEOF
27812 #define HAVE_PTHREAD_MUTEX_LOCK 1
27813 _ACEOF
27814
27815 fi
27816
27817 fi
27818
27819
27820 # Check whether --with-udis86 was given.
27821 if test "${with_udis86+set}" = set; then
27822   withval=$with_udis86;
27823       USE_UDIS86=1
27824
27825       case "$withval" in
27826         /usr/lib|yes) ;;
27827         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
27828       esac
27829
27830 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
27831 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
27832 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
27833   echo $ECHO_N "(cached) $ECHO_C" >&6
27834 else
27835   ac_check_lib_save_LIBS=$LIBS
27836 LIBS="-ludis86  $LIBS"
27837 cat >conftest.$ac_ext <<_ACEOF
27838 /* confdefs.h.  */
27839 _ACEOF
27840 cat confdefs.h >>conftest.$ac_ext
27841 cat >>conftest.$ac_ext <<_ACEOF
27842 /* end confdefs.h.  */
27843
27844 /* Override any GCC internal prototype to avoid an error.
27845    Use char because int might match the return type of a GCC
27846    builtin and then its argument prototype would still apply.  */
27847 #ifdef __cplusplus
27848 extern "C"
27849 #endif
27850 char ud_init ();
27851 int
27852 main ()
27853 {
27854 return ud_init ();
27855   ;
27856   return 0;
27857 }
27858 _ACEOF
27859 rm -f conftest.$ac_objext conftest$ac_exeext
27860 if { (ac_try="$ac_link"
27861 case "(($ac_try" in
27862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27863   *) ac_try_echo=$ac_try;;
27864 esac
27865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27866   (eval "$ac_link") 2>conftest.er1
27867   ac_status=$?
27868   grep -v '^ *+' conftest.er1 >conftest.err
27869   rm -f conftest.er1
27870   cat conftest.err >&5
27871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27872   (exit $ac_status); } &&
27873          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27874   { (case "(($ac_try" in
27875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27876   *) ac_try_echo=$ac_try;;
27877 esac
27878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27879   (eval "$ac_try") 2>&5
27880   ac_status=$?
27881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27882   (exit $ac_status); }; } &&
27883          { ac_try='test -s conftest$ac_exeext'
27884   { (case "(($ac_try" in
27885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27886   *) ac_try_echo=$ac_try;;
27887 esac
27888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27889   (eval "$ac_try") 2>&5
27890   ac_status=$?
27891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27892   (exit $ac_status); }; }; then
27893   ac_cv_lib_udis86_ud_init=yes
27894 else
27895   echo "$as_me: failed program was:" >&5
27896 sed 's/^/| /' conftest.$ac_ext >&5
27897
27898         ac_cv_lib_udis86_ud_init=no
27899 fi
27900
27901 rm -f core conftest.err conftest.$ac_objext \
27902       conftest$ac_exeext conftest.$ac_ext
27903 LIBS=$ac_check_lib_save_LIBS
27904 fi
27905 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
27906 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
27907 if test $ac_cv_lib_udis86_ud_init = yes; then
27908   cat >>confdefs.h <<_ACEOF
27909 #define HAVE_LIBUDIS86 1
27910 _ACEOF
27911
27912   LIBS="-ludis86 $LIBS"
27913
27914 else
27915
27916         echo "Error! You need to have libudis86 around."
27917         exit -1
27918
27919 fi
27920
27921
27922 else
27923   USE_UDIS86=0
27924
27925 fi
27926
27927
27928 cat >>confdefs.h <<_ACEOF
27929 #define USE_UDIS86 $USE_UDIS86
27930 _ACEOF
27931
27932
27933
27934
27935
27936
27937
27938
27939 ac_header_dirent=no
27940 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27941   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
27942 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27943 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
27944 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27945   echo $ECHO_N "(cached) $ECHO_C" >&6
27946 else
27947   cat >conftest.$ac_ext <<_ACEOF
27948 /* confdefs.h.  */
27949 _ACEOF
27950 cat confdefs.h >>conftest.$ac_ext
27951 cat >>conftest.$ac_ext <<_ACEOF
27952 /* end confdefs.h.  */
27953 #include <sys/types.h>
27954 #include <$ac_hdr>
27955
27956 int
27957 main ()
27958 {
27959 if ((DIR *) 0)
27960 return 0;
27961   ;
27962   return 0;
27963 }
27964 _ACEOF
27965 rm -f conftest.$ac_objext
27966 if { (ac_try="$ac_compile"
27967 case "(($ac_try" in
27968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27969   *) ac_try_echo=$ac_try;;
27970 esac
27971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27972   (eval "$ac_compile") 2>conftest.er1
27973   ac_status=$?
27974   grep -v '^ *+' conftest.er1 >conftest.err
27975   rm -f conftest.er1
27976   cat conftest.err >&5
27977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27978   (exit $ac_status); } &&
27979          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27980   { (case "(($ac_try" in
27981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27982   *) ac_try_echo=$ac_try;;
27983 esac
27984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27985   (eval "$ac_try") 2>&5
27986   ac_status=$?
27987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27988   (exit $ac_status); }; } &&
27989          { ac_try='test -s conftest.$ac_objext'
27990   { (case "(($ac_try" in
27991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27992   *) ac_try_echo=$ac_try;;
27993 esac
27994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27995   (eval "$ac_try") 2>&5
27996   ac_status=$?
27997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27998   (exit $ac_status); }; }; then
27999   eval "$as_ac_Header=yes"
28000 else
28001   echo "$as_me: failed program was:" >&5
28002 sed 's/^/| /' conftest.$ac_ext >&5
28003
28004         eval "$as_ac_Header=no"
28005 fi
28006
28007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28008 fi
28009 ac_res=`eval echo '${'$as_ac_Header'}'`
28010                { echo "$as_me:$LINENO: result: $ac_res" >&5
28011 echo "${ECHO_T}$ac_res" >&6; }
28012 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28013   cat >>confdefs.h <<_ACEOF
28014 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
28015 _ACEOF
28016
28017 ac_header_dirent=$ac_hdr; break
28018 fi
28019
28020 done
28021 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
28022 if test $ac_header_dirent = dirent.h; then
28023   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28024 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28025 if test "${ac_cv_search_opendir+set}" = set; then
28026   echo $ECHO_N "(cached) $ECHO_C" >&6
28027 else
28028   ac_func_search_save_LIBS=$LIBS
28029 cat >conftest.$ac_ext <<_ACEOF
28030 /* confdefs.h.  */
28031 _ACEOF
28032 cat confdefs.h >>conftest.$ac_ext
28033 cat >>conftest.$ac_ext <<_ACEOF
28034 /* end confdefs.h.  */
28035
28036 /* Override any GCC internal prototype to avoid an error.
28037    Use char because int might match the return type of a GCC
28038    builtin and then its argument prototype would still apply.  */
28039 #ifdef __cplusplus
28040 extern "C"
28041 #endif
28042 char opendir ();
28043 int
28044 main ()
28045 {
28046 return opendir ();
28047   ;
28048   return 0;
28049 }
28050 _ACEOF
28051 for ac_lib in '' dir; do
28052   if test -z "$ac_lib"; then
28053     ac_res="none required"
28054   else
28055     ac_res=-l$ac_lib
28056     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28057   fi
28058   rm -f conftest.$ac_objext conftest$ac_exeext
28059 if { (ac_try="$ac_link"
28060 case "(($ac_try" in
28061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28062   *) ac_try_echo=$ac_try;;
28063 esac
28064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28065   (eval "$ac_link") 2>conftest.er1
28066   ac_status=$?
28067   grep -v '^ *+' conftest.er1 >conftest.err
28068   rm -f conftest.er1
28069   cat conftest.err >&5
28070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28071   (exit $ac_status); } &&
28072          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28073   { (case "(($ac_try" in
28074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28075   *) ac_try_echo=$ac_try;;
28076 esac
28077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28078   (eval "$ac_try") 2>&5
28079   ac_status=$?
28080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28081   (exit $ac_status); }; } &&
28082          { ac_try='test -s conftest$ac_exeext'
28083   { (case "(($ac_try" in
28084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28085   *) ac_try_echo=$ac_try;;
28086 esac
28087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28088   (eval "$ac_try") 2>&5
28089   ac_status=$?
28090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28091   (exit $ac_status); }; }; then
28092   ac_cv_search_opendir=$ac_res
28093 else
28094   echo "$as_me: failed program was:" >&5
28095 sed 's/^/| /' conftest.$ac_ext >&5
28096
28097
28098 fi
28099
28100 rm -f core conftest.err conftest.$ac_objext \
28101       conftest$ac_exeext
28102   if test "${ac_cv_search_opendir+set}" = set; then
28103   break
28104 fi
28105 done
28106 if test "${ac_cv_search_opendir+set}" = set; then
28107   :
28108 else
28109   ac_cv_search_opendir=no
28110 fi
28111 rm conftest.$ac_ext
28112 LIBS=$ac_func_search_save_LIBS
28113 fi
28114 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28115 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28116 ac_res=$ac_cv_search_opendir
28117 if test "$ac_res" != no; then
28118   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28119
28120 fi
28121
28122 else
28123   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28124 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28125 if test "${ac_cv_search_opendir+set}" = set; then
28126   echo $ECHO_N "(cached) $ECHO_C" >&6
28127 else
28128   ac_func_search_save_LIBS=$LIBS
28129 cat >conftest.$ac_ext <<_ACEOF
28130 /* confdefs.h.  */
28131 _ACEOF
28132 cat confdefs.h >>conftest.$ac_ext
28133 cat >>conftest.$ac_ext <<_ACEOF
28134 /* end confdefs.h.  */
28135
28136 /* Override any GCC internal prototype to avoid an error.
28137    Use char because int might match the return type of a GCC
28138    builtin and then its argument prototype would still apply.  */
28139 #ifdef __cplusplus
28140 extern "C"
28141 #endif
28142 char opendir ();
28143 int
28144 main ()
28145 {
28146 return opendir ();
28147   ;
28148   return 0;
28149 }
28150 _ACEOF
28151 for ac_lib in '' x; do
28152   if test -z "$ac_lib"; then
28153     ac_res="none required"
28154   else
28155     ac_res=-l$ac_lib
28156     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28157   fi
28158   rm -f conftest.$ac_objext conftest$ac_exeext
28159 if { (ac_try="$ac_link"
28160 case "(($ac_try" in
28161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28162   *) ac_try_echo=$ac_try;;
28163 esac
28164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28165   (eval "$ac_link") 2>conftest.er1
28166   ac_status=$?
28167   grep -v '^ *+' conftest.er1 >conftest.err
28168   rm -f conftest.er1
28169   cat conftest.err >&5
28170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28171   (exit $ac_status); } &&
28172          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28173   { (case "(($ac_try" in
28174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28175   *) ac_try_echo=$ac_try;;
28176 esac
28177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28178   (eval "$ac_try") 2>&5
28179   ac_status=$?
28180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28181   (exit $ac_status); }; } &&
28182          { ac_try='test -s conftest$ac_exeext'
28183   { (case "(($ac_try" in
28184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28185   *) ac_try_echo=$ac_try;;
28186 esac
28187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28188   (eval "$ac_try") 2>&5
28189   ac_status=$?
28190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28191   (exit $ac_status); }; }; then
28192   ac_cv_search_opendir=$ac_res
28193 else
28194   echo "$as_me: failed program was:" >&5
28195 sed 's/^/| /' conftest.$ac_ext >&5
28196
28197
28198 fi
28199
28200 rm -f core conftest.err conftest.$ac_objext \
28201       conftest$ac_exeext
28202   if test "${ac_cv_search_opendir+set}" = set; then
28203   break
28204 fi
28205 done
28206 if test "${ac_cv_search_opendir+set}" = set; then
28207   :
28208 else
28209   ac_cv_search_opendir=no
28210 fi
28211 rm conftest.$ac_ext
28212 LIBS=$ac_func_search_save_LIBS
28213 fi
28214 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28215 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28216 ac_res=$ac_cv_search_opendir
28217 if test "$ac_res" != no; then
28218   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28219
28220 fi
28221
28222 fi
28223
28224 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28225 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
28226 if test "${ac_cv_header_mmap_anon+set}" = set; then
28227   echo $ECHO_N "(cached) $ECHO_C" >&6
28228 else
28229    ac_ext=c
28230 ac_cpp='$CPP $CPPFLAGS'
28231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28234
28235   cat >conftest.$ac_ext <<_ACEOF
28236 /* confdefs.h.  */
28237 _ACEOF
28238 cat confdefs.h >>conftest.$ac_ext
28239 cat >>conftest.$ac_ext <<_ACEOF
28240 /* end confdefs.h.  */
28241 #include <sys/mman.h>
28242 #include <unistd.h>
28243 #include <fcntl.h>
28244 int
28245 main ()
28246 {
28247 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28248   ;
28249   return 0;
28250 }
28251 _ACEOF
28252 rm -f conftest.$ac_objext
28253 if { (ac_try="$ac_compile"
28254 case "(($ac_try" in
28255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28256   *) ac_try_echo=$ac_try;;
28257 esac
28258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28259   (eval "$ac_compile") 2>conftest.er1
28260   ac_status=$?
28261   grep -v '^ *+' conftest.er1 >conftest.err
28262   rm -f conftest.er1
28263   cat conftest.err >&5
28264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28265   (exit $ac_status); } &&
28266          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28267   { (case "(($ac_try" in
28268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28269   *) ac_try_echo=$ac_try;;
28270 esac
28271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28272   (eval "$ac_try") 2>&5
28273   ac_status=$?
28274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28275   (exit $ac_status); }; } &&
28276          { ac_try='test -s conftest.$ac_objext'
28277   { (case "(($ac_try" in
28278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28279   *) ac_try_echo=$ac_try;;
28280 esac
28281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28282   (eval "$ac_try") 2>&5
28283   ac_status=$?
28284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28285   (exit $ac_status); }; }; then
28286   ac_cv_header_mmap_anon=yes
28287 else
28288   echo "$as_me: failed program was:" >&5
28289 sed 's/^/| /' conftest.$ac_ext >&5
28290
28291         ac_cv_header_mmap_anon=no
28292 fi
28293
28294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28295   ac_ext=c
28296 ac_cpp='$CPP $CPPFLAGS'
28297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28300
28301
28302 fi
28303 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28304 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
28305 if test "$ac_cv_header_mmap_anon" = yes; then
28306
28307 cat >>confdefs.h <<\_ACEOF
28308 #define HAVE_MMAP_ANONYMOUS 1
28309 _ACEOF
28310
28311 fi
28312
28313 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28314 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
28315 if test "${ac_cv_header_stat_broken+set}" = set; then
28316   echo $ECHO_N "(cached) $ECHO_C" >&6
28317 else
28318   cat >conftest.$ac_ext <<_ACEOF
28319 /* confdefs.h.  */
28320 _ACEOF
28321 cat confdefs.h >>conftest.$ac_ext
28322 cat >>conftest.$ac_ext <<_ACEOF
28323 /* end confdefs.h.  */
28324 #include <sys/types.h>
28325 #include <sys/stat.h>
28326
28327 #if defined S_ISBLK && defined S_IFDIR
28328 # if S_ISBLK (S_IFDIR)
28329 You lose.
28330 # endif
28331 #endif
28332
28333 #if defined S_ISBLK && defined S_IFCHR
28334 # if S_ISBLK (S_IFCHR)
28335 You lose.
28336 # endif
28337 #endif
28338
28339 #if defined S_ISLNK && defined S_IFREG
28340 # if S_ISLNK (S_IFREG)
28341 You lose.
28342 # endif
28343 #endif
28344
28345 #if defined S_ISSOCK && defined S_IFREG
28346 # if S_ISSOCK (S_IFREG)
28347 You lose.
28348 # endif
28349 #endif
28350
28351 _ACEOF
28352 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28353   $EGREP "You lose" >/dev/null 2>&1; then
28354   ac_cv_header_stat_broken=yes
28355 else
28356   ac_cv_header_stat_broken=no
28357 fi
28358 rm -f conftest*
28359
28360 fi
28361 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28362 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
28363 if test $ac_cv_header_stat_broken = yes; then
28364
28365 cat >>confdefs.h <<\_ACEOF
28366 #define STAT_MACROS_BROKEN 1
28367 _ACEOF
28368
28369 fi
28370
28371 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28372 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
28373 if test "${ac_cv_header_stdc+set}" = set; then
28374   echo $ECHO_N "(cached) $ECHO_C" >&6
28375 else
28376   cat >conftest.$ac_ext <<_ACEOF
28377 /* confdefs.h.  */
28378 _ACEOF
28379 cat confdefs.h >>conftest.$ac_ext
28380 cat >>conftest.$ac_ext <<_ACEOF
28381 /* end confdefs.h.  */
28382 #include <stdlib.h>
28383 #include <stdarg.h>
28384 #include <string.h>
28385 #include <float.h>
28386
28387 int
28388 main ()
28389 {
28390
28391   ;
28392   return 0;
28393 }
28394 _ACEOF
28395 rm -f conftest.$ac_objext
28396 if { (ac_try="$ac_compile"
28397 case "(($ac_try" in
28398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28399   *) ac_try_echo=$ac_try;;
28400 esac
28401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28402   (eval "$ac_compile") 2>conftest.er1
28403   ac_status=$?
28404   grep -v '^ *+' conftest.er1 >conftest.err
28405   rm -f conftest.er1
28406   cat conftest.err >&5
28407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28408   (exit $ac_status); } &&
28409          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28410   { (case "(($ac_try" in
28411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28412   *) ac_try_echo=$ac_try;;
28413 esac
28414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28415   (eval "$ac_try") 2>&5
28416   ac_status=$?
28417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28418   (exit $ac_status); }; } &&
28419          { ac_try='test -s conftest.$ac_objext'
28420   { (case "(($ac_try" in
28421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28422   *) ac_try_echo=$ac_try;;
28423 esac
28424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28425   (eval "$ac_try") 2>&5
28426   ac_status=$?
28427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28428   (exit $ac_status); }; }; then
28429   ac_cv_header_stdc=yes
28430 else
28431   echo "$as_me: failed program was:" >&5
28432 sed 's/^/| /' conftest.$ac_ext >&5
28433
28434         ac_cv_header_stdc=no
28435 fi
28436
28437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28438
28439 if test $ac_cv_header_stdc = yes; then
28440   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28441   cat >conftest.$ac_ext <<_ACEOF
28442 /* confdefs.h.  */
28443 _ACEOF
28444 cat confdefs.h >>conftest.$ac_ext
28445 cat >>conftest.$ac_ext <<_ACEOF
28446 /* end confdefs.h.  */
28447 #include <string.h>
28448
28449 _ACEOF
28450 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28451   $EGREP "memchr" >/dev/null 2>&1; then
28452   :
28453 else
28454   ac_cv_header_stdc=no
28455 fi
28456 rm -f conftest*
28457
28458 fi
28459
28460 if test $ac_cv_header_stdc = yes; then
28461   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28462   cat >conftest.$ac_ext <<_ACEOF
28463 /* confdefs.h.  */
28464 _ACEOF
28465 cat confdefs.h >>conftest.$ac_ext
28466 cat >>conftest.$ac_ext <<_ACEOF
28467 /* end confdefs.h.  */
28468 #include <stdlib.h>
28469
28470 _ACEOF
28471 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28472   $EGREP "free" >/dev/null 2>&1; then
28473   :
28474 else
28475   ac_cv_header_stdc=no
28476 fi
28477 rm -f conftest*
28478
28479 fi
28480
28481 if test $ac_cv_header_stdc = yes; then
28482   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28483   if test "$cross_compiling" = yes; then
28484   :
28485 else
28486   cat >conftest.$ac_ext <<_ACEOF
28487 /* confdefs.h.  */
28488 _ACEOF
28489 cat confdefs.h >>conftest.$ac_ext
28490 cat >>conftest.$ac_ext <<_ACEOF
28491 /* end confdefs.h.  */
28492 #include <ctype.h>
28493 #include <stdlib.h>
28494 #if ((' ' & 0x0FF) == 0x020)
28495 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28496 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28497 #else
28498 # define ISLOWER(c) \
28499                    (('a' <= (c) && (c) <= 'i') \
28500                      || ('j' <= (c) && (c) <= 'r') \
28501                      || ('s' <= (c) && (c) <= 'z'))
28502 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28503 #endif
28504
28505 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28506 int
28507 main ()
28508 {
28509   int i;
28510   for (i = 0; i < 256; i++)
28511     if (XOR (islower (i), ISLOWER (i))
28512         || toupper (i) != TOUPPER (i))
28513       return 2;
28514   return 0;
28515 }
28516 _ACEOF
28517 rm -f conftest$ac_exeext
28518 if { (ac_try="$ac_link"
28519 case "(($ac_try" in
28520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28521   *) ac_try_echo=$ac_try;;
28522 esac
28523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28524   (eval "$ac_link") 2>&5
28525   ac_status=$?
28526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28527   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28528   { (case "(($ac_try" in
28529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28530   *) ac_try_echo=$ac_try;;
28531 esac
28532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28533   (eval "$ac_try") 2>&5
28534   ac_status=$?
28535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28536   (exit $ac_status); }; }; then
28537   :
28538 else
28539   echo "$as_me: program exited with status $ac_status" >&5
28540 echo "$as_me: failed program was:" >&5
28541 sed 's/^/| /' conftest.$ac_ext >&5
28542
28543 ( exit $ac_status )
28544 ac_cv_header_stdc=no
28545 fi
28546 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28547 fi
28548
28549
28550 fi
28551 fi
28552 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28553 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
28554 if test $ac_cv_header_stdc = yes; then
28555
28556 cat >>confdefs.h <<\_ACEOF
28557 #define STDC_HEADERS 1
28558 _ACEOF
28559
28560 fi
28561
28562 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28563 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
28564 if test "${ac_cv_header_sys_wait_h+set}" = set; then
28565   echo $ECHO_N "(cached) $ECHO_C" >&6
28566 else
28567   cat >conftest.$ac_ext <<_ACEOF
28568 /* confdefs.h.  */
28569 _ACEOF
28570 cat confdefs.h >>conftest.$ac_ext
28571 cat >>conftest.$ac_ext <<_ACEOF
28572 /* end confdefs.h.  */
28573 #include <sys/types.h>
28574 #include <sys/wait.h>
28575 #ifndef WEXITSTATUS
28576 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
28577 #endif
28578 #ifndef WIFEXITED
28579 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28580 #endif
28581
28582 int
28583 main ()
28584 {
28585   int s;
28586   wait (&s);
28587   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28588   ;
28589   return 0;
28590 }
28591 _ACEOF
28592 rm -f conftest.$ac_objext
28593 if { (ac_try="$ac_compile"
28594 case "(($ac_try" in
28595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28596   *) ac_try_echo=$ac_try;;
28597 esac
28598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28599   (eval "$ac_compile") 2>conftest.er1
28600   ac_status=$?
28601   grep -v '^ *+' conftest.er1 >conftest.err
28602   rm -f conftest.er1
28603   cat conftest.err >&5
28604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28605   (exit $ac_status); } &&
28606          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28607   { (case "(($ac_try" in
28608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28609   *) ac_try_echo=$ac_try;;
28610 esac
28611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28612   (eval "$ac_try") 2>&5
28613   ac_status=$?
28614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28615   (exit $ac_status); }; } &&
28616          { ac_try='test -s conftest.$ac_objext'
28617   { (case "(($ac_try" in
28618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28619   *) ac_try_echo=$ac_try;;
28620 esac
28621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28622   (eval "$ac_try") 2>&5
28623   ac_status=$?
28624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28625   (exit $ac_status); }; }; then
28626   ac_cv_header_sys_wait_h=yes
28627 else
28628   echo "$as_me: failed program was:" >&5
28629 sed 's/^/| /' conftest.$ac_ext >&5
28630
28631         ac_cv_header_sys_wait_h=no
28632 fi
28633
28634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28635 fi
28636 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28637 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
28638 if test $ac_cv_header_sys_wait_h = yes; then
28639
28640 cat >>confdefs.h <<\_ACEOF
28641 #define HAVE_SYS_WAIT_H 1
28642 _ACEOF
28643
28644 fi
28645
28646 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28647 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
28648 if test "${ac_cv_header_time+set}" = set; then
28649   echo $ECHO_N "(cached) $ECHO_C" >&6
28650 else
28651   cat >conftest.$ac_ext <<_ACEOF
28652 /* confdefs.h.  */
28653 _ACEOF
28654 cat confdefs.h >>conftest.$ac_ext
28655 cat >>conftest.$ac_ext <<_ACEOF
28656 /* end confdefs.h.  */
28657 #include <sys/types.h>
28658 #include <sys/time.h>
28659 #include <time.h>
28660
28661 int
28662 main ()
28663 {
28664 if ((struct tm *) 0)
28665 return 0;
28666   ;
28667   return 0;
28668 }
28669 _ACEOF
28670 rm -f conftest.$ac_objext
28671 if { (ac_try="$ac_compile"
28672 case "(($ac_try" in
28673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28674   *) ac_try_echo=$ac_try;;
28675 esac
28676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28677   (eval "$ac_compile") 2>conftest.er1
28678   ac_status=$?
28679   grep -v '^ *+' conftest.er1 >conftest.err
28680   rm -f conftest.er1
28681   cat conftest.err >&5
28682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28683   (exit $ac_status); } &&
28684          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28685   { (case "(($ac_try" in
28686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28687   *) ac_try_echo=$ac_try;;
28688 esac
28689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28690   (eval "$ac_try") 2>&5
28691   ac_status=$?
28692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28693   (exit $ac_status); }; } &&
28694          { ac_try='test -s conftest.$ac_objext'
28695   { (case "(($ac_try" in
28696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28697   *) ac_try_echo=$ac_try;;
28698 esac
28699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28700   (eval "$ac_try") 2>&5
28701   ac_status=$?
28702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28703   (exit $ac_status); }; }; then
28704   ac_cv_header_time=yes
28705 else
28706   echo "$as_me: failed program was:" >&5
28707 sed 's/^/| /' conftest.$ac_ext >&5
28708
28709         ac_cv_header_time=no
28710 fi
28711
28712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28713 fi
28714 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28715 echo "${ECHO_T}$ac_cv_header_time" >&6; }
28716 if test $ac_cv_header_time = yes; then
28717
28718 cat >>confdefs.h <<\_ACEOF
28719 #define TIME_WITH_SYS_TIME 1
28720 _ACEOF
28721
28722 fi
28723
28724
28725
28726
28727
28728
28729
28730
28731 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28732 do
28733 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28734 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28735   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28736 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28737 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28738   echo $ECHO_N "(cached) $ECHO_C" >&6
28739 fi
28740 ac_res=`eval echo '${'$as_ac_Header'}'`
28741                { echo "$as_me:$LINENO: result: $ac_res" >&5
28742 echo "${ECHO_T}$ac_res" >&6; }
28743 else
28744   # Is the header compilable?
28745 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28746 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28747 cat >conftest.$ac_ext <<_ACEOF
28748 /* confdefs.h.  */
28749 _ACEOF
28750 cat confdefs.h >>conftest.$ac_ext
28751 cat >>conftest.$ac_ext <<_ACEOF
28752 /* end confdefs.h.  */
28753 $ac_includes_default
28754 #include <$ac_header>
28755 _ACEOF
28756 rm -f conftest.$ac_objext
28757 if { (ac_try="$ac_compile"
28758 case "(($ac_try" in
28759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28760   *) ac_try_echo=$ac_try;;
28761 esac
28762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28763   (eval "$ac_compile") 2>conftest.er1
28764   ac_status=$?
28765   grep -v '^ *+' conftest.er1 >conftest.err
28766   rm -f conftest.er1
28767   cat conftest.err >&5
28768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28769   (exit $ac_status); } &&
28770          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28771   { (case "(($ac_try" in
28772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28773   *) ac_try_echo=$ac_try;;
28774 esac
28775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28776   (eval "$ac_try") 2>&5
28777   ac_status=$?
28778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28779   (exit $ac_status); }; } &&
28780          { ac_try='test -s conftest.$ac_objext'
28781   { (case "(($ac_try" in
28782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28783   *) ac_try_echo=$ac_try;;
28784 esac
28785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28786   (eval "$ac_try") 2>&5
28787   ac_status=$?
28788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28789   (exit $ac_status); }; }; then
28790   ac_header_compiler=yes
28791 else
28792   echo "$as_me: failed program was:" >&5
28793 sed 's/^/| /' conftest.$ac_ext >&5
28794
28795         ac_header_compiler=no
28796 fi
28797
28798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28799 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28800 echo "${ECHO_T}$ac_header_compiler" >&6; }
28801
28802 # Is the header present?
28803 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28804 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28805 cat >conftest.$ac_ext <<_ACEOF
28806 /* confdefs.h.  */
28807 _ACEOF
28808 cat confdefs.h >>conftest.$ac_ext
28809 cat >>conftest.$ac_ext <<_ACEOF
28810 /* end confdefs.h.  */
28811 #include <$ac_header>
28812 _ACEOF
28813 if { (ac_try="$ac_cpp conftest.$ac_ext"
28814 case "(($ac_try" in
28815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28816   *) ac_try_echo=$ac_try;;
28817 esac
28818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28819   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28820   ac_status=$?
28821   grep -v '^ *+' conftest.er1 >conftest.err
28822   rm -f conftest.er1
28823   cat conftest.err >&5
28824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28825   (exit $ac_status); } >/dev/null; then
28826   if test -s conftest.err; then
28827     ac_cpp_err=$ac_c_preproc_warn_flag
28828     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28829   else
28830     ac_cpp_err=
28831   fi
28832 else
28833   ac_cpp_err=yes
28834 fi
28835 if test -z "$ac_cpp_err"; then
28836   ac_header_preproc=yes
28837 else
28838   echo "$as_me: failed program was:" >&5
28839 sed 's/^/| /' conftest.$ac_ext >&5
28840
28841   ac_header_preproc=no
28842 fi
28843
28844 rm -f conftest.err conftest.$ac_ext
28845 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28846 echo "${ECHO_T}$ac_header_preproc" >&6; }
28847
28848 # So?  What about this header?
28849 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28850   yes:no: )
28851     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28852 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28853     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28854 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28855     ac_header_preproc=yes
28856     ;;
28857   no:yes:* )
28858     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28859 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28860     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28861 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28862     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28863 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28864     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28865 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28866     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28867 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28868     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28869 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28870     ( cat <<\_ASBOX
28871 ## ----------------------------------- ##
28872 ## Report this to llvmbugs@cs.uiuc.edu ##
28873 ## ----------------------------------- ##
28874 _ASBOX
28875      ) | sed "s/^/$as_me: WARNING:     /" >&2
28876     ;;
28877 esac
28878 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28879 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28880 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28881   echo $ECHO_N "(cached) $ECHO_C" >&6
28882 else
28883   eval "$as_ac_Header=\$ac_header_preproc"
28884 fi
28885 ac_res=`eval echo '${'$as_ac_Header'}'`
28886                { echo "$as_me:$LINENO: result: $ac_res" >&5
28887 echo "${ECHO_T}$ac_res" >&6; }
28888
28889 fi
28890 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28891   cat >>confdefs.h <<_ACEOF
28892 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28893 _ACEOF
28894
28895 fi
28896
28897 done
28898
28899
28900
28901
28902
28903
28904
28905 for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
28906 do
28907 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28908 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28909   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28911 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28912   echo $ECHO_N "(cached) $ECHO_C" >&6
28913 fi
28914 ac_res=`eval echo '${'$as_ac_Header'}'`
28915                { echo "$as_me:$LINENO: result: $ac_res" >&5
28916 echo "${ECHO_T}$ac_res" >&6; }
28917 else
28918   # Is the header compilable?
28919 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28920 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28921 cat >conftest.$ac_ext <<_ACEOF
28922 /* confdefs.h.  */
28923 _ACEOF
28924 cat confdefs.h >>conftest.$ac_ext
28925 cat >>conftest.$ac_ext <<_ACEOF
28926 /* end confdefs.h.  */
28927 $ac_includes_default
28928 #include <$ac_header>
28929 _ACEOF
28930 rm -f conftest.$ac_objext
28931 if { (ac_try="$ac_compile"
28932 case "(($ac_try" in
28933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28934   *) ac_try_echo=$ac_try;;
28935 esac
28936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28937   (eval "$ac_compile") 2>conftest.er1
28938   ac_status=$?
28939   grep -v '^ *+' conftest.er1 >conftest.err
28940   rm -f conftest.er1
28941   cat conftest.err >&5
28942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28943   (exit $ac_status); } &&
28944          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28945   { (case "(($ac_try" in
28946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28947   *) ac_try_echo=$ac_try;;
28948 esac
28949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28950   (eval "$ac_try") 2>&5
28951   ac_status=$?
28952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28953   (exit $ac_status); }; } &&
28954          { ac_try='test -s conftest.$ac_objext'
28955   { (case "(($ac_try" in
28956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28957   *) ac_try_echo=$ac_try;;
28958 esac
28959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28960   (eval "$ac_try") 2>&5
28961   ac_status=$?
28962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28963   (exit $ac_status); }; }; then
28964   ac_header_compiler=yes
28965 else
28966   echo "$as_me: failed program was:" >&5
28967 sed 's/^/| /' conftest.$ac_ext >&5
28968
28969         ac_header_compiler=no
28970 fi
28971
28972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28973 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28974 echo "${ECHO_T}$ac_header_compiler" >&6; }
28975
28976 # Is the header present?
28977 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28978 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28979 cat >conftest.$ac_ext <<_ACEOF
28980 /* confdefs.h.  */
28981 _ACEOF
28982 cat confdefs.h >>conftest.$ac_ext
28983 cat >>conftest.$ac_ext <<_ACEOF
28984 /* end confdefs.h.  */
28985 #include <$ac_header>
28986 _ACEOF
28987 if { (ac_try="$ac_cpp conftest.$ac_ext"
28988 case "(($ac_try" in
28989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28990   *) ac_try_echo=$ac_try;;
28991 esac
28992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28993   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28994   ac_status=$?
28995   grep -v '^ *+' conftest.er1 >conftest.err
28996   rm -f conftest.er1
28997   cat conftest.err >&5
28998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28999   (exit $ac_status); } >/dev/null; then
29000   if test -s conftest.err; then
29001     ac_cpp_err=$ac_c_preproc_warn_flag
29002     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29003   else
29004     ac_cpp_err=
29005   fi
29006 else
29007   ac_cpp_err=yes
29008 fi
29009 if test -z "$ac_cpp_err"; then
29010   ac_header_preproc=yes
29011 else
29012   echo "$as_me: failed program was:" >&5
29013 sed 's/^/| /' conftest.$ac_ext >&5
29014
29015   ac_header_preproc=no
29016 fi
29017
29018 rm -f conftest.err conftest.$ac_ext
29019 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29020 echo "${ECHO_T}$ac_header_preproc" >&6; }
29021
29022 # So?  What about this header?
29023 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29024   yes:no: )
29025     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29026 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29027     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29028 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29029     ac_header_preproc=yes
29030     ;;
29031   no:yes:* )
29032     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29033 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29034     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29035 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29036     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29037 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29038     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29039 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29040     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29041 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29042     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29043 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29044     ( cat <<\_ASBOX
29045 ## ----------------------------------- ##
29046 ## Report this to llvmbugs@cs.uiuc.edu ##
29047 ## ----------------------------------- ##
29048 _ASBOX
29049      ) | sed "s/^/$as_me: WARNING:     /" >&2
29050     ;;
29051 esac
29052 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29053 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29054 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29055   echo $ECHO_N "(cached) $ECHO_C" >&6
29056 else
29057   eval "$as_ac_Header=\$ac_header_preproc"
29058 fi
29059 ac_res=`eval echo '${'$as_ac_Header'}'`
29060                { echo "$as_me:$LINENO: result: $ac_res" >&5
29061 echo "${ECHO_T}$ac_res" >&6; }
29062
29063 fi
29064 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29065   cat >>confdefs.h <<_ACEOF
29066 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29067 _ACEOF
29068
29069 fi
29070
29071 done
29072
29073
29074 for ac_header in windows.h
29075 do
29076 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29077 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29078   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29079 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29080 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29081   echo $ECHO_N "(cached) $ECHO_C" >&6
29082 fi
29083 ac_res=`eval echo '${'$as_ac_Header'}'`
29084                { echo "$as_me:$LINENO: result: $ac_res" >&5
29085 echo "${ECHO_T}$ac_res" >&6; }
29086 else
29087   # Is the header compilable?
29088 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29089 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29090 cat >conftest.$ac_ext <<_ACEOF
29091 /* confdefs.h.  */
29092 _ACEOF
29093 cat confdefs.h >>conftest.$ac_ext
29094 cat >>conftest.$ac_ext <<_ACEOF
29095 /* end confdefs.h.  */
29096 $ac_includes_default
29097 #include <$ac_header>
29098 _ACEOF
29099 rm -f conftest.$ac_objext
29100 if { (ac_try="$ac_compile"
29101 case "(($ac_try" in
29102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29103   *) ac_try_echo=$ac_try;;
29104 esac
29105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29106   (eval "$ac_compile") 2>conftest.er1
29107   ac_status=$?
29108   grep -v '^ *+' conftest.er1 >conftest.err
29109   rm -f conftest.er1
29110   cat conftest.err >&5
29111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29112   (exit $ac_status); } &&
29113          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29114   { (case "(($ac_try" in
29115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29116   *) ac_try_echo=$ac_try;;
29117 esac
29118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29119   (eval "$ac_try") 2>&5
29120   ac_status=$?
29121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29122   (exit $ac_status); }; } &&
29123          { ac_try='test -s conftest.$ac_objext'
29124   { (case "(($ac_try" in
29125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29126   *) ac_try_echo=$ac_try;;
29127 esac
29128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29129   (eval "$ac_try") 2>&5
29130   ac_status=$?
29131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29132   (exit $ac_status); }; }; then
29133   ac_header_compiler=yes
29134 else
29135   echo "$as_me: failed program was:" >&5
29136 sed 's/^/| /' conftest.$ac_ext >&5
29137
29138         ac_header_compiler=no
29139 fi
29140
29141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29142 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29143 echo "${ECHO_T}$ac_header_compiler" >&6; }
29144
29145 # Is the header present?
29146 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29147 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29148 cat >conftest.$ac_ext <<_ACEOF
29149 /* confdefs.h.  */
29150 _ACEOF
29151 cat confdefs.h >>conftest.$ac_ext
29152 cat >>conftest.$ac_ext <<_ACEOF
29153 /* end confdefs.h.  */
29154 #include <$ac_header>
29155 _ACEOF
29156 if { (ac_try="$ac_cpp conftest.$ac_ext"
29157 case "(($ac_try" in
29158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29159   *) ac_try_echo=$ac_try;;
29160 esac
29161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29162   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29163   ac_status=$?
29164   grep -v '^ *+' conftest.er1 >conftest.err
29165   rm -f conftest.er1
29166   cat conftest.err >&5
29167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29168   (exit $ac_status); } >/dev/null; then
29169   if test -s conftest.err; then
29170     ac_cpp_err=$ac_c_preproc_warn_flag
29171     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29172   else
29173     ac_cpp_err=
29174   fi
29175 else
29176   ac_cpp_err=yes
29177 fi
29178 if test -z "$ac_cpp_err"; then
29179   ac_header_preproc=yes
29180 else
29181   echo "$as_me: failed program was:" >&5
29182 sed 's/^/| /' conftest.$ac_ext >&5
29183
29184   ac_header_preproc=no
29185 fi
29186
29187 rm -f conftest.err conftest.$ac_ext
29188 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29189 echo "${ECHO_T}$ac_header_preproc" >&6; }
29190
29191 # So?  What about this header?
29192 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29193   yes:no: )
29194     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29195 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29196     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29197 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29198     ac_header_preproc=yes
29199     ;;
29200   no:yes:* )
29201     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29202 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29203     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29204 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29205     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29206 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29207     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29208 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29209     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29210 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29211     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29212 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29213     ( cat <<\_ASBOX
29214 ## ----------------------------------- ##
29215 ## Report this to llvmbugs@cs.uiuc.edu ##
29216 ## ----------------------------------- ##
29217 _ASBOX
29218      ) | sed "s/^/$as_me: WARNING:     /" >&2
29219     ;;
29220 esac
29221 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29223 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29224   echo $ECHO_N "(cached) $ECHO_C" >&6
29225 else
29226   eval "$as_ac_Header=\$ac_header_preproc"
29227 fi
29228 ac_res=`eval echo '${'$as_ac_Header'}'`
29229                { echo "$as_me:$LINENO: result: $ac_res" >&5
29230 echo "${ECHO_T}$ac_res" >&6; }
29231
29232 fi
29233 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29234   cat >>confdefs.h <<_ACEOF
29235 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29236 _ACEOF
29237
29238 fi
29239
29240 done
29241
29242
29243
29244
29245
29246 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
29247 do
29248 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29249 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29250   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29251 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29252 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29253   echo $ECHO_N "(cached) $ECHO_C" >&6
29254 fi
29255 ac_res=`eval echo '${'$as_ac_Header'}'`
29256                { echo "$as_me:$LINENO: result: $ac_res" >&5
29257 echo "${ECHO_T}$ac_res" >&6; }
29258 else
29259   # Is the header compilable?
29260 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29261 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29262 cat >conftest.$ac_ext <<_ACEOF
29263 /* confdefs.h.  */
29264 _ACEOF
29265 cat confdefs.h >>conftest.$ac_ext
29266 cat >>conftest.$ac_ext <<_ACEOF
29267 /* end confdefs.h.  */
29268 $ac_includes_default
29269 #include <$ac_header>
29270 _ACEOF
29271 rm -f conftest.$ac_objext
29272 if { (ac_try="$ac_compile"
29273 case "(($ac_try" in
29274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29275   *) ac_try_echo=$ac_try;;
29276 esac
29277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29278   (eval "$ac_compile") 2>conftest.er1
29279   ac_status=$?
29280   grep -v '^ *+' conftest.er1 >conftest.err
29281   rm -f conftest.er1
29282   cat conftest.err >&5
29283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29284   (exit $ac_status); } &&
29285          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29286   { (case "(($ac_try" in
29287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29288   *) ac_try_echo=$ac_try;;
29289 esac
29290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29291   (eval "$ac_try") 2>&5
29292   ac_status=$?
29293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29294   (exit $ac_status); }; } &&
29295          { ac_try='test -s conftest.$ac_objext'
29296   { (case "(($ac_try" in
29297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29298   *) ac_try_echo=$ac_try;;
29299 esac
29300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29301   (eval "$ac_try") 2>&5
29302   ac_status=$?
29303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29304   (exit $ac_status); }; }; then
29305   ac_header_compiler=yes
29306 else
29307   echo "$as_me: failed program was:" >&5
29308 sed 's/^/| /' conftest.$ac_ext >&5
29309
29310         ac_header_compiler=no
29311 fi
29312
29313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29314 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29315 echo "${ECHO_T}$ac_header_compiler" >&6; }
29316
29317 # Is the header present?
29318 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29319 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29320 cat >conftest.$ac_ext <<_ACEOF
29321 /* confdefs.h.  */
29322 _ACEOF
29323 cat confdefs.h >>conftest.$ac_ext
29324 cat >>conftest.$ac_ext <<_ACEOF
29325 /* end confdefs.h.  */
29326 #include <$ac_header>
29327 _ACEOF
29328 if { (ac_try="$ac_cpp conftest.$ac_ext"
29329 case "(($ac_try" in
29330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29331   *) ac_try_echo=$ac_try;;
29332 esac
29333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29334   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29335   ac_status=$?
29336   grep -v '^ *+' conftest.er1 >conftest.err
29337   rm -f conftest.er1
29338   cat conftest.err >&5
29339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29340   (exit $ac_status); } >/dev/null; then
29341   if test -s conftest.err; then
29342     ac_cpp_err=$ac_c_preproc_warn_flag
29343     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29344   else
29345     ac_cpp_err=
29346   fi
29347 else
29348   ac_cpp_err=yes
29349 fi
29350 if test -z "$ac_cpp_err"; then
29351   ac_header_preproc=yes
29352 else
29353   echo "$as_me: failed program was:" >&5
29354 sed 's/^/| /' conftest.$ac_ext >&5
29355
29356   ac_header_preproc=no
29357 fi
29358
29359 rm -f conftest.err conftest.$ac_ext
29360 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29361 echo "${ECHO_T}$ac_header_preproc" >&6; }
29362
29363 # So?  What about this header?
29364 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29365   yes:no: )
29366     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29367 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29368     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29369 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29370     ac_header_preproc=yes
29371     ;;
29372   no:yes:* )
29373     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29374 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29375     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29376 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29377     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29378 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29379     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29380 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29381     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29382 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29383     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29384 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29385     ( cat <<\_ASBOX
29386 ## ----------------------------------- ##
29387 ## Report this to llvmbugs@cs.uiuc.edu ##
29388 ## ----------------------------------- ##
29389 _ASBOX
29390      ) | sed "s/^/$as_me: WARNING:     /" >&2
29391     ;;
29392 esac
29393 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29394 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29395 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29396   echo $ECHO_N "(cached) $ECHO_C" >&6
29397 else
29398   eval "$as_ac_Header=\$ac_header_preproc"
29399 fi
29400 ac_res=`eval echo '${'$as_ac_Header'}'`
29401                { echo "$as_me:$LINENO: result: $ac_res" >&5
29402 echo "${ECHO_T}$ac_res" >&6; }
29403
29404 fi
29405 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29406   cat >>confdefs.h <<_ACEOF
29407 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29408 _ACEOF
29409
29410 fi
29411
29412 done
29413
29414
29415
29416
29417 for ac_header in sys/types.h malloc/malloc.h mach/mach.h
29418 do
29419 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29420 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29421   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29422 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29423 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29424   echo $ECHO_N "(cached) $ECHO_C" >&6
29425 fi
29426 ac_res=`eval echo '${'$as_ac_Header'}'`
29427                { echo "$as_me:$LINENO: result: $ac_res" >&5
29428 echo "${ECHO_T}$ac_res" >&6; }
29429 else
29430   # Is the header compilable?
29431 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29432 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29433 cat >conftest.$ac_ext <<_ACEOF
29434 /* confdefs.h.  */
29435 _ACEOF
29436 cat confdefs.h >>conftest.$ac_ext
29437 cat >>conftest.$ac_ext <<_ACEOF
29438 /* end confdefs.h.  */
29439 $ac_includes_default
29440 #include <$ac_header>
29441 _ACEOF
29442 rm -f conftest.$ac_objext
29443 if { (ac_try="$ac_compile"
29444 case "(($ac_try" in
29445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29446   *) ac_try_echo=$ac_try;;
29447 esac
29448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29449   (eval "$ac_compile") 2>conftest.er1
29450   ac_status=$?
29451   grep -v '^ *+' conftest.er1 >conftest.err
29452   rm -f conftest.er1
29453   cat conftest.err >&5
29454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29455   (exit $ac_status); } &&
29456          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29457   { (case "(($ac_try" in
29458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29459   *) ac_try_echo=$ac_try;;
29460 esac
29461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29462   (eval "$ac_try") 2>&5
29463   ac_status=$?
29464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29465   (exit $ac_status); }; } &&
29466          { ac_try='test -s conftest.$ac_objext'
29467   { (case "(($ac_try" in
29468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29469   *) ac_try_echo=$ac_try;;
29470 esac
29471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29472   (eval "$ac_try") 2>&5
29473   ac_status=$?
29474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29475   (exit $ac_status); }; }; then
29476   ac_header_compiler=yes
29477 else
29478   echo "$as_me: failed program was:" >&5
29479 sed 's/^/| /' conftest.$ac_ext >&5
29480
29481         ac_header_compiler=no
29482 fi
29483
29484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29485 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29486 echo "${ECHO_T}$ac_header_compiler" >&6; }
29487
29488 # Is the header present?
29489 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29490 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29491 cat >conftest.$ac_ext <<_ACEOF
29492 /* confdefs.h.  */
29493 _ACEOF
29494 cat confdefs.h >>conftest.$ac_ext
29495 cat >>conftest.$ac_ext <<_ACEOF
29496 /* end confdefs.h.  */
29497 #include <$ac_header>
29498 _ACEOF
29499 if { (ac_try="$ac_cpp conftest.$ac_ext"
29500 case "(($ac_try" in
29501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29502   *) ac_try_echo=$ac_try;;
29503 esac
29504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29505   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29506   ac_status=$?
29507   grep -v '^ *+' conftest.er1 >conftest.err
29508   rm -f conftest.er1
29509   cat conftest.err >&5
29510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29511   (exit $ac_status); } >/dev/null; then
29512   if test -s conftest.err; then
29513     ac_cpp_err=$ac_c_preproc_warn_flag
29514     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29515   else
29516     ac_cpp_err=
29517   fi
29518 else
29519   ac_cpp_err=yes
29520 fi
29521 if test -z "$ac_cpp_err"; then
29522   ac_header_preproc=yes
29523 else
29524   echo "$as_me: failed program was:" >&5
29525 sed 's/^/| /' conftest.$ac_ext >&5
29526
29527   ac_header_preproc=no
29528 fi
29529
29530 rm -f conftest.err conftest.$ac_ext
29531 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29532 echo "${ECHO_T}$ac_header_preproc" >&6; }
29533
29534 # So?  What about this header?
29535 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29536   yes:no: )
29537     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29538 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29539     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29540 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29541     ac_header_preproc=yes
29542     ;;
29543   no:yes:* )
29544     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29545 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29546     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29547 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29548     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29549 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29550     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29551 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29552     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29553 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29554     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29555 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29556     ( cat <<\_ASBOX
29557 ## ----------------------------------- ##
29558 ## Report this to llvmbugs@cs.uiuc.edu ##
29559 ## ----------------------------------- ##
29560 _ASBOX
29561      ) | sed "s/^/$as_me: WARNING:     /" >&2
29562     ;;
29563 esac
29564 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29565 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29566 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29567   echo $ECHO_N "(cached) $ECHO_C" >&6
29568 else
29569   eval "$as_ac_Header=\$ac_header_preproc"
29570 fi
29571 ac_res=`eval echo '${'$as_ac_Header'}'`
29572                { echo "$as_me:$LINENO: result: $ac_res" >&5
29573 echo "${ECHO_T}$ac_res" >&6; }
29574
29575 fi
29576 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29577   cat >>confdefs.h <<_ACEOF
29578 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29579 _ACEOF
29580
29581 fi
29582
29583 done
29584
29585 if test "$ENABLE_THREADS" -eq 1 ; then
29586
29587 for ac_header in pthread.h
29588 do
29589 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29590 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29591   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29592 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29593 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29594   echo $ECHO_N "(cached) $ECHO_C" >&6
29595 fi
29596 ac_res=`eval echo '${'$as_ac_Header'}'`
29597                { echo "$as_me:$LINENO: result: $ac_res" >&5
29598 echo "${ECHO_T}$ac_res" >&6; }
29599 else
29600   # Is the header compilable?
29601 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29602 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29603 cat >conftest.$ac_ext <<_ACEOF
29604 /* confdefs.h.  */
29605 _ACEOF
29606 cat confdefs.h >>conftest.$ac_ext
29607 cat >>conftest.$ac_ext <<_ACEOF
29608 /* end confdefs.h.  */
29609 $ac_includes_default
29610 #include <$ac_header>
29611 _ACEOF
29612 rm -f conftest.$ac_objext
29613 if { (ac_try="$ac_compile"
29614 case "(($ac_try" in
29615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29616   *) ac_try_echo=$ac_try;;
29617 esac
29618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29619   (eval "$ac_compile") 2>conftest.er1
29620   ac_status=$?
29621   grep -v '^ *+' conftest.er1 >conftest.err
29622   rm -f conftest.er1
29623   cat conftest.err >&5
29624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29625   (exit $ac_status); } &&
29626          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29627   { (case "(($ac_try" in
29628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29629   *) ac_try_echo=$ac_try;;
29630 esac
29631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29632   (eval "$ac_try") 2>&5
29633   ac_status=$?
29634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29635   (exit $ac_status); }; } &&
29636          { ac_try='test -s conftest.$ac_objext'
29637   { (case "(($ac_try" in
29638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29639   *) ac_try_echo=$ac_try;;
29640 esac
29641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29642   (eval "$ac_try") 2>&5
29643   ac_status=$?
29644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29645   (exit $ac_status); }; }; then
29646   ac_header_compiler=yes
29647 else
29648   echo "$as_me: failed program was:" >&5
29649 sed 's/^/| /' conftest.$ac_ext >&5
29650
29651         ac_header_compiler=no
29652 fi
29653
29654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29655 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29656 echo "${ECHO_T}$ac_header_compiler" >&6; }
29657
29658 # Is the header present?
29659 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29660 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29661 cat >conftest.$ac_ext <<_ACEOF
29662 /* confdefs.h.  */
29663 _ACEOF
29664 cat confdefs.h >>conftest.$ac_ext
29665 cat >>conftest.$ac_ext <<_ACEOF
29666 /* end confdefs.h.  */
29667 #include <$ac_header>
29668 _ACEOF
29669 if { (ac_try="$ac_cpp conftest.$ac_ext"
29670 case "(($ac_try" in
29671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29672   *) ac_try_echo=$ac_try;;
29673 esac
29674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29675   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29676   ac_status=$?
29677   grep -v '^ *+' conftest.er1 >conftest.err
29678   rm -f conftest.er1
29679   cat conftest.err >&5
29680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29681   (exit $ac_status); } >/dev/null; then
29682   if test -s conftest.err; then
29683     ac_cpp_err=$ac_c_preproc_warn_flag
29684     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29685   else
29686     ac_cpp_err=
29687   fi
29688 else
29689   ac_cpp_err=yes
29690 fi
29691 if test -z "$ac_cpp_err"; then
29692   ac_header_preproc=yes
29693 else
29694   echo "$as_me: failed program was:" >&5
29695 sed 's/^/| /' conftest.$ac_ext >&5
29696
29697   ac_header_preproc=no
29698 fi
29699
29700 rm -f conftest.err conftest.$ac_ext
29701 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29702 echo "${ECHO_T}$ac_header_preproc" >&6; }
29703
29704 # So?  What about this header?
29705 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29706   yes:no: )
29707     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29708 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29709     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29710 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29711     ac_header_preproc=yes
29712     ;;
29713   no:yes:* )
29714     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29715 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29716     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29717 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29718     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29719 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29720     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29721 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29722     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29723 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29724     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29725 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29726     ( cat <<\_ASBOX
29727 ## ----------------------------------- ##
29728 ## Report this to llvmbugs@cs.uiuc.edu ##
29729 ## ----------------------------------- ##
29730 _ASBOX
29731      ) | sed "s/^/$as_me: WARNING:     /" >&2
29732     ;;
29733 esac
29734 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29735 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29736 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29737   echo $ECHO_N "(cached) $ECHO_C" >&6
29738 else
29739   eval "$as_ac_Header=\$ac_header_preproc"
29740 fi
29741 ac_res=`eval echo '${'$as_ac_Header'}'`
29742                { echo "$as_me:$LINENO: result: $ac_res" >&5
29743 echo "${ECHO_T}$ac_res" >&6; }
29744
29745 fi
29746 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29747   cat >>confdefs.h <<_ACEOF
29748 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29749 _ACEOF
29750  HAVE_PTHREAD=1
29751
29752 else
29753   HAVE_PTHREAD=0
29754
29755 fi
29756
29757 done
29758
29759 else
29760   HAVE_PTHREAD=0
29761
29762 fi
29763
29764
29765
29766   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29767 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29768 if test "${ac_cv_huge_val_sanity+set}" = set; then
29769   echo $ECHO_N "(cached) $ECHO_C" >&6
29770 else
29771
29772     ac_ext=cpp
29773 ac_cpp='$CXXCPP $CPPFLAGS'
29774 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29775 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29776 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29777
29778     CXXFLAGS=-pedantic
29779     if test "$cross_compiling" = yes; then
29780   ac_cv_huge_val_sanity=yes
29781 else
29782   cat >conftest.$ac_ext <<_ACEOF
29783 /* confdefs.h.  */
29784 _ACEOF
29785 cat confdefs.h >>conftest.$ac_ext
29786 cat >>conftest.$ac_ext <<_ACEOF
29787 /* end confdefs.h.  */
29788 #include <math.h>
29789 int
29790 main ()
29791 {
29792 double x = HUGE_VAL; return x != x;
29793   ;
29794   return 0;
29795 }
29796 _ACEOF
29797 rm -f conftest$ac_exeext
29798 if { (ac_try="$ac_link"
29799 case "(($ac_try" in
29800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29801   *) ac_try_echo=$ac_try;;
29802 esac
29803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29804   (eval "$ac_link") 2>&5
29805   ac_status=$?
29806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29807   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29808   { (case "(($ac_try" in
29809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29810   *) ac_try_echo=$ac_try;;
29811 esac
29812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29813   (eval "$ac_try") 2>&5
29814   ac_status=$?
29815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29816   (exit $ac_status); }; }; then
29817   ac_cv_huge_val_sanity=yes
29818 else
29819   echo "$as_me: program exited with status $ac_status" >&5
29820 echo "$as_me: failed program was:" >&5
29821 sed 's/^/| /' conftest.$ac_ext >&5
29822
29823 ( exit $ac_status )
29824 ac_cv_huge_val_sanity=no
29825 fi
29826 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29827 fi
29828
29829
29830     ac_ext=c
29831 ac_cpp='$CPP $CPPFLAGS'
29832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29835
29836
29837 fi
29838 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
29839 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
29840   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
29841
29842
29843 { echo "$as_me:$LINENO: checking for pid_t" >&5
29844 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
29845 if test "${ac_cv_type_pid_t+set}" = set; then
29846   echo $ECHO_N "(cached) $ECHO_C" >&6
29847 else
29848   cat >conftest.$ac_ext <<_ACEOF
29849 /* confdefs.h.  */
29850 _ACEOF
29851 cat confdefs.h >>conftest.$ac_ext
29852 cat >>conftest.$ac_ext <<_ACEOF
29853 /* end confdefs.h.  */
29854 $ac_includes_default
29855 typedef pid_t ac__type_new_;
29856 int
29857 main ()
29858 {
29859 if ((ac__type_new_ *) 0)
29860   return 0;
29861 if (sizeof (ac__type_new_))
29862   return 0;
29863   ;
29864   return 0;
29865 }
29866 _ACEOF
29867 rm -f conftest.$ac_objext
29868 if { (ac_try="$ac_compile"
29869 case "(($ac_try" in
29870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29871   *) ac_try_echo=$ac_try;;
29872 esac
29873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29874   (eval "$ac_compile") 2>conftest.er1
29875   ac_status=$?
29876   grep -v '^ *+' conftest.er1 >conftest.err
29877   rm -f conftest.er1
29878   cat conftest.err >&5
29879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29880   (exit $ac_status); } &&
29881          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29882   { (case "(($ac_try" in
29883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29884   *) ac_try_echo=$ac_try;;
29885 esac
29886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29887   (eval "$ac_try") 2>&5
29888   ac_status=$?
29889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29890   (exit $ac_status); }; } &&
29891          { ac_try='test -s conftest.$ac_objext'
29892   { (case "(($ac_try" in
29893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29894   *) ac_try_echo=$ac_try;;
29895 esac
29896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29897   (eval "$ac_try") 2>&5
29898   ac_status=$?
29899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29900   (exit $ac_status); }; }; then
29901   ac_cv_type_pid_t=yes
29902 else
29903   echo "$as_me: failed program was:" >&5
29904 sed 's/^/| /' conftest.$ac_ext >&5
29905
29906         ac_cv_type_pid_t=no
29907 fi
29908
29909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29910 fi
29911 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29912 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
29913 if test $ac_cv_type_pid_t = yes; then
29914   :
29915 else
29916
29917 cat >>confdefs.h <<_ACEOF
29918 #define pid_t int
29919 _ACEOF
29920
29921 fi
29922
29923 { echo "$as_me:$LINENO: checking for size_t" >&5
29924 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
29925 if test "${ac_cv_type_size_t+set}" = set; then
29926   echo $ECHO_N "(cached) $ECHO_C" >&6
29927 else
29928   cat >conftest.$ac_ext <<_ACEOF
29929 /* confdefs.h.  */
29930 _ACEOF
29931 cat confdefs.h >>conftest.$ac_ext
29932 cat >>conftest.$ac_ext <<_ACEOF
29933 /* end confdefs.h.  */
29934 $ac_includes_default
29935 typedef size_t ac__type_new_;
29936 int
29937 main ()
29938 {
29939 if ((ac__type_new_ *) 0)
29940   return 0;
29941 if (sizeof (ac__type_new_))
29942   return 0;
29943   ;
29944   return 0;
29945 }
29946 _ACEOF
29947 rm -f conftest.$ac_objext
29948 if { (ac_try="$ac_compile"
29949 case "(($ac_try" in
29950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29951   *) ac_try_echo=$ac_try;;
29952 esac
29953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29954   (eval "$ac_compile") 2>conftest.er1
29955   ac_status=$?
29956   grep -v '^ *+' conftest.er1 >conftest.err
29957   rm -f conftest.er1
29958   cat conftest.err >&5
29959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29960   (exit $ac_status); } &&
29961          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29962   { (case "(($ac_try" in
29963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29964   *) ac_try_echo=$ac_try;;
29965 esac
29966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29967   (eval "$ac_try") 2>&5
29968   ac_status=$?
29969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29970   (exit $ac_status); }; } &&
29971          { ac_try='test -s conftest.$ac_objext'
29972   { (case "(($ac_try" in
29973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29974   *) ac_try_echo=$ac_try;;
29975 esac
29976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29977   (eval "$ac_try") 2>&5
29978   ac_status=$?
29979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29980   (exit $ac_status); }; }; then
29981   ac_cv_type_size_t=yes
29982 else
29983   echo "$as_me: failed program was:" >&5
29984 sed 's/^/| /' conftest.$ac_ext >&5
29985
29986         ac_cv_type_size_t=no
29987 fi
29988
29989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29990 fi
29991 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29992 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
29993 if test $ac_cv_type_size_t = yes; then
29994   :
29995 else
29996
29997 cat >>confdefs.h <<_ACEOF
29998 #define size_t unsigned int
29999 _ACEOF
30000
30001 fi
30002
30003 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
30004 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
30005 if test "${ac_cv_type_signal+set}" = set; then
30006   echo $ECHO_N "(cached) $ECHO_C" >&6
30007 else
30008   cat >conftest.$ac_ext <<_ACEOF
30009 /* confdefs.h.  */
30010 _ACEOF
30011 cat confdefs.h >>conftest.$ac_ext
30012 cat >>conftest.$ac_ext <<_ACEOF
30013 /* end confdefs.h.  */
30014 #include <sys/types.h>
30015 #include <signal.h>
30016
30017 int
30018 main ()
30019 {
30020 return *(signal (0, 0)) (0) == 1;
30021   ;
30022   return 0;
30023 }
30024 _ACEOF
30025 rm -f conftest.$ac_objext
30026 if { (ac_try="$ac_compile"
30027 case "(($ac_try" in
30028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30029   *) ac_try_echo=$ac_try;;
30030 esac
30031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30032   (eval "$ac_compile") 2>conftest.er1
30033   ac_status=$?
30034   grep -v '^ *+' conftest.er1 >conftest.err
30035   rm -f conftest.er1
30036   cat conftest.err >&5
30037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30038   (exit $ac_status); } &&
30039          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30040   { (case "(($ac_try" in
30041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30042   *) ac_try_echo=$ac_try;;
30043 esac
30044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30045   (eval "$ac_try") 2>&5
30046   ac_status=$?
30047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30048   (exit $ac_status); }; } &&
30049          { ac_try='test -s conftest.$ac_objext'
30050   { (case "(($ac_try" in
30051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30052   *) ac_try_echo=$ac_try;;
30053 esac
30054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30055   (eval "$ac_try") 2>&5
30056   ac_status=$?
30057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30058   (exit $ac_status); }; }; then
30059   ac_cv_type_signal=int
30060 else
30061   echo "$as_me: failed program was:" >&5
30062 sed 's/^/| /' conftest.$ac_ext >&5
30063
30064         ac_cv_type_signal=void
30065 fi
30066
30067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30068 fi
30069 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30070 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
30071
30072 cat >>confdefs.h <<_ACEOF
30073 #define RETSIGTYPE $ac_cv_type_signal
30074 _ACEOF
30075
30076
30077 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30078 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
30079 if test "${ac_cv_struct_tm+set}" = set; then
30080   echo $ECHO_N "(cached) $ECHO_C" >&6
30081 else
30082   cat >conftest.$ac_ext <<_ACEOF
30083 /* confdefs.h.  */
30084 _ACEOF
30085 cat confdefs.h >>conftest.$ac_ext
30086 cat >>conftest.$ac_ext <<_ACEOF
30087 /* end confdefs.h.  */
30088 #include <sys/types.h>
30089 #include <time.h>
30090
30091 int
30092 main ()
30093 {
30094 struct tm *tp; tp->tm_sec;
30095   ;
30096   return 0;
30097 }
30098 _ACEOF
30099 rm -f conftest.$ac_objext
30100 if { (ac_try="$ac_compile"
30101 case "(($ac_try" in
30102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30103   *) ac_try_echo=$ac_try;;
30104 esac
30105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30106   (eval "$ac_compile") 2>conftest.er1
30107   ac_status=$?
30108   grep -v '^ *+' conftest.er1 >conftest.err
30109   rm -f conftest.er1
30110   cat conftest.err >&5
30111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30112   (exit $ac_status); } &&
30113          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30114   { (case "(($ac_try" in
30115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30116   *) ac_try_echo=$ac_try;;
30117 esac
30118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30119   (eval "$ac_try") 2>&5
30120   ac_status=$?
30121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30122   (exit $ac_status); }; } &&
30123          { ac_try='test -s conftest.$ac_objext'
30124   { (case "(($ac_try" in
30125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30126   *) ac_try_echo=$ac_try;;
30127 esac
30128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30129   (eval "$ac_try") 2>&5
30130   ac_status=$?
30131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30132   (exit $ac_status); }; }; then
30133   ac_cv_struct_tm=time.h
30134 else
30135   echo "$as_me: failed program was:" >&5
30136 sed 's/^/| /' conftest.$ac_ext >&5
30137
30138         ac_cv_struct_tm=sys/time.h
30139 fi
30140
30141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30142 fi
30143 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30144 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
30145 if test $ac_cv_struct_tm = sys/time.h; then
30146
30147 cat >>confdefs.h <<\_ACEOF
30148 #define TM_IN_SYS_TIME 1
30149 _ACEOF
30150
30151 fi
30152
30153 { echo "$as_me:$LINENO: checking for int64_t" >&5
30154 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
30155 if test "${ac_cv_type_int64_t+set}" = set; then
30156   echo $ECHO_N "(cached) $ECHO_C" >&6
30157 else
30158   cat >conftest.$ac_ext <<_ACEOF
30159 /* confdefs.h.  */
30160 _ACEOF
30161 cat confdefs.h >>conftest.$ac_ext
30162 cat >>conftest.$ac_ext <<_ACEOF
30163 /* end confdefs.h.  */
30164 $ac_includes_default
30165 typedef int64_t ac__type_new_;
30166 int
30167 main ()
30168 {
30169 if ((ac__type_new_ *) 0)
30170   return 0;
30171 if (sizeof (ac__type_new_))
30172   return 0;
30173   ;
30174   return 0;
30175 }
30176 _ACEOF
30177 rm -f conftest.$ac_objext
30178 if { (ac_try="$ac_compile"
30179 case "(($ac_try" in
30180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30181   *) ac_try_echo=$ac_try;;
30182 esac
30183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30184   (eval "$ac_compile") 2>conftest.er1
30185   ac_status=$?
30186   grep -v '^ *+' conftest.er1 >conftest.err
30187   rm -f conftest.er1
30188   cat conftest.err >&5
30189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30190   (exit $ac_status); } &&
30191          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30192   { (case "(($ac_try" in
30193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30194   *) ac_try_echo=$ac_try;;
30195 esac
30196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30197   (eval "$ac_try") 2>&5
30198   ac_status=$?
30199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30200   (exit $ac_status); }; } &&
30201          { ac_try='test -s conftest.$ac_objext'
30202   { (case "(($ac_try" in
30203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30204   *) ac_try_echo=$ac_try;;
30205 esac
30206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30207   (eval "$ac_try") 2>&5
30208   ac_status=$?
30209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30210   (exit $ac_status); }; }; then
30211   ac_cv_type_int64_t=yes
30212 else
30213   echo "$as_me: failed program was:" >&5
30214 sed 's/^/| /' conftest.$ac_ext >&5
30215
30216         ac_cv_type_int64_t=no
30217 fi
30218
30219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30220 fi
30221 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30222 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
30223 if test $ac_cv_type_int64_t = yes; then
30224
30225 cat >>confdefs.h <<_ACEOF
30226 #define HAVE_INT64_T 1
30227 _ACEOF
30228
30229
30230 else
30231   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30232 echo "$as_me: error: Type int64_t required but not found" >&2;}
30233    { (exit 1); exit 1; }; }
30234 fi
30235
30236 { echo "$as_me:$LINENO: checking for uint64_t" >&5
30237 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
30238 if test "${ac_cv_type_uint64_t+set}" = set; then
30239   echo $ECHO_N "(cached) $ECHO_C" >&6
30240 else
30241   cat >conftest.$ac_ext <<_ACEOF
30242 /* confdefs.h.  */
30243 _ACEOF
30244 cat confdefs.h >>conftest.$ac_ext
30245 cat >>conftest.$ac_ext <<_ACEOF
30246 /* end confdefs.h.  */
30247 $ac_includes_default
30248 typedef uint64_t ac__type_new_;
30249 int
30250 main ()
30251 {
30252 if ((ac__type_new_ *) 0)
30253   return 0;
30254 if (sizeof (ac__type_new_))
30255   return 0;
30256   ;
30257   return 0;
30258 }
30259 _ACEOF
30260 rm -f conftest.$ac_objext
30261 if { (ac_try="$ac_compile"
30262 case "(($ac_try" in
30263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30264   *) ac_try_echo=$ac_try;;
30265 esac
30266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30267   (eval "$ac_compile") 2>conftest.er1
30268   ac_status=$?
30269   grep -v '^ *+' conftest.er1 >conftest.err
30270   rm -f conftest.er1
30271   cat conftest.err >&5
30272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30273   (exit $ac_status); } &&
30274          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30275   { (case "(($ac_try" in
30276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30277   *) ac_try_echo=$ac_try;;
30278 esac
30279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30280   (eval "$ac_try") 2>&5
30281   ac_status=$?
30282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30283   (exit $ac_status); }; } &&
30284          { ac_try='test -s conftest.$ac_objext'
30285   { (case "(($ac_try" in
30286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30287   *) ac_try_echo=$ac_try;;
30288 esac
30289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30290   (eval "$ac_try") 2>&5
30291   ac_status=$?
30292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30293   (exit $ac_status); }; }; then
30294   ac_cv_type_uint64_t=yes
30295 else
30296   echo "$as_me: failed program was:" >&5
30297 sed 's/^/| /' conftest.$ac_ext >&5
30298
30299         ac_cv_type_uint64_t=no
30300 fi
30301
30302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30303 fi
30304 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30305 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
30306 if test $ac_cv_type_uint64_t = yes; then
30307
30308 cat >>confdefs.h <<_ACEOF
30309 #define HAVE_UINT64_T 1
30310 _ACEOF
30311
30312
30313 else
30314   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30315 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
30316 if test "${ac_cv_type_u_int64_t+set}" = set; then
30317   echo $ECHO_N "(cached) $ECHO_C" >&6
30318 else
30319   cat >conftest.$ac_ext <<_ACEOF
30320 /* confdefs.h.  */
30321 _ACEOF
30322 cat confdefs.h >>conftest.$ac_ext
30323 cat >>conftest.$ac_ext <<_ACEOF
30324 /* end confdefs.h.  */
30325 $ac_includes_default
30326 typedef u_int64_t ac__type_new_;
30327 int
30328 main ()
30329 {
30330 if ((ac__type_new_ *) 0)
30331   return 0;
30332 if (sizeof (ac__type_new_))
30333   return 0;
30334   ;
30335   return 0;
30336 }
30337 _ACEOF
30338 rm -f conftest.$ac_objext
30339 if { (ac_try="$ac_compile"
30340 case "(($ac_try" in
30341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30342   *) ac_try_echo=$ac_try;;
30343 esac
30344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30345   (eval "$ac_compile") 2>conftest.er1
30346   ac_status=$?
30347   grep -v '^ *+' conftest.er1 >conftest.err
30348   rm -f conftest.er1
30349   cat conftest.err >&5
30350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30351   (exit $ac_status); } &&
30352          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30353   { (case "(($ac_try" in
30354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30355   *) ac_try_echo=$ac_try;;
30356 esac
30357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30358   (eval "$ac_try") 2>&5
30359   ac_status=$?
30360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30361   (exit $ac_status); }; } &&
30362          { ac_try='test -s conftest.$ac_objext'
30363   { (case "(($ac_try" in
30364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30365   *) ac_try_echo=$ac_try;;
30366 esac
30367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30368   (eval "$ac_try") 2>&5
30369   ac_status=$?
30370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30371   (exit $ac_status); }; }; then
30372   ac_cv_type_u_int64_t=yes
30373 else
30374   echo "$as_me: failed program was:" >&5
30375 sed 's/^/| /' conftest.$ac_ext >&5
30376
30377         ac_cv_type_u_int64_t=no
30378 fi
30379
30380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30381 fi
30382 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30383 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
30384 if test $ac_cv_type_u_int64_t = yes; then
30385
30386 cat >>confdefs.h <<_ACEOF
30387 #define HAVE_U_INT64_T 1
30388 _ACEOF
30389
30390
30391 else
30392   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30393 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30394    { (exit 1); exit 1; }; }
30395 fi
30396
30397 fi
30398
30399
30400
30401
30402
30403
30404
30405
30406
30407
30408 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
30409 do
30410 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30411 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30412 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30413 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30414   echo $ECHO_N "(cached) $ECHO_C" >&6
30415 else
30416   cat >conftest.$ac_ext <<_ACEOF
30417 /* confdefs.h.  */
30418 _ACEOF
30419 cat confdefs.h >>conftest.$ac_ext
30420 cat >>conftest.$ac_ext <<_ACEOF
30421 /* end confdefs.h.  */
30422 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30423    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30424 #define $ac_func innocuous_$ac_func
30425
30426 /* System header to define __stub macros and hopefully few prototypes,
30427     which can conflict with char $ac_func (); below.
30428     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30429     <limits.h> exists even on freestanding compilers.  */
30430
30431 #ifdef __STDC__
30432 # include <limits.h>
30433 #else
30434 # include <assert.h>
30435 #endif
30436
30437 #undef $ac_func
30438
30439 /* Override any GCC internal prototype to avoid an error.
30440    Use char because int might match the return type of a GCC
30441    builtin and then its argument prototype would still apply.  */
30442 #ifdef __cplusplus
30443 extern "C"
30444 #endif
30445 char $ac_func ();
30446 /* The GNU C library defines this for functions which it implements
30447     to always fail with ENOSYS.  Some functions are actually named
30448     something starting with __ and the normal name is an alias.  */
30449 #if defined __stub_$ac_func || defined __stub___$ac_func
30450 choke me
30451 #endif
30452
30453 int
30454 main ()
30455 {
30456 return $ac_func ();
30457   ;
30458   return 0;
30459 }
30460 _ACEOF
30461 rm -f conftest.$ac_objext conftest$ac_exeext
30462 if { (ac_try="$ac_link"
30463 case "(($ac_try" in
30464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30465   *) ac_try_echo=$ac_try;;
30466 esac
30467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30468   (eval "$ac_link") 2>conftest.er1
30469   ac_status=$?
30470   grep -v '^ *+' conftest.er1 >conftest.err
30471   rm -f conftest.er1
30472   cat conftest.err >&5
30473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30474   (exit $ac_status); } &&
30475          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30476   { (case "(($ac_try" in
30477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30478   *) ac_try_echo=$ac_try;;
30479 esac
30480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30481   (eval "$ac_try") 2>&5
30482   ac_status=$?
30483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30484   (exit $ac_status); }; } &&
30485          { ac_try='test -s conftest$ac_exeext'
30486   { (case "(($ac_try" in
30487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30488   *) ac_try_echo=$ac_try;;
30489 esac
30490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30491   (eval "$ac_try") 2>&5
30492   ac_status=$?
30493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30494   (exit $ac_status); }; }; then
30495   eval "$as_ac_var=yes"
30496 else
30497   echo "$as_me: failed program was:" >&5
30498 sed 's/^/| /' conftest.$ac_ext >&5
30499
30500         eval "$as_ac_var=no"
30501 fi
30502
30503 rm -f core conftest.err conftest.$ac_objext \
30504       conftest$ac_exeext conftest.$ac_ext
30505 fi
30506 ac_res=`eval echo '${'$as_ac_var'}'`
30507                { echo "$as_me:$LINENO: result: $ac_res" >&5
30508 echo "${ECHO_T}$ac_res" >&6; }
30509 if test `eval echo '${'$as_ac_var'}'` = yes; then
30510   cat >>confdefs.h <<_ACEOF
30511 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30512 _ACEOF
30513
30514 fi
30515 done
30516
30517
30518
30519
30520
30521 for ac_func in powf fmodf strtof round
30522 do
30523 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30524 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30525 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30526 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30527   echo $ECHO_N "(cached) $ECHO_C" >&6
30528 else
30529   cat >conftest.$ac_ext <<_ACEOF
30530 /* confdefs.h.  */
30531 _ACEOF
30532 cat confdefs.h >>conftest.$ac_ext
30533 cat >>conftest.$ac_ext <<_ACEOF
30534 /* end confdefs.h.  */
30535 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30536    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30537 #define $ac_func innocuous_$ac_func
30538
30539 /* System header to define __stub macros and hopefully few prototypes,
30540     which can conflict with char $ac_func (); below.
30541     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30542     <limits.h> exists even on freestanding compilers.  */
30543
30544 #ifdef __STDC__
30545 # include <limits.h>
30546 #else
30547 # include <assert.h>
30548 #endif
30549
30550 #undef $ac_func
30551
30552 /* Override any GCC internal prototype to avoid an error.
30553    Use char because int might match the return type of a GCC
30554    builtin and then its argument prototype would still apply.  */
30555 #ifdef __cplusplus
30556 extern "C"
30557 #endif
30558 char $ac_func ();
30559 /* The GNU C library defines this for functions which it implements
30560     to always fail with ENOSYS.  Some functions are actually named
30561     something starting with __ and the normal name is an alias.  */
30562 #if defined __stub_$ac_func || defined __stub___$ac_func
30563 choke me
30564 #endif
30565
30566 int
30567 main ()
30568 {
30569 return $ac_func ();
30570   ;
30571   return 0;
30572 }
30573 _ACEOF
30574 rm -f conftest.$ac_objext conftest$ac_exeext
30575 if { (ac_try="$ac_link"
30576 case "(($ac_try" in
30577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30578   *) ac_try_echo=$ac_try;;
30579 esac
30580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30581   (eval "$ac_link") 2>conftest.er1
30582   ac_status=$?
30583   grep -v '^ *+' conftest.er1 >conftest.err
30584   rm -f conftest.er1
30585   cat conftest.err >&5
30586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30587   (exit $ac_status); } &&
30588          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30589   { (case "(($ac_try" in
30590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30591   *) ac_try_echo=$ac_try;;
30592 esac
30593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30594   (eval "$ac_try") 2>&5
30595   ac_status=$?
30596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30597   (exit $ac_status); }; } &&
30598          { ac_try='test -s conftest$ac_exeext'
30599   { (case "(($ac_try" in
30600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30601   *) ac_try_echo=$ac_try;;
30602 esac
30603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30604   (eval "$ac_try") 2>&5
30605   ac_status=$?
30606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30607   (exit $ac_status); }; }; then
30608   eval "$as_ac_var=yes"
30609 else
30610   echo "$as_me: failed program was:" >&5
30611 sed 's/^/| /' conftest.$ac_ext >&5
30612
30613         eval "$as_ac_var=no"
30614 fi
30615
30616 rm -f core conftest.err conftest.$ac_objext \
30617       conftest$ac_exeext conftest.$ac_ext
30618 fi
30619 ac_res=`eval echo '${'$as_ac_var'}'`
30620                { echo "$as_me:$LINENO: result: $ac_res" >&5
30621 echo "${ECHO_T}$ac_res" >&6; }
30622 if test `eval echo '${'$as_ac_var'}'` = yes; then
30623   cat >>confdefs.h <<_ACEOF
30624 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30625 _ACEOF
30626
30627 fi
30628 done
30629
30630
30631
30632
30633
30634
30635 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
30636 do
30637 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30638 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30639 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30640 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30641   echo $ECHO_N "(cached) $ECHO_C" >&6
30642 else
30643   cat >conftest.$ac_ext <<_ACEOF
30644 /* confdefs.h.  */
30645 _ACEOF
30646 cat confdefs.h >>conftest.$ac_ext
30647 cat >>conftest.$ac_ext <<_ACEOF
30648 /* end confdefs.h.  */
30649 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30650    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30651 #define $ac_func innocuous_$ac_func
30652
30653 /* System header to define __stub macros and hopefully few prototypes,
30654     which can conflict with char $ac_func (); below.
30655     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30656     <limits.h> exists even on freestanding compilers.  */
30657
30658 #ifdef __STDC__
30659 # include <limits.h>
30660 #else
30661 # include <assert.h>
30662 #endif
30663
30664 #undef $ac_func
30665
30666 /* Override any GCC internal prototype to avoid an error.
30667    Use char because int might match the return type of a GCC
30668    builtin and then its argument prototype would still apply.  */
30669 #ifdef __cplusplus
30670 extern "C"
30671 #endif
30672 char $ac_func ();
30673 /* The GNU C library defines this for functions which it implements
30674     to always fail with ENOSYS.  Some functions are actually named
30675     something starting with __ and the normal name is an alias.  */
30676 #if defined __stub_$ac_func || defined __stub___$ac_func
30677 choke me
30678 #endif
30679
30680 int
30681 main ()
30682 {
30683 return $ac_func ();
30684   ;
30685   return 0;
30686 }
30687 _ACEOF
30688 rm -f conftest.$ac_objext conftest$ac_exeext
30689 if { (ac_try="$ac_link"
30690 case "(($ac_try" in
30691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30692   *) ac_try_echo=$ac_try;;
30693 esac
30694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30695   (eval "$ac_link") 2>conftest.er1
30696   ac_status=$?
30697   grep -v '^ *+' conftest.er1 >conftest.err
30698   rm -f conftest.er1
30699   cat conftest.err >&5
30700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30701   (exit $ac_status); } &&
30702          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30703   { (case "(($ac_try" in
30704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30705   *) ac_try_echo=$ac_try;;
30706 esac
30707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30708   (eval "$ac_try") 2>&5
30709   ac_status=$?
30710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30711   (exit $ac_status); }; } &&
30712          { ac_try='test -s conftest$ac_exeext'
30713   { (case "(($ac_try" in
30714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30715   *) ac_try_echo=$ac_try;;
30716 esac
30717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30718   (eval "$ac_try") 2>&5
30719   ac_status=$?
30720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30721   (exit $ac_status); }; }; then
30722   eval "$as_ac_var=yes"
30723 else
30724   echo "$as_me: failed program was:" >&5
30725 sed 's/^/| /' conftest.$ac_ext >&5
30726
30727         eval "$as_ac_var=no"
30728 fi
30729
30730 rm -f core conftest.err conftest.$ac_objext \
30731       conftest$ac_exeext conftest.$ac_ext
30732 fi
30733 ac_res=`eval echo '${'$as_ac_var'}'`
30734                { echo "$as_me:$LINENO: result: $ac_res" >&5
30735 echo "${ECHO_T}$ac_res" >&6; }
30736 if test `eval echo '${'$as_ac_var'}'` = yes; then
30737   cat >>confdefs.h <<_ACEOF
30738 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30739 _ACEOF
30740
30741 fi
30742 done
30743
30744
30745
30746
30747 for ac_func in isatty mkdtemp mkstemp
30748 do
30749 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30750 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30751 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30752 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30753   echo $ECHO_N "(cached) $ECHO_C" >&6
30754 else
30755   cat >conftest.$ac_ext <<_ACEOF
30756 /* confdefs.h.  */
30757 _ACEOF
30758 cat confdefs.h >>conftest.$ac_ext
30759 cat >>conftest.$ac_ext <<_ACEOF
30760 /* end confdefs.h.  */
30761 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30762    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30763 #define $ac_func innocuous_$ac_func
30764
30765 /* System header to define __stub macros and hopefully few prototypes,
30766     which can conflict with char $ac_func (); below.
30767     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30768     <limits.h> exists even on freestanding compilers.  */
30769
30770 #ifdef __STDC__
30771 # include <limits.h>
30772 #else
30773 # include <assert.h>
30774 #endif
30775
30776 #undef $ac_func
30777
30778 /* Override any GCC internal prototype to avoid an error.
30779    Use char because int might match the return type of a GCC
30780    builtin and then its argument prototype would still apply.  */
30781 #ifdef __cplusplus
30782 extern "C"
30783 #endif
30784 char $ac_func ();
30785 /* The GNU C library defines this for functions which it implements
30786     to always fail with ENOSYS.  Some functions are actually named
30787     something starting with __ and the normal name is an alias.  */
30788 #if defined __stub_$ac_func || defined __stub___$ac_func
30789 choke me
30790 #endif
30791
30792 int
30793 main ()
30794 {
30795 return $ac_func ();
30796   ;
30797   return 0;
30798 }
30799 _ACEOF
30800 rm -f conftest.$ac_objext conftest$ac_exeext
30801 if { (ac_try="$ac_link"
30802 case "(($ac_try" in
30803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30804   *) ac_try_echo=$ac_try;;
30805 esac
30806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30807   (eval "$ac_link") 2>conftest.er1
30808   ac_status=$?
30809   grep -v '^ *+' conftest.er1 >conftest.err
30810   rm -f conftest.er1
30811   cat conftest.err >&5
30812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30813   (exit $ac_status); } &&
30814          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30815   { (case "(($ac_try" in
30816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30817   *) ac_try_echo=$ac_try;;
30818 esac
30819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30820   (eval "$ac_try") 2>&5
30821   ac_status=$?
30822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30823   (exit $ac_status); }; } &&
30824          { ac_try='test -s conftest$ac_exeext'
30825   { (case "(($ac_try" in
30826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30827   *) ac_try_echo=$ac_try;;
30828 esac
30829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30830   (eval "$ac_try") 2>&5
30831   ac_status=$?
30832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30833   (exit $ac_status); }; }; then
30834   eval "$as_ac_var=yes"
30835 else
30836   echo "$as_me: failed program was:" >&5
30837 sed 's/^/| /' conftest.$ac_ext >&5
30838
30839         eval "$as_ac_var=no"
30840 fi
30841
30842 rm -f core conftest.err conftest.$ac_objext \
30843       conftest$ac_exeext conftest.$ac_ext
30844 fi
30845 ac_res=`eval echo '${'$as_ac_var'}'`
30846                { echo "$as_me:$LINENO: result: $ac_res" >&5
30847 echo "${ECHO_T}$ac_res" >&6; }
30848 if test `eval echo '${'$as_ac_var'}'` = yes; then
30849   cat >>confdefs.h <<_ACEOF
30850 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30851 _ACEOF
30852
30853 fi
30854 done
30855
30856
30857
30858
30859
30860
30861
30862
30863 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
30864 do
30865 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30866 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30867 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30868 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30869   echo $ECHO_N "(cached) $ECHO_C" >&6
30870 else
30871   cat >conftest.$ac_ext <<_ACEOF
30872 /* confdefs.h.  */
30873 _ACEOF
30874 cat confdefs.h >>conftest.$ac_ext
30875 cat >>conftest.$ac_ext <<_ACEOF
30876 /* end confdefs.h.  */
30877 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30878    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30879 #define $ac_func innocuous_$ac_func
30880
30881 /* System header to define __stub macros and hopefully few prototypes,
30882     which can conflict with char $ac_func (); below.
30883     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30884     <limits.h> exists even on freestanding compilers.  */
30885
30886 #ifdef __STDC__
30887 # include <limits.h>
30888 #else
30889 # include <assert.h>
30890 #endif
30891
30892 #undef $ac_func
30893
30894 /* Override any GCC internal prototype to avoid an error.
30895    Use char because int might match the return type of a GCC
30896    builtin and then its argument prototype would still apply.  */
30897 #ifdef __cplusplus
30898 extern "C"
30899 #endif
30900 char $ac_func ();
30901 /* The GNU C library defines this for functions which it implements
30902     to always fail with ENOSYS.  Some functions are actually named
30903     something starting with __ and the normal name is an alias.  */
30904 #if defined __stub_$ac_func || defined __stub___$ac_func
30905 choke me
30906 #endif
30907
30908 int
30909 main ()
30910 {
30911 return $ac_func ();
30912   ;
30913   return 0;
30914 }
30915 _ACEOF
30916 rm -f conftest.$ac_objext conftest$ac_exeext
30917 if { (ac_try="$ac_link"
30918 case "(($ac_try" in
30919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30920   *) ac_try_echo=$ac_try;;
30921 esac
30922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30923   (eval "$ac_link") 2>conftest.er1
30924   ac_status=$?
30925   grep -v '^ *+' conftest.er1 >conftest.err
30926   rm -f conftest.er1
30927   cat conftest.err >&5
30928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30929   (exit $ac_status); } &&
30930          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30931   { (case "(($ac_try" in
30932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30933   *) ac_try_echo=$ac_try;;
30934 esac
30935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30936   (eval "$ac_try") 2>&5
30937   ac_status=$?
30938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30939   (exit $ac_status); }; } &&
30940          { ac_try='test -s conftest$ac_exeext'
30941   { (case "(($ac_try" in
30942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30943   *) ac_try_echo=$ac_try;;
30944 esac
30945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30946   (eval "$ac_try") 2>&5
30947   ac_status=$?
30948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30949   (exit $ac_status); }; }; then
30950   eval "$as_ac_var=yes"
30951 else
30952   echo "$as_me: failed program was:" >&5
30953 sed 's/^/| /' conftest.$ac_ext >&5
30954
30955         eval "$as_ac_var=no"
30956 fi
30957
30958 rm -f core conftest.err conftest.$ac_objext \
30959       conftest$ac_exeext conftest.$ac_ext
30960 fi
30961 ac_res=`eval echo '${'$as_ac_var'}'`
30962                { echo "$as_me:$LINENO: result: $ac_res" >&5
30963 echo "${ECHO_T}$ac_res" >&6; }
30964 if test `eval echo '${'$as_ac_var'}'` = yes; then
30965   cat >>confdefs.h <<_ACEOF
30966 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30967 _ACEOF
30968
30969 fi
30970 done
30971
30972
30973
30974
30975
30976 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
30977 do
30978 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30979 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30980 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30981 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30982   echo $ECHO_N "(cached) $ECHO_C" >&6
30983 else
30984   cat >conftest.$ac_ext <<_ACEOF
30985 /* confdefs.h.  */
30986 _ACEOF
30987 cat confdefs.h >>conftest.$ac_ext
30988 cat >>conftest.$ac_ext <<_ACEOF
30989 /* end confdefs.h.  */
30990 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30991    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30992 #define $ac_func innocuous_$ac_func
30993
30994 /* System header to define __stub macros and hopefully few prototypes,
30995     which can conflict with char $ac_func (); below.
30996     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30997     <limits.h> exists even on freestanding compilers.  */
30998
30999 #ifdef __STDC__
31000 # include <limits.h>
31001 #else
31002 # include <assert.h>
31003 #endif
31004
31005 #undef $ac_func
31006
31007 /* Override any GCC internal prototype to avoid an error.
31008    Use char because int might match the return type of a GCC
31009    builtin and then its argument prototype would still apply.  */
31010 #ifdef __cplusplus
31011 extern "C"
31012 #endif
31013 char $ac_func ();
31014 /* The GNU C library defines this for functions which it implements
31015     to always fail with ENOSYS.  Some functions are actually named
31016     something starting with __ and the normal name is an alias.  */
31017 #if defined __stub_$ac_func || defined __stub___$ac_func
31018 choke me
31019 #endif
31020
31021 int
31022 main ()
31023 {
31024 return $ac_func ();
31025   ;
31026   return 0;
31027 }
31028 _ACEOF
31029 rm -f conftest.$ac_objext conftest$ac_exeext
31030 if { (ac_try="$ac_link"
31031 case "(($ac_try" in
31032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31033   *) ac_try_echo=$ac_try;;
31034 esac
31035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31036   (eval "$ac_link") 2>conftest.er1
31037   ac_status=$?
31038   grep -v '^ *+' conftest.er1 >conftest.err
31039   rm -f conftest.er1
31040   cat conftest.err >&5
31041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31042   (exit $ac_status); } &&
31043          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31044   { (case "(($ac_try" in
31045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31046   *) ac_try_echo=$ac_try;;
31047 esac
31048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31049   (eval "$ac_try") 2>&5
31050   ac_status=$?
31051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31052   (exit $ac_status); }; } &&
31053          { ac_try='test -s conftest$ac_exeext'
31054   { (case "(($ac_try" in
31055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31056   *) ac_try_echo=$ac_try;;
31057 esac
31058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31059   (eval "$ac_try") 2>&5
31060   ac_status=$?
31061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31062   (exit $ac_status); }; }; then
31063   eval "$as_ac_var=yes"
31064 else
31065   echo "$as_me: failed program was:" >&5
31066 sed 's/^/| /' conftest.$ac_ext >&5
31067
31068         eval "$as_ac_var=no"
31069 fi
31070
31071 rm -f core conftest.err conftest.$ac_objext \
31072       conftest$ac_exeext conftest.$ac_ext
31073 fi
31074 ac_res=`eval echo '${'$as_ac_var'}'`
31075                { echo "$as_me:$LINENO: result: $ac_res" >&5
31076 echo "${ECHO_T}$ac_res" >&6; }
31077 if test `eval echo '${'$as_ac_var'}'` = yes; then
31078   cat >>confdefs.h <<_ACEOF
31079 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31080 _ACEOF
31081
31082 fi
31083 done
31084
31085
31086
31087
31088
31089 for ac_func in setjmp longjmp sigsetjmp siglongjmp
31090 do
31091 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31092 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31093 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31094 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31095   echo $ECHO_N "(cached) $ECHO_C" >&6
31096 else
31097   cat >conftest.$ac_ext <<_ACEOF
31098 /* confdefs.h.  */
31099 _ACEOF
31100 cat confdefs.h >>conftest.$ac_ext
31101 cat >>conftest.$ac_ext <<_ACEOF
31102 /* end confdefs.h.  */
31103 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31104    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31105 #define $ac_func innocuous_$ac_func
31106
31107 /* System header to define __stub macros and hopefully few prototypes,
31108     which can conflict with char $ac_func (); below.
31109     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31110     <limits.h> exists even on freestanding compilers.  */
31111
31112 #ifdef __STDC__
31113 # include <limits.h>
31114 #else
31115 # include <assert.h>
31116 #endif
31117
31118 #undef $ac_func
31119
31120 /* Override any GCC internal prototype to avoid an error.
31121    Use char because int might match the return type of a GCC
31122    builtin and then its argument prototype would still apply.  */
31123 #ifdef __cplusplus
31124 extern "C"
31125 #endif
31126 char $ac_func ();
31127 /* The GNU C library defines this for functions which it implements
31128     to always fail with ENOSYS.  Some functions are actually named
31129     something starting with __ and the normal name is an alias.  */
31130 #if defined __stub_$ac_func || defined __stub___$ac_func
31131 choke me
31132 #endif
31133
31134 int
31135 main ()
31136 {
31137 return $ac_func ();
31138   ;
31139   return 0;
31140 }
31141 _ACEOF
31142 rm -f conftest.$ac_objext conftest$ac_exeext
31143 if { (ac_try="$ac_link"
31144 case "(($ac_try" in
31145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31146   *) ac_try_echo=$ac_try;;
31147 esac
31148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31149   (eval "$ac_link") 2>conftest.er1
31150   ac_status=$?
31151   grep -v '^ *+' conftest.er1 >conftest.err
31152   rm -f conftest.er1
31153   cat conftest.err >&5
31154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31155   (exit $ac_status); } &&
31156          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31157   { (case "(($ac_try" in
31158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31159   *) ac_try_echo=$ac_try;;
31160 esac
31161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31162   (eval "$ac_try") 2>&5
31163   ac_status=$?
31164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31165   (exit $ac_status); }; } &&
31166          { ac_try='test -s conftest$ac_exeext'
31167   { (case "(($ac_try" in
31168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31169   *) ac_try_echo=$ac_try;;
31170 esac
31171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31172   (eval "$ac_try") 2>&5
31173   ac_status=$?
31174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31175   (exit $ac_status); }; }; then
31176   eval "$as_ac_var=yes"
31177 else
31178   echo "$as_me: failed program was:" >&5
31179 sed 's/^/| /' conftest.$ac_ext >&5
31180
31181         eval "$as_ac_var=no"
31182 fi
31183
31184 rm -f core conftest.err conftest.$ac_objext \
31185       conftest$ac_exeext conftest.$ac_ext
31186 fi
31187 ac_res=`eval echo '${'$as_ac_var'}'`
31188                { echo "$as_me:$LINENO: result: $ac_res" >&5
31189 echo "${ECHO_T}$ac_res" >&6; }
31190 if test `eval echo '${'$as_ac_var'}'` = yes; then
31191   cat >>confdefs.h <<_ACEOF
31192 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31193 _ACEOF
31194
31195 fi
31196 done
31197
31198 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31199 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
31200 if test "${llvm_cv_c_printf_a+set}" = set; then
31201   echo $ECHO_N "(cached) $ECHO_C" >&6
31202 else
31203   ac_ext=c
31204 ac_cpp='$CPP $CPPFLAGS'
31205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31208
31209  if test "$cross_compiling" = yes; then
31210   llvmac_cv_c_printf_a=no
31211 else
31212   cat >conftest.$ac_ext <<_ACEOF
31213
31214   /* confdefs.h.  */
31215 _ACEOF
31216 cat confdefs.h >>conftest.$ac_ext
31217 cat >>conftest.$ac_ext <<_ACEOF
31218 /* end confdefs.h.  */
31219
31220 #include <stdio.h>
31221 #include <stdlib.h>
31222
31223 int
31224 main ()
31225 {
31226
31227 volatile double A, B;
31228 char Buffer[100];
31229 A = 1;
31230 A /= 10.0;
31231 sprintf(Buffer, "%a", A);
31232 B = atof(Buffer);
31233 if (A != B)
31234   return (1);
31235 if (A != 0x1.999999999999ap-4)
31236   return (1);
31237 return (0);
31238   ;
31239   return 0;
31240 }
31241 _ACEOF
31242 rm -f conftest$ac_exeext
31243 if { (ac_try="$ac_link"
31244 case "(($ac_try" in
31245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31246   *) ac_try_echo=$ac_try;;
31247 esac
31248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31249   (eval "$ac_link") 2>&5
31250   ac_status=$?
31251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31252   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31253   { (case "(($ac_try" in
31254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31255   *) ac_try_echo=$ac_try;;
31256 esac
31257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31258   (eval "$ac_try") 2>&5
31259   ac_status=$?
31260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31261   (exit $ac_status); }; }; then
31262   llvm_cv_c_printf_a=yes
31263 else
31264   echo "$as_me: program exited with status $ac_status" >&5
31265 echo "$as_me: failed program was:" >&5
31266 sed 's/^/| /' conftest.$ac_ext >&5
31267
31268 ( exit $ac_status )
31269 llvmac_cv_c_printf_a=no
31270 fi
31271 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31272 fi
31273
31274
31275  ac_ext=c
31276 ac_cpp='$CPP $CPPFLAGS'
31277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31280
31281 fi
31282 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31283 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
31284  if test "$llvm_cv_c_printf_a" = "yes"; then
31285
31286 cat >>confdefs.h <<\_ACEOF
31287 #define HAVE_PRINTF_A 1
31288 _ACEOF
31289
31290  fi
31291
31292 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31293 # for constant arguments.  Useless!
31294 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
31295 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
31296 if test "${ac_cv_working_alloca_h+set}" = set; then
31297   echo $ECHO_N "(cached) $ECHO_C" >&6
31298 else
31299   cat >conftest.$ac_ext <<_ACEOF
31300 /* confdefs.h.  */
31301 _ACEOF
31302 cat confdefs.h >>conftest.$ac_ext
31303 cat >>conftest.$ac_ext <<_ACEOF
31304 /* end confdefs.h.  */
31305 #include <alloca.h>
31306 int
31307 main ()
31308 {
31309 char *p = (char *) alloca (2 * sizeof (int));
31310                           if (p) return 0;
31311   ;
31312   return 0;
31313 }
31314 _ACEOF
31315 rm -f conftest.$ac_objext conftest$ac_exeext
31316 if { (ac_try="$ac_link"
31317 case "(($ac_try" in
31318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31319   *) ac_try_echo=$ac_try;;
31320 esac
31321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31322   (eval "$ac_link") 2>conftest.er1
31323   ac_status=$?
31324   grep -v '^ *+' conftest.er1 >conftest.err
31325   rm -f conftest.er1
31326   cat conftest.err >&5
31327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31328   (exit $ac_status); } &&
31329          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31330   { (case "(($ac_try" in
31331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31332   *) ac_try_echo=$ac_try;;
31333 esac
31334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31335   (eval "$ac_try") 2>&5
31336   ac_status=$?
31337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31338   (exit $ac_status); }; } &&
31339          { ac_try='test -s conftest$ac_exeext'
31340   { (case "(($ac_try" in
31341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31342   *) ac_try_echo=$ac_try;;
31343 esac
31344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31345   (eval "$ac_try") 2>&5
31346   ac_status=$?
31347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31348   (exit $ac_status); }; }; then
31349   ac_cv_working_alloca_h=yes
31350 else
31351   echo "$as_me: failed program was:" >&5
31352 sed 's/^/| /' conftest.$ac_ext >&5
31353
31354         ac_cv_working_alloca_h=no
31355 fi
31356
31357 rm -f core conftest.err conftest.$ac_objext \
31358       conftest$ac_exeext conftest.$ac_ext
31359 fi
31360 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31361 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
31362 if test $ac_cv_working_alloca_h = yes; then
31363
31364 cat >>confdefs.h <<\_ACEOF
31365 #define HAVE_ALLOCA_H 1
31366 _ACEOF
31367
31368 fi
31369
31370 { echo "$as_me:$LINENO: checking for alloca" >&5
31371 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
31372 if test "${ac_cv_func_alloca_works+set}" = set; then
31373   echo $ECHO_N "(cached) $ECHO_C" >&6
31374 else
31375   cat >conftest.$ac_ext <<_ACEOF
31376 /* confdefs.h.  */
31377 _ACEOF
31378 cat confdefs.h >>conftest.$ac_ext
31379 cat >>conftest.$ac_ext <<_ACEOF
31380 /* end confdefs.h.  */
31381 #ifdef __GNUC__
31382 # define alloca __builtin_alloca
31383 #else
31384 # ifdef _MSC_VER
31385 #  include <malloc.h>
31386 #  define alloca _alloca
31387 # else
31388 #  if HAVE_ALLOCA_H
31389 #   include <alloca.h>
31390 #  else
31391 #   ifdef _AIX
31392  #pragma alloca
31393 #   else
31394 #    ifndef alloca /* predefined by HP cc +Olibcalls */
31395 char *alloca ();
31396 #    endif
31397 #   endif
31398 #  endif
31399 # endif
31400 #endif
31401
31402 int
31403 main ()
31404 {
31405 char *p = (char *) alloca (1);
31406                                     if (p) return 0;
31407   ;
31408   return 0;
31409 }
31410 _ACEOF
31411 rm -f conftest.$ac_objext conftest$ac_exeext
31412 if { (ac_try="$ac_link"
31413 case "(($ac_try" in
31414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31415   *) ac_try_echo=$ac_try;;
31416 esac
31417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31418   (eval "$ac_link") 2>conftest.er1
31419   ac_status=$?
31420   grep -v '^ *+' conftest.er1 >conftest.err
31421   rm -f conftest.er1
31422   cat conftest.err >&5
31423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31424   (exit $ac_status); } &&
31425          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31426   { (case "(($ac_try" in
31427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31428   *) ac_try_echo=$ac_try;;
31429 esac
31430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31431   (eval "$ac_try") 2>&5
31432   ac_status=$?
31433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31434   (exit $ac_status); }; } &&
31435          { ac_try='test -s conftest$ac_exeext'
31436   { (case "(($ac_try" in
31437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31438   *) ac_try_echo=$ac_try;;
31439 esac
31440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31441   (eval "$ac_try") 2>&5
31442   ac_status=$?
31443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31444   (exit $ac_status); }; }; then
31445   ac_cv_func_alloca_works=yes
31446 else
31447   echo "$as_me: failed program was:" >&5
31448 sed 's/^/| /' conftest.$ac_ext >&5
31449
31450         ac_cv_func_alloca_works=no
31451 fi
31452
31453 rm -f core conftest.err conftest.$ac_objext \
31454       conftest$ac_exeext conftest.$ac_ext
31455 fi
31456 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31457 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
31458
31459 if test $ac_cv_func_alloca_works = yes; then
31460
31461 cat >>confdefs.h <<\_ACEOF
31462 #define HAVE_ALLOCA 1
31463 _ACEOF
31464
31465 else
31466   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31467 # that cause trouble.  Some versions do not even contain alloca or
31468 # contain a buggy version.  If you still want to use their alloca,
31469 # use ar to extract alloca.o from them instead of compiling alloca.c.
31470
31471 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
31472
31473 cat >>confdefs.h <<\_ACEOF
31474 #define C_ALLOCA 1
31475 _ACEOF
31476
31477
31478 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31479 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
31480 if test "${ac_cv_os_cray+set}" = set; then
31481   echo $ECHO_N "(cached) $ECHO_C" >&6
31482 else
31483   cat >conftest.$ac_ext <<_ACEOF
31484 /* confdefs.h.  */
31485 _ACEOF
31486 cat confdefs.h >>conftest.$ac_ext
31487 cat >>conftest.$ac_ext <<_ACEOF
31488 /* end confdefs.h.  */
31489 #if defined CRAY && ! defined CRAY2
31490 webecray
31491 #else
31492 wenotbecray
31493 #endif
31494
31495 _ACEOF
31496 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31497   $EGREP "webecray" >/dev/null 2>&1; then
31498   ac_cv_os_cray=yes
31499 else
31500   ac_cv_os_cray=no
31501 fi
31502 rm -f conftest*
31503
31504 fi
31505 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31506 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
31507 if test $ac_cv_os_cray = yes; then
31508   for ac_func in _getb67 GETB67 getb67; do
31509     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31510 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31511 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31512 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31513   echo $ECHO_N "(cached) $ECHO_C" >&6
31514 else
31515   cat >conftest.$ac_ext <<_ACEOF
31516 /* confdefs.h.  */
31517 _ACEOF
31518 cat confdefs.h >>conftest.$ac_ext
31519 cat >>conftest.$ac_ext <<_ACEOF
31520 /* end confdefs.h.  */
31521 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31522    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31523 #define $ac_func innocuous_$ac_func
31524
31525 /* System header to define __stub macros and hopefully few prototypes,
31526     which can conflict with char $ac_func (); below.
31527     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31528     <limits.h> exists even on freestanding compilers.  */
31529
31530 #ifdef __STDC__
31531 # include <limits.h>
31532 #else
31533 # include <assert.h>
31534 #endif
31535
31536 #undef $ac_func
31537
31538 /* Override any GCC internal prototype to avoid an error.
31539    Use char because int might match the return type of a GCC
31540    builtin and then its argument prototype would still apply.  */
31541 #ifdef __cplusplus
31542 extern "C"
31543 #endif
31544 char $ac_func ();
31545 /* The GNU C library defines this for functions which it implements
31546     to always fail with ENOSYS.  Some functions are actually named
31547     something starting with __ and the normal name is an alias.  */
31548 #if defined __stub_$ac_func || defined __stub___$ac_func
31549 choke me
31550 #endif
31551
31552 int
31553 main ()
31554 {
31555 return $ac_func ();
31556   ;
31557   return 0;
31558 }
31559 _ACEOF
31560 rm -f conftest.$ac_objext conftest$ac_exeext
31561 if { (ac_try="$ac_link"
31562 case "(($ac_try" in
31563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31564   *) ac_try_echo=$ac_try;;
31565 esac
31566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31567   (eval "$ac_link") 2>conftest.er1
31568   ac_status=$?
31569   grep -v '^ *+' conftest.er1 >conftest.err
31570   rm -f conftest.er1
31571   cat conftest.err >&5
31572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31573   (exit $ac_status); } &&
31574          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31575   { (case "(($ac_try" in
31576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31577   *) ac_try_echo=$ac_try;;
31578 esac
31579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31580   (eval "$ac_try") 2>&5
31581   ac_status=$?
31582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31583   (exit $ac_status); }; } &&
31584          { ac_try='test -s conftest$ac_exeext'
31585   { (case "(($ac_try" in
31586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31587   *) ac_try_echo=$ac_try;;
31588 esac
31589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31590   (eval "$ac_try") 2>&5
31591   ac_status=$?
31592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31593   (exit $ac_status); }; }; then
31594   eval "$as_ac_var=yes"
31595 else
31596   echo "$as_me: failed program was:" >&5
31597 sed 's/^/| /' conftest.$ac_ext >&5
31598
31599         eval "$as_ac_var=no"
31600 fi
31601
31602 rm -f core conftest.err conftest.$ac_objext \
31603       conftest$ac_exeext conftest.$ac_ext
31604 fi
31605 ac_res=`eval echo '${'$as_ac_var'}'`
31606                { echo "$as_me:$LINENO: result: $ac_res" >&5
31607 echo "${ECHO_T}$ac_res" >&6; }
31608 if test `eval echo '${'$as_ac_var'}'` = yes; then
31609
31610 cat >>confdefs.h <<_ACEOF
31611 #define CRAY_STACKSEG_END $ac_func
31612 _ACEOF
31613
31614     break
31615 fi
31616
31617   done
31618 fi
31619
31620 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31621 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
31622 if test "${ac_cv_c_stack_direction+set}" = set; then
31623   echo $ECHO_N "(cached) $ECHO_C" >&6
31624 else
31625   if test "$cross_compiling" = yes; then
31626   ac_cv_c_stack_direction=0
31627 else
31628   cat >conftest.$ac_ext <<_ACEOF
31629 /* confdefs.h.  */
31630 _ACEOF
31631 cat confdefs.h >>conftest.$ac_ext
31632 cat >>conftest.$ac_ext <<_ACEOF
31633 /* end confdefs.h.  */
31634 $ac_includes_default
31635 int
31636 find_stack_direction ()
31637 {
31638   static char *addr = 0;
31639   auto char dummy;
31640   if (addr == 0)
31641     {
31642       addr = &dummy;
31643       return find_stack_direction ();
31644     }
31645   else
31646     return (&dummy > addr) ? 1 : -1;
31647 }
31648
31649 int
31650 main ()
31651 {
31652   return find_stack_direction () < 0;
31653 }
31654 _ACEOF
31655 rm -f conftest$ac_exeext
31656 if { (ac_try="$ac_link"
31657 case "(($ac_try" in
31658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31659   *) ac_try_echo=$ac_try;;
31660 esac
31661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31662   (eval "$ac_link") 2>&5
31663   ac_status=$?
31664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31665   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31666   { (case "(($ac_try" in
31667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31668   *) ac_try_echo=$ac_try;;
31669 esac
31670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31671   (eval "$ac_try") 2>&5
31672   ac_status=$?
31673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31674   (exit $ac_status); }; }; then
31675   ac_cv_c_stack_direction=1
31676 else
31677   echo "$as_me: program exited with status $ac_status" >&5
31678 echo "$as_me: failed program was:" >&5
31679 sed 's/^/| /' conftest.$ac_ext >&5
31680
31681 ( exit $ac_status )
31682 ac_cv_c_stack_direction=-1
31683 fi
31684 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31685 fi
31686
31687
31688 fi
31689 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31690 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
31691
31692 cat >>confdefs.h <<_ACEOF
31693 #define STACK_DIRECTION $ac_cv_c_stack_direction
31694 _ACEOF
31695
31696
31697 fi
31698
31699
31700 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
31701 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
31702 if test "${ac_cv_func_rand48+set}" = set; then
31703   echo $ECHO_N "(cached) $ECHO_C" >&6
31704 else
31705   ac_ext=cpp
31706 ac_cpp='$CXXCPP $CPPFLAGS'
31707 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31708 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31709 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31710
31711    cat >conftest.$ac_ext <<_ACEOF
31712 /* confdefs.h.  */
31713 _ACEOF
31714 cat confdefs.h >>conftest.$ac_ext
31715 cat >>conftest.$ac_ext <<_ACEOF
31716 /* end confdefs.h.  */
31717 #include <stdlib.h>
31718 int
31719 main ()
31720 {
31721 srand48(0);lrand48();drand48();
31722   ;
31723   return 0;
31724 }
31725 _ACEOF
31726 rm -f conftest.$ac_objext
31727 if { (ac_try="$ac_compile"
31728 case "(($ac_try" in
31729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31730   *) ac_try_echo=$ac_try;;
31731 esac
31732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31733   (eval "$ac_compile") 2>conftest.er1
31734   ac_status=$?
31735   grep -v '^ *+' conftest.er1 >conftest.err
31736   rm -f conftest.er1
31737   cat conftest.err >&5
31738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31739   (exit $ac_status); } &&
31740          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31741   { (case "(($ac_try" in
31742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31743   *) ac_try_echo=$ac_try;;
31744 esac
31745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31746   (eval "$ac_try") 2>&5
31747   ac_status=$?
31748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31749   (exit $ac_status); }; } &&
31750          { ac_try='test -s conftest.$ac_objext'
31751   { (case "(($ac_try" in
31752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31753   *) ac_try_echo=$ac_try;;
31754 esac
31755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31756   (eval "$ac_try") 2>&5
31757   ac_status=$?
31758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31759   (exit $ac_status); }; }; then
31760   ac_cv_func_rand48=yes
31761 else
31762   echo "$as_me: failed program was:" >&5
31763 sed 's/^/| /' conftest.$ac_ext >&5
31764
31765         ac_cv_func_rand48=no
31766 fi
31767
31768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31769   ac_ext=c
31770 ac_cpp='$CPP $CPPFLAGS'
31771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31774
31775 fi
31776 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
31777 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
31778
31779 if test "$ac_cv_func_rand48" = "yes" ; then
31780
31781 cat >>confdefs.h <<\_ACEOF
31782 #define HAVE_RAND48 1
31783 _ACEOF
31784
31785 fi
31786
31787
31788 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31789 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
31790 if test "${ac_cv_cxx_namespaces+set}" = set; then
31791   echo $ECHO_N "(cached) $ECHO_C" >&6
31792 else
31793   ac_ext=cpp
31794 ac_cpp='$CXXCPP $CPPFLAGS'
31795 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31796 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31797 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31798
31799  cat >conftest.$ac_ext <<_ACEOF
31800 /* confdefs.h.  */
31801 _ACEOF
31802 cat confdefs.h >>conftest.$ac_ext
31803 cat >>conftest.$ac_ext <<_ACEOF
31804 /* end confdefs.h.  */
31805 namespace Outer { namespace Inner { int i = 0; }}
31806 int
31807 main ()
31808 {
31809 using namespace Outer::Inner; return i;
31810   ;
31811   return 0;
31812 }
31813 _ACEOF
31814 rm -f conftest.$ac_objext
31815 if { (ac_try="$ac_compile"
31816 case "(($ac_try" in
31817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31818   *) ac_try_echo=$ac_try;;
31819 esac
31820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31821   (eval "$ac_compile") 2>conftest.er1
31822   ac_status=$?
31823   grep -v '^ *+' conftest.er1 >conftest.err
31824   rm -f conftest.er1
31825   cat conftest.err >&5
31826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31827   (exit $ac_status); } &&
31828          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31829   { (case "(($ac_try" in
31830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31831   *) ac_try_echo=$ac_try;;
31832 esac
31833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31834   (eval "$ac_try") 2>&5
31835   ac_status=$?
31836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31837   (exit $ac_status); }; } &&
31838          { ac_try='test -s conftest.$ac_objext'
31839   { (case "(($ac_try" in
31840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31841   *) ac_try_echo=$ac_try;;
31842 esac
31843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31844   (eval "$ac_try") 2>&5
31845   ac_status=$?
31846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31847   (exit $ac_status); }; }; then
31848   ac_cv_cxx_namespaces=yes
31849 else
31850   echo "$as_me: failed program was:" >&5
31851 sed 's/^/| /' conftest.$ac_ext >&5
31852
31853         ac_cv_cxx_namespaces=no
31854 fi
31855
31856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31857  ac_ext=c
31858 ac_cpp='$CPP $CPPFLAGS'
31859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31862
31863
31864 fi
31865 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
31866 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
31867 if test "$ac_cv_cxx_namespaces" = yes; then
31868
31869 cat >>confdefs.h <<\_ACEOF
31870 #define HAVE_NAMESPACES
31871 _ACEOF
31872
31873 fi
31874
31875 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
31876 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6; }
31877 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
31878   echo $ECHO_N "(cached) $ECHO_C" >&6
31879 else
31880
31881   ac_ext=cpp
31882 ac_cpp='$CXXCPP $CPPFLAGS'
31883 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31884 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31885 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31886
31887   cat >conftest.$ac_ext <<_ACEOF
31888 /* confdefs.h.  */
31889 _ACEOF
31890 cat confdefs.h >>conftest.$ac_ext
31891 cat >>conftest.$ac_ext <<_ACEOF
31892 /* end confdefs.h.  */
31893 #include <ext/hash_map>
31894 #ifdef HAVE_NAMESPACES
31895 using namespace std;
31896 #endif
31897 int
31898 main ()
31899 {
31900 hash_map<int, int> t;
31901   ;
31902   return 0;
31903 }
31904 _ACEOF
31905 rm -f conftest.$ac_objext
31906 if { (ac_try="$ac_compile"
31907 case "(($ac_try" in
31908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31909   *) ac_try_echo=$ac_try;;
31910 esac
31911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31912   (eval "$ac_compile") 2>conftest.er1
31913   ac_status=$?
31914   grep -v '^ *+' conftest.er1 >conftest.err
31915   rm -f conftest.er1
31916   cat conftest.err >&5
31917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31918   (exit $ac_status); } &&
31919          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31920   { (case "(($ac_try" in
31921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31922   *) ac_try_echo=$ac_try;;
31923 esac
31924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31925   (eval "$ac_try") 2>&5
31926   ac_status=$?
31927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31928   (exit $ac_status); }; } &&
31929          { ac_try='test -s conftest.$ac_objext'
31930   { (case "(($ac_try" in
31931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31932   *) ac_try_echo=$ac_try;;
31933 esac
31934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31935   (eval "$ac_try") 2>&5
31936   ac_status=$?
31937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31938   (exit $ac_status); }; }; then
31939   ac_cv_cxx_have_std_ext_hash_map=yes
31940 else
31941   echo "$as_me: failed program was:" >&5
31942 sed 's/^/| /' conftest.$ac_ext >&5
31943
31944         ac_cv_cxx_have_std_ext_hash_map=no
31945 fi
31946
31947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31948   ac_ext=c
31949 ac_cpp='$CPP $CPPFLAGS'
31950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31953
31954 fi
31955 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
31956 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
31957  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
31958  then
31959
31960 cat >>confdefs.h <<\_ACEOF
31961 #define HAVE_STD_EXT_HASH_MAP 1
31962 _ACEOF
31963
31964  else
31965
31966 cat >>confdefs.h <<\_ACEOF
31967 #define HAVE_STD_EXT_HASH_MAP 0
31968 _ACEOF
31969
31970  fi
31971
31972  { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
31973 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6; }
31974 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
31975   echo $ECHO_N "(cached) $ECHO_C" >&6
31976 else
31977
31978   ac_ext=cpp
31979 ac_cpp='$CXXCPP $CPPFLAGS'
31980 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31981 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31982 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31983
31984   cat >conftest.$ac_ext <<_ACEOF
31985 /* confdefs.h.  */
31986 _ACEOF
31987 cat confdefs.h >>conftest.$ac_ext
31988 cat >>conftest.$ac_ext <<_ACEOF
31989 /* end confdefs.h.  */
31990 #include <ext/hash_map>
31991 #ifdef HAVE_NAMESPACES
31992 using namespace __gnu_cxx;
31993 #endif
31994 int
31995 main ()
31996 {
31997 hash_map<int,int> t;
31998   ;
31999   return 0;
32000 }
32001 _ACEOF
32002 rm -f conftest.$ac_objext
32003 if { (ac_try="$ac_compile"
32004 case "(($ac_try" in
32005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32006   *) ac_try_echo=$ac_try;;
32007 esac
32008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32009   (eval "$ac_compile") 2>conftest.er1
32010   ac_status=$?
32011   grep -v '^ *+' conftest.er1 >conftest.err
32012   rm -f conftest.er1
32013   cat conftest.err >&5
32014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32015   (exit $ac_status); } &&
32016          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32017   { (case "(($ac_try" in
32018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32019   *) ac_try_echo=$ac_try;;
32020 esac
32021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32022   (eval "$ac_try") 2>&5
32023   ac_status=$?
32024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32025   (exit $ac_status); }; } &&
32026          { ac_try='test -s conftest.$ac_objext'
32027   { (case "(($ac_try" in
32028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32029   *) ac_try_echo=$ac_try;;
32030 esac
32031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32032   (eval "$ac_try") 2>&5
32033   ac_status=$?
32034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32035   (exit $ac_status); }; }; then
32036   ac_cv_cxx_have_gnu_ext_hash_map=yes
32037 else
32038   echo "$as_me: failed program was:" >&5
32039 sed 's/^/| /' conftest.$ac_ext >&5
32040
32041         ac_cv_cxx_have_gnu_ext_hash_map=no
32042 fi
32043
32044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32045   ac_ext=c
32046 ac_cpp='$CPP $CPPFLAGS'
32047 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32048 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32049 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32050
32051 fi
32052 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
32053 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
32054  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
32055  then
32056
32057 cat >>confdefs.h <<\_ACEOF
32058 #define HAVE_GNU_EXT_HASH_MAP 1
32059 _ACEOF
32060
32061  else
32062
32063 cat >>confdefs.h <<\_ACEOF
32064 #define HAVE_GNU_EXT_HASH_MAP 0
32065 _ACEOF
32066
32067  fi
32068
32069  { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
32070 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
32071 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
32072   echo $ECHO_N "(cached) $ECHO_C" >&6
32073 else
32074
32075   ac_ext=cpp
32076 ac_cpp='$CXXCPP $CPPFLAGS'
32077 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32078 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32079 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32080
32081   cat >conftest.$ac_ext <<_ACEOF
32082 /* confdefs.h.  */
32083 _ACEOF
32084 cat confdefs.h >>conftest.$ac_ext
32085 cat >>conftest.$ac_ext <<_ACEOF
32086 /* end confdefs.h.  */
32087 #include <hash_map>
32088 int
32089 main ()
32090 {
32091 hash_map<int,int> t;
32092   ;
32093   return 0;
32094 }
32095 _ACEOF
32096 rm -f conftest.$ac_objext
32097 if { (ac_try="$ac_compile"
32098 case "(($ac_try" in
32099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32100   *) ac_try_echo=$ac_try;;
32101 esac
32102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32103   (eval "$ac_compile") 2>conftest.er1
32104   ac_status=$?
32105   grep -v '^ *+' conftest.er1 >conftest.err
32106   rm -f conftest.er1
32107   cat conftest.err >&5
32108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32109   (exit $ac_status); } &&
32110          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32111   { (case "(($ac_try" in
32112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32113   *) ac_try_echo=$ac_try;;
32114 esac
32115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32116   (eval "$ac_try") 2>&5
32117   ac_status=$?
32118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32119   (exit $ac_status); }; } &&
32120          { ac_try='test -s conftest.$ac_objext'
32121   { (case "(($ac_try" in
32122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32123   *) ac_try_echo=$ac_try;;
32124 esac
32125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32126   (eval "$ac_try") 2>&5
32127   ac_status=$?
32128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32129   (exit $ac_status); }; }; then
32130   ac_cv_cxx_have_global_hash_map=yes
32131 else
32132   echo "$as_me: failed program was:" >&5
32133 sed 's/^/| /' conftest.$ac_ext >&5
32134
32135         ac_cv_cxx_have_global_hash_map=no
32136 fi
32137
32138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32139   ac_ext=c
32140 ac_cpp='$CPP $CPPFLAGS'
32141 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32142 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32143 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32144
32145 fi
32146 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
32147 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
32148  if test "$ac_cv_cxx_have_global_hash_map" = yes
32149  then
32150
32151 cat >>confdefs.h <<\_ACEOF
32152 #define HAVE_GLOBAL_HASH_MAP 1
32153 _ACEOF
32154
32155  else
32156
32157 cat >>confdefs.h <<\_ACEOF
32158 #define HAVE_GLOBAL_HASH_MAP 0
32159 _ACEOF
32160
32161  fi
32162
32163 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
32164 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6; }
32165 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
32166   echo $ECHO_N "(cached) $ECHO_C" >&6
32167 else
32168
32169   ac_ext=cpp
32170 ac_cpp='$CXXCPP $CPPFLAGS'
32171 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32172 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32173 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32174
32175   cat >conftest.$ac_ext <<_ACEOF
32176 /* confdefs.h.  */
32177 _ACEOF
32178 cat confdefs.h >>conftest.$ac_ext
32179 cat >>conftest.$ac_ext <<_ACEOF
32180 /* end confdefs.h.  */
32181 #include <ext/hash_set>
32182 #ifdef HAVE_NAMESPACES
32183 using namespace std;
32184 #endif
32185 int
32186 main ()
32187 {
32188 hash_set<int> t;
32189   ;
32190   return 0;
32191 }
32192 _ACEOF
32193 rm -f conftest.$ac_objext
32194 if { (ac_try="$ac_compile"
32195 case "(($ac_try" in
32196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32197   *) ac_try_echo=$ac_try;;
32198 esac
32199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32200   (eval "$ac_compile") 2>conftest.er1
32201   ac_status=$?
32202   grep -v '^ *+' conftest.er1 >conftest.err
32203   rm -f conftest.er1
32204   cat conftest.err >&5
32205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32206   (exit $ac_status); } &&
32207          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32208   { (case "(($ac_try" in
32209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32210   *) ac_try_echo=$ac_try;;
32211 esac
32212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32213   (eval "$ac_try") 2>&5
32214   ac_status=$?
32215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32216   (exit $ac_status); }; } &&
32217          { ac_try='test -s conftest.$ac_objext'
32218   { (case "(($ac_try" in
32219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32220   *) ac_try_echo=$ac_try;;
32221 esac
32222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32223   (eval "$ac_try") 2>&5
32224   ac_status=$?
32225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32226   (exit $ac_status); }; }; then
32227   ac_cv_cxx_have_std_ext_hash_set=yes
32228 else
32229   echo "$as_me: failed program was:" >&5
32230 sed 's/^/| /' conftest.$ac_ext >&5
32231
32232         ac_cv_cxx_have_std_ext_hash_set=no
32233 fi
32234
32235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32236   ac_ext=c
32237 ac_cpp='$CPP $CPPFLAGS'
32238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32241
32242 fi
32243 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
32244 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
32245  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
32246  then
32247
32248 cat >>confdefs.h <<\_ACEOF
32249 #define HAVE_STD_EXT_HASH_SET 1
32250 _ACEOF
32251
32252  else
32253
32254 cat >>confdefs.h <<\_ACEOF
32255 #define HAVE_STD_EXT_HASH_SET 0
32256 _ACEOF
32257
32258  fi
32259
32260  { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
32261 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6; }
32262 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
32263   echo $ECHO_N "(cached) $ECHO_C" >&6
32264 else
32265
32266   ac_ext=cpp
32267 ac_cpp='$CXXCPP $CPPFLAGS'
32268 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32269 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32270 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32271
32272   cat >conftest.$ac_ext <<_ACEOF
32273 /* confdefs.h.  */
32274 _ACEOF
32275 cat confdefs.h >>conftest.$ac_ext
32276 cat >>conftest.$ac_ext <<_ACEOF
32277 /* end confdefs.h.  */
32278 #include <ext/hash_set>
32279 #ifdef HAVE_NAMESPACES
32280 using namespace __gnu_cxx;
32281 #endif
32282 int
32283 main ()
32284 {
32285 hash_set<int> t;
32286   ;
32287   return 0;
32288 }
32289 _ACEOF
32290 rm -f conftest.$ac_objext
32291 if { (ac_try="$ac_compile"
32292 case "(($ac_try" in
32293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32294   *) ac_try_echo=$ac_try;;
32295 esac
32296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32297   (eval "$ac_compile") 2>conftest.er1
32298   ac_status=$?
32299   grep -v '^ *+' conftest.er1 >conftest.err
32300   rm -f conftest.er1
32301   cat conftest.err >&5
32302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32303   (exit $ac_status); } &&
32304          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32305   { (case "(($ac_try" in
32306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32307   *) ac_try_echo=$ac_try;;
32308 esac
32309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32310   (eval "$ac_try") 2>&5
32311   ac_status=$?
32312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32313   (exit $ac_status); }; } &&
32314          { ac_try='test -s conftest.$ac_objext'
32315   { (case "(($ac_try" in
32316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32317   *) ac_try_echo=$ac_try;;
32318 esac
32319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32320   (eval "$ac_try") 2>&5
32321   ac_status=$?
32322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32323   (exit $ac_status); }; }; then
32324   ac_cv_cxx_have_gnu_ext_hash_set=yes
32325 else
32326   echo "$as_me: failed program was:" >&5
32327 sed 's/^/| /' conftest.$ac_ext >&5
32328
32329         ac_cv_cxx_have_gnu_ext_hash_set=no
32330 fi
32331
32332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32333   ac_ext=c
32334 ac_cpp='$CPP $CPPFLAGS'
32335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32338
32339 fi
32340 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
32341 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
32342  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
32343  then
32344
32345 cat >>confdefs.h <<\_ACEOF
32346 #define HAVE_GNU_EXT_HASH_SET 1
32347 _ACEOF
32348
32349  else
32350
32351 cat >>confdefs.h <<\_ACEOF
32352 #define HAVE_GNU_EXT_HASH_SET 0
32353 _ACEOF
32354
32355  fi
32356
32357  { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
32358 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
32359 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
32360   echo $ECHO_N "(cached) $ECHO_C" >&6
32361 else
32362
32363   ac_ext=cpp
32364 ac_cpp='$CXXCPP $CPPFLAGS'
32365 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32366 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32367 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32368
32369   cat >conftest.$ac_ext <<_ACEOF
32370 /* confdefs.h.  */
32371 _ACEOF
32372 cat confdefs.h >>conftest.$ac_ext
32373 cat >>conftest.$ac_ext <<_ACEOF
32374 /* end confdefs.h.  */
32375 #include <hash_set>
32376 int
32377 main ()
32378 {
32379 hash_set<int> t; return 0;
32380   ;
32381   return 0;
32382 }
32383 _ACEOF
32384 rm -f conftest.$ac_objext
32385 if { (ac_try="$ac_compile"
32386 case "(($ac_try" in
32387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32388   *) ac_try_echo=$ac_try;;
32389 esac
32390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32391   (eval "$ac_compile") 2>conftest.er1
32392   ac_status=$?
32393   grep -v '^ *+' conftest.er1 >conftest.err
32394   rm -f conftest.er1
32395   cat conftest.err >&5
32396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32397   (exit $ac_status); } &&
32398          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32399   { (case "(($ac_try" in
32400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32401   *) ac_try_echo=$ac_try;;
32402 esac
32403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32404   (eval "$ac_try") 2>&5
32405   ac_status=$?
32406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32407   (exit $ac_status); }; } &&
32408          { ac_try='test -s conftest.$ac_objext'
32409   { (case "(($ac_try" in
32410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32411   *) ac_try_echo=$ac_try;;
32412 esac
32413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32414   (eval "$ac_try") 2>&5
32415   ac_status=$?
32416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32417   (exit $ac_status); }; }; then
32418   ac_cv_cxx_have_global_hash_set=yes
32419 else
32420   echo "$as_me: failed program was:" >&5
32421 sed 's/^/| /' conftest.$ac_ext >&5
32422
32423         ac_cv_cxx_have_global_hash_set=no
32424 fi
32425
32426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32427   ac_ext=c
32428 ac_cpp='$CPP $CPPFLAGS'
32429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32432
32433 fi
32434 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
32435 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
32436  if test "$ac_cv_cxx_have_global_hash_set" = yes
32437  then
32438
32439 cat >>confdefs.h <<\_ACEOF
32440 #define HAVE_GLOBAL_HASH_SET 1
32441 _ACEOF
32442
32443  else
32444
32445 cat >>confdefs.h <<\_ACEOF
32446 #define HAVE_GLOBAL_HASH_SET 0
32447 _ACEOF
32448
32449  fi
32450
32451 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32452 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
32453 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32454   echo $ECHO_N "(cached) $ECHO_C" >&6
32455 else
32456
32457   ac_ext=cpp
32458 ac_cpp='$CXXCPP $CPPFLAGS'
32459 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32460 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32461 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32462
32463   cat >conftest.$ac_ext <<_ACEOF
32464 /* confdefs.h.  */
32465 _ACEOF
32466 cat confdefs.h >>conftest.$ac_ext
32467 cat >>conftest.$ac_ext <<_ACEOF
32468 /* end confdefs.h.  */
32469 #include <iterator>
32470 #ifdef HAVE_NAMESPACES
32471 using namespace std;
32472 #endif
32473 int
32474 main ()
32475 {
32476 iterator<int,int,int> t; return 0;
32477   ;
32478   return 0;
32479 }
32480 _ACEOF
32481 rm -f conftest.$ac_objext
32482 if { (ac_try="$ac_compile"
32483 case "(($ac_try" in
32484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32485   *) ac_try_echo=$ac_try;;
32486 esac
32487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32488   (eval "$ac_compile") 2>conftest.er1
32489   ac_status=$?
32490   grep -v '^ *+' conftest.er1 >conftest.err
32491   rm -f conftest.er1
32492   cat conftest.err >&5
32493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32494   (exit $ac_status); } &&
32495          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32496   { (case "(($ac_try" in
32497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32498   *) ac_try_echo=$ac_try;;
32499 esac
32500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32501   (eval "$ac_try") 2>&5
32502   ac_status=$?
32503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32504   (exit $ac_status); }; } &&
32505          { ac_try='test -s conftest.$ac_objext'
32506   { (case "(($ac_try" in
32507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32508   *) ac_try_echo=$ac_try;;
32509 esac
32510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32511   (eval "$ac_try") 2>&5
32512   ac_status=$?
32513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32514   (exit $ac_status); }; }; then
32515   ac_cv_cxx_have_std_iterator=yes
32516 else
32517   echo "$as_me: failed program was:" >&5
32518 sed 's/^/| /' conftest.$ac_ext >&5
32519
32520         ac_cv_cxx_have_std_iterator=no
32521 fi
32522
32523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32524   ac_ext=c
32525 ac_cpp='$CPP $CPPFLAGS'
32526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32529
32530
32531 fi
32532 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32533 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
32534 if test "$ac_cv_cxx_have_std_iterator" = yes
32535 then
32536
32537 cat >>confdefs.h <<\_ACEOF
32538 #define HAVE_STD_ITERATOR 1
32539 _ACEOF
32540
32541 else
32542
32543 cat >>confdefs.h <<\_ACEOF
32544 #define HAVE_STD_ITERATOR 0
32545 _ACEOF
32546
32547 fi
32548
32549 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32550 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
32551 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32552   echo $ECHO_N "(cached) $ECHO_C" >&6
32553 else
32554
32555   ac_ext=cpp
32556 ac_cpp='$CXXCPP $CPPFLAGS'
32557 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32558 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32559 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32560
32561   cat >conftest.$ac_ext <<_ACEOF
32562 /* confdefs.h.  */
32563 _ACEOF
32564 cat confdefs.h >>conftest.$ac_ext
32565 cat >>conftest.$ac_ext <<_ACEOF
32566 /* end confdefs.h.  */
32567 #include <iterator>
32568 #ifdef HAVE_NAMESPACES
32569 using namespace std;
32570 #endif
32571 int
32572 main ()
32573 {
32574 bidirectional_iterator<int,int> t; return 0;
32575   ;
32576   return 0;
32577 }
32578 _ACEOF
32579 rm -f conftest.$ac_objext
32580 if { (ac_try="$ac_compile"
32581 case "(($ac_try" in
32582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32583   *) ac_try_echo=$ac_try;;
32584 esac
32585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32586   (eval "$ac_compile") 2>conftest.er1
32587   ac_status=$?
32588   grep -v '^ *+' conftest.er1 >conftest.err
32589   rm -f conftest.er1
32590   cat conftest.err >&5
32591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32592   (exit $ac_status); } &&
32593          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32594   { (case "(($ac_try" in
32595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32596   *) ac_try_echo=$ac_try;;
32597 esac
32598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32599   (eval "$ac_try") 2>&5
32600   ac_status=$?
32601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32602   (exit $ac_status); }; } &&
32603          { ac_try='test -s conftest.$ac_objext'
32604   { (case "(($ac_try" in
32605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32606   *) ac_try_echo=$ac_try;;
32607 esac
32608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32609   (eval "$ac_try") 2>&5
32610   ac_status=$?
32611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32612   (exit $ac_status); }; }; then
32613   ac_cv_cxx_have_bi_iterator=yes
32614 else
32615   echo "$as_me: failed program was:" >&5
32616 sed 's/^/| /' conftest.$ac_ext >&5
32617
32618         ac_cv_cxx_have_bi_iterator=no
32619 fi
32620
32621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32622   ac_ext=c
32623 ac_cpp='$CPP $CPPFLAGS'
32624 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32625 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32627
32628
32629 fi
32630 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32631 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
32632 if test "$ac_cv_cxx_have_bi_iterator" = yes
32633 then
32634
32635 cat >>confdefs.h <<\_ACEOF
32636 #define HAVE_BI_ITERATOR 1
32637 _ACEOF
32638
32639 else
32640
32641 cat >>confdefs.h <<\_ACEOF
32642 #define HAVE_BI_ITERATOR 0
32643 _ACEOF
32644
32645 fi
32646
32647 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32648 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
32649 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32650   echo $ECHO_N "(cached) $ECHO_C" >&6
32651 else
32652
32653   ac_ext=cpp
32654 ac_cpp='$CXXCPP $CPPFLAGS'
32655 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32656 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32657 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32658
32659   cat >conftest.$ac_ext <<_ACEOF
32660 /* confdefs.h.  */
32661 _ACEOF
32662 cat confdefs.h >>conftest.$ac_ext
32663 cat >>conftest.$ac_ext <<_ACEOF
32664 /* end confdefs.h.  */
32665 #include <iterator>
32666 #ifdef HAVE_NAMESPACES
32667 using namespace std;
32668 #endif
32669 int
32670 main ()
32671 {
32672 forward_iterator<int,int> t; return 0;
32673   ;
32674   return 0;
32675 }
32676 _ACEOF
32677 rm -f conftest.$ac_objext
32678 if { (ac_try="$ac_compile"
32679 case "(($ac_try" in
32680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32681   *) ac_try_echo=$ac_try;;
32682 esac
32683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32684   (eval "$ac_compile") 2>conftest.er1
32685   ac_status=$?
32686   grep -v '^ *+' conftest.er1 >conftest.err
32687   rm -f conftest.er1
32688   cat conftest.err >&5
32689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32690   (exit $ac_status); } &&
32691          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32692   { (case "(($ac_try" in
32693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32694   *) ac_try_echo=$ac_try;;
32695 esac
32696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32697   (eval "$ac_try") 2>&5
32698   ac_status=$?
32699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32700   (exit $ac_status); }; } &&
32701          { ac_try='test -s conftest.$ac_objext'
32702   { (case "(($ac_try" in
32703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32704   *) ac_try_echo=$ac_try;;
32705 esac
32706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32707   (eval "$ac_try") 2>&5
32708   ac_status=$?
32709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32710   (exit $ac_status); }; }; then
32711   ac_cv_cxx_have_fwd_iterator=yes
32712 else
32713   echo "$as_me: failed program was:" >&5
32714 sed 's/^/| /' conftest.$ac_ext >&5
32715
32716         ac_cv_cxx_have_fwd_iterator=no
32717 fi
32718
32719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32720   ac_ext=c
32721 ac_cpp='$CPP $CPPFLAGS'
32722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32725
32726
32727 fi
32728 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32729 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
32730 if test "$ac_cv_cxx_have_fwd_iterator" = yes
32731 then
32732
32733 cat >>confdefs.h <<\_ACEOF
32734 #define HAVE_FWD_ITERATOR 1
32735 _ACEOF
32736
32737 else
32738
32739 cat >>confdefs.h <<\_ACEOF
32740 #define HAVE_FWD_ITERATOR 0
32741 _ACEOF
32742
32743 fi
32744
32745
32746 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32747 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
32748 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32749   echo $ECHO_N "(cached) $ECHO_C" >&6
32750 else
32751   ac_ext=cpp
32752 ac_cpp='$CXXCPP $CPPFLAGS'
32753 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32754 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32755 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32756
32757    cat >conftest.$ac_ext <<_ACEOF
32758 /* confdefs.h.  */
32759 _ACEOF
32760 cat confdefs.h >>conftest.$ac_ext
32761 cat >>conftest.$ac_ext <<_ACEOF
32762 /* end confdefs.h.  */
32763 #include <math.h>
32764 int
32765 main ()
32766 {
32767 float f; isnan(f);
32768   ;
32769   return 0;
32770 }
32771 _ACEOF
32772 rm -f conftest.$ac_objext
32773 if { (ac_try="$ac_compile"
32774 case "(($ac_try" in
32775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32776   *) ac_try_echo=$ac_try;;
32777 esac
32778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32779   (eval "$ac_compile") 2>conftest.er1
32780   ac_status=$?
32781   grep -v '^ *+' conftest.er1 >conftest.err
32782   rm -f conftest.er1
32783   cat conftest.err >&5
32784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32785   (exit $ac_status); } &&
32786          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32787   { (case "(($ac_try" in
32788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32789   *) ac_try_echo=$ac_try;;
32790 esac
32791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32792   (eval "$ac_try") 2>&5
32793   ac_status=$?
32794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32795   (exit $ac_status); }; } &&
32796          { ac_try='test -s conftest.$ac_objext'
32797   { (case "(($ac_try" in
32798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32799   *) ac_try_echo=$ac_try;;
32800 esac
32801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32802   (eval "$ac_try") 2>&5
32803   ac_status=$?
32804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32805   (exit $ac_status); }; }; then
32806   ac_cv_func_isnan_in_math_h=yes
32807 else
32808   echo "$as_me: failed program was:" >&5
32809 sed 's/^/| /' conftest.$ac_ext >&5
32810
32811         ac_cv_func_isnan_in_math_h=no
32812 fi
32813
32814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32815   ac_ext=c
32816 ac_cpp='$CPP $CPPFLAGS'
32817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32820
32821 fi
32822 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32823 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
32824
32825
32826 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
32827
32828 cat >>confdefs.h <<\_ACEOF
32829 #define HAVE_ISNAN_IN_MATH_H 1
32830 _ACEOF
32831
32832 fi
32833
32834 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32835 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
32836 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32837   echo $ECHO_N "(cached) $ECHO_C" >&6
32838 else
32839   ac_ext=cpp
32840 ac_cpp='$CXXCPP $CPPFLAGS'
32841 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32842 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32843 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32844
32845    cat >conftest.$ac_ext <<_ACEOF
32846 /* confdefs.h.  */
32847 _ACEOF
32848 cat confdefs.h >>conftest.$ac_ext
32849 cat >>conftest.$ac_ext <<_ACEOF
32850 /* end confdefs.h.  */
32851 #include <cmath>
32852 int
32853 main ()
32854 {
32855 float f; isnan(f);
32856   ;
32857   return 0;
32858 }
32859 _ACEOF
32860 rm -f conftest.$ac_objext
32861 if { (ac_try="$ac_compile"
32862 case "(($ac_try" in
32863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32864   *) ac_try_echo=$ac_try;;
32865 esac
32866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32867   (eval "$ac_compile") 2>conftest.er1
32868   ac_status=$?
32869   grep -v '^ *+' conftest.er1 >conftest.err
32870   rm -f conftest.er1
32871   cat conftest.err >&5
32872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32873   (exit $ac_status); } &&
32874          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32875   { (case "(($ac_try" in
32876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32877   *) ac_try_echo=$ac_try;;
32878 esac
32879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32880   (eval "$ac_try") 2>&5
32881   ac_status=$?
32882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32883   (exit $ac_status); }; } &&
32884          { ac_try='test -s conftest.$ac_objext'
32885   { (case "(($ac_try" in
32886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32887   *) ac_try_echo=$ac_try;;
32888 esac
32889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32890   (eval "$ac_try") 2>&5
32891   ac_status=$?
32892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32893   (exit $ac_status); }; }; then
32894   ac_cv_func_isnan_in_cmath=yes
32895 else
32896   echo "$as_me: failed program was:" >&5
32897 sed 's/^/| /' conftest.$ac_ext >&5
32898
32899         ac_cv_func_isnan_in_cmath=no
32900 fi
32901
32902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32903   ac_ext=c
32904 ac_cpp='$CPP $CPPFLAGS'
32905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32908
32909 fi
32910 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32911 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
32912
32913 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
32914
32915 cat >>confdefs.h <<\_ACEOF
32916 #define HAVE_ISNAN_IN_CMATH 1
32917 _ACEOF
32918
32919 fi
32920
32921 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32922 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
32923 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32924   echo $ECHO_N "(cached) $ECHO_C" >&6
32925 else
32926   ac_ext=cpp
32927 ac_cpp='$CXXCPP $CPPFLAGS'
32928 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32929 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32930 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32931
32932    cat >conftest.$ac_ext <<_ACEOF
32933 /* confdefs.h.  */
32934 _ACEOF
32935 cat confdefs.h >>conftest.$ac_ext
32936 cat >>conftest.$ac_ext <<_ACEOF
32937 /* end confdefs.h.  */
32938 #include <cmath>
32939 int
32940 main ()
32941 {
32942 float f; std::isnan(f);
32943   ;
32944   return 0;
32945 }
32946 _ACEOF
32947 rm -f conftest.$ac_objext
32948 if { (ac_try="$ac_compile"
32949 case "(($ac_try" in
32950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32951   *) ac_try_echo=$ac_try;;
32952 esac
32953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32954   (eval "$ac_compile") 2>conftest.er1
32955   ac_status=$?
32956   grep -v '^ *+' conftest.er1 >conftest.err
32957   rm -f conftest.er1
32958   cat conftest.err >&5
32959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32960   (exit $ac_status); } &&
32961          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32962   { (case "(($ac_try" in
32963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32964   *) ac_try_echo=$ac_try;;
32965 esac
32966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32967   (eval "$ac_try") 2>&5
32968   ac_status=$?
32969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32970   (exit $ac_status); }; } &&
32971          { ac_try='test -s conftest.$ac_objext'
32972   { (case "(($ac_try" in
32973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32974   *) ac_try_echo=$ac_try;;
32975 esac
32976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32977   (eval "$ac_try") 2>&5
32978   ac_status=$?
32979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32980   (exit $ac_status); }; }; then
32981   ac_cv_func_std_isnan_in_cmath=yes
32982 else
32983   echo "$as_me: failed program was:" >&5
32984 sed 's/^/| /' conftest.$ac_ext >&5
32985
32986         ac_cv_func_std_isnan_in_cmath=no
32987 fi
32988
32989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32990   ac_ext=c
32991 ac_cpp='$CPP $CPPFLAGS'
32992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32995
32996 fi
32997 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
32998 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
32999
33000 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
33001
33002 cat >>confdefs.h <<\_ACEOF
33003 #define HAVE_STD_ISNAN_IN_CMATH 1
33004 _ACEOF
33005
33006 fi
33007
33008
33009 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33010 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
33011 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33012   echo $ECHO_N "(cached) $ECHO_C" >&6
33013 else
33014   ac_ext=cpp
33015 ac_cpp='$CXXCPP $CPPFLAGS'
33016 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33017 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33018 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33019
33020    cat >conftest.$ac_ext <<_ACEOF
33021 /* confdefs.h.  */
33022 _ACEOF
33023 cat confdefs.h >>conftest.$ac_ext
33024 cat >>conftest.$ac_ext <<_ACEOF
33025 /* end confdefs.h.  */
33026 #include <math.h>
33027 int
33028 main ()
33029 {
33030 float f; isinf(f);
33031   ;
33032   return 0;
33033 }
33034 _ACEOF
33035 rm -f conftest.$ac_objext
33036 if { (ac_try="$ac_compile"
33037 case "(($ac_try" in
33038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33039   *) ac_try_echo=$ac_try;;
33040 esac
33041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33042   (eval "$ac_compile") 2>conftest.er1
33043   ac_status=$?
33044   grep -v '^ *+' conftest.er1 >conftest.err
33045   rm -f conftest.er1
33046   cat conftest.err >&5
33047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33048   (exit $ac_status); } &&
33049          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33050   { (case "(($ac_try" in
33051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33052   *) ac_try_echo=$ac_try;;
33053 esac
33054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33055   (eval "$ac_try") 2>&5
33056   ac_status=$?
33057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33058   (exit $ac_status); }; } &&
33059          { ac_try='test -s conftest.$ac_objext'
33060   { (case "(($ac_try" in
33061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33062   *) ac_try_echo=$ac_try;;
33063 esac
33064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33065   (eval "$ac_try") 2>&5
33066   ac_status=$?
33067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33068   (exit $ac_status); }; }; then
33069   ac_cv_func_isinf_in_math_h=yes
33070 else
33071   echo "$as_me: failed program was:" >&5
33072 sed 's/^/| /' conftest.$ac_ext >&5
33073
33074         ac_cv_func_isinf_in_math_h=no
33075 fi
33076
33077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33078   ac_ext=c
33079 ac_cpp='$CPP $CPPFLAGS'
33080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33083
33084 fi
33085 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33086 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
33087
33088 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
33089
33090 cat >>confdefs.h <<\_ACEOF
33091 #define HAVE_ISINF_IN_MATH_H 1
33092 _ACEOF
33093
33094 fi
33095
33096 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33097 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
33098 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33099   echo $ECHO_N "(cached) $ECHO_C" >&6
33100 else
33101   ac_ext=cpp
33102 ac_cpp='$CXXCPP $CPPFLAGS'
33103 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33104 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33105 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33106
33107    cat >conftest.$ac_ext <<_ACEOF
33108 /* confdefs.h.  */
33109 _ACEOF
33110 cat confdefs.h >>conftest.$ac_ext
33111 cat >>conftest.$ac_ext <<_ACEOF
33112 /* end confdefs.h.  */
33113 #include <cmath>
33114 int
33115 main ()
33116 {
33117 float f; isinf(f);
33118   ;
33119   return 0;
33120 }
33121 _ACEOF
33122 rm -f conftest.$ac_objext
33123 if { (ac_try="$ac_compile"
33124 case "(($ac_try" in
33125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33126   *) ac_try_echo=$ac_try;;
33127 esac
33128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33129   (eval "$ac_compile") 2>conftest.er1
33130   ac_status=$?
33131   grep -v '^ *+' conftest.er1 >conftest.err
33132   rm -f conftest.er1
33133   cat conftest.err >&5
33134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33135   (exit $ac_status); } &&
33136          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33137   { (case "(($ac_try" in
33138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33139   *) ac_try_echo=$ac_try;;
33140 esac
33141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33142   (eval "$ac_try") 2>&5
33143   ac_status=$?
33144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33145   (exit $ac_status); }; } &&
33146          { ac_try='test -s conftest.$ac_objext'
33147   { (case "(($ac_try" in
33148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33149   *) ac_try_echo=$ac_try;;
33150 esac
33151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33152   (eval "$ac_try") 2>&5
33153   ac_status=$?
33154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33155   (exit $ac_status); }; }; then
33156   ac_cv_func_isinf_in_cmath=yes
33157 else
33158   echo "$as_me: failed program was:" >&5
33159 sed 's/^/| /' conftest.$ac_ext >&5
33160
33161         ac_cv_func_isinf_in_cmath=no
33162 fi
33163
33164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33165   ac_ext=c
33166 ac_cpp='$CPP $CPPFLAGS'
33167 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33168 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33169 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33170
33171 fi
33172 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
33173 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
33174
33175 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
33176
33177 cat >>confdefs.h <<\_ACEOF
33178 #define HAVE_ISINF_IN_CMATH 1
33179 _ACEOF
33180
33181 fi
33182
33183 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33184 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
33185 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33186   echo $ECHO_N "(cached) $ECHO_C" >&6
33187 else
33188   ac_ext=cpp
33189 ac_cpp='$CXXCPP $CPPFLAGS'
33190 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33191 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33192 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33193
33194    cat >conftest.$ac_ext <<_ACEOF
33195 /* confdefs.h.  */
33196 _ACEOF
33197 cat confdefs.h >>conftest.$ac_ext
33198 cat >>conftest.$ac_ext <<_ACEOF
33199 /* end confdefs.h.  */
33200 #include <cmath>
33201 int
33202 main ()
33203 {
33204 float f; std::isinf(f)}
33205   ;
33206   return 0;
33207 }
33208 _ACEOF
33209 rm -f conftest.$ac_objext
33210 if { (ac_try="$ac_compile"
33211 case "(($ac_try" in
33212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33213   *) ac_try_echo=$ac_try;;
33214 esac
33215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33216   (eval "$ac_compile") 2>conftest.er1
33217   ac_status=$?
33218   grep -v '^ *+' conftest.er1 >conftest.err
33219   rm -f conftest.er1
33220   cat conftest.err >&5
33221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33222   (exit $ac_status); } &&
33223          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33224   { (case "(($ac_try" in
33225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33226   *) ac_try_echo=$ac_try;;
33227 esac
33228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33229   (eval "$ac_try") 2>&5
33230   ac_status=$?
33231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33232   (exit $ac_status); }; } &&
33233          { ac_try='test -s conftest.$ac_objext'
33234   { (case "(($ac_try" in
33235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33236   *) ac_try_echo=$ac_try;;
33237 esac
33238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33239   (eval "$ac_try") 2>&5
33240   ac_status=$?
33241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33242   (exit $ac_status); }; }; then
33243   ac_cv_func_std_isinf_in_cmath=yes
33244 else
33245   echo "$as_me: failed program was:" >&5
33246 sed 's/^/| /' conftest.$ac_ext >&5
33247
33248         ac_cv_func_std_isinf_in_cmath=no
33249 fi
33250
33251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33252   ac_ext=c
33253 ac_cpp='$CPP $CPPFLAGS'
33254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33257
33258 fi
33259 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
33260 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
33261
33262 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
33263
33264 cat >>confdefs.h <<\_ACEOF
33265 #define HAVE_STD_ISINF_IN_CMATH 1
33266 _ACEOF
33267
33268 fi
33269
33270 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
33271 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
33272 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
33273   echo $ECHO_N "(cached) $ECHO_C" >&6
33274 else
33275   ac_ext=cpp
33276 ac_cpp='$CXXCPP $CPPFLAGS'
33277 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33278 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33279 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33280
33281    cat >conftest.$ac_ext <<_ACEOF
33282 /* confdefs.h.  */
33283 _ACEOF
33284 cat confdefs.h >>conftest.$ac_ext
33285 cat >>conftest.$ac_ext <<_ACEOF
33286 /* end confdefs.h.  */
33287 #include <ieeefp.h>
33288 int
33289 main ()
33290 {
33291 float f; finite(f);
33292   ;
33293   return 0;
33294 }
33295 _ACEOF
33296 rm -f conftest.$ac_objext
33297 if { (ac_try="$ac_compile"
33298 case "(($ac_try" in
33299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33300   *) ac_try_echo=$ac_try;;
33301 esac
33302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33303   (eval "$ac_compile") 2>conftest.er1
33304   ac_status=$?
33305   grep -v '^ *+' conftest.er1 >conftest.err
33306   rm -f conftest.er1
33307   cat conftest.err >&5
33308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33309   (exit $ac_status); } &&
33310          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33311   { (case "(($ac_try" in
33312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33313   *) ac_try_echo=$ac_try;;
33314 esac
33315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33316   (eval "$ac_try") 2>&5
33317   ac_status=$?
33318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33319   (exit $ac_status); }; } &&
33320          { ac_try='test -s conftest.$ac_objext'
33321   { (case "(($ac_try" in
33322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33323   *) ac_try_echo=$ac_try;;
33324 esac
33325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33326   (eval "$ac_try") 2>&5
33327   ac_status=$?
33328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33329   (exit $ac_status); }; }; then
33330   ac_cv_func_finite_in_ieeefp_h=yes
33331 else
33332   echo "$as_me: failed program was:" >&5
33333 sed 's/^/| /' conftest.$ac_ext >&5
33334
33335         ac_cv_func_finite_in_ieeefp_h=no
33336 fi
33337
33338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33339   ac_ext=c
33340 ac_cpp='$CPP $CPPFLAGS'
33341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33344
33345 fi
33346 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
33347 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
33348
33349 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
33350
33351 cat >>confdefs.h <<\_ACEOF
33352 #define HAVE_FINITE_IN_IEEEFP_H 1
33353 _ACEOF
33354
33355 fi
33356
33357
33358
33359 if test "$llvm_cv_platform_type" = "Unix" ; then
33360
33361
33362 for ac_header in stdlib.h unistd.h
33363 do
33364 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33365 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33366   { echo "$as_me:$LINENO: checking for $ac_header" >&5
33367 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33368 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33369   echo $ECHO_N "(cached) $ECHO_C" >&6
33370 fi
33371 ac_res=`eval echo '${'$as_ac_Header'}'`
33372                { echo "$as_me:$LINENO: result: $ac_res" >&5
33373 echo "${ECHO_T}$ac_res" >&6; }
33374 else
33375   # Is the header compilable?
33376 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
33377 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33378 cat >conftest.$ac_ext <<_ACEOF
33379 /* confdefs.h.  */
33380 _ACEOF
33381 cat confdefs.h >>conftest.$ac_ext
33382 cat >>conftest.$ac_ext <<_ACEOF
33383 /* end confdefs.h.  */
33384 $ac_includes_default
33385 #include <$ac_header>
33386 _ACEOF
33387 rm -f conftest.$ac_objext
33388 if { (ac_try="$ac_compile"
33389 case "(($ac_try" in
33390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33391   *) ac_try_echo=$ac_try;;
33392 esac
33393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33394   (eval "$ac_compile") 2>conftest.er1
33395   ac_status=$?
33396   grep -v '^ *+' conftest.er1 >conftest.err
33397   rm -f conftest.er1
33398   cat conftest.err >&5
33399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33400   (exit $ac_status); } &&
33401          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33402   { (case "(($ac_try" in
33403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33404   *) ac_try_echo=$ac_try;;
33405 esac
33406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33407   (eval "$ac_try") 2>&5
33408   ac_status=$?
33409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33410   (exit $ac_status); }; } &&
33411          { ac_try='test -s conftest.$ac_objext'
33412   { (case "(($ac_try" in
33413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33414   *) ac_try_echo=$ac_try;;
33415 esac
33416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33417   (eval "$ac_try") 2>&5
33418   ac_status=$?
33419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33420   (exit $ac_status); }; }; then
33421   ac_header_compiler=yes
33422 else
33423   echo "$as_me: failed program was:" >&5
33424 sed 's/^/| /' conftest.$ac_ext >&5
33425
33426         ac_header_compiler=no
33427 fi
33428
33429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33430 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33431 echo "${ECHO_T}$ac_header_compiler" >&6; }
33432
33433 # Is the header present?
33434 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
33435 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33436 cat >conftest.$ac_ext <<_ACEOF
33437 /* confdefs.h.  */
33438 _ACEOF
33439 cat confdefs.h >>conftest.$ac_ext
33440 cat >>conftest.$ac_ext <<_ACEOF
33441 /* end confdefs.h.  */
33442 #include <$ac_header>
33443 _ACEOF
33444 if { (ac_try="$ac_cpp conftest.$ac_ext"
33445 case "(($ac_try" in
33446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33447   *) ac_try_echo=$ac_try;;
33448 esac
33449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33450   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33451   ac_status=$?
33452   grep -v '^ *+' conftest.er1 >conftest.err
33453   rm -f conftest.er1
33454   cat conftest.err >&5
33455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33456   (exit $ac_status); } >/dev/null; then
33457   if test -s conftest.err; then
33458     ac_cpp_err=$ac_c_preproc_warn_flag
33459     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33460   else
33461     ac_cpp_err=
33462   fi
33463 else
33464   ac_cpp_err=yes
33465 fi
33466 if test -z "$ac_cpp_err"; then
33467   ac_header_preproc=yes
33468 else
33469   echo "$as_me: failed program was:" >&5
33470 sed 's/^/| /' conftest.$ac_ext >&5
33471
33472   ac_header_preproc=no
33473 fi
33474
33475 rm -f conftest.err conftest.$ac_ext
33476 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33477 echo "${ECHO_T}$ac_header_preproc" >&6; }
33478
33479 # So?  What about this header?
33480 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33481   yes:no: )
33482     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33483 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33484     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33485 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33486     ac_header_preproc=yes
33487     ;;
33488   no:yes:* )
33489     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33490 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33491     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33492 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33493     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33494 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33495     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33496 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33497     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33498 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33499     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33500 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33501     ( cat <<\_ASBOX
33502 ## ----------------------------------- ##
33503 ## Report this to llvmbugs@cs.uiuc.edu ##
33504 ## ----------------------------------- ##
33505 _ASBOX
33506      ) | sed "s/^/$as_me: WARNING:     /" >&2
33507     ;;
33508 esac
33509 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33510 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33511 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33512   echo $ECHO_N "(cached) $ECHO_C" >&6
33513 else
33514   eval "$as_ac_Header=\$ac_header_preproc"
33515 fi
33516 ac_res=`eval echo '${'$as_ac_Header'}'`
33517                { echo "$as_me:$LINENO: result: $ac_res" >&5
33518 echo "${ECHO_T}$ac_res" >&6; }
33519
33520 fi
33521 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33522   cat >>confdefs.h <<_ACEOF
33523 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33524 _ACEOF
33525
33526 fi
33527
33528 done
33529
33530
33531 for ac_func in getpagesize
33532 do
33533 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33534 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33535 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33536 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33537   echo $ECHO_N "(cached) $ECHO_C" >&6
33538 else
33539   cat >conftest.$ac_ext <<_ACEOF
33540 /* confdefs.h.  */
33541 _ACEOF
33542 cat confdefs.h >>conftest.$ac_ext
33543 cat >>conftest.$ac_ext <<_ACEOF
33544 /* end confdefs.h.  */
33545 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33546    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33547 #define $ac_func innocuous_$ac_func
33548
33549 /* System header to define __stub macros and hopefully few prototypes,
33550     which can conflict with char $ac_func (); below.
33551     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33552     <limits.h> exists even on freestanding compilers.  */
33553
33554 #ifdef __STDC__
33555 # include <limits.h>
33556 #else
33557 # include <assert.h>
33558 #endif
33559
33560 #undef $ac_func
33561
33562 /* Override any GCC internal prototype to avoid an error.
33563    Use char because int might match the return type of a GCC
33564    builtin and then its argument prototype would still apply.  */
33565 #ifdef __cplusplus
33566 extern "C"
33567 #endif
33568 char $ac_func ();
33569 /* The GNU C library defines this for functions which it implements
33570     to always fail with ENOSYS.  Some functions are actually named
33571     something starting with __ and the normal name is an alias.  */
33572 #if defined __stub_$ac_func || defined __stub___$ac_func
33573 choke me
33574 #endif
33575
33576 int
33577 main ()
33578 {
33579 return $ac_func ();
33580   ;
33581   return 0;
33582 }
33583 _ACEOF
33584 rm -f conftest.$ac_objext conftest$ac_exeext
33585 if { (ac_try="$ac_link"
33586 case "(($ac_try" in
33587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33588   *) ac_try_echo=$ac_try;;
33589 esac
33590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33591   (eval "$ac_link") 2>conftest.er1
33592   ac_status=$?
33593   grep -v '^ *+' conftest.er1 >conftest.err
33594   rm -f conftest.er1
33595   cat conftest.err >&5
33596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33597   (exit $ac_status); } &&
33598          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33599   { (case "(($ac_try" in
33600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33601   *) ac_try_echo=$ac_try;;
33602 esac
33603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33604   (eval "$ac_try") 2>&5
33605   ac_status=$?
33606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33607   (exit $ac_status); }; } &&
33608          { ac_try='test -s conftest$ac_exeext'
33609   { (case "(($ac_try" in
33610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33611   *) ac_try_echo=$ac_try;;
33612 esac
33613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33614   (eval "$ac_try") 2>&5
33615   ac_status=$?
33616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33617   (exit $ac_status); }; }; then
33618   eval "$as_ac_var=yes"
33619 else
33620   echo "$as_me: failed program was:" >&5
33621 sed 's/^/| /' conftest.$ac_ext >&5
33622
33623         eval "$as_ac_var=no"
33624 fi
33625
33626 rm -f core conftest.err conftest.$ac_objext \
33627       conftest$ac_exeext conftest.$ac_ext
33628 fi
33629 ac_res=`eval echo '${'$as_ac_var'}'`
33630                { echo "$as_me:$LINENO: result: $ac_res" >&5
33631 echo "${ECHO_T}$ac_res" >&6; }
33632 if test `eval echo '${'$as_ac_var'}'` = yes; then
33633   cat >>confdefs.h <<_ACEOF
33634 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33635 _ACEOF
33636
33637 fi
33638 done
33639
33640 { echo "$as_me:$LINENO: checking for working mmap" >&5
33641 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
33642 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33643   echo $ECHO_N "(cached) $ECHO_C" >&6
33644 else
33645   if test "$cross_compiling" = yes; then
33646   ac_cv_func_mmap_fixed_mapped=no
33647 else
33648   cat >conftest.$ac_ext <<_ACEOF
33649 /* confdefs.h.  */
33650 _ACEOF
33651 cat confdefs.h >>conftest.$ac_ext
33652 cat >>conftest.$ac_ext <<_ACEOF
33653 /* end confdefs.h.  */
33654 $ac_includes_default
33655 /* malloc might have been renamed as rpl_malloc. */
33656 #undef malloc
33657
33658 /* Thanks to Mike Haertel and Jim Avera for this test.
33659    Here is a matrix of mmap possibilities:
33660         mmap private not fixed
33661         mmap private fixed at somewhere currently unmapped
33662         mmap private fixed at somewhere already mapped
33663         mmap shared not fixed
33664         mmap shared fixed at somewhere currently unmapped
33665         mmap shared fixed at somewhere already mapped
33666    For private mappings, we should verify that changes cannot be read()
33667    back from the file, nor mmap's back from the file at a different
33668    address.  (There have been systems where private was not correctly
33669    implemented like the infamous i386 svr4.0, and systems where the
33670    VM page cache was not coherent with the file system buffer cache
33671    like early versions of FreeBSD and possibly contemporary NetBSD.)
33672    For shared mappings, we should conversely verify that changes get
33673    propagated back to all the places they're supposed to be.
33674
33675    Grep wants private fixed already mapped.
33676    The main things grep needs to know about mmap are:
33677    * does it exist and is it safe to write into the mmap'd area
33678    * how to use it (BSD variants)  */
33679
33680 #include <fcntl.h>
33681 #include <sys/mman.h>
33682
33683 #if !STDC_HEADERS && !HAVE_STDLIB_H
33684 char *malloc ();
33685 #endif
33686
33687 /* This mess was copied from the GNU getpagesize.h.  */
33688 #if !HAVE_GETPAGESIZE
33689 /* Assume that all systems that can run configure have sys/param.h.  */
33690 # if !HAVE_SYS_PARAM_H
33691 #  define HAVE_SYS_PARAM_H 1
33692 # endif
33693
33694 # ifdef _SC_PAGESIZE
33695 #  define getpagesize() sysconf(_SC_PAGESIZE)
33696 # else /* no _SC_PAGESIZE */
33697 #  if HAVE_SYS_PARAM_H
33698 #   include <sys/param.h>
33699 #   ifdef EXEC_PAGESIZE
33700 #    define getpagesize() EXEC_PAGESIZE
33701 #   else /* no EXEC_PAGESIZE */
33702 #    ifdef NBPG
33703 #     define getpagesize() NBPG * CLSIZE
33704 #     ifndef CLSIZE
33705 #      define CLSIZE 1
33706 #     endif /* no CLSIZE */
33707 #    else /* no NBPG */
33708 #     ifdef NBPC
33709 #      define getpagesize() NBPC
33710 #     else /* no NBPC */
33711 #      ifdef PAGESIZE
33712 #       define getpagesize() PAGESIZE
33713 #      endif /* PAGESIZE */
33714 #     endif /* no NBPC */
33715 #    endif /* no NBPG */
33716 #   endif /* no EXEC_PAGESIZE */
33717 #  else /* no HAVE_SYS_PARAM_H */
33718 #   define getpagesize() 8192   /* punt totally */
33719 #  endif /* no HAVE_SYS_PARAM_H */
33720 # endif /* no _SC_PAGESIZE */
33721
33722 #endif /* no HAVE_GETPAGESIZE */
33723
33724 int
33725 main ()
33726 {
33727   char *data, *data2, *data3;
33728   int i, pagesize;
33729   int fd;
33730
33731   pagesize = getpagesize ();
33732
33733   /* First, make a file with some known garbage in it. */
33734   data = (char *) malloc (pagesize);
33735   if (!data)
33736     return 1;
33737   for (i = 0; i < pagesize; ++i)
33738     *(data + i) = rand ();
33739   umask (0);
33740   fd = creat ("conftest.mmap", 0600);
33741   if (fd < 0)
33742     return 1;
33743   if (write (fd, data, pagesize) != pagesize)
33744     return 1;
33745   close (fd);
33746
33747   /* Next, try to mmap the file at a fixed address which already has
33748      something else allocated at it.  If we can, also make sure that
33749      we see the same garbage.  */
33750   fd = open ("conftest.mmap", O_RDWR);
33751   if (fd < 0)
33752     return 1;
33753   data2 = (char *) malloc (2 * pagesize);
33754   if (!data2)
33755     return 1;
33756   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
33757   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
33758                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
33759     return 1;
33760   for (i = 0; i < pagesize; ++i)
33761     if (*(data + i) != *(data2 + i))
33762       return 1;
33763
33764   /* Finally, make sure that changes to the mapped area do not
33765      percolate back to the file as seen by read().  (This is a bug on
33766      some variants of i386 svr4.0.)  */
33767   for (i = 0; i < pagesize; ++i)
33768     *(data2 + i) = *(data2 + i) + 1;
33769   data3 = (char *) malloc (pagesize);
33770   if (!data3)
33771     return 1;
33772   if (read (fd, data3, pagesize) != pagesize)
33773     return 1;
33774   for (i = 0; i < pagesize; ++i)
33775     if (*(data + i) != *(data3 + i))
33776       return 1;
33777   close (fd);
33778   return 0;
33779 }
33780 _ACEOF
33781 rm -f conftest$ac_exeext
33782 if { (ac_try="$ac_link"
33783 case "(($ac_try" in
33784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33785   *) ac_try_echo=$ac_try;;
33786 esac
33787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33788   (eval "$ac_link") 2>&5
33789   ac_status=$?
33790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33791   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33792   { (case "(($ac_try" in
33793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33794   *) ac_try_echo=$ac_try;;
33795 esac
33796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33797   (eval "$ac_try") 2>&5
33798   ac_status=$?
33799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33800   (exit $ac_status); }; }; then
33801   ac_cv_func_mmap_fixed_mapped=yes
33802 else
33803   echo "$as_me: program exited with status $ac_status" >&5
33804 echo "$as_me: failed program was:" >&5
33805 sed 's/^/| /' conftest.$ac_ext >&5
33806
33807 ( exit $ac_status )
33808 ac_cv_func_mmap_fixed_mapped=no
33809 fi
33810 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33811 fi
33812
33813
33814 fi
33815 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33816 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
33817 if test $ac_cv_func_mmap_fixed_mapped = yes; then
33818
33819 cat >>confdefs.h <<\_ACEOF
33820 #define HAVE_MMAP 1
33821 _ACEOF
33822
33823 fi
33824 rm -f conftest.mmap
33825
33826   { echo "$as_me:$LINENO: checking for mmap of files" >&5
33827 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
33828 if test "${ac_cv_func_mmap_file+set}" = set; then
33829   echo $ECHO_N "(cached) $ECHO_C" >&6
33830 else
33831    ac_ext=c
33832 ac_cpp='$CPP $CPPFLAGS'
33833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33836
33837   if test "$cross_compiling" = yes; then
33838   ac_cv_func_mmap_file=no
33839 else
33840   cat >conftest.$ac_ext <<_ACEOF
33841
33842     /* confdefs.h.  */
33843 _ACEOF
33844 cat confdefs.h >>conftest.$ac_ext
33845 cat >>conftest.$ac_ext <<_ACEOF
33846 /* end confdefs.h.  */
33847
33848 #include <sys/types.h>
33849 #include <sys/mman.h>
33850 #include <fcntl.h>
33851
33852 int
33853 main ()
33854 {
33855
33856   int fd;
33857   fd = creat ("foo",0777);
33858   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33859   unlink ("foo");
33860   return (fd != (int) MAP_FAILED);
33861   ;
33862   return 0;
33863 }
33864 _ACEOF
33865 rm -f conftest$ac_exeext
33866 if { (ac_try="$ac_link"
33867 case "(($ac_try" in
33868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33869   *) ac_try_echo=$ac_try;;
33870 esac
33871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33872   (eval "$ac_link") 2>&5
33873   ac_status=$?
33874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33875   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33876   { (case "(($ac_try" in
33877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33878   *) ac_try_echo=$ac_try;;
33879 esac
33880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33881   (eval "$ac_try") 2>&5
33882   ac_status=$?
33883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33884   (exit $ac_status); }; }; then
33885   ac_cv_func_mmap_file=yes
33886 else
33887   echo "$as_me: program exited with status $ac_status" >&5
33888 echo "$as_me: failed program was:" >&5
33889 sed 's/^/| /' conftest.$ac_ext >&5
33890
33891 ( exit $ac_status )
33892 ac_cv_func_mmap_file=no
33893 fi
33894 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33895 fi
33896
33897
33898   ac_ext=c
33899 ac_cpp='$CPP $CPPFLAGS'
33900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33903
33904
33905 fi
33906 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33907 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
33908 if test "$ac_cv_func_mmap_file" = yes; then
33909
33910 cat >>confdefs.h <<\_ACEOF
33911 #define HAVE_MMAP_FILE
33912 _ACEOF
33913
33914    MMAP_FILE=yes
33915
33916 fi
33917
33918   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
33919 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
33920 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33921   echo $ECHO_N "(cached) $ECHO_C" >&6
33922 else
33923   if test "$llvm_cv_os_type" = "Interix" ; then
33924    ac_cv_need_dev_zero_for_mmap=yes
33925  else
33926    ac_cv_need_dev_zero_for_mmap=no
33927  fi
33928
33929 fi
33930 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33931 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
33932 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33933
33934 cat >>confdefs.h <<\_ACEOF
33935 #define NEED_DEV_ZERO_FOR_MMAP 1
33936 _ACEOF
33937
33938 fi
33939
33940   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33941   then
33942     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
33943 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
33944   fi
33945   if test "$ac_cv_func_mmap_file" = "no"
33946   then
33947     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
33948 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
33949   fi
33950 fi
33951
33952
33953
33954 for ac_func in __dso_handle
33955 do
33956 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33957 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33958 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33959 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33960   echo $ECHO_N "(cached) $ECHO_C" >&6
33961 else
33962   cat >conftest.$ac_ext <<_ACEOF
33963 /* confdefs.h.  */
33964 _ACEOF
33965 cat confdefs.h >>conftest.$ac_ext
33966 cat >>conftest.$ac_ext <<_ACEOF
33967 /* end confdefs.h.  */
33968 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33969    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33970 #define $ac_func innocuous_$ac_func
33971
33972 /* System header to define __stub macros and hopefully few prototypes,
33973     which can conflict with char $ac_func (); below.
33974     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33975     <limits.h> exists even on freestanding compilers.  */
33976
33977 #ifdef __STDC__
33978 # include <limits.h>
33979 #else
33980 # include <assert.h>
33981 #endif
33982
33983 #undef $ac_func
33984
33985 /* Override any GCC internal prototype to avoid an error.
33986    Use char because int might match the return type of a GCC
33987    builtin and then its argument prototype would still apply.  */
33988 #ifdef __cplusplus
33989 extern "C"
33990 #endif
33991 char $ac_func ();
33992 /* The GNU C library defines this for functions which it implements
33993     to always fail with ENOSYS.  Some functions are actually named
33994     something starting with __ and the normal name is an alias.  */
33995 #if defined __stub_$ac_func || defined __stub___$ac_func
33996 choke me
33997 #endif
33998
33999 int
34000 main ()
34001 {
34002 return $ac_func ();
34003   ;
34004   return 0;
34005 }
34006 _ACEOF
34007 rm -f conftest.$ac_objext conftest$ac_exeext
34008 if { (ac_try="$ac_link"
34009 case "(($ac_try" in
34010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34011   *) ac_try_echo=$ac_try;;
34012 esac
34013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34014   (eval "$ac_link") 2>conftest.er1
34015   ac_status=$?
34016   grep -v '^ *+' conftest.er1 >conftest.err
34017   rm -f conftest.er1
34018   cat conftest.err >&5
34019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34020   (exit $ac_status); } &&
34021          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34022   { (case "(($ac_try" in
34023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34024   *) ac_try_echo=$ac_try;;
34025 esac
34026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34027   (eval "$ac_try") 2>&5
34028   ac_status=$?
34029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34030   (exit $ac_status); }; } &&
34031          { ac_try='test -s conftest$ac_exeext'
34032   { (case "(($ac_try" in
34033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34034   *) ac_try_echo=$ac_try;;
34035 esac
34036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34037   (eval "$ac_try") 2>&5
34038   ac_status=$?
34039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34040   (exit $ac_status); }; }; then
34041   eval "$as_ac_var=yes"
34042 else
34043   echo "$as_me: failed program was:" >&5
34044 sed 's/^/| /' conftest.$ac_ext >&5
34045
34046         eval "$as_ac_var=no"
34047 fi
34048
34049 rm -f core conftest.err conftest.$ac_objext \
34050       conftest$ac_exeext conftest.$ac_ext
34051 fi
34052 ac_res=`eval echo '${'$as_ac_var'}'`
34053                { echo "$as_me:$LINENO: result: $ac_res" >&5
34054 echo "${ECHO_T}$ac_res" >&6; }
34055 if test `eval echo '${'$as_ac_var'}'` = yes; then
34056   cat >>confdefs.h <<_ACEOF
34057 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34058 _ACEOF
34059
34060 fi
34061 done
34062
34063
34064 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
34065 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
34066 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
34067   echo $ECHO_N "(cached) $ECHO_C" >&6
34068 else
34069   llvm_cv_llvmgcc_sanity="no"
34070 if test -x "$LLVMGCC" ; then
34071   cp /dev/null conftest.c
34072   "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
34073       grep 'target datalayout =' > /dev/null 2>&1
34074   if test $? -eq 0 ; then
34075     llvm_cv_llvmgcc_sanity="yes"
34076   fi
34077   rm conftest.c
34078 fi
34079 fi
34080 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
34081 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
34082
34083 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
34084   { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
34085 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
34086   llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
34087   LLVMCC1=$llvmcc1path
34088
34089   llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
34090   LLVMCC1PLUS=$llvmcc1pluspath
34091
34092   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
34093   LLVMGCCDIR=$llvmgccdir
34094
34095   llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
34096   LLVMGCCLIBEXEC=$llvmgcclibexec
34097
34098   llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
34099   llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
34100   LLVMGCC_VERSION=$llvmgccversion
34101
34102   LLVMGCC_MAJVERS=$llvmgccmajvers
34103
34104   llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ -]*\).*/\1/'`
34105   LLVMGCC_LANGS=$llvmgcclangs
34106
34107   { echo "$as_me:$LINENO: result: ok" >&5
34108 echo "${ECHO_T}ok" >&6; }
34109 fi
34110
34111 SHLIBEXT=$libltdl_cv_shlibext
34112
34113
34114 # Translate the various configuration directories and other basic
34115 # information into substitutions that will end up in Makefile.config.in
34116 # that these configured values can be used by the makefiles
34117 if test "${prefix}" = "NONE" ; then
34118   prefix="/usr/local"
34119 fi
34120 eval LLVM_PREFIX="${prefix}";
34121 eval LLVM_BINDIR="${prefix}/bin";
34122 eval LLVM_LIBDIR="${prefix}/lib";
34123 eval LLVM_DATADIR="${prefix}/share/llvm";
34124 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
34125 eval LLVM_ETCDIR="${prefix}/etc/llvm";
34126 eval LLVM_INCLUDEDIR="${prefix}/include";
34127 eval LLVM_INFODIR="${prefix}/info";
34128 eval LLVM_MANDIR="${prefix}/man";
34129 LLVM_CONFIGTIME=`date`
34130
34131
34132
34133
34134
34135
34136
34137
34138
34139
34140
34141 # Place the various directores into the config.h file as #defines so that we
34142 # can know about the installation paths within LLVM.
34143
34144 cat >>confdefs.h <<_ACEOF
34145 #define LLVM_PREFIX "$LLVM_PREFIX"
34146 _ACEOF
34147
34148
34149 cat >>confdefs.h <<_ACEOF
34150 #define LLVM_BINDIR "$LLVM_BINDIR"
34151 _ACEOF
34152
34153
34154 cat >>confdefs.h <<_ACEOF
34155 #define LLVM_LIBDIR "$LLVM_LIBDIR"
34156 _ACEOF
34157
34158
34159 cat >>confdefs.h <<_ACEOF
34160 #define LLVM_DATADIR "$LLVM_DATADIR"
34161 _ACEOF
34162
34163
34164 cat >>confdefs.h <<_ACEOF
34165 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
34166 _ACEOF
34167
34168
34169 cat >>confdefs.h <<_ACEOF
34170 #define LLVM_ETCDIR "$LLVM_ETCDIR"
34171 _ACEOF
34172
34173
34174 cat >>confdefs.h <<_ACEOF
34175 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
34176 _ACEOF
34177
34178
34179 cat >>confdefs.h <<_ACEOF
34180 #define LLVM_INFODIR "$LLVM_INFODIR"
34181 _ACEOF
34182
34183
34184 cat >>confdefs.h <<_ACEOF
34185 #define LLVM_MANDIR "$LLVM_MANDIR"
34186 _ACEOF
34187
34188
34189 cat >>confdefs.h <<_ACEOF
34190 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
34191 _ACEOF
34192
34193
34194 cat >>confdefs.h <<_ACEOF
34195 #define LLVM_HOSTTRIPLE "$host"
34196 _ACEOF
34197
34198
34199 # Determine which bindings to build.
34200 if test "$BINDINGS_TO_BUILD" = auto ; then
34201   BINDINGS_TO_BUILD=""
34202   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
34203     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
34204   fi
34205 fi
34206 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
34207
34208
34209 # This isn't really configurey, but it avoids having to repeat the list in
34210 # other files.
34211 ALL_BINDINGS=ocaml
34212
34213
34214 # Do any work necessary to ensure that bindings have what they need.
34215 binding_prereqs_failed=0
34216 for a_binding in $BINDINGS_TO_BUILD ; do
34217   case "$a_binding" in
34218   ocaml)
34219     if test "x$OCAMLC" = x ; then
34220       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
34221 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
34222       binding_prereqs_failed=1
34223     fi
34224     if test "x$OCAMLDEP" = x ; then
34225       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
34226 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
34227       binding_prereqs_failed=1
34228     fi
34229     if test "x$OCAMLOPT" = x ; then
34230       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
34231 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
34232           fi
34233     if test "x$with_ocaml_libdir" != xauto ; then
34234       OCAML_LIBDIR=$with_ocaml_libdir
34235
34236     else
34237       ocaml_stdlib="`"$OCAMLC" -where`"
34238       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
34239       then
34240         # ocaml stdlib is beneath our prefix; use stdlib
34241         OCAML_LIBDIR=$ocaml_stdlib
34242
34243       else
34244         # ocaml stdlib is outside our prefix; use libdir/ocaml
34245         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
34246
34247       fi
34248     fi
34249     ;;
34250   esac
34251 done
34252 if test "$binding_prereqs_failed" = 1 ; then
34253   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
34254 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
34255    { (exit 1); exit 1; }; }
34256 fi
34257
34258
34259
34260 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
34261
34262 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
34263
34264 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
34265
34266 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
34267
34268 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
34269
34270
34271 ac_config_files="$ac_config_files Makefile.config"
34272
34273
34274 ac_config_files="$ac_config_files llvm.spec"
34275
34276
34277 ac_config_files="$ac_config_files docs/doxygen.cfg"
34278
34279
34280 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
34281
34282
34283 ac_config_commands="$ac_config_commands setup"
34284
34285 ac_config_commands="$ac_config_commands Makefile"
34286
34287
34288 ac_config_commands="$ac_config_commands Makefile.common"
34289
34290
34291 ac_config_commands="$ac_config_commands examples/Makefile"
34292
34293
34294 ac_config_commands="$ac_config_commands lib/Makefile"
34295
34296
34297 ac_config_commands="$ac_config_commands runtime/Makefile"
34298
34299
34300 ac_config_commands="$ac_config_commands test/Makefile"
34301
34302
34303 ac_config_commands="$ac_config_commands test/Makefile.tests"
34304
34305
34306 ac_config_commands="$ac_config_commands tools/Makefile"
34307
34308
34309 ac_config_commands="$ac_config_commands utils/Makefile"
34310
34311
34312 ac_config_commands="$ac_config_commands projects/Makefile"
34313
34314
34315 ac_config_commands="$ac_config_commands bindings/Makefile"
34316
34317
34318 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
34319
34320
34321
34322 cat >confcache <<\_ACEOF
34323 # This file is a shell script that caches the results of configure
34324 # tests run on this system so they can be shared between configure
34325 # scripts and configure runs, see configure's option --config-cache.
34326 # It is not useful on other systems.  If it contains results you don't
34327 # want to keep, you may remove or edit it.
34328 #
34329 # config.status only pays attention to the cache file if you give it
34330 # the --recheck option to rerun configure.
34331 #
34332 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34333 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34334 # following values.
34335
34336 _ACEOF
34337
34338 # The following way of writing the cache mishandles newlines in values,
34339 # but we know of no workaround that is simple, portable, and efficient.
34340 # So, we kill variables containing newlines.
34341 # Ultrix sh set writes to stderr and can't be redirected directly,
34342 # and sets the high bit in the cache file unless we assign to the vars.
34343 (
34344   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34345     eval ac_val=\$$ac_var
34346     case $ac_val in #(
34347     *${as_nl}*)
34348       case $ac_var in #(
34349       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34350 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34351       esac
34352       case $ac_var in #(
34353       _ | IFS | as_nl) ;; #(
34354       *) $as_unset $ac_var ;;
34355       esac ;;
34356     esac
34357   done
34358
34359   (set) 2>&1 |
34360     case $as_nl`(ac_space=' '; set) 2>&1` in #(
34361     *${as_nl}ac_space=\ *)
34362       # `set' does not quote correctly, so add quotes (double-quote
34363       # substitution turns \\\\ into \\, and sed turns \\ into \).
34364       sed -n \
34365         "s/'/'\\\\''/g;
34366           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34367       ;; #(
34368     *)
34369       # `set' quotes correctly as required by POSIX, so do not add quotes.
34370       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34371       ;;
34372     esac |
34373     sort
34374 ) |
34375   sed '
34376      /^ac_cv_env_/b end
34377      t clear
34378      :clear
34379      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34380      t end
34381      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34382      :end' >>confcache
34383 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34384   if test -w "$cache_file"; then
34385     test "x$cache_file" != "x/dev/null" &&
34386       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34387 echo "$as_me: updating cache $cache_file" >&6;}
34388     cat confcache >$cache_file
34389   else
34390     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34391 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34392   fi
34393 fi
34394 rm -f confcache
34395
34396 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34397 # Let make expand exec_prefix.
34398 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34399
34400 DEFS=-DHAVE_CONFIG_H
34401
34402 ac_libobjs=
34403 ac_ltlibobjs=
34404 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34405   # 1. Remove the extension, and $U if already installed.
34406   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34407   ac_i=`echo "$ac_i" | sed "$ac_script"`
34408   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
34409   #    will be set to the directory where LIBOBJS objects are built.
34410   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34411   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34412 done
34413 LIBOBJS=$ac_libobjs
34414
34415 LTLIBOBJS=$ac_ltlibobjs
34416
34417
34418 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34419   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34420 Usually this means the macro was only invoked conditionally." >&5
34421 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34422 Usually this means the macro was only invoked conditionally." >&2;}
34423    { (exit 1); exit 1; }; }
34424 fi
34425 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34426   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34427 Usually this means the macro was only invoked conditionally." >&5
34428 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34429 Usually this means the macro was only invoked conditionally." >&2;}
34430    { (exit 1); exit 1; }; }
34431 fi
34432
34433 : ${CONFIG_STATUS=./config.status}
34434 ac_clean_files_save=$ac_clean_files
34435 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34436 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34437 echo "$as_me: creating $CONFIG_STATUS" >&6;}
34438 cat >$CONFIG_STATUS <<_ACEOF
34439 #! $SHELL
34440 # Generated by $as_me.
34441 # Run this file to recreate the current configuration.
34442 # Compiler output produced by configure, useful for debugging
34443 # configure, is in config.log if it exists.
34444
34445 debug=false
34446 ac_cs_recheck=false
34447 ac_cs_silent=false
34448 SHELL=\${CONFIG_SHELL-$SHELL}
34449 _ACEOF
34450
34451 cat >>$CONFIG_STATUS <<\_ACEOF
34452 ## --------------------- ##
34453 ## M4sh Initialization.  ##
34454 ## --------------------- ##
34455
34456 # Be Bourne compatible
34457 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34458   emulate sh
34459   NULLCMD=:
34460   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34461   # is contrary to our usage.  Disable this feature.
34462   alias -g '${1+"$@"}'='"$@"'
34463   setopt NO_GLOB_SUBST
34464 else
34465   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
34466 fi
34467 BIN_SH=xpg4; export BIN_SH # for Tru64
34468 DUALCASE=1; export DUALCASE # for MKS sh
34469
34470
34471 # PATH needs CR
34472 # Avoid depending upon Character Ranges.
34473 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34474 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34475 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34476 as_cr_digits='0123456789'
34477 as_cr_alnum=$as_cr_Letters$as_cr_digits
34478
34479 # The user is always right.
34480 if test "${PATH_SEPARATOR+set}" != set; then
34481   echo "#! /bin/sh" >conf$$.sh
34482   echo  "exit 0"   >>conf$$.sh
34483   chmod +x conf$$.sh
34484   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34485     PATH_SEPARATOR=';'
34486   else
34487     PATH_SEPARATOR=:
34488   fi
34489   rm -f conf$$.sh
34490 fi
34491
34492 # Support unset when possible.
34493 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34494   as_unset=unset
34495 else
34496   as_unset=false
34497 fi
34498
34499
34500 # IFS
34501 # We need space, tab and new line, in precisely that order.  Quoting is
34502 # there to prevent editors from complaining about space-tab.
34503 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34504 # splitting by setting IFS to empty value.)
34505 as_nl='
34506 '
34507 IFS=" ""        $as_nl"
34508
34509 # Find who we are.  Look in the path if we contain no directory separator.
34510 case $0 in
34511   *[\\/]* ) as_myself=$0 ;;
34512   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34513 for as_dir in $PATH
34514 do
34515   IFS=$as_save_IFS
34516   test -z "$as_dir" && as_dir=.
34517   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34518 done
34519 IFS=$as_save_IFS
34520
34521      ;;
34522 esac
34523 # We did not find ourselves, most probably we were run as `sh COMMAND'
34524 # in which case we are not to be found in the path.
34525 if test "x$as_myself" = x; then
34526   as_myself=$0
34527 fi
34528 if test ! -f "$as_myself"; then
34529   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34530   { (exit 1); exit 1; }
34531 fi
34532
34533 # Work around bugs in pre-3.0 UWIN ksh.
34534 for as_var in ENV MAIL MAILPATH
34535 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34536 done
34537 PS1='$ '
34538 PS2='> '
34539 PS4='+ '
34540
34541 # NLS nuisances.
34542 for as_var in \
34543   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34544   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34545   LC_TELEPHONE LC_TIME
34546 do
34547   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34548     eval $as_var=C; export $as_var
34549   else
34550     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34551   fi
34552 done
34553
34554 # Required to use basename.
34555 if expr a : '\(a\)' >/dev/null 2>&1 &&
34556    test "X`expr 00001 : '.*\(...\)'`" = X001; then
34557   as_expr=expr
34558 else
34559   as_expr=false
34560 fi
34561
34562 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34563   as_basename=basename
34564 else
34565   as_basename=false
34566 fi
34567
34568
34569 # Name of the executable.
34570 as_me=`$as_basename -- "$0" ||
34571 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34572          X"$0" : 'X\(//\)$' \| \
34573          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34574 echo X/"$0" |
34575     sed '/^.*\/\([^/][^/]*\)\/*$/{
34576             s//\1/
34577             q
34578           }
34579           /^X\/\(\/\/\)$/{
34580             s//\1/
34581             q
34582           }
34583           /^X\/\(\/\).*/{
34584             s//\1/
34585             q
34586           }
34587           s/.*/./; q'`
34588
34589 # CDPATH.
34590 $as_unset CDPATH
34591
34592
34593
34594   as_lineno_1=$LINENO
34595   as_lineno_2=$LINENO
34596   test "x$as_lineno_1" != "x$as_lineno_2" &&
34597   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
34598
34599   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34600   # uniformly replaced by the line number.  The first 'sed' inserts a
34601   # line-number line after each line using $LINENO; the second 'sed'
34602   # does the real work.  The second script uses 'N' to pair each
34603   # line-number line with the line containing $LINENO, and appends
34604   # trailing '-' during substitution so that $LINENO is not a special
34605   # case at line end.
34606   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34607   # scripts with optimization help from Paolo Bonzini.  Blame Lee
34608   # E. McMahon (1931-1989) for sed's syntax.  :-)
34609   sed -n '
34610     p
34611     /[$]LINENO/=
34612   ' <$as_myself |
34613     sed '
34614       s/[$]LINENO.*/&-/
34615       t lineno
34616       b
34617       :lineno
34618       N
34619       :loop
34620       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34621       t loop
34622       s/-\n.*//
34623     ' >$as_me.lineno &&
34624   chmod +x "$as_me.lineno" ||
34625     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34626    { (exit 1); exit 1; }; }
34627
34628   # Don't try to exec as it changes $[0], causing all sort of problems
34629   # (the dirname of $[0] is not the place where we might find the
34630   # original and so on.  Autoconf is especially sensitive to this).
34631   . "./$as_me.lineno"
34632   # Exit status is that of the last command.
34633   exit
34634 }
34635
34636
34637 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34638   as_dirname=dirname
34639 else
34640   as_dirname=false
34641 fi
34642
34643 ECHO_C= ECHO_N= ECHO_T=
34644 case `echo -n x` in
34645 -n*)
34646   case `echo 'x\c'` in
34647   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
34648   *)   ECHO_C='\c';;
34649   esac;;
34650 *)
34651   ECHO_N='-n';;
34652 esac
34653
34654 if expr a : '\(a\)' >/dev/null 2>&1 &&
34655    test "X`expr 00001 : '.*\(...\)'`" = X001; then
34656   as_expr=expr
34657 else
34658   as_expr=false
34659 fi
34660
34661 rm -f conf$$ conf$$.exe conf$$.file
34662 if test -d conf$$.dir; then
34663   rm -f conf$$.dir/conf$$.file
34664 else
34665   rm -f conf$$.dir
34666   mkdir conf$$.dir
34667 fi
34668 echo >conf$$.file
34669 if ln -s conf$$.file conf$$ 2>/dev/null; then
34670   as_ln_s='ln -s'
34671   # ... but there are two gotchas:
34672   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34673   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34674   # In both cases, we have to default to `cp -p'.
34675   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34676     as_ln_s='cp -p'
34677 elif ln conf$$.file conf$$ 2>/dev/null; then
34678   as_ln_s=ln
34679 else
34680   as_ln_s='cp -p'
34681 fi
34682 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34683 rmdir conf$$.dir 2>/dev/null
34684
34685 if mkdir -p . 2>/dev/null; then
34686   as_mkdir_p=:
34687 else
34688   test -d ./-p && rmdir ./-p
34689   as_mkdir_p=false
34690 fi
34691
34692 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
34693 # systems may use methods other than mode bits to determine executability.
34694 cat >conf$$.file <<_ASEOF
34695 #! /bin/sh
34696 exit 0
34697 _ASEOF
34698 chmod +x conf$$.file
34699 if test -x conf$$.file >/dev/null 2>&1; then
34700   as_executable_p="test -x"
34701 else
34702   as_executable_p=:
34703 fi
34704 rm -f conf$$.file
34705
34706 # Sed expression to map a string onto a valid CPP name.
34707 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34708
34709 # Sed expression to map a string onto a valid variable name.
34710 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34711
34712
34713 exec 6>&1
34714
34715 # Save the log message, to keep $[0] and so on meaningful, and to
34716 # report actual input values of CONFIG_FILES etc. instead of their
34717 # values after options handling.
34718 ac_log="
34719 This file was extended by llvm $as_me 2.4svn, which was
34720 generated by GNU Autoconf 2.60.  Invocation command line was
34721
34722   CONFIG_FILES    = $CONFIG_FILES
34723   CONFIG_HEADERS  = $CONFIG_HEADERS
34724   CONFIG_LINKS    = $CONFIG_LINKS
34725   CONFIG_COMMANDS = $CONFIG_COMMANDS
34726   $ $0 $@
34727
34728 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34729 "
34730
34731 _ACEOF
34732
34733 cat >>$CONFIG_STATUS <<_ACEOF
34734 # Files that config.status was made for.
34735 config_files="$ac_config_files"
34736 config_headers="$ac_config_headers"
34737 config_commands="$ac_config_commands"
34738
34739 _ACEOF
34740
34741 cat >>$CONFIG_STATUS <<\_ACEOF
34742 ac_cs_usage="\
34743 \`$as_me' instantiates files from templates according to the
34744 current configuration.
34745
34746 Usage: $0 [OPTIONS] [FILE]...
34747
34748   -h, --help       print this help, then exit
34749   -V, --version    print version number, then exit
34750   -q, --quiet      do not print progress messages
34751   -d, --debug      don't remove temporary files
34752       --recheck    update $as_me by reconfiguring in the same conditions
34753   --file=FILE[:TEMPLATE]
34754                    instantiate the configuration file FILE
34755   --header=FILE[:TEMPLATE]
34756                    instantiate the configuration header FILE
34757
34758 Configuration files:
34759 $config_files
34760
34761 Configuration headers:
34762 $config_headers
34763
34764 Configuration commands:
34765 $config_commands
34766
34767 Report bugs to <bug-autoconf@gnu.org>."
34768
34769 _ACEOF
34770 cat >>$CONFIG_STATUS <<_ACEOF
34771 ac_cs_version="\\
34772 llvm config.status 2.4svn
34773 configured by $0, generated by GNU Autoconf 2.60,
34774   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
34775
34776 Copyright (C) 2006 Free Software Foundation, Inc.
34777 This config.status script is free software; the Free Software Foundation
34778 gives unlimited permission to copy, distribute and modify it."
34779
34780 ac_pwd='$ac_pwd'
34781 srcdir='$srcdir'
34782 INSTALL='$INSTALL'
34783 _ACEOF
34784
34785 cat >>$CONFIG_STATUS <<\_ACEOF
34786 # If no file are specified by the user, then we need to provide default
34787 # value.  By we need to know if files were specified by the user.
34788 ac_need_defaults=:
34789 while test $# != 0
34790 do
34791   case $1 in
34792   --*=*)
34793     ac_option=`expr "X$1" : 'X\([^=]*\)='`
34794     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34795     ac_shift=:
34796     ;;
34797   *)
34798     ac_option=$1
34799     ac_optarg=$2
34800     ac_shift=shift
34801     ;;
34802   esac
34803
34804   case $ac_option in
34805   # Handling of the options.
34806   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34807     ac_cs_recheck=: ;;
34808   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34809     echo "$ac_cs_version"; exit ;;
34810   --debug | --debu | --deb | --de | --d | -d )
34811     debug=: ;;
34812   --file | --fil | --fi | --f )
34813     $ac_shift
34814     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
34815     ac_need_defaults=false;;
34816   --header | --heade | --head | --hea )
34817     $ac_shift
34818     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
34819     ac_need_defaults=false;;
34820   --he | --h)
34821     # Conflict between --help and --header
34822     { echo "$as_me: error: ambiguous option: $1
34823 Try \`$0 --help' for more information." >&2
34824    { (exit 1); exit 1; }; };;
34825   --help | --hel | -h )
34826     echo "$ac_cs_usage"; exit ;;
34827   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34828   | -silent | --silent | --silen | --sile | --sil | --si | --s)
34829     ac_cs_silent=: ;;
34830
34831   # This is an error.
34832   -*) { echo "$as_me: error: unrecognized option: $1
34833 Try \`$0 --help' for more information." >&2
34834    { (exit 1); exit 1; }; } ;;
34835
34836   *) ac_config_targets="$ac_config_targets $1"
34837      ac_need_defaults=false ;;
34838
34839   esac
34840   shift
34841 done
34842
34843 ac_configure_extra_args=
34844
34845 if $ac_cs_silent; then
34846   exec 6>/dev/null
34847   ac_configure_extra_args="$ac_configure_extra_args --silent"
34848 fi
34849
34850 _ACEOF
34851 cat >>$CONFIG_STATUS <<_ACEOF
34852 if \$ac_cs_recheck; then
34853   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34854   CONFIG_SHELL=$SHELL
34855   export CONFIG_SHELL
34856   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34857 fi
34858
34859 _ACEOF
34860 cat >>$CONFIG_STATUS <<\_ACEOF
34861 exec 5>>config.log
34862 {
34863   echo
34864   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34865 ## Running $as_me. ##
34866 _ASBOX
34867   echo "$ac_log"
34868 } >&5
34869
34870 _ACEOF
34871 cat >>$CONFIG_STATUS <<_ACEOF
34872 #
34873 # INIT-COMMANDS
34874 #
34875 llvm_src="${srcdir}"
34876
34877 _ACEOF
34878
34879 cat >>$CONFIG_STATUS <<\_ACEOF
34880
34881 # Handling of arguments.
34882 for ac_config_target in $ac_config_targets
34883 do
34884   case $ac_config_target in
34885     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34886     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
34887     "include/llvm/ADT/hash_map") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
34888     "include/llvm/ADT/hash_set") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
34889     "include/llvm/ADT/iterator") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
34890     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
34891     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
34892     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
34893     "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34894     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34895     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34896     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34897     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34898     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
34899     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
34900     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34901     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
34902     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34903     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34904     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
34905     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
34906     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
34907
34908   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34909 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34910    { (exit 1); exit 1; }; };;
34911   esac
34912 done
34913
34914
34915 # If the user did not use the arguments to specify the items to instantiate,
34916 # then the envvar interface is used.  Set only those that are not.
34917 # We use the long form for the default assignment because of an extremely
34918 # bizarre bug on SunOS 4.1.3.
34919 if $ac_need_defaults; then
34920   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34921   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34922   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34923 fi
34924
34925 # Have a temporary directory for convenience.  Make it in the build tree
34926 # simply because there is no reason against having it here, and in addition,
34927 # creating and moving files from /tmp can sometimes cause problems.
34928 # Hook for its removal unless debugging.
34929 # Note that there is a small window in which the directory will not be cleaned:
34930 # after its creation but before its name has been assigned to `$tmp'.
34931 $debug ||
34932 {
34933   tmp=
34934   trap 'exit_status=$?
34935   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34936 ' 0
34937   trap '{ (exit 1); exit 1; }' 1 2 13 15
34938 }
34939 # Create a (secure) tmp directory for tmp files.
34940
34941 {
34942   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34943   test -n "$tmp" && test -d "$tmp"
34944 }  ||
34945 {
34946   tmp=./conf$$-$RANDOM
34947   (umask 077 && mkdir "$tmp")
34948 } ||
34949 {
34950    echo "$me: cannot create a temporary directory in ." >&2
34951    { (exit 1); exit 1; }
34952 }
34953
34954 #
34955 # Set up the sed scripts for CONFIG_FILES section.
34956 #
34957
34958 # No need to generate the scripts if there are no CONFIG_FILES.
34959 # This happens for instance when ./config.status config.h
34960 if test -n "$CONFIG_FILES"; then
34961
34962 _ACEOF
34963
34964
34965
34966 ac_delim='%!_!# '
34967 for ac_last_try in false false false false false :; do
34968   cat >conf$$subs.sed <<_ACEOF
34969 SHELL!$SHELL$ac_delim
34970 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34971 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34972 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34973 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34974 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34975 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34976 exec_prefix!$exec_prefix$ac_delim
34977 prefix!$prefix$ac_delim
34978 program_transform_name!$program_transform_name$ac_delim
34979 bindir!$bindir$ac_delim
34980 sbindir!$sbindir$ac_delim
34981 libexecdir!$libexecdir$ac_delim
34982 datarootdir!$datarootdir$ac_delim
34983 datadir!$datadir$ac_delim
34984 sysconfdir!$sysconfdir$ac_delim
34985 sharedstatedir!$sharedstatedir$ac_delim
34986 localstatedir!$localstatedir$ac_delim
34987 includedir!$includedir$ac_delim
34988 oldincludedir!$oldincludedir$ac_delim
34989 docdir!$docdir$ac_delim
34990 infodir!$infodir$ac_delim
34991 htmldir!$htmldir$ac_delim
34992 dvidir!$dvidir$ac_delim
34993 pdfdir!$pdfdir$ac_delim
34994 psdir!$psdir$ac_delim
34995 libdir!$libdir$ac_delim
34996 localedir!$localedir$ac_delim
34997 mandir!$mandir$ac_delim
34998 DEFS!$DEFS$ac_delim
34999 ECHO_C!$ECHO_C$ac_delim
35000 ECHO_N!$ECHO_N$ac_delim
35001 ECHO_T!$ECHO_T$ac_delim
35002 LIBS!$LIBS$ac_delim
35003 build_alias!$build_alias$ac_delim
35004 host_alias!$host_alias$ac_delim
35005 target_alias!$target_alias$ac_delim
35006 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
35007 subdirs!$subdirs$ac_delim
35008 build!$build$ac_delim
35009 build_cpu!$build_cpu$ac_delim
35010 build_vendor!$build_vendor$ac_delim
35011 build_os!$build_os$ac_delim
35012 host!$host$ac_delim
35013 host_cpu!$host_cpu$ac_delim
35014 host_vendor!$host_vendor$ac_delim
35015 host_os!$host_os$ac_delim
35016 target!$target$ac_delim
35017 target_cpu!$target_cpu$ac_delim
35018 target_vendor!$target_vendor$ac_delim
35019 target_os!$target_os$ac_delim
35020 OS!$OS$ac_delim
35021 LINKALL!$LINKALL$ac_delim
35022 NOLINKALL!$NOLINKALL$ac_delim
35023 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
35024 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
35025 ARCH!$ARCH$ac_delim
35026 ENDIAN!$ENDIAN$ac_delim
35027 CC!$CC$ac_delim
35028 CFLAGS!$CFLAGS$ac_delim
35029 LDFLAGS!$LDFLAGS$ac_delim
35030 CPPFLAGS!$CPPFLAGS$ac_delim
35031 ac_ct_CC!$ac_ct_CC$ac_delim
35032 EXEEXT!$EXEEXT$ac_delim
35033 OBJEXT!$OBJEXT$ac_delim
35034 CPP!$CPP$ac_delim
35035 GREP!$GREP$ac_delim
35036 EGREP!$EGREP$ac_delim
35037 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
35038 BUILD_CC!$BUILD_CC$ac_delim
35039 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
35040 CVSBUILD!$CVSBUILD$ac_delim
35041 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
35042 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
35043 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
35044 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
35045 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
35046 JIT!$JIT$ac_delim
35047 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
35048 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
35049 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
35050 ENABLE_PIC!$ENABLE_PIC$ac_delim
35051 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
35052 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
35053 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
35054 CXX!$CXX$ac_delim
35055 CXXFLAGS!$CXXFLAGS$ac_delim
35056 ac_ct_CXX!$ac_ct_CXX$ac_delim
35057 LEX!$LEX$ac_delim
35058 LEXLIB!$LEXLIB$ac_delim
35059 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
35060 FLEX!$FLEX$ac_delim
35061 YACC!$YACC$ac_delim
35062 YFLAGS!$YFLAGS$ac_delim
35063 BISON!$BISON$ac_delim
35064 NM!$NM$ac_delim
35065 ifGNUmake!$ifGNUmake$ac_delim
35066 _ACEOF
35067
35068   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35069     break
35070   elif $ac_last_try; then
35071     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35072 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35073    { (exit 1); exit 1; }; }
35074   else
35075     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35076   fi
35077 done
35078
35079 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35080 if test -n "$ac_eof"; then
35081   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35082   ac_eof=`expr $ac_eof + 1`
35083 fi
35084
35085 cat >>$CONFIG_STATUS <<_ACEOF
35086 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
35087 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35088 _ACEOF
35089 sed '
35090 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35091 s/^/s,@/; s/!/@,|#_!!_#|/
35092 :n
35093 t n
35094 s/'"$ac_delim"'$/,g/; t
35095 s/$/\\/; p
35096 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35097 ' >>$CONFIG_STATUS <conf$$subs.sed
35098 rm -f conf$$subs.sed
35099 cat >>$CONFIG_STATUS <<_ACEOF
35100 CEOF$ac_eof
35101 _ACEOF
35102
35103
35104 ac_delim='%!_!# '
35105 for ac_last_try in false false false false false :; do
35106   cat >conf$$subs.sed <<_ACEOF
35107 LN_S!$LN_S$ac_delim
35108 CMP!$CMP$ac_delim
35109 CP!$CP$ac_delim
35110 DATE!$DATE$ac_delim
35111 FIND!$FIND$ac_delim
35112 MKDIR!$MKDIR$ac_delim
35113 MV!$MV$ac_delim
35114 RANLIB!$RANLIB$ac_delim
35115 RM!$RM$ac_delim
35116 SED!$SED$ac_delim
35117 TAR!$TAR$ac_delim
35118 BINPWD!$BINPWD$ac_delim
35119 GRAPHVIZ!$GRAPHVIZ$ac_delim
35120 DOT!$DOT$ac_delim
35121 GV!$GV$ac_delim
35122 DOTTY!$DOTTY$ac_delim
35123 PERL!$PERL$ac_delim
35124 HAVE_PERL!$HAVE_PERL$ac_delim
35125 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
35126 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
35127 INSTALL_DATA!$INSTALL_DATA$ac_delim
35128 BZIP2!$BZIP2$ac_delim
35129 DOXYGEN!$DOXYGEN$ac_delim
35130 GROFF!$GROFF$ac_delim
35131 GZIP!$GZIP$ac_delim
35132 POD2HTML!$POD2HTML$ac_delim
35133 POD2MAN!$POD2MAN$ac_delim
35134 RUNTEST!$RUNTEST$ac_delim
35135 TCLSH!$TCLSH$ac_delim
35136 ZIP!$ZIP$ac_delim
35137 OCAMLC!$OCAMLC$ac_delim
35138 OCAMLOPT!$OCAMLOPT$ac_delim
35139 OCAMLDEP!$OCAMLDEP$ac_delim
35140 OCAMLDOC!$OCAMLDOC$ac_delim
35141 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
35142 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
35143 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
35144 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
35145 LIBADD_DL!$LIBADD_DL$ac_delim
35146 ECHO!$ECHO$ac_delim
35147 AR!$AR$ac_delim
35148 STRIP!$STRIP$ac_delim
35149 CXXCPP!$CXXCPP$ac_delim
35150 F77!$F77$ac_delim
35151 FFLAGS!$FFLAGS$ac_delim
35152 ac_ct_F77!$ac_ct_F77$ac_delim
35153 LIBTOOL!$LIBTOOL$ac_delim
35154 LLVMGCC!$LLVMGCC$ac_delim
35155 LLVMGXX!$LLVMGXX$ac_delim
35156 USE_UDIS86!$USE_UDIS86$ac_delim
35157 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
35158 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
35159 ALLOCA!$ALLOCA$ac_delim
35160 MMAP_FILE!$MMAP_FILE$ac_delim
35161 LLVMCC1!$LLVMCC1$ac_delim
35162 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
35163 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
35164 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
35165 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
35166 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
35167 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
35168 SHLIBEXT!$SHLIBEXT$ac_delim
35169 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
35170 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
35171 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
35172 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
35173 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
35174 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
35175 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
35176 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
35177 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
35178 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
35179 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
35180 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
35181 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
35182 LIBOBJS!$LIBOBJS$ac_delim
35183 LTLIBOBJS!$LTLIBOBJS$ac_delim
35184 _ACEOF
35185
35186   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 77; then
35187     break
35188   elif $ac_last_try; then
35189     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35190 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35191    { (exit 1); exit 1; }; }
35192   else
35193     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35194   fi
35195 done
35196
35197 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35198 if test -n "$ac_eof"; then
35199   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35200   ac_eof=`expr $ac_eof + 1`
35201 fi
35202
35203 cat >>$CONFIG_STATUS <<_ACEOF
35204 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35205 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35206 _ACEOF
35207 sed '
35208 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35209 s/^/s,@/; s/!/@,|#_!!_#|/
35210 :n
35211 t n
35212 s/'"$ac_delim"'$/,g/; t
35213 s/$/\\/; p
35214 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35215 ' >>$CONFIG_STATUS <conf$$subs.sed
35216 rm -f conf$$subs.sed
35217 cat >>$CONFIG_STATUS <<_ACEOF
35218 :end
35219 s/|#_!!_#|//g
35220 CEOF$ac_eof
35221 _ACEOF
35222
35223
35224 # VPATH may cause trouble with some makes, so we remove $(srcdir),
35225 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35226 # trailing colons and then remove the whole line if VPATH becomes empty
35227 # (actually we leave an empty line to preserve line numbers).
35228 if test "x$srcdir" = x.; then
35229   ac_vpsub='/^[  ]*VPATH[        ]*=/{
35230 s/:*\$(srcdir):*/:/
35231 s/:*\${srcdir}:*/:/
35232 s/:*@srcdir@:*/:/
35233 s/^\([^=]*=[     ]*\):*/\1/
35234 s/:*$//
35235 s/^[^=]*=[       ]*$//
35236 }'
35237 fi
35238
35239 cat >>$CONFIG_STATUS <<\_ACEOF
35240 fi # test -n "$CONFIG_FILES"
35241
35242
35243 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
35244 do
35245   case $ac_tag in
35246   :[FHLC]) ac_mode=$ac_tag; continue;;
35247   esac
35248   case $ac_mode$ac_tag in
35249   :[FHL]*:*);;
35250   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35251 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35252    { (exit 1); exit 1; }; };;
35253   :[FH]-) ac_tag=-:-;;
35254   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35255   esac
35256   ac_save_IFS=$IFS
35257   IFS=:
35258   set x $ac_tag
35259   IFS=$ac_save_IFS
35260   shift
35261   ac_file=$1
35262   shift
35263
35264   case $ac_mode in
35265   :L) ac_source=$1;;
35266   :[FH])
35267     ac_file_inputs=
35268     for ac_f
35269     do
35270       case $ac_f in
35271       -) ac_f="$tmp/stdin";;
35272       *) # Look for the file first in the build tree, then in the source tree
35273          # (if the path is not absolute).  The absolute path cannot be DOS-style,
35274          # because $ac_f cannot contain `:'.
35275          test -f "$ac_f" ||
35276            case $ac_f in
35277            [\\/$]*) false;;
35278            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35279            esac ||
35280            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35281 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35282    { (exit 1); exit 1; }; };;
35283       esac
35284       ac_file_inputs="$ac_file_inputs $ac_f"
35285     done
35286
35287     # Let's still pretend it is `configure' which instantiates (i.e., don't
35288     # use $as_me), people would be surprised to read:
35289     #    /* config.h.  Generated by config.status.  */
35290     configure_input="Generated from "`IFS=:
35291           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35292     if test x"$ac_file" != x-; then
35293       configure_input="$ac_file.  $configure_input"
35294       { echo "$as_me:$LINENO: creating $ac_file" >&5
35295 echo "$as_me: creating $ac_file" >&6;}
35296     fi
35297
35298     case $ac_tag in
35299     *:-:* | *:-) cat >"$tmp/stdin";;
35300     esac
35301     ;;
35302   esac
35303
35304   ac_dir=`$as_dirname -- "$ac_file" ||
35305 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35306          X"$ac_file" : 'X\(//\)[^/]' \| \
35307          X"$ac_file" : 'X\(//\)$' \| \
35308          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35309 echo X"$ac_file" |
35310     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35311             s//\1/
35312             q
35313           }
35314           /^X\(\/\/\)[^/].*/{
35315             s//\1/
35316             q
35317           }
35318           /^X\(\/\/\)$/{
35319             s//\1/
35320             q
35321           }
35322           /^X\(\/\).*/{
35323             s//\1/
35324             q
35325           }
35326           s/.*/./; q'`
35327   { as_dir="$ac_dir"
35328   case $as_dir in #(
35329   -*) as_dir=./$as_dir;;
35330   esac
35331   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35332     as_dirs=
35333     while :; do
35334       case $as_dir in #(
35335       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35336       *) as_qdir=$as_dir;;
35337       esac
35338       as_dirs="'$as_qdir' $as_dirs"
35339       as_dir=`$as_dirname -- "$as_dir" ||
35340 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35341          X"$as_dir" : 'X\(//\)[^/]' \| \
35342          X"$as_dir" : 'X\(//\)$' \| \
35343          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35344 echo X"$as_dir" |
35345     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35346             s//\1/
35347             q
35348           }
35349           /^X\(\/\/\)[^/].*/{
35350             s//\1/
35351             q
35352           }
35353           /^X\(\/\/\)$/{
35354             s//\1/
35355             q
35356           }
35357           /^X\(\/\).*/{
35358             s//\1/
35359             q
35360           }
35361           s/.*/./; q'`
35362       test -d "$as_dir" && break
35363     done
35364     test -z "$as_dirs" || eval "mkdir $as_dirs"
35365   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35366 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35367    { (exit 1); exit 1; }; }; }
35368   ac_builddir=.
35369
35370 case "$ac_dir" in
35371 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35372 *)
35373   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35374   # A ".." for each directory in $ac_dir_suffix.
35375   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35376   case $ac_top_builddir_sub in
35377   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35378   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35379   esac ;;
35380 esac
35381 ac_abs_top_builddir=$ac_pwd
35382 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35383 # for backward compatibility:
35384 ac_top_builddir=$ac_top_build_prefix
35385
35386 case $srcdir in
35387   .)  # We are building in place.
35388     ac_srcdir=.
35389     ac_top_srcdir=$ac_top_builddir_sub
35390     ac_abs_top_srcdir=$ac_pwd ;;
35391   [\\/]* | ?:[\\/]* )  # Absolute name.
35392     ac_srcdir=$srcdir$ac_dir_suffix;
35393     ac_top_srcdir=$srcdir
35394     ac_abs_top_srcdir=$srcdir ;;
35395   *) # Relative name.
35396     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35397     ac_top_srcdir=$ac_top_build_prefix$srcdir
35398     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35399 esac
35400 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35401
35402
35403   case $ac_mode in
35404   :F)
35405   #
35406   # CONFIG_FILE
35407   #
35408
35409   case $INSTALL in
35410   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35411   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35412   esac
35413 _ACEOF
35414
35415 cat >>$CONFIG_STATUS <<\_ACEOF
35416 # If the template does not know about datarootdir, expand it.
35417 # FIXME: This hack should be removed a few years after 2.60.
35418 ac_datarootdir_hack=; ac_datarootdir_seen=
35419
35420 case `sed -n '/datarootdir/ {
35421   p
35422   q
35423 }
35424 /@datadir@/p
35425 /@docdir@/p
35426 /@infodir@/p
35427 /@localedir@/p
35428 /@mandir@/p
35429 ' $ac_file_inputs` in
35430 *datarootdir*) ac_datarootdir_seen=yes;;
35431 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35432   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35433 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35434 _ACEOF
35435 cat >>$CONFIG_STATUS <<_ACEOF
35436   ac_datarootdir_hack='
35437   s&@datadir@&$datadir&g
35438   s&@docdir@&$docdir&g
35439   s&@infodir@&$infodir&g
35440   s&@localedir@&$localedir&g
35441   s&@mandir@&$mandir&g
35442     s&\\\${datarootdir}&$datarootdir&g' ;;
35443 esac
35444 _ACEOF
35445
35446 # Neutralize VPATH when `$srcdir' = `.'.
35447 # Shell code in configure.ac might set extrasub.
35448 # FIXME: do we really want to maintain this feature?
35449 cat >>$CONFIG_STATUS <<_ACEOF
35450   sed "$ac_vpsub
35451 $extrasub
35452 _ACEOF
35453 cat >>$CONFIG_STATUS <<\_ACEOF
35454 :t
35455 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35456 s&@configure_input@&$configure_input&;t t
35457 s&@top_builddir@&$ac_top_builddir_sub&;t t
35458 s&@srcdir@&$ac_srcdir&;t t
35459 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35460 s&@top_srcdir@&$ac_top_srcdir&;t t
35461 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35462 s&@builddir@&$ac_builddir&;t t
35463 s&@abs_builddir@&$ac_abs_builddir&;t t
35464 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35465 s&@INSTALL@&$ac_INSTALL&;t t
35466 $ac_datarootdir_hack
35467 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
35468
35469 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35470   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35471   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35472   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35473 which seems to be undefined.  Please make sure it is defined." >&5
35474 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35475 which seems to be undefined.  Please make sure it is defined." >&2;}
35476
35477   rm -f "$tmp/stdin"
35478   case $ac_file in
35479   -) cat "$tmp/out"; rm -f "$tmp/out";;
35480   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35481   esac
35482  ;;
35483   :H)
35484   #
35485   # CONFIG_HEADER
35486   #
35487 _ACEOF
35488
35489 # Transform confdefs.h into a sed script `conftest.defines', that
35490 # substitutes the proper values into config.h.in to produce config.h.
35491 rm -f conftest.defines conftest.tail
35492 # First, append a space to every undef/define line, to ease matching.
35493 echo 's/$/ /' >conftest.defines
35494 # Then, protect against being on the right side of a sed subst, or in
35495 # an unquoted here document, in config.status.  If some macros were
35496 # called several times there might be several #defines for the same
35497 # symbol, which is useless.  But do not sort them, since the last
35498 # AC_DEFINE must be honored.
35499 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35500 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35501 # NAME is the cpp macro being defined, VALUE is the value it is being given.
35502 # PARAMS is the parameter list in the macro definition--in most cases, it's
35503 # just an empty string.
35504 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
35505 ac_dB='\\)[      (].*,\\1define\\2'
35506 ac_dC=' '
35507 ac_dD=' ,'
35508
35509 uniq confdefs.h |
35510   sed -n '
35511         t rset
35512         :rset
35513         s/^[     ]*#[    ]*define[       ][      ]*//
35514         t ok
35515         d
35516         :ok
35517         s/[\\&,]/\\&/g
35518         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35519         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35520   ' >>conftest.defines
35521
35522 # Remove the space that was appended to ease matching.
35523 # Then replace #undef with comments.  This is necessary, for
35524 # example, in the case of _POSIX_SOURCE, which is predefined and required
35525 # on some systems where configure will not decide to define it.
35526 # (The regexp can be short, since the line contains either #define or #undef.)
35527 echo 's/ $//
35528 s,^[     #]*u.*,/* & */,' >>conftest.defines
35529
35530 # Break up conftest.defines:
35531 ac_max_sed_lines=50
35532
35533 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35534 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35535 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35536 # et cetera.
35537 ac_in='$ac_file_inputs'
35538 ac_out='"$tmp/out1"'
35539 ac_nxt='"$tmp/out2"'
35540
35541 while :
35542 do
35543   # Write a here document:
35544     cat >>$CONFIG_STATUS <<_ACEOF
35545     # First, check the format of the line:
35546     cat >"\$tmp/defines.sed" <<\\CEOF
35547 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
35548 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
35549 b
35550 :def
35551 _ACEOF
35552   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
35553   echo 'CEOF
35554     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35555   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35556   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35557   grep . conftest.tail >/dev/null || break
35558   rm -f conftest.defines
35559   mv conftest.tail conftest.defines
35560 done
35561 rm -f conftest.defines conftest.tail
35562
35563 echo "ac_result=$ac_in" >>$CONFIG_STATUS
35564 cat >>$CONFIG_STATUS <<\_ACEOF
35565   if test x"$ac_file" != x-; then
35566     echo "/* $configure_input  */" >"$tmp/config.h"
35567     cat "$ac_result" >>"$tmp/config.h"
35568     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
35569       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35570 echo "$as_me: $ac_file is unchanged" >&6;}
35571     else
35572       rm -f $ac_file
35573       mv "$tmp/config.h" $ac_file
35574     fi
35575   else
35576     echo "/* $configure_input  */"
35577     cat "$ac_result"
35578   fi
35579   rm -f "$tmp/out12"
35580  ;;
35581
35582   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35583 echo "$as_me: executing $ac_file commands" >&6;}
35584  ;;
35585   esac
35586
35587
35588   case $ac_file$ac_mode in
35589     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
35590    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
35591     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
35592    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
35593     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
35594    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
35595     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
35596    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
35597     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
35598    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
35599     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
35600    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
35601     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
35602    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
35603     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
35604    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
35605     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
35606    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
35607     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
35608    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
35609     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
35610    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
35611     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
35612    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
35613
35614   esac
35615 done # for ac_tag
35616
35617
35618 { (exit 0); exit 0; }
35619 _ACEOF
35620 chmod +x $CONFIG_STATUS
35621 ac_clean_files=$ac_clean_files_save
35622
35623
35624 # configure is writing to config.log, and then calls config.status.
35625 # config.status does its own redirection, appending to config.log.
35626 # Unfortunately, on DOS this fails, as config.log is still kept open
35627 # by configure, so config.status won't be able to write to it; its
35628 # output is simply discarded.  So we exec the FD to /dev/null,
35629 # effectively closing config.log, so it can be properly (re)opened and
35630 # appended to by config.status.  When coming back to configure, we
35631 # need to make the FD available again.
35632 if test "$no_create" != yes; then
35633   ac_cs_success=:
35634   ac_config_status_args=
35635   test "$silent" = yes &&
35636     ac_config_status_args="$ac_config_status_args --quiet"
35637   exec 5>/dev/null
35638   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35639   exec 5>>config.log
35640   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35641   # would make configure fail if this is the last instruction.
35642   $ac_cs_success || { (exit 1); exit 1; }
35643 fi
35644
35645 #
35646 # CONFIG_SUBDIRS section.
35647 #
35648 if test "$no_recursion" != yes; then
35649
35650   # Remove --cache-file and --srcdir arguments so they do not pile up.
35651   ac_sub_configure_args=
35652   ac_prev=
35653   eval "set x $ac_configure_args"
35654   shift
35655   for ac_arg
35656   do
35657     if test -n "$ac_prev"; then
35658       ac_prev=
35659       continue
35660     fi
35661     case $ac_arg in
35662     -cache-file | --cache-file | --cache-fil | --cache-fi \
35663     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35664       ac_prev=cache_file ;;
35665     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35666     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35667     | --c=*)
35668       ;;
35669     --config-cache | -C)
35670       ;;
35671     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35672       ac_prev=srcdir ;;
35673     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35674       ;;
35675     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35676       ac_prev=prefix ;;
35677     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35678       ;;
35679     *)
35680       case $ac_arg in
35681       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35682       esac
35683       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
35684     esac
35685   done
35686
35687   # Always prepend --prefix to ensure using the same prefix
35688   # in subdir configurations.
35689   ac_arg="--prefix=$prefix"
35690   case $ac_arg in
35691   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35692   esac
35693   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
35694
35695   ac_popdir=`pwd`
35696   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35697
35698     # Do not complain, so a configure script can configure whichever
35699     # parts of a large source tree are present.
35700     test -d "$srcdir/$ac_dir" || continue
35701
35702     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35703     echo "$as_me:$LINENO: $ac_msg" >&5
35704     echo "$ac_msg" >&6
35705     { as_dir="$ac_dir"
35706   case $as_dir in #(
35707   -*) as_dir=./$as_dir;;
35708   esac
35709   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35710     as_dirs=
35711     while :; do
35712       case $as_dir in #(
35713       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35714       *) as_qdir=$as_dir;;
35715       esac
35716       as_dirs="'$as_qdir' $as_dirs"
35717       as_dir=`$as_dirname -- "$as_dir" ||
35718 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35719          X"$as_dir" : 'X\(//\)[^/]' \| \
35720          X"$as_dir" : 'X\(//\)$' \| \
35721          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35722 echo X"$as_dir" |
35723     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35724             s//\1/
35725             q
35726           }
35727           /^X\(\/\/\)[^/].*/{
35728             s//\1/
35729             q
35730           }
35731           /^X\(\/\/\)$/{
35732             s//\1/
35733             q
35734           }
35735           /^X\(\/\).*/{
35736             s//\1/
35737             q
35738           }
35739           s/.*/./; q'`
35740       test -d "$as_dir" && break
35741     done
35742     test -z "$as_dirs" || eval "mkdir $as_dirs"
35743   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35744 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35745    { (exit 1); exit 1; }; }; }
35746     ac_builddir=.
35747
35748 case "$ac_dir" in
35749 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35750 *)
35751   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35752   # A ".." for each directory in $ac_dir_suffix.
35753   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35754   case $ac_top_builddir_sub in
35755   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35756   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35757   esac ;;
35758 esac
35759 ac_abs_top_builddir=$ac_pwd
35760 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35761 # for backward compatibility:
35762 ac_top_builddir=$ac_top_build_prefix
35763
35764 case $srcdir in
35765   .)  # We are building in place.
35766     ac_srcdir=.
35767     ac_top_srcdir=$ac_top_builddir_sub
35768     ac_abs_top_srcdir=$ac_pwd ;;
35769   [\\/]* | ?:[\\/]* )  # Absolute name.
35770     ac_srcdir=$srcdir$ac_dir_suffix;
35771     ac_top_srcdir=$srcdir
35772     ac_abs_top_srcdir=$srcdir ;;
35773   *) # Relative name.
35774     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35775     ac_top_srcdir=$ac_top_build_prefix$srcdir
35776     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35777 esac
35778 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35779
35780
35781     cd "$ac_dir"
35782
35783     # Check for guested configure; otherwise get Cygnus style configure.
35784     if test -f "$ac_srcdir/configure.gnu"; then
35785       ac_sub_configure=$ac_srcdir/configure.gnu
35786     elif test -f "$ac_srcdir/configure"; then
35787       ac_sub_configure=$ac_srcdir/configure
35788     elif test -f "$ac_srcdir/configure.in"; then
35789       # This should be Cygnus configure.
35790       ac_sub_configure=$ac_aux_dir/configure
35791     else
35792       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
35793 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
35794       ac_sub_configure=
35795     fi
35796
35797     # The recursion is here.
35798     if test -n "$ac_sub_configure"; then
35799       # Make the cache file name correct relative to the subdirectory.
35800       case $cache_file in
35801       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
35802       *) # Relative name.
35803         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
35804       esac
35805
35806       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
35807 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
35808       # The eval makes quoting arguments work.
35809       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
35810            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
35811         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
35812 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
35813    { (exit 1); exit 1; }; }
35814     fi
35815
35816     cd "$ac_popdir"
35817   done
35818 fi
35819