Add debug message about non-local loads being clobbered.
[oota-llvm.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 2.6svn.
4 #
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 #
12 # Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization.  ##
15 ## --------------------- ##
16
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19   emulate sh
20   NULLCMD=:
21   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22   # is contrary to our usage.  Disable this feature.
23   alias -g '${1+"$@"}'='"$@"'
24   setopt NO_GLOB_SUBST
25 else
26   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
27 fi
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242   emulate sh
243   NULLCMD=:
244   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245   # is contrary to our usage.  Disable this feature.
246   alias -g '${1+"$@"}'='"$@"'
247   setopt NO_GLOB_SUBST
248 else
249   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250 fi
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
253
254 :
255 _ASEOF
256 }; then
257   CONFIG_SHELL=$as_shell
258                as_have_required=yes
259                if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270 fi
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
273
274 :
275 (as_func_return () {
276   (exit $1)
277 }
278 as_func_success () {
279   as_func_return 0
280 }
281 as_func_failure () {
282   as_func_return 1
283 }
284 as_func_ret_success () {
285   return 0
286 }
287 as_func_ret_failure () {
288   return 1
289 }
290
291 exitcode=0
292 if as_func_success; then
293   :
294 else
295   exitcode=1
296   echo as_func_success failed.
297 fi
298
299 if as_func_failure; then
300   exitcode=1
301   echo as_func_failure succeeded.
302 fi
303
304 if as_func_ret_success; then
305   :
306 else
307   exitcode=1
308   echo as_func_ret_success failed.
309 fi
310
311 if as_func_ret_failure; then
312   exitcode=1
313   echo as_func_ret_failure succeeded.
314 fi
315
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
317   :
318 else
319   exitcode=1
320   echo positional parameters were not saved.
321 fi
322
323 test $exitcode = 0) || { (exit 1); exit 1; }
324
325 (
326   as_lineno_1=$LINENO
327   as_lineno_2=$LINENO
328   test "x$as_lineno_1" != "x$as_lineno_2" &&
329   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331 _ASEOF
332 }; then
333   break
334 fi
335
336 fi
337
338       done
339
340       if test "x$CONFIG_SHELL" != x; then
341   for as_var in BASH_ENV ENV
342         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343         done
344         export CONFIG_SHELL
345         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346 fi
347
348
349     if test $as_have_required = no; then
350   echo This script requires a shell more modern than all the
351       echo shells that I found on your system.  Please install a
352       echo modern shell, or manually run the script under such a
353       echo shell if you do have one.
354       { (exit 1); exit 1; }
355 fi
356
357
358 fi
359
360 fi
361
362
363
364 (eval "as_func_return () {
365   (exit \$1)
366 }
367 as_func_success () {
368   as_func_return 0
369 }
370 as_func_failure () {
371   as_func_return 1
372 }
373 as_func_ret_success () {
374   return 0
375 }
376 as_func_ret_failure () {
377   return 1
378 }
379
380 exitcode=0
381 if as_func_success; then
382   :
383 else
384   exitcode=1
385   echo as_func_success failed.
386 fi
387
388 if as_func_failure; then
389   exitcode=1
390   echo as_func_failure succeeded.
391 fi
392
393 if as_func_ret_success; then
394   :
395 else
396   exitcode=1
397   echo as_func_ret_success failed.
398 fi
399
400 if as_func_ret_failure; then
401   exitcode=1
402   echo as_func_ret_failure succeeded.
403 fi
404
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406   :
407 else
408   exitcode=1
409   echo positional parameters were not saved.
410 fi
411
412 test \$exitcode = 0") || {
413   echo No shell found that supports shell functions.
414   echo Please tell autoconf@gnu.org about your system,
415   echo including any error possibly output before this
416   echo message
417 }
418
419
420
421   as_lineno_1=$LINENO
422   as_lineno_2=$LINENO
423   test "x$as_lineno_1" != "x$as_lineno_2" &&
424   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
425
426   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427   # uniformly replaced by the line number.  The first 'sed' inserts a
428   # line-number line after each line using $LINENO; the second 'sed'
429   # does the real work.  The second script uses 'N' to pair each
430   # line-number line with the line containing $LINENO, and appends
431   # trailing '-' during substitution so that $LINENO is not a special
432   # case at line end.
433   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434   # scripts with optimization help from Paolo Bonzini.  Blame Lee
435   # E. McMahon (1931-1989) for sed's syntax.  :-)
436   sed -n '
437     p
438     /[$]LINENO/=
439   ' <$as_myself |
440     sed '
441       s/[$]LINENO.*/&-/
442       t lineno
443       b
444       :lineno
445       N
446       :loop
447       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
448       t loop
449       s/-\n.*//
450     ' >$as_me.lineno &&
451   chmod +x "$as_me.lineno" ||
452     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453    { (exit 1); exit 1; }; }
454
455   # Don't try to exec as it changes $[0], causing all sort of problems
456   # (the dirname of $[0] is not the place where we might find the
457   # original and so on.  Autoconf is especially sensitive to this).
458   . "./$as_me.lineno"
459   # Exit status is that of the last command.
460   exit
461 }
462
463
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465   as_dirname=dirname
466 else
467   as_dirname=false
468 fi
469
470 ECHO_C= ECHO_N= ECHO_T=
471 case `echo -n x` in
472 -n*)
473   case `echo 'x\c'` in
474   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
475   *)   ECHO_C='\c';;
476   esac;;
477 *)
478   ECHO_N='-n';;
479 esac
480
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482    test "X`expr 00001 : '.*\(...\)'`" = X001; then
483   as_expr=expr
484 else
485   as_expr=false
486 fi
487
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490   rm -f conf$$.dir/conf$$.file
491 else
492   rm -f conf$$.dir
493   mkdir conf$$.dir
494 fi
495 echo >conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
497   as_ln_s='ln -s'
498   # ... but there are two gotchas:
499   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501   # In both cases, we have to default to `cp -p'.
502   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
503     as_ln_s='cp -p'
504 elif ln conf$$.file conf$$ 2>/dev/null; then
505   as_ln_s=ln
506 else
507   as_ln_s='cp -p'
508 fi
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
511
512 if mkdir -p . 2>/dev/null; then
513   as_mkdir_p=:
514 else
515   test -d ./-p && rmdir ./-p
516   as_mkdir_p=false
517 fi
518
519 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
522 #! /bin/sh
523 exit 0
524 _ASEOF
525 chmod +x conf$$.file
526 if test -x conf$$.file >/dev/null 2>&1; then
527   as_executable_p="test -x"
528 else
529   as_executable_p=:
530 fi
531 rm -f conf$$.file
532
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539
540
541
542 # Check that we are running under the correct shell.
543 SHELL=${CONFIG_SHELL-/bin/sh}
544
545 case X$ECHO in
546 X*--fallback-echo)
547   # Remove one level of quotation (which was required for Make).
548   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
549   ;;
550 esac
551
552 echo=${ECHO-echo}
553 if test "X$1" = X--no-reexec; then
554   # Discard the --no-reexec flag, and continue.
555   shift
556 elif test "X$1" = X--fallback-echo; then
557   # Avoid inline document here, it may be left over
558   :
559 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
560   # Yippee, $echo works!
561   :
562 else
563   # Restart under the correct shell.
564   exec $SHELL "$0" --no-reexec ${1+"$@"}
565 fi
566
567 if test "X$1" = X--fallback-echo; then
568   # used as fallback echo
569   shift
570   cat <<EOF
571 $*
572 EOF
573   exit 0
574 fi
575
576 # The HP-UX ksh and POSIX shell print the target directory to stdout
577 # if CDPATH is set.
578 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
579
580 if test -z "$ECHO"; then
581 if test "X${echo_test_string+set}" != Xset; then
582 # find a string as large as possible, as long as the shell can cope with it
583   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
584     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
585     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
586        echo_test_string=`eval $cmd` &&
587        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
588     then
589       break
590     fi
591   done
592 fi
593
594 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
595    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
596    test "X$echo_testing_string" = "X$echo_test_string"; then
597   :
598 else
599   # The Solaris, AIX, and Digital Unix default echo programs unquote
600   # backslashes.  This makes it impossible to quote backslashes using
601   #   echo "$something" | sed 's/\\/\\\\/g'
602   #
603   # So, first we look for a working echo in the user's PATH.
604
605   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
606   for dir in $PATH /usr/ucb; do
607     IFS="$lt_save_ifs"
608     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
609        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
610        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
611        test "X$echo_testing_string" = "X$echo_test_string"; then
612       echo="$dir/echo"
613       break
614     fi
615   done
616   IFS="$lt_save_ifs"
617
618   if test "X$echo" = Xecho; then
619     # We didn't find a better echo, so look for alternatives.
620     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
621        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
622        test "X$echo_testing_string" = "X$echo_test_string"; then
623       # This shell has a builtin print -r that does the trick.
624       echo='print -r'
625     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
626          test "X$CONFIG_SHELL" != X/bin/ksh; then
627       # If we have ksh, try running configure again with it.
628       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
629       export ORIGINAL_CONFIG_SHELL
630       CONFIG_SHELL=/bin/ksh
631       export CONFIG_SHELL
632       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
633     else
634       # Try using printf.
635       echo='printf %s\n'
636       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
637          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
638          test "X$echo_testing_string" = "X$echo_test_string"; then
639         # Cool, printf works
640         :
641       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642            test "X$echo_testing_string" = 'X\t' &&
643            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644            test "X$echo_testing_string" = "X$echo_test_string"; then
645         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
646         export CONFIG_SHELL
647         SHELL="$CONFIG_SHELL"
648         export SHELL
649         echo="$CONFIG_SHELL $0 --fallback-echo"
650       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
651            test "X$echo_testing_string" = 'X\t' &&
652            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
653            test "X$echo_testing_string" = "X$echo_test_string"; then
654         echo="$CONFIG_SHELL $0 --fallback-echo"
655       else
656         # maybe with a smaller string...
657         prev=:
658
659         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
660           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
661           then
662             break
663           fi
664           prev="$cmd"
665         done
666
667         if test "$prev" != 'sed 50q "$0"'; then
668           echo_test_string=`eval $prev`
669           export echo_test_string
670           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
671         else
672           # Oops.  We lost completely, so just stick with echo.
673           echo=echo
674         fi
675       fi
676     fi
677   fi
678 fi
679 fi
680
681 # Copy echo and quote the copy suitably for passing to libtool from
682 # the Makefile, instead of quoting the original, which is used later.
683 ECHO=$echo
684 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
685    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
686 fi
687
688
689
690
691 tagnames=${tagnames+${tagnames},}CXX
692
693 tagnames=${tagnames+${tagnames},}F77
694
695 exec 7<&0 </dev/null 6>&1
696
697 # Name of the host.
698 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
699 # so uname gets run too.
700 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
701
702 #
703 # Initializations.
704 #
705 ac_default_prefix=/usr/local
706 ac_clean_files=
707 ac_config_libobj_dir=.
708 LIBOBJS=
709 cross_compiling=no
710 subdirs=
711 MFLAGS=
712 MAKEFLAGS=
713 SHELL=${CONFIG_SHELL-/bin/sh}
714
715 # Identity of this package.
716 PACKAGE_NAME='llvm'
717 PACKAGE_TARNAME='-llvm-'
718 PACKAGE_VERSION='2.6svn'
719 PACKAGE_STRING='llvm 2.6svn'
720 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
721
722 ac_unique_file="lib/VMCore/Module.cpp"
723 # Factoring default headers for most tests.
724 ac_includes_default="\
725 #include <stdio.h>
726 #if HAVE_SYS_TYPES_H
727 # include <sys/types.h>
728 #endif
729 #if HAVE_SYS_STAT_H
730 # include <sys/stat.h>
731 #endif
732 #if STDC_HEADERS
733 # include <stdlib.h>
734 # include <stddef.h>
735 #else
736 # if HAVE_STDLIB_H
737 #  include <stdlib.h>
738 # endif
739 #endif
740 #if HAVE_STRING_H
741 # if !STDC_HEADERS && HAVE_MEMORY_H
742 #  include <memory.h>
743 # endif
744 # include <string.h>
745 #endif
746 #if HAVE_STRINGS_H
747 # include <strings.h>
748 #endif
749 #if HAVE_INTTYPES_H
750 # include <inttypes.h>
751 #endif
752 #if HAVE_STDINT_H
753 # include <stdint.h>
754 #endif
755 #if HAVE_UNISTD_H
756 # include <unistd.h>
757 #endif"
758
759 ac_subst_vars='SHELL
760 PATH_SEPARATOR
761 PACKAGE_NAME
762 PACKAGE_TARNAME
763 PACKAGE_VERSION
764 PACKAGE_STRING
765 PACKAGE_BUGREPORT
766 exec_prefix
767 prefix
768 program_transform_name
769 bindir
770 sbindir
771 libexecdir
772 datarootdir
773 datadir
774 sysconfdir
775 sharedstatedir
776 localstatedir
777 includedir
778 oldincludedir
779 docdir
780 infodir
781 htmldir
782 dvidir
783 pdfdir
784 psdir
785 libdir
786 localedir
787 mandir
788 DEFS
789 ECHO_C
790 ECHO_N
791 ECHO_T
792 LIBS
793 build_alias
794 host_alias
795 target_alias
796 LLVM_COPYRIGHT
797 subdirs
798 build
799 build_cpu
800 build_vendor
801 build_os
802 host
803 host_cpu
804 host_vendor
805 host_os
806 target
807 target_cpu
808 target_vendor
809 target_os
810 OS
811 LINKALL
812 NOLINKALL
813 LLVM_ON_UNIX
814 LLVM_ON_WIN32
815 ARCH
816 ENDIAN
817 CC
818 CFLAGS
819 LDFLAGS
820 CPPFLAGS
821 ac_ct_CC
822 EXEEXT
823 OBJEXT
824 CPP
825 GREP
826 EGREP
827 LLVM_CROSS_COMPILING
828 BUILD_CC
829 BUILD_EXEEXT
830 BUILD_CXX
831 CVSBUILD
832 ENABLE_OPTIMIZED
833 ENABLE_PROFILING
834 DISABLE_ASSERTIONS
835 ENABLE_EXPENSIVE_CHECKS
836 EXPENSIVE_CHECKS
837 DEBUG_RUNTIME
838 JIT
839 TARGET_HAS_JIT
840 ENABLE_DOXYGEN
841 ENABLE_THREADS
842 ENABLE_PIC
843 TARGETS_TO_BUILD
844 LLVM_ENUM_TARGETS
845 LLVM_ENUM_ASM_PRINTERS
846 ENABLE_CBE_PRINTF_A
847 EXTRA_OPTIONS
848 BINUTILS_INCDIR
849 CXX
850 CXXFLAGS
851 ac_ct_CXX
852 NM
853 ifGNUmake
854 LN_S
855 CMP
856 CP
857 DATE
858 FIND
859 MKDIR
860 MV
861 RANLIB
862 RM
863 SED
864 TAR
865 BINPWD
866 GRAPHVIZ
867 DOT
868 GV
869 DOTTY
870 PERL
871 HAVE_PERL
872 INSTALL_PROGRAM
873 INSTALL_SCRIPT
874 INSTALL_DATA
875 BZIP2
876 DOXYGEN
877 GROFF
878 GZIP
879 POD2HTML
880 POD2MAN
881 RUNTEST
882 TCLSH
883 ZIP
884 OCAMLC
885 OCAMLOPT
886 OCAMLDEP
887 OCAMLDOC
888 GAS
889 INSTALL_LTDL_TRUE
890 INSTALL_LTDL_FALSE
891 CONVENIENCE_LTDL_TRUE
892 CONVENIENCE_LTDL_FALSE
893 LIBADD_DL
894 ECHO
895 AR
896 STRIP
897 CXXCPP
898 F77
899 FFLAGS
900 ac_ct_F77
901 LIBTOOL
902 LLVMGCCCOMMAND
903 LLVMGXXCOMMAND
904 LLVMGCC
905 LLVMGXX
906 USE_UDIS86
907 HAVE_PTHREAD
908 HUGE_VAL_SANITY
909 ALLOCA
910 MMAP_FILE
911 LLVMCC1
912 LLVMCC1PLUS
913 LLVMGCCDIR
914 LLVMGCCLIBEXEC
915 LLVMGCC_VERSION
916 LLVMGCC_MAJVERS
917 LLVMGCC_LANGS
918 SHLIBEXT
919 LLVM_PREFIX
920 LLVM_BINDIR
921 LLVM_LIBDIR
922 LLVM_DATADIR
923 LLVM_DOCSDIR
924 LLVM_ETCDIR
925 LLVM_INCLUDEDIR
926 LLVM_INFODIR
927 LLVM_MANDIR
928 LLVM_CONFIGTIME
929 BINDINGS_TO_BUILD
930 ALL_BINDINGS
931 OCAML_LIBDIR
932 ENABLE_VISIBILITY_INLINES_HIDDEN
933 RPATH
934 RDYNAMIC
935 LIBOBJS
936 LTLIBOBJS'
937 ac_subst_files=''
938       ac_precious_vars='build_alias
939 host_alias
940 target_alias
941 CC
942 CFLAGS
943 LDFLAGS
944 CPPFLAGS
945 CPP
946 CXX
947 CXXFLAGS
948 CCC
949 CXXCPP
950 F77
951 FFLAGS'
952 ac_subdirs_all='projects/sample
953 projects/privbracket
954 projects/llvm-stacker
955 projects/llvm-test
956 projects/test-suite
957 projects/llvm-reopt
958 projects/llvm-gcc
959 projects/llvm-java
960 projects/llvm-tv
961 projects/llvm-poolalloc
962 projects/poolalloc
963 projects/llvm-kernel'
964
965 # Initialize some variables set by options.
966 ac_init_help=
967 ac_init_version=false
968 # The variables have the same names as the options, with
969 # dashes changed to underlines.
970 cache_file=/dev/null
971 exec_prefix=NONE
972 no_create=
973 no_recursion=
974 prefix=NONE
975 program_prefix=NONE
976 program_suffix=NONE
977 program_transform_name=s,x,x,
978 silent=
979 site=
980 srcdir=
981 verbose=
982 x_includes=NONE
983 x_libraries=NONE
984
985 # Installation directory options.
986 # These are left unexpanded so users can "make install exec_prefix=/foo"
987 # and all the variables that are supposed to be based on exec_prefix
988 # by default will actually change.
989 # Use braces instead of parens because sh, perl, etc. also accept them.
990 # (The list follows the same order as the GNU Coding Standards.)
991 bindir='${exec_prefix}/bin'
992 sbindir='${exec_prefix}/sbin'
993 libexecdir='${exec_prefix}/libexec'
994 datarootdir='${prefix}/share'
995 datadir='${datarootdir}'
996 sysconfdir='${prefix}/etc'
997 sharedstatedir='${prefix}/com'
998 localstatedir='${prefix}/var'
999 includedir='${prefix}/include'
1000 oldincludedir='/usr/include'
1001 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1002 infodir='${datarootdir}/info'
1003 htmldir='${docdir}'
1004 dvidir='${docdir}'
1005 pdfdir='${docdir}'
1006 psdir='${docdir}'
1007 libdir='${exec_prefix}/lib'
1008 localedir='${datarootdir}/locale'
1009 mandir='${datarootdir}/man'
1010
1011 ac_prev=
1012 ac_dashdash=
1013 for ac_option
1014 do
1015   # If the previous option needs an argument, assign it.
1016   if test -n "$ac_prev"; then
1017     eval $ac_prev=\$ac_option
1018     ac_prev=
1019     continue
1020   fi
1021
1022   case $ac_option in
1023   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1024   *)    ac_optarg=yes ;;
1025   esac
1026
1027   # Accept the important Cygnus configure options, so we can diagnose typos.
1028
1029   case $ac_dashdash$ac_option in
1030   --)
1031     ac_dashdash=yes ;;
1032
1033   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1034     ac_prev=bindir ;;
1035   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1036     bindir=$ac_optarg ;;
1037
1038   -build | --build | --buil | --bui | --bu)
1039     ac_prev=build_alias ;;
1040   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1041     build_alias=$ac_optarg ;;
1042
1043   -cache-file | --cache-file | --cache-fil | --cache-fi \
1044   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1045     ac_prev=cache_file ;;
1046   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1047   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1048     cache_file=$ac_optarg ;;
1049
1050   --config-cache | -C)
1051     cache_file=config.cache ;;
1052
1053   -datadir | --datadir | --datadi | --datad)
1054     ac_prev=datadir ;;
1055   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1056     datadir=$ac_optarg ;;
1057
1058   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1059   | --dataroo | --dataro | --datar)
1060     ac_prev=datarootdir ;;
1061   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1062   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1063     datarootdir=$ac_optarg ;;
1064
1065   -disable-* | --disable-*)
1066     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1067     # Reject names that are not valid shell variable names.
1068     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1069       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1070    { (exit 1); exit 1; }; }
1071     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1072     eval enable_$ac_feature=no ;;
1073
1074   -docdir | --docdir | --docdi | --doc | --do)
1075     ac_prev=docdir ;;
1076   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1077     docdir=$ac_optarg ;;
1078
1079   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1080     ac_prev=dvidir ;;
1081   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1082     dvidir=$ac_optarg ;;
1083
1084   -enable-* | --enable-*)
1085     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1086     # Reject names that are not valid shell variable names.
1087     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1088       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1089    { (exit 1); exit 1; }; }
1090     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1091     eval enable_$ac_feature=\$ac_optarg ;;
1092
1093   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1094   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1095   | --exec | --exe | --ex)
1096     ac_prev=exec_prefix ;;
1097   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1098   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1099   | --exec=* | --exe=* | --ex=*)
1100     exec_prefix=$ac_optarg ;;
1101
1102   -gas | --gas | --ga | --g)
1103     # Obsolete; use --with-gas.
1104     with_gas=yes ;;
1105
1106   -help | --help | --hel | --he | -h)
1107     ac_init_help=long ;;
1108   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1109     ac_init_help=recursive ;;
1110   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1111     ac_init_help=short ;;
1112
1113   -host | --host | --hos | --ho)
1114     ac_prev=host_alias ;;
1115   -host=* | --host=* | --hos=* | --ho=*)
1116     host_alias=$ac_optarg ;;
1117
1118   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1119     ac_prev=htmldir ;;
1120   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1121   | --ht=*)
1122     htmldir=$ac_optarg ;;
1123
1124   -includedir | --includedir | --includedi | --included | --include \
1125   | --includ | --inclu | --incl | --inc)
1126     ac_prev=includedir ;;
1127   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1128   | --includ=* | --inclu=* | --incl=* | --inc=*)
1129     includedir=$ac_optarg ;;
1130
1131   -infodir | --infodir | --infodi | --infod | --info | --inf)
1132     ac_prev=infodir ;;
1133   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1134     infodir=$ac_optarg ;;
1135
1136   -libdir | --libdir | --libdi | --libd)
1137     ac_prev=libdir ;;
1138   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1139     libdir=$ac_optarg ;;
1140
1141   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1142   | --libexe | --libex | --libe)
1143     ac_prev=libexecdir ;;
1144   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1145   | --libexe=* | --libex=* | --libe=*)
1146     libexecdir=$ac_optarg ;;
1147
1148   -localedir | --localedir | --localedi | --localed | --locale)
1149     ac_prev=localedir ;;
1150   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1151     localedir=$ac_optarg ;;
1152
1153   -localstatedir | --localstatedir | --localstatedi | --localstated \
1154   | --localstate | --localstat | --localsta | --localst | --locals)
1155     ac_prev=localstatedir ;;
1156   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1157   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1158     localstatedir=$ac_optarg ;;
1159
1160   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1161     ac_prev=mandir ;;
1162   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1163     mandir=$ac_optarg ;;
1164
1165   -nfp | --nfp | --nf)
1166     # Obsolete; use --without-fp.
1167     with_fp=no ;;
1168
1169   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1170   | --no-cr | --no-c | -n)
1171     no_create=yes ;;
1172
1173   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1174   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1175     no_recursion=yes ;;
1176
1177   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1178   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1179   | --oldin | --oldi | --old | --ol | --o)
1180     ac_prev=oldincludedir ;;
1181   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1182   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1183   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1184     oldincludedir=$ac_optarg ;;
1185
1186   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1187     ac_prev=prefix ;;
1188   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1189     prefix=$ac_optarg ;;
1190
1191   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1192   | --program-pre | --program-pr | --program-p)
1193     ac_prev=program_prefix ;;
1194   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1195   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1196     program_prefix=$ac_optarg ;;
1197
1198   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1199   | --program-suf | --program-su | --program-s)
1200     ac_prev=program_suffix ;;
1201   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1202   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1203     program_suffix=$ac_optarg ;;
1204
1205   -program-transform-name | --program-transform-name \
1206   | --program-transform-nam | --program-transform-na \
1207   | --program-transform-n | --program-transform- \
1208   | --program-transform | --program-transfor \
1209   | --program-transfo | --program-transf \
1210   | --program-trans | --program-tran \
1211   | --progr-tra | --program-tr | --program-t)
1212     ac_prev=program_transform_name ;;
1213   -program-transform-name=* | --program-transform-name=* \
1214   | --program-transform-nam=* | --program-transform-na=* \
1215   | --program-transform-n=* | --program-transform-=* \
1216   | --program-transform=* | --program-transfor=* \
1217   | --program-transfo=* | --program-transf=* \
1218   | --program-trans=* | --program-tran=* \
1219   | --progr-tra=* | --program-tr=* | --program-t=*)
1220     program_transform_name=$ac_optarg ;;
1221
1222   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1223     ac_prev=pdfdir ;;
1224   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1225     pdfdir=$ac_optarg ;;
1226
1227   -psdir | --psdir | --psdi | --psd | --ps)
1228     ac_prev=psdir ;;
1229   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1230     psdir=$ac_optarg ;;
1231
1232   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1233   | -silent | --silent | --silen | --sile | --sil)
1234     silent=yes ;;
1235
1236   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1237     ac_prev=sbindir ;;
1238   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1239   | --sbi=* | --sb=*)
1240     sbindir=$ac_optarg ;;
1241
1242   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1243   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1244   | --sharedst | --shareds | --shared | --share | --shar \
1245   | --sha | --sh)
1246     ac_prev=sharedstatedir ;;
1247   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1248   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1249   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1250   | --sha=* | --sh=*)
1251     sharedstatedir=$ac_optarg ;;
1252
1253   -site | --site | --sit)
1254     ac_prev=site ;;
1255   -site=* | --site=* | --sit=*)
1256     site=$ac_optarg ;;
1257
1258   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1259     ac_prev=srcdir ;;
1260   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1261     srcdir=$ac_optarg ;;
1262
1263   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1264   | --syscon | --sysco | --sysc | --sys | --sy)
1265     ac_prev=sysconfdir ;;
1266   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1267   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1268     sysconfdir=$ac_optarg ;;
1269
1270   -target | --target | --targe | --targ | --tar | --ta | --t)
1271     ac_prev=target_alias ;;
1272   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1273     target_alias=$ac_optarg ;;
1274
1275   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1276     verbose=yes ;;
1277
1278   -version | --version | --versio | --versi | --vers | -V)
1279     ac_init_version=: ;;
1280
1281   -with-* | --with-*)
1282     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1283     # Reject names that are not valid shell variable names.
1284     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1285       { echo "$as_me: error: invalid package name: $ac_package" >&2
1286    { (exit 1); exit 1; }; }
1287     ac_package=`echo $ac_package| sed 's/-/_/g'`
1288     eval with_$ac_package=\$ac_optarg ;;
1289
1290   -without-* | --without-*)
1291     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1292     # Reject names that are not valid shell variable names.
1293     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1294       { echo "$as_me: error: invalid package name: $ac_package" >&2
1295    { (exit 1); exit 1; }; }
1296     ac_package=`echo $ac_package | sed 's/-/_/g'`
1297     eval with_$ac_package=no ;;
1298
1299   --x)
1300     # Obsolete; use --with-x.
1301     with_x=yes ;;
1302
1303   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1304   | --x-incl | --x-inc | --x-in | --x-i)
1305     ac_prev=x_includes ;;
1306   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1307   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1308     x_includes=$ac_optarg ;;
1309
1310   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1311   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1312     ac_prev=x_libraries ;;
1313   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1314   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1315     x_libraries=$ac_optarg ;;
1316
1317   -*) { echo "$as_me: error: unrecognized option: $ac_option
1318 Try \`$0 --help' for more information." >&2
1319    { (exit 1); exit 1; }; }
1320     ;;
1321
1322   *=*)
1323     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1324     # Reject names that are not valid shell variable names.
1325     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1326       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1327    { (exit 1); exit 1; }; }
1328     eval $ac_envvar=\$ac_optarg
1329     export $ac_envvar ;;
1330
1331   *)
1332     # FIXME: should be removed in autoconf 3.0.
1333     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1334     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1335       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1336     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1337     ;;
1338
1339   esac
1340 done
1341
1342 if test -n "$ac_prev"; then
1343   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1344   { echo "$as_me: error: missing argument to $ac_option" >&2
1345    { (exit 1); exit 1; }; }
1346 fi
1347
1348 # Be sure to have absolute directory names.
1349 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1350                 datadir sysconfdir sharedstatedir localstatedir includedir \
1351                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1352                 libdir localedir mandir
1353 do
1354   eval ac_val=\$$ac_var
1355   case $ac_val in
1356     [\\/$]* | ?:[\\/]* )  continue;;
1357     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1358   esac
1359   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1360    { (exit 1); exit 1; }; }
1361 done
1362
1363 # There might be people who depend on the old broken behavior: `$host'
1364 # used to hold the argument of --host etc.
1365 # FIXME: To remove some day.
1366 build=$build_alias
1367 host=$host_alias
1368 target=$target_alias
1369
1370 # FIXME: To remove some day.
1371 if test "x$host_alias" != x; then
1372   if test "x$build_alias" = x; then
1373     cross_compiling=maybe
1374     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1375     If a cross compiler is detected then cross compile mode will be used." >&2
1376   elif test "x$build_alias" != "x$host_alias"; then
1377     cross_compiling=yes
1378   fi
1379 fi
1380
1381 ac_tool_prefix=
1382 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1383
1384 test "$silent" = yes && exec 6>/dev/null
1385
1386
1387 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1388 ac_ls_di=`ls -di .` &&
1389 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1390   { echo "$as_me: error: Working directory cannot be determined" >&2
1391    { (exit 1); exit 1; }; }
1392 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1393   { echo "$as_me: error: pwd does not report name of working directory" >&2
1394    { (exit 1); exit 1; }; }
1395
1396
1397 # Find the source files, if location was not specified.
1398 if test -z "$srcdir"; then
1399   ac_srcdir_defaulted=yes
1400   # Try the directory containing this script, then the parent directory.
1401   ac_confdir=`$as_dirname -- "$0" ||
1402 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1403          X"$0" : 'X\(//\)[^/]' \| \
1404          X"$0" : 'X\(//\)$' \| \
1405          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1406 echo X"$0" |
1407     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1408             s//\1/
1409             q
1410           }
1411           /^X\(\/\/\)[^/].*/{
1412             s//\1/
1413             q
1414           }
1415           /^X\(\/\/\)$/{
1416             s//\1/
1417             q
1418           }
1419           /^X\(\/\).*/{
1420             s//\1/
1421             q
1422           }
1423           s/.*/./; q'`
1424   srcdir=$ac_confdir
1425   if test ! -r "$srcdir/$ac_unique_file"; then
1426     srcdir=..
1427   fi
1428 else
1429   ac_srcdir_defaulted=no
1430 fi
1431 if test ! -r "$srcdir/$ac_unique_file"; then
1432   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1433   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1434    { (exit 1); exit 1; }; }
1435 fi
1436 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1437 ac_abs_confdir=`(
1438         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1439    { (exit 1); exit 1; }; }
1440         pwd)`
1441 # When building in place, set srcdir=.
1442 if test "$ac_abs_confdir" = "$ac_pwd"; then
1443   srcdir=.
1444 fi
1445 # Remove unnecessary trailing slashes from srcdir.
1446 # Double slashes in file names in object file debugging info
1447 # mess up M-x gdb in Emacs.
1448 case $srcdir in
1449 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1450 esac
1451 for ac_var in $ac_precious_vars; do
1452   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1453   eval ac_env_${ac_var}_value=\$${ac_var}
1454   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1455   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1456 done
1457
1458 #
1459 # Report the --help message.
1460 #
1461 if test "$ac_init_help" = "long"; then
1462   # Omit some internal or obsolete options to make the list less imposing.
1463   # This message is too long to be a string in the A/UX 3.1 sh.
1464   cat <<_ACEOF
1465 \`configure' configures llvm 2.6svn to adapt to many kinds of systems.
1466
1467 Usage: $0 [OPTION]... [VAR=VALUE]...
1468
1469 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1470 VAR=VALUE.  See below for descriptions of some of the useful variables.
1471
1472 Defaults for the options are specified in brackets.
1473
1474 Configuration:
1475   -h, --help              display this help and exit
1476       --help=short        display options specific to this package
1477       --help=recursive    display the short help of all the included packages
1478   -V, --version           display version information and exit
1479   -q, --quiet, --silent   do not print \`checking...' messages
1480       --cache-file=FILE   cache test results in FILE [disabled]
1481   -C, --config-cache      alias for \`--cache-file=config.cache'
1482   -n, --no-create         do not create output files
1483       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1484
1485 Installation directories:
1486   --prefix=PREFIX         install architecture-independent files in PREFIX
1487                           [$ac_default_prefix]
1488   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1489                           [PREFIX]
1490
1491 By default, \`make install' will install all the files in
1492 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1493 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1494 for instance \`--prefix=\$HOME'.
1495
1496 For better control, use the options below.
1497
1498 Fine tuning of the installation directories:
1499   --bindir=DIR           user executables [EPREFIX/bin]
1500   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1501   --libexecdir=DIR       program executables [EPREFIX/libexec]
1502   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1503   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1504   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1505   --libdir=DIR           object code libraries [EPREFIX/lib]
1506   --includedir=DIR       C header files [PREFIX/include]
1507   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1508   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1509   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1510   --infodir=DIR          info documentation [DATAROOTDIR/info]
1511   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1512   --mandir=DIR           man documentation [DATAROOTDIR/man]
1513   --docdir=DIR           documentation root [DATAROOTDIR/doc/-llvm-]
1514   --htmldir=DIR          html documentation [DOCDIR]
1515   --dvidir=DIR           dvi documentation [DOCDIR]
1516   --pdfdir=DIR           pdf documentation [DOCDIR]
1517   --psdir=DIR            ps documentation [DOCDIR]
1518 _ACEOF
1519
1520   cat <<\_ACEOF
1521
1522 System types:
1523   --build=BUILD     configure for building on BUILD [guessed]
1524   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1525   --target=TARGET   configure for building compilers for TARGET [HOST]
1526 _ACEOF
1527 fi
1528
1529 if test -n "$ac_init_help"; then
1530   case $ac_init_help in
1531      short | recursive ) echo "Configuration of llvm 2.6svn:";;
1532    esac
1533   cat <<\_ACEOF
1534
1535 Optional Features:
1536   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1537   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1538   --enable-optimized      Compile with optimizations enabled (default is NO)
1539   --enable-profiling      Compile with profiling enabled (default is NO)
1540   --enable-assertions     Compile with assertion checks enabled (default is
1541                           YES)
1542   --enable-expensive-checks
1543                           Compile with expensive debug checks enabled (default
1544                           is NO)
1545   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1546                           NO)
1547   --enable-jit            Enable Just In Time Compiling (default is YES)
1548   --enable-doxygen        Build doxygen documentation (default is NO)
1549   --enable-threads        Use threads if available (default is YES)
1550   --enable-pic            Build LLVM with Position Independent Code (default
1551                           is YES)
1552   --enable-targets        Build specific host targets:
1553                           all,host-only,{target-name} (default=all)
1554   --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1555                           %a (default is YES)
1556   --enable-bindings       Build specific language bindings:
1557                           all,auto,none,{binding-name} (default=auto)
1558   --enable-libffi         Check for the presence of libffi (default is YES)
1559   --enable-ltdl-install   install libltdl
1560   --enable-shared[=PKGS]  build shared libraries
1561                           [default=yes]
1562   --enable-static[=PKGS]  build static libraries
1563                           [default=yes]
1564   --enable-fast-install[=PKGS]
1565                           optimize for fast installation
1566                           [default=yes]
1567   --disable-libtool-lock  avoid locking (might break parallel builds)
1568
1569 Optional Packages:
1570   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1571   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1572   --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1573                           searches PATH)
1574   --with-llvmgcc          Specify location of llvm-gcc driver (default
1575                           searches PATH)
1576   --with-llvmgxx          Specify location of llvm-g++ driver (default
1577                           searches PATH)
1578   --with-extra-options    Specify additional options to compile LLVM with
1579   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1580                           is stdlib)
1581   --with-binutils-include Specify path to binutils/include/ containing
1582                           plugin-api.h file for gold plugin.
1583   --with-tclinclude       directory where tcl headers are
1584   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1585   --with-pic              try to use only PIC/non-PIC objects [default=use
1586                           both]
1587   --with-tags[=TAGS]      include additional configurations [automatic]
1588   --with-udis86=<path>    Use udis86 external x86 disassembler library
1589
1590 Some influential environment variables:
1591   CC          C compiler command
1592   CFLAGS      C compiler flags
1593   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1594               nonstandard directory <lib dir>
1595   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1596               you have headers in a nonstandard directory <include dir>
1597   CPP         C preprocessor
1598   CXX         C++ compiler command
1599   CXXFLAGS    C++ compiler flags
1600   CXXCPP      C++ preprocessor
1601   F77         Fortran 77 compiler command
1602   FFLAGS      Fortran 77 compiler flags
1603
1604 Use these variables to override the choices made by `configure' or to help
1605 it to find libraries and programs with nonstandard names/locations.
1606
1607 Report bugs to <llvmbugs@cs.uiuc.edu>.
1608 _ACEOF
1609 ac_status=$?
1610 fi
1611
1612 if test "$ac_init_help" = "recursive"; then
1613   # If there are subdirs, report their specific --help.
1614   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1615     test -d "$ac_dir" || continue
1616     ac_builddir=.
1617
1618 case "$ac_dir" in
1619 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1620 *)
1621   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1622   # A ".." for each directory in $ac_dir_suffix.
1623   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1624   case $ac_top_builddir_sub in
1625   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1626   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1627   esac ;;
1628 esac
1629 ac_abs_top_builddir=$ac_pwd
1630 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1631 # for backward compatibility:
1632 ac_top_builddir=$ac_top_build_prefix
1633
1634 case $srcdir in
1635   .)  # We are building in place.
1636     ac_srcdir=.
1637     ac_top_srcdir=$ac_top_builddir_sub
1638     ac_abs_top_srcdir=$ac_pwd ;;
1639   [\\/]* | ?:[\\/]* )  # Absolute name.
1640     ac_srcdir=$srcdir$ac_dir_suffix;
1641     ac_top_srcdir=$srcdir
1642     ac_abs_top_srcdir=$srcdir ;;
1643   *) # Relative name.
1644     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1645     ac_top_srcdir=$ac_top_build_prefix$srcdir
1646     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1647 esac
1648 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1649
1650     cd "$ac_dir" || { ac_status=$?; continue; }
1651     # Check for guested configure.
1652     if test -f "$ac_srcdir/configure.gnu"; then
1653       echo &&
1654       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1655     elif test -f "$ac_srcdir/configure"; then
1656       echo &&
1657       $SHELL "$ac_srcdir/configure" --help=recursive
1658     else
1659       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1660     fi || ac_status=$?
1661     cd "$ac_pwd" || { ac_status=$?; break; }
1662   done
1663 fi
1664
1665 test -n "$ac_init_help" && exit $ac_status
1666 if $ac_init_version; then
1667   cat <<\_ACEOF
1668 llvm configure 2.6svn
1669 generated by GNU Autoconf 2.60
1670
1671 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1672 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1673 This configure script is free software; the Free Software Foundation
1674 gives unlimited permission to copy, distribute and modify it.
1675
1676 Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
1677 _ACEOF
1678   exit
1679 fi
1680 cat >config.log <<_ACEOF
1681 This file contains any messages produced by compilers while
1682 running configure, to aid debugging if configure makes a mistake.
1683
1684 It was created by llvm $as_me 2.6svn, which was
1685 generated by GNU Autoconf 2.60.  Invocation command line was
1686
1687   $ $0 $@
1688
1689 _ACEOF
1690 exec 5>>config.log
1691 {
1692 cat <<_ASUNAME
1693 ## --------- ##
1694 ## Platform. ##
1695 ## --------- ##
1696
1697 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1698 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1699 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1700 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1701 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1702
1703 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1704 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1705
1706 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1707 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1708 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1709 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1710 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1711 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1712 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1713
1714 _ASUNAME
1715
1716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1717 for as_dir in $PATH
1718 do
1719   IFS=$as_save_IFS
1720   test -z "$as_dir" && as_dir=.
1721   echo "PATH: $as_dir"
1722 done
1723 IFS=$as_save_IFS
1724
1725 } >&5
1726
1727 cat >&5 <<_ACEOF
1728
1729
1730 ## ----------- ##
1731 ## Core tests. ##
1732 ## ----------- ##
1733
1734 _ACEOF
1735
1736
1737 # Keep a trace of the command line.
1738 # Strip out --no-create and --no-recursion so they do not pile up.
1739 # Strip out --silent because we don't want to record it for future runs.
1740 # Also quote any args containing shell meta-characters.
1741 # Make two passes to allow for proper duplicate-argument suppression.
1742 ac_configure_args=
1743 ac_configure_args0=
1744 ac_configure_args1=
1745 ac_must_keep_next=false
1746 for ac_pass in 1 2
1747 do
1748   for ac_arg
1749   do
1750     case $ac_arg in
1751     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1752     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1753     | -silent | --silent | --silen | --sile | --sil)
1754       continue ;;
1755     *\'*)
1756       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1757     esac
1758     case $ac_pass in
1759     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1760     2)
1761       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1762       if test $ac_must_keep_next = true; then
1763         ac_must_keep_next=false # Got value, back to normal.
1764       else
1765         case $ac_arg in
1766           *=* | --config-cache | -C | -disable-* | --disable-* \
1767           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1768           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1769           | -with-* | --with-* | -without-* | --without-* | --x)
1770             case "$ac_configure_args0 " in
1771               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1772             esac
1773             ;;
1774           -* ) ac_must_keep_next=true ;;
1775         esac
1776       fi
1777       ac_configure_args="$ac_configure_args '$ac_arg'"
1778       ;;
1779     esac
1780   done
1781 done
1782 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1783 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1784
1785 # When interrupted or exit'd, cleanup temporary files, and complete
1786 # config.log.  We remove comments because anyway the quotes in there
1787 # would cause problems or look ugly.
1788 # WARNING: Use '\'' to represent an apostrophe within the trap.
1789 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1790 trap 'exit_status=$?
1791   # Save into config.log some information that might help in debugging.
1792   {
1793     echo
1794
1795     cat <<\_ASBOX
1796 ## ---------------- ##
1797 ## Cache variables. ##
1798 ## ---------------- ##
1799 _ASBOX
1800     echo
1801     # The following way of writing the cache mishandles newlines in values,
1802 (
1803   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1804     eval ac_val=\$$ac_var
1805     case $ac_val in #(
1806     *${as_nl}*)
1807       case $ac_var in #(
1808       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1809 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1810       esac
1811       case $ac_var in #(
1812       _ | IFS | as_nl) ;; #(
1813       *) $as_unset $ac_var ;;
1814       esac ;;
1815     esac
1816   done
1817   (set) 2>&1 |
1818     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1819     *${as_nl}ac_space=\ *)
1820       sed -n \
1821         "s/'\''/'\''\\\\'\'''\''/g;
1822           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1823       ;; #(
1824     *)
1825       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1826       ;;
1827     esac |
1828     sort
1829 )
1830     echo
1831
1832     cat <<\_ASBOX
1833 ## ----------------- ##
1834 ## Output variables. ##
1835 ## ----------------- ##
1836 _ASBOX
1837     echo
1838     for ac_var in $ac_subst_vars
1839     do
1840       eval ac_val=\$$ac_var
1841       case $ac_val in
1842       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1843       esac
1844       echo "$ac_var='\''$ac_val'\''"
1845     done | sort
1846     echo
1847
1848     if test -n "$ac_subst_files"; then
1849       cat <<\_ASBOX
1850 ## ------------------- ##
1851 ## File substitutions. ##
1852 ## ------------------- ##
1853 _ASBOX
1854       echo
1855       for ac_var in $ac_subst_files
1856       do
1857         eval ac_val=\$$ac_var
1858         case $ac_val in
1859         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1860         esac
1861         echo "$ac_var='\''$ac_val'\''"
1862       done | sort
1863       echo
1864     fi
1865
1866     if test -s confdefs.h; then
1867       cat <<\_ASBOX
1868 ## ----------- ##
1869 ## confdefs.h. ##
1870 ## ----------- ##
1871 _ASBOX
1872       echo
1873       cat confdefs.h
1874       echo
1875     fi
1876     test "$ac_signal" != 0 &&
1877       echo "$as_me: caught signal $ac_signal"
1878     echo "$as_me: exit $exit_status"
1879   } >&5
1880   rm -f core *.core core.conftest.* &&
1881     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1882     exit $exit_status
1883 ' 0
1884 for ac_signal in 1 2 13 15; do
1885   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1886 done
1887 ac_signal=0
1888
1889 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1890 rm -f -r conftest* confdefs.h
1891
1892 # Predefined preprocessor variables.
1893
1894 cat >>confdefs.h <<_ACEOF
1895 #define PACKAGE_NAME "$PACKAGE_NAME"
1896 _ACEOF
1897
1898
1899 cat >>confdefs.h <<_ACEOF
1900 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1901 _ACEOF
1902
1903
1904 cat >>confdefs.h <<_ACEOF
1905 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1906 _ACEOF
1907
1908
1909 cat >>confdefs.h <<_ACEOF
1910 #define PACKAGE_STRING "$PACKAGE_STRING"
1911 _ACEOF
1912
1913
1914 cat >>confdefs.h <<_ACEOF
1915 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1916 _ACEOF
1917
1918
1919 # Let the site file select an alternate cache file if it wants to.
1920 # Prefer explicitly selected file to automatically selected ones.
1921 if test -n "$CONFIG_SITE"; then
1922   set x "$CONFIG_SITE"
1923 elif test "x$prefix" != xNONE; then
1924   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1925 else
1926   set x "$ac_default_prefix/share/config.site" \
1927         "$ac_default_prefix/etc/config.site"
1928 fi
1929 shift
1930 for ac_site_file
1931 do
1932   if test -r "$ac_site_file"; then
1933     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1934 echo "$as_me: loading site script $ac_site_file" >&6;}
1935     sed 's/^/| /' "$ac_site_file" >&5
1936     . "$ac_site_file"
1937   fi
1938 done
1939
1940 if test -r "$cache_file"; then
1941   # Some versions of bash will fail to source /dev/null (special
1942   # files actually), so we avoid doing that.
1943   if test -f "$cache_file"; then
1944     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1945 echo "$as_me: loading cache $cache_file" >&6;}
1946     case $cache_file in
1947       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1948       *)                      . "./$cache_file";;
1949     esac
1950   fi
1951 else
1952   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1953 echo "$as_me: creating cache $cache_file" >&6;}
1954   >$cache_file
1955 fi
1956
1957 # Check that the precious variables saved in the cache have kept the same
1958 # value.
1959 ac_cache_corrupted=false
1960 for ac_var in $ac_precious_vars; do
1961   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1962   eval ac_new_set=\$ac_env_${ac_var}_set
1963   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1964   eval ac_new_val=\$ac_env_${ac_var}_value
1965   case $ac_old_set,$ac_new_set in
1966     set,)
1967       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1968 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1969       ac_cache_corrupted=: ;;
1970     ,set)
1971       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1972 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1973       ac_cache_corrupted=: ;;
1974     ,);;
1975     *)
1976       if test "x$ac_old_val" != "x$ac_new_val"; then
1977         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1978 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1979         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1980 echo "$as_me:   former value:  $ac_old_val" >&2;}
1981         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1982 echo "$as_me:   current value: $ac_new_val" >&2;}
1983         ac_cache_corrupted=:
1984       fi;;
1985   esac
1986   # Pass precious variables to config.status.
1987   if test "$ac_new_set" = set; then
1988     case $ac_new_val in
1989     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1990     *) ac_arg=$ac_var=$ac_new_val ;;
1991     esac
1992     case " $ac_configure_args " in
1993       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1994       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1995     esac
1996   fi
1997 done
1998 if $ac_cache_corrupted; then
1999   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2000 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2001   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2002 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2003    { (exit 1); exit 1; }; }
2004 fi
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030 ac_ext=c
2031 ac_cpp='$CPP $CPPFLAGS'
2032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2035
2036
2037
2038 LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
2039
2040
2041
2042
2043
2044
2045
2046 ac_aux_dir=
2047 for ac_dir in autoconf "$srcdir"/autoconf; do
2048   if test -f "$ac_dir/install-sh"; then
2049     ac_aux_dir=$ac_dir
2050     ac_install_sh="$ac_aux_dir/install-sh -c"
2051     break
2052   elif test -f "$ac_dir/install.sh"; then
2053     ac_aux_dir=$ac_dir
2054     ac_install_sh="$ac_aux_dir/install.sh -c"
2055     break
2056   elif test -f "$ac_dir/shtool"; then
2057     ac_aux_dir=$ac_dir
2058     ac_install_sh="$ac_aux_dir/shtool install -c"
2059     break
2060   fi
2061 done
2062 if test -z "$ac_aux_dir"; then
2063   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2064 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2065    { (exit 1); exit 1; }; }
2066 fi
2067
2068 # These three variables are undocumented and unsupported,
2069 # and are intended to be withdrawn in a future Autoconf release.
2070 # They can cause serious problems if a builder's source tree is in a directory
2071 # whose full name contains unusual characters.
2072 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2073 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2074 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2075
2076
2077
2078 if test ${srcdir} != "." ; then
2079   if test -f ${srcdir}/include/llvm/Config/config.h ; then
2080     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2081 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2082    { (exit 1); exit 1; }; }
2083   fi
2084 fi
2085
2086 for i in `ls ${srcdir}/projects`
2087 do
2088   if test -d ${srcdir}/projects/${i} ; then
2089     case ${i} in
2090       CVS) ;;
2091       sample)       subdirs="$subdirs projects/sample"
2092     ;;
2093       privbracket)  subdirs="$subdirs projects/privbracket"
2094  ;;
2095       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2096  ;;
2097       # llvm-test is the old name of the test-suite, kept here for backwards
2098       # compatibility
2099       llvm-test)    subdirs="$subdirs projects/llvm-test"
2100  ;;
2101       test-suite)   subdirs="$subdirs projects/test-suite"
2102  ;;
2103       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
2104 ;;
2105       llvm-gcc)     subdirs="$subdirs projects/llvm-gcc"
2106   ;;
2107       llvm-java)    subdirs="$subdirs projects/llvm-java"
2108  ;;
2109       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
2110    ;;
2111       llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2112  ;;
2113       poolalloc)    subdirs="$subdirs projects/poolalloc"
2114  ;;
2115       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
2116  ;;
2117       *)
2118         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2119 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2120         ;;
2121     esac
2122   fi
2123 done
2124
2125
2126 # Make sure we can run config.sub.
2127 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2128   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2129 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2130    { (exit 1); exit 1; }; }
2131
2132 { echo "$as_me:$LINENO: checking build system type" >&5
2133 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2134 if test "${ac_cv_build+set}" = set; then
2135   echo $ECHO_N "(cached) $ECHO_C" >&6
2136 else
2137   ac_build_alias=$build_alias
2138 test "x$ac_build_alias" = x &&
2139   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2140 test "x$ac_build_alias" = x &&
2141   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2142 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2143    { (exit 1); exit 1; }; }
2144 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2145   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2146 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2147    { (exit 1); exit 1; }; }
2148
2149 fi
2150 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2151 echo "${ECHO_T}$ac_cv_build" >&6; }
2152 case $ac_cv_build in
2153 *-*-*) ;;
2154 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2155 echo "$as_me: error: invalid value of canonical build" >&2;}
2156    { (exit 1); exit 1; }; };;
2157 esac
2158 build=$ac_cv_build
2159 ac_save_IFS=$IFS; IFS='-'
2160 set x $ac_cv_build
2161 shift
2162 build_cpu=$1
2163 build_vendor=$2
2164 shift; shift
2165 # Remember, the first character of IFS is used to create $*,
2166 # except with old shells:
2167 build_os=$*
2168 IFS=$ac_save_IFS
2169 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2170
2171
2172 { echo "$as_me:$LINENO: checking host system type" >&5
2173 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2174 if test "${ac_cv_host+set}" = set; then
2175   echo $ECHO_N "(cached) $ECHO_C" >&6
2176 else
2177   if test "x$host_alias" = x; then
2178   ac_cv_host=$ac_cv_build
2179 else
2180   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2181     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2182 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2183    { (exit 1); exit 1; }; }
2184 fi
2185
2186 fi
2187 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2188 echo "${ECHO_T}$ac_cv_host" >&6; }
2189 case $ac_cv_host in
2190 *-*-*) ;;
2191 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2192 echo "$as_me: error: invalid value of canonical host" >&2;}
2193    { (exit 1); exit 1; }; };;
2194 esac
2195 host=$ac_cv_host
2196 ac_save_IFS=$IFS; IFS='-'
2197 set x $ac_cv_host
2198 shift
2199 host_cpu=$1
2200 host_vendor=$2
2201 shift; shift
2202 # Remember, the first character of IFS is used to create $*,
2203 # except with old shells:
2204 host_os=$*
2205 IFS=$ac_save_IFS
2206 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2207
2208
2209 { echo "$as_me:$LINENO: checking target system type" >&5
2210 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2211 if test "${ac_cv_target+set}" = set; then
2212   echo $ECHO_N "(cached) $ECHO_C" >&6
2213 else
2214   if test "x$target_alias" = x; then
2215   ac_cv_target=$ac_cv_host
2216 else
2217   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2218     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2219 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2220    { (exit 1); exit 1; }; }
2221 fi
2222
2223 fi
2224 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2225 echo "${ECHO_T}$ac_cv_target" >&6; }
2226 case $ac_cv_target in
2227 *-*-*) ;;
2228 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2229 echo "$as_me: error: invalid value of canonical target" >&2;}
2230    { (exit 1); exit 1; }; };;
2231 esac
2232 target=$ac_cv_target
2233 ac_save_IFS=$IFS; IFS='-'
2234 set x $ac_cv_target
2235 shift
2236 target_cpu=$1
2237 target_vendor=$2
2238 shift; shift
2239 # Remember, the first character of IFS is used to create $*,
2240 # except with old shells:
2241 target_os=$*
2242 IFS=$ac_save_IFS
2243 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2244
2245
2246 # The aliases save the names the user supplied, while $host etc.
2247 # will get canonicalized.
2248 test -n "$target_alias" &&
2249   test "$program_prefix$program_suffix$program_transform_name" = \
2250     NONENONEs,x,x, &&
2251   program_prefix=${target_alias}-
2252
2253 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2254 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2255 if test "${llvm_cv_os_type+set}" = set; then
2256   echo $ECHO_N "(cached) $ECHO_C" >&6
2257 else
2258   case $host in
2259   *-*-aix*)
2260     llvm_cv_link_all_option="-Wl,--whole-archive"
2261     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2262     llvm_cv_os_type="AIX"
2263     llvm_cv_platform_type="Unix" ;;
2264   *-*-irix*)
2265     llvm_cv_link_all_option="-Wl,--whole-archive"
2266     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2267     llvm_cv_os_type="IRIX"
2268     llvm_cv_platform_type="Unix" ;;
2269   *-*-cygwin*)
2270     llvm_cv_link_all_option="-Wl,--whole-archive"
2271     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2272     llvm_cv_os_type="Cygwin"
2273     llvm_cv_platform_type="Unix" ;;
2274   *-*-darwin*)
2275     llvm_cv_link_all_option="-Wl,-all_load"
2276     llvm_cv_no_link_all_option="-Wl,-noall_load"
2277     llvm_cv_os_type="Darwin"
2278     llvm_cv_platform_type="Unix" ;;
2279   *-*-freebsd*)
2280     llvm_cv_link_all_option="-Wl,--whole-archive"
2281     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2282     llvm_cv_os_type="FreeBSD"
2283     llvm_cv_platform_type="Unix" ;;
2284   *-*-openbsd*)
2285     llvm_cv_link_all_option="-Wl,--whole-archive"
2286     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2287     llvm_cv_os_type="OpenBSD"
2288     llvm_cv_platform_type="Unix" ;;
2289   *-*-netbsd*)
2290     llvm_cv_link_all_option="-Wl,--whole-archive"
2291     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2292     llvm_cv_os_type="NetBSD"
2293     llvm_cv_platform_type="Unix" ;;
2294   *-*-dragonfly*)
2295     llvm_cv_link_all_option="-Wl,--whole-archive"
2296     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2297     llvm_cv_os_type="DragonFly"
2298     llvm_cv_platform_type="Unix" ;;
2299   *-*-hpux*)
2300     llvm_cv_link_all_option="-Wl,--whole-archive"
2301     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2302     llvm_cv_os_type="HP-UX"
2303     llvm_cv_platform_type="Unix" ;;
2304   *-*-interix*)
2305     llvm_cv_link_all_option="-Wl,--whole-archive"
2306     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2307     llvm_cv_os_type="Interix"
2308     llvm_cv_platform_type="Unix" ;;
2309   *-*-linux*)
2310     llvm_cv_link_all_option="-Wl,--whole-archive"
2311     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2312     llvm_cv_os_type="Linux"
2313     llvm_cv_platform_type="Unix" ;;
2314   *-*-solaris*)
2315     llvm_cv_link_all_option="-Wl,-z,allextract"
2316     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2317     llvm_cv_os_type="SunOS"
2318     llvm_cv_platform_type="Unix" ;;
2319   *-*-win32*)
2320     llvm_cv_link_all_option="-Wl,--whole-archive"
2321     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2322     llvm_cv_os_type="Win32"
2323     llvm_cv_platform_type="Win32" ;;
2324   *-*-mingw*)
2325     llvm_cv_link_all_option="-Wl,--whole-archive"
2326     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2327     llvm_cv_os_type="MingW"
2328     llvm_cv_platform_type="Win32" ;;
2329   *)
2330     llvm_cv_link_all_option=""
2331     llvm_cv_no_link_all_option=""
2332     llvm_cv_os_type="Unknown"
2333     llvm_cv_platform_type="Unknown" ;;
2334 esac
2335 fi
2336 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2337 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2338
2339 if test "$llvm_cv_os_type" = "Unknown" ; then
2340   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2341 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2342    { (exit 1); exit 1; }; }
2343 fi
2344
2345 OS=$llvm_cv_os_type
2346
2347
2348 LINKALL=$llvm_cv_link_all_option
2349
2350 NOLINKALL=$llvm_cv_no_link_all_option
2351
2352
2353 case $llvm_cv_platform_type in
2354   Unix)
2355
2356 cat >>confdefs.h <<\_ACEOF
2357 #define LLVM_ON_UNIX 1
2358 _ACEOF
2359
2360     LLVM_ON_UNIX=1
2361
2362     LLVM_ON_WIN32=0
2363
2364     ;;
2365   Win32)
2366
2367 cat >>confdefs.h <<\_ACEOF
2368 #define LLVM_ON_WIN32 1
2369 _ACEOF
2370
2371     LLVM_ON_UNIX=0
2372
2373     LLVM_ON_WIN32=1
2374
2375     ;;
2376 esac
2377
2378 { echo "$as_me:$LINENO: checking target architecture" >&5
2379 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2380 if test "${llvm_cv_target_arch+set}" = set; then
2381   echo $ECHO_N "(cached) $ECHO_C" >&6
2382 else
2383   case $target in
2384   i?86-*)                 llvm_cv_target_arch="x86" ;;
2385   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
2386   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
2387   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
2388   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
2389   ia64-*)                 llvm_cv_target_arch="IA64" ;;
2390   arm*-*)                 llvm_cv_target_arch="ARM" ;;
2391   mips-*)                 llvm_cv_target_arch="Mips" ;;
2392   pic16-*)                llvm_cv_target_arch="PIC16" ;;
2393   xcore-*)                llvm_cv_target_arch="XCore" ;;
2394   msp430-*)               llvm_cv_target_arch="MSP430" ;;
2395   *)                      llvm_cv_target_arch="Unknown" ;;
2396 esac
2397 fi
2398 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2399 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2400
2401 if test "$llvm_cv_target_arch" = "Unknown" ; then
2402   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2403 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2404 fi
2405
2406 # Determine the LLVM native architecture for the target
2407 case "$llvm_cv_target_arch" in
2408     x86)     LLVM_NATIVE_ARCH="X86" ;;
2409     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
2410     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2411 esac
2412
2413 ARCH=$llvm_cv_target_arch
2414
2415
2416 ac_ext=c
2417 ac_cpp='$CPP $CPPFLAGS'
2418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2421 if test -n "$ac_tool_prefix"; then
2422   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2423 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2424 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2426 if test "${ac_cv_prog_CC+set}" = set; then
2427   echo $ECHO_N "(cached) $ECHO_C" >&6
2428 else
2429   if test -n "$CC"; then
2430   ac_cv_prog_CC="$CC" # Let the user override the test.
2431 else
2432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2433 for as_dir in $PATH
2434 do
2435   IFS=$as_save_IFS
2436   test -z "$as_dir" && as_dir=.
2437   for ac_exec_ext in '' $ac_executable_extensions; do
2438   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2439     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2440     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2441     break 2
2442   fi
2443 done
2444 done
2445 IFS=$as_save_IFS
2446
2447 fi
2448 fi
2449 CC=$ac_cv_prog_CC
2450 if test -n "$CC"; then
2451   { echo "$as_me:$LINENO: result: $CC" >&5
2452 echo "${ECHO_T}$CC" >&6; }
2453 else
2454   { echo "$as_me:$LINENO: result: no" >&5
2455 echo "${ECHO_T}no" >&6; }
2456 fi
2457
2458
2459 fi
2460 if test -z "$ac_cv_prog_CC"; then
2461   ac_ct_CC=$CC
2462   # Extract the first word of "gcc", so it can be a program name with args.
2463 set dummy gcc; ac_word=$2
2464 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2466 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2467   echo $ECHO_N "(cached) $ECHO_C" >&6
2468 else
2469   if test -n "$ac_ct_CC"; then
2470   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2471 else
2472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2473 for as_dir in $PATH
2474 do
2475   IFS=$as_save_IFS
2476   test -z "$as_dir" && as_dir=.
2477   for ac_exec_ext in '' $ac_executable_extensions; do
2478   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2479     ac_cv_prog_ac_ct_CC="gcc"
2480     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2481     break 2
2482   fi
2483 done
2484 done
2485 IFS=$as_save_IFS
2486
2487 fi
2488 fi
2489 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2490 if test -n "$ac_ct_CC"; then
2491   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2492 echo "${ECHO_T}$ac_ct_CC" >&6; }
2493 else
2494   { echo "$as_me:$LINENO: result: no" >&5
2495 echo "${ECHO_T}no" >&6; }
2496 fi
2497
2498   if test "x$ac_ct_CC" = x; then
2499     CC=""
2500   else
2501     case $cross_compiling:$ac_tool_warned in
2502 yes:)
2503 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2504 whose name does not start with the host triplet.  If you think this
2505 configuration is useful to you, please write to autoconf@gnu.org." >&5
2506 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2507 whose name does not start with the host triplet.  If you think this
2508 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2509 ac_tool_warned=yes ;;
2510 esac
2511     CC=$ac_ct_CC
2512   fi
2513 else
2514   CC="$ac_cv_prog_CC"
2515 fi
2516
2517 if test -z "$CC"; then
2518           if test -n "$ac_tool_prefix"; then
2519     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2520 set dummy ${ac_tool_prefix}cc; ac_word=$2
2521 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2523 if test "${ac_cv_prog_CC+set}" = set; then
2524   echo $ECHO_N "(cached) $ECHO_C" >&6
2525 else
2526   if test -n "$CC"; then
2527   ac_cv_prog_CC="$CC" # Let the user override the test.
2528 else
2529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2530 for as_dir in $PATH
2531 do
2532   IFS=$as_save_IFS
2533   test -z "$as_dir" && as_dir=.
2534   for ac_exec_ext in '' $ac_executable_extensions; do
2535   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2536     ac_cv_prog_CC="${ac_tool_prefix}cc"
2537     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2538     break 2
2539   fi
2540 done
2541 done
2542 IFS=$as_save_IFS
2543
2544 fi
2545 fi
2546 CC=$ac_cv_prog_CC
2547 if test -n "$CC"; then
2548   { echo "$as_me:$LINENO: result: $CC" >&5
2549 echo "${ECHO_T}$CC" >&6; }
2550 else
2551   { echo "$as_me:$LINENO: result: no" >&5
2552 echo "${ECHO_T}no" >&6; }
2553 fi
2554
2555
2556   fi
2557 fi
2558 if test -z "$CC"; then
2559   # Extract the first word of "cc", so it can be a program name with args.
2560 set dummy cc; ac_word=$2
2561 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2563 if test "${ac_cv_prog_CC+set}" = set; then
2564   echo $ECHO_N "(cached) $ECHO_C" >&6
2565 else
2566   if test -n "$CC"; then
2567   ac_cv_prog_CC="$CC" # Let the user override the test.
2568 else
2569   ac_prog_rejected=no
2570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2571 for as_dir in $PATH
2572 do
2573   IFS=$as_save_IFS
2574   test -z "$as_dir" && as_dir=.
2575   for ac_exec_ext in '' $ac_executable_extensions; do
2576   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2577     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2578        ac_prog_rejected=yes
2579        continue
2580      fi
2581     ac_cv_prog_CC="cc"
2582     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2583     break 2
2584   fi
2585 done
2586 done
2587 IFS=$as_save_IFS
2588
2589 if test $ac_prog_rejected = yes; then
2590   # We found a bogon in the path, so make sure we never use it.
2591   set dummy $ac_cv_prog_CC
2592   shift
2593   if test $# != 0; then
2594     # We chose a different compiler from the bogus one.
2595     # However, it has the same basename, so the bogon will be chosen
2596     # first if we set CC to just the basename; use the full file name.
2597     shift
2598     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2599   fi
2600 fi
2601 fi
2602 fi
2603 CC=$ac_cv_prog_CC
2604 if test -n "$CC"; then
2605   { echo "$as_me:$LINENO: result: $CC" >&5
2606 echo "${ECHO_T}$CC" >&6; }
2607 else
2608   { echo "$as_me:$LINENO: result: no" >&5
2609 echo "${ECHO_T}no" >&6; }
2610 fi
2611
2612
2613 fi
2614 if test -z "$CC"; then
2615   if test -n "$ac_tool_prefix"; then
2616   for ac_prog in cl.exe
2617   do
2618     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2619 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2620 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2622 if test "${ac_cv_prog_CC+set}" = set; then
2623   echo $ECHO_N "(cached) $ECHO_C" >&6
2624 else
2625   if test -n "$CC"; then
2626   ac_cv_prog_CC="$CC" # Let the user override the test.
2627 else
2628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2629 for as_dir in $PATH
2630 do
2631   IFS=$as_save_IFS
2632   test -z "$as_dir" && as_dir=.
2633   for ac_exec_ext in '' $ac_executable_extensions; do
2634   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2635     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2636     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2637     break 2
2638   fi
2639 done
2640 done
2641 IFS=$as_save_IFS
2642
2643 fi
2644 fi
2645 CC=$ac_cv_prog_CC
2646 if test -n "$CC"; then
2647   { echo "$as_me:$LINENO: result: $CC" >&5
2648 echo "${ECHO_T}$CC" >&6; }
2649 else
2650   { echo "$as_me:$LINENO: result: no" >&5
2651 echo "${ECHO_T}no" >&6; }
2652 fi
2653
2654
2655     test -n "$CC" && break
2656   done
2657 fi
2658 if test -z "$CC"; then
2659   ac_ct_CC=$CC
2660   for ac_prog in cl.exe
2661 do
2662   # Extract the first word of "$ac_prog", so it can be a program name with args.
2663 set dummy $ac_prog; ac_word=$2
2664 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2666 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2667   echo $ECHO_N "(cached) $ECHO_C" >&6
2668 else
2669   if test -n "$ac_ct_CC"; then
2670   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2671 else
2672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2673 for as_dir in $PATH
2674 do
2675   IFS=$as_save_IFS
2676   test -z "$as_dir" && as_dir=.
2677   for ac_exec_ext in '' $ac_executable_extensions; do
2678   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2679     ac_cv_prog_ac_ct_CC="$ac_prog"
2680     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2681     break 2
2682   fi
2683 done
2684 done
2685 IFS=$as_save_IFS
2686
2687 fi
2688 fi
2689 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2690 if test -n "$ac_ct_CC"; then
2691   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2692 echo "${ECHO_T}$ac_ct_CC" >&6; }
2693 else
2694   { echo "$as_me:$LINENO: result: no" >&5
2695 echo "${ECHO_T}no" >&6; }
2696 fi
2697
2698
2699   test -n "$ac_ct_CC" && break
2700 done
2701
2702   if test "x$ac_ct_CC" = x; then
2703     CC=""
2704   else
2705     case $cross_compiling:$ac_tool_warned in
2706 yes:)
2707 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2708 whose name does not start with the host triplet.  If you think this
2709 configuration is useful to you, please write to autoconf@gnu.org." >&5
2710 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2711 whose name does not start with the host triplet.  If you think this
2712 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2713 ac_tool_warned=yes ;;
2714 esac
2715     CC=$ac_ct_CC
2716   fi
2717 fi
2718
2719 fi
2720
2721
2722 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2723 See \`config.log' for more details." >&5
2724 echo "$as_me: error: no acceptable C compiler found in \$PATH
2725 See \`config.log' for more details." >&2;}
2726    { (exit 1); exit 1; }; }
2727
2728 # Provide some information about the compiler.
2729 echo "$as_me:$LINENO: checking for C compiler version" >&5
2730 ac_compiler=`set X $ac_compile; echo $2`
2731 { (ac_try="$ac_compiler --version >&5"
2732 case "(($ac_try" in
2733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2734   *) ac_try_echo=$ac_try;;
2735 esac
2736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2737   (eval "$ac_compiler --version >&5") 2>&5
2738   ac_status=$?
2739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740   (exit $ac_status); }
2741 { (ac_try="$ac_compiler -v >&5"
2742 case "(($ac_try" in
2743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2744   *) ac_try_echo=$ac_try;;
2745 esac
2746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2747   (eval "$ac_compiler -v >&5") 2>&5
2748   ac_status=$?
2749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750   (exit $ac_status); }
2751 { (ac_try="$ac_compiler -V >&5"
2752 case "(($ac_try" in
2753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2754   *) ac_try_echo=$ac_try;;
2755 esac
2756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2757   (eval "$ac_compiler -V >&5") 2>&5
2758   ac_status=$?
2759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760   (exit $ac_status); }
2761
2762 cat >conftest.$ac_ext <<_ACEOF
2763 /* confdefs.h.  */
2764 _ACEOF
2765 cat confdefs.h >>conftest.$ac_ext
2766 cat >>conftest.$ac_ext <<_ACEOF
2767 /* end confdefs.h.  */
2768
2769 int
2770 main ()
2771 {
2772
2773   ;
2774   return 0;
2775 }
2776 _ACEOF
2777 ac_clean_files_save=$ac_clean_files
2778 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2779 # Try to create an executable without -o first, disregard a.out.
2780 # It will help us diagnose broken compilers, and finding out an intuition
2781 # of exeext.
2782 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2783 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2784 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2785 #
2786 # List of possible output files, starting from the most likely.
2787 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2788 # only as a last resort.  b.out is created by i960 compilers.
2789 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2790 #
2791 # The IRIX 6 linker writes into existing files which may not be
2792 # executable, retaining their permissions.  Remove them first so a
2793 # subsequent execution test works.
2794 ac_rmfiles=
2795 for ac_file in $ac_files
2796 do
2797   case $ac_file in
2798     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2799     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2800   esac
2801 done
2802 rm -f $ac_rmfiles
2803
2804 if { (ac_try="$ac_link_default"
2805 case "(($ac_try" in
2806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2807   *) ac_try_echo=$ac_try;;
2808 esac
2809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2810   (eval "$ac_link_default") 2>&5
2811   ac_status=$?
2812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813   (exit $ac_status); }; then
2814   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2815 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2816 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2817 # so that the user can short-circuit this test for compilers unknown to
2818 # Autoconf.
2819 for ac_file in $ac_files
2820 do
2821   test -f "$ac_file" || continue
2822   case $ac_file in
2823     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2824         ;;
2825     [ab].out )
2826         # We found the default executable, but exeext='' is most
2827         # certainly right.
2828         break;;
2829     *.* )
2830         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2831         then :; else
2832            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2833         fi
2834         # We set ac_cv_exeext here because the later test for it is not
2835         # safe: cross compilers may not add the suffix if given an `-o'
2836         # argument, so we may need to know it at that point already.
2837         # Even if this section looks crufty: it has the advantage of
2838         # actually working.
2839         break;;
2840     * )
2841         break;;
2842   esac
2843 done
2844 test "$ac_cv_exeext" = no && ac_cv_exeext=
2845
2846 else
2847   echo "$as_me: failed program was:" >&5
2848 sed 's/^/| /' conftest.$ac_ext >&5
2849
2850 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2851 See \`config.log' for more details." >&5
2852 echo "$as_me: error: C compiler cannot create executables
2853 See \`config.log' for more details." >&2;}
2854    { (exit 77); exit 77; }; }
2855 fi
2856
2857 ac_exeext=$ac_cv_exeext
2858 { echo "$as_me:$LINENO: result: $ac_file" >&5
2859 echo "${ECHO_T}$ac_file" >&6; }
2860
2861 # Check that the compiler produces executables we can run.  If not, either
2862 # the compiler is broken, or we cross compile.
2863 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2864 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2865 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2866 # If not cross compiling, check that we can run a simple program.
2867 if test "$cross_compiling" != yes; then
2868   if { ac_try='./$ac_file'
2869   { (case "(($ac_try" in
2870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2871   *) ac_try_echo=$ac_try;;
2872 esac
2873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2874   (eval "$ac_try") 2>&5
2875   ac_status=$?
2876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2877   (exit $ac_status); }; }; then
2878     cross_compiling=no
2879   else
2880     if test "$cross_compiling" = maybe; then
2881         cross_compiling=yes
2882     else
2883         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2884 If you meant to cross compile, use \`--host'.
2885 See \`config.log' for more details." >&5
2886 echo "$as_me: error: cannot run C compiled programs.
2887 If you meant to cross compile, use \`--host'.
2888 See \`config.log' for more details." >&2;}
2889    { (exit 1); exit 1; }; }
2890     fi
2891   fi
2892 fi
2893 { echo "$as_me:$LINENO: result: yes" >&5
2894 echo "${ECHO_T}yes" >&6; }
2895
2896 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2897 ac_clean_files=$ac_clean_files_save
2898 # Check that the compiler produces executables we can run.  If not, either
2899 # the compiler is broken, or we cross compile.
2900 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2901 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2902 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2903 echo "${ECHO_T}$cross_compiling" >&6; }
2904
2905 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2906 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2907 if { (ac_try="$ac_link"
2908 case "(($ac_try" in
2909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2910   *) ac_try_echo=$ac_try;;
2911 esac
2912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2913   (eval "$ac_link") 2>&5
2914   ac_status=$?
2915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916   (exit $ac_status); }; then
2917   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2918 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2919 # work properly (i.e., refer to `conftest.exe'), while it won't with
2920 # `rm'.
2921 for ac_file in conftest.exe conftest conftest.*; do
2922   test -f "$ac_file" || continue
2923   case $ac_file in
2924     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2925     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2926           break;;
2927     * ) break;;
2928   esac
2929 done
2930 else
2931   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2932 See \`config.log' for more details." >&5
2933 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2934 See \`config.log' for more details." >&2;}
2935    { (exit 1); exit 1; }; }
2936 fi
2937
2938 rm -f conftest$ac_cv_exeext
2939 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2940 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2941
2942 rm -f conftest.$ac_ext
2943 EXEEXT=$ac_cv_exeext
2944 ac_exeext=$EXEEXT
2945 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2946 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2947 if test "${ac_cv_objext+set}" = set; then
2948   echo $ECHO_N "(cached) $ECHO_C" >&6
2949 else
2950   cat >conftest.$ac_ext <<_ACEOF
2951 /* confdefs.h.  */
2952 _ACEOF
2953 cat confdefs.h >>conftest.$ac_ext
2954 cat >>conftest.$ac_ext <<_ACEOF
2955 /* end confdefs.h.  */
2956
2957 int
2958 main ()
2959 {
2960
2961   ;
2962   return 0;
2963 }
2964 _ACEOF
2965 rm -f conftest.o conftest.obj
2966 if { (ac_try="$ac_compile"
2967 case "(($ac_try" in
2968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2969   *) ac_try_echo=$ac_try;;
2970 esac
2971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2972   (eval "$ac_compile") 2>&5
2973   ac_status=$?
2974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975   (exit $ac_status); }; then
2976   for ac_file in conftest.o conftest.obj conftest.*; do
2977   test -f "$ac_file" || continue;
2978   case $ac_file in
2979     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2980     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2981        break;;
2982   esac
2983 done
2984 else
2985   echo "$as_me: failed program was:" >&5
2986 sed 's/^/| /' conftest.$ac_ext >&5
2987
2988 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2989 See \`config.log' for more details." >&5
2990 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2991 See \`config.log' for more details." >&2;}
2992    { (exit 1); exit 1; }; }
2993 fi
2994
2995 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2996 fi
2997 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2998 echo "${ECHO_T}$ac_cv_objext" >&6; }
2999 OBJEXT=$ac_cv_objext
3000 ac_objext=$OBJEXT
3001 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3002 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3003 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3004   echo $ECHO_N "(cached) $ECHO_C" >&6
3005 else
3006   cat >conftest.$ac_ext <<_ACEOF
3007 /* confdefs.h.  */
3008 _ACEOF
3009 cat confdefs.h >>conftest.$ac_ext
3010 cat >>conftest.$ac_ext <<_ACEOF
3011 /* end confdefs.h.  */
3012
3013 int
3014 main ()
3015 {
3016 #ifndef __GNUC__
3017        choke me
3018 #endif
3019
3020   ;
3021   return 0;
3022 }
3023 _ACEOF
3024 rm -f conftest.$ac_objext
3025 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
3032   ac_status=$?
3033   grep -v '^ *+' conftest.er1 >conftest.err
3034   rm -f conftest.er1
3035   cat conftest.err >&5
3036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037   (exit $ac_status); } &&
3038          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3039   { (case "(($ac_try" in
3040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3041   *) ac_try_echo=$ac_try;;
3042 esac
3043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3044   (eval "$ac_try") 2>&5
3045   ac_status=$?
3046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047   (exit $ac_status); }; } &&
3048          { ac_try='test -s conftest.$ac_objext'
3049   { (case "(($ac_try" in
3050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3051   *) ac_try_echo=$ac_try;;
3052 esac
3053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3054   (eval "$ac_try") 2>&5
3055   ac_status=$?
3056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057   (exit $ac_status); }; }; then
3058   ac_compiler_gnu=yes
3059 else
3060   echo "$as_me: failed program was:" >&5
3061 sed 's/^/| /' conftest.$ac_ext >&5
3062
3063         ac_compiler_gnu=no
3064 fi
3065
3066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3067 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3068
3069 fi
3070 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3071 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3072 GCC=`test $ac_compiler_gnu = yes && echo yes`
3073 ac_test_CFLAGS=${CFLAGS+set}
3074 ac_save_CFLAGS=$CFLAGS
3075 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3076 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3077 if test "${ac_cv_prog_cc_g+set}" = set; then
3078   echo $ECHO_N "(cached) $ECHO_C" >&6
3079 else
3080   ac_save_c_werror_flag=$ac_c_werror_flag
3081    ac_c_werror_flag=yes
3082    ac_cv_prog_cc_g=no
3083    CFLAGS="-g"
3084    cat >conftest.$ac_ext <<_ACEOF
3085 /* confdefs.h.  */
3086 _ACEOF
3087 cat confdefs.h >>conftest.$ac_ext
3088 cat >>conftest.$ac_ext <<_ACEOF
3089 /* end confdefs.h.  */
3090
3091 int
3092 main ()
3093 {
3094
3095   ;
3096   return 0;
3097 }
3098 _ACEOF
3099 rm -f conftest.$ac_objext
3100 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
3107   ac_status=$?
3108   grep -v '^ *+' conftest.er1 >conftest.err
3109   rm -f conftest.er1
3110   cat conftest.err >&5
3111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112   (exit $ac_status); } &&
3113          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3114   { (case "(($ac_try" in
3115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3116   *) ac_try_echo=$ac_try;;
3117 esac
3118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3119   (eval "$ac_try") 2>&5
3120   ac_status=$?
3121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122   (exit $ac_status); }; } &&
3123          { ac_try='test -s conftest.$ac_objext'
3124   { (case "(($ac_try" in
3125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3126   *) ac_try_echo=$ac_try;;
3127 esac
3128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3129   (eval "$ac_try") 2>&5
3130   ac_status=$?
3131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132   (exit $ac_status); }; }; then
3133   ac_cv_prog_cc_g=yes
3134 else
3135   echo "$as_me: failed program was:" >&5
3136 sed 's/^/| /' conftest.$ac_ext >&5
3137
3138         CFLAGS=""
3139       cat >conftest.$ac_ext <<_ACEOF
3140 /* confdefs.h.  */
3141 _ACEOF
3142 cat confdefs.h >>conftest.$ac_ext
3143 cat >>conftest.$ac_ext <<_ACEOF
3144 /* end confdefs.h.  */
3145
3146 int
3147 main ()
3148 {
3149
3150   ;
3151   return 0;
3152 }
3153 _ACEOF
3154 rm -f conftest.$ac_objext
3155 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
3162   ac_status=$?
3163   grep -v '^ *+' conftest.er1 >conftest.err
3164   rm -f conftest.er1
3165   cat conftest.err >&5
3166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3167   (exit $ac_status); } &&
3168          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3169   { (case "(($ac_try" in
3170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3171   *) ac_try_echo=$ac_try;;
3172 esac
3173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3174   (eval "$ac_try") 2>&5
3175   ac_status=$?
3176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177   (exit $ac_status); }; } &&
3178          { ac_try='test -s conftest.$ac_objext'
3179   { (case "(($ac_try" in
3180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3181   *) ac_try_echo=$ac_try;;
3182 esac
3183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3184   (eval "$ac_try") 2>&5
3185   ac_status=$?
3186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187   (exit $ac_status); }; }; then
3188   :
3189 else
3190   echo "$as_me: failed program was:" >&5
3191 sed 's/^/| /' conftest.$ac_ext >&5
3192
3193         ac_c_werror_flag=$ac_save_c_werror_flag
3194          CFLAGS="-g"
3195          cat >conftest.$ac_ext <<_ACEOF
3196 /* confdefs.h.  */
3197 _ACEOF
3198 cat confdefs.h >>conftest.$ac_ext
3199 cat >>conftest.$ac_ext <<_ACEOF
3200 /* end confdefs.h.  */
3201
3202 int
3203 main ()
3204 {
3205
3206   ;
3207   return 0;
3208 }
3209 _ACEOF
3210 rm -f conftest.$ac_objext
3211 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
3218   ac_status=$?
3219   grep -v '^ *+' conftest.er1 >conftest.err
3220   rm -f conftest.er1
3221   cat conftest.err >&5
3222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3223   (exit $ac_status); } &&
3224          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3225   { (case "(($ac_try" in
3226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3227   *) ac_try_echo=$ac_try;;
3228 esac
3229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3230   (eval "$ac_try") 2>&5
3231   ac_status=$?
3232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3233   (exit $ac_status); }; } &&
3234          { ac_try='test -s conftest.$ac_objext'
3235   { (case "(($ac_try" in
3236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3237   *) ac_try_echo=$ac_try;;
3238 esac
3239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3240   (eval "$ac_try") 2>&5
3241   ac_status=$?
3242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243   (exit $ac_status); }; }; then
3244   ac_cv_prog_cc_g=yes
3245 else
3246   echo "$as_me: failed program was:" >&5
3247 sed 's/^/| /' conftest.$ac_ext >&5
3248
3249
3250 fi
3251
3252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3253 fi
3254
3255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3256 fi
3257
3258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3259    ac_c_werror_flag=$ac_save_c_werror_flag
3260 fi
3261 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3262 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3263 if test "$ac_test_CFLAGS" = set; then
3264   CFLAGS=$ac_save_CFLAGS
3265 elif test $ac_cv_prog_cc_g = yes; then
3266   if test "$GCC" = yes; then
3267     CFLAGS="-g -O2"
3268   else
3269     CFLAGS="-g"
3270   fi
3271 else
3272   if test "$GCC" = yes; then
3273     CFLAGS="-O2"
3274   else
3275     CFLAGS=
3276   fi
3277 fi
3278 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3279 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3280 if test "${ac_cv_prog_cc_c89+set}" = set; then
3281   echo $ECHO_N "(cached) $ECHO_C" >&6
3282 else
3283   ac_cv_prog_cc_c89=no
3284 ac_save_CC=$CC
3285 cat >conftest.$ac_ext <<_ACEOF
3286 /* confdefs.h.  */
3287 _ACEOF
3288 cat confdefs.h >>conftest.$ac_ext
3289 cat >>conftest.$ac_ext <<_ACEOF
3290 /* end confdefs.h.  */
3291 #include <stdarg.h>
3292 #include <stdio.h>
3293 #include <sys/types.h>
3294 #include <sys/stat.h>
3295 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3296 struct buf { int x; };
3297 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3298 static char *e (p, i)
3299      char **p;
3300      int i;
3301 {
3302   return p[i];
3303 }
3304 static char *f (char * (*g) (char **, int), char **p, ...)
3305 {
3306   char *s;
3307   va_list v;
3308   va_start (v,p);
3309   s = g (p, va_arg (v,int));
3310   va_end (v);
3311   return s;
3312 }
3313
3314 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3315    function prototypes and stuff, but not '\xHH' hex character constants.
3316    These don't provoke an error unfortunately, instead are silently treated
3317    as 'x'.  The following induces an error, until -std is added to get
3318    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3319    array size at least.  It's necessary to write '\x00'==0 to get something
3320    that's true only with -std.  */
3321 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3322
3323 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3324    inside strings and character constants.  */
3325 #define FOO(x) 'x'
3326 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3327
3328 int test (int i, double x);
3329 struct s1 {int (*f) (int a);};
3330 struct s2 {int (*f) (double a);};
3331 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3332 int argc;
3333 char **argv;
3334 int
3335 main ()
3336 {
3337 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3338   ;
3339   return 0;
3340 }
3341 _ACEOF
3342 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3343         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3344 do
3345   CC="$ac_save_CC $ac_arg"
3346   rm -f conftest.$ac_objext
3347 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
3354   ac_status=$?
3355   grep -v '^ *+' conftest.er1 >conftest.err
3356   rm -f conftest.er1
3357   cat conftest.err >&5
3358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359   (exit $ac_status); } &&
3360          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3361   { (case "(($ac_try" in
3362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3363   *) ac_try_echo=$ac_try;;
3364 esac
3365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3366   (eval "$ac_try") 2>&5
3367   ac_status=$?
3368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369   (exit $ac_status); }; } &&
3370          { ac_try='test -s conftest.$ac_objext'
3371   { (case "(($ac_try" in
3372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3373   *) ac_try_echo=$ac_try;;
3374 esac
3375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3376   (eval "$ac_try") 2>&5
3377   ac_status=$?
3378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3379   (exit $ac_status); }; }; then
3380   ac_cv_prog_cc_c89=$ac_arg
3381 else
3382   echo "$as_me: failed program was:" >&5
3383 sed 's/^/| /' conftest.$ac_ext >&5
3384
3385
3386 fi
3387
3388 rm -f core conftest.err conftest.$ac_objext
3389   test "x$ac_cv_prog_cc_c89" != "xno" && break
3390 done
3391 rm -f conftest.$ac_ext
3392 CC=$ac_save_CC
3393
3394 fi
3395 # AC_CACHE_VAL
3396 case "x$ac_cv_prog_cc_c89" in
3397   x)
3398     { echo "$as_me:$LINENO: result: none needed" >&5
3399 echo "${ECHO_T}none needed" >&6; } ;;
3400   xno)
3401     { echo "$as_me:$LINENO: result: unsupported" >&5
3402 echo "${ECHO_T}unsupported" >&6; } ;;
3403   *)
3404     CC="$CC $ac_cv_prog_cc_c89"
3405     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3406 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3407 esac
3408
3409
3410 ac_ext=c
3411 ac_cpp='$CPP $CPPFLAGS'
3412 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3413 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3414 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3415
3416
3417 ac_ext=c
3418 ac_cpp='$CPP $CPPFLAGS'
3419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3422 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3423 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3424 # On Suns, sometimes $CPP names a directory.
3425 if test -n "$CPP" && test -d "$CPP"; then
3426   CPP=
3427 fi
3428 if test -z "$CPP"; then
3429   if test "${ac_cv_prog_CPP+set}" = set; then
3430   echo $ECHO_N "(cached) $ECHO_C" >&6
3431 else
3432       # Double quotes because CPP needs to be expanded
3433     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3434     do
3435       ac_preproc_ok=false
3436 for ac_c_preproc_warn_flag in '' yes
3437 do
3438   # Use a header file that comes with gcc, so configuring glibc
3439   # with a fresh cross-compiler works.
3440   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3441   # <limits.h> exists even on freestanding compilers.
3442   # On the NeXT, cc -E runs the code through the compiler's parser,
3443   # not just through cpp. "Syntax error" is here to catch this case.
3444   cat >conftest.$ac_ext <<_ACEOF
3445 /* confdefs.h.  */
3446 _ACEOF
3447 cat confdefs.h >>conftest.$ac_ext
3448 cat >>conftest.$ac_ext <<_ACEOF
3449 /* end confdefs.h.  */
3450 #ifdef __STDC__
3451 # include <limits.h>
3452 #else
3453 # include <assert.h>
3454 #endif
3455                      Syntax error
3456 _ACEOF
3457 if { (ac_try="$ac_cpp conftest.$ac_ext"
3458 case "(($ac_try" in
3459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3460   *) ac_try_echo=$ac_try;;
3461 esac
3462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3463   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3464   ac_status=$?
3465   grep -v '^ *+' conftest.er1 >conftest.err
3466   rm -f conftest.er1
3467   cat conftest.err >&5
3468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469   (exit $ac_status); } >/dev/null; then
3470   if test -s conftest.err; then
3471     ac_cpp_err=$ac_c_preproc_warn_flag
3472     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3473   else
3474     ac_cpp_err=
3475   fi
3476 else
3477   ac_cpp_err=yes
3478 fi
3479 if test -z "$ac_cpp_err"; then
3480   :
3481 else
3482   echo "$as_me: failed program was:" >&5
3483 sed 's/^/| /' conftest.$ac_ext >&5
3484
3485   # Broken: fails on valid input.
3486 continue
3487 fi
3488
3489 rm -f conftest.err conftest.$ac_ext
3490
3491   # OK, works on sane cases.  Now check whether nonexistent headers
3492   # can be detected and how.
3493   cat >conftest.$ac_ext <<_ACEOF
3494 /* confdefs.h.  */
3495 _ACEOF
3496 cat confdefs.h >>conftest.$ac_ext
3497 cat >>conftest.$ac_ext <<_ACEOF
3498 /* end confdefs.h.  */
3499 #include <ac_nonexistent.h>
3500 _ACEOF
3501 if { (ac_try="$ac_cpp conftest.$ac_ext"
3502 case "(($ac_try" in
3503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3504   *) ac_try_echo=$ac_try;;
3505 esac
3506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3507   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3508   ac_status=$?
3509   grep -v '^ *+' conftest.er1 >conftest.err
3510   rm -f conftest.er1
3511   cat conftest.err >&5
3512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513   (exit $ac_status); } >/dev/null; then
3514   if test -s conftest.err; then
3515     ac_cpp_err=$ac_c_preproc_warn_flag
3516     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3517   else
3518     ac_cpp_err=
3519   fi
3520 else
3521   ac_cpp_err=yes
3522 fi
3523 if test -z "$ac_cpp_err"; then
3524   # Broken: success on invalid input.
3525 continue
3526 else
3527   echo "$as_me: failed program was:" >&5
3528 sed 's/^/| /' conftest.$ac_ext >&5
3529
3530   # Passes both tests.
3531 ac_preproc_ok=:
3532 break
3533 fi
3534
3535 rm -f conftest.err conftest.$ac_ext
3536
3537 done
3538 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3539 rm -f conftest.err conftest.$ac_ext
3540 if $ac_preproc_ok; then
3541   break
3542 fi
3543
3544     done
3545     ac_cv_prog_CPP=$CPP
3546
3547 fi
3548   CPP=$ac_cv_prog_CPP
3549 else
3550   ac_cv_prog_CPP=$CPP
3551 fi
3552 { echo "$as_me:$LINENO: result: $CPP" >&5
3553 echo "${ECHO_T}$CPP" >&6; }
3554 ac_preproc_ok=false
3555 for ac_c_preproc_warn_flag in '' yes
3556 do
3557   # Use a header file that comes with gcc, so configuring glibc
3558   # with a fresh cross-compiler works.
3559   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3560   # <limits.h> exists even on freestanding compilers.
3561   # On the NeXT, cc -E runs the code through the compiler's parser,
3562   # not just through cpp. "Syntax error" is here to catch this case.
3563   cat >conftest.$ac_ext <<_ACEOF
3564 /* confdefs.h.  */
3565 _ACEOF
3566 cat confdefs.h >>conftest.$ac_ext
3567 cat >>conftest.$ac_ext <<_ACEOF
3568 /* end confdefs.h.  */
3569 #ifdef __STDC__
3570 # include <limits.h>
3571 #else
3572 # include <assert.h>
3573 #endif
3574                      Syntax error
3575 _ACEOF
3576 if { (ac_try="$ac_cpp conftest.$ac_ext"
3577 case "(($ac_try" in
3578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3579   *) ac_try_echo=$ac_try;;
3580 esac
3581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3582   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3583   ac_status=$?
3584   grep -v '^ *+' conftest.er1 >conftest.err
3585   rm -f conftest.er1
3586   cat conftest.err >&5
3587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3588   (exit $ac_status); } >/dev/null; then
3589   if test -s conftest.err; then
3590     ac_cpp_err=$ac_c_preproc_warn_flag
3591     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3592   else
3593     ac_cpp_err=
3594   fi
3595 else
3596   ac_cpp_err=yes
3597 fi
3598 if test -z "$ac_cpp_err"; then
3599   :
3600 else
3601   echo "$as_me: failed program was:" >&5
3602 sed 's/^/| /' conftest.$ac_ext >&5
3603
3604   # Broken: fails on valid input.
3605 continue
3606 fi
3607
3608 rm -f conftest.err conftest.$ac_ext
3609
3610   # OK, works on sane cases.  Now check whether nonexistent headers
3611   # can be detected and how.
3612   cat >conftest.$ac_ext <<_ACEOF
3613 /* confdefs.h.  */
3614 _ACEOF
3615 cat confdefs.h >>conftest.$ac_ext
3616 cat >>conftest.$ac_ext <<_ACEOF
3617 /* end confdefs.h.  */
3618 #include <ac_nonexistent.h>
3619 _ACEOF
3620 if { (ac_try="$ac_cpp conftest.$ac_ext"
3621 case "(($ac_try" in
3622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3623   *) ac_try_echo=$ac_try;;
3624 esac
3625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3626   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3627   ac_status=$?
3628   grep -v '^ *+' conftest.er1 >conftest.err
3629   rm -f conftest.er1
3630   cat conftest.err >&5
3631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3632   (exit $ac_status); } >/dev/null; then
3633   if test -s conftest.err; then
3634     ac_cpp_err=$ac_c_preproc_warn_flag
3635     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3636   else
3637     ac_cpp_err=
3638   fi
3639 else
3640   ac_cpp_err=yes
3641 fi
3642 if test -z "$ac_cpp_err"; then
3643   # Broken: success on invalid input.
3644 continue
3645 else
3646   echo "$as_me: failed program was:" >&5
3647 sed 's/^/| /' conftest.$ac_ext >&5
3648
3649   # Passes both tests.
3650 ac_preproc_ok=:
3651 break
3652 fi
3653
3654 rm -f conftest.err conftest.$ac_ext
3655
3656 done
3657 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3658 rm -f conftest.err conftest.$ac_ext
3659 if $ac_preproc_ok; then
3660   :
3661 else
3662   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3663 See \`config.log' for more details." >&5
3664 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3665 See \`config.log' for more details." >&2;}
3666    { (exit 1); exit 1; }; }
3667 fi
3668
3669 ac_ext=c
3670 ac_cpp='$CPP $CPPFLAGS'
3671 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3672 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3673 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3674
3675
3676 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3677 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3678 if test "${ac_cv_path_GREP+set}" = set; then
3679   echo $ECHO_N "(cached) $ECHO_C" >&6
3680 else
3681   # Extract the first word of "grep ggrep" to use in msg output
3682 if test -z "$GREP"; then
3683 set dummy grep ggrep; ac_prog_name=$2
3684 if test "${ac_cv_path_GREP+set}" = set; then
3685   echo $ECHO_N "(cached) $ECHO_C" >&6
3686 else
3687   ac_path_GREP_found=false
3688 # Loop through the user's path and test for each of PROGNAME-LIST
3689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3690 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3691 do
3692   IFS=$as_save_IFS
3693   test -z "$as_dir" && as_dir=.
3694   for ac_prog in grep ggrep; do
3695   for ac_exec_ext in '' $ac_executable_extensions; do
3696     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3697     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3698     # Check for GNU ac_path_GREP and select it if it is found.
3699   # Check for GNU $ac_path_GREP
3700 case `"$ac_path_GREP" --version 2>&1` in
3701 *GNU*)
3702   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3703 *)
3704   ac_count=0
3705   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3706   while :
3707   do
3708     cat "conftest.in" "conftest.in" >"conftest.tmp"
3709     mv "conftest.tmp" "conftest.in"
3710     cp "conftest.in" "conftest.nl"
3711     echo 'GREP' >> "conftest.nl"
3712     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3713     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3714     ac_count=`expr $ac_count + 1`
3715     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3716       # Best one so far, save it but keep looking for a better one
3717       ac_cv_path_GREP="$ac_path_GREP"
3718       ac_path_GREP_max=$ac_count
3719     fi
3720     # 10*(2^10) chars as input seems more than enough
3721     test $ac_count -gt 10 && break
3722   done
3723   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3724 esac
3725
3726
3727     $ac_path_GREP_found && break 3
3728   done
3729 done
3730
3731 done
3732 IFS=$as_save_IFS
3733
3734
3735 fi
3736
3737 GREP="$ac_cv_path_GREP"
3738 if test -z "$GREP"; then
3739   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3740 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3741    { (exit 1); exit 1; }; }
3742 fi
3743
3744 else
3745   ac_cv_path_GREP=$GREP
3746 fi
3747
3748
3749 fi
3750 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3751 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3752  GREP="$ac_cv_path_GREP"
3753
3754
3755 { echo "$as_me:$LINENO: checking for egrep" >&5
3756 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3757 if test "${ac_cv_path_EGREP+set}" = set; then
3758   echo $ECHO_N "(cached) $ECHO_C" >&6
3759 else
3760   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3761    then ac_cv_path_EGREP="$GREP -E"
3762    else
3763      # Extract the first word of "egrep" to use in msg output
3764 if test -z "$EGREP"; then
3765 set dummy egrep; ac_prog_name=$2
3766 if test "${ac_cv_path_EGREP+set}" = set; then
3767   echo $ECHO_N "(cached) $ECHO_C" >&6
3768 else
3769   ac_path_EGREP_found=false
3770 # Loop through the user's path and test for each of PROGNAME-LIST
3771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3772 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3773 do
3774   IFS=$as_save_IFS
3775   test -z "$as_dir" && as_dir=.
3776   for ac_prog in egrep; do
3777   for ac_exec_ext in '' $ac_executable_extensions; do
3778     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3779     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3780     # Check for GNU ac_path_EGREP and select it if it is found.
3781   # Check for GNU $ac_path_EGREP
3782 case `"$ac_path_EGREP" --version 2>&1` in
3783 *GNU*)
3784   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3785 *)
3786   ac_count=0
3787   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3788   while :
3789   do
3790     cat "conftest.in" "conftest.in" >"conftest.tmp"
3791     mv "conftest.tmp" "conftest.in"
3792     cp "conftest.in" "conftest.nl"
3793     echo 'EGREP' >> "conftest.nl"
3794     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3795     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3796     ac_count=`expr $ac_count + 1`
3797     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3798       # Best one so far, save it but keep looking for a better one
3799       ac_cv_path_EGREP="$ac_path_EGREP"
3800       ac_path_EGREP_max=$ac_count
3801     fi
3802     # 10*(2^10) chars as input seems more than enough
3803     test $ac_count -gt 10 && break
3804   done
3805   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3806 esac
3807
3808
3809     $ac_path_EGREP_found && break 3
3810   done
3811 done
3812
3813 done
3814 IFS=$as_save_IFS
3815
3816
3817 fi
3818
3819 EGREP="$ac_cv_path_EGREP"
3820 if test -z "$EGREP"; then
3821   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3822 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3823    { (exit 1); exit 1; }; }
3824 fi
3825
3826 else
3827   ac_cv_path_EGREP=$EGREP
3828 fi
3829
3830
3831    fi
3832 fi
3833 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3834 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3835  EGREP="$ac_cv_path_EGREP"
3836
3837
3838 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3839 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3840 if test "${ac_cv_header_stdc+set}" = set; then
3841   echo $ECHO_N "(cached) $ECHO_C" >&6
3842 else
3843   cat >conftest.$ac_ext <<_ACEOF
3844 /* confdefs.h.  */
3845 _ACEOF
3846 cat confdefs.h >>conftest.$ac_ext
3847 cat >>conftest.$ac_ext <<_ACEOF
3848 /* end confdefs.h.  */
3849 #include <stdlib.h>
3850 #include <stdarg.h>
3851 #include <string.h>
3852 #include <float.h>
3853
3854 int
3855 main ()
3856 {
3857
3858   ;
3859   return 0;
3860 }
3861 _ACEOF
3862 rm -f conftest.$ac_objext
3863 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
3870   ac_status=$?
3871   grep -v '^ *+' conftest.er1 >conftest.err
3872   rm -f conftest.er1
3873   cat conftest.err >&5
3874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3875   (exit $ac_status); } &&
3876          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3877   { (case "(($ac_try" in
3878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3879   *) ac_try_echo=$ac_try;;
3880 esac
3881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3882   (eval "$ac_try") 2>&5
3883   ac_status=$?
3884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3885   (exit $ac_status); }; } &&
3886          { ac_try='test -s conftest.$ac_objext'
3887   { (case "(($ac_try" in
3888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3889   *) ac_try_echo=$ac_try;;
3890 esac
3891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3892   (eval "$ac_try") 2>&5
3893   ac_status=$?
3894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895   (exit $ac_status); }; }; then
3896   ac_cv_header_stdc=yes
3897 else
3898   echo "$as_me: failed program was:" >&5
3899 sed 's/^/| /' conftest.$ac_ext >&5
3900
3901         ac_cv_header_stdc=no
3902 fi
3903
3904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3905
3906 if test $ac_cv_header_stdc = yes; then
3907   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3908   cat >conftest.$ac_ext <<_ACEOF
3909 /* confdefs.h.  */
3910 _ACEOF
3911 cat confdefs.h >>conftest.$ac_ext
3912 cat >>conftest.$ac_ext <<_ACEOF
3913 /* end confdefs.h.  */
3914 #include <string.h>
3915
3916 _ACEOF
3917 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3918   $EGREP "memchr" >/dev/null 2>&1; then
3919   :
3920 else
3921   ac_cv_header_stdc=no
3922 fi
3923 rm -f conftest*
3924
3925 fi
3926
3927 if test $ac_cv_header_stdc = yes; then
3928   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3929   cat >conftest.$ac_ext <<_ACEOF
3930 /* confdefs.h.  */
3931 _ACEOF
3932 cat confdefs.h >>conftest.$ac_ext
3933 cat >>conftest.$ac_ext <<_ACEOF
3934 /* end confdefs.h.  */
3935 #include <stdlib.h>
3936
3937 _ACEOF
3938 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3939   $EGREP "free" >/dev/null 2>&1; then
3940   :
3941 else
3942   ac_cv_header_stdc=no
3943 fi
3944 rm -f conftest*
3945
3946 fi
3947
3948 if test $ac_cv_header_stdc = yes; then
3949   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3950   if test "$cross_compiling" = yes; then
3951   :
3952 else
3953   cat >conftest.$ac_ext <<_ACEOF
3954 /* confdefs.h.  */
3955 _ACEOF
3956 cat confdefs.h >>conftest.$ac_ext
3957 cat >>conftest.$ac_ext <<_ACEOF
3958 /* end confdefs.h.  */
3959 #include <ctype.h>
3960 #include <stdlib.h>
3961 #if ((' ' & 0x0FF) == 0x020)
3962 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3963 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3964 #else
3965 # define ISLOWER(c) \
3966                    (('a' <= (c) && (c) <= 'i') \
3967                      || ('j' <= (c) && (c) <= 'r') \
3968                      || ('s' <= (c) && (c) <= 'z'))
3969 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3970 #endif
3971
3972 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3973 int
3974 main ()
3975 {
3976   int i;
3977   for (i = 0; i < 256; i++)
3978     if (XOR (islower (i), ISLOWER (i))
3979         || toupper (i) != TOUPPER (i))
3980       return 2;
3981   return 0;
3982 }
3983 _ACEOF
3984 rm -f conftest$ac_exeext
3985 if { (ac_try="$ac_link"
3986 case "(($ac_try" in
3987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3988   *) ac_try_echo=$ac_try;;
3989 esac
3990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3991   (eval "$ac_link") 2>&5
3992   ac_status=$?
3993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3995   { (case "(($ac_try" in
3996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3997   *) ac_try_echo=$ac_try;;
3998 esac
3999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4000   (eval "$ac_try") 2>&5
4001   ac_status=$?
4002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4003   (exit $ac_status); }; }; then
4004   :
4005 else
4006   echo "$as_me: program exited with status $ac_status" >&5
4007 echo "$as_me: failed program was:" >&5
4008 sed 's/^/| /' conftest.$ac_ext >&5
4009
4010 ( exit $ac_status )
4011 ac_cv_header_stdc=no
4012 fi
4013 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4014 fi
4015
4016
4017 fi
4018 fi
4019 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4020 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4021 if test $ac_cv_header_stdc = yes; then
4022
4023 cat >>confdefs.h <<\_ACEOF
4024 #define STDC_HEADERS 1
4025 _ACEOF
4026
4027 fi
4028
4029 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4040                   inttypes.h stdint.h unistd.h
4041 do
4042 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4043 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4044 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4045 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4046   echo $ECHO_N "(cached) $ECHO_C" >&6
4047 else
4048   cat >conftest.$ac_ext <<_ACEOF
4049 /* confdefs.h.  */
4050 _ACEOF
4051 cat confdefs.h >>conftest.$ac_ext
4052 cat >>conftest.$ac_ext <<_ACEOF
4053 /* end confdefs.h.  */
4054 $ac_includes_default
4055
4056 #include <$ac_header>
4057 _ACEOF
4058 rm -f conftest.$ac_objext
4059 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
4066   ac_status=$?
4067   grep -v '^ *+' conftest.er1 >conftest.err
4068   rm -f conftest.er1
4069   cat conftest.err >&5
4070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071   (exit $ac_status); } &&
4072          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4073   { (case "(($ac_try" in
4074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4075   *) ac_try_echo=$ac_try;;
4076 esac
4077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4078   (eval "$ac_try") 2>&5
4079   ac_status=$?
4080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081   (exit $ac_status); }; } &&
4082          { ac_try='test -s conftest.$ac_objext'
4083   { (case "(($ac_try" in
4084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4085   *) ac_try_echo=$ac_try;;
4086 esac
4087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4088   (eval "$ac_try") 2>&5
4089   ac_status=$?
4090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091   (exit $ac_status); }; }; then
4092   eval "$as_ac_Header=yes"
4093 else
4094   echo "$as_me: failed program was:" >&5
4095 sed 's/^/| /' conftest.$ac_ext >&5
4096
4097         eval "$as_ac_Header=no"
4098 fi
4099
4100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4101 fi
4102 ac_res=`eval echo '${'$as_ac_Header'}'`
4103                { echo "$as_me:$LINENO: result: $ac_res" >&5
4104 echo "${ECHO_T}$ac_res" >&6; }
4105 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4106   cat >>confdefs.h <<_ACEOF
4107 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4108 _ACEOF
4109
4110 fi
4111
4112 done
4113
4114
4115 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4116 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4117 if test "${ac_cv_c_bigendian+set}" = set; then
4118   echo $ECHO_N "(cached) $ECHO_C" >&6
4119 else
4120   # See if sys/param.h defines the BYTE_ORDER macro.
4121 cat >conftest.$ac_ext <<_ACEOF
4122 /* confdefs.h.  */
4123 _ACEOF
4124 cat confdefs.h >>conftest.$ac_ext
4125 cat >>conftest.$ac_ext <<_ACEOF
4126 /* end confdefs.h.  */
4127 #include <sys/types.h>
4128 #include <sys/param.h>
4129
4130 int
4131 main ()
4132 {
4133 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4134  bogus endian macros
4135 #endif
4136
4137   ;
4138   return 0;
4139 }
4140 _ACEOF
4141 rm -f conftest.$ac_objext
4142 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
4149   ac_status=$?
4150   grep -v '^ *+' conftest.er1 >conftest.err
4151   rm -f conftest.er1
4152   cat conftest.err >&5
4153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154   (exit $ac_status); } &&
4155          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4156   { (case "(($ac_try" in
4157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4158   *) ac_try_echo=$ac_try;;
4159 esac
4160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4161   (eval "$ac_try") 2>&5
4162   ac_status=$?
4163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164   (exit $ac_status); }; } &&
4165          { ac_try='test -s conftest.$ac_objext'
4166   { (case "(($ac_try" in
4167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4168   *) ac_try_echo=$ac_try;;
4169 esac
4170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4171   (eval "$ac_try") 2>&5
4172   ac_status=$?
4173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4174   (exit $ac_status); }; }; then
4175   # It does; now see whether it defined to BIG_ENDIAN or not.
4176 cat >conftest.$ac_ext <<_ACEOF
4177 /* confdefs.h.  */
4178 _ACEOF
4179 cat confdefs.h >>conftest.$ac_ext
4180 cat >>conftest.$ac_ext <<_ACEOF
4181 /* end confdefs.h.  */
4182 #include <sys/types.h>
4183 #include <sys/param.h>
4184
4185 int
4186 main ()
4187 {
4188 #if BYTE_ORDER != BIG_ENDIAN
4189  not big endian
4190 #endif
4191
4192   ;
4193   return 0;
4194 }
4195 _ACEOF
4196 rm -f conftest.$ac_objext
4197 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
4204   ac_status=$?
4205   grep -v '^ *+' conftest.er1 >conftest.err
4206   rm -f conftest.er1
4207   cat conftest.err >&5
4208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4209   (exit $ac_status); } &&
4210          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4211   { (case "(($ac_try" in
4212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4213   *) ac_try_echo=$ac_try;;
4214 esac
4215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4216   (eval "$ac_try") 2>&5
4217   ac_status=$?
4218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4219   (exit $ac_status); }; } &&
4220          { ac_try='test -s conftest.$ac_objext'
4221   { (case "(($ac_try" in
4222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4223   *) ac_try_echo=$ac_try;;
4224 esac
4225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4226   (eval "$ac_try") 2>&5
4227   ac_status=$?
4228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229   (exit $ac_status); }; }; then
4230   ac_cv_c_bigendian=yes
4231 else
4232   echo "$as_me: failed program was:" >&5
4233 sed 's/^/| /' conftest.$ac_ext >&5
4234
4235         ac_cv_c_bigendian=no
4236 fi
4237
4238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4239 else
4240   echo "$as_me: failed program was:" >&5
4241 sed 's/^/| /' conftest.$ac_ext >&5
4242
4243         # It does not; compile a test program.
4244 if test "$cross_compiling" = yes; then
4245   # try to guess the endianness by grepping values into an object file
4246   ac_cv_c_bigendian=unknown
4247   cat >conftest.$ac_ext <<_ACEOF
4248 /* confdefs.h.  */
4249 _ACEOF
4250 cat confdefs.h >>conftest.$ac_ext
4251 cat >>conftest.$ac_ext <<_ACEOF
4252 /* end confdefs.h.  */
4253 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4254 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4255 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4256 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4257 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4258 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4259 int
4260 main ()
4261 {
4262  _ascii (); _ebcdic ();
4263   ;
4264   return 0;
4265 }
4266 _ACEOF
4267 rm -f conftest.$ac_objext
4268 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
4275   ac_status=$?
4276   grep -v '^ *+' conftest.er1 >conftest.err
4277   rm -f conftest.er1
4278   cat conftest.err >&5
4279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280   (exit $ac_status); } &&
4281          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4282   { (case "(($ac_try" in
4283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4284   *) ac_try_echo=$ac_try;;
4285 esac
4286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4287   (eval "$ac_try") 2>&5
4288   ac_status=$?
4289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290   (exit $ac_status); }; } &&
4291          { ac_try='test -s conftest.$ac_objext'
4292   { (case "(($ac_try" in
4293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4294   *) ac_try_echo=$ac_try;;
4295 esac
4296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4297   (eval "$ac_try") 2>&5
4298   ac_status=$?
4299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4300   (exit $ac_status); }; }; then
4301   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4302   ac_cv_c_bigendian=yes
4303 fi
4304 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4305   if test "$ac_cv_c_bigendian" = unknown; then
4306     ac_cv_c_bigendian=no
4307   else
4308     # finding both strings is unlikely to happen, but who knows?
4309     ac_cv_c_bigendian=unknown
4310   fi
4311 fi
4312 else
4313   echo "$as_me: failed program was:" >&5
4314 sed 's/^/| /' conftest.$ac_ext >&5
4315
4316
4317 fi
4318
4319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4320 else
4321   cat >conftest.$ac_ext <<_ACEOF
4322 /* confdefs.h.  */
4323 _ACEOF
4324 cat confdefs.h >>conftest.$ac_ext
4325 cat >>conftest.$ac_ext <<_ACEOF
4326 /* end confdefs.h.  */
4327 $ac_includes_default
4328 int
4329 main ()
4330 {
4331
4332   /* Are we little or big endian?  From Harbison&Steele.  */
4333   union
4334   {
4335     long int l;
4336     char c[sizeof (long int)];
4337   } u;
4338   u.l = 1;
4339   return u.c[sizeof (long int) - 1] == 1;
4340
4341   ;
4342   return 0;
4343 }
4344 _ACEOF
4345 rm -f conftest$ac_exeext
4346 if { (ac_try="$ac_link"
4347 case "(($ac_try" in
4348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4349   *) ac_try_echo=$ac_try;;
4350 esac
4351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4352   (eval "$ac_link") 2>&5
4353   ac_status=$?
4354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4356   { (case "(($ac_try" in
4357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4358   *) ac_try_echo=$ac_try;;
4359 esac
4360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4361   (eval "$ac_try") 2>&5
4362   ac_status=$?
4363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364   (exit $ac_status); }; }; then
4365   ac_cv_c_bigendian=no
4366 else
4367   echo "$as_me: program exited with status $ac_status" >&5
4368 echo "$as_me: failed program was:" >&5
4369 sed 's/^/| /' conftest.$ac_ext >&5
4370
4371 ( exit $ac_status )
4372 ac_cv_c_bigendian=yes
4373 fi
4374 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4375 fi
4376
4377
4378 fi
4379
4380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4381 fi
4382 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4383 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4384 case $ac_cv_c_bigendian in
4385   yes)
4386     ENDIAN=big
4387  ;;
4388   no)
4389     ENDIAN=little
4390  ;;
4391   *)
4392     { { echo "$as_me:$LINENO: error: unknown endianness
4393 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4394 echo "$as_me: error: unknown endianness
4395 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4396    { (exit 1); exit 1; }; } ;;
4397 esac
4398
4399
4400 if test "$cross_compiling" = yes; then
4401   LLVM_CROSS_COMPILING=1
4402
4403
4404 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4405 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4406 if test "${ac_cv_build_exeext+set}" = set; then
4407   echo $ECHO_N "(cached) $ECHO_C" >&6
4408 else
4409   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4410   ac_cv_build_exeext=.exe
4411 else
4412   ac_build_prefix=${build_alias}-
4413
4414   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4415 set dummy ${ac_build_prefix}gcc; ac_word=$2
4416 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4418 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4419   echo $ECHO_N "(cached) $ECHO_C" >&6
4420 else
4421   if test -n "$BUILD_CC"; then
4422   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4423 else
4424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4425 for as_dir in $PATH
4426 do
4427   IFS=$as_save_IFS
4428   test -z "$as_dir" && as_dir=.
4429   for ac_exec_ext in '' $ac_executable_extensions; do
4430   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4431     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4432     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4433     break 2
4434   fi
4435 done
4436 done
4437 IFS=$as_save_IFS
4438
4439 fi
4440 fi
4441 BUILD_CC=$ac_cv_prog_BUILD_CC
4442 if test -n "$BUILD_CC"; then
4443   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4444 echo "${ECHO_T}$BUILD_CC" >&6; }
4445 else
4446   { echo "$as_me:$LINENO: result: no" >&5
4447 echo "${ECHO_T}no" >&6; }
4448 fi
4449
4450
4451   if test -z "$BUILD_CC"; then
4452      # Extract the first word of "gcc", so it can be a program name with args.
4453 set dummy gcc; ac_word=$2
4454 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4456 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4457   echo $ECHO_N "(cached) $ECHO_C" >&6
4458 else
4459   if test -n "$BUILD_CC"; then
4460   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4461 else
4462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4463 for as_dir in $PATH
4464 do
4465   IFS=$as_save_IFS
4466   test -z "$as_dir" && as_dir=.
4467   for ac_exec_ext in '' $ac_executable_extensions; do
4468   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4469     ac_cv_prog_BUILD_CC="gcc"
4470     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4471     break 2
4472   fi
4473 done
4474 done
4475 IFS=$as_save_IFS
4476
4477 fi
4478 fi
4479 BUILD_CC=$ac_cv_prog_BUILD_CC
4480 if test -n "$BUILD_CC"; then
4481   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4482 echo "${ECHO_T}$BUILD_CC" >&6; }
4483 else
4484   { echo "$as_me:$LINENO: result: no" >&5
4485 echo "${ECHO_T}no" >&6; }
4486 fi
4487
4488
4489      if test -z "$BUILD_CC"; then
4490        # Extract the first word of "cc", so it can be a program name with args.
4491 set dummy cc; ac_word=$2
4492 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4494 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4495   echo $ECHO_N "(cached) $ECHO_C" >&6
4496 else
4497   if test -n "$BUILD_CC"; then
4498   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4499 else
4500   ac_prog_rejected=no
4501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4502 for as_dir in $PATH
4503 do
4504   IFS=$as_save_IFS
4505   test -z "$as_dir" && as_dir=.
4506   for ac_exec_ext in '' $ac_executable_extensions; do
4507   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4508     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4509        ac_prog_rejected=yes
4510        continue
4511      fi
4512     ac_cv_prog_BUILD_CC="cc"
4513     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4514     break 2
4515   fi
4516 done
4517 done
4518 IFS=$as_save_IFS
4519
4520 if test $ac_prog_rejected = yes; then
4521   # We found a bogon in the path, so make sure we never use it.
4522   set dummy $ac_cv_prog_BUILD_CC
4523   shift
4524   if test $# != 0; then
4525     # We chose a different compiler from the bogus one.
4526     # However, it has the same basename, so the bogon will be chosen
4527     # first if we set BUILD_CC to just the basename; use the full file name.
4528     shift
4529     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4530   fi
4531 fi
4532 fi
4533 fi
4534 BUILD_CC=$ac_cv_prog_BUILD_CC
4535 if test -n "$BUILD_CC"; then
4536   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4537 echo "${ECHO_T}$BUILD_CC" >&6; }
4538 else
4539   { echo "$as_me:$LINENO: result: no" >&5
4540 echo "${ECHO_T}no" >&6; }
4541 fi
4542
4543
4544      fi
4545   fi
4546   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4547 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4548    { (exit 1); exit 1; }; }
4549   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4550   rm -f conftest*
4551   echo 'int main () { return 0; }' > conftest.$ac_ext
4552   ac_cv_build_exeext=
4553   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4554   (eval $ac_build_link) 2>&5
4555   ac_status=$?
4556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557   (exit $ac_status); }; then
4558     for file in conftest.*; do
4559       case $file in
4560       *.c | *.o | *.obj | *.dSYM) ;;
4561       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4562       esac
4563     done
4564   else
4565     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4566 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4567    { (exit 1); exit 1; }; }
4568   fi
4569   rm -f conftest*
4570   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4571 fi
4572 fi
4573
4574 BUILD_EXEEXT=""
4575 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4576 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4577 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4578 ac_build_exeext=$BUILD_EXEEXT
4579
4580   ac_build_prefix=${build_alias}-
4581   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4582 set dummy ${ac_build_prefix}g++; ac_word=$2
4583 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4585 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4586   echo $ECHO_N "(cached) $ECHO_C" >&6
4587 else
4588   if test -n "$BUILD_CXX"; then
4589   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4590 else
4591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4592 for as_dir in $PATH
4593 do
4594   IFS=$as_save_IFS
4595   test -z "$as_dir" && as_dir=.
4596   for ac_exec_ext in '' $ac_executable_extensions; do
4597   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4598     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4599     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4600     break 2
4601   fi
4602 done
4603 done
4604 IFS=$as_save_IFS
4605
4606 fi
4607 fi
4608 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4609 if test -n "$BUILD_CXX"; then
4610   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4611 echo "${ECHO_T}$BUILD_CXX" >&6; }
4612 else
4613   { echo "$as_me:$LINENO: result: no" >&5
4614 echo "${ECHO_T}no" >&6; }
4615 fi
4616
4617
4618   if test -z "$BUILD_CXX"; then
4619      # Extract the first word of "g++", so it can be a program name with args.
4620 set dummy g++; ac_word=$2
4621 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4623 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4624   echo $ECHO_N "(cached) $ECHO_C" >&6
4625 else
4626   if test -n "$BUILD_CXX"; then
4627   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4628 else
4629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4630 for as_dir in $PATH
4631 do
4632   IFS=$as_save_IFS
4633   test -z "$as_dir" && as_dir=.
4634   for ac_exec_ext in '' $ac_executable_extensions; do
4635   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4636     ac_cv_prog_BUILD_CXX="g++"
4637     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4638     break 2
4639   fi
4640 done
4641 done
4642 IFS=$as_save_IFS
4643
4644 fi
4645 fi
4646 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4647 if test -n "$BUILD_CXX"; then
4648   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4649 echo "${ECHO_T}$BUILD_CXX" >&6; }
4650 else
4651   { echo "$as_me:$LINENO: result: no" >&5
4652 echo "${ECHO_T}no" >&6; }
4653 fi
4654
4655
4656      if test -z "$BUILD_CXX"; then
4657        # Extract the first word of "c++", so it can be a program name with args.
4658 set dummy c++; ac_word=$2
4659 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4661 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4662   echo $ECHO_N "(cached) $ECHO_C" >&6
4663 else
4664   if test -n "$BUILD_CXX"; then
4665   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4666 else
4667   ac_prog_rejected=no
4668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4669 for as_dir in $PATH
4670 do
4671   IFS=$as_save_IFS
4672   test -z "$as_dir" && as_dir=.
4673   for ac_exec_ext in '' $ac_executable_extensions; do
4674   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4675     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4676        ac_prog_rejected=yes
4677        continue
4678      fi
4679     ac_cv_prog_BUILD_CXX="c++"
4680     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4681     break 2
4682   fi
4683 done
4684 done
4685 IFS=$as_save_IFS
4686
4687 if test $ac_prog_rejected = yes; then
4688   # We found a bogon in the path, so make sure we never use it.
4689   set dummy $ac_cv_prog_BUILD_CXX
4690   shift
4691   if test $# != 0; then
4692     # We chose a different compiler from the bogus one.
4693     # However, it has the same basename, so the bogon will be chosen
4694     # first if we set BUILD_CXX to just the basename; use the full file name.
4695     shift
4696     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4697   fi
4698 fi
4699 fi
4700 fi
4701 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4702 if test -n "$BUILD_CXX"; then
4703   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4704 echo "${ECHO_T}$BUILD_CXX" >&6; }
4705 else
4706   { echo "$as_me:$LINENO: result: no" >&5
4707 echo "${ECHO_T}no" >&6; }
4708 fi
4709
4710
4711      fi
4712   fi
4713 else
4714   LLVM_CROSS_COMPILING=0
4715
4716 fi
4717
4718 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4719   cvsbuild="yes"
4720   optimize="no"
4721   CVSBUILD=CVSBUILD=1
4722
4723 else
4724   cvsbuild="no"
4725   optimize="yes"
4726 fi
4727
4728
4729 # Check whether --enable-optimized was given.
4730 if test "${enable_optimized+set}" = set; then
4731   enableval=$enable_optimized;
4732 else
4733   enableval=$optimize
4734 fi
4735
4736 if test ${enableval} = "no" ; then
4737   ENABLE_OPTIMIZED=
4738
4739 else
4740   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4741
4742 fi
4743
4744 # Check whether --enable-profiling was given.
4745 if test "${enable_profiling+set}" = set; then
4746   enableval=$enable_profiling;
4747 else
4748   enableval="no"
4749 fi
4750
4751 if test ${enableval} = "no" ; then
4752   ENABLE_PROFILING=
4753
4754 else
4755   ENABLE_PROFILING=ENABLE_PROFILING=1
4756
4757 fi
4758
4759 # Check whether --enable-assertions was given.
4760 if test "${enable_assertions+set}" = set; then
4761   enableval=$enable_assertions;
4762 else
4763   enableval="yes"
4764 fi
4765
4766 if test ${enableval} = "yes" ; then
4767   DISABLE_ASSERTIONS=
4768
4769 else
4770   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4771
4772 fi
4773
4774 # Check whether --enable-expensive-checks was given.
4775 if test "${enable_expensive_checks+set}" = set; then
4776   enableval=$enable_expensive_checks;
4777 else
4778   enableval="no"
4779 fi
4780
4781 if test ${enableval} = "yes" ; then
4782   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4783
4784   EXPENSIVE_CHECKS=yes
4785
4786 else
4787   ENABLE_EXPENSIVE_CHECKS=
4788
4789   EXPENSIVE_CHECKS=no
4790
4791 fi
4792
4793 # Check whether --enable-debug-runtime was given.
4794 if test "${enable_debug_runtime+set}" = set; then
4795   enableval=$enable_debug_runtime;
4796 else
4797   enableval=no
4798 fi
4799
4800 if test ${enableval} = "no" ; then
4801   DEBUG_RUNTIME=
4802
4803 else
4804   DEBUG_RUNTIME=DEBUG_RUNTIME=1
4805
4806 fi
4807
4808 # Check whether --enable-jit was given.
4809 if test "${enable_jit+set}" = set; then
4810   enableval=$enable_jit;
4811 else
4812   enableval=default
4813 fi
4814
4815 if test ${enableval} = "no"
4816 then
4817   JIT=
4818
4819 else
4820   case "$llvm_cv_target_arch" in
4821     x86)     TARGET_HAS_JIT=1
4822  ;;
4823     Sparc)   TARGET_HAS_JIT=0
4824  ;;
4825     PowerPC) TARGET_HAS_JIT=1
4826  ;;
4827     x86_64)  TARGET_HAS_JIT=1
4828  ;;
4829     Alpha)   TARGET_HAS_JIT=1
4830  ;;
4831     IA64)    TARGET_HAS_JIT=0
4832  ;;
4833     ARM)     TARGET_HAS_JIT=0
4834  ;;
4835     Mips)    TARGET_HAS_JIT=0
4836  ;;
4837     PIC16)   TARGET_HAS_JIT=0
4838  ;;
4839     XCore)   TARGET_HAS_JIT=0
4840  ;;
4841     MSP430)  TARGET_HAS_JIT=0
4842  ;;
4843     *)       TARGET_HAS_JIT=0
4844  ;;
4845   esac
4846 fi
4847
4848 # Check whether --enable-doxygen was given.
4849 if test "${enable_doxygen+set}" = set; then
4850   enableval=$enable_doxygen;
4851 else
4852   enableval=default
4853 fi
4854
4855 case "$enableval" in
4856   yes) ENABLE_DOXYGEN=1
4857  ;;
4858   no)  ENABLE_DOXYGEN=0
4859  ;;
4860   default) ENABLE_DOXYGEN=0
4861  ;;
4862   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4863 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4864    { (exit 1); exit 1; }; } ;;
4865 esac
4866
4867 # Check whether --enable-threads was given.
4868 if test "${enable_threads+set}" = set; then
4869   enableval=$enable_threads;
4870 else
4871   enableval=default
4872 fi
4873
4874 case "$enableval" in
4875   yes) ENABLE_THREADS=1
4876  ;;
4877   no)  ENABLE_THREADS=0
4878  ;;
4879   default) ENABLE_THREADS=1
4880  ;;
4881   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4882 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4883    { (exit 1); exit 1; }; } ;;
4884 esac
4885
4886 cat >>confdefs.h <<_ACEOF
4887 #define ENABLE_THREADS $ENABLE_THREADS
4888 _ACEOF
4889
4890
4891 # Check whether --enable-pic was given.
4892 if test "${enable_pic+set}" = set; then
4893   enableval=$enable_pic;
4894 else
4895   enableval=default
4896 fi
4897
4898 case "$enableval" in
4899   yes) ENABLE_PIC=1
4900  ;;
4901   no)  ENABLE_PIC=0
4902  ;;
4903   default) ENABLE_PIC=1
4904  ;;
4905   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4906 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4907    { (exit 1); exit 1; }; } ;;
4908 esac
4909
4910 cat >>confdefs.h <<_ACEOF
4911 #define ENABLE_PIC $ENABLE_PIC
4912 _ACEOF
4913
4914
4915 TARGETS_TO_BUILD=""
4916 # Check whether --enable-targets was given.
4917 if test "${enable_targets+set}" = set; then
4918   enableval=$enable_targets;
4919 else
4920   enableval=all
4921 fi
4922
4923 case "$enableval" in
4924   all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU PIC16 XCore MSP430 CBackend MSIL CppBackend" ;;
4925   host-only)
4926     case "$llvm_cv_target_arch" in
4927       x86)     TARGETS_TO_BUILD="X86" ;;
4928       x86_64)  TARGETS_TO_BUILD="X86" ;;
4929       Sparc)   TARGETS_TO_BUILD="Sparc" ;;
4930       PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4931       Alpha)   TARGETS_TO_BUILD="Alpha" ;;
4932       IA64)    TARGETS_TO_BUILD="IA64" ;;
4933       ARM)     TARGETS_TO_BUILD="ARM" ;;
4934       Mips)    TARGETS_TO_BUILD="Mips" ;;
4935       CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
4936       PIC16)   TARGETS_TO_BUILD="PIC16" ;;
4937       XCore)   TARGETS_TO_BUILD="XCore" ;;
4938       MSP430)  TARGETS_TO_BUILD="MSP430" ;;
4939       *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4940 echo "$as_me: error: Can not set target to build" >&2;}
4941    { (exit 1); exit 1; }; } ;;
4942     esac
4943     ;;
4944   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4945       case "$a_target" in
4946         x86)     TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4947         x86_64)  TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4948         sparc)   TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4949         powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4950         alpha)   TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4951         ia64)    TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4952         arm)     TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4953         mips)    TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4954         spu)     TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4955         pic16)   TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4956         xcore)   TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4957         msp430)  TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4958         cbe)     TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4959         msil)    TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4960         cpp)     TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4961         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4962 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4963    { (exit 1); exit 1; }; } ;;
4964       esac
4965   done
4966   ;;
4967 esac
4968 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4969
4970
4971 # Determine whether we are building LLVM support for the native architecture.
4972 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
4973 for a_target in $TARGETS_TO_BUILD; do
4974   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
4975
4976 cat >>confdefs.h <<_ACEOF
4977 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
4978 _ACEOF
4979
4980   fi
4981 done
4982
4983 # Build the LLVM_TARGET and LLVM_ASM_PRINTER macro uses for
4984 # Targets.def and AsmPrinters.def.
4985 LLVM_ENUM_TARGETS=""
4986 LLVM_ENUM_ASM_PRINTERS=""
4987 for target_to_build in $TARGETS_TO_BUILD; do
4988   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
4989   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
4990     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
4991   fi
4992 done
4993
4994
4995
4996 # Check whether --enable-cbe-printf-a was given.
4997 if test "${enable_cbe_printf_a+set}" = set; then
4998   enableval=$enable_cbe_printf_a;
4999 else
5000   enableval=default
5001 fi
5002
5003 case "$enableval" in
5004   yes) ENABLE_CBE_PRINTF_A=1
5005  ;;
5006   no)  ENABLE_CBE_PRINTF_A=0
5007  ;;
5008   default)  ENABLE_CBE_PRINTF_A=1
5009  ;;
5010   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5011 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5012    { (exit 1); exit 1; }; } ;;
5013 esac
5014
5015 cat >>confdefs.h <<_ACEOF
5016 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5017 _ACEOF
5018
5019
5020
5021 # Check whether --with-llvmgccdir was given.
5022 if test "${with_llvmgccdir+set}" = set; then
5023   withval=$with_llvmgccdir;
5024 else
5025   withval=default
5026 fi
5027
5028 case "$withval" in
5029   default) WITH_LLVMGCCDIR=default ;;
5030   /* | [A-Za-z]:[\\/]*)      WITH_LLVMGCCDIR=$withval ;;
5031   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5032 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5033    { (exit 1); exit 1; }; } ;;
5034 esac
5035
5036
5037 # Check whether --with-llvmgcc was given.
5038 if test "${with_llvmgcc+set}" = set; then
5039   withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5040       WITH_LLVMGCCDIR=""
5041 fi
5042
5043
5044
5045 # Check whether --with-llvmgxx was given.
5046 if test "${with_llvmgxx+set}" = set; then
5047   withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5048     WITH_LLVMGCCDIR=""
5049 fi
5050
5051
5052 if test -n "$LLVMGCC"; then
5053    LLVMGCCCOMMAND="$LLVMGCC"
5054 fi
5055
5056 if test -n "$LLVMGXX"; then
5057    LLVMGXXCOMMAND="$LLVMGXX"
5058 fi
5059
5060 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5061    { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5062 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5063    { (exit 1); exit 1; }; };
5064 fi
5065
5066 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5067    { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5068 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5069    { (exit 1); exit 1; }; };
5070 fi
5071
5072
5073 # Check whether --with-extra-options was given.
5074 if test "${with_extra_options+set}" = set; then
5075   withval=$with_extra_options;
5076 else
5077   withval=default
5078 fi
5079
5080 case "$withval" in
5081   default) EXTRA_OPTIONS= ;;
5082   *) EXTRA_OPTIONS=$withval ;;
5083 esac
5084 EXTRA_OPTIONS=$EXTRA_OPTIONS
5085
5086
5087 # Check whether --enable-bindings was given.
5088 if test "${enable_bindings+set}" = set; then
5089   enableval=$enable_bindings;
5090 else
5091   enableval=default
5092 fi
5093
5094 BINDINGS_TO_BUILD=""
5095 case "$enableval" in
5096   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5097   all ) BINDINGS_TO_BUILD="ocaml" ;;
5098   none | no) BINDINGS_TO_BUILD="" ;;
5099   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5100       case "$a_binding" in
5101         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5102         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5103 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5104    { (exit 1); exit 1; }; } ;;
5105       esac
5106   done
5107   ;;
5108 esac
5109
5110
5111 # Check whether --with-ocaml-libdir was given.
5112 if test "${with_ocaml_libdir+set}" = set; then
5113   withval=$with_ocaml_libdir;
5114 else
5115   withval=auto
5116 fi
5117
5118 case "$withval" in
5119   auto) with_ocaml_libdir="$withval" ;;
5120   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5121   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5122 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5123    { (exit 1); exit 1; }; } ;;
5124 esac
5125
5126
5127 # Check whether --with-binutils-include was given.
5128 if test "${with_binutils_include+set}" = set; then
5129   withval=$with_binutils_include;
5130 else
5131   withval=default
5132 fi
5133
5134 case "$withval" in
5135   default) WITH_BINUTILS_INCDIR=default ;;
5136   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5137   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5138 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5139    { (exit 1); exit 1; }; } ;;
5140 esac
5141 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5142   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5143
5144   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5145      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5146      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5147 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5148    { (exit 1); exit 1; }; };
5149   fi
5150 fi
5151
5152 # Check whether --enable-libffi was given.
5153 if test "${enable_libffi+set}" = set; then
5154   enableval=$enable_libffi;
5155 else
5156   enableval=yes
5157 fi
5158
5159 case "$enableval" in
5160   yes) llvm_cv_enable_libffi="yes" ;;
5161   no)  llvm_cv_enable_libffi="no"  ;;
5162   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5163 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5164    { (exit 1); exit 1; }; } ;;
5165 esac
5166
5167
5168 ac_ext=c
5169 ac_cpp='$CPP $CPPFLAGS'
5170 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5171 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5172 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5173 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5174 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5175 # On Suns, sometimes $CPP names a directory.
5176 if test -n "$CPP" && test -d "$CPP"; then
5177   CPP=
5178 fi
5179 if test -z "$CPP"; then
5180   if test "${ac_cv_prog_CPP+set}" = set; then
5181   echo $ECHO_N "(cached) $ECHO_C" >&6
5182 else
5183       # Double quotes because CPP needs to be expanded
5184     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5185     do
5186       ac_preproc_ok=false
5187 for ac_c_preproc_warn_flag in '' yes
5188 do
5189   # Use a header file that comes with gcc, so configuring glibc
5190   # with a fresh cross-compiler works.
5191   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5192   # <limits.h> exists even on freestanding compilers.
5193   # On the NeXT, cc -E runs the code through the compiler's parser,
5194   # not just through cpp. "Syntax error" is here to catch this case.
5195   cat >conftest.$ac_ext <<_ACEOF
5196 /* confdefs.h.  */
5197 _ACEOF
5198 cat confdefs.h >>conftest.$ac_ext
5199 cat >>conftest.$ac_ext <<_ACEOF
5200 /* end confdefs.h.  */
5201 #ifdef __STDC__
5202 # include <limits.h>
5203 #else
5204 # include <assert.h>
5205 #endif
5206                      Syntax error
5207 _ACEOF
5208 if { (ac_try="$ac_cpp conftest.$ac_ext"
5209 case "(($ac_try" in
5210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5211   *) ac_try_echo=$ac_try;;
5212 esac
5213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5214   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5215   ac_status=$?
5216   grep -v '^ *+' conftest.er1 >conftest.err
5217   rm -f conftest.er1
5218   cat conftest.err >&5
5219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5220   (exit $ac_status); } >/dev/null; then
5221   if test -s conftest.err; then
5222     ac_cpp_err=$ac_c_preproc_warn_flag
5223     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5224   else
5225     ac_cpp_err=
5226   fi
5227 else
5228   ac_cpp_err=yes
5229 fi
5230 if test -z "$ac_cpp_err"; then
5231   :
5232 else
5233   echo "$as_me: failed program was:" >&5
5234 sed 's/^/| /' conftest.$ac_ext >&5
5235
5236   # Broken: fails on valid input.
5237 continue
5238 fi
5239
5240 rm -f conftest.err conftest.$ac_ext
5241
5242   # OK, works on sane cases.  Now check whether nonexistent headers
5243   # can be detected and how.
5244   cat >conftest.$ac_ext <<_ACEOF
5245 /* confdefs.h.  */
5246 _ACEOF
5247 cat confdefs.h >>conftest.$ac_ext
5248 cat >>conftest.$ac_ext <<_ACEOF
5249 /* end confdefs.h.  */
5250 #include <ac_nonexistent.h>
5251 _ACEOF
5252 if { (ac_try="$ac_cpp conftest.$ac_ext"
5253 case "(($ac_try" in
5254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5255   *) ac_try_echo=$ac_try;;
5256 esac
5257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5258   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5259   ac_status=$?
5260   grep -v '^ *+' conftest.er1 >conftest.err
5261   rm -f conftest.er1
5262   cat conftest.err >&5
5263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5264   (exit $ac_status); } >/dev/null; then
5265   if test -s conftest.err; then
5266     ac_cpp_err=$ac_c_preproc_warn_flag
5267     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5268   else
5269     ac_cpp_err=
5270   fi
5271 else
5272   ac_cpp_err=yes
5273 fi
5274 if test -z "$ac_cpp_err"; then
5275   # Broken: success on invalid input.
5276 continue
5277 else
5278   echo "$as_me: failed program was:" >&5
5279 sed 's/^/| /' conftest.$ac_ext >&5
5280
5281   # Passes both tests.
5282 ac_preproc_ok=:
5283 break
5284 fi
5285
5286 rm -f conftest.err conftest.$ac_ext
5287
5288 done
5289 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5290 rm -f conftest.err conftest.$ac_ext
5291 if $ac_preproc_ok; then
5292   break
5293 fi
5294
5295     done
5296     ac_cv_prog_CPP=$CPP
5297
5298 fi
5299   CPP=$ac_cv_prog_CPP
5300 else
5301   ac_cv_prog_CPP=$CPP
5302 fi
5303 { echo "$as_me:$LINENO: result: $CPP" >&5
5304 echo "${ECHO_T}$CPP" >&6; }
5305 ac_preproc_ok=false
5306 for ac_c_preproc_warn_flag in '' yes
5307 do
5308   # Use a header file that comes with gcc, so configuring glibc
5309   # with a fresh cross-compiler works.
5310   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5311   # <limits.h> exists even on freestanding compilers.
5312   # On the NeXT, cc -E runs the code through the compiler's parser,
5313   # not just through cpp. "Syntax error" is here to catch this case.
5314   cat >conftest.$ac_ext <<_ACEOF
5315 /* confdefs.h.  */
5316 _ACEOF
5317 cat confdefs.h >>conftest.$ac_ext
5318 cat >>conftest.$ac_ext <<_ACEOF
5319 /* end confdefs.h.  */
5320 #ifdef __STDC__
5321 # include <limits.h>
5322 #else
5323 # include <assert.h>
5324 #endif
5325                      Syntax error
5326 _ACEOF
5327 if { (ac_try="$ac_cpp conftest.$ac_ext"
5328 case "(($ac_try" in
5329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5330   *) ac_try_echo=$ac_try;;
5331 esac
5332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5333   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5334   ac_status=$?
5335   grep -v '^ *+' conftest.er1 >conftest.err
5336   rm -f conftest.er1
5337   cat conftest.err >&5
5338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339   (exit $ac_status); } >/dev/null; then
5340   if test -s conftest.err; then
5341     ac_cpp_err=$ac_c_preproc_warn_flag
5342     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5343   else
5344     ac_cpp_err=
5345   fi
5346 else
5347   ac_cpp_err=yes
5348 fi
5349 if test -z "$ac_cpp_err"; then
5350   :
5351 else
5352   echo "$as_me: failed program was:" >&5
5353 sed 's/^/| /' conftest.$ac_ext >&5
5354
5355   # Broken: fails on valid input.
5356 continue
5357 fi
5358
5359 rm -f conftest.err conftest.$ac_ext
5360
5361   # OK, works on sane cases.  Now check whether nonexistent headers
5362   # can be detected and how.
5363   cat >conftest.$ac_ext <<_ACEOF
5364 /* confdefs.h.  */
5365 _ACEOF
5366 cat confdefs.h >>conftest.$ac_ext
5367 cat >>conftest.$ac_ext <<_ACEOF
5368 /* end confdefs.h.  */
5369 #include <ac_nonexistent.h>
5370 _ACEOF
5371 if { (ac_try="$ac_cpp conftest.$ac_ext"
5372 case "(($ac_try" in
5373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5374   *) ac_try_echo=$ac_try;;
5375 esac
5376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5377   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5378   ac_status=$?
5379   grep -v '^ *+' conftest.er1 >conftest.err
5380   rm -f conftest.er1
5381   cat conftest.err >&5
5382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5383   (exit $ac_status); } >/dev/null; then
5384   if test -s conftest.err; then
5385     ac_cpp_err=$ac_c_preproc_warn_flag
5386     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5387   else
5388     ac_cpp_err=
5389   fi
5390 else
5391   ac_cpp_err=yes
5392 fi
5393 if test -z "$ac_cpp_err"; then
5394   # Broken: success on invalid input.
5395 continue
5396 else
5397   echo "$as_me: failed program was:" >&5
5398 sed 's/^/| /' conftest.$ac_ext >&5
5399
5400   # Passes both tests.
5401 ac_preproc_ok=:
5402 break
5403 fi
5404
5405 rm -f conftest.err conftest.$ac_ext
5406
5407 done
5408 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5409 rm -f conftest.err conftest.$ac_ext
5410 if $ac_preproc_ok; then
5411   :
5412 else
5413   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5414 See \`config.log' for more details." >&5
5415 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5416 See \`config.log' for more details." >&2;}
5417    { (exit 1); exit 1; }; }
5418 fi
5419
5420 ac_ext=c
5421 ac_cpp='$CPP $CPPFLAGS'
5422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5425
5426 ac_ext=c
5427 ac_cpp='$CPP $CPPFLAGS'
5428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5431 if test -n "$ac_tool_prefix"; then
5432   for ac_prog in gcc
5433   do
5434     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5435 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5436 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5438 if test "${ac_cv_prog_CC+set}" = set; then
5439   echo $ECHO_N "(cached) $ECHO_C" >&6
5440 else
5441   if test -n "$CC"; then
5442   ac_cv_prog_CC="$CC" # Let the user override the test.
5443 else
5444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5445 for as_dir in $PATH
5446 do
5447   IFS=$as_save_IFS
5448   test -z "$as_dir" && as_dir=.
5449   for ac_exec_ext in '' $ac_executable_extensions; do
5450   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5451     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5452     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5453     break 2
5454   fi
5455 done
5456 done
5457 IFS=$as_save_IFS
5458
5459 fi
5460 fi
5461 CC=$ac_cv_prog_CC
5462 if test -n "$CC"; then
5463   { echo "$as_me:$LINENO: result: $CC" >&5
5464 echo "${ECHO_T}$CC" >&6; }
5465 else
5466   { echo "$as_me:$LINENO: result: no" >&5
5467 echo "${ECHO_T}no" >&6; }
5468 fi
5469
5470
5471     test -n "$CC" && break
5472   done
5473 fi
5474 if test -z "$CC"; then
5475   ac_ct_CC=$CC
5476   for ac_prog in gcc
5477 do
5478   # Extract the first word of "$ac_prog", so it can be a program name with args.
5479 set dummy $ac_prog; ac_word=$2
5480 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5482 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5483   echo $ECHO_N "(cached) $ECHO_C" >&6
5484 else
5485   if test -n "$ac_ct_CC"; then
5486   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5487 else
5488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5489 for as_dir in $PATH
5490 do
5491   IFS=$as_save_IFS
5492   test -z "$as_dir" && as_dir=.
5493   for ac_exec_ext in '' $ac_executable_extensions; do
5494   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5495     ac_cv_prog_ac_ct_CC="$ac_prog"
5496     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5497     break 2
5498   fi
5499 done
5500 done
5501 IFS=$as_save_IFS
5502
5503 fi
5504 fi
5505 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5506 if test -n "$ac_ct_CC"; then
5507   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5508 echo "${ECHO_T}$ac_ct_CC" >&6; }
5509 else
5510   { echo "$as_me:$LINENO: result: no" >&5
5511 echo "${ECHO_T}no" >&6; }
5512 fi
5513
5514
5515   test -n "$ac_ct_CC" && break
5516 done
5517
5518   if test "x$ac_ct_CC" = x; then
5519     CC=""
5520   else
5521     case $cross_compiling:$ac_tool_warned in
5522 yes:)
5523 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5524 whose name does not start with the host triplet.  If you think this
5525 configuration is useful to you, please write to autoconf@gnu.org." >&5
5526 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5527 whose name does not start with the host triplet.  If you think this
5528 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5529 ac_tool_warned=yes ;;
5530 esac
5531     CC=$ac_ct_CC
5532   fi
5533 fi
5534
5535
5536 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5537 See \`config.log' for more details." >&5
5538 echo "$as_me: error: no acceptable C compiler found in \$PATH
5539 See \`config.log' for more details." >&2;}
5540    { (exit 1); exit 1; }; }
5541
5542 # Provide some information about the compiler.
5543 echo "$as_me:$LINENO: checking for C compiler version" >&5
5544 ac_compiler=`set X $ac_compile; echo $2`
5545 { (ac_try="$ac_compiler --version >&5"
5546 case "(($ac_try" in
5547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5548   *) ac_try_echo=$ac_try;;
5549 esac
5550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5551   (eval "$ac_compiler --version >&5") 2>&5
5552   ac_status=$?
5553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5554   (exit $ac_status); }
5555 { (ac_try="$ac_compiler -v >&5"
5556 case "(($ac_try" in
5557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5558   *) ac_try_echo=$ac_try;;
5559 esac
5560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5561   (eval "$ac_compiler -v >&5") 2>&5
5562   ac_status=$?
5563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5564   (exit $ac_status); }
5565 { (ac_try="$ac_compiler -V >&5"
5566 case "(($ac_try" in
5567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5568   *) ac_try_echo=$ac_try;;
5569 esac
5570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5571   (eval "$ac_compiler -V >&5") 2>&5
5572   ac_status=$?
5573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5574   (exit $ac_status); }
5575
5576 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5577 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5578 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5579   echo $ECHO_N "(cached) $ECHO_C" >&6
5580 else
5581   cat >conftest.$ac_ext <<_ACEOF
5582 /* confdefs.h.  */
5583 _ACEOF
5584 cat confdefs.h >>conftest.$ac_ext
5585 cat >>conftest.$ac_ext <<_ACEOF
5586 /* end confdefs.h.  */
5587
5588 int
5589 main ()
5590 {
5591 #ifndef __GNUC__
5592        choke me
5593 #endif
5594
5595   ;
5596   return 0;
5597 }
5598 _ACEOF
5599 rm -f conftest.$ac_objext
5600 if { (ac_try="$ac_compile"
5601 case "(($ac_try" in
5602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5603   *) ac_try_echo=$ac_try;;
5604 esac
5605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5606   (eval "$ac_compile") 2>conftest.er1
5607   ac_status=$?
5608   grep -v '^ *+' conftest.er1 >conftest.err
5609   rm -f conftest.er1
5610   cat conftest.err >&5
5611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5612   (exit $ac_status); } &&
5613          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5614   { (case "(($ac_try" in
5615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5616   *) ac_try_echo=$ac_try;;
5617 esac
5618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5619   (eval "$ac_try") 2>&5
5620   ac_status=$?
5621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5622   (exit $ac_status); }; } &&
5623          { ac_try='test -s conftest.$ac_objext'
5624   { (case "(($ac_try" in
5625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5626   *) ac_try_echo=$ac_try;;
5627 esac
5628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5629   (eval "$ac_try") 2>&5
5630   ac_status=$?
5631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632   (exit $ac_status); }; }; then
5633   ac_compiler_gnu=yes
5634 else
5635   echo "$as_me: failed program was:" >&5
5636 sed 's/^/| /' conftest.$ac_ext >&5
5637
5638         ac_compiler_gnu=no
5639 fi
5640
5641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5642 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5643
5644 fi
5645 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5646 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5647 GCC=`test $ac_compiler_gnu = yes && echo yes`
5648 ac_test_CFLAGS=${CFLAGS+set}
5649 ac_save_CFLAGS=$CFLAGS
5650 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5651 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5652 if test "${ac_cv_prog_cc_g+set}" = set; then
5653   echo $ECHO_N "(cached) $ECHO_C" >&6
5654 else
5655   ac_save_c_werror_flag=$ac_c_werror_flag
5656    ac_c_werror_flag=yes
5657    ac_cv_prog_cc_g=no
5658    CFLAGS="-g"
5659    cat >conftest.$ac_ext <<_ACEOF
5660 /* confdefs.h.  */
5661 _ACEOF
5662 cat confdefs.h >>conftest.$ac_ext
5663 cat >>conftest.$ac_ext <<_ACEOF
5664 /* end confdefs.h.  */
5665
5666 int
5667 main ()
5668 {
5669
5670   ;
5671   return 0;
5672 }
5673 _ACEOF
5674 rm -f conftest.$ac_objext
5675 if { (ac_try="$ac_compile"
5676 case "(($ac_try" in
5677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5678   *) ac_try_echo=$ac_try;;
5679 esac
5680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5681   (eval "$ac_compile") 2>conftest.er1
5682   ac_status=$?
5683   grep -v '^ *+' conftest.er1 >conftest.err
5684   rm -f conftest.er1
5685   cat conftest.err >&5
5686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5687   (exit $ac_status); } &&
5688          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5689   { (case "(($ac_try" in
5690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5691   *) ac_try_echo=$ac_try;;
5692 esac
5693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5694   (eval "$ac_try") 2>&5
5695   ac_status=$?
5696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5697   (exit $ac_status); }; } &&
5698          { ac_try='test -s conftest.$ac_objext'
5699   { (case "(($ac_try" in
5700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5701   *) ac_try_echo=$ac_try;;
5702 esac
5703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5704   (eval "$ac_try") 2>&5
5705   ac_status=$?
5706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5707   (exit $ac_status); }; }; then
5708   ac_cv_prog_cc_g=yes
5709 else
5710   echo "$as_me: failed program was:" >&5
5711 sed 's/^/| /' conftest.$ac_ext >&5
5712
5713         CFLAGS=""
5714       cat >conftest.$ac_ext <<_ACEOF
5715 /* confdefs.h.  */
5716 _ACEOF
5717 cat confdefs.h >>conftest.$ac_ext
5718 cat >>conftest.$ac_ext <<_ACEOF
5719 /* end confdefs.h.  */
5720
5721 int
5722 main ()
5723 {
5724
5725   ;
5726   return 0;
5727 }
5728 _ACEOF
5729 rm -f conftest.$ac_objext
5730 if { (ac_try="$ac_compile"
5731 case "(($ac_try" in
5732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5733   *) ac_try_echo=$ac_try;;
5734 esac
5735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5736   (eval "$ac_compile") 2>conftest.er1
5737   ac_status=$?
5738   grep -v '^ *+' conftest.er1 >conftest.err
5739   rm -f conftest.er1
5740   cat conftest.err >&5
5741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742   (exit $ac_status); } &&
5743          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5744   { (case "(($ac_try" in
5745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5746   *) ac_try_echo=$ac_try;;
5747 esac
5748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5749   (eval "$ac_try") 2>&5
5750   ac_status=$?
5751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752   (exit $ac_status); }; } &&
5753          { ac_try='test -s conftest.$ac_objext'
5754   { (case "(($ac_try" in
5755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5756   *) ac_try_echo=$ac_try;;
5757 esac
5758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5759   (eval "$ac_try") 2>&5
5760   ac_status=$?
5761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5762   (exit $ac_status); }; }; then
5763   :
5764 else
5765   echo "$as_me: failed program was:" >&5
5766 sed 's/^/| /' conftest.$ac_ext >&5
5767
5768         ac_c_werror_flag=$ac_save_c_werror_flag
5769          CFLAGS="-g"
5770          cat >conftest.$ac_ext <<_ACEOF
5771 /* confdefs.h.  */
5772 _ACEOF
5773 cat confdefs.h >>conftest.$ac_ext
5774 cat >>conftest.$ac_ext <<_ACEOF
5775 /* end confdefs.h.  */
5776
5777 int
5778 main ()
5779 {
5780
5781   ;
5782   return 0;
5783 }
5784 _ACEOF
5785 rm -f conftest.$ac_objext
5786 if { (ac_try="$ac_compile"
5787 case "(($ac_try" in
5788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5789   *) ac_try_echo=$ac_try;;
5790 esac
5791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5792   (eval "$ac_compile") 2>conftest.er1
5793   ac_status=$?
5794   grep -v '^ *+' conftest.er1 >conftest.err
5795   rm -f conftest.er1
5796   cat conftest.err >&5
5797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798   (exit $ac_status); } &&
5799          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5800   { (case "(($ac_try" in
5801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5802   *) ac_try_echo=$ac_try;;
5803 esac
5804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5805   (eval "$ac_try") 2>&5
5806   ac_status=$?
5807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5808   (exit $ac_status); }; } &&
5809          { ac_try='test -s conftest.$ac_objext'
5810   { (case "(($ac_try" in
5811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5812   *) ac_try_echo=$ac_try;;
5813 esac
5814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5815   (eval "$ac_try") 2>&5
5816   ac_status=$?
5817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5818   (exit $ac_status); }; }; then
5819   ac_cv_prog_cc_g=yes
5820 else
5821   echo "$as_me: failed program was:" >&5
5822 sed 's/^/| /' conftest.$ac_ext >&5
5823
5824
5825 fi
5826
5827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5828 fi
5829
5830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5831 fi
5832
5833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5834    ac_c_werror_flag=$ac_save_c_werror_flag
5835 fi
5836 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5837 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5838 if test "$ac_test_CFLAGS" = set; then
5839   CFLAGS=$ac_save_CFLAGS
5840 elif test $ac_cv_prog_cc_g = yes; then
5841   if test "$GCC" = yes; then
5842     CFLAGS="-g -O2"
5843   else
5844     CFLAGS="-g"
5845   fi
5846 else
5847   if test "$GCC" = yes; then
5848     CFLAGS="-O2"
5849   else
5850     CFLAGS=
5851   fi
5852 fi
5853 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5854 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5855 if test "${ac_cv_prog_cc_c89+set}" = set; then
5856   echo $ECHO_N "(cached) $ECHO_C" >&6
5857 else
5858   ac_cv_prog_cc_c89=no
5859 ac_save_CC=$CC
5860 cat >conftest.$ac_ext <<_ACEOF
5861 /* confdefs.h.  */
5862 _ACEOF
5863 cat confdefs.h >>conftest.$ac_ext
5864 cat >>conftest.$ac_ext <<_ACEOF
5865 /* end confdefs.h.  */
5866 #include <stdarg.h>
5867 #include <stdio.h>
5868 #include <sys/types.h>
5869 #include <sys/stat.h>
5870 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5871 struct buf { int x; };
5872 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5873 static char *e (p, i)
5874      char **p;
5875      int i;
5876 {
5877   return p[i];
5878 }
5879 static char *f (char * (*g) (char **, int), char **p, ...)
5880 {
5881   char *s;
5882   va_list v;
5883   va_start (v,p);
5884   s = g (p, va_arg (v,int));
5885   va_end (v);
5886   return s;
5887 }
5888
5889 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5890    function prototypes and stuff, but not '\xHH' hex character constants.
5891    These don't provoke an error unfortunately, instead are silently treated
5892    as 'x'.  The following induces an error, until -std is added to get
5893    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5894    array size at least.  It's necessary to write '\x00'==0 to get something
5895    that's true only with -std.  */
5896 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5897
5898 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5899    inside strings and character constants.  */
5900 #define FOO(x) 'x'
5901 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5902
5903 int test (int i, double x);
5904 struct s1 {int (*f) (int a);};
5905 struct s2 {int (*f) (double a);};
5906 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5907 int argc;
5908 char **argv;
5909 int
5910 main ()
5911 {
5912 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5913   ;
5914   return 0;
5915 }
5916 _ACEOF
5917 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5918         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5919 do
5920   CC="$ac_save_CC $ac_arg"
5921   rm -f conftest.$ac_objext
5922 if { (ac_try="$ac_compile"
5923 case "(($ac_try" in
5924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5925   *) ac_try_echo=$ac_try;;
5926 esac
5927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5928   (eval "$ac_compile") 2>conftest.er1
5929   ac_status=$?
5930   grep -v '^ *+' conftest.er1 >conftest.err
5931   rm -f conftest.er1
5932   cat conftest.err >&5
5933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5934   (exit $ac_status); } &&
5935          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5936   { (case "(($ac_try" in
5937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5938   *) ac_try_echo=$ac_try;;
5939 esac
5940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5941   (eval "$ac_try") 2>&5
5942   ac_status=$?
5943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944   (exit $ac_status); }; } &&
5945          { ac_try='test -s conftest.$ac_objext'
5946   { (case "(($ac_try" in
5947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5948   *) ac_try_echo=$ac_try;;
5949 esac
5950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5951   (eval "$ac_try") 2>&5
5952   ac_status=$?
5953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954   (exit $ac_status); }; }; then
5955   ac_cv_prog_cc_c89=$ac_arg
5956 else
5957   echo "$as_me: failed program was:" >&5
5958 sed 's/^/| /' conftest.$ac_ext >&5
5959
5960
5961 fi
5962
5963 rm -f core conftest.err conftest.$ac_objext
5964   test "x$ac_cv_prog_cc_c89" != "xno" && break
5965 done
5966 rm -f conftest.$ac_ext
5967 CC=$ac_save_CC
5968
5969 fi
5970 # AC_CACHE_VAL
5971 case "x$ac_cv_prog_cc_c89" in
5972   x)
5973     { echo "$as_me:$LINENO: result: none needed" >&5
5974 echo "${ECHO_T}none needed" >&6; } ;;
5975   xno)
5976     { echo "$as_me:$LINENO: result: unsupported" >&5
5977 echo "${ECHO_T}unsupported" >&6; } ;;
5978   *)
5979     CC="$CC $ac_cv_prog_cc_c89"
5980     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5981 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5982 esac
5983
5984
5985 ac_ext=c
5986 ac_cpp='$CPP $CPPFLAGS'
5987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5990
5991 ac_ext=cpp
5992 ac_cpp='$CXXCPP $CPPFLAGS'
5993 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5994 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5995 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5996 if test -z "$CXX"; then
5997   if test -n "$CCC"; then
5998     CXX=$CCC
5999   else
6000     if test -n "$ac_tool_prefix"; then
6001   for ac_prog in g++
6002   do
6003     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6004 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6005 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6007 if test "${ac_cv_prog_CXX+set}" = set; then
6008   echo $ECHO_N "(cached) $ECHO_C" >&6
6009 else
6010   if test -n "$CXX"; then
6011   ac_cv_prog_CXX="$CXX" # Let the user override the test.
6012 else
6013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6014 for as_dir in $PATH
6015 do
6016   IFS=$as_save_IFS
6017   test -z "$as_dir" && as_dir=.
6018   for ac_exec_ext in '' $ac_executable_extensions; do
6019   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6020     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6021     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6022     break 2
6023   fi
6024 done
6025 done
6026 IFS=$as_save_IFS
6027
6028 fi
6029 fi
6030 CXX=$ac_cv_prog_CXX
6031 if test -n "$CXX"; then
6032   { echo "$as_me:$LINENO: result: $CXX" >&5
6033 echo "${ECHO_T}$CXX" >&6; }
6034 else
6035   { echo "$as_me:$LINENO: result: no" >&5
6036 echo "${ECHO_T}no" >&6; }
6037 fi
6038
6039
6040     test -n "$CXX" && break
6041   done
6042 fi
6043 if test -z "$CXX"; then
6044   ac_ct_CXX=$CXX
6045   for ac_prog in g++
6046 do
6047   # Extract the first word of "$ac_prog", so it can be a program name with args.
6048 set dummy $ac_prog; ac_word=$2
6049 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6051 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6052   echo $ECHO_N "(cached) $ECHO_C" >&6
6053 else
6054   if test -n "$ac_ct_CXX"; then
6055   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6056 else
6057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6058 for as_dir in $PATH
6059 do
6060   IFS=$as_save_IFS
6061   test -z "$as_dir" && as_dir=.
6062   for ac_exec_ext in '' $ac_executable_extensions; do
6063   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6064     ac_cv_prog_ac_ct_CXX="$ac_prog"
6065     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6066     break 2
6067   fi
6068 done
6069 done
6070 IFS=$as_save_IFS
6071
6072 fi
6073 fi
6074 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6075 if test -n "$ac_ct_CXX"; then
6076   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6077 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6078 else
6079   { echo "$as_me:$LINENO: result: no" >&5
6080 echo "${ECHO_T}no" >&6; }
6081 fi
6082
6083
6084   test -n "$ac_ct_CXX" && break
6085 done
6086
6087   if test "x$ac_ct_CXX" = x; then
6088     CXX="g++"
6089   else
6090     case $cross_compiling:$ac_tool_warned in
6091 yes:)
6092 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6093 whose name does not start with the host triplet.  If you think this
6094 configuration is useful to you, please write to autoconf@gnu.org." >&5
6095 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6096 whose name does not start with the host triplet.  If you think this
6097 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6098 ac_tool_warned=yes ;;
6099 esac
6100     CXX=$ac_ct_CXX
6101   fi
6102 fi
6103
6104   fi
6105 fi
6106 # Provide some information about the compiler.
6107 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6108 ac_compiler=`set X $ac_compile; echo $2`
6109 { (ac_try="$ac_compiler --version >&5"
6110 case "(($ac_try" in
6111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6112   *) ac_try_echo=$ac_try;;
6113 esac
6114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6115   (eval "$ac_compiler --version >&5") 2>&5
6116   ac_status=$?
6117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6118   (exit $ac_status); }
6119 { (ac_try="$ac_compiler -v >&5"
6120 case "(($ac_try" in
6121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6122   *) ac_try_echo=$ac_try;;
6123 esac
6124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6125   (eval "$ac_compiler -v >&5") 2>&5
6126   ac_status=$?
6127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128   (exit $ac_status); }
6129 { (ac_try="$ac_compiler -V >&5"
6130 case "(($ac_try" in
6131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6132   *) ac_try_echo=$ac_try;;
6133 esac
6134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6135   (eval "$ac_compiler -V >&5") 2>&5
6136   ac_status=$?
6137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138   (exit $ac_status); }
6139
6140 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6141 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6142 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6143   echo $ECHO_N "(cached) $ECHO_C" >&6
6144 else
6145   cat >conftest.$ac_ext <<_ACEOF
6146 /* confdefs.h.  */
6147 _ACEOF
6148 cat confdefs.h >>conftest.$ac_ext
6149 cat >>conftest.$ac_ext <<_ACEOF
6150 /* end confdefs.h.  */
6151
6152 int
6153 main ()
6154 {
6155 #ifndef __GNUC__
6156        choke me
6157 #endif
6158
6159   ;
6160   return 0;
6161 }
6162 _ACEOF
6163 rm -f conftest.$ac_objext
6164 if { (ac_try="$ac_compile"
6165 case "(($ac_try" in
6166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6167   *) ac_try_echo=$ac_try;;
6168 esac
6169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6170   (eval "$ac_compile") 2>conftest.er1
6171   ac_status=$?
6172   grep -v '^ *+' conftest.er1 >conftest.err
6173   rm -f conftest.er1
6174   cat conftest.err >&5
6175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6176   (exit $ac_status); } &&
6177          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6178   { (case "(($ac_try" in
6179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6180   *) ac_try_echo=$ac_try;;
6181 esac
6182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6183   (eval "$ac_try") 2>&5
6184   ac_status=$?
6185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186   (exit $ac_status); }; } &&
6187          { ac_try='test -s conftest.$ac_objext'
6188   { (case "(($ac_try" in
6189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6190   *) ac_try_echo=$ac_try;;
6191 esac
6192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6193   (eval "$ac_try") 2>&5
6194   ac_status=$?
6195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6196   (exit $ac_status); }; }; then
6197   ac_compiler_gnu=yes
6198 else
6199   echo "$as_me: failed program was:" >&5
6200 sed 's/^/| /' conftest.$ac_ext >&5
6201
6202         ac_compiler_gnu=no
6203 fi
6204
6205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6206 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6207
6208 fi
6209 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6210 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6211 GXX=`test $ac_compiler_gnu = yes && echo yes`
6212 ac_test_CXXFLAGS=${CXXFLAGS+set}
6213 ac_save_CXXFLAGS=$CXXFLAGS
6214 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6215 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6216 if test "${ac_cv_prog_cxx_g+set}" = set; then
6217   echo $ECHO_N "(cached) $ECHO_C" >&6
6218 else
6219   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6220    ac_cxx_werror_flag=yes
6221    ac_cv_prog_cxx_g=no
6222    CXXFLAGS="-g"
6223    cat >conftest.$ac_ext <<_ACEOF
6224 /* confdefs.h.  */
6225 _ACEOF
6226 cat confdefs.h >>conftest.$ac_ext
6227 cat >>conftest.$ac_ext <<_ACEOF
6228 /* end confdefs.h.  */
6229
6230 int
6231 main ()
6232 {
6233
6234   ;
6235   return 0;
6236 }
6237 _ACEOF
6238 rm -f conftest.$ac_objext
6239 if { (ac_try="$ac_compile"
6240 case "(($ac_try" in
6241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6242   *) ac_try_echo=$ac_try;;
6243 esac
6244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6245   (eval "$ac_compile") 2>conftest.er1
6246   ac_status=$?
6247   grep -v '^ *+' conftest.er1 >conftest.err
6248   rm -f conftest.er1
6249   cat conftest.err >&5
6250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6251   (exit $ac_status); } &&
6252          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6253   { (case "(($ac_try" in
6254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6255   *) ac_try_echo=$ac_try;;
6256 esac
6257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6258   (eval "$ac_try") 2>&5
6259   ac_status=$?
6260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6261   (exit $ac_status); }; } &&
6262          { ac_try='test -s conftest.$ac_objext'
6263   { (case "(($ac_try" in
6264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6265   *) ac_try_echo=$ac_try;;
6266 esac
6267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6268   (eval "$ac_try") 2>&5
6269   ac_status=$?
6270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6271   (exit $ac_status); }; }; then
6272   ac_cv_prog_cxx_g=yes
6273 else
6274   echo "$as_me: failed program was:" >&5
6275 sed 's/^/| /' conftest.$ac_ext >&5
6276
6277         CXXFLAGS=""
6278       cat >conftest.$ac_ext <<_ACEOF
6279 /* confdefs.h.  */
6280 _ACEOF
6281 cat confdefs.h >>conftest.$ac_ext
6282 cat >>conftest.$ac_ext <<_ACEOF
6283 /* end confdefs.h.  */
6284
6285 int
6286 main ()
6287 {
6288
6289   ;
6290   return 0;
6291 }
6292 _ACEOF
6293 rm -f conftest.$ac_objext
6294 if { (ac_try="$ac_compile"
6295 case "(($ac_try" in
6296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6297   *) ac_try_echo=$ac_try;;
6298 esac
6299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6300   (eval "$ac_compile") 2>conftest.er1
6301   ac_status=$?
6302   grep -v '^ *+' conftest.er1 >conftest.err
6303   rm -f conftest.er1
6304   cat conftest.err >&5
6305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306   (exit $ac_status); } &&
6307          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6308   { (case "(($ac_try" in
6309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6310   *) ac_try_echo=$ac_try;;
6311 esac
6312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6313   (eval "$ac_try") 2>&5
6314   ac_status=$?
6315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316   (exit $ac_status); }; } &&
6317          { ac_try='test -s conftest.$ac_objext'
6318   { (case "(($ac_try" in
6319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6320   *) ac_try_echo=$ac_try;;
6321 esac
6322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6323   (eval "$ac_try") 2>&5
6324   ac_status=$?
6325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326   (exit $ac_status); }; }; then
6327   :
6328 else
6329   echo "$as_me: failed program was:" >&5
6330 sed 's/^/| /' conftest.$ac_ext >&5
6331
6332         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6333          CXXFLAGS="-g"
6334          cat >conftest.$ac_ext <<_ACEOF
6335 /* confdefs.h.  */
6336 _ACEOF
6337 cat confdefs.h >>conftest.$ac_ext
6338 cat >>conftest.$ac_ext <<_ACEOF
6339 /* end confdefs.h.  */
6340
6341 int
6342 main ()
6343 {
6344
6345   ;
6346   return 0;
6347 }
6348 _ACEOF
6349 rm -f conftest.$ac_objext
6350 if { (ac_try="$ac_compile"
6351 case "(($ac_try" in
6352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6353   *) ac_try_echo=$ac_try;;
6354 esac
6355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6356   (eval "$ac_compile") 2>conftest.er1
6357   ac_status=$?
6358   grep -v '^ *+' conftest.er1 >conftest.err
6359   rm -f conftest.er1
6360   cat conftest.err >&5
6361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362   (exit $ac_status); } &&
6363          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6364   { (case "(($ac_try" in
6365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6366   *) ac_try_echo=$ac_try;;
6367 esac
6368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6369   (eval "$ac_try") 2>&5
6370   ac_status=$?
6371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6372   (exit $ac_status); }; } &&
6373          { ac_try='test -s conftest.$ac_objext'
6374   { (case "(($ac_try" in
6375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6376   *) ac_try_echo=$ac_try;;
6377 esac
6378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6379   (eval "$ac_try") 2>&5
6380   ac_status=$?
6381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6382   (exit $ac_status); }; }; then
6383   ac_cv_prog_cxx_g=yes
6384 else
6385   echo "$as_me: failed program was:" >&5
6386 sed 's/^/| /' conftest.$ac_ext >&5
6387
6388
6389 fi
6390
6391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6392 fi
6393
6394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6395 fi
6396
6397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6398    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6399 fi
6400 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6401 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6402 if test "$ac_test_CXXFLAGS" = set; then
6403   CXXFLAGS=$ac_save_CXXFLAGS
6404 elif test $ac_cv_prog_cxx_g = yes; then
6405   if test "$GXX" = yes; then
6406     CXXFLAGS="-g -O2"
6407   else
6408     CXXFLAGS="-g"
6409   fi
6410 else
6411   if test "$GXX" = yes; then
6412     CXXFLAGS="-O2"
6413   else
6414     CXXFLAGS=
6415   fi
6416 fi
6417 ac_ext=c
6418 ac_cpp='$CPP $CPPFLAGS'
6419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6422
6423
6424 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6425 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6426 if test "${lt_cv_path_NM+set}" = set; then
6427   echo $ECHO_N "(cached) $ECHO_C" >&6
6428 else
6429   if test -n "$NM"; then
6430   # Let the user override the test.
6431   lt_cv_path_NM="$NM"
6432 else
6433   lt_nm_to_check="${ac_tool_prefix}nm"
6434   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6435     lt_nm_to_check="$lt_nm_to_check nm"
6436   fi
6437   for lt_tmp_nm in $lt_nm_to_check; do
6438     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6439     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6440       IFS="$lt_save_ifs"
6441       test -z "$ac_dir" && ac_dir=.
6442       tmp_nm="$ac_dir/$lt_tmp_nm"
6443       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6444         # Check to see if the nm accepts a BSD-compat flag.
6445         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6446         #   nm: unknown option "B" ignored
6447         # Tru64's nm complains that /dev/null is an invalid object file
6448         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6449         */dev/null* | *'Invalid file or object type'*)
6450           lt_cv_path_NM="$tmp_nm -B"
6451           break
6452           ;;
6453         *)
6454           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6455           */dev/null*)
6456             lt_cv_path_NM="$tmp_nm -p"
6457             break
6458             ;;
6459           *)
6460             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6461             continue # so that we can try to find one that supports BSD flags
6462             ;;
6463           esac
6464           ;;
6465         esac
6466       fi
6467     done
6468     IFS="$lt_save_ifs"
6469   done
6470   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6471 fi
6472 fi
6473 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6474 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6475 NM="$lt_cv_path_NM"
6476
6477
6478
6479 { echo "$as_me:$LINENO: checking for GNU make" >&5
6480 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6481 if test "${llvm_cv_gnu_make_command+set}" = set; then
6482   echo $ECHO_N "(cached) $ECHO_C" >&6
6483 else
6484   llvm_cv_gnu_make_command=''
6485  for a in "$MAKE" make gmake gnumake ; do
6486   if test -z "$a" ; then continue ; fi ;
6487   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6488   then
6489    llvm_cv_gnu_make_command=$a ;
6490    break;
6491   fi
6492  done
6493 fi
6494 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6495 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6496  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6497    ifGNUmake='' ;
6498  else
6499    ifGNUmake='#' ;
6500    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6501 echo "${ECHO_T}\"Not found\"" >&6; };
6502  fi
6503
6504
6505 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6506 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6507 LN_S=$as_ln_s
6508 if test "$LN_S" = "ln -s"; then
6509   { echo "$as_me:$LINENO: result: yes" >&5
6510 echo "${ECHO_T}yes" >&6; }
6511 else
6512   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6513 echo "${ECHO_T}no, using $LN_S" >&6; }
6514 fi
6515
6516 # Extract the first word of "cmp", so it can be a program name with args.
6517 set dummy cmp; 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_path_CMP+set}" = set; then
6521   echo $ECHO_N "(cached) $ECHO_C" >&6
6522 else
6523   case $CMP in
6524   [\\/]* | ?:[\\/]*)
6525   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6526   ;;
6527   *)
6528   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6529 for as_dir in $PATH
6530 do
6531   IFS=$as_save_IFS
6532   test -z "$as_dir" && as_dir=.
6533   for ac_exec_ext in '' $ac_executable_extensions; do
6534   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6535     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6536     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6537     break 2
6538   fi
6539 done
6540 done
6541 IFS=$as_save_IFS
6542
6543   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6544   ;;
6545 esac
6546 fi
6547 CMP=$ac_cv_path_CMP
6548 if test -n "$CMP"; then
6549   { echo "$as_me:$LINENO: result: $CMP" >&5
6550 echo "${ECHO_T}$CMP" >&6; }
6551 else
6552   { echo "$as_me:$LINENO: result: no" >&5
6553 echo "${ECHO_T}no" >&6; }
6554 fi
6555
6556
6557 # Extract the first word of "cp", so it can be a program name with args.
6558 set dummy cp; ac_word=$2
6559 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6561 if test "${ac_cv_path_CP+set}" = set; then
6562   echo $ECHO_N "(cached) $ECHO_C" >&6
6563 else
6564   case $CP in
6565   [\\/]* | ?:[\\/]*)
6566   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6567   ;;
6568   *)
6569   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6570 for as_dir in $PATH
6571 do
6572   IFS=$as_save_IFS
6573   test -z "$as_dir" && as_dir=.
6574   for ac_exec_ext in '' $ac_executable_extensions; do
6575   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6576     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6577     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6578     break 2
6579   fi
6580 done
6581 done
6582 IFS=$as_save_IFS
6583
6584   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6585   ;;
6586 esac
6587 fi
6588 CP=$ac_cv_path_CP
6589 if test -n "$CP"; then
6590   { echo "$as_me:$LINENO: result: $CP" >&5
6591 echo "${ECHO_T}$CP" >&6; }
6592 else
6593   { echo "$as_me:$LINENO: result: no" >&5
6594 echo "${ECHO_T}no" >&6; }
6595 fi
6596
6597
6598 # Extract the first word of "date", so it can be a program name with args.
6599 set dummy date; ac_word=$2
6600 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6602 if test "${ac_cv_path_DATE+set}" = set; then
6603   echo $ECHO_N "(cached) $ECHO_C" >&6
6604 else
6605   case $DATE in
6606   [\\/]* | ?:[\\/]*)
6607   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6608   ;;
6609   *)
6610   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6611 for as_dir in $PATH
6612 do
6613   IFS=$as_save_IFS
6614   test -z "$as_dir" && as_dir=.
6615   for ac_exec_ext in '' $ac_executable_extensions; do
6616   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6617     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6618     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6619     break 2
6620   fi
6621 done
6622 done
6623 IFS=$as_save_IFS
6624
6625   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6626   ;;
6627 esac
6628 fi
6629 DATE=$ac_cv_path_DATE
6630 if test -n "$DATE"; then
6631   { echo "$as_me:$LINENO: result: $DATE" >&5
6632 echo "${ECHO_T}$DATE" >&6; }
6633 else
6634   { echo "$as_me:$LINENO: result: no" >&5
6635 echo "${ECHO_T}no" >&6; }
6636 fi
6637
6638
6639 # Extract the first word of "find", so it can be a program name with args.
6640 set dummy find; ac_word=$2
6641 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6643 if test "${ac_cv_path_FIND+set}" = set; then
6644   echo $ECHO_N "(cached) $ECHO_C" >&6
6645 else
6646   case $FIND in
6647   [\\/]* | ?:[\\/]*)
6648   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6649   ;;
6650   *)
6651   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6652 for as_dir in $PATH
6653 do
6654   IFS=$as_save_IFS
6655   test -z "$as_dir" && as_dir=.
6656   for ac_exec_ext in '' $ac_executable_extensions; do
6657   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6658     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6659     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6660     break 2
6661   fi
6662 done
6663 done
6664 IFS=$as_save_IFS
6665
6666   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6667   ;;
6668 esac
6669 fi
6670 FIND=$ac_cv_path_FIND
6671 if test -n "$FIND"; then
6672   { echo "$as_me:$LINENO: result: $FIND" >&5
6673 echo "${ECHO_T}$FIND" >&6; }
6674 else
6675   { echo "$as_me:$LINENO: result: no" >&5
6676 echo "${ECHO_T}no" >&6; }
6677 fi
6678
6679
6680 # Extract the first word of "grep", so it can be a program name with args.
6681 set dummy grep; ac_word=$2
6682 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6684 if test "${ac_cv_path_GREP+set}" = set; then
6685   echo $ECHO_N "(cached) $ECHO_C" >&6
6686 else
6687   case $GREP in
6688   [\\/]* | ?:[\\/]*)
6689   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6690   ;;
6691   *)
6692   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6693 for as_dir in $PATH
6694 do
6695   IFS=$as_save_IFS
6696   test -z "$as_dir" && as_dir=.
6697   for ac_exec_ext in '' $ac_executable_extensions; do
6698   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6699     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6700     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6701     break 2
6702   fi
6703 done
6704 done
6705 IFS=$as_save_IFS
6706
6707   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6708   ;;
6709 esac
6710 fi
6711 GREP=$ac_cv_path_GREP
6712 if test -n "$GREP"; then
6713   { echo "$as_me:$LINENO: result: $GREP" >&5
6714 echo "${ECHO_T}$GREP" >&6; }
6715 else
6716   { echo "$as_me:$LINENO: result: no" >&5
6717 echo "${ECHO_T}no" >&6; }
6718 fi
6719
6720
6721 # Extract the first word of "mkdir", so it can be a program name with args.
6722 set dummy mkdir; ac_word=$2
6723 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6725 if test "${ac_cv_path_MKDIR+set}" = set; then
6726   echo $ECHO_N "(cached) $ECHO_C" >&6
6727 else
6728   case $MKDIR in
6729   [\\/]* | ?:[\\/]*)
6730   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6731   ;;
6732   *)
6733   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6734 for as_dir in $PATH
6735 do
6736   IFS=$as_save_IFS
6737   test -z "$as_dir" && as_dir=.
6738   for ac_exec_ext in '' $ac_executable_extensions; do
6739   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6740     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6741     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6742     break 2
6743   fi
6744 done
6745 done
6746 IFS=$as_save_IFS
6747
6748   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6749   ;;
6750 esac
6751 fi
6752 MKDIR=$ac_cv_path_MKDIR
6753 if test -n "$MKDIR"; then
6754   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6755 echo "${ECHO_T}$MKDIR" >&6; }
6756 else
6757   { echo "$as_me:$LINENO: result: no" >&5
6758 echo "${ECHO_T}no" >&6; }
6759 fi
6760
6761
6762 # Extract the first word of "mv", so it can be a program name with args.
6763 set dummy mv; ac_word=$2
6764 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6766 if test "${ac_cv_path_MV+set}" = set; then
6767   echo $ECHO_N "(cached) $ECHO_C" >&6
6768 else
6769   case $MV in
6770   [\\/]* | ?:[\\/]*)
6771   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6772   ;;
6773   *)
6774   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6775 for as_dir in $PATH
6776 do
6777   IFS=$as_save_IFS
6778   test -z "$as_dir" && as_dir=.
6779   for ac_exec_ext in '' $ac_executable_extensions; do
6780   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6781     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6782     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6783     break 2
6784   fi
6785 done
6786 done
6787 IFS=$as_save_IFS
6788
6789   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6790   ;;
6791 esac
6792 fi
6793 MV=$ac_cv_path_MV
6794 if test -n "$MV"; then
6795   { echo "$as_me:$LINENO: result: $MV" >&5
6796 echo "${ECHO_T}$MV" >&6; }
6797 else
6798   { echo "$as_me:$LINENO: result: no" >&5
6799 echo "${ECHO_T}no" >&6; }
6800 fi
6801
6802
6803 if test -n "$ac_tool_prefix"; then
6804   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6805 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6806 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6808 if test "${ac_cv_prog_RANLIB+set}" = set; then
6809   echo $ECHO_N "(cached) $ECHO_C" >&6
6810 else
6811   if test -n "$RANLIB"; then
6812   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6813 else
6814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6815 for as_dir in $PATH
6816 do
6817   IFS=$as_save_IFS
6818   test -z "$as_dir" && as_dir=.
6819   for ac_exec_ext in '' $ac_executable_extensions; do
6820   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6821     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6822     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6823     break 2
6824   fi
6825 done
6826 done
6827 IFS=$as_save_IFS
6828
6829 fi
6830 fi
6831 RANLIB=$ac_cv_prog_RANLIB
6832 if test -n "$RANLIB"; then
6833   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6834 echo "${ECHO_T}$RANLIB" >&6; }
6835 else
6836   { echo "$as_me:$LINENO: result: no" >&5
6837 echo "${ECHO_T}no" >&6; }
6838 fi
6839
6840
6841 fi
6842 if test -z "$ac_cv_prog_RANLIB"; then
6843   ac_ct_RANLIB=$RANLIB
6844   # Extract the first word of "ranlib", so it can be a program name with args.
6845 set dummy ranlib; ac_word=$2
6846 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6848 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6849   echo $ECHO_N "(cached) $ECHO_C" >&6
6850 else
6851   if test -n "$ac_ct_RANLIB"; then
6852   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6853 else
6854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6855 for as_dir in $PATH
6856 do
6857   IFS=$as_save_IFS
6858   test -z "$as_dir" && as_dir=.
6859   for ac_exec_ext in '' $ac_executable_extensions; do
6860   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6861     ac_cv_prog_ac_ct_RANLIB="ranlib"
6862     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6863     break 2
6864   fi
6865 done
6866 done
6867 IFS=$as_save_IFS
6868
6869 fi
6870 fi
6871 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6872 if test -n "$ac_ct_RANLIB"; then
6873   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6874 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6875 else
6876   { echo "$as_me:$LINENO: result: no" >&5
6877 echo "${ECHO_T}no" >&6; }
6878 fi
6879
6880   if test "x$ac_ct_RANLIB" = x; then
6881     RANLIB=":"
6882   else
6883     case $cross_compiling:$ac_tool_warned in
6884 yes:)
6885 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6886 whose name does not start with the host triplet.  If you think this
6887 configuration is useful to you, please write to autoconf@gnu.org." >&5
6888 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6889 whose name does not start with the host triplet.  If you think this
6890 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6891 ac_tool_warned=yes ;;
6892 esac
6893     RANLIB=$ac_ct_RANLIB
6894   fi
6895 else
6896   RANLIB="$ac_cv_prog_RANLIB"
6897 fi
6898
6899 # Extract the first word of "rm", so it can be a program name with args.
6900 set dummy rm; ac_word=$2
6901 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6903 if test "${ac_cv_path_RM+set}" = set; then
6904   echo $ECHO_N "(cached) $ECHO_C" >&6
6905 else
6906   case $RM in
6907   [\\/]* | ?:[\\/]*)
6908   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6909   ;;
6910   *)
6911   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6912 for as_dir in $PATH
6913 do
6914   IFS=$as_save_IFS
6915   test -z "$as_dir" && as_dir=.
6916   for ac_exec_ext in '' $ac_executable_extensions; do
6917   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6918     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6919     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6920     break 2
6921   fi
6922 done
6923 done
6924 IFS=$as_save_IFS
6925
6926   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6927   ;;
6928 esac
6929 fi
6930 RM=$ac_cv_path_RM
6931 if test -n "$RM"; then
6932   { echo "$as_me:$LINENO: result: $RM" >&5
6933 echo "${ECHO_T}$RM" >&6; }
6934 else
6935   { echo "$as_me:$LINENO: result: no" >&5
6936 echo "${ECHO_T}no" >&6; }
6937 fi
6938
6939
6940 # Extract the first word of "sed", so it can be a program name with args.
6941 set dummy sed; ac_word=$2
6942 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6944 if test "${ac_cv_path_SED+set}" = set; then
6945   echo $ECHO_N "(cached) $ECHO_C" >&6
6946 else
6947   case $SED in
6948   [\\/]* | ?:[\\/]*)
6949   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6950   ;;
6951   *)
6952   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6953 for as_dir in $PATH
6954 do
6955   IFS=$as_save_IFS
6956   test -z "$as_dir" && as_dir=.
6957   for ac_exec_ext in '' $ac_executable_extensions; do
6958   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6959     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6960     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6961     break 2
6962   fi
6963 done
6964 done
6965 IFS=$as_save_IFS
6966
6967   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6968   ;;
6969 esac
6970 fi
6971 SED=$ac_cv_path_SED
6972 if test -n "$SED"; then
6973   { echo "$as_me:$LINENO: result: $SED" >&5
6974 echo "${ECHO_T}$SED" >&6; }
6975 else
6976   { echo "$as_me:$LINENO: result: no" >&5
6977 echo "${ECHO_T}no" >&6; }
6978 fi
6979
6980
6981 # Extract the first word of "tar", so it can be a program name with args.
6982 set dummy tar; ac_word=$2
6983 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6985 if test "${ac_cv_path_TAR+set}" = set; then
6986   echo $ECHO_N "(cached) $ECHO_C" >&6
6987 else
6988   case $TAR in
6989   [\\/]* | ?:[\\/]*)
6990   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6991   ;;
6992   *)
6993   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6994 for as_dir in $PATH
6995 do
6996   IFS=$as_save_IFS
6997   test -z "$as_dir" && as_dir=.
6998   for ac_exec_ext in '' $ac_executable_extensions; do
6999   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7000     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7001     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7002     break 2
7003   fi
7004 done
7005 done
7006 IFS=$as_save_IFS
7007
7008   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7009   ;;
7010 esac
7011 fi
7012 TAR=$ac_cv_path_TAR
7013 if test -n "$TAR"; then
7014   { echo "$as_me:$LINENO: result: $TAR" >&5
7015 echo "${ECHO_T}$TAR" >&6; }
7016 else
7017   { echo "$as_me:$LINENO: result: no" >&5
7018 echo "${ECHO_T}no" >&6; }
7019 fi
7020
7021
7022 # Extract the first word of "pwd", so it can be a program name with args.
7023 set dummy pwd; ac_word=$2
7024 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7026 if test "${ac_cv_path_BINPWD+set}" = set; then
7027   echo $ECHO_N "(cached) $ECHO_C" >&6
7028 else
7029   case $BINPWD in
7030   [\\/]* | ?:[\\/]*)
7031   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7032   ;;
7033   *)
7034   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7035 for as_dir in $PATH
7036 do
7037   IFS=$as_save_IFS
7038   test -z "$as_dir" && as_dir=.
7039   for ac_exec_ext in '' $ac_executable_extensions; do
7040   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7041     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7042     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7043     break 2
7044   fi
7045 done
7046 done
7047 IFS=$as_save_IFS
7048
7049   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7050   ;;
7051 esac
7052 fi
7053 BINPWD=$ac_cv_path_BINPWD
7054 if test -n "$BINPWD"; then
7055   { echo "$as_me:$LINENO: result: $BINPWD" >&5
7056 echo "${ECHO_T}$BINPWD" >&6; }
7057 else
7058   { echo "$as_me:$LINENO: result: no" >&5
7059 echo "${ECHO_T}no" >&6; }
7060 fi
7061
7062
7063
7064 # Extract the first word of "Graphviz", so it can be a program name with args.
7065 set dummy Graphviz; ac_word=$2
7066 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7068 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7069   echo $ECHO_N "(cached) $ECHO_C" >&6
7070 else
7071   case $GRAPHVIZ in
7072   [\\/]* | ?:[\\/]*)
7073   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7074   ;;
7075   *)
7076   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7077 for as_dir in $PATH
7078 do
7079   IFS=$as_save_IFS
7080   test -z "$as_dir" && as_dir=.
7081   for ac_exec_ext in '' $ac_executable_extensions; do
7082   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7083     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7084     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7085     break 2
7086   fi
7087 done
7088 done
7089 IFS=$as_save_IFS
7090
7091   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7092   ;;
7093 esac
7094 fi
7095 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7096 if test -n "$GRAPHVIZ"; then
7097   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7098 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7099 else
7100   { echo "$as_me:$LINENO: result: no" >&5
7101 echo "${ECHO_T}no" >&6; }
7102 fi
7103
7104
7105 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7106
7107 cat >>confdefs.h <<\_ACEOF
7108 #define HAVE_GRAPHVIZ 1
7109 _ACEOF
7110
7111     if test "$llvm_cv_os_type" = "MingW" ; then
7112     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7113   fi
7114
7115 cat >>confdefs.h <<_ACEOF
7116 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7117 _ACEOF
7118
7119 fi
7120 # Extract the first word of "dot", so it can be a program name with args.
7121 set dummy dot; ac_word=$2
7122 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7124 if test "${ac_cv_path_DOT+set}" = set; then
7125   echo $ECHO_N "(cached) $ECHO_C" >&6
7126 else
7127   case $DOT in
7128   [\\/]* | ?:[\\/]*)
7129   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7130   ;;
7131   *)
7132   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7133 for as_dir in $PATH
7134 do
7135   IFS=$as_save_IFS
7136   test -z "$as_dir" && as_dir=.
7137   for ac_exec_ext in '' $ac_executable_extensions; do
7138   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7139     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7140     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7141     break 2
7142   fi
7143 done
7144 done
7145 IFS=$as_save_IFS
7146
7147   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7148   ;;
7149 esac
7150 fi
7151 DOT=$ac_cv_path_DOT
7152 if test -n "$DOT"; then
7153   { echo "$as_me:$LINENO: result: $DOT" >&5
7154 echo "${ECHO_T}$DOT" >&6; }
7155 else
7156   { echo "$as_me:$LINENO: result: no" >&5
7157 echo "${ECHO_T}no" >&6; }
7158 fi
7159
7160
7161 if test "$DOT" != "echo dot" ; then
7162
7163 cat >>confdefs.h <<\_ACEOF
7164 #define HAVE_DOT 1
7165 _ACEOF
7166
7167     if test "$llvm_cv_os_type" = "MingW" ; then
7168     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7169   fi
7170
7171 cat >>confdefs.h <<_ACEOF
7172 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7173 _ACEOF
7174
7175 fi
7176 for ac_prog in gv gsview32
7177 do
7178   # Extract the first word of "$ac_prog", so it can be a program name with args.
7179 set dummy $ac_prog; ac_word=$2
7180 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7182 if test "${ac_cv_path_GV+set}" = set; then
7183   echo $ECHO_N "(cached) $ECHO_C" >&6
7184 else
7185   case $GV in
7186   [\\/]* | ?:[\\/]*)
7187   ac_cv_path_GV="$GV" # Let the user override the test with a path.
7188   ;;
7189   *)
7190   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7191 for as_dir in $PATH
7192 do
7193   IFS=$as_save_IFS
7194   test -z "$as_dir" && as_dir=.
7195   for ac_exec_ext in '' $ac_executable_extensions; do
7196   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7197     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7198     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7199     break 2
7200   fi
7201 done
7202 done
7203 IFS=$as_save_IFS
7204
7205   ;;
7206 esac
7207 fi
7208 GV=$ac_cv_path_GV
7209 if test -n "$GV"; then
7210   { echo "$as_me:$LINENO: result: $GV" >&5
7211 echo "${ECHO_T}$GV" >&6; }
7212 else
7213   { echo "$as_me:$LINENO: result: no" >&5
7214 echo "${ECHO_T}no" >&6; }
7215 fi
7216
7217
7218   test -n "$GV" && break
7219 done
7220 test -n "$GV" || GV="echo gv"
7221
7222 if test "$GV" != "echo gv" ; then
7223
7224 cat >>confdefs.h <<\_ACEOF
7225 #define HAVE_GV 1
7226 _ACEOF
7227
7228     if test "$llvm_cv_os_type" = "MingW" ; then
7229     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7230   fi
7231
7232 cat >>confdefs.h <<_ACEOF
7233 #define LLVM_PATH_GV "$GV${EXEEXT}"
7234 _ACEOF
7235
7236 fi
7237 # Extract the first word of "dotty", so it can be a program name with args.
7238 set dummy dotty; ac_word=$2
7239 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7241 if test "${ac_cv_path_DOTTY+set}" = set; then
7242   echo $ECHO_N "(cached) $ECHO_C" >&6
7243 else
7244   case $DOTTY in
7245   [\\/]* | ?:[\\/]*)
7246   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7247   ;;
7248   *)
7249   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7250 for as_dir in $PATH
7251 do
7252   IFS=$as_save_IFS
7253   test -z "$as_dir" && as_dir=.
7254   for ac_exec_ext in '' $ac_executable_extensions; do
7255   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7256     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7257     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7258     break 2
7259   fi
7260 done
7261 done
7262 IFS=$as_save_IFS
7263
7264   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7265   ;;
7266 esac
7267 fi
7268 DOTTY=$ac_cv_path_DOTTY
7269 if test -n "$DOTTY"; then
7270   { echo "$as_me:$LINENO: result: $DOTTY" >&5
7271 echo "${ECHO_T}$DOTTY" >&6; }
7272 else
7273   { echo "$as_me:$LINENO: result: no" >&5
7274 echo "${ECHO_T}no" >&6; }
7275 fi
7276
7277
7278 if test "$DOTTY" != "echo dotty" ; then
7279
7280 cat >>confdefs.h <<\_ACEOF
7281 #define HAVE_DOTTY 1
7282 _ACEOF
7283
7284     if test "$llvm_cv_os_type" = "MingW" ; then
7285     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7286   fi
7287
7288 cat >>confdefs.h <<_ACEOF
7289 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7290 _ACEOF
7291
7292 fi
7293
7294
7295 # Extract the first word of "perl", so it can be a program name with args.
7296 set dummy perl; ac_word=$2
7297 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7299 if test "${ac_cv_path_PERL+set}" = set; then
7300   echo $ECHO_N "(cached) $ECHO_C" >&6
7301 else
7302   case $PERL in
7303   [\\/]* | ?:[\\/]*)
7304   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7305   ;;
7306   *)
7307   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7308 for as_dir in $PATH
7309 do
7310   IFS=$as_save_IFS
7311   test -z "$as_dir" && as_dir=.
7312   for ac_exec_ext in '' $ac_executable_extensions; do
7313   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7314     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7315     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7316     break 2
7317   fi
7318 done
7319 done
7320 IFS=$as_save_IFS
7321
7322   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7323   ;;
7324 esac
7325 fi
7326 PERL=$ac_cv_path_PERL
7327 if test -n "$PERL"; then
7328   { echo "$as_me:$LINENO: result: $PERL" >&5
7329 echo "${ECHO_T}$PERL" >&6; }
7330 else
7331   { echo "$as_me:$LINENO: result: no" >&5
7332 echo "${ECHO_T}no" >&6; }
7333 fi
7334
7335
7336 if test "$PERL" != "none"; then
7337   { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7338 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7339   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7340     { echo "$as_me:$LINENO: result: yes" >&5
7341 echo "${ECHO_T}yes" >&6; }
7342   else
7343     PERL=none
7344     { echo "$as_me:$LINENO: result: not found" >&5
7345 echo "${ECHO_T}not found" >&6; }
7346   fi
7347 fi
7348
7349
7350 if test x"$PERL" = xnone; then
7351    HAVE_PERL=0
7352
7353    { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7354 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7355    { (exit 1); exit 1; }; }
7356 else
7357    HAVE_PERL=1
7358
7359 fi
7360
7361 # Find a good install program.  We prefer a C program (faster),
7362 # so one script is as good as another.  But avoid the broken or
7363 # incompatible versions:
7364 # SysV /etc/install, /usr/sbin/install
7365 # SunOS /usr/etc/install
7366 # IRIX /sbin/install
7367 # AIX /bin/install
7368 # AmigaOS /C/install, which installs bootblocks on floppy discs
7369 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7370 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7371 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7372 # OS/2's system install, which has a completely different semantic
7373 # ./install, which can be erroneously created by make from ./install.sh.
7374 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7375 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7376 if test -z "$INSTALL"; then
7377 if test "${ac_cv_path_install+set}" = set; then
7378   echo $ECHO_N "(cached) $ECHO_C" >&6
7379 else
7380   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7381 for as_dir in $PATH
7382 do
7383   IFS=$as_save_IFS
7384   test -z "$as_dir" && as_dir=.
7385   # Account for people who put trailing slashes in PATH elements.
7386 case $as_dir/ in
7387   ./ | .// | /cC/* | \
7388   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7389   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7390   /usr/ucb/* ) ;;
7391   *)
7392     # OSF1 and SCO ODT 3.0 have their own names for install.
7393     # Don't use installbsd from OSF since it installs stuff as root
7394     # by default.
7395     for ac_prog in ginstall scoinst install; do
7396       for ac_exec_ext in '' $ac_executable_extensions; do
7397         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7398           if test $ac_prog = install &&
7399             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7400             # AIX install.  It has an incompatible calling convention.
7401             :
7402           elif test $ac_prog = install &&
7403             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7404             # program-specific install script used by HP pwplus--don't use.
7405             :
7406           else
7407             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7408             break 3
7409           fi
7410         fi
7411       done
7412     done
7413     ;;
7414 esac
7415 done
7416 IFS=$as_save_IFS
7417
7418
7419 fi
7420   if test "${ac_cv_path_install+set}" = set; then
7421     INSTALL=$ac_cv_path_install
7422   else
7423     # As a last resort, use the slow shell script.  Don't cache a
7424     # value for INSTALL within a source directory, because that will
7425     # break other packages using the cache if that directory is
7426     # removed, or if the value is a relative name.
7427     INSTALL=$ac_install_sh
7428   fi
7429 fi
7430 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7431 echo "${ECHO_T}$INSTALL" >&6; }
7432
7433 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7434 # It thinks the first close brace ends the variable substitution.
7435 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7436
7437 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7438
7439 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7440
7441
7442 # Extract the first word of "bzip2", so it can be a program name with args.
7443 set dummy bzip2; ac_word=$2
7444 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7446 if test "${ac_cv_path_BZIP2+set}" = set; then
7447   echo $ECHO_N "(cached) $ECHO_C" >&6
7448 else
7449   case $BZIP2 in
7450   [\\/]* | ?:[\\/]*)
7451   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7452   ;;
7453   *)
7454   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7455 for as_dir in $PATH
7456 do
7457   IFS=$as_save_IFS
7458   test -z "$as_dir" && as_dir=.
7459   for ac_exec_ext in '' $ac_executable_extensions; do
7460   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7461     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7462     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7463     break 2
7464   fi
7465 done
7466 done
7467 IFS=$as_save_IFS
7468
7469   ;;
7470 esac
7471 fi
7472 BZIP2=$ac_cv_path_BZIP2
7473 if test -n "$BZIP2"; then
7474   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7475 echo "${ECHO_T}$BZIP2" >&6; }
7476 else
7477   { echo "$as_me:$LINENO: result: no" >&5
7478 echo "${ECHO_T}no" >&6; }
7479 fi
7480
7481
7482 # Extract the first word of "doxygen", so it can be a program name with args.
7483 set dummy doxygen; ac_word=$2
7484 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7486 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7487   echo $ECHO_N "(cached) $ECHO_C" >&6
7488 else
7489   case $DOXYGEN in
7490   [\\/]* | ?:[\\/]*)
7491   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7492   ;;
7493   *)
7494   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7495 for as_dir in $PATH
7496 do
7497   IFS=$as_save_IFS
7498   test -z "$as_dir" && as_dir=.
7499   for ac_exec_ext in '' $ac_executable_extensions; do
7500   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7501     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7502     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7503     break 2
7504   fi
7505 done
7506 done
7507 IFS=$as_save_IFS
7508
7509   ;;
7510 esac
7511 fi
7512 DOXYGEN=$ac_cv_path_DOXYGEN
7513 if test -n "$DOXYGEN"; then
7514   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7515 echo "${ECHO_T}$DOXYGEN" >&6; }
7516 else
7517   { echo "$as_me:$LINENO: result: no" >&5
7518 echo "${ECHO_T}no" >&6; }
7519 fi
7520
7521
7522 # Extract the first word of "groff", so it can be a program name with args.
7523 set dummy groff; ac_word=$2
7524 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7526 if test "${ac_cv_path_GROFF+set}" = set; then
7527   echo $ECHO_N "(cached) $ECHO_C" >&6
7528 else
7529   case $GROFF in
7530   [\\/]* | ?:[\\/]*)
7531   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7532   ;;
7533   *)
7534   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7535 for as_dir in $PATH
7536 do
7537   IFS=$as_save_IFS
7538   test -z "$as_dir" && as_dir=.
7539   for ac_exec_ext in '' $ac_executable_extensions; do
7540   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7541     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7542     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7543     break 2
7544   fi
7545 done
7546 done
7547 IFS=$as_save_IFS
7548
7549   ;;
7550 esac
7551 fi
7552 GROFF=$ac_cv_path_GROFF
7553 if test -n "$GROFF"; then
7554   { echo "$as_me:$LINENO: result: $GROFF" >&5
7555 echo "${ECHO_T}$GROFF" >&6; }
7556 else
7557   { echo "$as_me:$LINENO: result: no" >&5
7558 echo "${ECHO_T}no" >&6; }
7559 fi
7560
7561
7562 # Extract the first word of "gzip", so it can be a program name with args.
7563 set dummy gzip; ac_word=$2
7564 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7566 if test "${ac_cv_path_GZIP+set}" = set; then
7567   echo $ECHO_N "(cached) $ECHO_C" >&6
7568 else
7569   case $GZIP in
7570   [\\/]* | ?:[\\/]*)
7571   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7572   ;;
7573   *)
7574   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7575 for as_dir in $PATH
7576 do
7577   IFS=$as_save_IFS
7578   test -z "$as_dir" && as_dir=.
7579   for ac_exec_ext in '' $ac_executable_extensions; do
7580   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7581     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7582     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7583     break 2
7584   fi
7585 done
7586 done
7587 IFS=$as_save_IFS
7588
7589   ;;
7590 esac
7591 fi
7592 GZIP=$ac_cv_path_GZIP
7593 if test -n "$GZIP"; then
7594   { echo "$as_me:$LINENO: result: $GZIP" >&5
7595 echo "${ECHO_T}$GZIP" >&6; }
7596 else
7597   { echo "$as_me:$LINENO: result: no" >&5
7598 echo "${ECHO_T}no" >&6; }
7599 fi
7600
7601
7602 # Extract the first word of "pod2html", so it can be a program name with args.
7603 set dummy pod2html; ac_word=$2
7604 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7606 if test "${ac_cv_path_POD2HTML+set}" = set; then
7607   echo $ECHO_N "(cached) $ECHO_C" >&6
7608 else
7609   case $POD2HTML in
7610   [\\/]* | ?:[\\/]*)
7611   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7612   ;;
7613   *)
7614   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7615 for as_dir in $PATH
7616 do
7617   IFS=$as_save_IFS
7618   test -z "$as_dir" && as_dir=.
7619   for ac_exec_ext in '' $ac_executable_extensions; do
7620   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7621     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7622     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7623     break 2
7624   fi
7625 done
7626 done
7627 IFS=$as_save_IFS
7628
7629   ;;
7630 esac
7631 fi
7632 POD2HTML=$ac_cv_path_POD2HTML
7633 if test -n "$POD2HTML"; then
7634   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7635 echo "${ECHO_T}$POD2HTML" >&6; }
7636 else
7637   { echo "$as_me:$LINENO: result: no" >&5
7638 echo "${ECHO_T}no" >&6; }
7639 fi
7640
7641
7642 # Extract the first word of "pod2man", so it can be a program name with args.
7643 set dummy pod2man; ac_word=$2
7644 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7646 if test "${ac_cv_path_POD2MAN+set}" = set; then
7647   echo $ECHO_N "(cached) $ECHO_C" >&6
7648 else
7649   case $POD2MAN in
7650   [\\/]* | ?:[\\/]*)
7651   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7652   ;;
7653   *)
7654   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7655 for as_dir in $PATH
7656 do
7657   IFS=$as_save_IFS
7658   test -z "$as_dir" && as_dir=.
7659   for ac_exec_ext in '' $ac_executable_extensions; do
7660   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7661     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7662     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7663     break 2
7664   fi
7665 done
7666 done
7667 IFS=$as_save_IFS
7668
7669   ;;
7670 esac
7671 fi
7672 POD2MAN=$ac_cv_path_POD2MAN
7673 if test -n "$POD2MAN"; then
7674   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7675 echo "${ECHO_T}$POD2MAN" >&6; }
7676 else
7677   { echo "$as_me:$LINENO: result: no" >&5
7678 echo "${ECHO_T}no" >&6; }
7679 fi
7680
7681
7682 # Extract the first word of "runtest", so it can be a program name with args.
7683 set dummy runtest; ac_word=$2
7684 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7686 if test "${ac_cv_path_RUNTEST+set}" = set; then
7687   echo $ECHO_N "(cached) $ECHO_C" >&6
7688 else
7689   case $RUNTEST in
7690   [\\/]* | ?:[\\/]*)
7691   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7692   ;;
7693   *)
7694   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7695 for as_dir in $PATH
7696 do
7697   IFS=$as_save_IFS
7698   test -z "$as_dir" && as_dir=.
7699   for ac_exec_ext in '' $ac_executable_extensions; do
7700   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7701     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7702     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7703     break 2
7704   fi
7705 done
7706 done
7707 IFS=$as_save_IFS
7708
7709   ;;
7710 esac
7711 fi
7712 RUNTEST=$ac_cv_path_RUNTEST
7713 if test -n "$RUNTEST"; then
7714   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7715 echo "${ECHO_T}$RUNTEST" >&6; }
7716 else
7717   { echo "$as_me:$LINENO: result: no" >&5
7718 echo "${ECHO_T}no" >&6; }
7719 fi
7720
7721
7722
7723 no_itcl=true
7724 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7725 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7726
7727 # Check whether --with-tclinclude was given.
7728 if test "${with_tclinclude+set}" = set; then
7729   withval=$with_tclinclude; with_tclinclude=${withval}
7730 else
7731   with_tclinclude=''
7732 fi
7733
7734 if test "${ac_cv_path_tclsh+set}" = set; then
7735   echo $ECHO_N "(cached) $ECHO_C" >&6
7736 else
7737
7738 if test x"${with_tclinclude}" != x ; then
7739   if test -f ${with_tclinclude}/tclsh ; then
7740     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7741   elif test -f ${with_tclinclude}/src/tclsh ; then
7742     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7743   else
7744     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7745 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7746    { (exit 1); exit 1; }; }
7747   fi
7748 fi
7749
7750 if test x"${ac_cv_path_tclsh}" = x ; then
7751   { echo "$as_me:$LINENO: result: none" >&5
7752 echo "${ECHO_T}none" >&6; }
7753   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
7754 do
7755   # Extract the first word of "$ac_prog", so it can be a program name with args.
7756 set dummy $ac_prog; ac_word=$2
7757 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7758 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7759 if test "${ac_cv_path_TCLSH+set}" = set; then
7760   echo $ECHO_N "(cached) $ECHO_C" >&6
7761 else
7762   case $TCLSH in
7763   [\\/]* | ?:[\\/]*)
7764   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7765   ;;
7766   *)
7767   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7768 for as_dir in $PATH
7769 do
7770   IFS=$as_save_IFS
7771   test -z "$as_dir" && as_dir=.
7772   for ac_exec_ext in '' $ac_executable_extensions; do
7773   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7774     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7775     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7776     break 2
7777   fi
7778 done
7779 done
7780 IFS=$as_save_IFS
7781
7782   ;;
7783 esac
7784 fi
7785 TCLSH=$ac_cv_path_TCLSH
7786 if test -n "$TCLSH"; then
7787   { echo "$as_me:$LINENO: result: $TCLSH" >&5
7788 echo "${ECHO_T}$TCLSH" >&6; }
7789 else
7790   { echo "$as_me:$LINENO: result: no" >&5
7791 echo "${ECHO_T}no" >&6; }
7792 fi
7793
7794
7795   test -n "$TCLSH" && break
7796 done
7797
7798   if test x"${TCLSH}" = x ; then
7799     ac_cv_path_tclsh='';
7800   else
7801     ac_cv_path_tclsh="${TCLSH}";
7802   fi
7803 else
7804   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7805 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7806   TCLSH="${ac_cv_path_tclsh}"
7807
7808 fi
7809
7810 fi
7811
7812 # Extract the first word of "zip", so it can be a program name with args.
7813 set dummy zip; ac_word=$2
7814 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7816 if test "${ac_cv_path_ZIP+set}" = set; then
7817   echo $ECHO_N "(cached) $ECHO_C" >&6
7818 else
7819   case $ZIP in
7820   [\\/]* | ?:[\\/]*)
7821   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7822   ;;
7823   *)
7824   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7825 for as_dir in $PATH
7826 do
7827   IFS=$as_save_IFS
7828   test -z "$as_dir" && as_dir=.
7829   for ac_exec_ext in '' $ac_executable_extensions; do
7830   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7831     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7832     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7833     break 2
7834   fi
7835 done
7836 done
7837 IFS=$as_save_IFS
7838
7839   ;;
7840 esac
7841 fi
7842 ZIP=$ac_cv_path_ZIP
7843 if test -n "$ZIP"; then
7844   { echo "$as_me:$LINENO: result: $ZIP" >&5
7845 echo "${ECHO_T}$ZIP" >&6; }
7846 else
7847   { echo "$as_me:$LINENO: result: no" >&5
7848 echo "${ECHO_T}no" >&6; }
7849 fi
7850
7851
7852 for ac_prog in ocamlc
7853 do
7854   # Extract the first word of "$ac_prog", so it can be a program name with args.
7855 set dummy $ac_prog; ac_word=$2
7856 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7858 if test "${ac_cv_path_OCAMLC+set}" = set; then
7859   echo $ECHO_N "(cached) $ECHO_C" >&6
7860 else
7861   case $OCAMLC in
7862   [\\/]* | ?:[\\/]*)
7863   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7864   ;;
7865   *)
7866   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7867 for as_dir in $PATH
7868 do
7869   IFS=$as_save_IFS
7870   test -z "$as_dir" && as_dir=.
7871   for ac_exec_ext in '' $ac_executable_extensions; do
7872   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7873     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7874     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7875     break 2
7876   fi
7877 done
7878 done
7879 IFS=$as_save_IFS
7880
7881   ;;
7882 esac
7883 fi
7884 OCAMLC=$ac_cv_path_OCAMLC
7885 if test -n "$OCAMLC"; then
7886   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7887 echo "${ECHO_T}$OCAMLC" >&6; }
7888 else
7889   { echo "$as_me:$LINENO: result: no" >&5
7890 echo "${ECHO_T}no" >&6; }
7891 fi
7892
7893
7894   test -n "$OCAMLC" && break
7895 done
7896
7897 for ac_prog in ocamlopt
7898 do
7899   # Extract the first word of "$ac_prog", so it can be a program name with args.
7900 set dummy $ac_prog; ac_word=$2
7901 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7903 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7904   echo $ECHO_N "(cached) $ECHO_C" >&6
7905 else
7906   case $OCAMLOPT in
7907   [\\/]* | ?:[\\/]*)
7908   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7909   ;;
7910   *)
7911   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7912 for as_dir in $PATH
7913 do
7914   IFS=$as_save_IFS
7915   test -z "$as_dir" && as_dir=.
7916   for ac_exec_ext in '' $ac_executable_extensions; do
7917   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7918     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7919     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7920     break 2
7921   fi
7922 done
7923 done
7924 IFS=$as_save_IFS
7925
7926   ;;
7927 esac
7928 fi
7929 OCAMLOPT=$ac_cv_path_OCAMLOPT
7930 if test -n "$OCAMLOPT"; then
7931   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7932 echo "${ECHO_T}$OCAMLOPT" >&6; }
7933 else
7934   { echo "$as_me:$LINENO: result: no" >&5
7935 echo "${ECHO_T}no" >&6; }
7936 fi
7937
7938
7939   test -n "$OCAMLOPT" && break
7940 done
7941
7942 for ac_prog in ocamldep
7943 do
7944   # Extract the first word of "$ac_prog", so it can be a program name with args.
7945 set dummy $ac_prog; ac_word=$2
7946 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7948 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7949   echo $ECHO_N "(cached) $ECHO_C" >&6
7950 else
7951   case $OCAMLDEP in
7952   [\\/]* | ?:[\\/]*)
7953   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7954   ;;
7955   *)
7956   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7957 for as_dir in $PATH
7958 do
7959   IFS=$as_save_IFS
7960   test -z "$as_dir" && as_dir=.
7961   for ac_exec_ext in '' $ac_executable_extensions; do
7962   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7963     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7964     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7965     break 2
7966   fi
7967 done
7968 done
7969 IFS=$as_save_IFS
7970
7971   ;;
7972 esac
7973 fi
7974 OCAMLDEP=$ac_cv_path_OCAMLDEP
7975 if test -n "$OCAMLDEP"; then
7976   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7977 echo "${ECHO_T}$OCAMLDEP" >&6; }
7978 else
7979   { echo "$as_me:$LINENO: result: no" >&5
7980 echo "${ECHO_T}no" >&6; }
7981 fi
7982
7983
7984   test -n "$OCAMLDEP" && break
7985 done
7986
7987 for ac_prog in ocamldoc
7988 do
7989   # Extract the first word of "$ac_prog", so it can be a program name with args.
7990 set dummy $ac_prog; ac_word=$2
7991 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7993 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7994   echo $ECHO_N "(cached) $ECHO_C" >&6
7995 else
7996   case $OCAMLDOC in
7997   [\\/]* | ?:[\\/]*)
7998   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7999   ;;
8000   *)
8001   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8002 for as_dir in $PATH
8003 do
8004   IFS=$as_save_IFS
8005   test -z "$as_dir" && as_dir=.
8006   for ac_exec_ext in '' $ac_executable_extensions; do
8007   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8008     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8009     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8010     break 2
8011   fi
8012 done
8013 done
8014 IFS=$as_save_IFS
8015
8016   ;;
8017 esac
8018 fi
8019 OCAMLDOC=$ac_cv_path_OCAMLDOC
8020 if test -n "$OCAMLDOC"; then
8021   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8022 echo "${ECHO_T}$OCAMLDOC" >&6; }
8023 else
8024   { echo "$as_me:$LINENO: result: no" >&5
8025 echo "${ECHO_T}no" >&6; }
8026 fi
8027
8028
8029   test -n "$OCAMLDOC" && break
8030 done
8031
8032 for ac_prog in gas as
8033 do
8034   # Extract the first word of "$ac_prog", so it can be a program name with args.
8035 set dummy $ac_prog; ac_word=$2
8036 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8038 if test "${ac_cv_path_GAS+set}" = set; then
8039   echo $ECHO_N "(cached) $ECHO_C" >&6
8040 else
8041   case $GAS in
8042   [\\/]* | ?:[\\/]*)
8043   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8044   ;;
8045   *)
8046   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8047 for as_dir in $PATH
8048 do
8049   IFS=$as_save_IFS
8050   test -z "$as_dir" && as_dir=.
8051   for ac_exec_ext in '' $ac_executable_extensions; do
8052   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8053     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8054     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8055     break 2
8056   fi
8057 done
8058 done
8059 IFS=$as_save_IFS
8060
8061   ;;
8062 esac
8063 fi
8064 GAS=$ac_cv_path_GAS
8065 if test -n "$GAS"; then
8066   { echo "$as_me:$LINENO: result: $GAS" >&5
8067 echo "${ECHO_T}$GAS" >&6; }
8068 else
8069   { echo "$as_me:$LINENO: result: no" >&5
8070 echo "${ECHO_T}no" >&6; }
8071 fi
8072
8073
8074   test -n "$GAS" && break
8075 done
8076
8077
8078 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8079 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8080 if test "${llvm_cv_link_use_r+set}" = set; then
8081   echo $ECHO_N "(cached) $ECHO_C" >&6
8082 else
8083    ac_ext=c
8084 ac_cpp='$CPP $CPPFLAGS'
8085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8088
8089   oldcflags="$CFLAGS"
8090   CFLAGS="$CFLAGS -Wl,-R."
8091   cat >conftest.$ac_ext <<_ACEOF
8092 /* confdefs.h.  */
8093 _ACEOF
8094 cat confdefs.h >>conftest.$ac_ext
8095 cat >>conftest.$ac_ext <<_ACEOF
8096 /* end confdefs.h.  */
8097
8098 int
8099 main ()
8100 {
8101 int main() { return 0; }
8102   ;
8103   return 0;
8104 }
8105 _ACEOF
8106 rm -f conftest.$ac_objext conftest$ac_exeext
8107 if { (ac_try="$ac_link"
8108 case "(($ac_try" in
8109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8110   *) ac_try_echo=$ac_try;;
8111 esac
8112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8113   (eval "$ac_link") 2>conftest.er1
8114   ac_status=$?
8115   grep -v '^ *+' conftest.er1 >conftest.err
8116   rm -f conftest.er1
8117   cat conftest.err >&5
8118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119   (exit $ac_status); } &&
8120          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8121   { (case "(($ac_try" in
8122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8123   *) ac_try_echo=$ac_try;;
8124 esac
8125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8126   (eval "$ac_try") 2>&5
8127   ac_status=$?
8128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8129   (exit $ac_status); }; } &&
8130          { ac_try='test -s conftest$ac_exeext'
8131   { (case "(($ac_try" in
8132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8133   *) ac_try_echo=$ac_try;;
8134 esac
8135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8136   (eval "$ac_try") 2>&5
8137   ac_status=$?
8138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139   (exit $ac_status); }; }; then
8140   llvm_cv_link_use_r=yes
8141 else
8142   echo "$as_me: failed program was:" >&5
8143 sed 's/^/| /' conftest.$ac_ext >&5
8144
8145         llvm_cv_link_use_r=no
8146 fi
8147
8148 rm -f core conftest.err conftest.$ac_objext \
8149       conftest$ac_exeext conftest.$ac_ext
8150   CFLAGS="$oldcflags"
8151   ac_ext=c
8152 ac_cpp='$CPP $CPPFLAGS'
8153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8156
8157
8158 fi
8159 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8160 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8161 if test "$llvm_cv_link_use_r" = yes ; then
8162
8163 cat >>confdefs.h <<\_ACEOF
8164 #define HAVE_LINK_R 1
8165 _ACEOF
8166
8167   fi
8168
8169
8170 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8171 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8172 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8173   echo $ECHO_N "(cached) $ECHO_C" >&6
8174 else
8175    ac_ext=c
8176 ac_cpp='$CPP $CPPFLAGS'
8177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8180
8181   oldcflags="$CFLAGS"
8182   CFLAGS="$CFLAGS -Wl,-export-dynamic"
8183   cat >conftest.$ac_ext <<_ACEOF
8184 /* confdefs.h.  */
8185 _ACEOF
8186 cat confdefs.h >>conftest.$ac_ext
8187 cat >>conftest.$ac_ext <<_ACEOF
8188 /* end confdefs.h.  */
8189
8190 int
8191 main ()
8192 {
8193 int main() { return 0; }
8194   ;
8195   return 0;
8196 }
8197 _ACEOF
8198 rm -f conftest.$ac_objext conftest$ac_exeext
8199 if { (ac_try="$ac_link"
8200 case "(($ac_try" in
8201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8202   *) ac_try_echo=$ac_try;;
8203 esac
8204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8205   (eval "$ac_link") 2>conftest.er1
8206   ac_status=$?
8207   grep -v '^ *+' conftest.er1 >conftest.err
8208   rm -f conftest.er1
8209   cat conftest.err >&5
8210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8211   (exit $ac_status); } &&
8212          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8213   { (case "(($ac_try" in
8214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8215   *) ac_try_echo=$ac_try;;
8216 esac
8217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8218   (eval "$ac_try") 2>&5
8219   ac_status=$?
8220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8221   (exit $ac_status); }; } &&
8222          { ac_try='test -s conftest$ac_exeext'
8223   { (case "(($ac_try" in
8224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8225   *) ac_try_echo=$ac_try;;
8226 esac
8227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8228   (eval "$ac_try") 2>&5
8229   ac_status=$?
8230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8231   (exit $ac_status); }; }; then
8232   llvm_cv_link_use_export_dynamic=yes
8233 else
8234   echo "$as_me: failed program was:" >&5
8235 sed 's/^/| /' conftest.$ac_ext >&5
8236
8237         llvm_cv_link_use_export_dynamic=no
8238 fi
8239
8240 rm -f core conftest.err conftest.$ac_objext \
8241       conftest$ac_exeext conftest.$ac_ext
8242   CFLAGS="$oldcflags"
8243   ac_ext=c
8244 ac_cpp='$CPP $CPPFLAGS'
8245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8248
8249
8250 fi
8251 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8252 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8253 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8254
8255 cat >>confdefs.h <<\_ACEOF
8256 #define HAVE_LINK_EXPORT_DYNAMIC 1
8257 _ACEOF
8258
8259   fi
8260
8261
8262
8263
8264 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8265 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8266 if test "${ac_cv_c_const+set}" = set; then
8267   echo $ECHO_N "(cached) $ECHO_C" >&6
8268 else
8269   cat >conftest.$ac_ext <<_ACEOF
8270 /* confdefs.h.  */
8271 _ACEOF
8272 cat confdefs.h >>conftest.$ac_ext
8273 cat >>conftest.$ac_ext <<_ACEOF
8274 /* end confdefs.h.  */
8275
8276 int
8277 main ()
8278 {
8279 /* FIXME: Include the comments suggested by Paul. */
8280 #ifndef __cplusplus
8281   /* Ultrix mips cc rejects this.  */
8282   typedef int charset[2];
8283   const charset x;
8284   /* SunOS 4.1.1 cc rejects this.  */
8285   char const *const *ccp;
8286   char **p;
8287   /* NEC SVR4.0.2 mips cc rejects this.  */
8288   struct point {int x, y;};
8289   static struct point const zero = {0,0};
8290   /* AIX XL C 1.02.0.0 rejects this.
8291      It does not let you subtract one const X* pointer from another in
8292      an arm of an if-expression whose if-part is not a constant
8293      expression */
8294   const char *g = "string";
8295   ccp = &g + (g ? g-g : 0);
8296   /* HPUX 7.0 cc rejects these. */
8297   ++ccp;
8298   p = (char**) ccp;
8299   ccp = (char const *const *) p;
8300   { /* SCO 3.2v4 cc rejects this.  */
8301     char *t;
8302     char const *s = 0 ? (char *) 0 : (char const *) 0;
8303
8304     *t++ = 0;
8305     if (s) return 0;
8306   }
8307   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8308     int x[] = {25, 17};
8309     const int *foo = &x[0];
8310     ++foo;
8311   }
8312   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8313     typedef const int *iptr;
8314     iptr p = 0;
8315     ++p;
8316   }
8317   { /* AIX XL C 1.02.0.0 rejects this saying
8318        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8319     struct s { int j; const int *ap[3]; };
8320     struct s *b; b->j = 5;
8321   }
8322   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8323     const int foo = 10;
8324     if (!foo) return 0;
8325   }
8326   return !x[0] && !zero.x;
8327 #endif
8328
8329   ;
8330   return 0;
8331 }
8332 _ACEOF
8333 rm -f conftest.$ac_objext
8334 if { (ac_try="$ac_compile"
8335 case "(($ac_try" in
8336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8337   *) ac_try_echo=$ac_try;;
8338 esac
8339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8340   (eval "$ac_compile") 2>conftest.er1
8341   ac_status=$?
8342   grep -v '^ *+' conftest.er1 >conftest.err
8343   rm -f conftest.er1
8344   cat conftest.err >&5
8345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8346   (exit $ac_status); } &&
8347          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8348   { (case "(($ac_try" in
8349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8350   *) ac_try_echo=$ac_try;;
8351 esac
8352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8353   (eval "$ac_try") 2>&5
8354   ac_status=$?
8355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8356   (exit $ac_status); }; } &&
8357          { ac_try='test -s conftest.$ac_objext'
8358   { (case "(($ac_try" in
8359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8360   *) ac_try_echo=$ac_try;;
8361 esac
8362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8363   (eval "$ac_try") 2>&5
8364   ac_status=$?
8365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8366   (exit $ac_status); }; }; then
8367   ac_cv_c_const=yes
8368 else
8369   echo "$as_me: failed program was:" >&5
8370 sed 's/^/| /' conftest.$ac_ext >&5
8371
8372         ac_cv_c_const=no
8373 fi
8374
8375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8376 fi
8377 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8378 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8379 if test $ac_cv_c_const = no; then
8380
8381 cat >>confdefs.h <<\_ACEOF
8382 #define const
8383 _ACEOF
8384
8385 fi
8386
8387
8388
8389
8390
8391
8392 ac_header_dirent=no
8393 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8394   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8395 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8396 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8397 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8398   echo $ECHO_N "(cached) $ECHO_C" >&6
8399 else
8400   cat >conftest.$ac_ext <<_ACEOF
8401 /* confdefs.h.  */
8402 _ACEOF
8403 cat confdefs.h >>conftest.$ac_ext
8404 cat >>conftest.$ac_ext <<_ACEOF
8405 /* end confdefs.h.  */
8406 #include <sys/types.h>
8407 #include <$ac_hdr>
8408
8409 int
8410 main ()
8411 {
8412 if ((DIR *) 0)
8413 return 0;
8414   ;
8415   return 0;
8416 }
8417 _ACEOF
8418 rm -f conftest.$ac_objext
8419 if { (ac_try="$ac_compile"
8420 case "(($ac_try" in
8421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8422   *) ac_try_echo=$ac_try;;
8423 esac
8424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8425   (eval "$ac_compile") 2>conftest.er1
8426   ac_status=$?
8427   grep -v '^ *+' conftest.er1 >conftest.err
8428   rm -f conftest.er1
8429   cat conftest.err >&5
8430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8431   (exit $ac_status); } &&
8432          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8433   { (case "(($ac_try" in
8434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8435   *) ac_try_echo=$ac_try;;
8436 esac
8437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8438   (eval "$ac_try") 2>&5
8439   ac_status=$?
8440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8441   (exit $ac_status); }; } &&
8442          { ac_try='test -s conftest.$ac_objext'
8443   { (case "(($ac_try" in
8444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8445   *) ac_try_echo=$ac_try;;
8446 esac
8447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8448   (eval "$ac_try") 2>&5
8449   ac_status=$?
8450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451   (exit $ac_status); }; }; then
8452   eval "$as_ac_Header=yes"
8453 else
8454   echo "$as_me: failed program was:" >&5
8455 sed 's/^/| /' conftest.$ac_ext >&5
8456
8457         eval "$as_ac_Header=no"
8458 fi
8459
8460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8461 fi
8462 ac_res=`eval echo '${'$as_ac_Header'}'`
8463                { echo "$as_me:$LINENO: result: $ac_res" >&5
8464 echo "${ECHO_T}$ac_res" >&6; }
8465 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8466   cat >>confdefs.h <<_ACEOF
8467 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8468 _ACEOF
8469
8470 ac_header_dirent=$ac_hdr; break
8471 fi
8472
8473 done
8474 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8475 if test $ac_header_dirent = dirent.h; then
8476   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8477 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8478 if test "${ac_cv_search_opendir+set}" = set; then
8479   echo $ECHO_N "(cached) $ECHO_C" >&6
8480 else
8481   ac_func_search_save_LIBS=$LIBS
8482 cat >conftest.$ac_ext <<_ACEOF
8483 /* confdefs.h.  */
8484 _ACEOF
8485 cat confdefs.h >>conftest.$ac_ext
8486 cat >>conftest.$ac_ext <<_ACEOF
8487 /* end confdefs.h.  */
8488
8489 /* Override any GCC internal prototype to avoid an error.
8490    Use char because int might match the return type of a GCC
8491    builtin and then its argument prototype would still apply.  */
8492 #ifdef __cplusplus
8493 extern "C"
8494 #endif
8495 char opendir ();
8496 int
8497 main ()
8498 {
8499 return opendir ();
8500   ;
8501   return 0;
8502 }
8503 _ACEOF
8504 for ac_lib in '' dir; do
8505   if test -z "$ac_lib"; then
8506     ac_res="none required"
8507   else
8508     ac_res=-l$ac_lib
8509     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8510   fi
8511   rm -f conftest.$ac_objext conftest$ac_exeext
8512 if { (ac_try="$ac_link"
8513 case "(($ac_try" in
8514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8515   *) ac_try_echo=$ac_try;;
8516 esac
8517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8518   (eval "$ac_link") 2>conftest.er1
8519   ac_status=$?
8520   grep -v '^ *+' conftest.er1 >conftest.err
8521   rm -f conftest.er1
8522   cat conftest.err >&5
8523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524   (exit $ac_status); } &&
8525          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8526   { (case "(($ac_try" in
8527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8528   *) ac_try_echo=$ac_try;;
8529 esac
8530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8531   (eval "$ac_try") 2>&5
8532   ac_status=$?
8533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534   (exit $ac_status); }; } &&
8535          { ac_try='test -s conftest$ac_exeext'
8536   { (case "(($ac_try" in
8537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8538   *) ac_try_echo=$ac_try;;
8539 esac
8540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8541   (eval "$ac_try") 2>&5
8542   ac_status=$?
8543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544   (exit $ac_status); }; }; then
8545   ac_cv_search_opendir=$ac_res
8546 else
8547   echo "$as_me: failed program was:" >&5
8548 sed 's/^/| /' conftest.$ac_ext >&5
8549
8550
8551 fi
8552
8553 rm -f core conftest.err conftest.$ac_objext \
8554       conftest$ac_exeext
8555   if test "${ac_cv_search_opendir+set}" = set; then
8556   break
8557 fi
8558 done
8559 if test "${ac_cv_search_opendir+set}" = set; then
8560   :
8561 else
8562   ac_cv_search_opendir=no
8563 fi
8564 rm conftest.$ac_ext
8565 LIBS=$ac_func_search_save_LIBS
8566 fi
8567 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8568 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8569 ac_res=$ac_cv_search_opendir
8570 if test "$ac_res" != no; then
8571   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8572
8573 fi
8574
8575 else
8576   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8577 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8578 if test "${ac_cv_search_opendir+set}" = set; then
8579   echo $ECHO_N "(cached) $ECHO_C" >&6
8580 else
8581   ac_func_search_save_LIBS=$LIBS
8582 cat >conftest.$ac_ext <<_ACEOF
8583 /* confdefs.h.  */
8584 _ACEOF
8585 cat confdefs.h >>conftest.$ac_ext
8586 cat >>conftest.$ac_ext <<_ACEOF
8587 /* end confdefs.h.  */
8588
8589 /* Override any GCC internal prototype to avoid an error.
8590    Use char because int might match the return type of a GCC
8591    builtin and then its argument prototype would still apply.  */
8592 #ifdef __cplusplus
8593 extern "C"
8594 #endif
8595 char opendir ();
8596 int
8597 main ()
8598 {
8599 return opendir ();
8600   ;
8601   return 0;
8602 }
8603 _ACEOF
8604 for ac_lib in '' x; do
8605   if test -z "$ac_lib"; then
8606     ac_res="none required"
8607   else
8608     ac_res=-l$ac_lib
8609     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8610   fi
8611   rm -f conftest.$ac_objext conftest$ac_exeext
8612 if { (ac_try="$ac_link"
8613 case "(($ac_try" in
8614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8615   *) ac_try_echo=$ac_try;;
8616 esac
8617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8618   (eval "$ac_link") 2>conftest.er1
8619   ac_status=$?
8620   grep -v '^ *+' conftest.er1 >conftest.err
8621   rm -f conftest.er1
8622   cat conftest.err >&5
8623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624   (exit $ac_status); } &&
8625          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8626   { (case "(($ac_try" in
8627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8628   *) ac_try_echo=$ac_try;;
8629 esac
8630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8631   (eval "$ac_try") 2>&5
8632   ac_status=$?
8633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8634   (exit $ac_status); }; } &&
8635          { ac_try='test -s conftest$ac_exeext'
8636   { (case "(($ac_try" in
8637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8638   *) ac_try_echo=$ac_try;;
8639 esac
8640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8641   (eval "$ac_try") 2>&5
8642   ac_status=$?
8643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8644   (exit $ac_status); }; }; then
8645   ac_cv_search_opendir=$ac_res
8646 else
8647   echo "$as_me: failed program was:" >&5
8648 sed 's/^/| /' conftest.$ac_ext >&5
8649
8650
8651 fi
8652
8653 rm -f core conftest.err conftest.$ac_objext \
8654       conftest$ac_exeext
8655   if test "${ac_cv_search_opendir+set}" = set; then
8656   break
8657 fi
8658 done
8659 if test "${ac_cv_search_opendir+set}" = set; then
8660   :
8661 else
8662   ac_cv_search_opendir=no
8663 fi
8664 rm conftest.$ac_ext
8665 LIBS=$ac_func_search_save_LIBS
8666 fi
8667 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8668 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8669 ac_res=$ac_cv_search_opendir
8670 if test "$ac_res" != no; then
8671   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8672
8673 fi
8674
8675 fi
8676
8677
8678 for ac_header in dlfcn.h
8679 do
8680 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8681 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8682   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8683 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8684 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8685   echo $ECHO_N "(cached) $ECHO_C" >&6
8686 fi
8687 ac_res=`eval echo '${'$as_ac_Header'}'`
8688                { echo "$as_me:$LINENO: result: $ac_res" >&5
8689 echo "${ECHO_T}$ac_res" >&6; }
8690 else
8691   # Is the header compilable?
8692 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8693 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8694 cat >conftest.$ac_ext <<_ACEOF
8695 /* confdefs.h.  */
8696 _ACEOF
8697 cat confdefs.h >>conftest.$ac_ext
8698 cat >>conftest.$ac_ext <<_ACEOF
8699 /* end confdefs.h.  */
8700 $ac_includes_default
8701 #include <$ac_header>
8702 _ACEOF
8703 rm -f conftest.$ac_objext
8704 if { (ac_try="$ac_compile"
8705 case "(($ac_try" in
8706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8707   *) ac_try_echo=$ac_try;;
8708 esac
8709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8710   (eval "$ac_compile") 2>conftest.er1
8711   ac_status=$?
8712   grep -v '^ *+' conftest.er1 >conftest.err
8713   rm -f conftest.er1
8714   cat conftest.err >&5
8715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716   (exit $ac_status); } &&
8717          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8718   { (case "(($ac_try" in
8719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8720   *) ac_try_echo=$ac_try;;
8721 esac
8722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8723   (eval "$ac_try") 2>&5
8724   ac_status=$?
8725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726   (exit $ac_status); }; } &&
8727          { ac_try='test -s conftest.$ac_objext'
8728   { (case "(($ac_try" in
8729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8730   *) ac_try_echo=$ac_try;;
8731 esac
8732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8733   (eval "$ac_try") 2>&5
8734   ac_status=$?
8735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8736   (exit $ac_status); }; }; then
8737   ac_header_compiler=yes
8738 else
8739   echo "$as_me: failed program was:" >&5
8740 sed 's/^/| /' conftest.$ac_ext >&5
8741
8742         ac_header_compiler=no
8743 fi
8744
8745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8746 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8747 echo "${ECHO_T}$ac_header_compiler" >&6; }
8748
8749 # Is the header present?
8750 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8751 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8752 cat >conftest.$ac_ext <<_ACEOF
8753 /* confdefs.h.  */
8754 _ACEOF
8755 cat confdefs.h >>conftest.$ac_ext
8756 cat >>conftest.$ac_ext <<_ACEOF
8757 /* end confdefs.h.  */
8758 #include <$ac_header>
8759 _ACEOF
8760 if { (ac_try="$ac_cpp conftest.$ac_ext"
8761 case "(($ac_try" in
8762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8763   *) ac_try_echo=$ac_try;;
8764 esac
8765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8766   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8767   ac_status=$?
8768   grep -v '^ *+' conftest.er1 >conftest.err
8769   rm -f conftest.er1
8770   cat conftest.err >&5
8771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8772   (exit $ac_status); } >/dev/null; then
8773   if test -s conftest.err; then
8774     ac_cpp_err=$ac_c_preproc_warn_flag
8775     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8776   else
8777     ac_cpp_err=
8778   fi
8779 else
8780   ac_cpp_err=yes
8781 fi
8782 if test -z "$ac_cpp_err"; then
8783   ac_header_preproc=yes
8784 else
8785   echo "$as_me: failed program was:" >&5
8786 sed 's/^/| /' conftest.$ac_ext >&5
8787
8788   ac_header_preproc=no
8789 fi
8790
8791 rm -f conftest.err conftest.$ac_ext
8792 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8793 echo "${ECHO_T}$ac_header_preproc" >&6; }
8794
8795 # So?  What about this header?
8796 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8797   yes:no: )
8798     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8799 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8800     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8801 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8802     ac_header_preproc=yes
8803     ;;
8804   no:yes:* )
8805     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8806 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8807     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8808 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8809     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8810 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8811     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8812 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8813     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8814 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8815     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8816 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8817     ( cat <<\_ASBOX
8818 ## ----------------------------------- ##
8819 ## Report this to llvmbugs@cs.uiuc.edu ##
8820 ## ----------------------------------- ##
8821 _ASBOX
8822      ) | sed "s/^/$as_me: WARNING:     /" >&2
8823     ;;
8824 esac
8825 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8826 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8827 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8828   echo $ECHO_N "(cached) $ECHO_C" >&6
8829 else
8830   eval "$as_ac_Header=\$ac_header_preproc"
8831 fi
8832 ac_res=`eval echo '${'$as_ac_Header'}'`
8833                { echo "$as_me:$LINENO: result: $ac_res" >&5
8834 echo "${ECHO_T}$ac_res" >&6; }
8835
8836 fi
8837 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8838   cat >>confdefs.h <<_ACEOF
8839 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8840 _ACEOF
8841
8842 fi
8843
8844 done
8845
8846 # Check whether --enable-ltdl-install was given.
8847 if test "${enable_ltdl_install+set}" = set; then
8848   enableval=$enable_ltdl_install;
8849 fi
8850
8851
8852
8853
8854 if test x"${enable_ltdl_install-no}" != xno; then
8855   INSTALL_LTDL_TRUE=
8856   INSTALL_LTDL_FALSE='#'
8857 else
8858   INSTALL_LTDL_TRUE='#'
8859   INSTALL_LTDL_FALSE=
8860 fi
8861
8862
8863
8864 if test x"${enable_ltdl_convenience-no}" != xno; then
8865   CONVENIENCE_LTDL_TRUE=
8866   CONVENIENCE_LTDL_FALSE='#'
8867 else
8868   CONVENIENCE_LTDL_TRUE='#'
8869   CONVENIENCE_LTDL_FALSE=
8870 fi
8871
8872
8873 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8874 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8875 library_names_spec=
8876 libname_spec='lib$name'
8877 soname_spec=
8878 shrext_cmds=".so"
8879 postinstall_cmds=
8880 postuninstall_cmds=
8881 finish_cmds=
8882 finish_eval=
8883 shlibpath_var=
8884 shlibpath_overrides_runpath=unknown
8885 version_type=none
8886 dynamic_linker="$host_os ld.so"
8887 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8888 if test "$GCC" = yes; then
8889   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8890   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8891     # if the path contains ";" then we assume it to be the separator
8892     # otherwise default to the standard path separator (i.e. ":") - it is
8893     # assumed that no part of a normal pathname contains ";" but that should
8894     # okay in the real world where ";" in dirpaths is itself problematic.
8895     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8896   else
8897     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8898   fi
8899 else
8900   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8901 fi
8902 need_lib_prefix=unknown
8903 hardcode_into_libs=no
8904
8905 # when you set need_version to no, make sure it does not cause -set_version
8906 # flags to be left without arguments
8907 need_version=unknown
8908
8909 case $host_os in
8910 aix3*)
8911   version_type=linux
8912   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8913   shlibpath_var=LIBPATH
8914
8915   # AIX 3 has no versioning support, so we append a major version to the name.
8916   soname_spec='${libname}${release}${shared_ext}$major'
8917   ;;
8918
8919 aix4* | aix5*)
8920   version_type=linux
8921   need_lib_prefix=no
8922   need_version=no
8923   hardcode_into_libs=yes
8924   if test "$host_cpu" = ia64; then
8925     # AIX 5 supports IA64
8926     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8927     shlibpath_var=LD_LIBRARY_PATH
8928   else
8929     # With GCC up to 2.95.x, collect2 would create an import file
8930     # for dependence libraries.  The import file would start with
8931     # the line `#! .'.  This would cause the generated library to
8932     # depend on `.', always an invalid library.  This was fixed in
8933     # development snapshots of GCC prior to 3.0.
8934     case $host_os in
8935       aix4 | aix4.[01] | aix4.[01].*)
8936       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8937            echo ' yes '
8938            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8939         :
8940       else
8941         can_build_shared=no
8942       fi
8943       ;;
8944     esac
8945     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8946     # soname into executable. Probably we can add versioning support to
8947     # collect2, so additional links can be useful in future.
8948     if test "$aix_use_runtimelinking" = yes; then
8949       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8950       # instead of lib<name>.a to let people know that these are not
8951       # typical AIX shared libraries.
8952       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8953     else
8954       # We preserve .a as extension for shared libraries through AIX4.2
8955       # and later when we are not doing run time linking.
8956       library_names_spec='${libname}${release}.a $libname.a'
8957       soname_spec='${libname}${release}${shared_ext}$major'
8958     fi
8959     shlibpath_var=LIBPATH
8960   fi
8961   ;;
8962
8963 amigaos*)
8964   library_names_spec='$libname.ixlibrary $libname.a'
8965   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8966   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'
8967   ;;
8968
8969 beos*)
8970   library_names_spec='${libname}${shared_ext}'
8971   dynamic_linker="$host_os ld.so"
8972   shlibpath_var=LIBRARY_PATH
8973   ;;
8974
8975 bsdi[45]*)
8976   version_type=linux
8977   need_version=no
8978   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8979   soname_spec='${libname}${release}${shared_ext}$major'
8980   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8981   shlibpath_var=LD_LIBRARY_PATH
8982   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8983   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8984   # the default ld.so.conf also contains /usr/contrib/lib and
8985   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8986   # libtool to hard-code these into programs
8987   ;;
8988
8989 cygwin* | mingw* | pw32*)
8990   version_type=windows
8991   shrext_cmds=".dll"
8992   need_version=no
8993   need_lib_prefix=no
8994
8995   case $GCC,$host_os in
8996   yes,cygwin* | yes,mingw* | yes,pw32*)
8997     library_names_spec='$libname.dll.a'
8998     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8999     postinstall_cmds='base_file=`basename \${file}`~
9000       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9001       dldir=$destdir/`dirname \$dlpath`~
9002       test -d \$dldir || mkdir -p \$dldir~
9003       $install_prog $dir/$dlname \$dldir/$dlname~
9004       chmod a+x \$dldir/$dlname'
9005     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9006       dlpath=$dir/\$dldll~
9007        $rm \$dlpath'
9008     shlibpath_overrides_runpath=yes
9009
9010     case $host_os in
9011     cygwin*)
9012       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9013       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9014       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9015       ;;
9016     mingw*)
9017       # MinGW DLLs use traditional 'lib' prefix
9018       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9019       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9020       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9021         # It is most probably a Windows format PATH printed by
9022         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9023         # path with ; separators, and with drive letters. We can handle the
9024         # drive letters (cygwin fileutils understands them), so leave them,
9025         # especially as we might pass files found there to a mingw objdump,
9026         # which wouldn't understand a cygwinified path. Ahh.
9027         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9028       else
9029         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9030       fi
9031       ;;
9032     pw32*)
9033       # pw32 DLLs use 'pw' prefix rather than 'lib'
9034       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9035       ;;
9036     esac
9037     ;;
9038
9039   *)
9040     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9041     ;;
9042   esac
9043   dynamic_linker='Win32 ld.exe'
9044   # FIXME: first we should search . and the directory the executable is in
9045   shlibpath_var=PATH
9046   ;;
9047
9048 darwin* | rhapsody*)
9049   dynamic_linker="$host_os dyld"
9050   version_type=darwin
9051   need_lib_prefix=no
9052   need_version=no
9053   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9054   soname_spec='${libname}${release}${major}$shared_ext'
9055   shlibpath_overrides_runpath=yes
9056   shlibpath_var=DYLD_LIBRARY_PATH
9057   shrext_cmds='.dylib'
9058   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9059   if test "$GCC" = yes; then
9060     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"`
9061   else
9062     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9063   fi
9064   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9065   ;;
9066
9067 dgux*)
9068   version_type=linux
9069   need_lib_prefix=no
9070   need_version=no
9071   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9072   soname_spec='${libname}${release}${shared_ext}$major'
9073   shlibpath_var=LD_LIBRARY_PATH
9074   ;;
9075
9076 freebsd1*)
9077   dynamic_linker=no
9078   ;;
9079
9080 kfreebsd*-gnu)
9081   version_type=linux
9082   need_lib_prefix=no
9083   need_version=no
9084   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9085   soname_spec='${libname}${release}${shared_ext}$major'
9086   shlibpath_var=LD_LIBRARY_PATH
9087   shlibpath_overrides_runpath=no
9088   hardcode_into_libs=yes
9089   dynamic_linker='GNU ld.so'
9090   ;;
9091
9092 freebsd* | dragonfly*)
9093   # DragonFly does not have aout.  When/if they implement a new
9094   # versioning mechanism, adjust this.
9095   if test -x /usr/bin/objformat; then
9096     objformat=`/usr/bin/objformat`
9097   else
9098     case $host_os in
9099     freebsd[123]*) objformat=aout ;;
9100     *) objformat=elf ;;
9101     esac
9102   fi
9103   version_type=freebsd-$objformat
9104   case $version_type in
9105     freebsd-elf*)
9106       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9107       need_version=no
9108       need_lib_prefix=no
9109       ;;
9110     freebsd-*)
9111       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9112       need_version=yes
9113       ;;
9114   esac
9115   shlibpath_var=LD_LIBRARY_PATH
9116   case $host_os in
9117   freebsd2*)
9118     shlibpath_overrides_runpath=yes
9119     ;;
9120   freebsd3.[01]* | freebsdelf3.[01]*)
9121     shlibpath_overrides_runpath=yes
9122     hardcode_into_libs=yes
9123     ;;
9124   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9125   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9126     shlibpath_overrides_runpath=no
9127     hardcode_into_libs=yes
9128     ;;
9129   freebsd*) # from 4.6 on
9130     shlibpath_overrides_runpath=yes
9131     hardcode_into_libs=yes
9132     ;;
9133   esac
9134   ;;
9135
9136 gnu*)
9137   version_type=linux
9138   need_lib_prefix=no
9139   need_version=no
9140   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9141   soname_spec='${libname}${release}${shared_ext}$major'
9142   shlibpath_var=LD_LIBRARY_PATH
9143   hardcode_into_libs=yes
9144   ;;
9145
9146 hpux9* | hpux10* | hpux11*)
9147   # Give a soname corresponding to the major version so that dld.sl refuses to
9148   # link against other versions.
9149   version_type=sunos
9150   need_lib_prefix=no
9151   need_version=no
9152   case $host_cpu in
9153   ia64*)
9154     shrext_cmds='.so'
9155     hardcode_into_libs=yes
9156     dynamic_linker="$host_os dld.so"
9157     shlibpath_var=LD_LIBRARY_PATH
9158     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9159     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9160     soname_spec='${libname}${release}${shared_ext}$major'
9161     if test "X$HPUX_IA64_MODE" = X32; then
9162       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9163     else
9164       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9165     fi
9166     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9167     ;;
9168    hppa*64*)
9169      shrext_cmds='.sl'
9170      hardcode_into_libs=yes
9171      dynamic_linker="$host_os dld.sl"
9172      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9173      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9174      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9175      soname_spec='${libname}${release}${shared_ext}$major'
9176      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9177      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9178      ;;
9179    *)
9180     shrext_cmds='.sl'
9181     dynamic_linker="$host_os dld.sl"
9182     shlibpath_var=SHLIB_PATH
9183     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9184     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9185     soname_spec='${libname}${release}${shared_ext}$major'
9186     ;;
9187   esac
9188   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9189   postinstall_cmds='chmod 555 $lib'
9190   ;;
9191
9192 interix3*)
9193   version_type=linux
9194   need_lib_prefix=no
9195   need_version=no
9196   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9197   soname_spec='${libname}${release}${shared_ext}$major'
9198   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9199   shlibpath_var=LD_LIBRARY_PATH
9200   shlibpath_overrides_runpath=no
9201   hardcode_into_libs=yes
9202   ;;
9203
9204 irix5* | irix6* | nonstopux*)
9205   case $host_os in
9206     nonstopux*) version_type=nonstopux ;;
9207     *)
9208         if test "$lt_cv_prog_gnu_ld" = yes; then
9209                 version_type=linux
9210         else
9211                 version_type=irix
9212         fi ;;
9213   esac
9214   need_lib_prefix=no
9215   need_version=no
9216   soname_spec='${libname}${release}${shared_ext}$major'
9217   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9218   case $host_os in
9219   irix5* | nonstopux*)
9220     libsuff= shlibsuff=
9221     ;;
9222   *)
9223     case $LD in # libtool.m4 will add one of these switches to LD
9224     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9225       libsuff= shlibsuff= libmagic=32-bit;;
9226     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9227       libsuff=32 shlibsuff=N32 libmagic=N32;;
9228     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9229       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9230     *) libsuff= shlibsuff= libmagic=never-match;;
9231     esac
9232     ;;
9233   esac
9234   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9235   shlibpath_overrides_runpath=no
9236   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9237   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9238   hardcode_into_libs=yes
9239   ;;
9240
9241 # No shared lib support for Linux oldld, aout, or coff.
9242 linux*oldld* | linux*aout* | linux*coff*)
9243   dynamic_linker=no
9244   ;;
9245
9246 # This must be Linux ELF.
9247 linux*)
9248   version_type=linux
9249   need_lib_prefix=no
9250   need_version=no
9251   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9252   soname_spec='${libname}${release}${shared_ext}$major'
9253   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9254   shlibpath_var=LD_LIBRARY_PATH
9255   shlibpath_overrides_runpath=no
9256   # This implies no fast_install, which is unacceptable.
9257   # Some rework will be needed to allow for fast_install
9258   # before this can be enabled.
9259   hardcode_into_libs=yes
9260
9261   # Append ld.so.conf contents to the search path
9262   if test -f /etc/ld.so.conf; then
9263     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' ' '`
9264     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9265   fi
9266
9267   # We used to test for /lib/ld.so.1 and disable shared libraries on
9268   # powerpc, because MkLinux only supported shared libraries with the
9269   # GNU dynamic linker.  Since this was broken with cross compilers,
9270   # most powerpc-linux boxes support dynamic linking these days and
9271   # people can always --disable-shared, the test was removed, and we
9272   # assume the GNU/Linux dynamic linker is in use.
9273   dynamic_linker='GNU/Linux ld.so'
9274   ;;
9275
9276 knetbsd*-gnu)
9277   version_type=linux
9278   need_lib_prefix=no
9279   need_version=no
9280   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9281   soname_spec='${libname}${release}${shared_ext}$major'
9282   shlibpath_var=LD_LIBRARY_PATH
9283   shlibpath_overrides_runpath=no
9284   hardcode_into_libs=yes
9285   dynamic_linker='GNU ld.so'
9286   ;;
9287
9288 netbsd*)
9289   version_type=sunos
9290   need_lib_prefix=no
9291   need_version=no
9292   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9293     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9294     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9295     dynamic_linker='NetBSD (a.out) ld.so'
9296   else
9297     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9298     soname_spec='${libname}${release}${shared_ext}$major'
9299     dynamic_linker='NetBSD ld.elf_so'
9300   fi
9301   shlibpath_var=LD_LIBRARY_PATH
9302   shlibpath_overrides_runpath=yes
9303   hardcode_into_libs=yes
9304   ;;
9305
9306 newsos6)
9307   version_type=linux
9308   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9309   shlibpath_var=LD_LIBRARY_PATH
9310   shlibpath_overrides_runpath=yes
9311   ;;
9312
9313 nto-qnx*)
9314   version_type=linux
9315   need_lib_prefix=no
9316   need_version=no
9317   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9318   soname_spec='${libname}${release}${shared_ext}$major'
9319   shlibpath_var=LD_LIBRARY_PATH
9320   shlibpath_overrides_runpath=yes
9321   ;;
9322
9323 openbsd*)
9324   version_type=sunos
9325   sys_lib_dlsearch_path_spec="/usr/lib"
9326   need_lib_prefix=no
9327   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9328   case $host_os in
9329     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9330     *)                         need_version=no  ;;
9331   esac
9332   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9333   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9334   shlibpath_var=LD_LIBRARY_PATH
9335   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9336     case $host_os in
9337       openbsd2.[89] | openbsd2.[89].*)
9338         shlibpath_overrides_runpath=no
9339         ;;
9340       *)
9341         shlibpath_overrides_runpath=yes
9342         ;;
9343       esac
9344   else
9345     shlibpath_overrides_runpath=yes
9346   fi
9347   ;;
9348
9349 os2*)
9350   libname_spec='$name'
9351   shrext_cmds=".dll"
9352   need_lib_prefix=no
9353   library_names_spec='$libname${shared_ext} $libname.a'
9354   dynamic_linker='OS/2 ld.exe'
9355   shlibpath_var=LIBPATH
9356   ;;
9357
9358 osf3* | osf4* | osf5*)
9359   version_type=osf
9360   need_lib_prefix=no
9361   need_version=no
9362   soname_spec='${libname}${release}${shared_ext}$major'
9363   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9364   shlibpath_var=LD_LIBRARY_PATH
9365   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9366   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9367   ;;
9368
9369 solaris*)
9370   version_type=linux
9371   need_lib_prefix=no
9372   need_version=no
9373   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9374   soname_spec='${libname}${release}${shared_ext}$major'
9375   shlibpath_var=LD_LIBRARY_PATH
9376   shlibpath_overrides_runpath=yes
9377   hardcode_into_libs=yes
9378   # ldd complains unless libraries are executable
9379   postinstall_cmds='chmod +x $lib'
9380   ;;
9381
9382 sunos4*)
9383   version_type=sunos
9384   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9385   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9386   shlibpath_var=LD_LIBRARY_PATH
9387   shlibpath_overrides_runpath=yes
9388   if test "$with_gnu_ld" = yes; then
9389     need_lib_prefix=no
9390   fi
9391   need_version=yes
9392   ;;
9393
9394 sysv4 | sysv4.3*)
9395   version_type=linux
9396   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9397   soname_spec='${libname}${release}${shared_ext}$major'
9398   shlibpath_var=LD_LIBRARY_PATH
9399   case $host_vendor in
9400     sni)
9401       shlibpath_overrides_runpath=no
9402       need_lib_prefix=no
9403       export_dynamic_flag_spec='${wl}-Blargedynsym'
9404       runpath_var=LD_RUN_PATH
9405       ;;
9406     siemens)
9407       need_lib_prefix=no
9408       ;;
9409     motorola)
9410       need_lib_prefix=no
9411       need_version=no
9412       shlibpath_overrides_runpath=no
9413       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9414       ;;
9415   esac
9416   ;;
9417
9418 sysv4*MP*)
9419   if test -d /usr/nec ;then
9420     version_type=linux
9421     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9422     soname_spec='$libname${shared_ext}.$major'
9423     shlibpath_var=LD_LIBRARY_PATH
9424   fi
9425   ;;
9426
9427 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9428   version_type=freebsd-elf
9429   need_lib_prefix=no
9430   need_version=no
9431   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9432   soname_spec='${libname}${release}${shared_ext}$major'
9433   shlibpath_var=LD_LIBRARY_PATH
9434   hardcode_into_libs=yes
9435   if test "$with_gnu_ld" = yes; then
9436     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9437     shlibpath_overrides_runpath=no
9438   else
9439     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9440     shlibpath_overrides_runpath=yes
9441     case $host_os in
9442       sco3.2v5*)
9443         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9444         ;;
9445     esac
9446   fi
9447   sys_lib_dlsearch_path_spec='/usr/lib'
9448   ;;
9449
9450 uts4*)
9451   version_type=linux
9452   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9453   soname_spec='${libname}${release}${shared_ext}$major'
9454   shlibpath_var=LD_LIBRARY_PATH
9455   ;;
9456
9457 *)
9458   dynamic_linker=no
9459   ;;
9460 esac
9461 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9462 echo "${ECHO_T}$dynamic_linker" >&6; }
9463 test "$dynamic_linker" = no && can_build_shared=no
9464
9465 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9466 if test "$GCC" = yes; then
9467   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9468 fi
9469
9470
9471 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9472 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9473 if test "${libltdl_cv_shlibext+set}" = set; then
9474   echo $ECHO_N "(cached) $ECHO_C" >&6
9475 else
9476
9477 module=yes
9478 eval libltdl_cv_shlibext=$shrext_cmds
9479
9480 fi
9481 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9482 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9483 if test -n "$libltdl_cv_shlibext"; then
9484
9485 cat >>confdefs.h <<_ACEOF
9486 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9487 _ACEOF
9488
9489 fi
9490
9491
9492 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9493 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9494 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9495   echo $ECHO_N "(cached) $ECHO_C" >&6
9496 else
9497   libltdl_cv_shlibpath_var="$shlibpath_var"
9498 fi
9499 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9500 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9501 if test -n "$libltdl_cv_shlibpath_var"; then
9502
9503 cat >>confdefs.h <<_ACEOF
9504 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9505 _ACEOF
9506
9507 fi
9508
9509
9510 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9511 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9512 if test "${libltdl_cv_sys_search_path+set}" = set; then
9513   echo $ECHO_N "(cached) $ECHO_C" >&6
9514 else
9515   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9516 fi
9517 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9518 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9519 if test -n "$libltdl_cv_sys_search_path"; then
9520   sys_search_path=
9521   for dir in $libltdl_cv_sys_search_path; do
9522     if test -z "$sys_search_path"; then
9523       sys_search_path="$dir"
9524     else
9525       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9526     fi
9527   done
9528
9529 cat >>confdefs.h <<_ACEOF
9530 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9531 _ACEOF
9532
9533 fi
9534
9535 { echo "$as_me:$LINENO: checking for objdir" >&5
9536 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9537 if test "${libltdl_cv_objdir+set}" = set; then
9538   echo $ECHO_N "(cached) $ECHO_C" >&6
9539 else
9540   libltdl_cv_objdir="$objdir"
9541   if test -n "$objdir"; then
9542     :
9543   else
9544     rm -f .libs 2>/dev/null
9545     mkdir .libs 2>/dev/null
9546     if test -d .libs; then
9547       libltdl_cv_objdir=.libs
9548     else
9549       # MS-DOS does not allow filenames that begin with a dot.
9550       libltdl_cv_objdir=_libs
9551     fi
9552   rmdir .libs 2>/dev/null
9553   fi
9554
9555 fi
9556 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9557 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9558
9559 cat >>confdefs.h <<_ACEOF
9560 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9561 _ACEOF
9562
9563
9564
9565
9566
9567
9568 # Check for command to grab the raw symbol name followed by C symbol from nm.
9569 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9570 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9571 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9572   echo $ECHO_N "(cached) $ECHO_C" >&6
9573 else
9574
9575 # These are sane defaults that work on at least a few old systems.
9576 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9577
9578 # Character class describing NM global symbol codes.
9579 symcode='[BCDEGRST]'
9580
9581 # Regexp to match symbols that can be accessed directly from C.
9582 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9583
9584 # Transform an extracted symbol line into a proper C declaration
9585 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9586
9587 # Transform an extracted symbol line into symbol name and symbol address
9588 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'"
9589
9590 # Define system-specific variables.
9591 case $host_os in
9592 aix*)
9593   symcode='[BCDT]'
9594   ;;
9595 cygwin* | mingw* | pw32*)
9596   symcode='[ABCDGISTW]'
9597   ;;
9598 hpux*) # Its linker distinguishes data from code symbols
9599   if test "$host_cpu" = ia64; then
9600     symcode='[ABCDEGRST]'
9601   fi
9602   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9603   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'"
9604   ;;
9605 linux*)
9606   if test "$host_cpu" = ia64; then
9607     symcode='[ABCDGIRSTW]'
9608     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9609     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'"
9610   fi
9611   ;;
9612 irix* | nonstopux*)
9613   symcode='[BCDEGRST]'
9614   ;;
9615 osf*)
9616   symcode='[BCDEGQRST]'
9617   ;;
9618 solaris*)
9619   symcode='[BDRT]'
9620   ;;
9621 sco3.2v5*)
9622   symcode='[DT]'
9623   ;;
9624 sysv4.2uw2*)
9625   symcode='[DT]'
9626   ;;
9627 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9628   symcode='[ABDT]'
9629   ;;
9630 sysv4)
9631   symcode='[DFNSTU]'
9632   ;;
9633 esac
9634
9635 # Handle CRLF in mingw tool chain
9636 opt_cr=
9637 case $build_os in
9638 mingw*)
9639   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9640   ;;
9641 esac
9642
9643 # If we're using GNU nm, then use its standard symbol codes.
9644 case `$NM -V 2>&1` in
9645 *GNU* | *'with BFD'*)
9646   symcode='[ABCDGIRSTW]' ;;
9647 esac
9648
9649 # Try without a prefix undercore, then with it.
9650 for ac_symprfx in "" "_"; do
9651
9652   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9653   symxfrm="\\1 $ac_symprfx\\2 \\2"
9654
9655   # Write the raw and C identifiers.
9656   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9657
9658   # Check to see that the pipe works correctly.
9659   pipe_works=no
9660
9661   rm -f conftest*
9662   cat > conftest.$ac_ext <<EOF
9663 #ifdef __cplusplus
9664 extern "C" {
9665 #endif
9666 char nm_test_var;
9667 void nm_test_func(){}
9668 #ifdef __cplusplus
9669 }
9670 #endif
9671 int main(){nm_test_var='a';nm_test_func();return(0);}
9672 EOF
9673
9674   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9675   (eval $ac_compile) 2>&5
9676   ac_status=$?
9677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9678   (exit $ac_status); }; then
9679     # Now try to grab the symbols.
9680     nlist=conftest.nm
9681     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9682   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9683   ac_status=$?
9684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685   (exit $ac_status); } && test -s "$nlist"; then
9686       # Try sorting and uniquifying the output.
9687       if sort "$nlist" | uniq > "$nlist"T; then
9688         mv -f "$nlist"T "$nlist"
9689       else
9690         rm -f "$nlist"T
9691       fi
9692
9693       # Make sure that we snagged all the symbols we need.
9694       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9695         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9696           cat <<EOF > conftest.$ac_ext
9697 #ifdef __cplusplus
9698 extern "C" {
9699 #endif
9700
9701 EOF
9702           # Now generate the symbol file.
9703           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9704
9705           cat <<EOF >> conftest.$ac_ext
9706 #if defined (__STDC__) && __STDC__
9707 # define lt_ptr_t void *
9708 #else
9709 # define lt_ptr_t char *
9710 # define const
9711 #endif
9712
9713 /* The mapping between symbol names and symbols. */
9714 const struct {
9715   const char *name;
9716   lt_ptr_t address;
9717 }
9718 lt_preloaded_symbols[] =
9719 {
9720 EOF
9721           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9722           cat <<\EOF >> conftest.$ac_ext
9723   {0, (lt_ptr_t) 0}
9724 };
9725
9726 #ifdef __cplusplus
9727 }
9728 #endif
9729 EOF
9730           # Now try linking the two files.
9731           mv conftest.$ac_objext conftstm.$ac_objext
9732           lt_save_LIBS="$LIBS"
9733           lt_save_CFLAGS="$CFLAGS"
9734           LIBS="conftstm.$ac_objext"
9735           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9736           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9737   (eval $ac_link) 2>&5
9738   ac_status=$?
9739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9740   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9741             pipe_works=yes
9742           fi
9743           LIBS="$lt_save_LIBS"
9744           CFLAGS="$lt_save_CFLAGS"
9745         else
9746           echo "cannot find nm_test_func in $nlist" >&5
9747         fi
9748       else
9749         echo "cannot find nm_test_var in $nlist" >&5
9750       fi
9751     else
9752       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9753     fi
9754   else
9755     echo "$progname: failed program was:" >&5
9756     cat conftest.$ac_ext >&5
9757   fi
9758   rm -f conftest* conftst*
9759
9760   # Do not use the global_symbol_pipe unless it works.
9761   if test "$pipe_works" = yes; then
9762     break
9763   else
9764     lt_cv_sys_global_symbol_pipe=
9765   fi
9766 done
9767
9768 fi
9769
9770 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9771   lt_cv_sys_global_symbol_to_cdecl=
9772 fi
9773 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9774   { echo "$as_me:$LINENO: result: failed" >&5
9775 echo "${ECHO_T}failed" >&6; }
9776 else
9777   { echo "$as_me:$LINENO: result: ok" >&5
9778 echo "${ECHO_T}ok" >&6; }
9779 fi
9780
9781
9782 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9783 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9784 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9785   echo $ECHO_N "(cached) $ECHO_C" >&6
9786 else
9787   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9788     libltdl_cv_preloaded_symbols=yes
9789   else
9790     libltdl_cv_preloaded_symbols=no
9791   fi
9792
9793 fi
9794 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9795 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9796 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9797
9798 cat >>confdefs.h <<\_ACEOF
9799 #define HAVE_PRELOADED_SYMBOLS 1
9800 _ACEOF
9801
9802 fi
9803
9804 LIBADD_DL=
9805
9806 ac_ext=c
9807 ac_cpp='$CPP $CPPFLAGS'
9808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9811
9812
9813 { echo "$as_me:$LINENO: checking for shl_load" >&5
9814 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9815 if test "${ac_cv_func_shl_load+set}" = set; then
9816   echo $ECHO_N "(cached) $ECHO_C" >&6
9817 else
9818   cat >conftest.$ac_ext <<_ACEOF
9819 /* confdefs.h.  */
9820 _ACEOF
9821 cat confdefs.h >>conftest.$ac_ext
9822 cat >>conftest.$ac_ext <<_ACEOF
9823 /* end confdefs.h.  */
9824 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9825    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9826 #define shl_load innocuous_shl_load
9827
9828 /* System header to define __stub macros and hopefully few prototypes,
9829     which can conflict with char shl_load (); below.
9830     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9831     <limits.h> exists even on freestanding compilers.  */
9832
9833 #ifdef __STDC__
9834 # include <limits.h>
9835 #else
9836 # include <assert.h>
9837 #endif
9838
9839 #undef shl_load
9840
9841 /* Override any GCC internal prototype to avoid an error.
9842    Use char because int might match the return type of a GCC
9843    builtin and then its argument prototype would still apply.  */
9844 #ifdef __cplusplus
9845 extern "C"
9846 #endif
9847 char shl_load ();
9848 /* The GNU C library defines this for functions which it implements
9849     to always fail with ENOSYS.  Some functions are actually named
9850     something starting with __ and the normal name is an alias.  */
9851 #if defined __stub_shl_load || defined __stub___shl_load
9852 choke me
9853 #endif
9854
9855 int
9856 main ()
9857 {
9858 return shl_load ();
9859   ;
9860   return 0;
9861 }
9862 _ACEOF
9863 rm -f conftest.$ac_objext conftest$ac_exeext
9864 if { (ac_try="$ac_link"
9865 case "(($ac_try" in
9866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9867   *) ac_try_echo=$ac_try;;
9868 esac
9869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9870   (eval "$ac_link") 2>conftest.er1
9871   ac_status=$?
9872   grep -v '^ *+' conftest.er1 >conftest.err
9873   rm -f conftest.er1
9874   cat conftest.err >&5
9875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876   (exit $ac_status); } &&
9877          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9878   { (case "(($ac_try" in
9879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9880   *) ac_try_echo=$ac_try;;
9881 esac
9882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9883   (eval "$ac_try") 2>&5
9884   ac_status=$?
9885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9886   (exit $ac_status); }; } &&
9887          { ac_try='test -s conftest$ac_exeext'
9888   { (case "(($ac_try" in
9889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9890   *) ac_try_echo=$ac_try;;
9891 esac
9892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9893   (eval "$ac_try") 2>&5
9894   ac_status=$?
9895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9896   (exit $ac_status); }; }; then
9897   ac_cv_func_shl_load=yes
9898 else
9899   echo "$as_me: failed program was:" >&5
9900 sed 's/^/| /' conftest.$ac_ext >&5
9901
9902         ac_cv_func_shl_load=no
9903 fi
9904
9905 rm -f core conftest.err conftest.$ac_objext \
9906       conftest$ac_exeext conftest.$ac_ext
9907 fi
9908 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9909 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9910 if test $ac_cv_func_shl_load = yes; then
9911
9912 cat >>confdefs.h <<\_ACEOF
9913 #define HAVE_SHL_LOAD 1
9914 _ACEOF
9915
9916 else
9917   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9918 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9919 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9920   echo $ECHO_N "(cached) $ECHO_C" >&6
9921 else
9922   ac_check_lib_save_LIBS=$LIBS
9923 LIBS="-ldld  $LIBS"
9924 cat >conftest.$ac_ext <<_ACEOF
9925 /* confdefs.h.  */
9926 _ACEOF
9927 cat confdefs.h >>conftest.$ac_ext
9928 cat >>conftest.$ac_ext <<_ACEOF
9929 /* end confdefs.h.  */
9930
9931 /* Override any GCC internal prototype to avoid an error.
9932    Use char because int might match the return type of a GCC
9933    builtin and then its argument prototype would still apply.  */
9934 #ifdef __cplusplus
9935 extern "C"
9936 #endif
9937 char shl_load ();
9938 int
9939 main ()
9940 {
9941 return shl_load ();
9942   ;
9943   return 0;
9944 }
9945 _ACEOF
9946 rm -f conftest.$ac_objext conftest$ac_exeext
9947 if { (ac_try="$ac_link"
9948 case "(($ac_try" in
9949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9950   *) ac_try_echo=$ac_try;;
9951 esac
9952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9953   (eval "$ac_link") 2>conftest.er1
9954   ac_status=$?
9955   grep -v '^ *+' conftest.er1 >conftest.err
9956   rm -f conftest.er1
9957   cat conftest.err >&5
9958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9959   (exit $ac_status); } &&
9960          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9961   { (case "(($ac_try" in
9962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9963   *) ac_try_echo=$ac_try;;
9964 esac
9965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9966   (eval "$ac_try") 2>&5
9967   ac_status=$?
9968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9969   (exit $ac_status); }; } &&
9970          { ac_try='test -s conftest$ac_exeext'
9971   { (case "(($ac_try" in
9972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9973   *) ac_try_echo=$ac_try;;
9974 esac
9975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9976   (eval "$ac_try") 2>&5
9977   ac_status=$?
9978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979   (exit $ac_status); }; }; then
9980   ac_cv_lib_dld_shl_load=yes
9981 else
9982   echo "$as_me: failed program was:" >&5
9983 sed 's/^/| /' conftest.$ac_ext >&5
9984
9985         ac_cv_lib_dld_shl_load=no
9986 fi
9987
9988 rm -f core conftest.err conftest.$ac_objext \
9989       conftest$ac_exeext conftest.$ac_ext
9990 LIBS=$ac_check_lib_save_LIBS
9991 fi
9992 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9993 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9994 if test $ac_cv_lib_dld_shl_load = yes; then
9995
9996 cat >>confdefs.h <<\_ACEOF
9997 #define HAVE_SHL_LOAD 1
9998 _ACEOF
9999
10000         LIBADD_DL="$LIBADD_DL -ldld"
10001 else
10002   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10003 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10004 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10005   echo $ECHO_N "(cached) $ECHO_C" >&6
10006 else
10007   ac_check_lib_save_LIBS=$LIBS
10008 LIBS="-ldl  $LIBS"
10009 cat >conftest.$ac_ext <<_ACEOF
10010 /* confdefs.h.  */
10011 _ACEOF
10012 cat confdefs.h >>conftest.$ac_ext
10013 cat >>conftest.$ac_ext <<_ACEOF
10014 /* end confdefs.h.  */
10015
10016 /* Override any GCC internal prototype to avoid an error.
10017    Use char because int might match the return type of a GCC
10018    builtin and then its argument prototype would still apply.  */
10019 #ifdef __cplusplus
10020 extern "C"
10021 #endif
10022 char dlopen ();
10023 int
10024 main ()
10025 {
10026 return dlopen ();
10027   ;
10028   return 0;
10029 }
10030 _ACEOF
10031 rm -f conftest.$ac_objext conftest$ac_exeext
10032 if { (ac_try="$ac_link"
10033 case "(($ac_try" in
10034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10035   *) ac_try_echo=$ac_try;;
10036 esac
10037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10038   (eval "$ac_link") 2>conftest.er1
10039   ac_status=$?
10040   grep -v '^ *+' conftest.er1 >conftest.err
10041   rm -f conftest.er1
10042   cat conftest.err >&5
10043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044   (exit $ac_status); } &&
10045          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10046   { (case "(($ac_try" in
10047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10048   *) ac_try_echo=$ac_try;;
10049 esac
10050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10051   (eval "$ac_try") 2>&5
10052   ac_status=$?
10053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10054   (exit $ac_status); }; } &&
10055          { ac_try='test -s conftest$ac_exeext'
10056   { (case "(($ac_try" in
10057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10058   *) ac_try_echo=$ac_try;;
10059 esac
10060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10061   (eval "$ac_try") 2>&5
10062   ac_status=$?
10063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10064   (exit $ac_status); }; }; then
10065   ac_cv_lib_dl_dlopen=yes
10066 else
10067   echo "$as_me: failed program was:" >&5
10068 sed 's/^/| /' conftest.$ac_ext >&5
10069
10070         ac_cv_lib_dl_dlopen=no
10071 fi
10072
10073 rm -f core conftest.err conftest.$ac_objext \
10074       conftest$ac_exeext conftest.$ac_ext
10075 LIBS=$ac_check_lib_save_LIBS
10076 fi
10077 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10078 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10079 if test $ac_cv_lib_dl_dlopen = yes; then
10080
10081 cat >>confdefs.h <<\_ACEOF
10082 #define HAVE_LIBDL 1
10083 _ACEOF
10084
10085                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10086 else
10087   cat >conftest.$ac_ext <<_ACEOF
10088 /* confdefs.h.  */
10089 _ACEOF
10090 cat confdefs.h >>conftest.$ac_ext
10091 cat >>conftest.$ac_ext <<_ACEOF
10092 /* end confdefs.h.  */
10093 #if HAVE_DLFCN_H
10094 #  include <dlfcn.h>
10095 #endif
10096
10097 int
10098 main ()
10099 {
10100 dlopen(0, 0);
10101   ;
10102   return 0;
10103 }
10104 _ACEOF
10105 rm -f conftest.$ac_objext conftest$ac_exeext
10106 if { (ac_try="$ac_link"
10107 case "(($ac_try" in
10108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10109   *) ac_try_echo=$ac_try;;
10110 esac
10111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10112   (eval "$ac_link") 2>conftest.er1
10113   ac_status=$?
10114   grep -v '^ *+' conftest.er1 >conftest.err
10115   rm -f conftest.er1
10116   cat conftest.err >&5
10117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10118   (exit $ac_status); } &&
10119          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10120   { (case "(($ac_try" in
10121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10122   *) ac_try_echo=$ac_try;;
10123 esac
10124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10125   (eval "$ac_try") 2>&5
10126   ac_status=$?
10127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128   (exit $ac_status); }; } &&
10129          { ac_try='test -s conftest$ac_exeext'
10130   { (case "(($ac_try" in
10131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10132   *) ac_try_echo=$ac_try;;
10133 esac
10134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10135   (eval "$ac_try") 2>&5
10136   ac_status=$?
10137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10138   (exit $ac_status); }; }; then
10139
10140 cat >>confdefs.h <<\_ACEOF
10141 #define HAVE_LIBDL 1
10142 _ACEOF
10143  libltdl_cv_func_dlopen="yes"
10144 else
10145   echo "$as_me: failed program was:" >&5
10146 sed 's/^/| /' conftest.$ac_ext >&5
10147
10148         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10149 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10150 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10151   echo $ECHO_N "(cached) $ECHO_C" >&6
10152 else
10153   ac_check_lib_save_LIBS=$LIBS
10154 LIBS="-lsvld  $LIBS"
10155 cat >conftest.$ac_ext <<_ACEOF
10156 /* confdefs.h.  */
10157 _ACEOF
10158 cat confdefs.h >>conftest.$ac_ext
10159 cat >>conftest.$ac_ext <<_ACEOF
10160 /* end confdefs.h.  */
10161
10162 /* Override any GCC internal prototype to avoid an error.
10163    Use char because int might match the return type of a GCC
10164    builtin and then its argument prototype would still apply.  */
10165 #ifdef __cplusplus
10166 extern "C"
10167 #endif
10168 char dlopen ();
10169 int
10170 main ()
10171 {
10172 return dlopen ();
10173   ;
10174   return 0;
10175 }
10176 _ACEOF
10177 rm -f conftest.$ac_objext conftest$ac_exeext
10178 if { (ac_try="$ac_link"
10179 case "(($ac_try" in
10180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10181   *) ac_try_echo=$ac_try;;
10182 esac
10183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10184   (eval "$ac_link") 2>conftest.er1
10185   ac_status=$?
10186   grep -v '^ *+' conftest.er1 >conftest.err
10187   rm -f conftest.er1
10188   cat conftest.err >&5
10189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10190   (exit $ac_status); } &&
10191          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10192   { (case "(($ac_try" in
10193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10194   *) ac_try_echo=$ac_try;;
10195 esac
10196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10197   (eval "$ac_try") 2>&5
10198   ac_status=$?
10199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200   (exit $ac_status); }; } &&
10201          { ac_try='test -s conftest$ac_exeext'
10202   { (case "(($ac_try" in
10203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10204   *) ac_try_echo=$ac_try;;
10205 esac
10206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10207   (eval "$ac_try") 2>&5
10208   ac_status=$?
10209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10210   (exit $ac_status); }; }; then
10211   ac_cv_lib_svld_dlopen=yes
10212 else
10213   echo "$as_me: failed program was:" >&5
10214 sed 's/^/| /' conftest.$ac_ext >&5
10215
10216         ac_cv_lib_svld_dlopen=no
10217 fi
10218
10219 rm -f core conftest.err conftest.$ac_objext \
10220       conftest$ac_exeext conftest.$ac_ext
10221 LIBS=$ac_check_lib_save_LIBS
10222 fi
10223 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10224 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10225 if test $ac_cv_lib_svld_dlopen = yes; then
10226
10227 cat >>confdefs.h <<\_ACEOF
10228 #define HAVE_LIBDL 1
10229 _ACEOF
10230
10231                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10232 else
10233   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10234 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10235 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10236   echo $ECHO_N "(cached) $ECHO_C" >&6
10237 else
10238   ac_check_lib_save_LIBS=$LIBS
10239 LIBS="-ldld  $LIBS"
10240 cat >conftest.$ac_ext <<_ACEOF
10241 /* confdefs.h.  */
10242 _ACEOF
10243 cat confdefs.h >>conftest.$ac_ext
10244 cat >>conftest.$ac_ext <<_ACEOF
10245 /* end confdefs.h.  */
10246
10247 /* Override any GCC internal prototype to avoid an error.
10248    Use char because int might match the return type of a GCC
10249    builtin and then its argument prototype would still apply.  */
10250 #ifdef __cplusplus
10251 extern "C"
10252 #endif
10253 char dld_link ();
10254 int
10255 main ()
10256 {
10257 return dld_link ();
10258   ;
10259   return 0;
10260 }
10261 _ACEOF
10262 rm -f conftest.$ac_objext conftest$ac_exeext
10263 if { (ac_try="$ac_link"
10264 case "(($ac_try" in
10265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10266   *) ac_try_echo=$ac_try;;
10267 esac
10268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10269   (eval "$ac_link") 2>conftest.er1
10270   ac_status=$?
10271   grep -v '^ *+' conftest.er1 >conftest.err
10272   rm -f conftest.er1
10273   cat conftest.err >&5
10274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275   (exit $ac_status); } &&
10276          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10277   { (case "(($ac_try" in
10278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10279   *) ac_try_echo=$ac_try;;
10280 esac
10281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10282   (eval "$ac_try") 2>&5
10283   ac_status=$?
10284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10285   (exit $ac_status); }; } &&
10286          { ac_try='test -s conftest$ac_exeext'
10287   { (case "(($ac_try" in
10288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10289   *) ac_try_echo=$ac_try;;
10290 esac
10291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10292   (eval "$ac_try") 2>&5
10293   ac_status=$?
10294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10295   (exit $ac_status); }; }; then
10296   ac_cv_lib_dld_dld_link=yes
10297 else
10298   echo "$as_me: failed program was:" >&5
10299 sed 's/^/| /' conftest.$ac_ext >&5
10300
10301         ac_cv_lib_dld_dld_link=no
10302 fi
10303
10304 rm -f core conftest.err conftest.$ac_objext \
10305       conftest$ac_exeext conftest.$ac_ext
10306 LIBS=$ac_check_lib_save_LIBS
10307 fi
10308 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10309 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10310 if test $ac_cv_lib_dld_dld_link = yes; then
10311
10312 cat >>confdefs.h <<\_ACEOF
10313 #define HAVE_DLD 1
10314 _ACEOF
10315
10316                 LIBADD_DL="$LIBADD_DL -ldld"
10317 else
10318   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10319 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10320 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10321   echo $ECHO_N "(cached) $ECHO_C" >&6
10322 else
10323   cat >conftest.$ac_ext <<_ACEOF
10324 /* confdefs.h.  */
10325 _ACEOF
10326 cat confdefs.h >>conftest.$ac_ext
10327 cat >>conftest.$ac_ext <<_ACEOF
10328 /* end confdefs.h.  */
10329 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10330    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10331 #define _dyld_func_lookup innocuous__dyld_func_lookup
10332
10333 /* System header to define __stub macros and hopefully few prototypes,
10334     which can conflict with char _dyld_func_lookup (); below.
10335     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10336     <limits.h> exists even on freestanding compilers.  */
10337
10338 #ifdef __STDC__
10339 # include <limits.h>
10340 #else
10341 # include <assert.h>
10342 #endif
10343
10344 #undef _dyld_func_lookup
10345
10346 /* Override any GCC internal prototype to avoid an error.
10347    Use char because int might match the return type of a GCC
10348    builtin and then its argument prototype would still apply.  */
10349 #ifdef __cplusplus
10350 extern "C"
10351 #endif
10352 char _dyld_func_lookup ();
10353 /* The GNU C library defines this for functions which it implements
10354     to always fail with ENOSYS.  Some functions are actually named
10355     something starting with __ and the normal name is an alias.  */
10356 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10357 choke me
10358 #endif
10359
10360 int
10361 main ()
10362 {
10363 return _dyld_func_lookup ();
10364   ;
10365   return 0;
10366 }
10367 _ACEOF
10368 rm -f conftest.$ac_objext conftest$ac_exeext
10369 if { (ac_try="$ac_link"
10370 case "(($ac_try" in
10371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10372   *) ac_try_echo=$ac_try;;
10373 esac
10374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10375   (eval "$ac_link") 2>conftest.er1
10376   ac_status=$?
10377   grep -v '^ *+' conftest.er1 >conftest.err
10378   rm -f conftest.er1
10379   cat conftest.err >&5
10380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10381   (exit $ac_status); } &&
10382          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10383   { (case "(($ac_try" in
10384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10385   *) ac_try_echo=$ac_try;;
10386 esac
10387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10388   (eval "$ac_try") 2>&5
10389   ac_status=$?
10390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10391   (exit $ac_status); }; } &&
10392          { ac_try='test -s conftest$ac_exeext'
10393   { (case "(($ac_try" in
10394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10395   *) ac_try_echo=$ac_try;;
10396 esac
10397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10398   (eval "$ac_try") 2>&5
10399   ac_status=$?
10400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10401   (exit $ac_status); }; }; then
10402   ac_cv_func__dyld_func_lookup=yes
10403 else
10404   echo "$as_me: failed program was:" >&5
10405 sed 's/^/| /' conftest.$ac_ext >&5
10406
10407         ac_cv_func__dyld_func_lookup=no
10408 fi
10409
10410 rm -f core conftest.err conftest.$ac_objext \
10411       conftest$ac_exeext conftest.$ac_ext
10412 fi
10413 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10414 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10415 if test $ac_cv_func__dyld_func_lookup = yes; then
10416
10417 cat >>confdefs.h <<\_ACEOF
10418 #define HAVE_DYLD 1
10419 _ACEOF
10420
10421 fi
10422
10423
10424 fi
10425
10426
10427 fi
10428
10429
10430 fi
10431
10432 rm -f core conftest.err conftest.$ac_objext \
10433       conftest$ac_exeext conftest.$ac_ext
10434
10435 fi
10436
10437
10438 fi
10439
10440
10441 fi
10442
10443
10444 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10445 then
10446   lt_save_LIBS="$LIBS"
10447   LIBS="$LIBS $LIBADD_DL"
10448
10449 for ac_func in dlerror
10450 do
10451 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10452 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10453 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10454 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10455   echo $ECHO_N "(cached) $ECHO_C" >&6
10456 else
10457   cat >conftest.$ac_ext <<_ACEOF
10458 /* confdefs.h.  */
10459 _ACEOF
10460 cat confdefs.h >>conftest.$ac_ext
10461 cat >>conftest.$ac_ext <<_ACEOF
10462 /* end confdefs.h.  */
10463 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10464    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10465 #define $ac_func innocuous_$ac_func
10466
10467 /* System header to define __stub macros and hopefully few prototypes,
10468     which can conflict with char $ac_func (); below.
10469     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10470     <limits.h> exists even on freestanding compilers.  */
10471
10472 #ifdef __STDC__
10473 # include <limits.h>
10474 #else
10475 # include <assert.h>
10476 #endif
10477
10478 #undef $ac_func
10479
10480 /* Override any GCC internal prototype to avoid an error.
10481    Use char because int might match the return type of a GCC
10482    builtin and then its argument prototype would still apply.  */
10483 #ifdef __cplusplus
10484 extern "C"
10485 #endif
10486 char $ac_func ();
10487 /* The GNU C library defines this for functions which it implements
10488     to always fail with ENOSYS.  Some functions are actually named
10489     something starting with __ and the normal name is an alias.  */
10490 #if defined __stub_$ac_func || defined __stub___$ac_func
10491 choke me
10492 #endif
10493
10494 int
10495 main ()
10496 {
10497 return $ac_func ();
10498   ;
10499   return 0;
10500 }
10501 _ACEOF
10502 rm -f conftest.$ac_objext conftest$ac_exeext
10503 if { (ac_try="$ac_link"
10504 case "(($ac_try" in
10505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10506   *) ac_try_echo=$ac_try;;
10507 esac
10508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10509   (eval "$ac_link") 2>conftest.er1
10510   ac_status=$?
10511   grep -v '^ *+' conftest.er1 >conftest.err
10512   rm -f conftest.er1
10513   cat conftest.err >&5
10514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10515   (exit $ac_status); } &&
10516          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10517   { (case "(($ac_try" in
10518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10519   *) ac_try_echo=$ac_try;;
10520 esac
10521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10522   (eval "$ac_try") 2>&5
10523   ac_status=$?
10524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10525   (exit $ac_status); }; } &&
10526          { ac_try='test -s conftest$ac_exeext'
10527   { (case "(($ac_try" in
10528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10529   *) ac_try_echo=$ac_try;;
10530 esac
10531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10532   (eval "$ac_try") 2>&5
10533   ac_status=$?
10534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10535   (exit $ac_status); }; }; then
10536   eval "$as_ac_var=yes"
10537 else
10538   echo "$as_me: failed program was:" >&5
10539 sed 's/^/| /' conftest.$ac_ext >&5
10540
10541         eval "$as_ac_var=no"
10542 fi
10543
10544 rm -f core conftest.err conftest.$ac_objext \
10545       conftest$ac_exeext conftest.$ac_ext
10546 fi
10547 ac_res=`eval echo '${'$as_ac_var'}'`
10548                { echo "$as_me:$LINENO: result: $ac_res" >&5
10549 echo "${ECHO_T}$ac_res" >&6; }
10550 if test `eval echo '${'$as_ac_var'}'` = yes; then
10551   cat >>confdefs.h <<_ACEOF
10552 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10553 _ACEOF
10554
10555 fi
10556 done
10557
10558   LIBS="$lt_save_LIBS"
10559 fi
10560 ac_ext=c
10561 ac_cpp='$CPP $CPPFLAGS'
10562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10565
10566
10567
10568 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10569 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10570 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10571   echo $ECHO_N "(cached) $ECHO_C" >&6
10572 else
10573   ac_cv_sys_symbol_underscore=no
10574   cat > conftest.$ac_ext <<EOF
10575 void nm_test_func(){}
10576 int main(){nm_test_func;return 0;}
10577 EOF
10578   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10579   (eval $ac_compile) 2>&5
10580   ac_status=$?
10581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10582   (exit $ac_status); }; then
10583     # Now try to grab the symbols.
10584     ac_nlist=conftest.nm
10585     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10586   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10587   ac_status=$?
10588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10589   (exit $ac_status); } && test -s "$ac_nlist"; then
10590       # See whether the symbols have a leading underscore.
10591       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10592         ac_cv_sys_symbol_underscore=yes
10593       else
10594         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10595           :
10596         else
10597           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10598         fi
10599       fi
10600     else
10601       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10602     fi
10603   else
10604     echo "configure: failed program was:" >&5
10605     cat conftest.c >&5
10606   fi
10607   rm -rf conftest*
10608
10609 fi
10610 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10611 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10612
10613
10614 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10615   if test x"$libltdl_cv_func_dlopen" = xyes ||
10616      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10617         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10618 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10619 if test "${libltdl_cv_need_uscore+set}" = set; then
10620   echo $ECHO_N "(cached) $ECHO_C" >&6
10621 else
10622   libltdl_cv_need_uscore=unknown
10623           save_LIBS="$LIBS"
10624           LIBS="$LIBS $LIBADD_DL"
10625           if test "$cross_compiling" = yes; then :
10626   libltdl_cv_need_uscore=cross
10627 else
10628   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10629   lt_status=$lt_dlunknown
10630   cat > conftest.$ac_ext <<EOF
10631 #line 10631 "configure"
10632 #include "confdefs.h"
10633
10634 #if HAVE_DLFCN_H
10635 #include <dlfcn.h>
10636 #endif
10637
10638 #include <stdio.h>
10639
10640 #ifdef RTLD_GLOBAL
10641 #  define LT_DLGLOBAL           RTLD_GLOBAL
10642 #else
10643 #  ifdef DL_GLOBAL
10644 #    define LT_DLGLOBAL         DL_GLOBAL
10645 #  else
10646 #    define LT_DLGLOBAL         0
10647 #  endif
10648 #endif
10649
10650 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10651    find out it does not work in some platform. */
10652 #ifndef LT_DLLAZY_OR_NOW
10653 #  ifdef RTLD_LAZY
10654 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10655 #  else
10656 #    ifdef DL_LAZY
10657 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10658 #    else
10659 #      ifdef RTLD_NOW
10660 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10661 #      else
10662 #        ifdef DL_NOW
10663 #          define LT_DLLAZY_OR_NOW      DL_NOW
10664 #        else
10665 #          define LT_DLLAZY_OR_NOW      0
10666 #        endif
10667 #      endif
10668 #    endif
10669 #  endif
10670 #endif
10671
10672 #ifdef __cplusplus
10673 extern "C" void exit (int);
10674 #endif
10675
10676 void fnord() { int i=42;}
10677 int main ()
10678 {
10679   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10680   int status = $lt_dlunknown;
10681
10682   if (self)
10683     {
10684       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10685       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10686       /* dlclose (self); */
10687     }
10688   else
10689     puts (dlerror ());
10690
10691     exit (status);
10692 }
10693 EOF
10694   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10695   (eval $ac_link) 2>&5
10696   ac_status=$?
10697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10698   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10699     (./conftest; exit; ) >&5 2>/dev/null
10700     lt_status=$?
10701     case x$lt_status in
10702       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10703       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10704       x$lt_dlunknown|x*)  ;;
10705     esac
10706   else :
10707     # compilation failed
10708
10709   fi
10710 fi
10711 rm -fr conftest*
10712
10713           LIBS="$save_LIBS"
10714
10715 fi
10716 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10717 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10718   fi
10719 fi
10720
10721 if test x"$libltdl_cv_need_uscore" = xyes; then
10722
10723 cat >>confdefs.h <<\_ACEOF
10724 #define NEED_USCORE 1
10725 _ACEOF
10726
10727 fi
10728
10729
10730 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10731 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10732 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10733   echo $ECHO_N "(cached) $ECHO_C" >&6
10734 else
10735   # PORTME does your system automatically load deplibs for dlopen?
10736   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10737   # For now, we just catch OSes we know something about -- in the
10738   # future, we'll try test this programmatically.
10739   libltdl_cv_sys_dlopen_deplibs=unknown
10740   case "$host_os" in
10741   aix3*|aix4.1.*|aix4.2.*)
10742     # Unknown whether this is true for these versions of AIX, but
10743     # we want this `case' here to explicitly catch those versions.
10744     libltdl_cv_sys_dlopen_deplibs=unknown
10745     ;;
10746   aix[45]*)
10747     libltdl_cv_sys_dlopen_deplibs=yes
10748     ;;
10749   darwin*)
10750     # Assuming the user has installed a libdl from somewhere, this is true
10751     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10752     libltdl_cv_sys_dlopen_deplibs=yes
10753     ;;
10754   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10755     # GNU and its variants, using gnu ld.so (Glibc)
10756     libltdl_cv_sys_dlopen_deplibs=yes
10757     ;;
10758   hpux10*|hpux11*)
10759     libltdl_cv_sys_dlopen_deplibs=yes
10760     ;;
10761   interix*)
10762     libltdl_cv_sys_dlopen_deplibs=yes
10763     ;;
10764   irix[12345]*|irix6.[01]*)
10765     # Catch all versions of IRIX before 6.2, and indicate that we don't
10766     # know how it worked for any of those versions.
10767     libltdl_cv_sys_dlopen_deplibs=unknown
10768     ;;
10769   irix*)
10770     # The case above catches anything before 6.2, and it's known that
10771     # at 6.2 and later dlopen does load deplibs.
10772     libltdl_cv_sys_dlopen_deplibs=yes
10773     ;;
10774   netbsd*)
10775     libltdl_cv_sys_dlopen_deplibs=yes
10776     ;;
10777   openbsd*)
10778     libltdl_cv_sys_dlopen_deplibs=yes
10779     ;;
10780   osf[1234]*)
10781     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10782     # it did *not* use an RPATH in a shared library to find objects the
10783     # library depends on, so we explictly say `no'.
10784     libltdl_cv_sys_dlopen_deplibs=no
10785     ;;
10786   osf5.0|osf5.0a|osf5.1)
10787     # dlopen *does* load deplibs and with the right loader patch applied
10788     # it even uses RPATH in a shared library to search for shared objects
10789     # that the library depends on, but there's no easy way to know if that
10790     # patch is installed.  Since this is the case, all we can really
10791     # say is unknown -- it depends on the patch being installed.  If
10792     # it is, this changes to `yes'.  Without it, it would be `no'.
10793     libltdl_cv_sys_dlopen_deplibs=unknown
10794     ;;
10795   osf*)
10796     # the two cases above should catch all versions of osf <= 5.1.  Read
10797     # the comments above for what we know about them.
10798     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10799     # is used to find them so we can finally say `yes'.
10800     libltdl_cv_sys_dlopen_deplibs=yes
10801     ;;
10802   solaris*)
10803     libltdl_cv_sys_dlopen_deplibs=yes
10804     ;;
10805   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10806     libltdl_cv_sys_dlopen_deplibs=yes
10807     ;;
10808   esac
10809
10810 fi
10811 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10812 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10813 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10814
10815 cat >>confdefs.h <<\_ACEOF
10816 #define LTDL_DLOPEN_DEPLIBS 1
10817 _ACEOF
10818
10819 fi
10820
10821
10822 for ac_header in argz.h
10823 do
10824 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10825 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10826   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10827 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10828 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10829   echo $ECHO_N "(cached) $ECHO_C" >&6
10830 fi
10831 ac_res=`eval echo '${'$as_ac_Header'}'`
10832                { echo "$as_me:$LINENO: result: $ac_res" >&5
10833 echo "${ECHO_T}$ac_res" >&6; }
10834 else
10835   # Is the header compilable?
10836 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10837 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10838 cat >conftest.$ac_ext <<_ACEOF
10839 /* confdefs.h.  */
10840 _ACEOF
10841 cat confdefs.h >>conftest.$ac_ext
10842 cat >>conftest.$ac_ext <<_ACEOF
10843 /* end confdefs.h.  */
10844 $ac_includes_default
10845 #include <$ac_header>
10846 _ACEOF
10847 rm -f conftest.$ac_objext
10848 if { (ac_try="$ac_compile"
10849 case "(($ac_try" in
10850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10851   *) ac_try_echo=$ac_try;;
10852 esac
10853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10854   (eval "$ac_compile") 2>conftest.er1
10855   ac_status=$?
10856   grep -v '^ *+' conftest.er1 >conftest.err
10857   rm -f conftest.er1
10858   cat conftest.err >&5
10859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10860   (exit $ac_status); } &&
10861          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10862   { (case "(($ac_try" in
10863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10864   *) ac_try_echo=$ac_try;;
10865 esac
10866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10867   (eval "$ac_try") 2>&5
10868   ac_status=$?
10869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10870   (exit $ac_status); }; } &&
10871          { ac_try='test -s conftest.$ac_objext'
10872   { (case "(($ac_try" in
10873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10874   *) ac_try_echo=$ac_try;;
10875 esac
10876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10877   (eval "$ac_try") 2>&5
10878   ac_status=$?
10879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10880   (exit $ac_status); }; }; then
10881   ac_header_compiler=yes
10882 else
10883   echo "$as_me: failed program was:" >&5
10884 sed 's/^/| /' conftest.$ac_ext >&5
10885
10886         ac_header_compiler=no
10887 fi
10888
10889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10890 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10891 echo "${ECHO_T}$ac_header_compiler" >&6; }
10892
10893 # Is the header present?
10894 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10895 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10896 cat >conftest.$ac_ext <<_ACEOF
10897 /* confdefs.h.  */
10898 _ACEOF
10899 cat confdefs.h >>conftest.$ac_ext
10900 cat >>conftest.$ac_ext <<_ACEOF
10901 /* end confdefs.h.  */
10902 #include <$ac_header>
10903 _ACEOF
10904 if { (ac_try="$ac_cpp conftest.$ac_ext"
10905 case "(($ac_try" in
10906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10907   *) ac_try_echo=$ac_try;;
10908 esac
10909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10910   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10911   ac_status=$?
10912   grep -v '^ *+' conftest.er1 >conftest.err
10913   rm -f conftest.er1
10914   cat conftest.err >&5
10915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10916   (exit $ac_status); } >/dev/null; then
10917   if test -s conftest.err; then
10918     ac_cpp_err=$ac_c_preproc_warn_flag
10919     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10920   else
10921     ac_cpp_err=
10922   fi
10923 else
10924   ac_cpp_err=yes
10925 fi
10926 if test -z "$ac_cpp_err"; then
10927   ac_header_preproc=yes
10928 else
10929   echo "$as_me: failed program was:" >&5
10930 sed 's/^/| /' conftest.$ac_ext >&5
10931
10932   ac_header_preproc=no
10933 fi
10934
10935 rm -f conftest.err conftest.$ac_ext
10936 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10937 echo "${ECHO_T}$ac_header_preproc" >&6; }
10938
10939 # So?  What about this header?
10940 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10941   yes:no: )
10942     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10943 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10944     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10945 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10946     ac_header_preproc=yes
10947     ;;
10948   no:yes:* )
10949     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10950 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10951     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10952 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10953     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10954 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10955     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10956 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10957     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10958 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10959     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10960 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10961     ( cat <<\_ASBOX
10962 ## ----------------------------------- ##
10963 ## Report this to llvmbugs@cs.uiuc.edu ##
10964 ## ----------------------------------- ##
10965 _ASBOX
10966      ) | sed "s/^/$as_me: WARNING:     /" >&2
10967     ;;
10968 esac
10969 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10970 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10971 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10972   echo $ECHO_N "(cached) $ECHO_C" >&6
10973 else
10974   eval "$as_ac_Header=\$ac_header_preproc"
10975 fi
10976 ac_res=`eval echo '${'$as_ac_Header'}'`
10977                { echo "$as_me:$LINENO: result: $ac_res" >&5
10978 echo "${ECHO_T}$ac_res" >&6; }
10979
10980 fi
10981 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10982   cat >>confdefs.h <<_ACEOF
10983 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10984 _ACEOF
10985
10986 fi
10987
10988 done
10989
10990
10991 { echo "$as_me:$LINENO: checking for error_t" >&5
10992 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10993 if test "${ac_cv_type_error_t+set}" = set; then
10994   echo $ECHO_N "(cached) $ECHO_C" >&6
10995 else
10996   cat >conftest.$ac_ext <<_ACEOF
10997 /* confdefs.h.  */
10998 _ACEOF
10999 cat confdefs.h >>conftest.$ac_ext
11000 cat >>conftest.$ac_ext <<_ACEOF
11001 /* end confdefs.h.  */
11002 #if HAVE_ARGZ_H
11003 #  include <argz.h>
11004 #endif
11005
11006 typedef error_t ac__type_new_;
11007 int
11008 main ()
11009 {
11010 if ((ac__type_new_ *) 0)
11011   return 0;
11012 if (sizeof (ac__type_new_))
11013   return 0;
11014   ;
11015   return 0;
11016 }
11017 _ACEOF
11018 rm -f conftest.$ac_objext
11019 if { (ac_try="$ac_compile"
11020 case "(($ac_try" in
11021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11022   *) ac_try_echo=$ac_try;;
11023 esac
11024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11025   (eval "$ac_compile") 2>conftest.er1
11026   ac_status=$?
11027   grep -v '^ *+' conftest.er1 >conftest.err
11028   rm -f conftest.er1
11029   cat conftest.err >&5
11030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11031   (exit $ac_status); } &&
11032          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11033   { (case "(($ac_try" in
11034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11035   *) ac_try_echo=$ac_try;;
11036 esac
11037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11038   (eval "$ac_try") 2>&5
11039   ac_status=$?
11040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11041   (exit $ac_status); }; } &&
11042          { ac_try='test -s conftest.$ac_objext'
11043   { (case "(($ac_try" in
11044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11045   *) ac_try_echo=$ac_try;;
11046 esac
11047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11048   (eval "$ac_try") 2>&5
11049   ac_status=$?
11050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051   (exit $ac_status); }; }; then
11052   ac_cv_type_error_t=yes
11053 else
11054   echo "$as_me: failed program was:" >&5
11055 sed 's/^/| /' conftest.$ac_ext >&5
11056
11057         ac_cv_type_error_t=no
11058 fi
11059
11060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11061 fi
11062 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11063 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11064 if test $ac_cv_type_error_t = yes; then
11065
11066 cat >>confdefs.h <<_ACEOF
11067 #define HAVE_ERROR_T 1
11068 _ACEOF
11069
11070
11071 else
11072
11073 cat >>confdefs.h <<\_ACEOF
11074 #define error_t int
11075 _ACEOF
11076
11077 fi
11078
11079
11080
11081
11082
11083
11084
11085 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11086 do
11087 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11088 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11089 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11090 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11091   echo $ECHO_N "(cached) $ECHO_C" >&6
11092 else
11093   cat >conftest.$ac_ext <<_ACEOF
11094 /* confdefs.h.  */
11095 _ACEOF
11096 cat confdefs.h >>conftest.$ac_ext
11097 cat >>conftest.$ac_ext <<_ACEOF
11098 /* end confdefs.h.  */
11099 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11100    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11101 #define $ac_func innocuous_$ac_func
11102
11103 /* System header to define __stub macros and hopefully few prototypes,
11104     which can conflict with char $ac_func (); below.
11105     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11106     <limits.h> exists even on freestanding compilers.  */
11107
11108 #ifdef __STDC__
11109 # include <limits.h>
11110 #else
11111 # include <assert.h>
11112 #endif
11113
11114 #undef $ac_func
11115
11116 /* Override any GCC internal prototype to avoid an error.
11117    Use char because int might match the return type of a GCC
11118    builtin and then its argument prototype would still apply.  */
11119 #ifdef __cplusplus
11120 extern "C"
11121 #endif
11122 char $ac_func ();
11123 /* The GNU C library defines this for functions which it implements
11124     to always fail with ENOSYS.  Some functions are actually named
11125     something starting with __ and the normal name is an alias.  */
11126 #if defined __stub_$ac_func || defined __stub___$ac_func
11127 choke me
11128 #endif
11129
11130 int
11131 main ()
11132 {
11133 return $ac_func ();
11134   ;
11135   return 0;
11136 }
11137 _ACEOF
11138 rm -f conftest.$ac_objext conftest$ac_exeext
11139 if { (ac_try="$ac_link"
11140 case "(($ac_try" in
11141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11142   *) ac_try_echo=$ac_try;;
11143 esac
11144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11145   (eval "$ac_link") 2>conftest.er1
11146   ac_status=$?
11147   grep -v '^ *+' conftest.er1 >conftest.err
11148   rm -f conftest.er1
11149   cat conftest.err >&5
11150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11151   (exit $ac_status); } &&
11152          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11153   { (case "(($ac_try" in
11154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11155   *) ac_try_echo=$ac_try;;
11156 esac
11157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11158   (eval "$ac_try") 2>&5
11159   ac_status=$?
11160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11161   (exit $ac_status); }; } &&
11162          { ac_try='test -s conftest$ac_exeext'
11163   { (case "(($ac_try" in
11164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11165   *) ac_try_echo=$ac_try;;
11166 esac
11167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11168   (eval "$ac_try") 2>&5
11169   ac_status=$?
11170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11171   (exit $ac_status); }; }; then
11172   eval "$as_ac_var=yes"
11173 else
11174   echo "$as_me: failed program was:" >&5
11175 sed 's/^/| /' conftest.$ac_ext >&5
11176
11177         eval "$as_ac_var=no"
11178 fi
11179
11180 rm -f core conftest.err conftest.$ac_objext \
11181       conftest$ac_exeext conftest.$ac_ext
11182 fi
11183 ac_res=`eval echo '${'$as_ac_var'}'`
11184                { echo "$as_me:$LINENO: result: $ac_res" >&5
11185 echo "${ECHO_T}$ac_res" >&6; }
11186 if test `eval echo '${'$as_ac_var'}'` = yes; then
11187   cat >>confdefs.h <<_ACEOF
11188 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11189 _ACEOF
11190
11191 fi
11192 done
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11222                   stdio.h unistd.h
11223 do
11224 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11225 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11226   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11227 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11228 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11229   echo $ECHO_N "(cached) $ECHO_C" >&6
11230 fi
11231 ac_res=`eval echo '${'$as_ac_Header'}'`
11232                { echo "$as_me:$LINENO: result: $ac_res" >&5
11233 echo "${ECHO_T}$ac_res" >&6; }
11234 else
11235   # Is the header compilable?
11236 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11237 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11238 cat >conftest.$ac_ext <<_ACEOF
11239 /* confdefs.h.  */
11240 _ACEOF
11241 cat confdefs.h >>conftest.$ac_ext
11242 cat >>conftest.$ac_ext <<_ACEOF
11243 /* end confdefs.h.  */
11244 $ac_includes_default
11245 #include <$ac_header>
11246 _ACEOF
11247 rm -f conftest.$ac_objext
11248 if { (ac_try="$ac_compile"
11249 case "(($ac_try" in
11250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11251   *) ac_try_echo=$ac_try;;
11252 esac
11253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11254   (eval "$ac_compile") 2>conftest.er1
11255   ac_status=$?
11256   grep -v '^ *+' conftest.er1 >conftest.err
11257   rm -f conftest.er1
11258   cat conftest.err >&5
11259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11260   (exit $ac_status); } &&
11261          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11262   { (case "(($ac_try" in
11263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11264   *) ac_try_echo=$ac_try;;
11265 esac
11266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11267   (eval "$ac_try") 2>&5
11268   ac_status=$?
11269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11270   (exit $ac_status); }; } &&
11271          { ac_try='test -s conftest.$ac_objext'
11272   { (case "(($ac_try" in
11273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11274   *) ac_try_echo=$ac_try;;
11275 esac
11276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11277   (eval "$ac_try") 2>&5
11278   ac_status=$?
11279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11280   (exit $ac_status); }; }; then
11281   ac_header_compiler=yes
11282 else
11283   echo "$as_me: failed program was:" >&5
11284 sed 's/^/| /' conftest.$ac_ext >&5
11285
11286         ac_header_compiler=no
11287 fi
11288
11289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11290 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11291 echo "${ECHO_T}$ac_header_compiler" >&6; }
11292
11293 # Is the header present?
11294 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11295 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11296 cat >conftest.$ac_ext <<_ACEOF
11297 /* confdefs.h.  */
11298 _ACEOF
11299 cat confdefs.h >>conftest.$ac_ext
11300 cat >>conftest.$ac_ext <<_ACEOF
11301 /* end confdefs.h.  */
11302 #include <$ac_header>
11303 _ACEOF
11304 if { (ac_try="$ac_cpp conftest.$ac_ext"
11305 case "(($ac_try" in
11306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11307   *) ac_try_echo=$ac_try;;
11308 esac
11309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11310   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11311   ac_status=$?
11312   grep -v '^ *+' conftest.er1 >conftest.err
11313   rm -f conftest.er1
11314   cat conftest.err >&5
11315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11316   (exit $ac_status); } >/dev/null; then
11317   if test -s conftest.err; then
11318     ac_cpp_err=$ac_c_preproc_warn_flag
11319     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11320   else
11321     ac_cpp_err=
11322   fi
11323 else
11324   ac_cpp_err=yes
11325 fi
11326 if test -z "$ac_cpp_err"; then
11327   ac_header_preproc=yes
11328 else
11329   echo "$as_me: failed program was:" >&5
11330 sed 's/^/| /' conftest.$ac_ext >&5
11331
11332   ac_header_preproc=no
11333 fi
11334
11335 rm -f conftest.err conftest.$ac_ext
11336 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11337 echo "${ECHO_T}$ac_header_preproc" >&6; }
11338
11339 # So?  What about this header?
11340 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11341   yes:no: )
11342     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11343 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11344     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11345 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11346     ac_header_preproc=yes
11347     ;;
11348   no:yes:* )
11349     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11350 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11351     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11352 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11353     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11354 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11355     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11356 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11357     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11358 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11359     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11360 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11361     ( cat <<\_ASBOX
11362 ## ----------------------------------- ##
11363 ## Report this to llvmbugs@cs.uiuc.edu ##
11364 ## ----------------------------------- ##
11365 _ASBOX
11366      ) | sed "s/^/$as_me: WARNING:     /" >&2
11367     ;;
11368 esac
11369 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11370 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11371 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11372   echo $ECHO_N "(cached) $ECHO_C" >&6
11373 else
11374   eval "$as_ac_Header=\$ac_header_preproc"
11375 fi
11376 ac_res=`eval echo '${'$as_ac_Header'}'`
11377                { echo "$as_me:$LINENO: result: $ac_res" >&5
11378 echo "${ECHO_T}$ac_res" >&6; }
11379
11380 fi
11381 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11382   cat >>confdefs.h <<_ACEOF
11383 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11384 _ACEOF
11385
11386 fi
11387
11388 done
11389
11390
11391
11392
11393
11394 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11395 do
11396 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11397 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11398   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11399 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11400 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11401   echo $ECHO_N "(cached) $ECHO_C" >&6
11402 fi
11403 ac_res=`eval echo '${'$as_ac_Header'}'`
11404                { echo "$as_me:$LINENO: result: $ac_res" >&5
11405 echo "${ECHO_T}$ac_res" >&6; }
11406 else
11407   # Is the header compilable?
11408 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11409 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11410 cat >conftest.$ac_ext <<_ACEOF
11411 /* confdefs.h.  */
11412 _ACEOF
11413 cat confdefs.h >>conftest.$ac_ext
11414 cat >>conftest.$ac_ext <<_ACEOF
11415 /* end confdefs.h.  */
11416 $ac_includes_default
11417 #include <$ac_header>
11418 _ACEOF
11419 rm -f conftest.$ac_objext
11420 if { (ac_try="$ac_compile"
11421 case "(($ac_try" in
11422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11423   *) ac_try_echo=$ac_try;;
11424 esac
11425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11426   (eval "$ac_compile") 2>conftest.er1
11427   ac_status=$?
11428   grep -v '^ *+' conftest.er1 >conftest.err
11429   rm -f conftest.er1
11430   cat conftest.err >&5
11431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11432   (exit $ac_status); } &&
11433          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11434   { (case "(($ac_try" in
11435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11436   *) ac_try_echo=$ac_try;;
11437 esac
11438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11439   (eval "$ac_try") 2>&5
11440   ac_status=$?
11441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11442   (exit $ac_status); }; } &&
11443          { ac_try='test -s conftest.$ac_objext'
11444   { (case "(($ac_try" in
11445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11446   *) ac_try_echo=$ac_try;;
11447 esac
11448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11449   (eval "$ac_try") 2>&5
11450   ac_status=$?
11451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11452   (exit $ac_status); }; }; then
11453   ac_header_compiler=yes
11454 else
11455   echo "$as_me: failed program was:" >&5
11456 sed 's/^/| /' conftest.$ac_ext >&5
11457
11458         ac_header_compiler=no
11459 fi
11460
11461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11462 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11463 echo "${ECHO_T}$ac_header_compiler" >&6; }
11464
11465 # Is the header present?
11466 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11467 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11468 cat >conftest.$ac_ext <<_ACEOF
11469 /* confdefs.h.  */
11470 _ACEOF
11471 cat confdefs.h >>conftest.$ac_ext
11472 cat >>conftest.$ac_ext <<_ACEOF
11473 /* end confdefs.h.  */
11474 #include <$ac_header>
11475 _ACEOF
11476 if { (ac_try="$ac_cpp conftest.$ac_ext"
11477 case "(($ac_try" in
11478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11479   *) ac_try_echo=$ac_try;;
11480 esac
11481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11482   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11483   ac_status=$?
11484   grep -v '^ *+' conftest.er1 >conftest.err
11485   rm -f conftest.er1
11486   cat conftest.err >&5
11487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11488   (exit $ac_status); } >/dev/null; then
11489   if test -s conftest.err; then
11490     ac_cpp_err=$ac_c_preproc_warn_flag
11491     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11492   else
11493     ac_cpp_err=
11494   fi
11495 else
11496   ac_cpp_err=yes
11497 fi
11498 if test -z "$ac_cpp_err"; then
11499   ac_header_preproc=yes
11500 else
11501   echo "$as_me: failed program was:" >&5
11502 sed 's/^/| /' conftest.$ac_ext >&5
11503
11504   ac_header_preproc=no
11505 fi
11506
11507 rm -f conftest.err conftest.$ac_ext
11508 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11509 echo "${ECHO_T}$ac_header_preproc" >&6; }
11510
11511 # So?  What about this header?
11512 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11513   yes:no: )
11514     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11515 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11516     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11517 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11518     ac_header_preproc=yes
11519     ;;
11520   no:yes:* )
11521     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11522 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11523     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11524 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11525     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11526 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11527     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11528 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11529     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11530 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11531     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11532 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11533     ( cat <<\_ASBOX
11534 ## ----------------------------------- ##
11535 ## Report this to llvmbugs@cs.uiuc.edu ##
11536 ## ----------------------------------- ##
11537 _ASBOX
11538      ) | sed "s/^/$as_me: WARNING:     /" >&2
11539     ;;
11540 esac
11541 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11542 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11543 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11544   echo $ECHO_N "(cached) $ECHO_C" >&6
11545 else
11546   eval "$as_ac_Header=\$ac_header_preproc"
11547 fi
11548 ac_res=`eval echo '${'$as_ac_Header'}'`
11549                { echo "$as_me:$LINENO: result: $ac_res" >&5
11550 echo "${ECHO_T}$ac_res" >&6; }
11551
11552 fi
11553 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11554   cat >>confdefs.h <<_ACEOF
11555 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11556 _ACEOF
11557
11558 fi
11559
11560 done
11561
11562
11563
11564 for ac_header in string.h strings.h
11565 do
11566 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11567 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11568   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11569 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11570 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11571   echo $ECHO_N "(cached) $ECHO_C" >&6
11572 fi
11573 ac_res=`eval echo '${'$as_ac_Header'}'`
11574                { echo "$as_me:$LINENO: result: $ac_res" >&5
11575 echo "${ECHO_T}$ac_res" >&6; }
11576 else
11577   # Is the header compilable?
11578 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11579 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11580 cat >conftest.$ac_ext <<_ACEOF
11581 /* confdefs.h.  */
11582 _ACEOF
11583 cat confdefs.h >>conftest.$ac_ext
11584 cat >>conftest.$ac_ext <<_ACEOF
11585 /* end confdefs.h.  */
11586 $ac_includes_default
11587 #include <$ac_header>
11588 _ACEOF
11589 rm -f conftest.$ac_objext
11590 if { (ac_try="$ac_compile"
11591 case "(($ac_try" in
11592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11593   *) ac_try_echo=$ac_try;;
11594 esac
11595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11596   (eval "$ac_compile") 2>conftest.er1
11597   ac_status=$?
11598   grep -v '^ *+' conftest.er1 >conftest.err
11599   rm -f conftest.er1
11600   cat conftest.err >&5
11601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11602   (exit $ac_status); } &&
11603          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11604   { (case "(($ac_try" in
11605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11606   *) ac_try_echo=$ac_try;;
11607 esac
11608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11609   (eval "$ac_try") 2>&5
11610   ac_status=$?
11611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11612   (exit $ac_status); }; } &&
11613          { ac_try='test -s conftest.$ac_objext'
11614   { (case "(($ac_try" in
11615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11616   *) ac_try_echo=$ac_try;;
11617 esac
11618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11619   (eval "$ac_try") 2>&5
11620   ac_status=$?
11621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11622   (exit $ac_status); }; }; then
11623   ac_header_compiler=yes
11624 else
11625   echo "$as_me: failed program was:" >&5
11626 sed 's/^/| /' conftest.$ac_ext >&5
11627
11628         ac_header_compiler=no
11629 fi
11630
11631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11632 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11633 echo "${ECHO_T}$ac_header_compiler" >&6; }
11634
11635 # Is the header present?
11636 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11637 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11638 cat >conftest.$ac_ext <<_ACEOF
11639 /* confdefs.h.  */
11640 _ACEOF
11641 cat confdefs.h >>conftest.$ac_ext
11642 cat >>conftest.$ac_ext <<_ACEOF
11643 /* end confdefs.h.  */
11644 #include <$ac_header>
11645 _ACEOF
11646 if { (ac_try="$ac_cpp conftest.$ac_ext"
11647 case "(($ac_try" in
11648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11649   *) ac_try_echo=$ac_try;;
11650 esac
11651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11652   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11653   ac_status=$?
11654   grep -v '^ *+' conftest.er1 >conftest.err
11655   rm -f conftest.er1
11656   cat conftest.err >&5
11657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11658   (exit $ac_status); } >/dev/null; then
11659   if test -s conftest.err; then
11660     ac_cpp_err=$ac_c_preproc_warn_flag
11661     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11662   else
11663     ac_cpp_err=
11664   fi
11665 else
11666   ac_cpp_err=yes
11667 fi
11668 if test -z "$ac_cpp_err"; then
11669   ac_header_preproc=yes
11670 else
11671   echo "$as_me: failed program was:" >&5
11672 sed 's/^/| /' conftest.$ac_ext >&5
11673
11674   ac_header_preproc=no
11675 fi
11676
11677 rm -f conftest.err conftest.$ac_ext
11678 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11679 echo "${ECHO_T}$ac_header_preproc" >&6; }
11680
11681 # So?  What about this header?
11682 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11683   yes:no: )
11684     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11685 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11686     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11687 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11688     ac_header_preproc=yes
11689     ;;
11690   no:yes:* )
11691     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11692 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11693     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11694 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11695     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11696 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11697     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11698 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11699     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11700 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11701     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11702 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11703     ( cat <<\_ASBOX
11704 ## ----------------------------------- ##
11705 ## Report this to llvmbugs@cs.uiuc.edu ##
11706 ## ----------------------------------- ##
11707 _ASBOX
11708      ) | sed "s/^/$as_me: WARNING:     /" >&2
11709     ;;
11710 esac
11711 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11712 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11713 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11714   echo $ECHO_N "(cached) $ECHO_C" >&6
11715 else
11716   eval "$as_ac_Header=\$ac_header_preproc"
11717 fi
11718 ac_res=`eval echo '${'$as_ac_Header'}'`
11719                { echo "$as_me:$LINENO: result: $ac_res" >&5
11720 echo "${ECHO_T}$ac_res" >&6; }
11721
11722 fi
11723 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11724   cat >>confdefs.h <<_ACEOF
11725 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11726 _ACEOF
11727  break
11728 fi
11729
11730 done
11731
11732
11733
11734
11735 for ac_func in strchr index
11736 do
11737 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11738 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11739 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11740 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11741   echo $ECHO_N "(cached) $ECHO_C" >&6
11742 else
11743   cat >conftest.$ac_ext <<_ACEOF
11744 /* confdefs.h.  */
11745 _ACEOF
11746 cat confdefs.h >>conftest.$ac_ext
11747 cat >>conftest.$ac_ext <<_ACEOF
11748 /* end confdefs.h.  */
11749 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11750    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11751 #define $ac_func innocuous_$ac_func
11752
11753 /* System header to define __stub macros and hopefully few prototypes,
11754     which can conflict with char $ac_func (); below.
11755     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11756     <limits.h> exists even on freestanding compilers.  */
11757
11758 #ifdef __STDC__
11759 # include <limits.h>
11760 #else
11761 # include <assert.h>
11762 #endif
11763
11764 #undef $ac_func
11765
11766 /* Override any GCC internal prototype to avoid an error.
11767    Use char because int might match the return type of a GCC
11768    builtin and then its argument prototype would still apply.  */
11769 #ifdef __cplusplus
11770 extern "C"
11771 #endif
11772 char $ac_func ();
11773 /* The GNU C library defines this for functions which it implements
11774     to always fail with ENOSYS.  Some functions are actually named
11775     something starting with __ and the normal name is an alias.  */
11776 #if defined __stub_$ac_func || defined __stub___$ac_func
11777 choke me
11778 #endif
11779
11780 int
11781 main ()
11782 {
11783 return $ac_func ();
11784   ;
11785   return 0;
11786 }
11787 _ACEOF
11788 rm -f conftest.$ac_objext conftest$ac_exeext
11789 if { (ac_try="$ac_link"
11790 case "(($ac_try" in
11791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11792   *) ac_try_echo=$ac_try;;
11793 esac
11794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11795   (eval "$ac_link") 2>conftest.er1
11796   ac_status=$?
11797   grep -v '^ *+' conftest.er1 >conftest.err
11798   rm -f conftest.er1
11799   cat conftest.err >&5
11800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801   (exit $ac_status); } &&
11802          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11803   { (case "(($ac_try" in
11804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11805   *) ac_try_echo=$ac_try;;
11806 esac
11807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11808   (eval "$ac_try") 2>&5
11809   ac_status=$?
11810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11811   (exit $ac_status); }; } &&
11812          { ac_try='test -s conftest$ac_exeext'
11813   { (case "(($ac_try" in
11814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11815   *) ac_try_echo=$ac_try;;
11816 esac
11817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11818   (eval "$ac_try") 2>&5
11819   ac_status=$?
11820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11821   (exit $ac_status); }; }; then
11822   eval "$as_ac_var=yes"
11823 else
11824   echo "$as_me: failed program was:" >&5
11825 sed 's/^/| /' conftest.$ac_ext >&5
11826
11827         eval "$as_ac_var=no"
11828 fi
11829
11830 rm -f core conftest.err conftest.$ac_objext \
11831       conftest$ac_exeext conftest.$ac_ext
11832 fi
11833 ac_res=`eval echo '${'$as_ac_var'}'`
11834                { echo "$as_me:$LINENO: result: $ac_res" >&5
11835 echo "${ECHO_T}$ac_res" >&6; }
11836 if test `eval echo '${'$as_ac_var'}'` = yes; then
11837   cat >>confdefs.h <<_ACEOF
11838 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11839 _ACEOF
11840  break
11841 fi
11842 done
11843
11844
11845
11846 for ac_func in strrchr rindex
11847 do
11848 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11849 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11850 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11851 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11852   echo $ECHO_N "(cached) $ECHO_C" >&6
11853 else
11854   cat >conftest.$ac_ext <<_ACEOF
11855 /* confdefs.h.  */
11856 _ACEOF
11857 cat confdefs.h >>conftest.$ac_ext
11858 cat >>conftest.$ac_ext <<_ACEOF
11859 /* end confdefs.h.  */
11860 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11861    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11862 #define $ac_func innocuous_$ac_func
11863
11864 /* System header to define __stub macros and hopefully few prototypes,
11865     which can conflict with char $ac_func (); below.
11866     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11867     <limits.h> exists even on freestanding compilers.  */
11868
11869 #ifdef __STDC__
11870 # include <limits.h>
11871 #else
11872 # include <assert.h>
11873 #endif
11874
11875 #undef $ac_func
11876
11877 /* Override any GCC internal prototype to avoid an error.
11878    Use char because int might match the return type of a GCC
11879    builtin and then its argument prototype would still apply.  */
11880 #ifdef __cplusplus
11881 extern "C"
11882 #endif
11883 char $ac_func ();
11884 /* The GNU C library defines this for functions which it implements
11885     to always fail with ENOSYS.  Some functions are actually named
11886     something starting with __ and the normal name is an alias.  */
11887 #if defined __stub_$ac_func || defined __stub___$ac_func
11888 choke me
11889 #endif
11890
11891 int
11892 main ()
11893 {
11894 return $ac_func ();
11895   ;
11896   return 0;
11897 }
11898 _ACEOF
11899 rm -f conftest.$ac_objext conftest$ac_exeext
11900 if { (ac_try="$ac_link"
11901 case "(($ac_try" in
11902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11903   *) ac_try_echo=$ac_try;;
11904 esac
11905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11906   (eval "$ac_link") 2>conftest.er1
11907   ac_status=$?
11908   grep -v '^ *+' conftest.er1 >conftest.err
11909   rm -f conftest.er1
11910   cat conftest.err >&5
11911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11912   (exit $ac_status); } &&
11913          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11914   { (case "(($ac_try" in
11915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11916   *) ac_try_echo=$ac_try;;
11917 esac
11918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11919   (eval "$ac_try") 2>&5
11920   ac_status=$?
11921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11922   (exit $ac_status); }; } &&
11923          { ac_try='test -s conftest$ac_exeext'
11924   { (case "(($ac_try" in
11925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11926   *) ac_try_echo=$ac_try;;
11927 esac
11928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11929   (eval "$ac_try") 2>&5
11930   ac_status=$?
11931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932   (exit $ac_status); }; }; then
11933   eval "$as_ac_var=yes"
11934 else
11935   echo "$as_me: failed program was:" >&5
11936 sed 's/^/| /' conftest.$ac_ext >&5
11937
11938         eval "$as_ac_var=no"
11939 fi
11940
11941 rm -f core conftest.err conftest.$ac_objext \
11942       conftest$ac_exeext conftest.$ac_ext
11943 fi
11944 ac_res=`eval echo '${'$as_ac_var'}'`
11945                { echo "$as_me:$LINENO: result: $ac_res" >&5
11946 echo "${ECHO_T}$ac_res" >&6; }
11947 if test `eval echo '${'$as_ac_var'}'` = yes; then
11948   cat >>confdefs.h <<_ACEOF
11949 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11950 _ACEOF
11951  break
11952 fi
11953 done
11954
11955
11956
11957 for ac_func in memcpy bcopy
11958 do
11959 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11960 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11961 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11962 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11963   echo $ECHO_N "(cached) $ECHO_C" >&6
11964 else
11965   cat >conftest.$ac_ext <<_ACEOF
11966 /* confdefs.h.  */
11967 _ACEOF
11968 cat confdefs.h >>conftest.$ac_ext
11969 cat >>conftest.$ac_ext <<_ACEOF
11970 /* end confdefs.h.  */
11971 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11972    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11973 #define $ac_func innocuous_$ac_func
11974
11975 /* System header to define __stub macros and hopefully few prototypes,
11976     which can conflict with char $ac_func (); below.
11977     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11978     <limits.h> exists even on freestanding compilers.  */
11979
11980 #ifdef __STDC__
11981 # include <limits.h>
11982 #else
11983 # include <assert.h>
11984 #endif
11985
11986 #undef $ac_func
11987
11988 /* Override any GCC internal prototype to avoid an error.
11989    Use char because int might match the return type of a GCC
11990    builtin and then its argument prototype would still apply.  */
11991 #ifdef __cplusplus
11992 extern "C"
11993 #endif
11994 char $ac_func ();
11995 /* The GNU C library defines this for functions which it implements
11996     to always fail with ENOSYS.  Some functions are actually named
11997     something starting with __ and the normal name is an alias.  */
11998 #if defined __stub_$ac_func || defined __stub___$ac_func
11999 choke me
12000 #endif
12001
12002 int
12003 main ()
12004 {
12005 return $ac_func ();
12006   ;
12007   return 0;
12008 }
12009 _ACEOF
12010 rm -f conftest.$ac_objext conftest$ac_exeext
12011 if { (ac_try="$ac_link"
12012 case "(($ac_try" in
12013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12014   *) ac_try_echo=$ac_try;;
12015 esac
12016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12017   (eval "$ac_link") 2>conftest.er1
12018   ac_status=$?
12019   grep -v '^ *+' conftest.er1 >conftest.err
12020   rm -f conftest.er1
12021   cat conftest.err >&5
12022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12023   (exit $ac_status); } &&
12024          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12025   { (case "(($ac_try" in
12026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12027   *) ac_try_echo=$ac_try;;
12028 esac
12029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12030   (eval "$ac_try") 2>&5
12031   ac_status=$?
12032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12033   (exit $ac_status); }; } &&
12034          { ac_try='test -s conftest$ac_exeext'
12035   { (case "(($ac_try" in
12036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12037   *) ac_try_echo=$ac_try;;
12038 esac
12039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12040   (eval "$ac_try") 2>&5
12041   ac_status=$?
12042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12043   (exit $ac_status); }; }; then
12044   eval "$as_ac_var=yes"
12045 else
12046   echo "$as_me: failed program was:" >&5
12047 sed 's/^/| /' conftest.$ac_ext >&5
12048
12049         eval "$as_ac_var=no"
12050 fi
12051
12052 rm -f core conftest.err conftest.$ac_objext \
12053       conftest$ac_exeext conftest.$ac_ext
12054 fi
12055 ac_res=`eval echo '${'$as_ac_var'}'`
12056                { echo "$as_me:$LINENO: result: $ac_res" >&5
12057 echo "${ECHO_T}$ac_res" >&6; }
12058 if test `eval echo '${'$as_ac_var'}'` = yes; then
12059   cat >>confdefs.h <<_ACEOF
12060 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12061 _ACEOF
12062  break
12063 fi
12064 done
12065
12066
12067
12068 for ac_func in memmove strcmp
12069 do
12070 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12071 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12072 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12073 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12074   echo $ECHO_N "(cached) $ECHO_C" >&6
12075 else
12076   cat >conftest.$ac_ext <<_ACEOF
12077 /* confdefs.h.  */
12078 _ACEOF
12079 cat confdefs.h >>conftest.$ac_ext
12080 cat >>conftest.$ac_ext <<_ACEOF
12081 /* end confdefs.h.  */
12082 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12083    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12084 #define $ac_func innocuous_$ac_func
12085
12086 /* System header to define __stub macros and hopefully few prototypes,
12087     which can conflict with char $ac_func (); below.
12088     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12089     <limits.h> exists even on freestanding compilers.  */
12090
12091 #ifdef __STDC__
12092 # include <limits.h>
12093 #else
12094 # include <assert.h>
12095 #endif
12096
12097 #undef $ac_func
12098
12099 /* Override any GCC internal prototype to avoid an error.
12100    Use char because int might match the return type of a GCC
12101    builtin and then its argument prototype would still apply.  */
12102 #ifdef __cplusplus
12103 extern "C"
12104 #endif
12105 char $ac_func ();
12106 /* The GNU C library defines this for functions which it implements
12107     to always fail with ENOSYS.  Some functions are actually named
12108     something starting with __ and the normal name is an alias.  */
12109 #if defined __stub_$ac_func || defined __stub___$ac_func
12110 choke me
12111 #endif
12112
12113 int
12114 main ()
12115 {
12116 return $ac_func ();
12117   ;
12118   return 0;
12119 }
12120 _ACEOF
12121 rm -f conftest.$ac_objext conftest$ac_exeext
12122 if { (ac_try="$ac_link"
12123 case "(($ac_try" in
12124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12125   *) ac_try_echo=$ac_try;;
12126 esac
12127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12128   (eval "$ac_link") 2>conftest.er1
12129   ac_status=$?
12130   grep -v '^ *+' conftest.er1 >conftest.err
12131   rm -f conftest.er1
12132   cat conftest.err >&5
12133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134   (exit $ac_status); } &&
12135          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12136   { (case "(($ac_try" in
12137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12138   *) ac_try_echo=$ac_try;;
12139 esac
12140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12141   (eval "$ac_try") 2>&5
12142   ac_status=$?
12143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12144   (exit $ac_status); }; } &&
12145          { ac_try='test -s conftest$ac_exeext'
12146   { (case "(($ac_try" in
12147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12148   *) ac_try_echo=$ac_try;;
12149 esac
12150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12151   (eval "$ac_try") 2>&5
12152   ac_status=$?
12153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12154   (exit $ac_status); }; }; then
12155   eval "$as_ac_var=yes"
12156 else
12157   echo "$as_me: failed program was:" >&5
12158 sed 's/^/| /' conftest.$ac_ext >&5
12159
12160         eval "$as_ac_var=no"
12161 fi
12162
12163 rm -f core conftest.err conftest.$ac_objext \
12164       conftest$ac_exeext conftest.$ac_ext
12165 fi
12166 ac_res=`eval echo '${'$as_ac_var'}'`
12167                { echo "$as_me:$LINENO: result: $ac_res" >&5
12168 echo "${ECHO_T}$ac_res" >&6; }
12169 if test `eval echo '${'$as_ac_var'}'` = yes; then
12170   cat >>confdefs.h <<_ACEOF
12171 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12172 _ACEOF
12173
12174 fi
12175 done
12176
12177
12178
12179
12180 for ac_func in closedir opendir readdir
12181 do
12182 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12183 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12184 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12185 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12186   echo $ECHO_N "(cached) $ECHO_C" >&6
12187 else
12188   cat >conftest.$ac_ext <<_ACEOF
12189 /* confdefs.h.  */
12190 _ACEOF
12191 cat confdefs.h >>conftest.$ac_ext
12192 cat >>conftest.$ac_ext <<_ACEOF
12193 /* end confdefs.h.  */
12194 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12195    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12196 #define $ac_func innocuous_$ac_func
12197
12198 /* System header to define __stub macros and hopefully few prototypes,
12199     which can conflict with char $ac_func (); below.
12200     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12201     <limits.h> exists even on freestanding compilers.  */
12202
12203 #ifdef __STDC__
12204 # include <limits.h>
12205 #else
12206 # include <assert.h>
12207 #endif
12208
12209 #undef $ac_func
12210
12211 /* Override any GCC internal prototype to avoid an error.
12212    Use char because int might match the return type of a GCC
12213    builtin and then its argument prototype would still apply.  */
12214 #ifdef __cplusplus
12215 extern "C"
12216 #endif
12217 char $ac_func ();
12218 /* The GNU C library defines this for functions which it implements
12219     to always fail with ENOSYS.  Some functions are actually named
12220     something starting with __ and the normal name is an alias.  */
12221 #if defined __stub_$ac_func || defined __stub___$ac_func
12222 choke me
12223 #endif
12224
12225 int
12226 main ()
12227 {
12228 return $ac_func ();
12229   ;
12230   return 0;
12231 }
12232 _ACEOF
12233 rm -f conftest.$ac_objext conftest$ac_exeext
12234 if { (ac_try="$ac_link"
12235 case "(($ac_try" in
12236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12237   *) ac_try_echo=$ac_try;;
12238 esac
12239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12240   (eval "$ac_link") 2>conftest.er1
12241   ac_status=$?
12242   grep -v '^ *+' conftest.er1 >conftest.err
12243   rm -f conftest.er1
12244   cat conftest.err >&5
12245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12246   (exit $ac_status); } &&
12247          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12248   { (case "(($ac_try" in
12249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12250   *) ac_try_echo=$ac_try;;
12251 esac
12252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12253   (eval "$ac_try") 2>&5
12254   ac_status=$?
12255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256   (exit $ac_status); }; } &&
12257          { ac_try='test -s conftest$ac_exeext'
12258   { (case "(($ac_try" in
12259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12260   *) ac_try_echo=$ac_try;;
12261 esac
12262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12263   (eval "$ac_try") 2>&5
12264   ac_status=$?
12265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12266   (exit $ac_status); }; }; then
12267   eval "$as_ac_var=yes"
12268 else
12269   echo "$as_me: failed program was:" >&5
12270 sed 's/^/| /' conftest.$ac_ext >&5
12271
12272         eval "$as_ac_var=no"
12273 fi
12274
12275 rm -f core conftest.err conftest.$ac_objext \
12276       conftest$ac_exeext conftest.$ac_ext
12277 fi
12278 ac_res=`eval echo '${'$as_ac_var'}'`
12279                { echo "$as_me:$LINENO: result: $ac_res" >&5
12280 echo "${ECHO_T}$ac_res" >&6; }
12281 if test `eval echo '${'$as_ac_var'}'` = yes; then
12282   cat >>confdefs.h <<_ACEOF
12283 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12284 _ACEOF
12285
12286 fi
12287 done
12288
12289
12290 # Check whether --enable-shared was given.
12291 if test "${enable_shared+set}" = set; then
12292   enableval=$enable_shared; p=${PACKAGE-default}
12293     case $enableval in
12294     yes) enable_shared=yes ;;
12295     no) enable_shared=no ;;
12296     *)
12297       enable_shared=no
12298       # Look at the argument we got.  We use all the common list separators.
12299       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12300       for pkg in $enableval; do
12301         IFS="$lt_save_ifs"
12302         if test "X$pkg" = "X$p"; then
12303           enable_shared=yes
12304         fi
12305       done
12306       IFS="$lt_save_ifs"
12307       ;;
12308     esac
12309 else
12310   enable_shared=yes
12311 fi
12312
12313
12314 # Check whether --enable-static was given.
12315 if test "${enable_static+set}" = set; then
12316   enableval=$enable_static; p=${PACKAGE-default}
12317     case $enableval in
12318     yes) enable_static=yes ;;
12319     no) enable_static=no ;;
12320     *)
12321      enable_static=no
12322       # Look at the argument we got.  We use all the common list separators.
12323       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12324       for pkg in $enableval; do
12325         IFS="$lt_save_ifs"
12326         if test "X$pkg" = "X$p"; then
12327           enable_static=yes
12328         fi
12329       done
12330       IFS="$lt_save_ifs"
12331       ;;
12332     esac
12333 else
12334   enable_static=yes
12335 fi
12336
12337
12338 # Check whether --enable-fast-install was given.
12339 if test "${enable_fast_install+set}" = set; then
12340   enableval=$enable_fast_install; p=${PACKAGE-default}
12341     case $enableval in
12342     yes) enable_fast_install=yes ;;
12343     no) enable_fast_install=no ;;
12344     *)
12345       enable_fast_install=no
12346       # Look at the argument we got.  We use all the common list separators.
12347       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12348       for pkg in $enableval; do
12349         IFS="$lt_save_ifs"
12350         if test "X$pkg" = "X$p"; then
12351           enable_fast_install=yes
12352         fi
12353       done
12354       IFS="$lt_save_ifs"
12355       ;;
12356     esac
12357 else
12358   enable_fast_install=yes
12359 fi
12360
12361
12362 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12363 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12364 if test "${lt_cv_path_SED+set}" = set; then
12365   echo $ECHO_N "(cached) $ECHO_C" >&6
12366 else
12367   # Loop through the user's path and test for sed and gsed.
12368 # Then use that list of sed's as ones to test for truncation.
12369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12370 for as_dir in $PATH
12371 do
12372   IFS=$as_save_IFS
12373   test -z "$as_dir" && as_dir=.
12374   for lt_ac_prog in sed gsed; do
12375     for ac_exec_ext in '' $ac_executable_extensions; do
12376       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12377         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12378       fi
12379     done
12380   done
12381 done
12382 lt_ac_max=0
12383 lt_ac_count=0
12384 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12385 # along with /bin/sed that truncates output.
12386 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12387   test ! -f $lt_ac_sed && continue
12388   cat /dev/null > conftest.in
12389   lt_ac_count=0
12390   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12391   # Check for GNU sed and select it if it is found.
12392   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12393     lt_cv_path_SED=$lt_ac_sed
12394     break
12395   fi
12396   while true; do
12397     cat conftest.in conftest.in >conftest.tmp
12398     mv conftest.tmp conftest.in
12399     cp conftest.in conftest.nl
12400     echo >>conftest.nl
12401     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12402     cmp -s conftest.out conftest.nl || break
12403     # 10000 chars as input seems more than enough
12404     test $lt_ac_count -gt 10 && break
12405     lt_ac_count=`expr $lt_ac_count + 1`
12406     if test $lt_ac_count -gt $lt_ac_max; then
12407       lt_ac_max=$lt_ac_count
12408       lt_cv_path_SED=$lt_ac_sed
12409     fi
12410   done
12411 done
12412
12413 fi
12414
12415 SED=$lt_cv_path_SED
12416 { echo "$as_me:$LINENO: result: $SED" >&5
12417 echo "${ECHO_T}$SED" >&6; }
12418
12419
12420 # Check whether --with-gnu-ld was given.
12421 if test "${with_gnu_ld+set}" = set; then
12422   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12423 else
12424   with_gnu_ld=no
12425 fi
12426
12427 ac_prog=ld
12428 if test "$GCC" = yes; then
12429   # Check if gcc -print-prog-name=ld gives a path.
12430   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12431 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12432   case $host in
12433   *-*-mingw*)
12434     # gcc leaves a trailing carriage return which upsets mingw
12435     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12436   *)
12437     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12438   esac
12439   case $ac_prog in
12440     # Accept absolute paths.
12441     [\\/]* | ?:[\\/]*)
12442       re_direlt='/[^/][^/]*/\.\./'
12443       # Canonicalize the pathname of ld
12444       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12445       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12446         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12447       done
12448       test -z "$LD" && LD="$ac_prog"
12449       ;;
12450   "")
12451     # If it fails, then pretend we aren't using GCC.
12452     ac_prog=ld
12453     ;;
12454   *)
12455     # If it is relative, then search for the first ld in PATH.
12456     with_gnu_ld=unknown
12457     ;;
12458   esac
12459 elif test "$with_gnu_ld" = yes; then
12460   { echo "$as_me:$LINENO: checking for GNU ld" >&5
12461 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12462 else
12463   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12464 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12465 fi
12466 if test "${lt_cv_path_LD+set}" = set; then
12467   echo $ECHO_N "(cached) $ECHO_C" >&6
12468 else
12469   if test -z "$LD"; then
12470   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12471   for ac_dir in $PATH; do
12472     IFS="$lt_save_ifs"
12473     test -z "$ac_dir" && ac_dir=.
12474     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12475       lt_cv_path_LD="$ac_dir/$ac_prog"
12476       # Check to see if the program is GNU ld.  I'd rather use --version,
12477       # but apparently some variants of GNU ld only accept -v.
12478       # Break only if it was the GNU/non-GNU ld that we prefer.
12479       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12480       *GNU* | *'with BFD'*)
12481         test "$with_gnu_ld" != no && break
12482         ;;
12483       *)
12484         test "$with_gnu_ld" != yes && break
12485         ;;
12486       esac
12487     fi
12488   done
12489   IFS="$lt_save_ifs"
12490 else
12491   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12492 fi
12493 fi
12494
12495 LD="$lt_cv_path_LD"
12496 if test -n "$LD"; then
12497   { echo "$as_me:$LINENO: result: $LD" >&5
12498 echo "${ECHO_T}$LD" >&6; }
12499 else
12500   { echo "$as_me:$LINENO: result: no" >&5
12501 echo "${ECHO_T}no" >&6; }
12502 fi
12503 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12504 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12505    { (exit 1); exit 1; }; }
12506 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12507 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12508 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12509   echo $ECHO_N "(cached) $ECHO_C" >&6
12510 else
12511   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12512 case `$LD -v 2>&1 </dev/null` in
12513 *GNU* | *'with BFD'*)
12514   lt_cv_prog_gnu_ld=yes
12515   ;;
12516 *)
12517   lt_cv_prog_gnu_ld=no
12518   ;;
12519 esac
12520 fi
12521 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12522 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12523 with_gnu_ld=$lt_cv_prog_gnu_ld
12524
12525
12526 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12527 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12528 if test "${lt_cv_ld_reload_flag+set}" = set; then
12529   echo $ECHO_N "(cached) $ECHO_C" >&6
12530 else
12531   lt_cv_ld_reload_flag='-r'
12532 fi
12533 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12534 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12535 reload_flag=$lt_cv_ld_reload_flag
12536 case $reload_flag in
12537 "" | " "*) ;;
12538 *) reload_flag=" $reload_flag" ;;
12539 esac
12540 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12541 case $host_os in
12542   darwin*)
12543     if test "$GCC" = yes; then
12544       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12545     else
12546       reload_cmds='$LD$reload_flag -o $output$reload_objs'
12547     fi
12548     ;;
12549 esac
12550
12551 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12552 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12553 if test "${lt_cv_deplibs_check_method+set}" = set; then
12554   echo $ECHO_N "(cached) $ECHO_C" >&6
12555 else
12556   lt_cv_file_magic_cmd='$MAGIC_CMD'
12557 lt_cv_file_magic_test_file=
12558 lt_cv_deplibs_check_method='unknown'
12559 # Need to set the preceding variable on all platforms that support
12560 # interlibrary dependencies.
12561 # 'none' -- dependencies not supported.
12562 # `unknown' -- same as none, but documents that we really don't know.
12563 # 'pass_all' -- all dependencies passed with no checks.
12564 # 'test_compile' -- check by making test program.
12565 # 'file_magic [[regex]]' -- check by looking for files in library path
12566 # which responds to the $file_magic_cmd with a given extended regex.
12567 # If you have `file' or equivalent on your system and you're not sure
12568 # whether `pass_all' will *always* work, you probably want this one.
12569
12570 case $host_os in
12571 aix4* | aix5*)
12572   lt_cv_deplibs_check_method=pass_all
12573   ;;
12574
12575 beos*)
12576   lt_cv_deplibs_check_method=pass_all
12577   ;;
12578
12579 bsdi[45]*)
12580   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12581   lt_cv_file_magic_cmd='/usr/bin/file -L'
12582   lt_cv_file_magic_test_file=/shlib/libc.so
12583   ;;
12584
12585 cygwin*)
12586   # func_win32_libid is a shell function defined in ltmain.sh
12587   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12588   lt_cv_file_magic_cmd='func_win32_libid'
12589   ;;
12590
12591 mingw* | pw32*)
12592   # Base MSYS/MinGW do not provide the 'file' command needed by
12593   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12594   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12595   lt_cv_file_magic_cmd='$OBJDUMP -f'
12596   ;;
12597
12598 darwin* | rhapsody*)
12599   lt_cv_deplibs_check_method=pass_all
12600   ;;
12601
12602 freebsd* | kfreebsd*-gnu | dragonfly*)
12603   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12604     case $host_cpu in
12605     i*86 )
12606       # Not sure whether the presence of OpenBSD here was a mistake.
12607       # Let's accept both of them until this is cleared up.
12608       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12609       lt_cv_file_magic_cmd=/usr/bin/file
12610       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12611       ;;
12612     esac
12613   else
12614     lt_cv_deplibs_check_method=pass_all
12615   fi
12616   ;;
12617
12618 gnu*)
12619   lt_cv_deplibs_check_method=pass_all
12620   ;;
12621
12622 hpux10.20* | hpux11*)
12623   lt_cv_file_magic_cmd=/usr/bin/file
12624   case $host_cpu in
12625   ia64*)
12626     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12627     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12628     ;;
12629   hppa*64*)
12630     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]'
12631     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12632     ;;
12633   *)
12634     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12635     lt_cv_file_magic_test_file=/usr/lib/libc.sl
12636     ;;
12637   esac
12638   ;;
12639
12640 interix3*)
12641   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12642   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12643   ;;
12644
12645 irix5* | irix6* | nonstopux*)
12646   case $LD in
12647   *-32|*"-32 ") libmagic=32-bit;;
12648   *-n32|*"-n32 ") libmagic=N32;;
12649   *-64|*"-64 ") libmagic=64-bit;;
12650   *) libmagic=never-match;;
12651   esac
12652   lt_cv_deplibs_check_method=pass_all
12653   ;;
12654
12655 # This must be Linux ELF.
12656 linux*)
12657   lt_cv_deplibs_check_method=pass_all
12658   ;;
12659
12660 netbsd*)
12661   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12662     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12663   else
12664     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12665   fi
12666   ;;
12667
12668 newos6*)
12669   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12670   lt_cv_file_magic_cmd=/usr/bin/file
12671   lt_cv_file_magic_test_file=/usr/lib/libnls.so
12672   ;;
12673
12674 nto-qnx*)
12675   lt_cv_deplibs_check_method=unknown
12676   ;;
12677
12678 openbsd*)
12679   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12680     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12681   else
12682     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12683   fi
12684   ;;
12685
12686 osf3* | osf4* | osf5*)
12687   lt_cv_deplibs_check_method=pass_all
12688   ;;
12689
12690 solaris*)
12691   lt_cv_deplibs_check_method=pass_all
12692   ;;
12693
12694 sysv4 | sysv4.3*)
12695   case $host_vendor in
12696   motorola)
12697     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]'
12698     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12699     ;;
12700   ncr)
12701     lt_cv_deplibs_check_method=pass_all
12702     ;;
12703   sequent)
12704     lt_cv_file_magic_cmd='/bin/file'
12705     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12706     ;;
12707   sni)
12708     lt_cv_file_magic_cmd='/bin/file'
12709     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12710     lt_cv_file_magic_test_file=/lib/libc.so
12711     ;;
12712   siemens)
12713     lt_cv_deplibs_check_method=pass_all
12714     ;;
12715   pc)
12716     lt_cv_deplibs_check_method=pass_all
12717     ;;
12718   esac
12719   ;;
12720
12721 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12722   lt_cv_deplibs_check_method=pass_all
12723   ;;
12724 esac
12725
12726 fi
12727 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12728 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12729 file_magic_cmd=$lt_cv_file_magic_cmd
12730 deplibs_check_method=$lt_cv_deplibs_check_method
12731 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12732
12733
12734
12735 # If no C compiler was specified, use CC.
12736 LTCC=${LTCC-"$CC"}
12737
12738 # If no C compiler flags were specified, use CFLAGS.
12739 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12740
12741 # Allow CC to be a program name with arguments.
12742 compiler=$CC
12743
12744 # Check whether --enable-libtool-lock was given.
12745 if test "${enable_libtool_lock+set}" = set; then
12746   enableval=$enable_libtool_lock;
12747 fi
12748
12749 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12750
12751 # Some flags need to be propagated to the compiler or linker for good
12752 # libtool support.
12753 case $host in
12754 ia64-*-hpux*)
12755   # Find out which ABI we are using.
12756   echo 'int i;' > conftest.$ac_ext
12757   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12758   (eval $ac_compile) 2>&5
12759   ac_status=$?
12760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12761   (exit $ac_status); }; then
12762     case `/usr/bin/file conftest.$ac_objext` in
12763     *ELF-32*)
12764       HPUX_IA64_MODE="32"
12765       ;;
12766     *ELF-64*)
12767       HPUX_IA64_MODE="64"
12768       ;;
12769     esac
12770   fi
12771   rm -rf conftest*
12772   ;;
12773 *-*-irix6*)
12774   # Find out which ABI we are using.
12775   echo '#line 12775 "configure"' > conftest.$ac_ext
12776   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12777   (eval $ac_compile) 2>&5
12778   ac_status=$?
12779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12780   (exit $ac_status); }; then
12781    if test "$lt_cv_prog_gnu_ld" = yes; then
12782     case `/usr/bin/file conftest.$ac_objext` in
12783     *32-bit*)
12784       LD="${LD-ld} -melf32bsmip"
12785       ;;
12786     *N32*)
12787       LD="${LD-ld} -melf32bmipn32"
12788       ;;
12789     *64-bit*)
12790       LD="${LD-ld} -melf64bmip"
12791       ;;
12792     esac
12793    else
12794     case `/usr/bin/file conftest.$ac_objext` in
12795     *32-bit*)
12796       LD="${LD-ld} -32"
12797       ;;
12798     *N32*)
12799       LD="${LD-ld} -n32"
12800       ;;
12801     *64-bit*)
12802       LD="${LD-ld} -64"
12803       ;;
12804     esac
12805    fi
12806   fi
12807   rm -rf conftest*
12808   ;;
12809
12810 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12811   # Find out which ABI we are using.
12812   echo 'int i;' > conftest.$ac_ext
12813   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12814   (eval $ac_compile) 2>&5
12815   ac_status=$?
12816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12817   (exit $ac_status); }; then
12818     case `/usr/bin/file conftest.o` in
12819     *32-bit*)
12820       case $host in
12821         x86_64-*linux*)
12822           LD="${LD-ld} -m elf_i386"
12823           ;;
12824         ppc64-*linux*|powerpc64-*linux*)
12825           LD="${LD-ld} -m elf32ppclinux"
12826           ;;
12827         s390x-*linux*)
12828           LD="${LD-ld} -m elf_s390"
12829           ;;
12830         sparc64-*linux*)
12831           LD="${LD-ld} -m elf32_sparc"
12832           ;;
12833       esac
12834       ;;
12835     *64-bit*)
12836       case $host in
12837         x86_64-*linux*)
12838           LD="${LD-ld} -m elf_x86_64"
12839           ;;
12840         ppc*-*linux*|powerpc*-*linux*)
12841           LD="${LD-ld} -m elf64ppc"
12842           ;;
12843         s390*-*linux*)
12844           LD="${LD-ld} -m elf64_s390"
12845           ;;
12846         sparc*-*linux*)
12847           LD="${LD-ld} -m elf64_sparc"
12848           ;;
12849       esac
12850       ;;
12851     esac
12852   fi
12853   rm -rf conftest*
12854   ;;
12855
12856 *-*-sco3.2v5*)
12857   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12858   SAVE_CFLAGS="$CFLAGS"
12859   CFLAGS="$CFLAGS -belf"
12860   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12861 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
12862 if test "${lt_cv_cc_needs_belf+set}" = set; then
12863   echo $ECHO_N "(cached) $ECHO_C" >&6
12864 else
12865   ac_ext=c
12866 ac_cpp='$CPP $CPPFLAGS'
12867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12870
12871      cat >conftest.$ac_ext <<_ACEOF
12872 /* confdefs.h.  */
12873 _ACEOF
12874 cat confdefs.h >>conftest.$ac_ext
12875 cat >>conftest.$ac_ext <<_ACEOF
12876 /* end confdefs.h.  */
12877
12878 int
12879 main ()
12880 {
12881
12882   ;
12883   return 0;
12884 }
12885 _ACEOF
12886 rm -f conftest.$ac_objext conftest$ac_exeext
12887 if { (ac_try="$ac_link"
12888 case "(($ac_try" in
12889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12890   *) ac_try_echo=$ac_try;;
12891 esac
12892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12893   (eval "$ac_link") 2>conftest.er1
12894   ac_status=$?
12895   grep -v '^ *+' conftest.er1 >conftest.err
12896   rm -f conftest.er1
12897   cat conftest.err >&5
12898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12899   (exit $ac_status); } &&
12900          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12901   { (case "(($ac_try" in
12902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12903   *) ac_try_echo=$ac_try;;
12904 esac
12905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12906   (eval "$ac_try") 2>&5
12907   ac_status=$?
12908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12909   (exit $ac_status); }; } &&
12910          { ac_try='test -s conftest$ac_exeext'
12911   { (case "(($ac_try" in
12912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12913   *) ac_try_echo=$ac_try;;
12914 esac
12915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12916   (eval "$ac_try") 2>&5
12917   ac_status=$?
12918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12919   (exit $ac_status); }; }; then
12920   lt_cv_cc_needs_belf=yes
12921 else
12922   echo "$as_me: failed program was:" >&5
12923 sed 's/^/| /' conftest.$ac_ext >&5
12924
12925         lt_cv_cc_needs_belf=no
12926 fi
12927
12928 rm -f core conftest.err conftest.$ac_objext \
12929       conftest$ac_exeext conftest.$ac_ext
12930      ac_ext=c
12931 ac_cpp='$CPP $CPPFLAGS'
12932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12935
12936 fi
12937 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12938 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
12939   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12940     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12941     CFLAGS="$SAVE_CFLAGS"
12942   fi
12943   ;;
12944 sparc*-*solaris*)
12945   # Find out which ABI we are using.
12946   echo 'int i;' > conftest.$ac_ext
12947   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12948   (eval $ac_compile) 2>&5
12949   ac_status=$?
12950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12951   (exit $ac_status); }; then
12952     case `/usr/bin/file conftest.o` in
12953     *64-bit*)
12954       case $lt_cv_prog_gnu_ld in
12955       yes*) LD="${LD-ld} -m elf64_sparc" ;;
12956       *)    LD="${LD-ld} -64" ;;
12957       esac
12958       ;;
12959     esac
12960   fi
12961   rm -rf conftest*
12962   ;;
12963
12964
12965 esac
12966
12967 need_locks="$enable_libtool_lock"
12968
12969
12970
12971
12972 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12973     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12974     (test "X$CXX" != "Xg++"))) ; then
12975   ac_ext=cpp
12976 ac_cpp='$CXXCPP $CPPFLAGS'
12977 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12978 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12979 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12980 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12981 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12982 if test -z "$CXXCPP"; then
12983   if test "${ac_cv_prog_CXXCPP+set}" = set; then
12984   echo $ECHO_N "(cached) $ECHO_C" >&6
12985 else
12986       # Double quotes because CXXCPP needs to be expanded
12987     for CXXCPP in "$CXX -E" "/lib/cpp"
12988     do
12989       ac_preproc_ok=false
12990 for ac_cxx_preproc_warn_flag in '' yes
12991 do
12992   # Use a header file that comes with gcc, so configuring glibc
12993   # with a fresh cross-compiler works.
12994   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12995   # <limits.h> exists even on freestanding compilers.
12996   # On the NeXT, cc -E runs the code through the compiler's parser,
12997   # not just through cpp. "Syntax error" is here to catch this case.
12998   cat >conftest.$ac_ext <<_ACEOF
12999 /* confdefs.h.  */
13000 _ACEOF
13001 cat confdefs.h >>conftest.$ac_ext
13002 cat >>conftest.$ac_ext <<_ACEOF
13003 /* end confdefs.h.  */
13004 #ifdef __STDC__
13005 # include <limits.h>
13006 #else
13007 # include <assert.h>
13008 #endif
13009                      Syntax error
13010 _ACEOF
13011 if { (ac_try="$ac_cpp conftest.$ac_ext"
13012 case "(($ac_try" in
13013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13014   *) ac_try_echo=$ac_try;;
13015 esac
13016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13017   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13018   ac_status=$?
13019   grep -v '^ *+' conftest.er1 >conftest.err
13020   rm -f conftest.er1
13021   cat conftest.err >&5
13022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13023   (exit $ac_status); } >/dev/null; then
13024   if test -s conftest.err; then
13025     ac_cpp_err=$ac_cxx_preproc_warn_flag
13026     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13027   else
13028     ac_cpp_err=
13029   fi
13030 else
13031   ac_cpp_err=yes
13032 fi
13033 if test -z "$ac_cpp_err"; then
13034   :
13035 else
13036   echo "$as_me: failed program was:" >&5
13037 sed 's/^/| /' conftest.$ac_ext >&5
13038
13039   # Broken: fails on valid input.
13040 continue
13041 fi
13042
13043 rm -f conftest.err conftest.$ac_ext
13044
13045   # OK, works on sane cases.  Now check whether nonexistent headers
13046   # can be detected and how.
13047   cat >conftest.$ac_ext <<_ACEOF
13048 /* confdefs.h.  */
13049 _ACEOF
13050 cat confdefs.h >>conftest.$ac_ext
13051 cat >>conftest.$ac_ext <<_ACEOF
13052 /* end confdefs.h.  */
13053 #include <ac_nonexistent.h>
13054 _ACEOF
13055 if { (ac_try="$ac_cpp conftest.$ac_ext"
13056 case "(($ac_try" in
13057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13058   *) ac_try_echo=$ac_try;;
13059 esac
13060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13061   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13062   ac_status=$?
13063   grep -v '^ *+' conftest.er1 >conftest.err
13064   rm -f conftest.er1
13065   cat conftest.err >&5
13066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13067   (exit $ac_status); } >/dev/null; then
13068   if test -s conftest.err; then
13069     ac_cpp_err=$ac_cxx_preproc_warn_flag
13070     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13071   else
13072     ac_cpp_err=
13073   fi
13074 else
13075   ac_cpp_err=yes
13076 fi
13077 if test -z "$ac_cpp_err"; then
13078   # Broken: success on invalid input.
13079 continue
13080 else
13081   echo "$as_me: failed program was:" >&5
13082 sed 's/^/| /' conftest.$ac_ext >&5
13083
13084   # Passes both tests.
13085 ac_preproc_ok=:
13086 break
13087 fi
13088
13089 rm -f conftest.err conftest.$ac_ext
13090
13091 done
13092 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13093 rm -f conftest.err conftest.$ac_ext
13094 if $ac_preproc_ok; then
13095   break
13096 fi
13097
13098     done
13099     ac_cv_prog_CXXCPP=$CXXCPP
13100
13101 fi
13102   CXXCPP=$ac_cv_prog_CXXCPP
13103 else
13104   ac_cv_prog_CXXCPP=$CXXCPP
13105 fi
13106 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
13107 echo "${ECHO_T}$CXXCPP" >&6; }
13108 ac_preproc_ok=false
13109 for ac_cxx_preproc_warn_flag in '' yes
13110 do
13111   # Use a header file that comes with gcc, so configuring glibc
13112   # with a fresh cross-compiler works.
13113   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13114   # <limits.h> exists even on freestanding compilers.
13115   # On the NeXT, cc -E runs the code through the compiler's parser,
13116   # not just through cpp. "Syntax error" is here to catch this case.
13117   cat >conftest.$ac_ext <<_ACEOF
13118 /* confdefs.h.  */
13119 _ACEOF
13120 cat confdefs.h >>conftest.$ac_ext
13121 cat >>conftest.$ac_ext <<_ACEOF
13122 /* end confdefs.h.  */
13123 #ifdef __STDC__
13124 # include <limits.h>
13125 #else
13126 # include <assert.h>
13127 #endif
13128                      Syntax error
13129 _ACEOF
13130 if { (ac_try="$ac_cpp conftest.$ac_ext"
13131 case "(($ac_try" in
13132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13133   *) ac_try_echo=$ac_try;;
13134 esac
13135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13136   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13137   ac_status=$?
13138   grep -v '^ *+' conftest.er1 >conftest.err
13139   rm -f conftest.er1
13140   cat conftest.err >&5
13141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13142   (exit $ac_status); } >/dev/null; then
13143   if test -s conftest.err; then
13144     ac_cpp_err=$ac_cxx_preproc_warn_flag
13145     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13146   else
13147     ac_cpp_err=
13148   fi
13149 else
13150   ac_cpp_err=yes
13151 fi
13152 if test -z "$ac_cpp_err"; then
13153   :
13154 else
13155   echo "$as_me: failed program was:" >&5
13156 sed 's/^/| /' conftest.$ac_ext >&5
13157
13158   # Broken: fails on valid input.
13159 continue
13160 fi
13161
13162 rm -f conftest.err conftest.$ac_ext
13163
13164   # OK, works on sane cases.  Now check whether nonexistent headers
13165   # can be detected and how.
13166   cat >conftest.$ac_ext <<_ACEOF
13167 /* confdefs.h.  */
13168 _ACEOF
13169 cat confdefs.h >>conftest.$ac_ext
13170 cat >>conftest.$ac_ext <<_ACEOF
13171 /* end confdefs.h.  */
13172 #include <ac_nonexistent.h>
13173 _ACEOF
13174 if { (ac_try="$ac_cpp conftest.$ac_ext"
13175 case "(($ac_try" in
13176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13177   *) ac_try_echo=$ac_try;;
13178 esac
13179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13180   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13181   ac_status=$?
13182   grep -v '^ *+' conftest.er1 >conftest.err
13183   rm -f conftest.er1
13184   cat conftest.err >&5
13185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13186   (exit $ac_status); } >/dev/null; then
13187   if test -s conftest.err; then
13188     ac_cpp_err=$ac_cxx_preproc_warn_flag
13189     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13190   else
13191     ac_cpp_err=
13192   fi
13193 else
13194   ac_cpp_err=yes
13195 fi
13196 if test -z "$ac_cpp_err"; then
13197   # Broken: success on invalid input.
13198 continue
13199 else
13200   echo "$as_me: failed program was:" >&5
13201 sed 's/^/| /' conftest.$ac_ext >&5
13202
13203   # Passes both tests.
13204 ac_preproc_ok=:
13205 break
13206 fi
13207
13208 rm -f conftest.err conftest.$ac_ext
13209
13210 done
13211 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13212 rm -f conftest.err conftest.$ac_ext
13213 if $ac_preproc_ok; then
13214   :
13215 else
13216   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13217 See \`config.log' for more details." >&5
13218 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13219 See \`config.log' for more details." >&2;}
13220    { (exit 1); exit 1; }; }
13221 fi
13222
13223 ac_ext=cpp
13224 ac_cpp='$CXXCPP $CPPFLAGS'
13225 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13226 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13227 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13228
13229 fi
13230
13231
13232 ac_ext=f
13233 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13234 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13235 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13236 if test -n "$ac_tool_prefix"; then
13237   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
13238   do
13239     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13240 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13241 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13243 if test "${ac_cv_prog_F77+set}" = set; then
13244   echo $ECHO_N "(cached) $ECHO_C" >&6
13245 else
13246   if test -n "$F77"; then
13247   ac_cv_prog_F77="$F77" # Let the user override the test.
13248 else
13249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13250 for as_dir in $PATH
13251 do
13252   IFS=$as_save_IFS
13253   test -z "$as_dir" && as_dir=.
13254   for ac_exec_ext in '' $ac_executable_extensions; do
13255   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13256     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13257     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13258     break 2
13259   fi
13260 done
13261 done
13262 IFS=$as_save_IFS
13263
13264 fi
13265 fi
13266 F77=$ac_cv_prog_F77
13267 if test -n "$F77"; then
13268   { echo "$as_me:$LINENO: result: $F77" >&5
13269 echo "${ECHO_T}$F77" >&6; }
13270 else
13271   { echo "$as_me:$LINENO: result: no" >&5
13272 echo "${ECHO_T}no" >&6; }
13273 fi
13274
13275
13276     test -n "$F77" && break
13277   done
13278 fi
13279 if test -z "$F77"; then
13280   ac_ct_F77=$F77
13281   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
13282 do
13283   # Extract the first word of "$ac_prog", so it can be a program name with args.
13284 set dummy $ac_prog; ac_word=$2
13285 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13287 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13288   echo $ECHO_N "(cached) $ECHO_C" >&6
13289 else
13290   if test -n "$ac_ct_F77"; then
13291   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13292 else
13293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13294 for as_dir in $PATH
13295 do
13296   IFS=$as_save_IFS
13297   test -z "$as_dir" && as_dir=.
13298   for ac_exec_ext in '' $ac_executable_extensions; do
13299   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13300     ac_cv_prog_ac_ct_F77="$ac_prog"
13301     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13302     break 2
13303   fi
13304 done
13305 done
13306 IFS=$as_save_IFS
13307
13308 fi
13309 fi
13310 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13311 if test -n "$ac_ct_F77"; then
13312   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13313 echo "${ECHO_T}$ac_ct_F77" >&6; }
13314 else
13315   { echo "$as_me:$LINENO: result: no" >&5
13316 echo "${ECHO_T}no" >&6; }
13317 fi
13318
13319
13320   test -n "$ac_ct_F77" && break
13321 done
13322
13323   if test "x$ac_ct_F77" = x; then
13324     F77=""
13325   else
13326     case $cross_compiling:$ac_tool_warned in
13327 yes:)
13328 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13329 whose name does not start with the host triplet.  If you think this
13330 configuration is useful to you, please write to autoconf@gnu.org." >&5
13331 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13332 whose name does not start with the host triplet.  If you think this
13333 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13334 ac_tool_warned=yes ;;
13335 esac
13336     F77=$ac_ct_F77
13337   fi
13338 fi
13339
13340
13341 # Provide some information about the compiler.
13342 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13343 ac_compiler=`set X $ac_compile; echo $2`
13344 { (ac_try="$ac_compiler --version >&5"
13345 case "(($ac_try" in
13346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13347   *) ac_try_echo=$ac_try;;
13348 esac
13349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13350   (eval "$ac_compiler --version >&5") 2>&5
13351   ac_status=$?
13352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13353   (exit $ac_status); }
13354 { (ac_try="$ac_compiler -v >&5"
13355 case "(($ac_try" in
13356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13357   *) ac_try_echo=$ac_try;;
13358 esac
13359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13360   (eval "$ac_compiler -v >&5") 2>&5
13361   ac_status=$?
13362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13363   (exit $ac_status); }
13364 { (ac_try="$ac_compiler -V >&5"
13365 case "(($ac_try" in
13366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13367   *) ac_try_echo=$ac_try;;
13368 esac
13369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13370   (eval "$ac_compiler -V >&5") 2>&5
13371   ac_status=$?
13372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13373   (exit $ac_status); }
13374 rm -f a.out
13375
13376 # If we don't use `.F' as extension, the preprocessor is not run on the
13377 # input file.  (Note that this only needs to work for GNU compilers.)
13378 ac_save_ext=$ac_ext
13379 ac_ext=F
13380 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13381 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13382 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13383   echo $ECHO_N "(cached) $ECHO_C" >&6
13384 else
13385   cat >conftest.$ac_ext <<_ACEOF
13386       program main
13387 #ifndef __GNUC__
13388        choke me
13389 #endif
13390
13391       end
13392 _ACEOF
13393 rm -f conftest.$ac_objext
13394 if { (ac_try="$ac_compile"
13395 case "(($ac_try" in
13396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13397   *) ac_try_echo=$ac_try;;
13398 esac
13399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13400   (eval "$ac_compile") 2>conftest.er1
13401   ac_status=$?
13402   grep -v '^ *+' conftest.er1 >conftest.err
13403   rm -f conftest.er1
13404   cat conftest.err >&5
13405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13406   (exit $ac_status); } &&
13407          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13408   { (case "(($ac_try" in
13409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13410   *) ac_try_echo=$ac_try;;
13411 esac
13412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13413   (eval "$ac_try") 2>&5
13414   ac_status=$?
13415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13416   (exit $ac_status); }; } &&
13417          { ac_try='test -s conftest.$ac_objext'
13418   { (case "(($ac_try" in
13419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13420   *) ac_try_echo=$ac_try;;
13421 esac
13422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13423   (eval "$ac_try") 2>&5
13424   ac_status=$?
13425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13426   (exit $ac_status); }; }; then
13427   ac_compiler_gnu=yes
13428 else
13429   echo "$as_me: failed program was:" >&5
13430 sed 's/^/| /' conftest.$ac_ext >&5
13431
13432         ac_compiler_gnu=no
13433 fi
13434
13435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13436 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13437
13438 fi
13439 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13440 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13441 ac_ext=$ac_save_ext
13442 ac_test_FFLAGS=${FFLAGS+set}
13443 ac_save_FFLAGS=$FFLAGS
13444 FFLAGS=
13445 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13446 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13447 if test "${ac_cv_prog_f77_g+set}" = set; then
13448   echo $ECHO_N "(cached) $ECHO_C" >&6
13449 else
13450   FFLAGS=-g
13451 cat >conftest.$ac_ext <<_ACEOF
13452       program main
13453
13454       end
13455 _ACEOF
13456 rm -f conftest.$ac_objext
13457 if { (ac_try="$ac_compile"
13458 case "(($ac_try" in
13459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13460   *) ac_try_echo=$ac_try;;
13461 esac
13462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13463   (eval "$ac_compile") 2>conftest.er1
13464   ac_status=$?
13465   grep -v '^ *+' conftest.er1 >conftest.err
13466   rm -f conftest.er1
13467   cat conftest.err >&5
13468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13469   (exit $ac_status); } &&
13470          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13471   { (case "(($ac_try" in
13472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13473   *) ac_try_echo=$ac_try;;
13474 esac
13475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13476   (eval "$ac_try") 2>&5
13477   ac_status=$?
13478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13479   (exit $ac_status); }; } &&
13480          { ac_try='test -s conftest.$ac_objext'
13481   { (case "(($ac_try" in
13482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13483   *) ac_try_echo=$ac_try;;
13484 esac
13485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13486   (eval "$ac_try") 2>&5
13487   ac_status=$?
13488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13489   (exit $ac_status); }; }; then
13490   ac_cv_prog_f77_g=yes
13491 else
13492   echo "$as_me: failed program was:" >&5
13493 sed 's/^/| /' conftest.$ac_ext >&5
13494
13495         ac_cv_prog_f77_g=no
13496 fi
13497
13498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13499
13500 fi
13501 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13502 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13503 if test "$ac_test_FFLAGS" = set; then
13504   FFLAGS=$ac_save_FFLAGS
13505 elif test $ac_cv_prog_f77_g = yes; then
13506   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13507     FFLAGS="-g -O2"
13508   else
13509     FFLAGS="-g"
13510   fi
13511 else
13512   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13513     FFLAGS="-O2"
13514   else
13515     FFLAGS=
13516   fi
13517 fi
13518
13519 G77=`test $ac_compiler_gnu = yes && echo yes`
13520 ac_ext=c
13521 ac_cpp='$CPP $CPPFLAGS'
13522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13525
13526
13527
13528 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13529
13530 # find the maximum length of command line arguments
13531 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13532 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13533 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13534   echo $ECHO_N "(cached) $ECHO_C" >&6
13535 else
13536     i=0
13537   teststring="ABCD"
13538
13539   case $build_os in
13540   msdosdjgpp*)
13541     # On DJGPP, this test can blow up pretty badly due to problems in libc
13542     # (any single argument exceeding 2000 bytes causes a buffer overrun
13543     # during glob expansion).  Even if it were fixed, the result of this
13544     # check would be larger than it should be.
13545     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
13546     ;;
13547
13548   gnu*)
13549     # Under GNU Hurd, this test is not required because there is
13550     # no limit to the length of command line arguments.
13551     # Libtool will interpret -1 as no limit whatsoever
13552     lt_cv_sys_max_cmd_len=-1;
13553     ;;
13554
13555   cygwin* | mingw*)
13556     # On Win9x/ME, this test blows up -- it succeeds, but takes
13557     # about 5 minutes as the teststring grows exponentially.
13558     # Worse, since 9x/ME are not pre-emptively multitasking,
13559     # you end up with a "frozen" computer, even though with patience
13560     # the test eventually succeeds (with a max line length of 256k).
13561     # Instead, let's just punt: use the minimum linelength reported by
13562     # all of the supported platforms: 8192 (on NT/2K/XP).
13563     lt_cv_sys_max_cmd_len=8192;
13564     ;;
13565
13566   amigaos*)
13567     # On AmigaOS with pdksh, this test takes hours, literally.
13568     # So we just punt and use a minimum line length of 8192.
13569     lt_cv_sys_max_cmd_len=8192;
13570     ;;
13571
13572   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13573     # This has been around since 386BSD, at least.  Likely further.
13574     if test -x /sbin/sysctl; then
13575       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13576     elif test -x /usr/sbin/sysctl; then
13577       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13578     else
13579       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
13580     fi
13581     # And add a safety zone
13582     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13583     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13584     ;;
13585
13586   interix*)
13587     # We know the value 262144 and hardcode it with a safety zone (like BSD)
13588     lt_cv_sys_max_cmd_len=196608
13589     ;;
13590
13591   osf*)
13592     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13593     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13594     # nice to cause kernel panics so lets avoid the loop below.
13595     # First set a reasonable default.
13596     lt_cv_sys_max_cmd_len=16384
13597     #
13598     if test -x /sbin/sysconfig; then
13599       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13600         *1*) lt_cv_sys_max_cmd_len=-1 ;;
13601       esac
13602     fi
13603     ;;
13604   sco3.2v5*)
13605     lt_cv_sys_max_cmd_len=102400
13606     ;;
13607   sysv5* | sco5v6* | sysv4.2uw2*)
13608     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13609     if test -n "$kargmax"; then
13610       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
13611     else
13612       lt_cv_sys_max_cmd_len=32768
13613     fi
13614     ;;
13615   *)
13616     # If test is not a shell built-in, we'll probably end up computing a
13617     # maximum length that is only half of the actual maximum length, but
13618     # we can't tell.
13619     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13620     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13621                = "XX$teststring") >/dev/null 2>&1 &&
13622             new_result=`expr "X$teststring" : ".*" 2>&1` &&
13623             lt_cv_sys_max_cmd_len=$new_result &&
13624             test $i != 17 # 1/2 MB should be enough
13625     do
13626       i=`expr $i + 1`
13627       teststring=$teststring$teststring
13628     done
13629     teststring=
13630     # Add a significant safety factor because C++ compilers can tack on massive
13631     # amounts of additional arguments before passing them to the linker.
13632     # It appears as though 1/2 is a usable value.
13633     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13634     ;;
13635   esac
13636
13637 fi
13638
13639 if test -n $lt_cv_sys_max_cmd_len ; then
13640   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13641 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13642 else
13643   { echo "$as_me:$LINENO: result: none" >&5
13644 echo "${ECHO_T}none" >&6; }
13645 fi
13646
13647
13648
13649
13650 # Check for command to grab the raw symbol name followed by C symbol from nm.
13651 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13652 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13653 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13654   echo $ECHO_N "(cached) $ECHO_C" >&6
13655 else
13656
13657 # These are sane defaults that work on at least a few old systems.
13658 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
13659
13660 # Character class describing NM global symbol codes.
13661 symcode='[BCDEGRST]'
13662
13663 # Regexp to match symbols that can be accessed directly from C.
13664 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13665
13666 # Transform an extracted symbol line into a proper C declaration
13667 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13668
13669 # Transform an extracted symbol line into symbol name and symbol address
13670 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'"
13671
13672 # Define system-specific variables.
13673 case $host_os in
13674 aix*)
13675   symcode='[BCDT]'
13676   ;;
13677 cygwin* | mingw* | pw32*)
13678   symcode='[ABCDGISTW]'
13679   ;;
13680 hpux*) # Its linker distinguishes data from code symbols
13681   if test "$host_cpu" = ia64; then
13682     symcode='[ABCDEGRST]'
13683   fi
13684   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13685   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'"
13686   ;;
13687 linux*)
13688   if test "$host_cpu" = ia64; then
13689     symcode='[ABCDGIRSTW]'
13690     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13691     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'"
13692   fi
13693   ;;
13694 irix* | nonstopux*)
13695   symcode='[BCDEGRST]'
13696   ;;
13697 osf*)
13698   symcode='[BCDEGQRST]'
13699   ;;
13700 solaris*)
13701   symcode='[BDRT]'
13702   ;;
13703 sco3.2v5*)
13704   symcode='[DT]'
13705   ;;
13706 sysv4.2uw2*)
13707   symcode='[DT]'
13708   ;;
13709 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13710   symcode='[ABDT]'
13711   ;;
13712 sysv4)
13713   symcode='[DFNSTU]'
13714   ;;
13715 esac
13716
13717 # Handle CRLF in mingw tool chain
13718 opt_cr=
13719 case $build_os in
13720 mingw*)
13721   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13722   ;;
13723 esac
13724
13725 # If we're using GNU nm, then use its standard symbol codes.
13726 case `$NM -V 2>&1` in
13727 *GNU* | *'with BFD'*)
13728   symcode='[ABCDGIRSTW]' ;;
13729 esac
13730
13731 # Try without a prefix undercore, then with it.
13732 for ac_symprfx in "" "_"; do
13733
13734   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13735   symxfrm="\\1 $ac_symprfx\\2 \\2"
13736
13737   # Write the raw and C identifiers.
13738   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13739
13740   # Check to see that the pipe works correctly.
13741   pipe_works=no
13742
13743   rm -f conftest*
13744   cat > conftest.$ac_ext <<EOF
13745 #ifdef __cplusplus
13746 extern "C" {
13747 #endif
13748 char nm_test_var;
13749 void nm_test_func(){}
13750 #ifdef __cplusplus
13751 }
13752 #endif
13753 int main(){nm_test_var='a';nm_test_func();return(0);}
13754 EOF
13755
13756   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13757   (eval $ac_compile) 2>&5
13758   ac_status=$?
13759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13760   (exit $ac_status); }; then
13761     # Now try to grab the symbols.
13762     nlist=conftest.nm
13763     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13764   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13765   ac_status=$?
13766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13767   (exit $ac_status); } && test -s "$nlist"; then
13768       # Try sorting and uniquifying the output.
13769       if sort "$nlist" | uniq > "$nlist"T; then
13770         mv -f "$nlist"T "$nlist"
13771       else
13772         rm -f "$nlist"T
13773       fi
13774
13775       # Make sure that we snagged all the symbols we need.
13776       if grep ' nm_test_var$' "$nlist" >/dev/null; then
13777         if grep ' nm_test_func$' "$nlist" >/dev/null; then
13778           cat <<EOF > conftest.$ac_ext
13779 #ifdef __cplusplus
13780 extern "C" {
13781 #endif
13782
13783 EOF
13784           # Now generate the symbol file.
13785           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13786
13787           cat <<EOF >> conftest.$ac_ext
13788 #if defined (__STDC__) && __STDC__
13789 # define lt_ptr_t void *
13790 #else
13791 # define lt_ptr_t char *
13792 # define const
13793 #endif
13794
13795 /* The mapping between symbol names and symbols. */
13796 const struct {
13797   const char *name;
13798   lt_ptr_t address;
13799 }
13800 lt_preloaded_symbols[] =
13801 {
13802 EOF
13803           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13804           cat <<\EOF >> conftest.$ac_ext
13805   {0, (lt_ptr_t) 0}
13806 };
13807
13808 #ifdef __cplusplus
13809 }
13810 #endif
13811 EOF
13812           # Now try linking the two files.
13813           mv conftest.$ac_objext conftstm.$ac_objext
13814           lt_save_LIBS="$LIBS"
13815           lt_save_CFLAGS="$CFLAGS"
13816           LIBS="conftstm.$ac_objext"
13817           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13818           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13819   (eval $ac_link) 2>&5
13820   ac_status=$?
13821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13822   (exit $ac_status); } && test -s conftest${ac_exeext}; then
13823             pipe_works=yes
13824           fi
13825           LIBS="$lt_save_LIBS"
13826           CFLAGS="$lt_save_CFLAGS"
13827         else
13828           echo "cannot find nm_test_func in $nlist" >&5
13829         fi
13830       else
13831         echo "cannot find nm_test_var in $nlist" >&5
13832       fi
13833     else
13834       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13835     fi
13836   else
13837     echo "$progname: failed program was:" >&5
13838     cat conftest.$ac_ext >&5
13839   fi
13840   rm -f conftest* conftst*
13841
13842   # Do not use the global_symbol_pipe unless it works.
13843   if test "$pipe_works" = yes; then
13844     break
13845   else
13846     lt_cv_sys_global_symbol_pipe=
13847   fi
13848 done
13849
13850 fi
13851
13852 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13853   lt_cv_sys_global_symbol_to_cdecl=
13854 fi
13855 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13856   { echo "$as_me:$LINENO: result: failed" >&5
13857 echo "${ECHO_T}failed" >&6; }
13858 else
13859   { echo "$as_me:$LINENO: result: ok" >&5
13860 echo "${ECHO_T}ok" >&6; }
13861 fi
13862
13863 { echo "$as_me:$LINENO: checking for objdir" >&5
13864 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
13865 if test "${lt_cv_objdir+set}" = set; then
13866   echo $ECHO_N "(cached) $ECHO_C" >&6
13867 else
13868   rm -f .libs 2>/dev/null
13869 mkdir .libs 2>/dev/null
13870 if test -d .libs; then
13871   lt_cv_objdir=.libs
13872 else
13873   # MS-DOS does not allow filenames that begin with a dot.
13874   lt_cv_objdir=_libs
13875 fi
13876 rmdir .libs 2>/dev/null
13877 fi
13878 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13879 echo "${ECHO_T}$lt_cv_objdir" >&6; }
13880 objdir=$lt_cv_objdir
13881
13882
13883
13884
13885
13886 case $host_os in
13887 aix3*)
13888   # AIX sometimes has problems with the GCC collect2 program.  For some
13889   # reason, if we set the COLLECT_NAMES environment variable, the problems
13890   # vanish in a puff of smoke.
13891   if test "X${COLLECT_NAMES+set}" != Xset; then
13892     COLLECT_NAMES=
13893     export COLLECT_NAMES
13894   fi
13895   ;;
13896 esac
13897
13898 # Sed substitution that helps us do robust quoting.  It backslashifies
13899 # metacharacters that are still active within double-quoted strings.
13900 Xsed='sed -e 1s/^X//'
13901 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13902
13903 # Same as above, but do not quote variable references.
13904 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13905
13906 # Sed substitution to delay expansion of an escaped shell variable in a
13907 # double_quote_subst'ed string.
13908 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13909
13910 # Sed substitution to avoid accidental globbing in evaled expressions
13911 no_glob_subst='s/\*/\\\*/g'
13912
13913 # Constants:
13914 rm="rm -f"
13915
13916 # Global variables:
13917 default_ofile=mklib
13918 can_build_shared=yes
13919
13920 # All known linkers require a `.a' archive for static linking (except MSVC,
13921 # which needs '.lib').
13922 libext=a
13923 ltmain="$ac_aux_dir/ltmain.sh"
13924 ofile="$default_ofile"
13925 with_gnu_ld="$lt_cv_prog_gnu_ld"
13926
13927 if test -n "$ac_tool_prefix"; then
13928   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13929 set dummy ${ac_tool_prefix}ar; ac_word=$2
13930 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13932 if test "${ac_cv_prog_AR+set}" = set; then
13933   echo $ECHO_N "(cached) $ECHO_C" >&6
13934 else
13935   if test -n "$AR"; then
13936   ac_cv_prog_AR="$AR" # Let the user override the test.
13937 else
13938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13939 for as_dir in $PATH
13940 do
13941   IFS=$as_save_IFS
13942   test -z "$as_dir" && as_dir=.
13943   for ac_exec_ext in '' $ac_executable_extensions; do
13944   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13945     ac_cv_prog_AR="${ac_tool_prefix}ar"
13946     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13947     break 2
13948   fi
13949 done
13950 done
13951 IFS=$as_save_IFS
13952
13953 fi
13954 fi
13955 AR=$ac_cv_prog_AR
13956 if test -n "$AR"; then
13957   { echo "$as_me:$LINENO: result: $AR" >&5
13958 echo "${ECHO_T}$AR" >&6; }
13959 else
13960   { echo "$as_me:$LINENO: result: no" >&5
13961 echo "${ECHO_T}no" >&6; }
13962 fi
13963
13964
13965 fi
13966 if test -z "$ac_cv_prog_AR"; then
13967   ac_ct_AR=$AR
13968   # Extract the first word of "ar", so it can be a program name with args.
13969 set dummy ar; ac_word=$2
13970 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13972 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13973   echo $ECHO_N "(cached) $ECHO_C" >&6
13974 else
13975   if test -n "$ac_ct_AR"; then
13976   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13977 else
13978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13979 for as_dir in $PATH
13980 do
13981   IFS=$as_save_IFS
13982   test -z "$as_dir" && as_dir=.
13983   for ac_exec_ext in '' $ac_executable_extensions; do
13984   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13985     ac_cv_prog_ac_ct_AR="ar"
13986     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13987     break 2
13988   fi
13989 done
13990 done
13991 IFS=$as_save_IFS
13992
13993 fi
13994 fi
13995 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13996 if test -n "$ac_ct_AR"; then
13997   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13998 echo "${ECHO_T}$ac_ct_AR" >&6; }
13999 else
14000   { echo "$as_me:$LINENO: result: no" >&5
14001 echo "${ECHO_T}no" >&6; }
14002 fi
14003
14004   if test "x$ac_ct_AR" = x; then
14005     AR="false"
14006   else
14007     case $cross_compiling:$ac_tool_warned in
14008 yes:)
14009 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14010 whose name does not start with the host triplet.  If you think this
14011 configuration is useful to you, please write to autoconf@gnu.org." >&5
14012 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14013 whose name does not start with the host triplet.  If you think this
14014 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14015 ac_tool_warned=yes ;;
14016 esac
14017     AR=$ac_ct_AR
14018   fi
14019 else
14020   AR="$ac_cv_prog_AR"
14021 fi
14022
14023 if test -n "$ac_tool_prefix"; then
14024   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14025 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14026 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14028 if test "${ac_cv_prog_RANLIB+set}" = set; then
14029   echo $ECHO_N "(cached) $ECHO_C" >&6
14030 else
14031   if test -n "$RANLIB"; then
14032   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14033 else
14034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14035 for as_dir in $PATH
14036 do
14037   IFS=$as_save_IFS
14038   test -z "$as_dir" && as_dir=.
14039   for ac_exec_ext in '' $ac_executable_extensions; do
14040   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14041     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14042     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14043     break 2
14044   fi
14045 done
14046 done
14047 IFS=$as_save_IFS
14048
14049 fi
14050 fi
14051 RANLIB=$ac_cv_prog_RANLIB
14052 if test -n "$RANLIB"; then
14053   { echo "$as_me:$LINENO: result: $RANLIB" >&5
14054 echo "${ECHO_T}$RANLIB" >&6; }
14055 else
14056   { echo "$as_me:$LINENO: result: no" >&5
14057 echo "${ECHO_T}no" >&6; }
14058 fi
14059
14060
14061 fi
14062 if test -z "$ac_cv_prog_RANLIB"; then
14063   ac_ct_RANLIB=$RANLIB
14064   # Extract the first word of "ranlib", so it can be a program name with args.
14065 set dummy ranlib; ac_word=$2
14066 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14068 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14069   echo $ECHO_N "(cached) $ECHO_C" >&6
14070 else
14071   if test -n "$ac_ct_RANLIB"; then
14072   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14073 else
14074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14075 for as_dir in $PATH
14076 do
14077   IFS=$as_save_IFS
14078   test -z "$as_dir" && as_dir=.
14079   for ac_exec_ext in '' $ac_executable_extensions; do
14080   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14081     ac_cv_prog_ac_ct_RANLIB="ranlib"
14082     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14083     break 2
14084   fi
14085 done
14086 done
14087 IFS=$as_save_IFS
14088
14089 fi
14090 fi
14091 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14092 if test -n "$ac_ct_RANLIB"; then
14093   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14094 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14095 else
14096   { echo "$as_me:$LINENO: result: no" >&5
14097 echo "${ECHO_T}no" >&6; }
14098 fi
14099
14100   if test "x$ac_ct_RANLIB" = x; then
14101     RANLIB=":"
14102   else
14103     case $cross_compiling:$ac_tool_warned in
14104 yes:)
14105 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14106 whose name does not start with the host triplet.  If you think this
14107 configuration is useful to you, please write to autoconf@gnu.org." >&5
14108 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14109 whose name does not start with the host triplet.  If you think this
14110 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14111 ac_tool_warned=yes ;;
14112 esac
14113     RANLIB=$ac_ct_RANLIB
14114   fi
14115 else
14116   RANLIB="$ac_cv_prog_RANLIB"
14117 fi
14118
14119 if test -n "$ac_tool_prefix"; then
14120   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14121 set dummy ${ac_tool_prefix}strip; ac_word=$2
14122 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14124 if test "${ac_cv_prog_STRIP+set}" = set; then
14125   echo $ECHO_N "(cached) $ECHO_C" >&6
14126 else
14127   if test -n "$STRIP"; then
14128   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14129 else
14130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14131 for as_dir in $PATH
14132 do
14133   IFS=$as_save_IFS
14134   test -z "$as_dir" && as_dir=.
14135   for ac_exec_ext in '' $ac_executable_extensions; do
14136   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14137     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14138     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14139     break 2
14140   fi
14141 done
14142 done
14143 IFS=$as_save_IFS
14144
14145 fi
14146 fi
14147 STRIP=$ac_cv_prog_STRIP
14148 if test -n "$STRIP"; then
14149   { echo "$as_me:$LINENO: result: $STRIP" >&5
14150 echo "${ECHO_T}$STRIP" >&6; }
14151 else
14152   { echo "$as_me:$LINENO: result: no" >&5
14153 echo "${ECHO_T}no" >&6; }
14154 fi
14155
14156
14157 fi
14158 if test -z "$ac_cv_prog_STRIP"; then
14159   ac_ct_STRIP=$STRIP
14160   # Extract the first word of "strip", so it can be a program name with args.
14161 set dummy strip; ac_word=$2
14162 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14164 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14165   echo $ECHO_N "(cached) $ECHO_C" >&6
14166 else
14167   if test -n "$ac_ct_STRIP"; then
14168   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14169 else
14170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14171 for as_dir in $PATH
14172 do
14173   IFS=$as_save_IFS
14174   test -z "$as_dir" && as_dir=.
14175   for ac_exec_ext in '' $ac_executable_extensions; do
14176   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14177     ac_cv_prog_ac_ct_STRIP="strip"
14178     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14179     break 2
14180   fi
14181 done
14182 done
14183 IFS=$as_save_IFS
14184
14185 fi
14186 fi
14187 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14188 if test -n "$ac_ct_STRIP"; then
14189   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14190 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14191 else
14192   { echo "$as_me:$LINENO: result: no" >&5
14193 echo "${ECHO_T}no" >&6; }
14194 fi
14195
14196   if test "x$ac_ct_STRIP" = x; then
14197     STRIP=":"
14198   else
14199     case $cross_compiling:$ac_tool_warned in
14200 yes:)
14201 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14202 whose name does not start with the host triplet.  If you think this
14203 configuration is useful to you, please write to autoconf@gnu.org." >&5
14204 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14205 whose name does not start with the host triplet.  If you think this
14206 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14207 ac_tool_warned=yes ;;
14208 esac
14209     STRIP=$ac_ct_STRIP
14210   fi
14211 else
14212   STRIP="$ac_cv_prog_STRIP"
14213 fi
14214
14215
14216 old_CC="$CC"
14217 old_CFLAGS="$CFLAGS"
14218
14219 # Set sane defaults for various variables
14220 test -z "$AR" && AR=ar
14221 test -z "$AR_FLAGS" && AR_FLAGS=cru
14222 test -z "$AS" && AS=as
14223 test -z "$CC" && CC=cc
14224 test -z "$LTCC" && LTCC=$CC
14225 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14226 test -z "$DLLTOOL" && DLLTOOL=dlltool
14227 test -z "$LD" && LD=ld
14228 test -z "$LN_S" && LN_S="ln -s"
14229 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14230 test -z "$NM" && NM=nm
14231 test -z "$SED" && SED=sed
14232 test -z "$OBJDUMP" && OBJDUMP=objdump
14233 test -z "$RANLIB" && RANLIB=:
14234 test -z "$STRIP" && STRIP=:
14235 test -z "$ac_objext" && ac_objext=o
14236
14237 # Determine commands to create old-style static archives.
14238 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14239 old_postinstall_cmds='chmod 644 $oldlib'
14240 old_postuninstall_cmds=
14241
14242 if test -n "$RANLIB"; then
14243   case $host_os in
14244   openbsd*)
14245     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14246     ;;
14247   *)
14248     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14249     ;;
14250   esac
14251   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14252 fi
14253
14254 for cc_temp in $compiler""; do
14255   case $cc_temp in
14256     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14257     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14258     \-*) ;;
14259     *) break;;
14260   esac
14261 done
14262 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14263
14264
14265 # Only perform the check for file, if the check method requires it
14266 case $deplibs_check_method in
14267 file_magic*)
14268   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14269     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14270 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14271 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14272   echo $ECHO_N "(cached) $ECHO_C" >&6
14273 else
14274   case $MAGIC_CMD in
14275 [\\/*] |  ?:[\\/]*)
14276   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14277   ;;
14278 *)
14279   lt_save_MAGIC_CMD="$MAGIC_CMD"
14280   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14281   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14282   for ac_dir in $ac_dummy; do
14283     IFS="$lt_save_ifs"
14284     test -z "$ac_dir" && ac_dir=.
14285     if test -f $ac_dir/${ac_tool_prefix}file; then
14286       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14287       if test -n "$file_magic_test_file"; then
14288         case $deplibs_check_method in
14289         "file_magic "*)
14290           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14291           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14292           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14293             $EGREP "$file_magic_regex" > /dev/null; then
14294             :
14295           else
14296             cat <<EOF 1>&2
14297
14298 *** Warning: the command libtool uses to detect shared libraries,
14299 *** $file_magic_cmd, produces output that libtool cannot recognize.
14300 *** The result is that libtool may fail to recognize shared libraries
14301 *** as such.  This will affect the creation of libtool libraries that
14302 *** depend on shared libraries, but programs linked with such libtool
14303 *** libraries will work regardless of this problem.  Nevertheless, you
14304 *** may want to report the problem to your system manager and/or to
14305 *** bug-libtool@gnu.org
14306
14307 EOF
14308           fi ;;
14309         esac
14310       fi
14311       break
14312     fi
14313   done
14314   IFS="$lt_save_ifs"
14315   MAGIC_CMD="$lt_save_MAGIC_CMD"
14316   ;;
14317 esac
14318 fi
14319
14320 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14321 if test -n "$MAGIC_CMD"; then
14322   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14323 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14324 else
14325   { echo "$as_me:$LINENO: result: no" >&5
14326 echo "${ECHO_T}no" >&6; }
14327 fi
14328
14329 if test -z "$lt_cv_path_MAGIC_CMD"; then
14330   if test -n "$ac_tool_prefix"; then
14331     { echo "$as_me:$LINENO: checking for file" >&5
14332 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14333 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14334   echo $ECHO_N "(cached) $ECHO_C" >&6
14335 else
14336   case $MAGIC_CMD in
14337 [\\/*] |  ?:[\\/]*)
14338   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14339   ;;
14340 *)
14341   lt_save_MAGIC_CMD="$MAGIC_CMD"
14342   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14343   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14344   for ac_dir in $ac_dummy; do
14345     IFS="$lt_save_ifs"
14346     test -z "$ac_dir" && ac_dir=.
14347     if test -f $ac_dir/file; then
14348       lt_cv_path_MAGIC_CMD="$ac_dir/file"
14349       if test -n "$file_magic_test_file"; then
14350         case $deplibs_check_method in
14351         "file_magic "*)
14352           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14353           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14354           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14355             $EGREP "$file_magic_regex" > /dev/null; then
14356             :
14357           else
14358             cat <<EOF 1>&2
14359
14360 *** Warning: the command libtool uses to detect shared libraries,
14361 *** $file_magic_cmd, produces output that libtool cannot recognize.
14362 *** The result is that libtool may fail to recognize shared libraries
14363 *** as such.  This will affect the creation of libtool libraries that
14364 *** depend on shared libraries, but programs linked with such libtool
14365 *** libraries will work regardless of this problem.  Nevertheless, you
14366 *** may want to report the problem to your system manager and/or to
14367 *** bug-libtool@gnu.org
14368
14369 EOF
14370           fi ;;
14371         esac
14372       fi
14373       break
14374     fi
14375   done
14376   IFS="$lt_save_ifs"
14377   MAGIC_CMD="$lt_save_MAGIC_CMD"
14378   ;;
14379 esac
14380 fi
14381
14382 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14383 if test -n "$MAGIC_CMD"; then
14384   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14385 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14386 else
14387   { echo "$as_me:$LINENO: result: no" >&5
14388 echo "${ECHO_T}no" >&6; }
14389 fi
14390
14391   else
14392     MAGIC_CMD=:
14393   fi
14394 fi
14395
14396   fi
14397   ;;
14398 esac
14399
14400 enable_dlopen=yes
14401 enable_win32_dll=no
14402
14403 # Check whether --enable-libtool-lock was given.
14404 if test "${enable_libtool_lock+set}" = set; then
14405   enableval=$enable_libtool_lock;
14406 fi
14407
14408 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14409
14410
14411 # Check whether --with-pic was given.
14412 if test "${with_pic+set}" = set; then
14413   withval=$with_pic; pic_mode="$withval"
14414 else
14415   pic_mode=default
14416 fi
14417
14418 test -z "$pic_mode" && pic_mode=default
14419
14420 # Use C for the default configuration in the libtool script
14421 tagname=
14422 lt_save_CC="$CC"
14423 ac_ext=c
14424 ac_cpp='$CPP $CPPFLAGS'
14425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14428
14429
14430 # Source file extension for C test sources.
14431 ac_ext=c
14432
14433 # Object file extension for compiled C test sources.
14434 objext=o
14435 objext=$objext
14436
14437 # Code to be used in simple compile tests
14438 lt_simple_compile_test_code="int some_variable = 0;\n"
14439
14440 # Code to be used in simple link tests
14441 lt_simple_link_test_code='int main(){return(0);}\n'
14442
14443
14444 # If no C compiler was specified, use CC.
14445 LTCC=${LTCC-"$CC"}
14446
14447 # If no C compiler flags were specified, use CFLAGS.
14448 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14449
14450 # Allow CC to be a program name with arguments.
14451 compiler=$CC
14452
14453
14454 # save warnings/boilerplate of simple test code
14455 ac_outfile=conftest.$ac_objext
14456 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14457 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14458 _lt_compiler_boilerplate=`cat conftest.err`
14459 $rm conftest*
14460
14461 ac_outfile=conftest.$ac_objext
14462 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14463 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14464 _lt_linker_boilerplate=`cat conftest.err`
14465 $rm conftest*
14466
14467
14468
14469 lt_prog_compiler_no_builtin_flag=
14470
14471 if test "$GCC" = yes; then
14472   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14473
14474
14475 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14476 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14477 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14478   echo $ECHO_N "(cached) $ECHO_C" >&6
14479 else
14480   lt_cv_prog_compiler_rtti_exceptions=no
14481   ac_outfile=conftest.$ac_objext
14482    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14483    lt_compiler_flag="-fno-rtti -fno-exceptions"
14484    # Insert the option either (1) after the last *FLAGS variable, or
14485    # (2) before a word containing "conftest.", or (3) at the end.
14486    # Note that $ac_compile itself does not contain backslashes and begins
14487    # with a dollar sign (not a hyphen), so the echo should work correctly.
14488    # The option is referenced via a variable to avoid confusing sed.
14489    lt_compile=`echo "$ac_compile" | $SED \
14490    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14491    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14492    -e 's:$: $lt_compiler_flag:'`
14493    (eval echo "\"\$as_me:14493: $lt_compile\"" >&5)
14494    (eval "$lt_compile" 2>conftest.err)
14495    ac_status=$?
14496    cat conftest.err >&5
14497    echo "$as_me:14497: \$? = $ac_status" >&5
14498    if (exit $ac_status) && test -s "$ac_outfile"; then
14499      # The compiler can only warn and ignore the option if not recognized
14500      # So say no if there are warnings other than the usual output.
14501      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14502      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14503      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14504        lt_cv_prog_compiler_rtti_exceptions=yes
14505      fi
14506    fi
14507    $rm conftest*
14508
14509 fi
14510 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14511 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14512
14513 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14514     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14515 else
14516     :
14517 fi
14518
14519 fi
14520
14521 lt_prog_compiler_wl=
14522 lt_prog_compiler_pic=
14523 lt_prog_compiler_static=
14524
14525 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14526 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14527
14528   if test "$GCC" = yes; then
14529     lt_prog_compiler_wl='-Wl,'
14530     lt_prog_compiler_static='-static'
14531
14532     case $host_os in
14533       aix*)
14534       # All AIX code is PIC.
14535       if test "$host_cpu" = ia64; then
14536         # AIX 5 now supports IA64 processor
14537         lt_prog_compiler_static='-Bstatic'
14538       fi
14539       ;;
14540
14541     amigaos*)
14542       # FIXME: we need at least 68020 code to build shared libraries, but
14543       # adding the `-m68020' flag to GCC prevents building anything better,
14544       # like `-m68040'.
14545       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14546       ;;
14547
14548     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14549       # PIC is the default for these OSes.
14550       ;;
14551
14552     mingw* | pw32* | os2*)
14553       # This hack is so that the source file can tell whether it is being
14554       # built for inclusion in a dll (and should export symbols for example).
14555       lt_prog_compiler_pic='-DDLL_EXPORT'
14556       ;;
14557
14558     darwin* | rhapsody*)
14559       # PIC is the default on this platform
14560       # Common symbols not allowed in MH_DYLIB files
14561       lt_prog_compiler_pic='-fno-common'
14562       ;;
14563
14564     interix3*)
14565       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14566       # Instead, we relocate shared libraries at runtime.
14567       ;;
14568
14569     msdosdjgpp*)
14570       # Just because we use GCC doesn't mean we suddenly get shared libraries
14571       # on systems that don't support them.
14572       lt_prog_compiler_can_build_shared=no
14573       enable_shared=no
14574       ;;
14575
14576     sysv4*MP*)
14577       if test -d /usr/nec; then
14578         lt_prog_compiler_pic=-Kconform_pic
14579       fi
14580       ;;
14581
14582     hpux*)
14583       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14584       # not for PA HP-UX.
14585       case $host_cpu in
14586       hppa*64*|ia64*)
14587         # +Z the default
14588         ;;
14589       *)
14590         lt_prog_compiler_pic='-fPIC'
14591         ;;
14592       esac
14593       ;;
14594
14595     *)
14596       lt_prog_compiler_pic='-fPIC'
14597       ;;
14598     esac
14599   else
14600     # PORTME Check for flag to pass linker flags through the system compiler.
14601     case $host_os in
14602     aix*)
14603       lt_prog_compiler_wl='-Wl,'
14604       if test "$host_cpu" = ia64; then
14605         # AIX 5 now supports IA64 processor
14606         lt_prog_compiler_static='-Bstatic'
14607       else
14608         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14609       fi
14610       ;;
14611       darwin*)
14612         # PIC is the default on this platform
14613         # Common symbols not allowed in MH_DYLIB files
14614        case $cc_basename in
14615          xlc*)
14616          lt_prog_compiler_pic='-qnocommon'
14617          lt_prog_compiler_wl='-Wl,'
14618          ;;
14619        esac
14620        ;;
14621
14622     mingw* | pw32* | os2*)
14623       # This hack is so that the source file can tell whether it is being
14624       # built for inclusion in a dll (and should export symbols for example).
14625       lt_prog_compiler_pic='-DDLL_EXPORT'
14626       ;;
14627
14628     hpux9* | hpux10* | hpux11*)
14629       lt_prog_compiler_wl='-Wl,'
14630       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14631       # not for PA HP-UX.
14632       case $host_cpu in
14633       hppa*64*|ia64*)
14634         # +Z the default
14635         ;;
14636       *)
14637         lt_prog_compiler_pic='+Z'
14638         ;;
14639       esac
14640       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14641       lt_prog_compiler_static='${wl}-a ${wl}archive'
14642       ;;
14643
14644     irix5* | irix6* | nonstopux*)
14645       lt_prog_compiler_wl='-Wl,'
14646       # PIC (with -KPIC) is the default.
14647       lt_prog_compiler_static='-non_shared'
14648       ;;
14649
14650     newsos6)
14651       lt_prog_compiler_pic='-KPIC'
14652       lt_prog_compiler_static='-Bstatic'
14653       ;;
14654
14655     linux*)
14656       case $cc_basename in
14657       icc* | ecc*)
14658         lt_prog_compiler_wl='-Wl,'
14659         lt_prog_compiler_pic='-KPIC'
14660         lt_prog_compiler_static='-static'
14661         ;;
14662       pgcc* | pgf77* | pgf90* | pgf95*)
14663         # Portland Group compilers (*not* the Pentium gcc compiler,
14664         # which looks to be a dead project)
14665         lt_prog_compiler_wl='-Wl,'
14666         lt_prog_compiler_pic='-fpic'
14667         lt_prog_compiler_static='-Bstatic'
14668         ;;
14669       ccc*)
14670         lt_prog_compiler_wl='-Wl,'
14671         # All Alpha code is PIC.
14672         lt_prog_compiler_static='-non_shared'
14673         ;;
14674       esac
14675       ;;
14676
14677     osf3* | osf4* | osf5*)
14678       lt_prog_compiler_wl='-Wl,'
14679       # All OSF/1 code is PIC.
14680       lt_prog_compiler_static='-non_shared'
14681       ;;
14682
14683     solaris*)
14684       lt_prog_compiler_pic='-KPIC'
14685       lt_prog_compiler_static='-Bstatic'
14686       case $cc_basename in
14687       f77* | f90* | f95*)
14688         lt_prog_compiler_wl='-Qoption ld ';;
14689       *)
14690         lt_prog_compiler_wl='-Wl,';;
14691       esac
14692       ;;
14693
14694     sunos4*)
14695       lt_prog_compiler_wl='-Qoption ld '
14696       lt_prog_compiler_pic='-PIC'
14697       lt_prog_compiler_static='-Bstatic'
14698       ;;
14699
14700     sysv4 | sysv4.2uw2* | sysv4.3*)
14701       lt_prog_compiler_wl='-Wl,'
14702       lt_prog_compiler_pic='-KPIC'
14703       lt_prog_compiler_static='-Bstatic'
14704       ;;
14705
14706     sysv4*MP*)
14707       if test -d /usr/nec ;then
14708         lt_prog_compiler_pic='-Kconform_pic'
14709         lt_prog_compiler_static='-Bstatic'
14710       fi
14711       ;;
14712
14713     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14714       lt_prog_compiler_wl='-Wl,'
14715       lt_prog_compiler_pic='-KPIC'
14716       lt_prog_compiler_static='-Bstatic'
14717       ;;
14718
14719     unicos*)
14720       lt_prog_compiler_wl='-Wl,'
14721       lt_prog_compiler_can_build_shared=no
14722       ;;
14723
14724     uts4*)
14725       lt_prog_compiler_pic='-pic'
14726       lt_prog_compiler_static='-Bstatic'
14727       ;;
14728
14729     *)
14730       lt_prog_compiler_can_build_shared=no
14731       ;;
14732     esac
14733   fi
14734
14735 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14736 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14737
14738 #
14739 # Check to make sure the PIC flag actually works.
14740 #
14741 if test -n "$lt_prog_compiler_pic"; then
14742
14743 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14744 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
14745 if test "${lt_prog_compiler_pic_works+set}" = set; then
14746   echo $ECHO_N "(cached) $ECHO_C" >&6
14747 else
14748   lt_prog_compiler_pic_works=no
14749   ac_outfile=conftest.$ac_objext
14750    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14751    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14752    # Insert the option either (1) after the last *FLAGS variable, or
14753    # (2) before a word containing "conftest.", or (3) at the end.
14754    # Note that $ac_compile itself does not contain backslashes and begins
14755    # with a dollar sign (not a hyphen), so the echo should work correctly.
14756    # The option is referenced via a variable to avoid confusing sed.
14757    lt_compile=`echo "$ac_compile" | $SED \
14758    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14759    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14760    -e 's:$: $lt_compiler_flag:'`
14761    (eval echo "\"\$as_me:14761: $lt_compile\"" >&5)
14762    (eval "$lt_compile" 2>conftest.err)
14763    ac_status=$?
14764    cat conftest.err >&5
14765    echo "$as_me:14765: \$? = $ac_status" >&5
14766    if (exit $ac_status) && test -s "$ac_outfile"; then
14767      # The compiler can only warn and ignore the option if not recognized
14768      # So say no if there are warnings other than the usual output.
14769      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14770      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14771      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14772        lt_prog_compiler_pic_works=yes
14773      fi
14774    fi
14775    $rm conftest*
14776
14777 fi
14778 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14779 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
14780
14781 if test x"$lt_prog_compiler_pic_works" = xyes; then
14782     case $lt_prog_compiler_pic in
14783      "" | " "*) ;;
14784      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14785      esac
14786 else
14787     lt_prog_compiler_pic=
14788      lt_prog_compiler_can_build_shared=no
14789 fi
14790
14791 fi
14792 case $host_os in
14793   # For platforms which do not support PIC, -DPIC is meaningless:
14794   *djgpp*)
14795     lt_prog_compiler_pic=
14796     ;;
14797   *)
14798     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14799     ;;
14800 esac
14801
14802 #
14803 # Check to make sure the static flag actually works.
14804 #
14805 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14806 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14807 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14808 if test "${lt_prog_compiler_static_works+set}" = set; then
14809   echo $ECHO_N "(cached) $ECHO_C" >&6
14810 else
14811   lt_prog_compiler_static_works=no
14812    save_LDFLAGS="$LDFLAGS"
14813    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14814    printf "$lt_simple_link_test_code" > conftest.$ac_ext
14815    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14816      # The linker can only warn and ignore the option if not recognized
14817      # So say no if there are warnings
14818      if test -s conftest.err; then
14819        # Append any errors to the config.log.
14820        cat conftest.err 1>&5
14821        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14822        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14823        if diff conftest.exp conftest.er2 >/dev/null; then
14824          lt_prog_compiler_static_works=yes
14825        fi
14826      else
14827        lt_prog_compiler_static_works=yes
14828      fi
14829    fi
14830    $rm conftest*
14831    LDFLAGS="$save_LDFLAGS"
14832
14833 fi
14834 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14835 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14836
14837 if test x"$lt_prog_compiler_static_works" = xyes; then
14838     :
14839 else
14840     lt_prog_compiler_static=
14841 fi
14842
14843
14844 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14845 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14846 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14847   echo $ECHO_N "(cached) $ECHO_C" >&6
14848 else
14849   lt_cv_prog_compiler_c_o=no
14850    $rm -r conftest 2>/dev/null
14851    mkdir conftest
14852    cd conftest
14853    mkdir out
14854    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14855
14856    lt_compiler_flag="-o out/conftest2.$ac_objext"
14857    # Insert the option either (1) after the last *FLAGS variable, or
14858    # (2) before a word containing "conftest.", or (3) at the end.
14859    # Note that $ac_compile itself does not contain backslashes and begins
14860    # with a dollar sign (not a hyphen), so the echo should work correctly.
14861    lt_compile=`echo "$ac_compile" | $SED \
14862    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14863    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14864    -e 's:$: $lt_compiler_flag:'`
14865    (eval echo "\"\$as_me:14865: $lt_compile\"" >&5)
14866    (eval "$lt_compile" 2>out/conftest.err)
14867    ac_status=$?
14868    cat out/conftest.err >&5
14869    echo "$as_me:14869: \$? = $ac_status" >&5
14870    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14871    then
14872      # The compiler can only warn and ignore the option if not recognized
14873      # So say no if there are warnings
14874      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14875      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14876      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14877        lt_cv_prog_compiler_c_o=yes
14878      fi
14879    fi
14880    chmod u+w . 2>&5
14881    $rm conftest*
14882    # SGI C++ compiler will create directory out/ii_files/ for
14883    # template instantiation
14884    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14885    $rm out/* && rmdir out
14886    cd ..
14887    rmdir conftest
14888    $rm conftest*
14889
14890 fi
14891 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14892 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
14893
14894
14895 hard_links="nottested"
14896 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14897   # do not overwrite the value of need_locks provided by the user
14898   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14899 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14900   hard_links=yes
14901   $rm conftest*
14902   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14903   touch conftest.a
14904   ln conftest.a conftest.b 2>&5 || hard_links=no
14905   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14906   { echo "$as_me:$LINENO: result: $hard_links" >&5
14907 echo "${ECHO_T}$hard_links" >&6; }
14908   if test "$hard_links" = no; then
14909     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14910 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14911     need_locks=warn
14912   fi
14913 else
14914   need_locks=no
14915 fi
14916
14917 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14918 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14919
14920   runpath_var=
14921   allow_undefined_flag=
14922   enable_shared_with_static_runtimes=no
14923   archive_cmds=
14924   archive_expsym_cmds=
14925   old_archive_From_new_cmds=
14926   old_archive_from_expsyms_cmds=
14927   export_dynamic_flag_spec=
14928   whole_archive_flag_spec=
14929   thread_safe_flag_spec=
14930   hardcode_libdir_flag_spec=
14931   hardcode_libdir_flag_spec_ld=
14932   hardcode_libdir_separator=
14933   hardcode_direct=no
14934   hardcode_minus_L=no
14935   hardcode_shlibpath_var=unsupported
14936   link_all_deplibs=unknown
14937   hardcode_automatic=no
14938   module_cmds=
14939   module_expsym_cmds=
14940   always_export_symbols=no
14941   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14942   # include_expsyms should be a list of space-separated symbols to be *always*
14943   # included in the symbol list
14944   include_expsyms=
14945   # exclude_expsyms can be an extended regexp of symbols to exclude
14946   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14947   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14948   # as well as any symbol that contains `d'.
14949   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14950   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14951   # platforms (ab)use it in PIC code, but their linkers get confused if
14952   # the symbol is explicitly referenced.  Since portable code cannot
14953   # rely on this symbol name, it's probably fine to never include it in
14954   # preloaded symbol tables.
14955   extract_expsyms_cmds=
14956   # Just being paranoid about ensuring that cc_basename is set.
14957   for cc_temp in $compiler""; do
14958   case $cc_temp in
14959     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14960     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14961     \-*) ;;
14962     *) break;;
14963   esac
14964 done
14965 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14966
14967   case $host_os in
14968   cygwin* | mingw* | pw32*)
14969     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14970     # When not using gcc, we currently assume that we are using
14971     # Microsoft Visual C++.
14972     if test "$GCC" != yes; then
14973       with_gnu_ld=no
14974     fi
14975     ;;
14976   interix*)
14977     # we just hope/assume this is gcc and not c89 (= MSVC++)
14978     with_gnu_ld=yes
14979     ;;
14980   openbsd*)
14981     with_gnu_ld=no
14982     ;;
14983   esac
14984
14985   ld_shlibs=yes
14986   if test "$with_gnu_ld" = yes; then
14987     # If archive_cmds runs LD, not CC, wlarc should be empty
14988     wlarc='${wl}'
14989
14990     # Set some defaults for GNU ld with shared library support. These
14991     # are reset later if shared libraries are not supported. Putting them
14992     # here allows them to be overridden if necessary.
14993     runpath_var=LD_RUN_PATH
14994     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14995     export_dynamic_flag_spec='${wl}--export-dynamic'
14996     # ancient GNU ld didn't support --whole-archive et. al.
14997     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14998         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14999       else
15000         whole_archive_flag_spec=
15001     fi
15002     supports_anon_versioning=no
15003     case `$LD -v 2>/dev/null` in
15004       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15005       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15006       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15007       *\ 2.11.*) ;; # other 2.11 versions
15008       *) supports_anon_versioning=yes ;;
15009     esac
15010
15011     # See if GNU ld supports shared libraries.
15012     case $host_os in
15013     aix3* | aix4* | aix5*)
15014       # On AIX/PPC, the GNU linker is very broken
15015       if test "$host_cpu" != ia64; then
15016         ld_shlibs=no
15017         cat <<EOF 1>&2
15018
15019 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15020 *** to be unable to reliably create shared libraries on AIX.
15021 *** Therefore, libtool is disabling shared libraries support.  If you
15022 *** really care for shared libraries, you may want to modify your PATH
15023 *** so that a non-GNU linker is found, and then restart.
15024
15025 EOF
15026       fi
15027       ;;
15028
15029     amigaos*)
15030       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)'
15031       hardcode_libdir_flag_spec='-L$libdir'
15032       hardcode_minus_L=yes
15033
15034       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15035       # that the semantics of dynamic libraries on AmigaOS, at least up
15036       # to version 4, is to share data among multiple programs linked
15037       # with the same dynamic library.  Since this doesn't match the
15038       # behavior of shared libraries on other platforms, we can't use
15039       # them.
15040       ld_shlibs=no
15041       ;;
15042
15043     beos*)
15044       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15045         allow_undefined_flag=unsupported
15046         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15047         # support --undefined.  This deserves some investigation.  FIXME
15048         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15049       else
15050         ld_shlibs=no
15051       fi
15052       ;;
15053
15054     cygwin* | mingw* | pw32*)
15055       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15056       # as there is no search path for DLLs.
15057       hardcode_libdir_flag_spec='-L$libdir'
15058       allow_undefined_flag=unsupported
15059       always_export_symbols=no
15060       enable_shared_with_static_runtimes=yes
15061       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15062
15063       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15064         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15065         # If the export-symbols file already is a .def file (1st line
15066         # is EXPORTS), use it as is; otherwise, prepend...
15067         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15068           cp $export_symbols $output_objdir/$soname.def;
15069         else
15070           echo EXPORTS > $output_objdir/$soname.def;
15071           cat $export_symbols >> $output_objdir/$soname.def;
15072         fi~
15073         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15074       else
15075         ld_shlibs=no
15076       fi
15077       ;;
15078
15079     interix3*)
15080       hardcode_direct=no
15081       hardcode_shlibpath_var=no
15082       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15083       export_dynamic_flag_spec='${wl}-E'
15084       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15085       # Instead, shared libraries are loaded at an image base (0x10000000 by
15086       # default) and relocated if they conflict, which is a slow very memory
15087       # consuming and fragmenting process.  To avoid this, we pick a random,
15088       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15089       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15090       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15091       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'
15092       ;;
15093
15094     linux*)
15095       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15096         tmp_addflag=
15097         case $cc_basename,$host_cpu in
15098         pgcc*)                          # Portland Group C compiler
15099           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'
15100           tmp_addflag=' $pic_flag'
15101           ;;
15102         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
15103           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'
15104           tmp_addflag=' $pic_flag -Mnomain' ;;
15105         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
15106           tmp_addflag=' -i_dynamic' ;;
15107         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15108           tmp_addflag=' -i_dynamic -nofor_main' ;;
15109         ifc* | ifort*)                  # Intel Fortran compiler
15110           tmp_addflag=' -nofor_main' ;;
15111         esac
15112         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15113
15114         if test $supports_anon_versioning = yes; then
15115           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15116   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15117   $echo "local: *; };" >> $output_objdir/$libname.ver~
15118           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15119         fi
15120       else
15121         ld_shlibs=no
15122       fi
15123       ;;
15124
15125     netbsd*)
15126       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15127         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15128         wlarc=
15129       else
15130         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15131         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15132       fi
15133       ;;
15134
15135     solaris*)
15136       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15137         ld_shlibs=no
15138         cat <<EOF 1>&2
15139
15140 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15141 *** create shared libraries on Solaris systems.  Therefore, libtool
15142 *** is disabling shared libraries support.  We urge you to upgrade GNU
15143 *** binutils to release 2.9.1 or newer.  Another option is to modify
15144 *** your PATH or compiler configuration so that the native linker is
15145 *** used, and then restart.
15146
15147 EOF
15148       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15149         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15150         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15151       else
15152         ld_shlibs=no
15153       fi
15154       ;;
15155
15156     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15157       case `$LD -v 2>&1` in
15158         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15159         ld_shlibs=no
15160         cat <<_LT_EOF 1>&2
15161
15162 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15163 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15164 *** is disabling shared libraries support.  We urge you to upgrade GNU
15165 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15166 *** your PATH or compiler configuration so that the native linker is
15167 *** used, and then restart.
15168
15169 _LT_EOF
15170         ;;
15171         *)
15172           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15173             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15174             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15175             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15176           else
15177             ld_shlibs=no
15178           fi
15179         ;;
15180       esac
15181       ;;
15182
15183     sunos4*)
15184       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15185       wlarc=
15186       hardcode_direct=yes
15187       hardcode_shlibpath_var=no
15188       ;;
15189
15190     *)
15191       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15192         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15193         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15194       else
15195         ld_shlibs=no
15196       fi
15197       ;;
15198     esac
15199
15200     if test "$ld_shlibs" = no; then
15201       runpath_var=
15202       hardcode_libdir_flag_spec=
15203       export_dynamic_flag_spec=
15204       whole_archive_flag_spec=
15205     fi
15206   else
15207     # PORTME fill in a description of your system's linker (not GNU ld)
15208     case $host_os in
15209     aix3*)
15210       allow_undefined_flag=unsupported
15211       always_export_symbols=yes
15212       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'
15213       # Note: this linker hardcodes the directories in LIBPATH if there
15214       # are no directories specified by -L.
15215       hardcode_minus_L=yes
15216       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15217         # Neither direct hardcoding nor static linking is supported with a
15218         # broken collect2.
15219         hardcode_direct=unsupported
15220       fi
15221       ;;
15222
15223     aix4* | aix5*)
15224       if test "$host_cpu" = ia64; then
15225         # On IA64, the linker does run time linking by default, so we don't
15226         # have to do anything special.
15227         aix_use_runtimelinking=no
15228         exp_sym_flag='-Bexport'
15229         no_entry_flag=""
15230       else
15231         # If we're using GNU nm, then we don't want the "-C" option.
15232         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15233         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15234           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'
15235         else
15236           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'
15237         fi
15238         aix_use_runtimelinking=no
15239
15240         # Test if we are trying to use run time linking or normal
15241         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15242         # need to do runtime linking.
15243         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15244           for ld_flag in $LDFLAGS; do
15245           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15246             aix_use_runtimelinking=yes
15247             break
15248           fi
15249           done
15250           ;;
15251         esac
15252
15253         exp_sym_flag='-bexport'
15254         no_entry_flag='-bnoentry'
15255       fi
15256
15257       # When large executables or shared objects are built, AIX ld can
15258       # have problems creating the table of contents.  If linking a library
15259       # or program results in "error TOC overflow" add -mminimal-toc to
15260       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15261       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15262
15263       archive_cmds=''
15264       hardcode_direct=yes
15265       hardcode_libdir_separator=':'
15266       link_all_deplibs=yes
15267
15268       if test "$GCC" = yes; then
15269         case $host_os in aix4.[012]|aix4.[012].*)
15270         # We only want to do this on AIX 4.2 and lower, the check
15271         # below for broken collect2 doesn't work under 4.3+
15272           collect2name=`${CC} -print-prog-name=collect2`
15273           if test -f "$collect2name" && \
15274            strings "$collect2name" | grep resolve_lib_name >/dev/null
15275           then
15276           # We have reworked collect2
15277           hardcode_direct=yes
15278           else
15279           # We have old collect2
15280           hardcode_direct=unsupported
15281           # It fails to find uninstalled libraries when the uninstalled
15282           # path is not listed in the libpath.  Setting hardcode_minus_L
15283           # to unsupported forces relinking
15284           hardcode_minus_L=yes
15285           hardcode_libdir_flag_spec='-L$libdir'
15286           hardcode_libdir_separator=
15287           fi
15288           ;;
15289         esac
15290         shared_flag='-shared'
15291         if test "$aix_use_runtimelinking" = yes; then
15292           shared_flag="$shared_flag "'${wl}-G'
15293         fi
15294       else
15295         # not using gcc
15296         if test "$host_cpu" = ia64; then
15297         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15298         # chokes on -Wl,-G. The following line is correct:
15299           shared_flag='-G'
15300         else
15301           if test "$aix_use_runtimelinking" = yes; then
15302             shared_flag='${wl}-G'
15303           else
15304             shared_flag='${wl}-bM:SRE'
15305           fi
15306         fi
15307       fi
15308
15309       # It seems that -bexpall does not export symbols beginning with
15310       # underscore (_), so it is better to generate a list of symbols to export.
15311       always_export_symbols=yes
15312       if test "$aix_use_runtimelinking" = yes; then
15313         # Warning - without using the other runtime loading flags (-brtl),
15314         # -berok will link without error, but may produce a broken library.
15315         allow_undefined_flag='-berok'
15316        # Determine the default libpath from the value encoded in an empty executable.
15317        cat >conftest.$ac_ext <<_ACEOF
15318 /* confdefs.h.  */
15319 _ACEOF
15320 cat confdefs.h >>conftest.$ac_ext
15321 cat >>conftest.$ac_ext <<_ACEOF
15322 /* end confdefs.h.  */
15323
15324 int
15325 main ()
15326 {
15327
15328   ;
15329   return 0;
15330 }
15331 _ACEOF
15332 rm -f conftest.$ac_objext conftest$ac_exeext
15333 if { (ac_try="$ac_link"
15334 case "(($ac_try" in
15335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15336   *) ac_try_echo=$ac_try;;
15337 esac
15338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15339   (eval "$ac_link") 2>conftest.er1
15340   ac_status=$?
15341   grep -v '^ *+' conftest.er1 >conftest.err
15342   rm -f conftest.er1
15343   cat conftest.err >&5
15344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15345   (exit $ac_status); } &&
15346          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15347   { (case "(($ac_try" in
15348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15349   *) ac_try_echo=$ac_try;;
15350 esac
15351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15352   (eval "$ac_try") 2>&5
15353   ac_status=$?
15354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15355   (exit $ac_status); }; } &&
15356          { ac_try='test -s conftest$ac_exeext'
15357   { (case "(($ac_try" in
15358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15359   *) ac_try_echo=$ac_try;;
15360 esac
15361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15362   (eval "$ac_try") 2>&5
15363   ac_status=$?
15364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15365   (exit $ac_status); }; }; then
15366
15367 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15368 }'`
15369 # Check for a 64-bit object if we didn't find anything.
15370 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; }
15371 }'`; fi
15372 else
15373   echo "$as_me: failed program was:" >&5
15374 sed 's/^/| /' conftest.$ac_ext >&5
15375
15376
15377 fi
15378
15379 rm -f core conftest.err conftest.$ac_objext \
15380       conftest$ac_exeext conftest.$ac_ext
15381 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15382
15383        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15384         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"
15385        else
15386         if test "$host_cpu" = ia64; then
15387           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15388           allow_undefined_flag="-z nodefs"
15389           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"
15390         else
15391          # Determine the default libpath from the value encoded in an empty executable.
15392          cat >conftest.$ac_ext <<_ACEOF
15393 /* confdefs.h.  */
15394 _ACEOF
15395 cat confdefs.h >>conftest.$ac_ext
15396 cat >>conftest.$ac_ext <<_ACEOF
15397 /* end confdefs.h.  */
15398
15399 int
15400 main ()
15401 {
15402
15403   ;
15404   return 0;
15405 }
15406 _ACEOF
15407 rm -f conftest.$ac_objext conftest$ac_exeext
15408 if { (ac_try="$ac_link"
15409 case "(($ac_try" in
15410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15411   *) ac_try_echo=$ac_try;;
15412 esac
15413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15414   (eval "$ac_link") 2>conftest.er1
15415   ac_status=$?
15416   grep -v '^ *+' conftest.er1 >conftest.err
15417   rm -f conftest.er1
15418   cat conftest.err >&5
15419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15420   (exit $ac_status); } &&
15421          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15422   { (case "(($ac_try" in
15423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15424   *) ac_try_echo=$ac_try;;
15425 esac
15426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15427   (eval "$ac_try") 2>&5
15428   ac_status=$?
15429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15430   (exit $ac_status); }; } &&
15431          { ac_try='test -s conftest$ac_exeext'
15432   { (case "(($ac_try" in
15433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15434   *) ac_try_echo=$ac_try;;
15435 esac
15436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15437   (eval "$ac_try") 2>&5
15438   ac_status=$?
15439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15440   (exit $ac_status); }; }; then
15441
15442 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15443 }'`
15444 # Check for a 64-bit object if we didn't find anything.
15445 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; }
15446 }'`; fi
15447 else
15448   echo "$as_me: failed program was:" >&5
15449 sed 's/^/| /' conftest.$ac_ext >&5
15450
15451
15452 fi
15453
15454 rm -f core conftest.err conftest.$ac_objext \
15455       conftest$ac_exeext conftest.$ac_ext
15456 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15457
15458          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15459           # Warning - without using the other run time loading flags,
15460           # -berok will link without error, but may produce a broken library.
15461           no_undefined_flag=' ${wl}-bernotok'
15462           allow_undefined_flag=' ${wl}-berok'
15463           # Exported symbols can be pulled into shared objects from archives
15464           whole_archive_flag_spec='$convenience'
15465           archive_cmds_need_lc=yes
15466           # This is similar to how AIX traditionally builds its shared libraries.
15467           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'
15468         fi
15469       fi
15470       ;;
15471
15472     amigaos*)
15473       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)'
15474       hardcode_libdir_flag_spec='-L$libdir'
15475       hardcode_minus_L=yes
15476       # see comment about different semantics on the GNU ld section
15477       ld_shlibs=no
15478       ;;
15479
15480     bsdi[45]*)
15481       export_dynamic_flag_spec=-rdynamic
15482       ;;
15483
15484     cygwin* | mingw* | pw32*)
15485       # When not using gcc, we currently assume that we are using
15486       # Microsoft Visual C++.
15487       # hardcode_libdir_flag_spec is actually meaningless, as there is
15488       # no search path for DLLs.
15489       hardcode_libdir_flag_spec=' '
15490       allow_undefined_flag=unsupported
15491       # Tell ltmain to make .lib files, not .a files.
15492       libext=lib
15493       # Tell ltmain to make .dll files, not .so files.
15494       shrext_cmds=".dll"
15495       # FIXME: Setting linknames here is a bad hack.
15496       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15497       # The linker will automatically build a .lib file if we build a DLL.
15498       old_archive_From_new_cmds='true'
15499       # FIXME: Should let the user specify the lib program.
15500       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15501       fix_srcfile_path='`cygpath -w "$srcfile"`'
15502       enable_shared_with_static_runtimes=yes
15503       ;;
15504
15505     darwin* | rhapsody*)
15506       case $host_os in
15507         rhapsody* | darwin1.[012])
15508          allow_undefined_flag='${wl}-undefined ${wl}suppress'
15509          ;;
15510        *) # Darwin 1.3 on
15511          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15512            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15513          else
15514            case ${MACOSX_DEPLOYMENT_TARGET} in
15515              10.[012])
15516                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15517                ;;
15518              10.*)
15519                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15520                ;;
15521            esac
15522          fi
15523          ;;
15524       esac
15525       archive_cmds_need_lc=no
15526       hardcode_direct=no
15527       hardcode_automatic=yes
15528       hardcode_shlibpath_var=unsupported
15529       whole_archive_flag_spec=''
15530       link_all_deplibs=yes
15531     if test "$GCC" = yes ; then
15532         output_verbose_link_cmd='echo'
15533         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15534       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15535       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15536       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}'
15537       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}'
15538     else
15539       case $cc_basename in
15540         xlc*)
15541          output_verbose_link_cmd='echo'
15542          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15543          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15544           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15545          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}'
15546           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}'
15547           ;;
15548        *)
15549          ld_shlibs=no
15550           ;;
15551       esac
15552     fi
15553       ;;
15554
15555     dgux*)
15556       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15557       hardcode_libdir_flag_spec='-L$libdir'
15558       hardcode_shlibpath_var=no
15559       ;;
15560
15561     freebsd1*)
15562       ld_shlibs=no
15563       ;;
15564
15565     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15566     # support.  Future versions do this automatically, but an explicit c++rt0.o
15567     # does not break anything, and helps significantly (at the cost of a little
15568     # extra space).
15569     freebsd2.2*)
15570       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15571       hardcode_libdir_flag_spec='-R$libdir'
15572       hardcode_direct=yes
15573       hardcode_shlibpath_var=no
15574       ;;
15575
15576     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15577     freebsd2*)
15578       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15579       hardcode_direct=yes
15580       hardcode_minus_L=yes
15581       hardcode_shlibpath_var=no
15582       ;;
15583
15584     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15585     freebsd* | kfreebsd*-gnu | dragonfly*)
15586       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15587       hardcode_libdir_flag_spec='-R$libdir'
15588       hardcode_direct=yes
15589       hardcode_shlibpath_var=no
15590       ;;
15591
15592     hpux9*)
15593       if test "$GCC" = yes; then
15594         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'
15595       else
15596         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'
15597       fi
15598       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15599       hardcode_libdir_separator=:
15600       hardcode_direct=yes
15601
15602       # hardcode_minus_L: Not really in the search PATH,
15603       # but as the default location of the library.
15604       hardcode_minus_L=yes
15605       export_dynamic_flag_spec='${wl}-E'
15606       ;;
15607
15608     hpux10*)
15609       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15610         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15611       else
15612         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15613       fi
15614       if test "$with_gnu_ld" = no; then
15615         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15616         hardcode_libdir_separator=:
15617
15618         hardcode_direct=yes
15619         export_dynamic_flag_spec='${wl}-E'
15620
15621         # hardcode_minus_L: Not really in the search PATH,
15622         # but as the default location of the library.
15623         hardcode_minus_L=yes
15624       fi
15625       ;;
15626
15627     hpux11*)
15628       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15629         case $host_cpu in
15630         hppa*64*)
15631           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15632           ;;
15633         ia64*)
15634           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15635           ;;
15636         *)
15637           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15638           ;;
15639         esac
15640       else
15641         case $host_cpu in
15642         hppa*64*)
15643           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15644           ;;
15645         ia64*)
15646           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15647           ;;
15648         *)
15649           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15650           ;;
15651         esac
15652       fi
15653       if test "$with_gnu_ld" = no; then
15654         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15655         hardcode_libdir_separator=:
15656
15657         case $host_cpu in
15658         hppa*64*|ia64*)
15659           hardcode_libdir_flag_spec_ld='+b $libdir'
15660           hardcode_direct=no
15661           hardcode_shlibpath_var=no
15662           ;;
15663         *)
15664           hardcode_direct=yes
15665           export_dynamic_flag_spec='${wl}-E'
15666
15667           # hardcode_minus_L: Not really in the search PATH,
15668           # but as the default location of the library.
15669           hardcode_minus_L=yes
15670           ;;
15671         esac
15672       fi
15673       ;;
15674
15675     irix5* | irix6* | nonstopux*)
15676       if test "$GCC" = yes; then
15677         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'
15678       else
15679         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'
15680         hardcode_libdir_flag_spec_ld='-rpath $libdir'
15681       fi
15682       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15683       hardcode_libdir_separator=:
15684       link_all_deplibs=yes
15685       ;;
15686
15687     netbsd*)
15688       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15689         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15690       else
15691         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15692       fi
15693       hardcode_libdir_flag_spec='-R$libdir'
15694       hardcode_direct=yes
15695       hardcode_shlibpath_var=no
15696       ;;
15697
15698     newsos6)
15699       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15700       hardcode_direct=yes
15701       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15702       hardcode_libdir_separator=:
15703       hardcode_shlibpath_var=no
15704       ;;
15705
15706     openbsd*)
15707       hardcode_direct=yes
15708       hardcode_shlibpath_var=no
15709       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15710         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15711         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15712         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15713         export_dynamic_flag_spec='${wl}-E'
15714       else
15715        case $host_os in
15716          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15717            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15718            hardcode_libdir_flag_spec='-R$libdir'
15719            ;;
15720          *)
15721            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15722            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15723            ;;
15724        esac
15725       fi
15726       ;;
15727
15728     os2*)
15729       hardcode_libdir_flag_spec='-L$libdir'
15730       hardcode_minus_L=yes
15731       allow_undefined_flag=unsupported
15732       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'
15733       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15734       ;;
15735
15736     osf3*)
15737       if test "$GCC" = yes; then
15738         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15739         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'
15740       else
15741         allow_undefined_flag=' -expect_unresolved \*'
15742         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'
15743       fi
15744       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15745       hardcode_libdir_separator=:
15746       ;;
15747
15748     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15749       if test "$GCC" = yes; then
15750         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15751         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'
15752         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15753       else
15754         allow_undefined_flag=' -expect_unresolved \*'
15755         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'
15756         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15757         $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'
15758
15759         # Both c and cxx compiler support -rpath directly
15760         hardcode_libdir_flag_spec='-rpath $libdir'
15761       fi
15762       hardcode_libdir_separator=:
15763       ;;
15764
15765     solaris*)
15766       no_undefined_flag=' -z text'
15767       if test "$GCC" = yes; then
15768         wlarc='${wl}'
15769         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15770         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15771           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15772       else
15773         wlarc=''
15774         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15775         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15776         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15777       fi
15778       hardcode_libdir_flag_spec='-R$libdir'
15779       hardcode_shlibpath_var=no
15780       case $host_os in
15781       solaris2.[0-5] | solaris2.[0-5].*) ;;
15782       *)
15783         # The compiler driver will combine linker options so we
15784         # cannot just pass the convience library names through
15785         # without $wl, iff we do not link with $LD.
15786         # Luckily, gcc supports the same syntax we need for Sun Studio.
15787         # Supported since Solaris 2.6 (maybe 2.5.1?)
15788         case $wlarc in
15789         '')
15790           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15791         *)
15792           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' ;;
15793         esac ;;
15794       esac
15795       link_all_deplibs=yes
15796       ;;
15797
15798     sunos4*)
15799       if test "x$host_vendor" = xsequent; then
15800         # Use $CC to link under sequent, because it throws in some extra .o
15801         # files that make .init and .fini sections work.
15802         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15803       else
15804         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15805       fi
15806       hardcode_libdir_flag_spec='-L$libdir'
15807       hardcode_direct=yes
15808       hardcode_minus_L=yes
15809       hardcode_shlibpath_var=no
15810       ;;
15811
15812     sysv4)
15813       case $host_vendor in
15814         sni)
15815           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15816           hardcode_direct=yes # is this really true???
15817         ;;
15818         siemens)
15819           ## LD is ld it makes a PLAMLIB
15820           ## CC just makes a GrossModule.
15821           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15822           reload_cmds='$CC -r -o $output$reload_objs'
15823           hardcode_direct=no
15824         ;;
15825         motorola)
15826           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15827           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15828         ;;
15829       esac
15830       runpath_var='LD_RUN_PATH'
15831       hardcode_shlibpath_var=no
15832       ;;
15833
15834     sysv4.3*)
15835       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15836       hardcode_shlibpath_var=no
15837       export_dynamic_flag_spec='-Bexport'
15838       ;;
15839
15840     sysv4*MP*)
15841       if test -d /usr/nec; then
15842         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15843         hardcode_shlibpath_var=no
15844         runpath_var=LD_RUN_PATH
15845         hardcode_runpath_var=yes
15846         ld_shlibs=yes
15847       fi
15848       ;;
15849
15850     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15851       no_undefined_flag='${wl}-z,text'
15852       archive_cmds_need_lc=no
15853       hardcode_shlibpath_var=no
15854       runpath_var='LD_RUN_PATH'
15855
15856       if test "$GCC" = yes; then
15857         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15858         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15859       else
15860         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15861         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15862       fi
15863       ;;
15864
15865     sysv5* | sco3.2v5* | sco5v6*)
15866       # Note: We can NOT use -z defs as we might desire, because we do not
15867       # link with -lc, and that would cause any symbols used from libc to
15868       # always be unresolved, which means just about no library would
15869       # ever link correctly.  If we're not using GNU ld we use -z text
15870       # though, which does catch some bad symbols but isn't as heavy-handed
15871       # as -z defs.
15872       no_undefined_flag='${wl}-z,text'
15873       allow_undefined_flag='${wl}-z,nodefs'
15874       archive_cmds_need_lc=no
15875       hardcode_shlibpath_var=no
15876       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15877       hardcode_libdir_separator=':'
15878       link_all_deplibs=yes
15879       export_dynamic_flag_spec='${wl}-Bexport'
15880       runpath_var='LD_RUN_PATH'
15881
15882       if test "$GCC" = yes; then
15883         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15884         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15885       else
15886         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15887         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15888       fi
15889       ;;
15890
15891     uts4*)
15892       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15893       hardcode_libdir_flag_spec='-L$libdir'
15894       hardcode_shlibpath_var=no
15895       ;;
15896
15897     *)
15898       ld_shlibs=no
15899       ;;
15900     esac
15901   fi
15902
15903 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15904 echo "${ECHO_T}$ld_shlibs" >&6; }
15905 test "$ld_shlibs" = no && can_build_shared=no
15906
15907 #
15908 # Do we need to explicitly link libc?
15909 #
15910 case "x$archive_cmds_need_lc" in
15911 x|xyes)
15912   # Assume -lc should be added
15913   archive_cmds_need_lc=yes
15914
15915   if test "$enable_shared" = yes && test "$GCC" = yes; then
15916     case $archive_cmds in
15917     *'~'*)
15918       # FIXME: we may have to deal with multi-command sequences.
15919       ;;
15920     '$CC '*)
15921       # Test whether the compiler implicitly links with -lc since on some
15922       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15923       # to ld, don't add -lc before -lgcc.
15924       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15925 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15926       $rm conftest*
15927       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15928
15929       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15930   (eval $ac_compile) 2>&5
15931   ac_status=$?
15932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15933   (exit $ac_status); } 2>conftest.err; then
15934         soname=conftest
15935         lib=conftest
15936         libobjs=conftest.$ac_objext
15937         deplibs=
15938         wl=$lt_prog_compiler_wl
15939         pic_flag=$lt_prog_compiler_pic
15940         compiler_flags=-v
15941         linker_flags=-v
15942         verstring=
15943         output_objdir=.
15944         libname=conftest
15945         lt_save_allow_undefined_flag=$allow_undefined_flag
15946         allow_undefined_flag=
15947         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15948   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15949   ac_status=$?
15950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15951   (exit $ac_status); }
15952         then
15953           archive_cmds_need_lc=no
15954         else
15955           archive_cmds_need_lc=yes
15956         fi
15957         allow_undefined_flag=$lt_save_allow_undefined_flag
15958       else
15959         cat conftest.err 1>&5
15960       fi
15961       $rm conftest*
15962       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15963 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
15964       ;;
15965     esac
15966   fi
15967   ;;
15968 esac
15969
15970 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15971 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15972 library_names_spec=
15973 libname_spec='lib$name'
15974 soname_spec=
15975 shrext_cmds=".so"
15976 postinstall_cmds=
15977 postuninstall_cmds=
15978 finish_cmds=
15979 finish_eval=
15980 shlibpath_var=
15981 shlibpath_overrides_runpath=unknown
15982 version_type=none
15983 dynamic_linker="$host_os ld.so"
15984 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15985 if test "$GCC" = yes; then
15986   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15987   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15988     # if the path contains ";" then we assume it to be the separator
15989     # otherwise default to the standard path separator (i.e. ":") - it is
15990     # assumed that no part of a normal pathname contains ";" but that should
15991     # okay in the real world where ";" in dirpaths is itself problematic.
15992     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15993   else
15994     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15995   fi
15996 else
15997   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15998 fi
15999 need_lib_prefix=unknown
16000 hardcode_into_libs=no
16001
16002 # when you set need_version to no, make sure it does not cause -set_version
16003 # flags to be left without arguments
16004 need_version=unknown
16005
16006 case $host_os in
16007 aix3*)
16008   version_type=linux
16009   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16010   shlibpath_var=LIBPATH
16011
16012   # AIX 3 has no versioning support, so we append a major version to the name.
16013   soname_spec='${libname}${release}${shared_ext}$major'
16014   ;;
16015
16016 aix4* | aix5*)
16017   version_type=linux
16018   need_lib_prefix=no
16019   need_version=no
16020   hardcode_into_libs=yes
16021   if test "$host_cpu" = ia64; then
16022     # AIX 5 supports IA64
16023     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16024     shlibpath_var=LD_LIBRARY_PATH
16025   else
16026     # With GCC up to 2.95.x, collect2 would create an import file
16027     # for dependence libraries.  The import file would start with
16028     # the line `#! .'.  This would cause the generated library to
16029     # depend on `.', always an invalid library.  This was fixed in
16030     # development snapshots of GCC prior to 3.0.
16031     case $host_os in
16032       aix4 | aix4.[01] | aix4.[01].*)
16033       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16034            echo ' yes '
16035            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16036         :
16037       else
16038         can_build_shared=no
16039       fi
16040       ;;
16041     esac
16042     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16043     # soname into executable. Probably we can add versioning support to
16044     # collect2, so additional links can be useful in future.
16045     if test "$aix_use_runtimelinking" = yes; then
16046       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16047       # instead of lib<name>.a to let people know that these are not
16048       # typical AIX shared libraries.
16049       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16050     else
16051       # We preserve .a as extension for shared libraries through AIX4.2
16052       # and later when we are not doing run time linking.
16053       library_names_spec='${libname}${release}.a $libname.a'
16054       soname_spec='${libname}${release}${shared_ext}$major'
16055     fi
16056     shlibpath_var=LIBPATH
16057   fi
16058   ;;
16059
16060 amigaos*)
16061   library_names_spec='$libname.ixlibrary $libname.a'
16062   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16063   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'
16064   ;;
16065
16066 beos*)
16067   library_names_spec='${libname}${shared_ext}'
16068   dynamic_linker="$host_os ld.so"
16069   shlibpath_var=LIBRARY_PATH
16070   ;;
16071
16072 bsdi[45]*)
16073   version_type=linux
16074   need_version=no
16075   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16076   soname_spec='${libname}${release}${shared_ext}$major'
16077   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16078   shlibpath_var=LD_LIBRARY_PATH
16079   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16080   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16081   # the default ld.so.conf also contains /usr/contrib/lib and
16082   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16083   # libtool to hard-code these into programs
16084   ;;
16085
16086 cygwin* | mingw* | pw32*)
16087   version_type=windows
16088   shrext_cmds=".dll"
16089   need_version=no
16090   need_lib_prefix=no
16091
16092   case $GCC,$host_os in
16093   yes,cygwin* | yes,mingw* | yes,pw32*)
16094     library_names_spec='$libname.dll.a'
16095     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16096     postinstall_cmds='base_file=`basename \${file}`~
16097       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16098       dldir=$destdir/`dirname \$dlpath`~
16099       test -d \$dldir || mkdir -p \$dldir~
16100       $install_prog $dir/$dlname \$dldir/$dlname~
16101       chmod a+x \$dldir/$dlname'
16102     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16103       dlpath=$dir/\$dldll~
16104        $rm \$dlpath'
16105     shlibpath_overrides_runpath=yes
16106
16107     case $host_os in
16108     cygwin*)
16109       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16110       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16111       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16112       ;;
16113     mingw*)
16114       # MinGW DLLs use traditional 'lib' prefix
16115       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16116       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16117       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16118         # It is most probably a Windows format PATH printed by
16119         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16120         # path with ; separators, and with drive letters. We can handle the
16121         # drive letters (cygwin fileutils understands them), so leave them,
16122         # especially as we might pass files found there to a mingw objdump,
16123         # which wouldn't understand a cygwinified path. Ahh.
16124         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16125       else
16126         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16127       fi
16128       ;;
16129     pw32*)
16130       # pw32 DLLs use 'pw' prefix rather than 'lib'
16131       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16132       ;;
16133     esac
16134     ;;
16135
16136   *)
16137     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16138     ;;
16139   esac
16140   dynamic_linker='Win32 ld.exe'
16141   # FIXME: first we should search . and the directory the executable is in
16142   shlibpath_var=PATH
16143   ;;
16144
16145 darwin* | rhapsody*)
16146   dynamic_linker="$host_os dyld"
16147   version_type=darwin
16148   need_lib_prefix=no
16149   need_version=no
16150   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16151   soname_spec='${libname}${release}${major}$shared_ext'
16152   shlibpath_overrides_runpath=yes
16153   shlibpath_var=DYLD_LIBRARY_PATH
16154   shrext_cmds='.dylib'
16155   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16156   if test "$GCC" = yes; then
16157     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"`
16158   else
16159     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16160   fi
16161   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16162   ;;
16163
16164 dgux*)
16165   version_type=linux
16166   need_lib_prefix=no
16167   need_version=no
16168   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16169   soname_spec='${libname}${release}${shared_ext}$major'
16170   shlibpath_var=LD_LIBRARY_PATH
16171   ;;
16172
16173 freebsd1*)
16174   dynamic_linker=no
16175   ;;
16176
16177 kfreebsd*-gnu)
16178   version_type=linux
16179   need_lib_prefix=no
16180   need_version=no
16181   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16182   soname_spec='${libname}${release}${shared_ext}$major'
16183   shlibpath_var=LD_LIBRARY_PATH
16184   shlibpath_overrides_runpath=no
16185   hardcode_into_libs=yes
16186   dynamic_linker='GNU ld.so'
16187   ;;
16188
16189 freebsd* | dragonfly*)
16190   # DragonFly does not have aout.  When/if they implement a new
16191   # versioning mechanism, adjust this.
16192   if test -x /usr/bin/objformat; then
16193     objformat=`/usr/bin/objformat`
16194   else
16195     case $host_os in
16196     freebsd[123]*) objformat=aout ;;
16197     *) objformat=elf ;;
16198     esac
16199   fi
16200   version_type=freebsd-$objformat
16201   case $version_type in
16202     freebsd-elf*)
16203       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16204       need_version=no
16205       need_lib_prefix=no
16206       ;;
16207     freebsd-*)
16208       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16209       need_version=yes
16210       ;;
16211   esac
16212   shlibpath_var=LD_LIBRARY_PATH
16213   case $host_os in
16214   freebsd2*)
16215     shlibpath_overrides_runpath=yes
16216     ;;
16217   freebsd3.[01]* | freebsdelf3.[01]*)
16218     shlibpath_overrides_runpath=yes
16219     hardcode_into_libs=yes
16220     ;;
16221   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16222   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16223     shlibpath_overrides_runpath=no
16224     hardcode_into_libs=yes
16225     ;;
16226   freebsd*) # from 4.6 on
16227     shlibpath_overrides_runpath=yes
16228     hardcode_into_libs=yes
16229     ;;
16230   esac
16231   ;;
16232
16233 gnu*)
16234   version_type=linux
16235   need_lib_prefix=no
16236   need_version=no
16237   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16238   soname_spec='${libname}${release}${shared_ext}$major'
16239   shlibpath_var=LD_LIBRARY_PATH
16240   hardcode_into_libs=yes
16241   ;;
16242
16243 hpux9* | hpux10* | hpux11*)
16244   # Give a soname corresponding to the major version so that dld.sl refuses to
16245   # link against other versions.
16246   version_type=sunos
16247   need_lib_prefix=no
16248   need_version=no
16249   case $host_cpu in
16250   ia64*)
16251     shrext_cmds='.so'
16252     hardcode_into_libs=yes
16253     dynamic_linker="$host_os dld.so"
16254     shlibpath_var=LD_LIBRARY_PATH
16255     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16256     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16257     soname_spec='${libname}${release}${shared_ext}$major'
16258     if test "X$HPUX_IA64_MODE" = X32; then
16259       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16260     else
16261       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16262     fi
16263     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16264     ;;
16265    hppa*64*)
16266      shrext_cmds='.sl'
16267      hardcode_into_libs=yes
16268      dynamic_linker="$host_os dld.sl"
16269      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16270      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16271      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16272      soname_spec='${libname}${release}${shared_ext}$major'
16273      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16274      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16275      ;;
16276    *)
16277     shrext_cmds='.sl'
16278     dynamic_linker="$host_os dld.sl"
16279     shlibpath_var=SHLIB_PATH
16280     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16281     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16282     soname_spec='${libname}${release}${shared_ext}$major'
16283     ;;
16284   esac
16285   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16286   postinstall_cmds='chmod 555 $lib'
16287   ;;
16288
16289 interix3*)
16290   version_type=linux
16291   need_lib_prefix=no
16292   need_version=no
16293   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16294   soname_spec='${libname}${release}${shared_ext}$major'
16295   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16296   shlibpath_var=LD_LIBRARY_PATH
16297   shlibpath_overrides_runpath=no
16298   hardcode_into_libs=yes
16299   ;;
16300
16301 irix5* | irix6* | nonstopux*)
16302   case $host_os in
16303     nonstopux*) version_type=nonstopux ;;
16304     *)
16305         if test "$lt_cv_prog_gnu_ld" = yes; then
16306                 version_type=linux
16307         else
16308                 version_type=irix
16309         fi ;;
16310   esac
16311   need_lib_prefix=no
16312   need_version=no
16313   soname_spec='${libname}${release}${shared_ext}$major'
16314   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16315   case $host_os in
16316   irix5* | nonstopux*)
16317     libsuff= shlibsuff=
16318     ;;
16319   *)
16320     case $LD in # libtool.m4 will add one of these switches to LD
16321     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16322       libsuff= shlibsuff= libmagic=32-bit;;
16323     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16324       libsuff=32 shlibsuff=N32 libmagic=N32;;
16325     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16326       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16327     *) libsuff= shlibsuff= libmagic=never-match;;
16328     esac
16329     ;;
16330   esac
16331   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16332   shlibpath_overrides_runpath=no
16333   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16334   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16335   hardcode_into_libs=yes
16336   ;;
16337
16338 # No shared lib support for Linux oldld, aout, or coff.
16339 linux*oldld* | linux*aout* | linux*coff*)
16340   dynamic_linker=no
16341   ;;
16342
16343 # This must be Linux ELF.
16344 linux*)
16345   version_type=linux
16346   need_lib_prefix=no
16347   need_version=no
16348   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16349   soname_spec='${libname}${release}${shared_ext}$major'
16350   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16351   shlibpath_var=LD_LIBRARY_PATH
16352   shlibpath_overrides_runpath=no
16353   # This implies no fast_install, which is unacceptable.
16354   # Some rework will be needed to allow for fast_install
16355   # before this can be enabled.
16356   hardcode_into_libs=yes
16357
16358   # Append ld.so.conf contents to the search path
16359   if test -f /etc/ld.so.conf; then
16360     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' ' '`
16361     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16362   fi
16363
16364   # We used to test for /lib/ld.so.1 and disable shared libraries on
16365   # powerpc, because MkLinux only supported shared libraries with the
16366   # GNU dynamic linker.  Since this was broken with cross compilers,
16367   # most powerpc-linux boxes support dynamic linking these days and
16368   # people can always --disable-shared, the test was removed, and we
16369   # assume the GNU/Linux dynamic linker is in use.
16370   dynamic_linker='GNU/Linux ld.so'
16371   ;;
16372
16373 knetbsd*-gnu)
16374   version_type=linux
16375   need_lib_prefix=no
16376   need_version=no
16377   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16378   soname_spec='${libname}${release}${shared_ext}$major'
16379   shlibpath_var=LD_LIBRARY_PATH
16380   shlibpath_overrides_runpath=no
16381   hardcode_into_libs=yes
16382   dynamic_linker='GNU ld.so'
16383   ;;
16384
16385 netbsd*)
16386   version_type=sunos
16387   need_lib_prefix=no
16388   need_version=no
16389   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16390     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16391     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16392     dynamic_linker='NetBSD (a.out) ld.so'
16393   else
16394     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16395     soname_spec='${libname}${release}${shared_ext}$major'
16396     dynamic_linker='NetBSD ld.elf_so'
16397   fi
16398   shlibpath_var=LD_LIBRARY_PATH
16399   shlibpath_overrides_runpath=yes
16400   hardcode_into_libs=yes
16401   ;;
16402
16403 newsos6)
16404   version_type=linux
16405   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16406   shlibpath_var=LD_LIBRARY_PATH
16407   shlibpath_overrides_runpath=yes
16408   ;;
16409
16410 nto-qnx*)
16411   version_type=linux
16412   need_lib_prefix=no
16413   need_version=no
16414   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16415   soname_spec='${libname}${release}${shared_ext}$major'
16416   shlibpath_var=LD_LIBRARY_PATH
16417   shlibpath_overrides_runpath=yes
16418   ;;
16419
16420 openbsd*)
16421   version_type=sunos
16422   sys_lib_dlsearch_path_spec="/usr/lib"
16423   need_lib_prefix=no
16424   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16425   case $host_os in
16426     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16427     *)                         need_version=no  ;;
16428   esac
16429   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16430   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16431   shlibpath_var=LD_LIBRARY_PATH
16432   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16433     case $host_os in
16434       openbsd2.[89] | openbsd2.[89].*)
16435         shlibpath_overrides_runpath=no
16436         ;;
16437       *)
16438         shlibpath_overrides_runpath=yes
16439         ;;
16440       esac
16441   else
16442     shlibpath_overrides_runpath=yes
16443   fi
16444   ;;
16445
16446 os2*)
16447   libname_spec='$name'
16448   shrext_cmds=".dll"
16449   need_lib_prefix=no
16450   library_names_spec='$libname${shared_ext} $libname.a'
16451   dynamic_linker='OS/2 ld.exe'
16452   shlibpath_var=LIBPATH
16453   ;;
16454
16455 osf3* | osf4* | osf5*)
16456   version_type=osf
16457   need_lib_prefix=no
16458   need_version=no
16459   soname_spec='${libname}${release}${shared_ext}$major'
16460   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16461   shlibpath_var=LD_LIBRARY_PATH
16462   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16463   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16464   ;;
16465
16466 solaris*)
16467   version_type=linux
16468   need_lib_prefix=no
16469   need_version=no
16470   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16471   soname_spec='${libname}${release}${shared_ext}$major'
16472   shlibpath_var=LD_LIBRARY_PATH
16473   shlibpath_overrides_runpath=yes
16474   hardcode_into_libs=yes
16475   # ldd complains unless libraries are executable
16476   postinstall_cmds='chmod +x $lib'
16477   ;;
16478
16479 sunos4*)
16480   version_type=sunos
16481   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16482   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16483   shlibpath_var=LD_LIBRARY_PATH
16484   shlibpath_overrides_runpath=yes
16485   if test "$with_gnu_ld" = yes; then
16486     need_lib_prefix=no
16487   fi
16488   need_version=yes
16489   ;;
16490
16491 sysv4 | sysv4.3*)
16492   version_type=linux
16493   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16494   soname_spec='${libname}${release}${shared_ext}$major'
16495   shlibpath_var=LD_LIBRARY_PATH
16496   case $host_vendor in
16497     sni)
16498       shlibpath_overrides_runpath=no
16499       need_lib_prefix=no
16500       export_dynamic_flag_spec='${wl}-Blargedynsym'
16501       runpath_var=LD_RUN_PATH
16502       ;;
16503     siemens)
16504       need_lib_prefix=no
16505       ;;
16506     motorola)
16507       need_lib_prefix=no
16508       need_version=no
16509       shlibpath_overrides_runpath=no
16510       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16511       ;;
16512   esac
16513   ;;
16514
16515 sysv4*MP*)
16516   if test -d /usr/nec ;then
16517     version_type=linux
16518     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16519     soname_spec='$libname${shared_ext}.$major'
16520     shlibpath_var=LD_LIBRARY_PATH
16521   fi
16522   ;;
16523
16524 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16525   version_type=freebsd-elf
16526   need_lib_prefix=no
16527   need_version=no
16528   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16529   soname_spec='${libname}${release}${shared_ext}$major'
16530   shlibpath_var=LD_LIBRARY_PATH
16531   hardcode_into_libs=yes
16532   if test "$with_gnu_ld" = yes; then
16533     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16534     shlibpath_overrides_runpath=no
16535   else
16536     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16537     shlibpath_overrides_runpath=yes
16538     case $host_os in
16539       sco3.2v5*)
16540         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16541         ;;
16542     esac
16543   fi
16544   sys_lib_dlsearch_path_spec='/usr/lib'
16545   ;;
16546
16547 uts4*)
16548   version_type=linux
16549   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16550   soname_spec='${libname}${release}${shared_ext}$major'
16551   shlibpath_var=LD_LIBRARY_PATH
16552   ;;
16553
16554 *)
16555   dynamic_linker=no
16556   ;;
16557 esac
16558 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16559 echo "${ECHO_T}$dynamic_linker" >&6; }
16560 test "$dynamic_linker" = no && can_build_shared=no
16561
16562 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16563 if test "$GCC" = yes; then
16564   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16565 fi
16566
16567 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16568 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16569 hardcode_action=
16570 if test -n "$hardcode_libdir_flag_spec" || \
16571    test -n "$runpath_var" || \
16572    test "X$hardcode_automatic" = "Xyes" ; then
16573
16574   # We can hardcode non-existant directories.
16575   if test "$hardcode_direct" != no &&
16576      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16577      # have to relink, otherwise we might link with an installed library
16578      # when we should be linking with a yet-to-be-installed one
16579      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16580      test "$hardcode_minus_L" != no; then
16581     # Linking always hardcodes the temporary library directory.
16582     hardcode_action=relink
16583   else
16584     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16585     hardcode_action=immediate
16586   fi
16587 else
16588   # We cannot hardcode anything, or else we can only hardcode existing
16589   # directories.
16590   hardcode_action=unsupported
16591 fi
16592 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16593 echo "${ECHO_T}$hardcode_action" >&6; }
16594
16595 if test "$hardcode_action" = relink; then
16596   # Fast installation is not supported
16597   enable_fast_install=no
16598 elif test "$shlibpath_overrides_runpath" = yes ||
16599      test "$enable_shared" = no; then
16600   # Fast installation is not necessary
16601   enable_fast_install=needless
16602 fi
16603
16604 striplib=
16605 old_striplib=
16606 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16607 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16608 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16609   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16610   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16611   { echo "$as_me:$LINENO: result: yes" >&5
16612 echo "${ECHO_T}yes" >&6; }
16613 else
16614 # FIXME - insert some real tests, host_os isn't really good enough
16615   case $host_os in
16616    darwin*)
16617        if test -n "$STRIP" ; then
16618          striplib="$STRIP -x"
16619          { echo "$as_me:$LINENO: result: yes" >&5
16620 echo "${ECHO_T}yes" >&6; }
16621        else
16622   { echo "$as_me:$LINENO: result: no" >&5
16623 echo "${ECHO_T}no" >&6; }
16624 fi
16625        ;;
16626    *)
16627   { echo "$as_me:$LINENO: result: no" >&5
16628 echo "${ECHO_T}no" >&6; }
16629     ;;
16630   esac
16631 fi
16632
16633 if test "x$enable_dlopen" != xyes; then
16634   enable_dlopen=unknown
16635   enable_dlopen_self=unknown
16636   enable_dlopen_self_static=unknown
16637 else
16638   lt_cv_dlopen=no
16639   lt_cv_dlopen_libs=
16640
16641   case $host_os in
16642   beos*)
16643     lt_cv_dlopen="load_add_on"
16644     lt_cv_dlopen_libs=
16645     lt_cv_dlopen_self=yes
16646     ;;
16647
16648   mingw* | pw32*)
16649     lt_cv_dlopen="LoadLibrary"
16650     lt_cv_dlopen_libs=
16651    ;;
16652
16653   cygwin*)
16654     lt_cv_dlopen="dlopen"
16655     lt_cv_dlopen_libs=
16656    ;;
16657
16658   darwin*)
16659   # if libdl is installed we need to link against it
16660     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16661 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16662 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16663   echo $ECHO_N "(cached) $ECHO_C" >&6
16664 else
16665   ac_check_lib_save_LIBS=$LIBS
16666 LIBS="-ldl  $LIBS"
16667 cat >conftest.$ac_ext <<_ACEOF
16668 /* confdefs.h.  */
16669 _ACEOF
16670 cat confdefs.h >>conftest.$ac_ext
16671 cat >>conftest.$ac_ext <<_ACEOF
16672 /* end confdefs.h.  */
16673
16674 /* Override any GCC internal prototype to avoid an error.
16675    Use char because int might match the return type of a GCC
16676    builtin and then its argument prototype would still apply.  */
16677 #ifdef __cplusplus
16678 extern "C"
16679 #endif
16680 char dlopen ();
16681 int
16682 main ()
16683 {
16684 return dlopen ();
16685   ;
16686   return 0;
16687 }
16688 _ACEOF
16689 rm -f conftest.$ac_objext conftest$ac_exeext
16690 if { (ac_try="$ac_link"
16691 case "(($ac_try" in
16692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16693   *) ac_try_echo=$ac_try;;
16694 esac
16695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16696   (eval "$ac_link") 2>conftest.er1
16697   ac_status=$?
16698   grep -v '^ *+' conftest.er1 >conftest.err
16699   rm -f conftest.er1
16700   cat conftest.err >&5
16701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16702   (exit $ac_status); } &&
16703          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16704   { (case "(($ac_try" in
16705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16706   *) ac_try_echo=$ac_try;;
16707 esac
16708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16709   (eval "$ac_try") 2>&5
16710   ac_status=$?
16711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16712   (exit $ac_status); }; } &&
16713          { ac_try='test -s conftest$ac_exeext'
16714   { (case "(($ac_try" in
16715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16716   *) ac_try_echo=$ac_try;;
16717 esac
16718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16719   (eval "$ac_try") 2>&5
16720   ac_status=$?
16721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16722   (exit $ac_status); }; }; then
16723   ac_cv_lib_dl_dlopen=yes
16724 else
16725   echo "$as_me: failed program was:" >&5
16726 sed 's/^/| /' conftest.$ac_ext >&5
16727
16728         ac_cv_lib_dl_dlopen=no
16729 fi
16730
16731 rm -f core conftest.err conftest.$ac_objext \
16732       conftest$ac_exeext conftest.$ac_ext
16733 LIBS=$ac_check_lib_save_LIBS
16734 fi
16735 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16736 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16737 if test $ac_cv_lib_dl_dlopen = yes; then
16738   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16739 else
16740
16741     lt_cv_dlopen="dyld"
16742     lt_cv_dlopen_libs=
16743     lt_cv_dlopen_self=yes
16744
16745 fi
16746
16747    ;;
16748
16749   *)
16750     { echo "$as_me:$LINENO: checking for shl_load" >&5
16751 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16752 if test "${ac_cv_func_shl_load+set}" = set; then
16753   echo $ECHO_N "(cached) $ECHO_C" >&6
16754 else
16755   cat >conftest.$ac_ext <<_ACEOF
16756 /* confdefs.h.  */
16757 _ACEOF
16758 cat confdefs.h >>conftest.$ac_ext
16759 cat >>conftest.$ac_ext <<_ACEOF
16760 /* end confdefs.h.  */
16761 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16762    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16763 #define shl_load innocuous_shl_load
16764
16765 /* System header to define __stub macros and hopefully few prototypes,
16766     which can conflict with char shl_load (); below.
16767     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16768     <limits.h> exists even on freestanding compilers.  */
16769
16770 #ifdef __STDC__
16771 # include <limits.h>
16772 #else
16773 # include <assert.h>
16774 #endif
16775
16776 #undef shl_load
16777
16778 /* Override any GCC internal prototype to avoid an error.
16779    Use char because int might match the return type of a GCC
16780    builtin and then its argument prototype would still apply.  */
16781 #ifdef __cplusplus
16782 extern "C"
16783 #endif
16784 char shl_load ();
16785 /* The GNU C library defines this for functions which it implements
16786     to always fail with ENOSYS.  Some functions are actually named
16787     something starting with __ and the normal name is an alias.  */
16788 #if defined __stub_shl_load || defined __stub___shl_load
16789 choke me
16790 #endif
16791
16792 int
16793 main ()
16794 {
16795 return shl_load ();
16796   ;
16797   return 0;
16798 }
16799 _ACEOF
16800 rm -f conftest.$ac_objext conftest$ac_exeext
16801 if { (ac_try="$ac_link"
16802 case "(($ac_try" in
16803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16804   *) ac_try_echo=$ac_try;;
16805 esac
16806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16807   (eval "$ac_link") 2>conftest.er1
16808   ac_status=$?
16809   grep -v '^ *+' conftest.er1 >conftest.err
16810   rm -f conftest.er1
16811   cat conftest.err >&5
16812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16813   (exit $ac_status); } &&
16814          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16815   { (case "(($ac_try" in
16816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16817   *) ac_try_echo=$ac_try;;
16818 esac
16819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16820   (eval "$ac_try") 2>&5
16821   ac_status=$?
16822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16823   (exit $ac_status); }; } &&
16824          { ac_try='test -s conftest$ac_exeext'
16825   { (case "(($ac_try" in
16826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16827   *) ac_try_echo=$ac_try;;
16828 esac
16829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16830   (eval "$ac_try") 2>&5
16831   ac_status=$?
16832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16833   (exit $ac_status); }; }; then
16834   ac_cv_func_shl_load=yes
16835 else
16836   echo "$as_me: failed program was:" >&5
16837 sed 's/^/| /' conftest.$ac_ext >&5
16838
16839         ac_cv_func_shl_load=no
16840 fi
16841
16842 rm -f core conftest.err conftest.$ac_objext \
16843       conftest$ac_exeext conftest.$ac_ext
16844 fi
16845 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16846 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
16847 if test $ac_cv_func_shl_load = yes; then
16848   lt_cv_dlopen="shl_load"
16849 else
16850   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16851 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
16852 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16853   echo $ECHO_N "(cached) $ECHO_C" >&6
16854 else
16855   ac_check_lib_save_LIBS=$LIBS
16856 LIBS="-ldld  $LIBS"
16857 cat >conftest.$ac_ext <<_ACEOF
16858 /* confdefs.h.  */
16859 _ACEOF
16860 cat confdefs.h >>conftest.$ac_ext
16861 cat >>conftest.$ac_ext <<_ACEOF
16862 /* end confdefs.h.  */
16863
16864 /* Override any GCC internal prototype to avoid an error.
16865    Use char because int might match the return type of a GCC
16866    builtin and then its argument prototype would still apply.  */
16867 #ifdef __cplusplus
16868 extern "C"
16869 #endif
16870 char shl_load ();
16871 int
16872 main ()
16873 {
16874 return shl_load ();
16875   ;
16876   return 0;
16877 }
16878 _ACEOF
16879 rm -f conftest.$ac_objext conftest$ac_exeext
16880 if { (ac_try="$ac_link"
16881 case "(($ac_try" in
16882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16883   *) ac_try_echo=$ac_try;;
16884 esac
16885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16886   (eval "$ac_link") 2>conftest.er1
16887   ac_status=$?
16888   grep -v '^ *+' conftest.er1 >conftest.err
16889   rm -f conftest.er1
16890   cat conftest.err >&5
16891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16892   (exit $ac_status); } &&
16893          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16894   { (case "(($ac_try" in
16895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16896   *) ac_try_echo=$ac_try;;
16897 esac
16898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16899   (eval "$ac_try") 2>&5
16900   ac_status=$?
16901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16902   (exit $ac_status); }; } &&
16903          { ac_try='test -s conftest$ac_exeext'
16904   { (case "(($ac_try" in
16905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16906   *) ac_try_echo=$ac_try;;
16907 esac
16908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16909   (eval "$ac_try") 2>&5
16910   ac_status=$?
16911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16912   (exit $ac_status); }; }; then
16913   ac_cv_lib_dld_shl_load=yes
16914 else
16915   echo "$as_me: failed program was:" >&5
16916 sed 's/^/| /' conftest.$ac_ext >&5
16917
16918         ac_cv_lib_dld_shl_load=no
16919 fi
16920
16921 rm -f core conftest.err conftest.$ac_objext \
16922       conftest$ac_exeext conftest.$ac_ext
16923 LIBS=$ac_check_lib_save_LIBS
16924 fi
16925 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16926 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
16927 if test $ac_cv_lib_dld_shl_load = yes; then
16928   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16929 else
16930   { echo "$as_me:$LINENO: checking for dlopen" >&5
16931 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
16932 if test "${ac_cv_func_dlopen+set}" = set; then
16933   echo $ECHO_N "(cached) $ECHO_C" >&6
16934 else
16935   cat >conftest.$ac_ext <<_ACEOF
16936 /* confdefs.h.  */
16937 _ACEOF
16938 cat confdefs.h >>conftest.$ac_ext
16939 cat >>conftest.$ac_ext <<_ACEOF
16940 /* end confdefs.h.  */
16941 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16942    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16943 #define dlopen innocuous_dlopen
16944
16945 /* System header to define __stub macros and hopefully few prototypes,
16946     which can conflict with char dlopen (); below.
16947     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16948     <limits.h> exists even on freestanding compilers.  */
16949
16950 #ifdef __STDC__
16951 # include <limits.h>
16952 #else
16953 # include <assert.h>
16954 #endif
16955
16956 #undef dlopen
16957
16958 /* Override any GCC internal prototype to avoid an error.
16959    Use char because int might match the return type of a GCC
16960    builtin and then its argument prototype would still apply.  */
16961 #ifdef __cplusplus
16962 extern "C"
16963 #endif
16964 char dlopen ();
16965 /* The GNU C library defines this for functions which it implements
16966     to always fail with ENOSYS.  Some functions are actually named
16967     something starting with __ and the normal name is an alias.  */
16968 #if defined __stub_dlopen || defined __stub___dlopen
16969 choke me
16970 #endif
16971
16972 int
16973 main ()
16974 {
16975 return dlopen ();
16976   ;
16977   return 0;
16978 }
16979 _ACEOF
16980 rm -f conftest.$ac_objext conftest$ac_exeext
16981 if { (ac_try="$ac_link"
16982 case "(($ac_try" in
16983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16984   *) ac_try_echo=$ac_try;;
16985 esac
16986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16987   (eval "$ac_link") 2>conftest.er1
16988   ac_status=$?
16989   grep -v '^ *+' conftest.er1 >conftest.err
16990   rm -f conftest.er1
16991   cat conftest.err >&5
16992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16993   (exit $ac_status); } &&
16994          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16995   { (case "(($ac_try" in
16996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16997   *) ac_try_echo=$ac_try;;
16998 esac
16999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17000   (eval "$ac_try") 2>&5
17001   ac_status=$?
17002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17003   (exit $ac_status); }; } &&
17004          { ac_try='test -s conftest$ac_exeext'
17005   { (case "(($ac_try" in
17006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17007   *) ac_try_echo=$ac_try;;
17008 esac
17009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17010   (eval "$ac_try") 2>&5
17011   ac_status=$?
17012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17013   (exit $ac_status); }; }; then
17014   ac_cv_func_dlopen=yes
17015 else
17016   echo "$as_me: failed program was:" >&5
17017 sed 's/^/| /' conftest.$ac_ext >&5
17018
17019         ac_cv_func_dlopen=no
17020 fi
17021
17022 rm -f core conftest.err conftest.$ac_objext \
17023       conftest$ac_exeext conftest.$ac_ext
17024 fi
17025 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17026 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
17027 if test $ac_cv_func_dlopen = yes; then
17028   lt_cv_dlopen="dlopen"
17029 else
17030   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17031 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17032 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17033   echo $ECHO_N "(cached) $ECHO_C" >&6
17034 else
17035   ac_check_lib_save_LIBS=$LIBS
17036 LIBS="-ldl  $LIBS"
17037 cat >conftest.$ac_ext <<_ACEOF
17038 /* confdefs.h.  */
17039 _ACEOF
17040 cat confdefs.h >>conftest.$ac_ext
17041 cat >>conftest.$ac_ext <<_ACEOF
17042 /* end confdefs.h.  */
17043
17044 /* Override any GCC internal prototype to avoid an error.
17045    Use char because int might match the return type of a GCC
17046    builtin and then its argument prototype would still apply.  */
17047 #ifdef __cplusplus
17048 extern "C"
17049 #endif
17050 char dlopen ();
17051 int
17052 main ()
17053 {
17054 return dlopen ();
17055   ;
17056   return 0;
17057 }
17058 _ACEOF
17059 rm -f conftest.$ac_objext conftest$ac_exeext
17060 if { (ac_try="$ac_link"
17061 case "(($ac_try" in
17062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17063   *) ac_try_echo=$ac_try;;
17064 esac
17065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17066   (eval "$ac_link") 2>conftest.er1
17067   ac_status=$?
17068   grep -v '^ *+' conftest.er1 >conftest.err
17069   rm -f conftest.er1
17070   cat conftest.err >&5
17071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17072   (exit $ac_status); } &&
17073          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17074   { (case "(($ac_try" in
17075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17076   *) ac_try_echo=$ac_try;;
17077 esac
17078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17079   (eval "$ac_try") 2>&5
17080   ac_status=$?
17081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17082   (exit $ac_status); }; } &&
17083          { ac_try='test -s conftest$ac_exeext'
17084   { (case "(($ac_try" in
17085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17086   *) ac_try_echo=$ac_try;;
17087 esac
17088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17089   (eval "$ac_try") 2>&5
17090   ac_status=$?
17091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17092   (exit $ac_status); }; }; then
17093   ac_cv_lib_dl_dlopen=yes
17094 else
17095   echo "$as_me: failed program was:" >&5
17096 sed 's/^/| /' conftest.$ac_ext >&5
17097
17098         ac_cv_lib_dl_dlopen=no
17099 fi
17100
17101 rm -f core conftest.err conftest.$ac_objext \
17102       conftest$ac_exeext conftest.$ac_ext
17103 LIBS=$ac_check_lib_save_LIBS
17104 fi
17105 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17106 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17107 if test $ac_cv_lib_dl_dlopen = yes; then
17108   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17109 else
17110   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17111 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17112 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17113   echo $ECHO_N "(cached) $ECHO_C" >&6
17114 else
17115   ac_check_lib_save_LIBS=$LIBS
17116 LIBS="-lsvld  $LIBS"
17117 cat >conftest.$ac_ext <<_ACEOF
17118 /* confdefs.h.  */
17119 _ACEOF
17120 cat confdefs.h >>conftest.$ac_ext
17121 cat >>conftest.$ac_ext <<_ACEOF
17122 /* end confdefs.h.  */
17123
17124 /* Override any GCC internal prototype to avoid an error.
17125    Use char because int might match the return type of a GCC
17126    builtin and then its argument prototype would still apply.  */
17127 #ifdef __cplusplus
17128 extern "C"
17129 #endif
17130 char dlopen ();
17131 int
17132 main ()
17133 {
17134 return dlopen ();
17135   ;
17136   return 0;
17137 }
17138 _ACEOF
17139 rm -f conftest.$ac_objext conftest$ac_exeext
17140 if { (ac_try="$ac_link"
17141 case "(($ac_try" in
17142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17143   *) ac_try_echo=$ac_try;;
17144 esac
17145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17146   (eval "$ac_link") 2>conftest.er1
17147   ac_status=$?
17148   grep -v '^ *+' conftest.er1 >conftest.err
17149   rm -f conftest.er1
17150   cat conftest.err >&5
17151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17152   (exit $ac_status); } &&
17153          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17154   { (case "(($ac_try" in
17155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17156   *) ac_try_echo=$ac_try;;
17157 esac
17158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17159   (eval "$ac_try") 2>&5
17160   ac_status=$?
17161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17162   (exit $ac_status); }; } &&
17163          { ac_try='test -s conftest$ac_exeext'
17164   { (case "(($ac_try" in
17165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17166   *) ac_try_echo=$ac_try;;
17167 esac
17168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17169   (eval "$ac_try") 2>&5
17170   ac_status=$?
17171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17172   (exit $ac_status); }; }; then
17173   ac_cv_lib_svld_dlopen=yes
17174 else
17175   echo "$as_me: failed program was:" >&5
17176 sed 's/^/| /' conftest.$ac_ext >&5
17177
17178         ac_cv_lib_svld_dlopen=no
17179 fi
17180
17181 rm -f core conftest.err conftest.$ac_objext \
17182       conftest$ac_exeext conftest.$ac_ext
17183 LIBS=$ac_check_lib_save_LIBS
17184 fi
17185 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17186 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17187 if test $ac_cv_lib_svld_dlopen = yes; then
17188   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17189 else
17190   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17191 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17192 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17193   echo $ECHO_N "(cached) $ECHO_C" >&6
17194 else
17195   ac_check_lib_save_LIBS=$LIBS
17196 LIBS="-ldld  $LIBS"
17197 cat >conftest.$ac_ext <<_ACEOF
17198 /* confdefs.h.  */
17199 _ACEOF
17200 cat confdefs.h >>conftest.$ac_ext
17201 cat >>conftest.$ac_ext <<_ACEOF
17202 /* end confdefs.h.  */
17203
17204 /* Override any GCC internal prototype to avoid an error.
17205    Use char because int might match the return type of a GCC
17206    builtin and then its argument prototype would still apply.  */
17207 #ifdef __cplusplus
17208 extern "C"
17209 #endif
17210 char dld_link ();
17211 int
17212 main ()
17213 {
17214 return dld_link ();
17215   ;
17216   return 0;
17217 }
17218 _ACEOF
17219 rm -f conftest.$ac_objext conftest$ac_exeext
17220 if { (ac_try="$ac_link"
17221 case "(($ac_try" in
17222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17223   *) ac_try_echo=$ac_try;;
17224 esac
17225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17226   (eval "$ac_link") 2>conftest.er1
17227   ac_status=$?
17228   grep -v '^ *+' conftest.er1 >conftest.err
17229   rm -f conftest.er1
17230   cat conftest.err >&5
17231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17232   (exit $ac_status); } &&
17233          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17234   { (case "(($ac_try" in
17235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17236   *) ac_try_echo=$ac_try;;
17237 esac
17238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17239   (eval "$ac_try") 2>&5
17240   ac_status=$?
17241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17242   (exit $ac_status); }; } &&
17243          { ac_try='test -s conftest$ac_exeext'
17244   { (case "(($ac_try" in
17245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17246   *) ac_try_echo=$ac_try;;
17247 esac
17248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17249   (eval "$ac_try") 2>&5
17250   ac_status=$?
17251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17252   (exit $ac_status); }; }; then
17253   ac_cv_lib_dld_dld_link=yes
17254 else
17255   echo "$as_me: failed program was:" >&5
17256 sed 's/^/| /' conftest.$ac_ext >&5
17257
17258         ac_cv_lib_dld_dld_link=no
17259 fi
17260
17261 rm -f core conftest.err conftest.$ac_objext \
17262       conftest$ac_exeext conftest.$ac_ext
17263 LIBS=$ac_check_lib_save_LIBS
17264 fi
17265 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17266 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17267 if test $ac_cv_lib_dld_dld_link = yes; then
17268   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17269 fi
17270
17271
17272 fi
17273
17274
17275 fi
17276
17277
17278 fi
17279
17280
17281 fi
17282
17283
17284 fi
17285
17286     ;;
17287   esac
17288
17289   if test "x$lt_cv_dlopen" != xno; then
17290     enable_dlopen=yes
17291   else
17292     enable_dlopen=no
17293   fi
17294
17295   case $lt_cv_dlopen in
17296   dlopen)
17297     save_CPPFLAGS="$CPPFLAGS"
17298     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17299
17300     save_LDFLAGS="$LDFLAGS"
17301     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17302
17303     save_LIBS="$LIBS"
17304     LIBS="$lt_cv_dlopen_libs $LIBS"
17305
17306     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17307 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17308 if test "${lt_cv_dlopen_self+set}" = set; then
17309   echo $ECHO_N "(cached) $ECHO_C" >&6
17310 else
17311           if test "$cross_compiling" = yes; then :
17312   lt_cv_dlopen_self=cross
17313 else
17314   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17315   lt_status=$lt_dlunknown
17316   cat > conftest.$ac_ext <<EOF
17317 #line 17317 "configure"
17318 #include "confdefs.h"
17319
17320 #if HAVE_DLFCN_H
17321 #include <dlfcn.h>
17322 #endif
17323
17324 #include <stdio.h>
17325
17326 #ifdef RTLD_GLOBAL
17327 #  define LT_DLGLOBAL           RTLD_GLOBAL
17328 #else
17329 #  ifdef DL_GLOBAL
17330 #    define LT_DLGLOBAL         DL_GLOBAL
17331 #  else
17332 #    define LT_DLGLOBAL         0
17333 #  endif
17334 #endif
17335
17336 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17337    find out it does not work in some platform. */
17338 #ifndef LT_DLLAZY_OR_NOW
17339 #  ifdef RTLD_LAZY
17340 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17341 #  else
17342 #    ifdef DL_LAZY
17343 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17344 #    else
17345 #      ifdef RTLD_NOW
17346 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17347 #      else
17348 #        ifdef DL_NOW
17349 #          define LT_DLLAZY_OR_NOW      DL_NOW
17350 #        else
17351 #          define LT_DLLAZY_OR_NOW      0
17352 #        endif
17353 #      endif
17354 #    endif
17355 #  endif
17356 #endif
17357
17358 #ifdef __cplusplus
17359 extern "C" void exit (int);
17360 #endif
17361
17362 void fnord() { int i=42;}
17363 int main ()
17364 {
17365   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17366   int status = $lt_dlunknown;
17367
17368   if (self)
17369     {
17370       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17371       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17372       /* dlclose (self); */
17373     }
17374   else
17375     puts (dlerror ());
17376
17377     exit (status);
17378 }
17379 EOF
17380   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17381   (eval $ac_link) 2>&5
17382   ac_status=$?
17383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17384   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17385     (./conftest; exit; ) >&5 2>/dev/null
17386     lt_status=$?
17387     case x$lt_status in
17388       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17389       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17390       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17391     esac
17392   else :
17393     # compilation failed
17394     lt_cv_dlopen_self=no
17395   fi
17396 fi
17397 rm -fr conftest*
17398
17399
17400 fi
17401 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17402 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17403
17404     if test "x$lt_cv_dlopen_self" = xyes; then
17405       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17406       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17407 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17408 if test "${lt_cv_dlopen_self_static+set}" = set; then
17409   echo $ECHO_N "(cached) $ECHO_C" >&6
17410 else
17411           if test "$cross_compiling" = yes; then :
17412   lt_cv_dlopen_self_static=cross
17413 else
17414   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17415   lt_status=$lt_dlunknown
17416   cat > conftest.$ac_ext <<EOF
17417 #line 17417 "configure"
17418 #include "confdefs.h"
17419
17420 #if HAVE_DLFCN_H
17421 #include <dlfcn.h>
17422 #endif
17423
17424 #include <stdio.h>
17425
17426 #ifdef RTLD_GLOBAL
17427 #  define LT_DLGLOBAL           RTLD_GLOBAL
17428 #else
17429 #  ifdef DL_GLOBAL
17430 #    define LT_DLGLOBAL         DL_GLOBAL
17431 #  else
17432 #    define LT_DLGLOBAL         0
17433 #  endif
17434 #endif
17435
17436 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17437    find out it does not work in some platform. */
17438 #ifndef LT_DLLAZY_OR_NOW
17439 #  ifdef RTLD_LAZY
17440 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17441 #  else
17442 #    ifdef DL_LAZY
17443 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17444 #    else
17445 #      ifdef RTLD_NOW
17446 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17447 #      else
17448 #        ifdef DL_NOW
17449 #          define LT_DLLAZY_OR_NOW      DL_NOW
17450 #        else
17451 #          define LT_DLLAZY_OR_NOW      0
17452 #        endif
17453 #      endif
17454 #    endif
17455 #  endif
17456 #endif
17457
17458 #ifdef __cplusplus
17459 extern "C" void exit (int);
17460 #endif
17461
17462 void fnord() { int i=42;}
17463 int main ()
17464 {
17465   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17466   int status = $lt_dlunknown;
17467
17468   if (self)
17469     {
17470       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17471       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17472       /* dlclose (self); */
17473     }
17474   else
17475     puts (dlerror ());
17476
17477     exit (status);
17478 }
17479 EOF
17480   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17481   (eval $ac_link) 2>&5
17482   ac_status=$?
17483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17484   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17485     (./conftest; exit; ) >&5 2>/dev/null
17486     lt_status=$?
17487     case x$lt_status in
17488       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17489       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17490       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17491     esac
17492   else :
17493     # compilation failed
17494     lt_cv_dlopen_self_static=no
17495   fi
17496 fi
17497 rm -fr conftest*
17498
17499
17500 fi
17501 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17502 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17503     fi
17504
17505     CPPFLAGS="$save_CPPFLAGS"
17506     LDFLAGS="$save_LDFLAGS"
17507     LIBS="$save_LIBS"
17508     ;;
17509   esac
17510
17511   case $lt_cv_dlopen_self in
17512   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17513   *) enable_dlopen_self=unknown ;;
17514   esac
17515
17516   case $lt_cv_dlopen_self_static in
17517   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17518   *) enable_dlopen_self_static=unknown ;;
17519   esac
17520 fi
17521
17522
17523 # Report which library types will actually be built
17524 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17525 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17526 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17527 echo "${ECHO_T}$can_build_shared" >&6; }
17528
17529 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17530 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17531 test "$can_build_shared" = "no" && enable_shared=no
17532
17533 # On AIX, shared libraries and static libraries use the same namespace, and
17534 # are all built from PIC.
17535 case $host_os in
17536 aix3*)
17537   test "$enable_shared" = yes && enable_static=no
17538   if test -n "$RANLIB"; then
17539     archive_cmds="$archive_cmds~\$RANLIB \$lib"
17540     postinstall_cmds='$RANLIB $lib'
17541   fi
17542   ;;
17543
17544 aix4* | aix5*)
17545   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17546     test "$enable_shared" = yes && enable_static=no
17547   fi
17548     ;;
17549 esac
17550 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17551 echo "${ECHO_T}$enable_shared" >&6; }
17552
17553 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17554 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17555 # Make sure either enable_shared or enable_static is yes.
17556 test "$enable_shared" = yes || enable_static=yes
17557 { echo "$as_me:$LINENO: result: $enable_static" >&5
17558 echo "${ECHO_T}$enable_static" >&6; }
17559
17560 # The else clause should only fire when bootstrapping the
17561 # libtool distribution, otherwise you forgot to ship ltmain.sh
17562 # with your package, and you will get complaints that there are
17563 # no rules to generate ltmain.sh.
17564 if test -f "$ltmain"; then
17565   # See if we are running on zsh, and set the options which allow our commands through
17566   # without removal of \ escapes.
17567   if test -n "${ZSH_VERSION+set}" ; then
17568     setopt NO_GLOB_SUBST
17569   fi
17570   # Now quote all the things that may contain metacharacters while being
17571   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17572   # variables and quote the copies for generation of the libtool script.
17573   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17574     SED SHELL STRIP \
17575     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17576     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17577     deplibs_check_method reload_flag reload_cmds need_locks \
17578     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17579     lt_cv_sys_global_symbol_to_c_name_address \
17580     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17581     old_postinstall_cmds old_postuninstall_cmds \
17582     compiler \
17583     CC \
17584     LD \
17585     lt_prog_compiler_wl \
17586     lt_prog_compiler_pic \
17587     lt_prog_compiler_static \
17588     lt_prog_compiler_no_builtin_flag \
17589     export_dynamic_flag_spec \
17590     thread_safe_flag_spec \
17591     whole_archive_flag_spec \
17592     enable_shared_with_static_runtimes \
17593     old_archive_cmds \
17594     old_archive_from_new_cmds \
17595     predep_objects \
17596     postdep_objects \
17597     predeps \
17598     postdeps \
17599     compiler_lib_search_path \
17600     archive_cmds \
17601     archive_expsym_cmds \
17602     postinstall_cmds \
17603     postuninstall_cmds \
17604     old_archive_from_expsyms_cmds \
17605     allow_undefined_flag \
17606     no_undefined_flag \
17607     export_symbols_cmds \
17608     hardcode_libdir_flag_spec \
17609     hardcode_libdir_flag_spec_ld \
17610     hardcode_libdir_separator \
17611     hardcode_automatic \
17612     module_cmds \
17613     module_expsym_cmds \
17614     lt_cv_prog_compiler_c_o \
17615     exclude_expsyms \
17616     include_expsyms; do
17617
17618     case $var in
17619     old_archive_cmds | \
17620     old_archive_from_new_cmds | \
17621     archive_cmds | \
17622     archive_expsym_cmds | \
17623     module_cmds | \
17624     module_expsym_cmds | \
17625     old_archive_from_expsyms_cmds | \
17626     export_symbols_cmds | \
17627     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17628     postinstall_cmds | postuninstall_cmds | \
17629     old_postinstall_cmds | old_postuninstall_cmds | \
17630     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17631       # Double-quote double-evaled strings.
17632       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17633       ;;
17634     *)
17635       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17636       ;;
17637     esac
17638   done
17639
17640   case $lt_echo in
17641   *'\$0 --fallback-echo"')
17642     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17643     ;;
17644   esac
17645
17646 cfgfile="${ofile}T"
17647   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17648   $rm -f "$cfgfile"
17649   { echo "$as_me:$LINENO: creating $ofile" >&5
17650 echo "$as_me: creating $ofile" >&6;}
17651
17652   cat <<__EOF__ >> "$cfgfile"
17653 #! $SHELL
17654
17655 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17656 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17657 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17658 #
17659 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17660 # Free Software Foundation, Inc.
17661 #
17662 # This file is part of GNU Libtool:
17663 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17664 #
17665 # This program is free software; you can redistribute it and/or modify
17666 # it under the terms of the GNU General Public License as published by
17667 # the Free Software Foundation; either version 2 of the License, or
17668 # (at your option) any later version.
17669 #
17670 # This program is distributed in the hope that it will be useful, but
17671 # WITHOUT ANY WARRANTY; without even the implied warranty of
17672 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17673 # General Public License for more details.
17674 #
17675 # You should have received a copy of the GNU General Public License
17676 # along with this program; if not, write to the Free Software
17677 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17678 #
17679 # As a special exception to the GNU General Public License, if you
17680 # distribute this file as part of a program that contains a
17681 # configuration script generated by Autoconf, you may include it under
17682 # the same distribution terms that you use for the rest of that program.
17683
17684 # A sed program that does not truncate output.
17685 SED=$lt_SED
17686
17687 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17688 Xsed="$SED -e 1s/^X//"
17689
17690 # The HP-UX ksh and POSIX shell print the target directory to stdout
17691 # if CDPATH is set.
17692 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17693
17694 # The names of the tagged configurations supported by this script.
17695 available_tags=
17696
17697 # ### BEGIN LIBTOOL CONFIG
17698
17699 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17700
17701 # Shell to use when invoking shell scripts.
17702 SHELL=$lt_SHELL
17703
17704 # Whether or not to build shared libraries.
17705 build_libtool_libs=$enable_shared
17706
17707 # Whether or not to build static libraries.
17708 build_old_libs=$enable_static
17709
17710 # Whether or not to add -lc for building shared libraries.
17711 build_libtool_need_lc=$archive_cmds_need_lc
17712
17713 # Whether or not to disallow shared libs when runtime libs are static
17714 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17715
17716 # Whether or not to optimize for fast installation.
17717 fast_install=$enable_fast_install
17718
17719 # The host system.
17720 host_alias=$host_alias
17721 host=$host
17722 host_os=$host_os
17723
17724 # The build system.
17725 build_alias=$build_alias
17726 build=$build
17727 build_os=$build_os
17728
17729 # An echo program that does not interpret backslashes.
17730 echo=$lt_echo
17731
17732 # The archiver.
17733 AR=$lt_AR
17734 AR_FLAGS=$lt_AR_FLAGS
17735
17736 # A C compiler.
17737 LTCC=$lt_LTCC
17738
17739 # LTCC compiler flags.
17740 LTCFLAGS=$lt_LTCFLAGS
17741
17742 # A language-specific compiler.
17743 CC=$lt_compiler
17744
17745 # Is the compiler the GNU C compiler?
17746 with_gcc=$GCC
17747
17748 # An ERE matcher.
17749 EGREP=$lt_EGREP
17750
17751 # The linker used to build libraries.
17752 LD=$lt_LD
17753
17754 # Whether we need hard or soft links.
17755 LN_S=$lt_LN_S
17756
17757 # A BSD-compatible nm program.
17758 NM=$lt_NM
17759
17760 # A symbol stripping program
17761 STRIP=$lt_STRIP
17762
17763 # Used to examine libraries when file_magic_cmd begins "file"
17764 MAGIC_CMD=$MAGIC_CMD
17765
17766 # Used on cygwin: DLL creation program.
17767 DLLTOOL="$DLLTOOL"
17768
17769 # Used on cygwin: object dumper.
17770 OBJDUMP="$OBJDUMP"
17771
17772 # Used on cygwin: assembler.
17773 AS="$AS"
17774
17775 # The name of the directory that contains temporary libtool files.
17776 objdir=$objdir
17777
17778 # How to create reloadable object files.
17779 reload_flag=$lt_reload_flag
17780 reload_cmds=$lt_reload_cmds
17781
17782 # How to pass a linker flag through the compiler.
17783 wl=$lt_lt_prog_compiler_wl
17784
17785 # Object file suffix (normally "o").
17786 objext="$ac_objext"
17787
17788 # Old archive suffix (normally "a").
17789 libext="$libext"
17790
17791 # Shared library suffix (normally ".so").
17792 shrext_cmds='$shrext_cmds'
17793
17794 # Executable file suffix (normally "").
17795 exeext="$exeext"
17796
17797 # Additional compiler flags for building library objects.
17798 pic_flag=$lt_lt_prog_compiler_pic
17799 pic_mode=$pic_mode
17800
17801 # What is the maximum length of a command?
17802 max_cmd_len=$lt_cv_sys_max_cmd_len
17803
17804 # Does compiler simultaneously support -c and -o options?
17805 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17806
17807 # Must we lock files when doing compilation?
17808 need_locks=$lt_need_locks
17809
17810 # Do we need the lib prefix for modules?
17811 need_lib_prefix=$need_lib_prefix
17812
17813 # Do we need a version for libraries?
17814 need_version=$need_version
17815
17816 # Whether dlopen is supported.
17817 dlopen_support=$enable_dlopen
17818
17819 # Whether dlopen of programs is supported.
17820 dlopen_self=$enable_dlopen_self
17821
17822 # Whether dlopen of statically linked programs is supported.
17823 dlopen_self_static=$enable_dlopen_self_static
17824
17825 # Compiler flag to prevent dynamic linking.
17826 link_static_flag=$lt_lt_prog_compiler_static
17827
17828 # Compiler flag to turn off builtin functions.
17829 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17830
17831 # Compiler flag to allow reflexive dlopens.
17832 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17833
17834 # Compiler flag to generate shared objects directly from archives.
17835 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17836
17837 # Compiler flag to generate thread-safe objects.
17838 thread_safe_flag_spec=$lt_thread_safe_flag_spec
17839
17840 # Library versioning type.
17841 version_type=$version_type
17842
17843 # Format of library name prefix.
17844 libname_spec=$lt_libname_spec
17845
17846 # List of archive names.  First name is the real one, the rest are links.
17847 # The last name is the one that the linker finds with -lNAME.
17848 library_names_spec=$lt_library_names_spec
17849
17850 # The coded name of the library, if different from the real name.
17851 soname_spec=$lt_soname_spec
17852
17853 # Commands used to build and install an old-style archive.
17854 RANLIB=$lt_RANLIB
17855 old_archive_cmds=$lt_old_archive_cmds
17856 old_postinstall_cmds=$lt_old_postinstall_cmds
17857 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17858
17859 # Create an old-style archive from a shared archive.
17860 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17861
17862 # Create a temporary old-style archive to link instead of a shared archive.
17863 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17864
17865 # Commands used to build and install a shared archive.
17866 archive_cmds=$lt_archive_cmds
17867 archive_expsym_cmds=$lt_archive_expsym_cmds
17868 postinstall_cmds=$lt_postinstall_cmds
17869 postuninstall_cmds=$lt_postuninstall_cmds
17870
17871 # Commands used to build a loadable module (assumed same as above if empty)
17872 module_cmds=$lt_module_cmds
17873 module_expsym_cmds=$lt_module_expsym_cmds
17874
17875 # Commands to strip libraries.
17876 old_striplib=$lt_old_striplib
17877 striplib=$lt_striplib
17878
17879 # Dependencies to place before the objects being linked to create a
17880 # shared library.
17881 predep_objects=$lt_predep_objects
17882
17883 # Dependencies to place after the objects being linked to create a
17884 # shared library.
17885 postdep_objects=$lt_postdep_objects
17886
17887 # Dependencies to place before the objects being linked to create a
17888 # shared library.
17889 predeps=$lt_predeps
17890
17891 # Dependencies to place after the objects being linked to create a
17892 # shared library.
17893 postdeps=$lt_postdeps
17894
17895 # The library search path used internally by the compiler when linking
17896 # a shared library.
17897 compiler_lib_search_path=$lt_compiler_lib_search_path
17898
17899 # Method to check whether dependent libraries are shared objects.
17900 deplibs_check_method=$lt_deplibs_check_method
17901
17902 # Command to use when deplibs_check_method == file_magic.
17903 file_magic_cmd=$lt_file_magic_cmd
17904
17905 # Flag that allows shared libraries with undefined symbols to be built.
17906 allow_undefined_flag=$lt_allow_undefined_flag
17907
17908 # Flag that forces no undefined symbols.
17909 no_undefined_flag=$lt_no_undefined_flag
17910
17911 # Commands used to finish a libtool library installation in a directory.
17912 finish_cmds=$lt_finish_cmds
17913
17914 # Same as above, but a single script fragment to be evaled but not shown.
17915 finish_eval=$lt_finish_eval
17916
17917 # Take the output of nm and produce a listing of raw symbols and C names.
17918 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17919
17920 # Transform the output of nm in a proper C declaration
17921 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17922
17923 # Transform the output of nm in a C name address pair
17924 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17925
17926 # This is the shared library runtime path variable.
17927 runpath_var=$runpath_var
17928
17929 # This is the shared library path variable.
17930 shlibpath_var=$shlibpath_var
17931
17932 # Is shlibpath searched before the hard-coded library search path?
17933 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17934
17935 # How to hardcode a shared library path into an executable.
17936 hardcode_action=$hardcode_action
17937
17938 # Whether we should hardcode library paths into libraries.
17939 hardcode_into_libs=$hardcode_into_libs
17940
17941 # Flag to hardcode \$libdir into a binary during linking.
17942 # This must work even if \$libdir does not exist.
17943 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17944
17945 # If ld is used when linking, flag to hardcode \$libdir into
17946 # a binary during linking. This must work even if \$libdir does
17947 # not exist.
17948 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17949
17950 # Whether we need a single -rpath flag with a separated argument.
17951 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17952
17953 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17954 # resulting binary.
17955 hardcode_direct=$hardcode_direct
17956
17957 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17958 # resulting binary.
17959 hardcode_minus_L=$hardcode_minus_L
17960
17961 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17962 # the resulting binary.
17963 hardcode_shlibpath_var=$hardcode_shlibpath_var
17964
17965 # Set to yes if building a shared library automatically hardcodes DIR into the library
17966 # and all subsequent libraries and executables linked against it.
17967 hardcode_automatic=$hardcode_automatic
17968
17969 # Variables whose values should be saved in libtool wrapper scripts and
17970 # restored at relink time.
17971 variables_saved_for_relink="$variables_saved_for_relink"
17972
17973 # Whether libtool must link a program against all its dependency libraries.
17974 link_all_deplibs=$link_all_deplibs
17975
17976 # Compile-time system search path for libraries
17977 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17978
17979 # Run-time system search path for libraries
17980 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17981
17982 # Fix the shell variable \$srcfile for the compiler.
17983 fix_srcfile_path="$fix_srcfile_path"
17984
17985 # Set to yes if exported symbols are required.
17986 always_export_symbols=$always_export_symbols
17987
17988 # The commands to list exported symbols.
17989 export_symbols_cmds=$lt_export_symbols_cmds
17990
17991 # The commands to extract the exported symbol list from a shared archive.
17992 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17993
17994 # Symbols that should not be listed in the preloaded symbols.
17995 exclude_expsyms=$lt_exclude_expsyms
17996
17997 # Symbols that must always be exported.
17998 include_expsyms=$lt_include_expsyms
17999
18000 # ### END LIBTOOL CONFIG
18001
18002 __EOF__
18003
18004
18005   case $host_os in
18006   aix3*)
18007     cat <<\EOF >> "$cfgfile"
18008
18009 # AIX sometimes has problems with the GCC collect2 program.  For some
18010 # reason, if we set the COLLECT_NAMES environment variable, the problems
18011 # vanish in a puff of smoke.
18012 if test "X${COLLECT_NAMES+set}" != Xset; then
18013   COLLECT_NAMES=
18014   export COLLECT_NAMES
18015 fi
18016 EOF
18017     ;;
18018   esac
18019
18020   # We use sed instead of cat because bash on DJGPP gets confused if
18021   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18022   # text mode, it properly converts lines to CR/LF.  This bash problem
18023   # is reportedly fixed, but why not run on old versions too?
18024   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
18025
18026   mv -f "$cfgfile" "$ofile" || \
18027     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18028   chmod +x "$ofile"
18029
18030 else
18031   # If there is no Makefile yet, we rely on a make rule to execute
18032   # `config.status --recheck' to rerun these tests and create the
18033   # libtool script then.
18034   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18035   if test -f "$ltmain_in"; then
18036     test -f Makefile && make "$ltmain"
18037   fi
18038 fi
18039
18040
18041 ac_ext=c
18042 ac_cpp='$CPP $CPPFLAGS'
18043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18046
18047 CC="$lt_save_CC"
18048
18049
18050 # Check whether --with-tags was given.
18051 if test "${with_tags+set}" = set; then
18052   withval=$with_tags; tagnames="$withval"
18053 fi
18054
18055
18056 if test -f "$ltmain" && test -n "$tagnames"; then
18057   if test ! -f "${ofile}"; then
18058     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18059 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18060   fi
18061
18062   if test -z "$LTCC"; then
18063     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18064     if test -z "$LTCC"; then
18065       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18066 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18067     else
18068       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18069 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18070     fi
18071   fi
18072   if test -z "$LTCFLAGS"; then
18073     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18074   fi
18075
18076   # Extract list of available tagged configurations in $ofile.
18077   # Note that this assumes the entire list is on one line.
18078   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18079
18080   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18081   for tagname in $tagnames; do
18082     IFS="$lt_save_ifs"
18083     # Check whether tagname contains only valid characters
18084     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18085     "") ;;
18086     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18087 echo "$as_me: error: invalid tag name: $tagname" >&2;}
18088    { (exit 1); exit 1; }; }
18089         ;;
18090     esac
18091
18092     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18093     then
18094       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18095 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18096    { (exit 1); exit 1; }; }
18097     fi
18098
18099     # Update the list of available tags.
18100     if test -n "$tagname"; then
18101       echo appending configuration tag \"$tagname\" to $ofile
18102
18103       case $tagname in
18104       CXX)
18105         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18106             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18107             (test "X$CXX" != "Xg++"))) ; then
18108           ac_ext=cpp
18109 ac_cpp='$CXXCPP $CPPFLAGS'
18110 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18111 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18112 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18113
18114
18115
18116
18117 archive_cmds_need_lc_CXX=no
18118 allow_undefined_flag_CXX=
18119 always_export_symbols_CXX=no
18120 archive_expsym_cmds_CXX=
18121 export_dynamic_flag_spec_CXX=
18122 hardcode_direct_CXX=no
18123 hardcode_libdir_flag_spec_CXX=
18124 hardcode_libdir_flag_spec_ld_CXX=
18125 hardcode_libdir_separator_CXX=
18126 hardcode_minus_L_CXX=no
18127 hardcode_shlibpath_var_CXX=unsupported
18128 hardcode_automatic_CXX=no
18129 module_cmds_CXX=
18130 module_expsym_cmds_CXX=
18131 link_all_deplibs_CXX=unknown
18132 old_archive_cmds_CXX=$old_archive_cmds
18133 no_undefined_flag_CXX=
18134 whole_archive_flag_spec_CXX=
18135 enable_shared_with_static_runtimes_CXX=no
18136
18137 # Dependencies to place before and after the object being linked:
18138 predep_objects_CXX=
18139 postdep_objects_CXX=
18140 predeps_CXX=
18141 postdeps_CXX=
18142 compiler_lib_search_path_CXX=
18143
18144 # Source file extension for C++ test sources.
18145 ac_ext=cpp
18146
18147 # Object file extension for compiled C++ test sources.
18148 objext=o
18149 objext_CXX=$objext
18150
18151 # Code to be used in simple compile tests
18152 lt_simple_compile_test_code="int some_variable = 0;\n"
18153
18154 # Code to be used in simple link tests
18155 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18156
18157 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18158
18159 # If no C compiler was specified, use CC.
18160 LTCC=${LTCC-"$CC"}
18161
18162 # If no C compiler flags were specified, use CFLAGS.
18163 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18164
18165 # Allow CC to be a program name with arguments.
18166 compiler=$CC
18167
18168
18169 # save warnings/boilerplate of simple test code
18170 ac_outfile=conftest.$ac_objext
18171 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18172 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18173 _lt_compiler_boilerplate=`cat conftest.err`
18174 $rm conftest*
18175
18176 ac_outfile=conftest.$ac_objext
18177 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18178 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18179 _lt_linker_boilerplate=`cat conftest.err`
18180 $rm conftest*
18181
18182
18183 # Allow CC to be a program name with arguments.
18184 lt_save_CC=$CC
18185 lt_save_LD=$LD
18186 lt_save_GCC=$GCC
18187 GCC=$GXX
18188 lt_save_with_gnu_ld=$with_gnu_ld
18189 lt_save_path_LD=$lt_cv_path_LD
18190 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18191   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18192 else
18193   $as_unset lt_cv_prog_gnu_ld
18194 fi
18195 if test -n "${lt_cv_path_LDCXX+set}"; then
18196   lt_cv_path_LD=$lt_cv_path_LDCXX
18197 else
18198   $as_unset lt_cv_path_LD
18199 fi
18200 test -z "${LDCXX+set}" || LD=$LDCXX
18201 CC=${CXX-"c++"}
18202 compiler=$CC
18203 compiler_CXX=$CC
18204 for cc_temp in $compiler""; do
18205   case $cc_temp in
18206     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18207     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18208     \-*) ;;
18209     *) break;;
18210   esac
18211 done
18212 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18213
18214
18215 # We don't want -fno-exception wen compiling C++ code, so set the
18216 # no_builtin_flag separately
18217 if test "$GXX" = yes; then
18218   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18219 else
18220   lt_prog_compiler_no_builtin_flag_CXX=
18221 fi
18222
18223 if test "$GXX" = yes; then
18224   # Set up default GNU C++ configuration
18225
18226
18227 # Check whether --with-gnu-ld was given.
18228 if test "${with_gnu_ld+set}" = set; then
18229   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18230 else
18231   with_gnu_ld=no
18232 fi
18233
18234 ac_prog=ld
18235 if test "$GCC" = yes; then
18236   # Check if gcc -print-prog-name=ld gives a path.
18237   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18238 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18239   case $host in
18240   *-*-mingw*)
18241     # gcc leaves a trailing carriage return which upsets mingw
18242     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18243   *)
18244     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18245   esac
18246   case $ac_prog in
18247     # Accept absolute paths.
18248     [\\/]* | ?:[\\/]*)
18249       re_direlt='/[^/][^/]*/\.\./'
18250       # Canonicalize the pathname of ld
18251       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18252       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18253         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18254       done
18255       test -z "$LD" && LD="$ac_prog"
18256       ;;
18257   "")
18258     # If it fails, then pretend we aren't using GCC.
18259     ac_prog=ld
18260     ;;
18261   *)
18262     # If it is relative, then search for the first ld in PATH.
18263     with_gnu_ld=unknown
18264     ;;
18265   esac
18266 elif test "$with_gnu_ld" = yes; then
18267   { echo "$as_me:$LINENO: checking for GNU ld" >&5
18268 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18269 else
18270   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18271 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18272 fi
18273 if test "${lt_cv_path_LD+set}" = set; then
18274   echo $ECHO_N "(cached) $ECHO_C" >&6
18275 else
18276   if test -z "$LD"; then
18277   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18278   for ac_dir in $PATH; do
18279     IFS="$lt_save_ifs"
18280     test -z "$ac_dir" && ac_dir=.
18281     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18282       lt_cv_path_LD="$ac_dir/$ac_prog"
18283       # Check to see if the program is GNU ld.  I'd rather use --version,
18284       # but apparently some variants of GNU ld only accept -v.
18285       # Break only if it was the GNU/non-GNU ld that we prefer.
18286       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18287       *GNU* | *'with BFD'*)
18288         test "$with_gnu_ld" != no && break
18289         ;;
18290       *)
18291         test "$with_gnu_ld" != yes && break
18292         ;;
18293       esac
18294     fi
18295   done
18296   IFS="$lt_save_ifs"
18297 else
18298   lt_cv_path_LD="$LD" # Let the user override the test with a path.
18299 fi
18300 fi
18301
18302 LD="$lt_cv_path_LD"
18303 if test -n "$LD"; then
18304   { echo "$as_me:$LINENO: result: $LD" >&5
18305 echo "${ECHO_T}$LD" >&6; }
18306 else
18307   { echo "$as_me:$LINENO: result: no" >&5
18308 echo "${ECHO_T}no" >&6; }
18309 fi
18310 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18311 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18312    { (exit 1); exit 1; }; }
18313 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18314 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18315 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18316   echo $ECHO_N "(cached) $ECHO_C" >&6
18317 else
18318   # I'd rather use --version here, but apparently some GNU lds only accept -v.
18319 case `$LD -v 2>&1 </dev/null` in
18320 *GNU* | *'with BFD'*)
18321   lt_cv_prog_gnu_ld=yes
18322   ;;
18323 *)
18324   lt_cv_prog_gnu_ld=no
18325   ;;
18326 esac
18327 fi
18328 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18329 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18330 with_gnu_ld=$lt_cv_prog_gnu_ld
18331
18332
18333
18334   # Check if GNU C++ uses GNU ld as the underlying linker, since the
18335   # archiving commands below assume that GNU ld is being used.
18336   if test "$with_gnu_ld" = yes; then
18337     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18338     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'
18339
18340     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18341     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18342
18343     # If archive_cmds runs LD, not CC, wlarc should be empty
18344     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18345     #     investigate it a little bit more. (MM)
18346     wlarc='${wl}'
18347
18348     # ancient GNU ld didn't support --whole-archive et. al.
18349     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18350         grep 'no-whole-archive' > /dev/null; then
18351       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18352     else
18353       whole_archive_flag_spec_CXX=
18354     fi
18355   else
18356     with_gnu_ld=no
18357     wlarc=
18358
18359     # A generic and very simple default shared library creation
18360     # command for GNU C++ for the case where it uses the native
18361     # linker, instead of GNU ld.  If possible, this setting should
18362     # overridden to take advantage of the native linker features on
18363     # the platform it is being used on.
18364     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18365   fi
18366
18367   # Commands to make compiler produce verbose output that lists
18368   # what "hidden" libraries, object files and flags are used when
18369   # linking a shared library.
18370   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18371
18372 else
18373   GXX=no
18374   with_gnu_ld=no
18375   wlarc=
18376 fi
18377
18378 # PORTME: fill in a description of your system's C++ link characteristics
18379 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18380 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18381 ld_shlibs_CXX=yes
18382 case $host_os in
18383   aix3*)
18384     # FIXME: insert proper C++ library support
18385     ld_shlibs_CXX=no
18386     ;;
18387   aix4* | aix5*)
18388     if test "$host_cpu" = ia64; then
18389       # On IA64, the linker does run time linking by default, so we don't
18390       # have to do anything special.
18391       aix_use_runtimelinking=no
18392       exp_sym_flag='-Bexport'
18393       no_entry_flag=""
18394     else
18395       aix_use_runtimelinking=no
18396
18397       # Test if we are trying to use run time linking or normal
18398       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18399       # need to do runtime linking.
18400       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18401         for ld_flag in $LDFLAGS; do
18402           case $ld_flag in
18403           *-brtl*)
18404             aix_use_runtimelinking=yes
18405             break
18406             ;;
18407           esac
18408         done
18409         ;;
18410       esac
18411
18412       exp_sym_flag='-bexport'
18413       no_entry_flag='-bnoentry'
18414     fi
18415
18416     # When large executables or shared objects are built, AIX ld can
18417     # have problems creating the table of contents.  If linking a library
18418     # or program results in "error TOC overflow" add -mminimal-toc to
18419     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18420     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18421
18422     archive_cmds_CXX=''
18423     hardcode_direct_CXX=yes
18424     hardcode_libdir_separator_CXX=':'
18425     link_all_deplibs_CXX=yes
18426
18427     if test "$GXX" = yes; then
18428       case $host_os in aix4.[012]|aix4.[012].*)
18429       # We only want to do this on AIX 4.2 and lower, the check
18430       # below for broken collect2 doesn't work under 4.3+
18431         collect2name=`${CC} -print-prog-name=collect2`
18432         if test -f "$collect2name" && \
18433            strings "$collect2name" | grep resolve_lib_name >/dev/null
18434         then
18435           # We have reworked collect2
18436           hardcode_direct_CXX=yes
18437         else
18438           # We have old collect2
18439           hardcode_direct_CXX=unsupported
18440           # It fails to find uninstalled libraries when the uninstalled
18441           # path is not listed in the libpath.  Setting hardcode_minus_L
18442           # to unsupported forces relinking
18443           hardcode_minus_L_CXX=yes
18444           hardcode_libdir_flag_spec_CXX='-L$libdir'
18445           hardcode_libdir_separator_CXX=
18446         fi
18447         ;;
18448       esac
18449       shared_flag='-shared'
18450       if test "$aix_use_runtimelinking" = yes; then
18451         shared_flag="$shared_flag "'${wl}-G'
18452       fi
18453     else
18454       # not using gcc
18455       if test "$host_cpu" = ia64; then
18456         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18457         # chokes on -Wl,-G. The following line is correct:
18458         shared_flag='-G'
18459       else
18460         if test "$aix_use_runtimelinking" = yes; then
18461           shared_flag='${wl}-G'
18462         else
18463           shared_flag='${wl}-bM:SRE'
18464         fi
18465       fi
18466     fi
18467
18468     # It seems that -bexpall does not export symbols beginning with
18469     # underscore (_), so it is better to generate a list of symbols to export.
18470     always_export_symbols_CXX=yes
18471     if test "$aix_use_runtimelinking" = yes; then
18472       # Warning - without using the other runtime loading flags (-brtl),
18473       # -berok will link without error, but may produce a broken library.
18474       allow_undefined_flag_CXX='-berok'
18475       # Determine the default libpath from the value encoded in an empty executable.
18476       cat >conftest.$ac_ext <<_ACEOF
18477 /* confdefs.h.  */
18478 _ACEOF
18479 cat confdefs.h >>conftest.$ac_ext
18480 cat >>conftest.$ac_ext <<_ACEOF
18481 /* end confdefs.h.  */
18482
18483 int
18484 main ()
18485 {
18486
18487   ;
18488   return 0;
18489 }
18490 _ACEOF
18491 rm -f conftest.$ac_objext conftest$ac_exeext
18492 if { (ac_try="$ac_link"
18493 case "(($ac_try" in
18494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18495   *) ac_try_echo=$ac_try;;
18496 esac
18497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18498   (eval "$ac_link") 2>conftest.er1
18499   ac_status=$?
18500   grep -v '^ *+' conftest.er1 >conftest.err
18501   rm -f conftest.er1
18502   cat conftest.err >&5
18503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18504   (exit $ac_status); } &&
18505          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18506   { (case "(($ac_try" in
18507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18508   *) ac_try_echo=$ac_try;;
18509 esac
18510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18511   (eval "$ac_try") 2>&5
18512   ac_status=$?
18513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18514   (exit $ac_status); }; } &&
18515          { ac_try='test -s conftest$ac_exeext'
18516   { (case "(($ac_try" in
18517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18518   *) ac_try_echo=$ac_try;;
18519 esac
18520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18521   (eval "$ac_try") 2>&5
18522   ac_status=$?
18523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18524   (exit $ac_status); }; }; then
18525
18526 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18527 }'`
18528 # Check for a 64-bit object if we didn't find anything.
18529 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; }
18530 }'`; fi
18531 else
18532   echo "$as_me: failed program was:" >&5
18533 sed 's/^/| /' conftest.$ac_ext >&5
18534
18535
18536 fi
18537
18538 rm -f core conftest.err conftest.$ac_objext \
18539       conftest$ac_exeext conftest.$ac_ext
18540 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18541
18542       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18543
18544       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"
18545      else
18546       if test "$host_cpu" = ia64; then
18547         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18548         allow_undefined_flag_CXX="-z nodefs"
18549         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"
18550       else
18551         # Determine the default libpath from the value encoded in an empty executable.
18552         cat >conftest.$ac_ext <<_ACEOF
18553 /* confdefs.h.  */
18554 _ACEOF
18555 cat confdefs.h >>conftest.$ac_ext
18556 cat >>conftest.$ac_ext <<_ACEOF
18557 /* end confdefs.h.  */
18558
18559 int
18560 main ()
18561 {
18562
18563   ;
18564   return 0;
18565 }
18566 _ACEOF
18567 rm -f conftest.$ac_objext conftest$ac_exeext
18568 if { (ac_try="$ac_link"
18569 case "(($ac_try" in
18570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18571   *) ac_try_echo=$ac_try;;
18572 esac
18573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18574   (eval "$ac_link") 2>conftest.er1
18575   ac_status=$?
18576   grep -v '^ *+' conftest.er1 >conftest.err
18577   rm -f conftest.er1
18578   cat conftest.err >&5
18579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18580   (exit $ac_status); } &&
18581          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18582   { (case "(($ac_try" in
18583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18584   *) ac_try_echo=$ac_try;;
18585 esac
18586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18587   (eval "$ac_try") 2>&5
18588   ac_status=$?
18589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18590   (exit $ac_status); }; } &&
18591          { ac_try='test -s conftest$ac_exeext'
18592   { (case "(($ac_try" in
18593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18594   *) ac_try_echo=$ac_try;;
18595 esac
18596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18597   (eval "$ac_try") 2>&5
18598   ac_status=$?
18599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18600   (exit $ac_status); }; }; then
18601
18602 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18603 }'`
18604 # Check for a 64-bit object if we didn't find anything.
18605 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; }
18606 }'`; fi
18607 else
18608   echo "$as_me: failed program was:" >&5
18609 sed 's/^/| /' conftest.$ac_ext >&5
18610
18611
18612 fi
18613
18614 rm -f core conftest.err conftest.$ac_objext \
18615       conftest$ac_exeext conftest.$ac_ext
18616 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18617
18618         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18619         # Warning - without using the other run time loading flags,
18620         # -berok will link without error, but may produce a broken library.
18621         no_undefined_flag_CXX=' ${wl}-bernotok'
18622         allow_undefined_flag_CXX=' ${wl}-berok'
18623         # Exported symbols can be pulled into shared objects from archives
18624         whole_archive_flag_spec_CXX='$convenience'
18625         archive_cmds_need_lc_CXX=yes
18626         # This is similar to how AIX traditionally builds its shared libraries.
18627         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'
18628       fi
18629     fi
18630     ;;
18631
18632   beos*)
18633     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18634       allow_undefined_flag_CXX=unsupported
18635       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18636       # support --undefined.  This deserves some investigation.  FIXME
18637       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18638     else
18639       ld_shlibs_CXX=no
18640     fi
18641     ;;
18642
18643   chorus*)
18644     case $cc_basename in
18645       *)
18646         # FIXME: insert proper C++ library support
18647         ld_shlibs_CXX=no
18648         ;;
18649     esac
18650     ;;
18651
18652   cygwin* | mingw* | pw32*)
18653     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18654     # as there is no search path for DLLs.
18655     hardcode_libdir_flag_spec_CXX='-L$libdir'
18656     allow_undefined_flag_CXX=unsupported
18657     always_export_symbols_CXX=no
18658     enable_shared_with_static_runtimes_CXX=yes
18659
18660     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18661       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'
18662       # If the export-symbols file already is a .def file (1st line
18663       # is EXPORTS), use it as is; otherwise, prepend...
18664       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18665         cp $export_symbols $output_objdir/$soname.def;
18666       else
18667         echo EXPORTS > $output_objdir/$soname.def;
18668         cat $export_symbols >> $output_objdir/$soname.def;
18669       fi~
18670       $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'
18671     else
18672       ld_shlibs_CXX=no
18673     fi
18674   ;;
18675       darwin* | rhapsody*)
18676         case $host_os in
18677         rhapsody* | darwin1.[012])
18678          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18679          ;;
18680        *) # Darwin 1.3 on
18681          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18682            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18683          else
18684            case ${MACOSX_DEPLOYMENT_TARGET} in
18685              10.[012])
18686                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18687                ;;
18688              10.*)
18689                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18690                ;;
18691            esac
18692          fi
18693          ;;
18694         esac
18695       archive_cmds_need_lc_CXX=no
18696       hardcode_direct_CXX=no
18697       hardcode_automatic_CXX=yes
18698       hardcode_shlibpath_var_CXX=unsupported
18699       whole_archive_flag_spec_CXX=''
18700       link_all_deplibs_CXX=yes
18701
18702     if test "$GXX" = yes ; then
18703       lt_int_apple_cc_single_mod=no
18704       output_verbose_link_cmd='echo'
18705       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18706        lt_int_apple_cc_single_mod=yes
18707       fi
18708       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18709        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18710       else
18711           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'
18712         fi
18713         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18714         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18715           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18716             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}'
18717           else
18718             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}'
18719           fi
18720             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}'
18721       else
18722       case $cc_basename in
18723         xlc*)
18724          output_verbose_link_cmd='echo'
18725           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'
18726           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18727           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18728           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}'
18729           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}'
18730           ;;
18731        *)
18732          ld_shlibs_CXX=no
18733           ;;
18734       esac
18735       fi
18736         ;;
18737
18738   dgux*)
18739     case $cc_basename in
18740       ec++*)
18741         # FIXME: insert proper C++ library support
18742         ld_shlibs_CXX=no
18743         ;;
18744       ghcx*)
18745         # Green Hills C++ Compiler
18746         # FIXME: insert proper C++ library support
18747         ld_shlibs_CXX=no
18748         ;;
18749       *)
18750         # FIXME: insert proper C++ library support
18751         ld_shlibs_CXX=no
18752         ;;
18753     esac
18754     ;;
18755   freebsd[12]*)
18756     # C++ shared libraries reported to be fairly broken before switch to ELF
18757     ld_shlibs_CXX=no
18758     ;;
18759   freebsd-elf*)
18760     archive_cmds_need_lc_CXX=no
18761     ;;
18762   freebsd* | kfreebsd*-gnu | dragonfly*)
18763     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18764     # conventions
18765     ld_shlibs_CXX=yes
18766     ;;
18767   gnu*)
18768     ;;
18769   hpux9*)
18770     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18771     hardcode_libdir_separator_CXX=:
18772     export_dynamic_flag_spec_CXX='${wl}-E'
18773     hardcode_direct_CXX=yes
18774     hardcode_minus_L_CXX=yes # Not in the search PATH,
18775                                 # but as the default
18776                                 # location of the library.
18777
18778     case $cc_basename in
18779     CC*)
18780       # FIXME: insert proper C++ library support
18781       ld_shlibs_CXX=no
18782       ;;
18783     aCC*)
18784       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'
18785       # Commands to make compiler produce verbose output that lists
18786       # what "hidden" libraries, object files and flags are used when
18787       # linking a shared library.
18788       #
18789       # There doesn't appear to be a way to prevent this compiler from
18790       # explicitly linking system object files so we need to strip them
18791       # from the output so that they don't get included in the library
18792       # dependencies.
18793       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'
18794       ;;
18795     *)
18796       if test "$GXX" = yes; then
18797         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'
18798       else
18799         # FIXME: insert proper C++ library support
18800         ld_shlibs_CXX=no
18801       fi
18802       ;;
18803     esac
18804     ;;
18805   hpux10*|hpux11*)
18806     if test $with_gnu_ld = no; then
18807       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18808       hardcode_libdir_separator_CXX=:
18809
18810       case $host_cpu in
18811       hppa*64*|ia64*)
18812         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
18813         ;;
18814       *)
18815         export_dynamic_flag_spec_CXX='${wl}-E'
18816         ;;
18817       esac
18818     fi
18819     case $host_cpu in
18820     hppa*64*|ia64*)
18821       hardcode_direct_CXX=no
18822       hardcode_shlibpath_var_CXX=no
18823       ;;
18824     *)
18825       hardcode_direct_CXX=yes
18826       hardcode_minus_L_CXX=yes # Not in the search PATH,
18827                                               # but as the default
18828                                               # location of the library.
18829       ;;
18830     esac
18831
18832     case $cc_basename in
18833       CC*)
18834         # FIXME: insert proper C++ library support
18835         ld_shlibs_CXX=no
18836         ;;
18837       aCC*)
18838         case $host_cpu in
18839         hppa*64*)
18840           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18841           ;;
18842         ia64*)
18843           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18844           ;;
18845         *)
18846           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18847           ;;
18848         esac
18849         # Commands to make compiler produce verbose output that lists
18850         # what "hidden" libraries, object files and flags are used when
18851         # linking a shared library.
18852         #
18853         # There doesn't appear to be a way to prevent this compiler from
18854         # explicitly linking system object files so we need to strip them
18855         # from the output so that they don't get included in the library
18856         # dependencies.
18857         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'
18858         ;;
18859       *)
18860         if test "$GXX" = yes; then
18861           if test $with_gnu_ld = no; then
18862             case $host_cpu in
18863             hppa*64*)
18864               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18865               ;;
18866             ia64*)
18867               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18868               ;;
18869             *)
18870               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'
18871               ;;
18872             esac
18873           fi
18874         else
18875           # FIXME: insert proper C++ library support
18876           ld_shlibs_CXX=no
18877         fi
18878         ;;
18879     esac
18880     ;;
18881   interix3*)
18882     hardcode_direct_CXX=no
18883     hardcode_shlibpath_var_CXX=no
18884     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18885     export_dynamic_flag_spec_CXX='${wl}-E'
18886     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18887     # Instead, shared libraries are loaded at an image base (0x10000000 by
18888     # default) and relocated if they conflict, which is a slow very memory
18889     # consuming and fragmenting process.  To avoid this, we pick a random,
18890     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18891     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18892     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'
18893     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'
18894     ;;
18895   irix5* | irix6*)
18896     case $cc_basename in
18897       CC*)
18898         # SGI C++
18899         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'
18900
18901         # Archives containing C++ object files must be created using
18902         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
18903         # necessary to make sure instantiated templates are included
18904         # in the archive.
18905         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18906         ;;
18907       *)
18908         if test "$GXX" = yes; then
18909           if test "$with_gnu_ld" = no; then
18910             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'
18911           else
18912             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
18913           fi
18914         fi
18915         link_all_deplibs_CXX=yes
18916         ;;
18917     esac
18918     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18919     hardcode_libdir_separator_CXX=:
18920     ;;
18921   linux*)
18922     case $cc_basename in
18923       KCC*)
18924         # Kuck and Associates, Inc. (KAI) C++ Compiler
18925
18926         # KCC will only create a shared library if the output file
18927         # ends with ".so" (or ".sl" for HP-UX), so rename the library
18928         # to its proper name (with version) after linking.
18929         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'
18930         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'
18931         # Commands to make compiler produce verbose output that lists
18932         # what "hidden" libraries, object files and flags are used when
18933         # linking a shared library.
18934         #
18935         # There doesn't appear to be a way to prevent this compiler from
18936         # explicitly linking system object files so we need to strip them
18937         # from the output so that they don't get included in the library
18938         # dependencies.
18939         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'
18940
18941         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18942         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18943
18944         # Archives containing C++ object files must be created using
18945         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18946         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18947         ;;
18948       icpc*)
18949         # Intel C++
18950         with_gnu_ld=yes
18951         # version 8.0 and above of icpc choke on multiply defined symbols
18952         # if we add $predep_objects and $postdep_objects, however 7.1 and
18953         # earlier do not add the objects themselves.
18954         case `$CC -V 2>&1` in
18955         *"Version 7."*)
18956           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18957           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'
18958           ;;
18959         *)  # Version 8.0 or newer
18960           tmp_idyn=
18961           case $host_cpu in
18962             ia64*) tmp_idyn=' -i_dynamic';;
18963           esac
18964           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18965           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'
18966           ;;
18967         esac
18968         archive_cmds_need_lc_CXX=no
18969         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18970         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18971         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18972         ;;
18973       pgCC*)
18974         # Portland Group C++ compiler
18975         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18976         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'
18977
18978         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18979         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18980         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'
18981         ;;
18982       cxx*)
18983         # Compaq C++
18984         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18985         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'
18986
18987         runpath_var=LD_RUN_PATH
18988         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18989         hardcode_libdir_separator_CXX=:
18990
18991         # Commands to make compiler produce verbose output that lists
18992         # what "hidden" libraries, object files and flags are used when
18993         # linking a shared library.
18994         #
18995         # There doesn't appear to be a way to prevent this compiler from
18996         # explicitly linking system object files so we need to strip them
18997         # from the output so that they don't get included in the library
18998         # dependencies.
18999         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'
19000         ;;
19001     esac
19002     ;;
19003   lynxos*)
19004     # FIXME: insert proper C++ library support
19005     ld_shlibs_CXX=no
19006     ;;
19007   m88k*)
19008     # FIXME: insert proper C++ library support
19009     ld_shlibs_CXX=no
19010     ;;
19011   mvs*)
19012     case $cc_basename in
19013       cxx*)
19014         # FIXME: insert proper C++ library support
19015         ld_shlibs_CXX=no
19016         ;;
19017       *)
19018         # FIXME: insert proper C++ library support
19019         ld_shlibs_CXX=no
19020         ;;
19021     esac
19022     ;;
19023   netbsd*)
19024     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19025       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19026       wlarc=
19027       hardcode_libdir_flag_spec_CXX='-R$libdir'
19028       hardcode_direct_CXX=yes
19029       hardcode_shlibpath_var_CXX=no
19030     fi
19031     # Workaround some broken pre-1.5 toolchains
19032     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19033     ;;
19034   openbsd2*)
19035     # C++ shared libraries are fairly broken
19036     ld_shlibs_CXX=no
19037     ;;
19038   openbsd*)
19039     hardcode_direct_CXX=yes
19040     hardcode_shlibpath_var_CXX=no
19041     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19042     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19043     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19044       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19045       export_dynamic_flag_spec_CXX='${wl}-E'
19046       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19047     fi
19048     output_verbose_link_cmd='echo'
19049     ;;
19050   osf3*)
19051     case $cc_basename in
19052       KCC*)
19053         # Kuck and Associates, Inc. (KAI) C++ Compiler
19054
19055         # KCC will only create a shared library if the output file
19056         # ends with ".so" (or ".sl" for HP-UX), so rename the library
19057         # to its proper name (with version) after linking.
19058         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'
19059
19060         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19061         hardcode_libdir_separator_CXX=:
19062
19063         # Archives containing C++ object files must be created using
19064         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19065         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19066
19067         ;;
19068       RCC*)
19069         # Rational C++ 2.4.1
19070         # FIXME: insert proper C++ library support
19071         ld_shlibs_CXX=no
19072         ;;
19073       cxx*)
19074         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19075         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'
19076
19077         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19078         hardcode_libdir_separator_CXX=:
19079
19080         # Commands to make compiler produce verbose output that lists
19081         # what "hidden" libraries, object files and flags are used when
19082         # linking a shared library.
19083         #
19084         # There doesn't appear to be a way to prevent this compiler from
19085         # explicitly linking system object files so we need to strip them
19086         # from the output so that they don't get included in the library
19087         # dependencies.
19088         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'
19089         ;;
19090       *)
19091         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19092           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19093           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'
19094
19095           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19096           hardcode_libdir_separator_CXX=:
19097
19098           # Commands to make compiler produce verbose output that lists
19099           # what "hidden" libraries, object files and flags are used when
19100           # linking a shared library.
19101           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19102
19103         else
19104           # FIXME: insert proper C++ library support
19105           ld_shlibs_CXX=no
19106         fi
19107         ;;
19108     esac
19109     ;;
19110   osf4* | osf5*)
19111     case $cc_basename in
19112       KCC*)
19113         # Kuck and Associates, Inc. (KAI) C++ Compiler
19114
19115         # KCC will only create a shared library if the output file
19116         # ends with ".so" (or ".sl" for HP-UX), so rename the library
19117         # to its proper name (with version) after linking.
19118         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'
19119
19120         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19121         hardcode_libdir_separator_CXX=:
19122
19123         # Archives containing C++ object files must be created using
19124         # the KAI C++ compiler.
19125         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19126         ;;
19127       RCC*)
19128         # Rational C++ 2.4.1
19129         # FIXME: insert proper C++ library support
19130         ld_shlibs_CXX=no
19131         ;;
19132       cxx*)
19133         allow_undefined_flag_CXX=' -expect_unresolved \*'
19134         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'
19135         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19136           echo "-hidden">> $lib.exp~
19137           $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~
19138           $rm $lib.exp'
19139
19140         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19141         hardcode_libdir_separator_CXX=:
19142
19143         # Commands to make compiler produce verbose output that lists
19144         # what "hidden" libraries, object files and flags are used when
19145         # linking a shared library.
19146         #
19147         # There doesn't appear to be a way to prevent this compiler from
19148         # explicitly linking system object files so we need to strip them
19149         # from the output so that they don't get included in the library
19150         # dependencies.
19151         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'
19152         ;;
19153       *)
19154         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19155           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19156          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'
19157
19158           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19159           hardcode_libdir_separator_CXX=:
19160
19161           # Commands to make compiler produce verbose output that lists
19162           # what "hidden" libraries, object files and flags are used when
19163           # linking a shared library.
19164           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19165
19166         else
19167           # FIXME: insert proper C++ library support
19168           ld_shlibs_CXX=no
19169         fi
19170         ;;
19171     esac
19172     ;;
19173   psos*)
19174     # FIXME: insert proper C++ library support
19175     ld_shlibs_CXX=no
19176     ;;
19177   sunos4*)
19178     case $cc_basename in
19179       CC*)
19180         # Sun C++ 4.x
19181         # FIXME: insert proper C++ library support
19182         ld_shlibs_CXX=no
19183         ;;
19184       lcc*)
19185         # Lucid
19186         # FIXME: insert proper C++ library support
19187         ld_shlibs_CXX=no
19188         ;;
19189       *)
19190         # FIXME: insert proper C++ library support
19191         ld_shlibs_CXX=no
19192         ;;
19193     esac
19194     ;;
19195   solaris*)
19196     case $cc_basename in
19197       CC*)
19198         # Sun C++ 4.2, 5.x and Centerline C++
19199         archive_cmds_need_lc_CXX=yes
19200         no_undefined_flag_CXX=' -zdefs'
19201         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19202         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19203         $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'
19204
19205         hardcode_libdir_flag_spec_CXX='-R$libdir'
19206         hardcode_shlibpath_var_CXX=no
19207         case $host_os in
19208           solaris2.[0-5] | solaris2.[0-5].*) ;;
19209           *)
19210             # The C++ compiler is used as linker so we must use $wl
19211             # flag to pass the commands to the underlying system
19212             # linker. We must also pass each convience library through
19213             # to the system linker between allextract/defaultextract.
19214             # The C++ compiler will combine linker options so we
19215             # cannot just pass the convience library names through
19216             # without $wl.
19217             # Supported since Solaris 2.6 (maybe 2.5.1?)
19218             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'
19219             ;;
19220         esac
19221         link_all_deplibs_CXX=yes
19222
19223         output_verbose_link_cmd='echo'
19224
19225         # Archives containing C++ object files must be created using
19226         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
19227         # necessary to make sure instantiated templates are included
19228         # in the archive.
19229         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19230         ;;
19231       gcx*)
19232         # Green Hills C++ Compiler
19233         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19234
19235         # The C++ compiler must be used to create the archive.
19236         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19237         ;;
19238       *)
19239         # GNU C++ compiler with Solaris linker
19240         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19241           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19242           if $CC --version | grep -v '^2\.7' > /dev/null; then
19243             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19244             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19245                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19246
19247             # Commands to make compiler produce verbose output that lists
19248             # what "hidden" libraries, object files and flags are used when
19249             # linking a shared library.
19250             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19251           else
19252             # g++ 2.7 appears to require `-G' NOT `-shared' on this
19253             # platform.
19254             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19255             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19256                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19257
19258             # Commands to make compiler produce verbose output that lists
19259             # what "hidden" libraries, object files and flags are used when
19260             # linking a shared library.
19261             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19262           fi
19263
19264           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19265         fi
19266         ;;
19267     esac
19268     ;;
19269   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19270     no_undefined_flag_CXX='${wl}-z,text'
19271     archive_cmds_need_lc_CXX=no
19272     hardcode_shlibpath_var_CXX=no
19273     runpath_var='LD_RUN_PATH'
19274
19275     case $cc_basename in
19276       CC*)
19277         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19278         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19279         ;;
19280       *)
19281         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19282         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19283         ;;
19284     esac
19285     ;;
19286   sysv5* | sco3.2v5* | sco5v6*)
19287     # Note: We can NOT use -z defs as we might desire, because we do not
19288     # link with -lc, and that would cause any symbols used from libc to
19289     # always be unresolved, which means just about no library would
19290     # ever link correctly.  If we're not using GNU ld we use -z text
19291     # though, which does catch some bad symbols but isn't as heavy-handed
19292     # as -z defs.
19293     # For security reasons, it is highly recommended that you always
19294     # use absolute paths for naming shared libraries, and exclude the
19295     # DT_RUNPATH tag from executables and libraries.  But doing so
19296     # requires that you compile everything twice, which is a pain.
19297     # So that behaviour is only enabled if SCOABSPATH is set to a
19298     # non-empty value in the environment.  Most likely only useful for
19299     # creating official distributions of packages.
19300     # This is a hack until libtool officially supports absolute path
19301     # names for shared libraries.
19302     no_undefined_flag_CXX='${wl}-z,text'
19303     allow_undefined_flag_CXX='${wl}-z,nodefs'
19304     archive_cmds_need_lc_CXX=no
19305     hardcode_shlibpath_var_CXX=no
19306     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19307     hardcode_libdir_separator_CXX=':'
19308     link_all_deplibs_CXX=yes
19309     export_dynamic_flag_spec_CXX='${wl}-Bexport'
19310     runpath_var='LD_RUN_PATH'
19311
19312     case $cc_basename in
19313       CC*)
19314         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19315         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19316         ;;
19317       *)
19318         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19319         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19320         ;;
19321     esac
19322     ;;
19323   tandem*)
19324     case $cc_basename in
19325       NCC*)
19326         # NonStop-UX NCC 3.20
19327         # FIXME: insert proper C++ library support
19328         ld_shlibs_CXX=no
19329         ;;
19330       *)
19331         # FIXME: insert proper C++ library support
19332         ld_shlibs_CXX=no
19333         ;;
19334     esac
19335     ;;
19336   vxworks*)
19337     # FIXME: insert proper C++ library support
19338     ld_shlibs_CXX=no
19339     ;;
19340   *)
19341     # FIXME: insert proper C++ library support
19342     ld_shlibs_CXX=no
19343     ;;
19344 esac
19345 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19346 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19347 test "$ld_shlibs_CXX" = no && can_build_shared=no
19348
19349 GCC_CXX="$GXX"
19350 LD_CXX="$LD"
19351
19352
19353 cat > conftest.$ac_ext <<EOF
19354 class Foo
19355 {
19356 public:
19357   Foo (void) { a = 0; }
19358 private:
19359   int a;
19360 };
19361 EOF
19362
19363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19364   (eval $ac_compile) 2>&5
19365   ac_status=$?
19366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19367   (exit $ac_status); }; then
19368   # Parse the compiler output and extract the necessary
19369   # objects, libraries and library flags.
19370
19371   # Sentinel used to keep track of whether or not we are before
19372   # the conftest object file.
19373   pre_test_object_deps_done=no
19374
19375   # The `*' in the case matches for architectures that use `case' in
19376   # $output_verbose_cmd can trigger glob expansion during the loop
19377   # eval without this substitution.
19378   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19379
19380   for p in `eval $output_verbose_link_cmd`; do
19381     case $p in
19382
19383     -L* | -R* | -l*)
19384        # Some compilers place space between "-{L,R}" and the path.
19385        # Remove the space.
19386        if test $p = "-L" \
19387           || test $p = "-R"; then
19388          prev=$p
19389          continue
19390        else
19391          prev=
19392        fi
19393
19394        if test "$pre_test_object_deps_done" = no; then
19395          case $p in
19396          -L* | -R*)
19397            # Internal compiler library paths should come after those
19398            # provided the user.  The postdeps already come after the
19399            # user supplied libs so there is no need to process them.
19400            if test -z "$compiler_lib_search_path_CXX"; then
19401              compiler_lib_search_path_CXX="${prev}${p}"
19402            else
19403              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19404            fi
19405            ;;
19406          # The "-l" case would never come before the object being
19407          # linked, so don't bother handling this case.
19408          esac
19409        else
19410          if test -z "$postdeps_CXX"; then
19411            postdeps_CXX="${prev}${p}"
19412          else
19413            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19414          fi
19415        fi
19416        ;;
19417
19418     *.$objext)
19419        # This assumes that the test object file only shows up
19420        # once in the compiler output.
19421        if test "$p" = "conftest.$objext"; then
19422          pre_test_object_deps_done=yes
19423          continue
19424        fi
19425
19426        if test "$pre_test_object_deps_done" = no; then
19427          if test -z "$predep_objects_CXX"; then
19428            predep_objects_CXX="$p"
19429          else
19430            predep_objects_CXX="$predep_objects_CXX $p"
19431          fi
19432        else
19433          if test -z "$postdep_objects_CXX"; then
19434            postdep_objects_CXX="$p"
19435          else
19436            postdep_objects_CXX="$postdep_objects_CXX $p"
19437          fi
19438        fi
19439        ;;
19440
19441     *) ;; # Ignore the rest.
19442
19443     esac
19444   done
19445
19446   # Clean up.
19447   rm -f a.out a.exe
19448 else
19449   echo "libtool.m4: error: problem compiling CXX test program"
19450 fi
19451
19452 $rm -f confest.$objext
19453
19454 # PORTME: override above test on systems where it is broken
19455 case $host_os in
19456 interix3*)
19457   # Interix 3.5 installs completely hosed .la files for C++, so rather than
19458   # hack all around it, let's just trust "g++" to DTRT.
19459   predep_objects_CXX=
19460   postdep_objects_CXX=
19461   postdeps_CXX=
19462   ;;
19463
19464 solaris*)
19465   case $cc_basename in
19466   CC*)
19467     # Adding this requires a known-good setup of shared libraries for
19468     # Sun compiler versions before 5.6, else PIC objects from an old
19469     # archive will be linked into the output, leading to subtle bugs.
19470     postdeps_CXX='-lCstd -lCrun'
19471     ;;
19472   esac
19473   ;;
19474 esac
19475
19476
19477 case " $postdeps_CXX " in
19478 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19479 esac
19480
19481 lt_prog_compiler_wl_CXX=
19482 lt_prog_compiler_pic_CXX=
19483 lt_prog_compiler_static_CXX=
19484
19485 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19486 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19487
19488   # C++ specific cases for pic, static, wl, etc.
19489   if test "$GXX" = yes; then
19490     lt_prog_compiler_wl_CXX='-Wl,'
19491     lt_prog_compiler_static_CXX='-static'
19492
19493     case $host_os in
19494     aix*)
19495       # All AIX code is PIC.
19496       if test "$host_cpu" = ia64; then
19497         # AIX 5 now supports IA64 processor
19498         lt_prog_compiler_static_CXX='-Bstatic'
19499       fi
19500       ;;
19501     amigaos*)
19502       # FIXME: we need at least 68020 code to build shared libraries, but
19503       # adding the `-m68020' flag to GCC prevents building anything better,
19504       # like `-m68040'.
19505       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19506       ;;
19507     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19508       # PIC is the default for these OSes.
19509       ;;
19510     mingw* | os2* | pw32*)
19511       # This hack is so that the source file can tell whether it is being
19512       # built for inclusion in a dll (and should export symbols for example).
19513       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19514       ;;
19515     darwin* | rhapsody*)
19516       # PIC is the default on this platform
19517       # Common symbols not allowed in MH_DYLIB files
19518       lt_prog_compiler_pic_CXX='-fno-common'
19519       ;;
19520     *djgpp*)
19521       # DJGPP does not support shared libraries at all
19522       lt_prog_compiler_pic_CXX=
19523       ;;
19524     interix3*)
19525       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19526       # Instead, we relocate shared libraries at runtime.
19527       ;;
19528     sysv4*MP*)
19529       if test -d /usr/nec; then
19530         lt_prog_compiler_pic_CXX=-Kconform_pic
19531       fi
19532       ;;
19533     hpux*)
19534       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19535       # not for PA HP-UX.
19536       case $host_cpu in
19537       hppa*64*|ia64*)
19538         ;;
19539       *)
19540         lt_prog_compiler_pic_CXX='-fPIC'
19541         ;;
19542       esac
19543       ;;
19544     *)
19545       lt_prog_compiler_pic_CXX='-fPIC'
19546       ;;
19547     esac
19548   else
19549     case $host_os in
19550       aix4* | aix5*)
19551         # All AIX code is PIC.
19552         if test "$host_cpu" = ia64; then
19553           # AIX 5 now supports IA64 processor
19554           lt_prog_compiler_static_CXX='-Bstatic'
19555         else
19556           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19557         fi
19558         ;;
19559       chorus*)
19560         case $cc_basename in
19561         cxch68*)
19562           # Green Hills C++ Compiler
19563           # _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"
19564           ;;
19565         esac
19566         ;;
19567        darwin*)
19568          # PIC is the default on this platform
19569          # Common symbols not allowed in MH_DYLIB files
19570          case $cc_basename in
19571            xlc*)
19572            lt_prog_compiler_pic_CXX='-qnocommon'
19573            lt_prog_compiler_wl_CXX='-Wl,'
19574            ;;
19575          esac
19576        ;;
19577       dgux*)
19578         case $cc_basename in
19579           ec++*)
19580             lt_prog_compiler_pic_CXX='-KPIC'
19581             ;;
19582           ghcx*)
19583             # Green Hills C++ Compiler
19584             lt_prog_compiler_pic_CXX='-pic'
19585             ;;
19586           *)
19587             ;;
19588         esac
19589         ;;
19590       freebsd* | kfreebsd*-gnu | dragonfly*)
19591         # FreeBSD uses GNU C++
19592         ;;
19593       hpux9* | hpux10* | hpux11*)
19594         case $cc_basename in
19595           CC*)
19596             lt_prog_compiler_wl_CXX='-Wl,'
19597             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19598             if test "$host_cpu" != ia64; then
19599               lt_prog_compiler_pic_CXX='+Z'
19600             fi
19601             ;;
19602           aCC*)
19603             lt_prog_compiler_wl_CXX='-Wl,'
19604             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19605             case $host_cpu in
19606             hppa*64*|ia64*)
19607               # +Z the default
19608               ;;
19609             *)
19610               lt_prog_compiler_pic_CXX='+Z'
19611               ;;
19612             esac
19613             ;;
19614           *)
19615             ;;
19616         esac
19617         ;;
19618       interix*)
19619         # This is c89, which is MS Visual C++ (no shared libs)
19620         # Anyone wants to do a port?
19621         ;;
19622       irix5* | irix6* | nonstopux*)
19623         case $cc_basename in
19624           CC*)
19625             lt_prog_compiler_wl_CXX='-Wl,'
19626             lt_prog_compiler_static_CXX='-non_shared'
19627             # CC pic flag -KPIC is the default.
19628             ;;
19629           *)
19630             ;;
19631         esac
19632         ;;
19633       linux*)
19634         case $cc_basename in
19635           KCC*)
19636             # KAI C++ Compiler
19637             lt_prog_compiler_wl_CXX='--backend -Wl,'
19638             lt_prog_compiler_pic_CXX='-fPIC'
19639             ;;
19640           icpc* | ecpc*)
19641             # Intel C++
19642             lt_prog_compiler_wl_CXX='-Wl,'
19643             lt_prog_compiler_pic_CXX='-KPIC'
19644             lt_prog_compiler_static_CXX='-static'
19645             ;;
19646           pgCC*)
19647             # Portland Group C++ compiler.
19648             lt_prog_compiler_wl_CXX='-Wl,'
19649             lt_prog_compiler_pic_CXX='-fpic'
19650             lt_prog_compiler_static_CXX='-Bstatic'
19651             ;;
19652           cxx*)
19653             # Compaq C++
19654             # Make sure the PIC flag is empty.  It appears that all Alpha
19655             # Linux and Compaq Tru64 Unix objects are PIC.
19656             lt_prog_compiler_pic_CXX=
19657             lt_prog_compiler_static_CXX='-non_shared'
19658             ;;
19659           *)
19660             ;;
19661         esac
19662         ;;
19663       lynxos*)
19664         ;;
19665       m88k*)
19666         ;;
19667       mvs*)
19668         case $cc_basename in
19669           cxx*)
19670             lt_prog_compiler_pic_CXX='-W c,exportall'
19671             ;;
19672           *)
19673             ;;
19674         esac
19675         ;;
19676       netbsd*)
19677         ;;
19678       osf3* | osf4* | osf5*)
19679         case $cc_basename in
19680           KCC*)
19681             lt_prog_compiler_wl_CXX='--backend -Wl,'
19682             ;;
19683           RCC*)
19684             # Rational C++ 2.4.1
19685             lt_prog_compiler_pic_CXX='-pic'
19686             ;;
19687           cxx*)
19688             # Digital/Compaq C++
19689             lt_prog_compiler_wl_CXX='-Wl,'
19690             # Make sure the PIC flag is empty.  It appears that all Alpha
19691             # Linux and Compaq Tru64 Unix objects are PIC.
19692             lt_prog_compiler_pic_CXX=
19693             lt_prog_compiler_static_CXX='-non_shared'
19694             ;;
19695           *)
19696             ;;
19697         esac
19698         ;;
19699       psos*)
19700         ;;
19701       solaris*)
19702         case $cc_basename in
19703           CC*)
19704             # Sun C++ 4.2, 5.x and Centerline C++
19705             lt_prog_compiler_pic_CXX='-KPIC'
19706             lt_prog_compiler_static_CXX='-Bstatic'
19707             lt_prog_compiler_wl_CXX='-Qoption ld '
19708             ;;
19709           gcx*)
19710             # Green Hills C++ Compiler
19711             lt_prog_compiler_pic_CXX='-PIC'
19712             ;;
19713           *)
19714             ;;
19715         esac
19716         ;;
19717       sunos4*)
19718         case $cc_basename in
19719           CC*)
19720             # Sun C++ 4.x
19721             lt_prog_compiler_pic_CXX='-pic'
19722             lt_prog_compiler_static_CXX='-Bstatic'
19723             ;;
19724           lcc*)
19725             # Lucid
19726             lt_prog_compiler_pic_CXX='-pic'
19727             ;;
19728           *)
19729             ;;
19730         esac
19731         ;;
19732       tandem*)
19733         case $cc_basename in
19734           NCC*)
19735             # NonStop-UX NCC 3.20
19736             lt_prog_compiler_pic_CXX='-KPIC'
19737             ;;
19738           *)
19739             ;;
19740         esac
19741         ;;
19742       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19743         case $cc_basename in
19744           CC*)
19745             lt_prog_compiler_wl_CXX='-Wl,'
19746             lt_prog_compiler_pic_CXX='-KPIC'
19747             lt_prog_compiler_static_CXX='-Bstatic'
19748             ;;
19749         esac
19750         ;;
19751       vxworks*)
19752         ;;
19753       *)
19754         lt_prog_compiler_can_build_shared_CXX=no
19755         ;;
19756     esac
19757   fi
19758
19759 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19760 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19761
19762 #
19763 # Check to make sure the PIC flag actually works.
19764 #
19765 if test -n "$lt_prog_compiler_pic_CXX"; then
19766
19767 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19768 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19769 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19770   echo $ECHO_N "(cached) $ECHO_C" >&6
19771 else
19772   lt_prog_compiler_pic_works_CXX=no
19773   ac_outfile=conftest.$ac_objext
19774    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19775    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19776    # Insert the option either (1) after the last *FLAGS variable, or
19777    # (2) before a word containing "conftest.", or (3) at the end.
19778    # Note that $ac_compile itself does not contain backslashes and begins
19779    # with a dollar sign (not a hyphen), so the echo should work correctly.
19780    # The option is referenced via a variable to avoid confusing sed.
19781    lt_compile=`echo "$ac_compile" | $SED \
19782    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19783    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19784    -e 's:$: $lt_compiler_flag:'`
19785    (eval echo "\"\$as_me:19785: $lt_compile\"" >&5)
19786    (eval "$lt_compile" 2>conftest.err)
19787    ac_status=$?
19788    cat conftest.err >&5
19789    echo "$as_me:19789: \$? = $ac_status" >&5
19790    if (exit $ac_status) && test -s "$ac_outfile"; then
19791      # The compiler can only warn and ignore the option if not recognized
19792      # So say no if there are warnings other than the usual output.
19793      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19794      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19795      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19796        lt_prog_compiler_pic_works_CXX=yes
19797      fi
19798    fi
19799    $rm conftest*
19800
19801 fi
19802 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19803 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
19804
19805 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19806     case $lt_prog_compiler_pic_CXX in
19807      "" | " "*) ;;
19808      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19809      esac
19810 else
19811     lt_prog_compiler_pic_CXX=
19812      lt_prog_compiler_can_build_shared_CXX=no
19813 fi
19814
19815 fi
19816 case $host_os in
19817   # For platforms which do not support PIC, -DPIC is meaningless:
19818   *djgpp*)
19819     lt_prog_compiler_pic_CXX=
19820     ;;
19821   *)
19822     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19823     ;;
19824 esac
19825
19826 #
19827 # Check to make sure the static flag actually works.
19828 #
19829 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19830 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19831 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19832 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19833   echo $ECHO_N "(cached) $ECHO_C" >&6
19834 else
19835   lt_prog_compiler_static_works_CXX=no
19836    save_LDFLAGS="$LDFLAGS"
19837    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19838    printf "$lt_simple_link_test_code" > conftest.$ac_ext
19839    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19840      # The linker can only warn and ignore the option if not recognized
19841      # So say no if there are warnings
19842      if test -s conftest.err; then
19843        # Append any errors to the config.log.
19844        cat conftest.err 1>&5
19845        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19846        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19847        if diff conftest.exp conftest.er2 >/dev/null; then
19848          lt_prog_compiler_static_works_CXX=yes
19849        fi
19850      else
19851        lt_prog_compiler_static_works_CXX=yes
19852      fi
19853    fi
19854    $rm conftest*
19855    LDFLAGS="$save_LDFLAGS"
19856
19857 fi
19858 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19859 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19860
19861 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19862     :
19863 else
19864     lt_prog_compiler_static_CXX=
19865 fi
19866
19867
19868 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19869 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19870 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19871   echo $ECHO_N "(cached) $ECHO_C" >&6
19872 else
19873   lt_cv_prog_compiler_c_o_CXX=no
19874    $rm -r conftest 2>/dev/null
19875    mkdir conftest
19876    cd conftest
19877    mkdir out
19878    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19879
19880    lt_compiler_flag="-o out/conftest2.$ac_objext"
19881    # Insert the option either (1) after the last *FLAGS variable, or
19882    # (2) before a word containing "conftest.", or (3) at the end.
19883    # Note that $ac_compile itself does not contain backslashes and begins
19884    # with a dollar sign (not a hyphen), so the echo should work correctly.
19885    lt_compile=`echo "$ac_compile" | $SED \
19886    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19887    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19888    -e 's:$: $lt_compiler_flag:'`
19889    (eval echo "\"\$as_me:19889: $lt_compile\"" >&5)
19890    (eval "$lt_compile" 2>out/conftest.err)
19891    ac_status=$?
19892    cat out/conftest.err >&5
19893    echo "$as_me:19893: \$? = $ac_status" >&5
19894    if (exit $ac_status) && test -s out/conftest2.$ac_objext
19895    then
19896      # The compiler can only warn and ignore the option if not recognized
19897      # So say no if there are warnings
19898      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19899      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19900      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19901        lt_cv_prog_compiler_c_o_CXX=yes
19902      fi
19903    fi
19904    chmod u+w . 2>&5
19905    $rm conftest*
19906    # SGI C++ compiler will create directory out/ii_files/ for
19907    # template instantiation
19908    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19909    $rm out/* && rmdir out
19910    cd ..
19911    rmdir conftest
19912    $rm conftest*
19913
19914 fi
19915 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19916 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
19917
19918
19919 hard_links="nottested"
19920 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19921   # do not overwrite the value of need_locks provided by the user
19922   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19923 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19924   hard_links=yes
19925   $rm conftest*
19926   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19927   touch conftest.a
19928   ln conftest.a conftest.b 2>&5 || hard_links=no
19929   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19930   { echo "$as_me:$LINENO: result: $hard_links" >&5
19931 echo "${ECHO_T}$hard_links" >&6; }
19932   if test "$hard_links" = no; then
19933     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19934 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19935     need_locks=warn
19936   fi
19937 else
19938   need_locks=no
19939 fi
19940
19941 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19942 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19943
19944   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19945   case $host_os in
19946   aix4* | aix5*)
19947     # If we're using GNU nm, then we don't want the "-C" option.
19948     # -C means demangle to AIX nm, but means don't demangle with GNU nm
19949     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19950       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'
19951     else
19952       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'
19953     fi
19954     ;;
19955   pw32*)
19956     export_symbols_cmds_CXX="$ltdll_cmds"
19957   ;;
19958   cygwin* | mingw*)
19959     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'
19960   ;;
19961   *)
19962     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19963   ;;
19964   esac
19965
19966 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19967 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19968 test "$ld_shlibs_CXX" = no && can_build_shared=no
19969
19970 #
19971 # Do we need to explicitly link libc?
19972 #
19973 case "x$archive_cmds_need_lc_CXX" in
19974 x|xyes)
19975   # Assume -lc should be added
19976   archive_cmds_need_lc_CXX=yes
19977
19978   if test "$enable_shared" = yes && test "$GCC" = yes; then
19979     case $archive_cmds_CXX in
19980     *'~'*)
19981       # FIXME: we may have to deal with multi-command sequences.
19982       ;;
19983     '$CC '*)
19984       # Test whether the compiler implicitly links with -lc since on some
19985       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19986       # to ld, don't add -lc before -lgcc.
19987       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19988 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19989       $rm conftest*
19990       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19991
19992       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19993   (eval $ac_compile) 2>&5
19994   ac_status=$?
19995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19996   (exit $ac_status); } 2>conftest.err; then
19997         soname=conftest
19998         lib=conftest
19999         libobjs=conftest.$ac_objext
20000         deplibs=
20001         wl=$lt_prog_compiler_wl_CXX
20002         pic_flag=$lt_prog_compiler_pic_CXX
20003         compiler_flags=-v
20004         linker_flags=-v
20005         verstring=
20006         output_objdir=.
20007         libname=conftest
20008         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20009         allow_undefined_flag_CXX=
20010         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20011   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20012   ac_status=$?
20013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20014   (exit $ac_status); }
20015         then
20016           archive_cmds_need_lc_CXX=no
20017         else
20018           archive_cmds_need_lc_CXX=yes
20019         fi
20020         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20021       else
20022         cat conftest.err 1>&5
20023       fi
20024       $rm conftest*
20025       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20026 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
20027       ;;
20028     esac
20029   fi
20030   ;;
20031 esac
20032
20033 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20034 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
20035 library_names_spec=
20036 libname_spec='lib$name'
20037 soname_spec=
20038 shrext_cmds=".so"
20039 postinstall_cmds=
20040 postuninstall_cmds=
20041 finish_cmds=
20042 finish_eval=
20043 shlibpath_var=
20044 shlibpath_overrides_runpath=unknown
20045 version_type=none
20046 dynamic_linker="$host_os ld.so"
20047 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20048 if test "$GCC" = yes; then
20049   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20050   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20051     # if the path contains ";" then we assume it to be the separator
20052     # otherwise default to the standard path separator (i.e. ":") - it is
20053     # assumed that no part of a normal pathname contains ";" but that should
20054     # okay in the real world where ";" in dirpaths is itself problematic.
20055     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20056   else
20057     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20058   fi
20059 else
20060   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20061 fi
20062 need_lib_prefix=unknown
20063 hardcode_into_libs=no
20064
20065 # when you set need_version to no, make sure it does not cause -set_version
20066 # flags to be left without arguments
20067 need_version=unknown
20068
20069 case $host_os in
20070 aix3*)
20071   version_type=linux
20072   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20073   shlibpath_var=LIBPATH
20074
20075   # AIX 3 has no versioning support, so we append a major version to the name.
20076   soname_spec='${libname}${release}${shared_ext}$major'
20077   ;;
20078
20079 aix4* | aix5*)
20080   version_type=linux
20081   need_lib_prefix=no
20082   need_version=no
20083   hardcode_into_libs=yes
20084   if test "$host_cpu" = ia64; then
20085     # AIX 5 supports IA64
20086     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20087     shlibpath_var=LD_LIBRARY_PATH
20088   else
20089     # With GCC up to 2.95.x, collect2 would create an import file
20090     # for dependence libraries.  The import file would start with
20091     # the line `#! .'.  This would cause the generated library to
20092     # depend on `.', always an invalid library.  This was fixed in
20093     # development snapshots of GCC prior to 3.0.
20094     case $host_os in
20095       aix4 | aix4.[01] | aix4.[01].*)
20096       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20097            echo ' yes '
20098            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20099         :
20100       else
20101         can_build_shared=no
20102       fi
20103       ;;
20104     esac
20105     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20106     # soname into executable. Probably we can add versioning support to
20107     # collect2, so additional links can be useful in future.
20108     if test "$aix_use_runtimelinking" = yes; then
20109       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20110       # instead of lib<name>.a to let people know that these are not
20111       # typical AIX shared libraries.
20112       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20113     else
20114       # We preserve .a as extension for shared libraries through AIX4.2
20115       # and later when we are not doing run time linking.
20116       library_names_spec='${libname}${release}.a $libname.a'
20117       soname_spec='${libname}${release}${shared_ext}$major'
20118     fi
20119     shlibpath_var=LIBPATH
20120   fi
20121   ;;
20122
20123 amigaos*)
20124   library_names_spec='$libname.ixlibrary $libname.a'
20125   # Create ${libname}_ixlibrary.a entries in /sys/libs.
20126   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'
20127   ;;
20128
20129 beos*)
20130   library_names_spec='${libname}${shared_ext}'
20131   dynamic_linker="$host_os ld.so"
20132   shlibpath_var=LIBRARY_PATH
20133   ;;
20134
20135 bsdi[45]*)
20136   version_type=linux
20137   need_version=no
20138   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20139   soname_spec='${libname}${release}${shared_ext}$major'
20140   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20141   shlibpath_var=LD_LIBRARY_PATH
20142   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20143   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20144   # the default ld.so.conf also contains /usr/contrib/lib and
20145   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20146   # libtool to hard-code these into programs
20147   ;;
20148
20149 cygwin* | mingw* | pw32*)
20150   version_type=windows
20151   shrext_cmds=".dll"
20152   need_version=no
20153   need_lib_prefix=no
20154
20155   case $GCC,$host_os in
20156   yes,cygwin* | yes,mingw* | yes,pw32*)
20157     library_names_spec='$libname.dll.a'
20158     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20159     postinstall_cmds='base_file=`basename \${file}`~
20160       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20161       dldir=$destdir/`dirname \$dlpath`~
20162       test -d \$dldir || mkdir -p \$dldir~
20163       $install_prog $dir/$dlname \$dldir/$dlname~
20164       chmod a+x \$dldir/$dlname'
20165     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20166       dlpath=$dir/\$dldll~
20167        $rm \$dlpath'
20168     shlibpath_overrides_runpath=yes
20169
20170     case $host_os in
20171     cygwin*)
20172       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20173       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20174       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20175       ;;
20176     mingw*)
20177       # MinGW DLLs use traditional 'lib' prefix
20178       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20179       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20180       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20181         # It is most probably a Windows format PATH printed by
20182         # mingw gcc, but we are running on Cygwin. Gcc prints its search
20183         # path with ; separators, and with drive letters. We can handle the
20184         # drive letters (cygwin fileutils understands them), so leave them,
20185         # especially as we might pass files found there to a mingw objdump,
20186         # which wouldn't understand a cygwinified path. Ahh.
20187         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20188       else
20189         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20190       fi
20191       ;;
20192     pw32*)
20193       # pw32 DLLs use 'pw' prefix rather than 'lib'
20194       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20195       ;;
20196     esac
20197     ;;
20198
20199   *)
20200     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20201     ;;
20202   esac
20203   dynamic_linker='Win32 ld.exe'
20204   # FIXME: first we should search . and the directory the executable is in
20205   shlibpath_var=PATH
20206   ;;
20207
20208 darwin* | rhapsody*)
20209   dynamic_linker="$host_os dyld"
20210   version_type=darwin
20211   need_lib_prefix=no
20212   need_version=no
20213   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20214   soname_spec='${libname}${release}${major}$shared_ext'
20215   shlibpath_overrides_runpath=yes
20216   shlibpath_var=DYLD_LIBRARY_PATH
20217   shrext_cmds='.dylib'
20218   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20219   if test "$GCC" = yes; then
20220     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"`
20221   else
20222     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20223   fi
20224   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20225   ;;
20226
20227 dgux*)
20228   version_type=linux
20229   need_lib_prefix=no
20230   need_version=no
20231   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20232   soname_spec='${libname}${release}${shared_ext}$major'
20233   shlibpath_var=LD_LIBRARY_PATH
20234   ;;
20235
20236 freebsd1*)
20237   dynamic_linker=no
20238   ;;
20239
20240 kfreebsd*-gnu)
20241   version_type=linux
20242   need_lib_prefix=no
20243   need_version=no
20244   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20245   soname_spec='${libname}${release}${shared_ext}$major'
20246   shlibpath_var=LD_LIBRARY_PATH
20247   shlibpath_overrides_runpath=no
20248   hardcode_into_libs=yes
20249   dynamic_linker='GNU ld.so'
20250   ;;
20251
20252 freebsd* | dragonfly*)
20253   # DragonFly does not have aout.  When/if they implement a new
20254   # versioning mechanism, adjust this.
20255   if test -x /usr/bin/objformat; then
20256     objformat=`/usr/bin/objformat`
20257   else
20258     case $host_os in
20259     freebsd[123]*) objformat=aout ;;
20260     *) objformat=elf ;;
20261     esac
20262   fi
20263   version_type=freebsd-$objformat
20264   case $version_type in
20265     freebsd-elf*)
20266       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20267       need_version=no
20268       need_lib_prefix=no
20269       ;;
20270     freebsd-*)
20271       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20272       need_version=yes
20273       ;;
20274   esac
20275   shlibpath_var=LD_LIBRARY_PATH
20276   case $host_os in
20277   freebsd2*)
20278     shlibpath_overrides_runpath=yes
20279     ;;
20280   freebsd3.[01]* | freebsdelf3.[01]*)
20281     shlibpath_overrides_runpath=yes
20282     hardcode_into_libs=yes
20283     ;;
20284   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20285   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20286     shlibpath_overrides_runpath=no
20287     hardcode_into_libs=yes
20288     ;;
20289   freebsd*) # from 4.6 on
20290     shlibpath_overrides_runpath=yes
20291     hardcode_into_libs=yes
20292     ;;
20293   esac
20294   ;;
20295
20296 gnu*)
20297   version_type=linux
20298   need_lib_prefix=no
20299   need_version=no
20300   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20301   soname_spec='${libname}${release}${shared_ext}$major'
20302   shlibpath_var=LD_LIBRARY_PATH
20303   hardcode_into_libs=yes
20304   ;;
20305
20306 hpux9* | hpux10* | hpux11*)
20307   # Give a soname corresponding to the major version so that dld.sl refuses to
20308   # link against other versions.
20309   version_type=sunos
20310   need_lib_prefix=no
20311   need_version=no
20312   case $host_cpu in
20313   ia64*)
20314     shrext_cmds='.so'
20315     hardcode_into_libs=yes
20316     dynamic_linker="$host_os dld.so"
20317     shlibpath_var=LD_LIBRARY_PATH
20318     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20319     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20320     soname_spec='${libname}${release}${shared_ext}$major'
20321     if test "X$HPUX_IA64_MODE" = X32; then
20322       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20323     else
20324       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20325     fi
20326     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20327     ;;
20328    hppa*64*)
20329      shrext_cmds='.sl'
20330      hardcode_into_libs=yes
20331      dynamic_linker="$host_os dld.sl"
20332      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20333      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20334      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20335      soname_spec='${libname}${release}${shared_ext}$major'
20336      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20337      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20338      ;;
20339    *)
20340     shrext_cmds='.sl'
20341     dynamic_linker="$host_os dld.sl"
20342     shlibpath_var=SHLIB_PATH
20343     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20344     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20345     soname_spec='${libname}${release}${shared_ext}$major'
20346     ;;
20347   esac
20348   # HP-UX runs *really* slowly unless shared libraries are mode 555.
20349   postinstall_cmds='chmod 555 $lib'
20350   ;;
20351
20352 interix3*)
20353   version_type=linux
20354   need_lib_prefix=no
20355   need_version=no
20356   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20357   soname_spec='${libname}${release}${shared_ext}$major'
20358   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20359   shlibpath_var=LD_LIBRARY_PATH
20360   shlibpath_overrides_runpath=no
20361   hardcode_into_libs=yes
20362   ;;
20363
20364 irix5* | irix6* | nonstopux*)
20365   case $host_os in
20366     nonstopux*) version_type=nonstopux ;;
20367     *)
20368         if test "$lt_cv_prog_gnu_ld" = yes; then
20369                 version_type=linux
20370         else
20371                 version_type=irix
20372         fi ;;
20373   esac
20374   need_lib_prefix=no
20375   need_version=no
20376   soname_spec='${libname}${release}${shared_ext}$major'
20377   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20378   case $host_os in
20379   irix5* | nonstopux*)
20380     libsuff= shlibsuff=
20381     ;;
20382   *)
20383     case $LD in # libtool.m4 will add one of these switches to LD
20384     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20385       libsuff= shlibsuff= libmagic=32-bit;;
20386     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20387       libsuff=32 shlibsuff=N32 libmagic=N32;;
20388     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20389       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20390     *) libsuff= shlibsuff= libmagic=never-match;;
20391     esac
20392     ;;
20393   esac
20394   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20395   shlibpath_overrides_runpath=no
20396   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20397   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20398   hardcode_into_libs=yes
20399   ;;
20400
20401 # No shared lib support for Linux oldld, aout, or coff.
20402 linux*oldld* | linux*aout* | linux*coff*)
20403   dynamic_linker=no
20404   ;;
20405
20406 # This must be Linux ELF.
20407 linux*)
20408   version_type=linux
20409   need_lib_prefix=no
20410   need_version=no
20411   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20412   soname_spec='${libname}${release}${shared_ext}$major'
20413   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20414   shlibpath_var=LD_LIBRARY_PATH
20415   shlibpath_overrides_runpath=no
20416   # This implies no fast_install, which is unacceptable.
20417   # Some rework will be needed to allow for fast_install
20418   # before this can be enabled.
20419   hardcode_into_libs=yes
20420
20421   # Append ld.so.conf contents to the search path
20422   if test -f /etc/ld.so.conf; then
20423     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' ' '`
20424     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20425   fi
20426
20427   # We used to test for /lib/ld.so.1 and disable shared libraries on
20428   # powerpc, because MkLinux only supported shared libraries with the
20429   # GNU dynamic linker.  Since this was broken with cross compilers,
20430   # most powerpc-linux boxes support dynamic linking these days and
20431   # people can always --disable-shared, the test was removed, and we
20432   # assume the GNU/Linux dynamic linker is in use.
20433   dynamic_linker='GNU/Linux ld.so'
20434   ;;
20435
20436 knetbsd*-gnu)
20437   version_type=linux
20438   need_lib_prefix=no
20439   need_version=no
20440   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20441   soname_spec='${libname}${release}${shared_ext}$major'
20442   shlibpath_var=LD_LIBRARY_PATH
20443   shlibpath_overrides_runpath=no
20444   hardcode_into_libs=yes
20445   dynamic_linker='GNU ld.so'
20446   ;;
20447
20448 netbsd*)
20449   version_type=sunos
20450   need_lib_prefix=no
20451   need_version=no
20452   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20453     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20454     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20455     dynamic_linker='NetBSD (a.out) ld.so'
20456   else
20457     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20458     soname_spec='${libname}${release}${shared_ext}$major'
20459     dynamic_linker='NetBSD ld.elf_so'
20460   fi
20461   shlibpath_var=LD_LIBRARY_PATH
20462   shlibpath_overrides_runpath=yes
20463   hardcode_into_libs=yes
20464   ;;
20465
20466 newsos6)
20467   version_type=linux
20468   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20469   shlibpath_var=LD_LIBRARY_PATH
20470   shlibpath_overrides_runpath=yes
20471   ;;
20472
20473 nto-qnx*)
20474   version_type=linux
20475   need_lib_prefix=no
20476   need_version=no
20477   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20478   soname_spec='${libname}${release}${shared_ext}$major'
20479   shlibpath_var=LD_LIBRARY_PATH
20480   shlibpath_overrides_runpath=yes
20481   ;;
20482
20483 openbsd*)
20484   version_type=sunos
20485   sys_lib_dlsearch_path_spec="/usr/lib"
20486   need_lib_prefix=no
20487   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20488   case $host_os in
20489     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20490     *)                         need_version=no  ;;
20491   esac
20492   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20493   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20494   shlibpath_var=LD_LIBRARY_PATH
20495   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20496     case $host_os in
20497       openbsd2.[89] | openbsd2.[89].*)
20498         shlibpath_overrides_runpath=no
20499         ;;
20500       *)
20501         shlibpath_overrides_runpath=yes
20502         ;;
20503       esac
20504   else
20505     shlibpath_overrides_runpath=yes
20506   fi
20507   ;;
20508
20509 os2*)
20510   libname_spec='$name'
20511   shrext_cmds=".dll"
20512   need_lib_prefix=no
20513   library_names_spec='$libname${shared_ext} $libname.a'
20514   dynamic_linker='OS/2 ld.exe'
20515   shlibpath_var=LIBPATH
20516   ;;
20517
20518 osf3* | osf4* | osf5*)
20519   version_type=osf
20520   need_lib_prefix=no
20521   need_version=no
20522   soname_spec='${libname}${release}${shared_ext}$major'
20523   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20524   shlibpath_var=LD_LIBRARY_PATH
20525   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20526   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20527   ;;
20528
20529 solaris*)
20530   version_type=linux
20531   need_lib_prefix=no
20532   need_version=no
20533   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20534   soname_spec='${libname}${release}${shared_ext}$major'
20535   shlibpath_var=LD_LIBRARY_PATH
20536   shlibpath_overrides_runpath=yes
20537   hardcode_into_libs=yes
20538   # ldd complains unless libraries are executable
20539   postinstall_cmds='chmod +x $lib'
20540   ;;
20541
20542 sunos4*)
20543   version_type=sunos
20544   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20545   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20546   shlibpath_var=LD_LIBRARY_PATH
20547   shlibpath_overrides_runpath=yes
20548   if test "$with_gnu_ld" = yes; then
20549     need_lib_prefix=no
20550   fi
20551   need_version=yes
20552   ;;
20553
20554 sysv4 | sysv4.3*)
20555   version_type=linux
20556   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20557   soname_spec='${libname}${release}${shared_ext}$major'
20558   shlibpath_var=LD_LIBRARY_PATH
20559   case $host_vendor in
20560     sni)
20561       shlibpath_overrides_runpath=no
20562       need_lib_prefix=no
20563       export_dynamic_flag_spec='${wl}-Blargedynsym'
20564       runpath_var=LD_RUN_PATH
20565       ;;
20566     siemens)
20567       need_lib_prefix=no
20568       ;;
20569     motorola)
20570       need_lib_prefix=no
20571       need_version=no
20572       shlibpath_overrides_runpath=no
20573       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20574       ;;
20575   esac
20576   ;;
20577
20578 sysv4*MP*)
20579   if test -d /usr/nec ;then
20580     version_type=linux
20581     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20582     soname_spec='$libname${shared_ext}.$major'
20583     shlibpath_var=LD_LIBRARY_PATH
20584   fi
20585   ;;
20586
20587 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20588   version_type=freebsd-elf
20589   need_lib_prefix=no
20590   need_version=no
20591   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20592   soname_spec='${libname}${release}${shared_ext}$major'
20593   shlibpath_var=LD_LIBRARY_PATH
20594   hardcode_into_libs=yes
20595   if test "$with_gnu_ld" = yes; then
20596     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20597     shlibpath_overrides_runpath=no
20598   else
20599     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20600     shlibpath_overrides_runpath=yes
20601     case $host_os in
20602       sco3.2v5*)
20603         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20604         ;;
20605     esac
20606   fi
20607   sys_lib_dlsearch_path_spec='/usr/lib'
20608   ;;
20609
20610 uts4*)
20611   version_type=linux
20612   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20613   soname_spec='${libname}${release}${shared_ext}$major'
20614   shlibpath_var=LD_LIBRARY_PATH
20615   ;;
20616
20617 *)
20618   dynamic_linker=no
20619   ;;
20620 esac
20621 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20622 echo "${ECHO_T}$dynamic_linker" >&6; }
20623 test "$dynamic_linker" = no && can_build_shared=no
20624
20625 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20626 if test "$GCC" = yes; then
20627   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20628 fi
20629
20630 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20631 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20632 hardcode_action_CXX=
20633 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20634    test -n "$runpath_var_CXX" || \
20635    test "X$hardcode_automatic_CXX" = "Xyes" ; then
20636
20637   # We can hardcode non-existant directories.
20638   if test "$hardcode_direct_CXX" != no &&
20639      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20640      # have to relink, otherwise we might link with an installed library
20641      # when we should be linking with a yet-to-be-installed one
20642      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20643      test "$hardcode_minus_L_CXX" != no; then
20644     # Linking always hardcodes the temporary library directory.
20645     hardcode_action_CXX=relink
20646   else
20647     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20648     hardcode_action_CXX=immediate
20649   fi
20650 else
20651   # We cannot hardcode anything, or else we can only hardcode existing
20652   # directories.
20653   hardcode_action_CXX=unsupported
20654 fi
20655 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20656 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20657
20658 if test "$hardcode_action_CXX" = relink; then
20659   # Fast installation is not supported
20660   enable_fast_install=no
20661 elif test "$shlibpath_overrides_runpath" = yes ||
20662      test "$enable_shared" = no; then
20663   # Fast installation is not necessary
20664   enable_fast_install=needless
20665 fi
20666
20667
20668 # The else clause should only fire when bootstrapping the
20669 # libtool distribution, otherwise you forgot to ship ltmain.sh
20670 # with your package, and you will get complaints that there are
20671 # no rules to generate ltmain.sh.
20672 if test -f "$ltmain"; then
20673   # See if we are running on zsh, and set the options which allow our commands through
20674   # without removal of \ escapes.
20675   if test -n "${ZSH_VERSION+set}" ; then
20676     setopt NO_GLOB_SUBST
20677   fi
20678   # Now quote all the things that may contain metacharacters while being
20679   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20680   # variables and quote the copies for generation of the libtool script.
20681   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20682     SED SHELL STRIP \
20683     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20684     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20685     deplibs_check_method reload_flag reload_cmds need_locks \
20686     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20687     lt_cv_sys_global_symbol_to_c_name_address \
20688     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20689     old_postinstall_cmds old_postuninstall_cmds \
20690     compiler_CXX \
20691     CC_CXX \
20692     LD_CXX \
20693     lt_prog_compiler_wl_CXX \
20694     lt_prog_compiler_pic_CXX \
20695     lt_prog_compiler_static_CXX \
20696     lt_prog_compiler_no_builtin_flag_CXX \
20697     export_dynamic_flag_spec_CXX \
20698     thread_safe_flag_spec_CXX \
20699     whole_archive_flag_spec_CXX \
20700     enable_shared_with_static_runtimes_CXX \
20701     old_archive_cmds_CXX \
20702     old_archive_from_new_cmds_CXX \
20703     predep_objects_CXX \
20704     postdep_objects_CXX \
20705     predeps_CXX \
20706     postdeps_CXX \
20707     compiler_lib_search_path_CXX \
20708     archive_cmds_CXX \
20709     archive_expsym_cmds_CXX \
20710     postinstall_cmds_CXX \
20711     postuninstall_cmds_CXX \
20712     old_archive_from_expsyms_cmds_CXX \
20713     allow_undefined_flag_CXX \
20714     no_undefined_flag_CXX \
20715     export_symbols_cmds_CXX \
20716     hardcode_libdir_flag_spec_CXX \
20717     hardcode_libdir_flag_spec_ld_CXX \
20718     hardcode_libdir_separator_CXX \
20719     hardcode_automatic_CXX \
20720     module_cmds_CXX \
20721     module_expsym_cmds_CXX \
20722     lt_cv_prog_compiler_c_o_CXX \
20723     exclude_expsyms_CXX \
20724     include_expsyms_CXX; do
20725
20726     case $var in
20727     old_archive_cmds_CXX | \
20728     old_archive_from_new_cmds_CXX | \
20729     archive_cmds_CXX | \
20730     archive_expsym_cmds_CXX | \
20731     module_cmds_CXX | \
20732     module_expsym_cmds_CXX | \
20733     old_archive_from_expsyms_cmds_CXX | \
20734     export_symbols_cmds_CXX | \
20735     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20736     postinstall_cmds | postuninstall_cmds | \
20737     old_postinstall_cmds | old_postuninstall_cmds | \
20738     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20739       # Double-quote double-evaled strings.
20740       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20741       ;;
20742     *)
20743       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20744       ;;
20745     esac
20746   done
20747
20748   case $lt_echo in
20749   *'\$0 --fallback-echo"')
20750     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20751     ;;
20752   esac
20753
20754 cfgfile="$ofile"
20755
20756   cat <<__EOF__ >> "$cfgfile"
20757 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20758
20759 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20760
20761 # Shell to use when invoking shell scripts.
20762 SHELL=$lt_SHELL
20763
20764 # Whether or not to build shared libraries.
20765 build_libtool_libs=$enable_shared
20766
20767 # Whether or not to build static libraries.
20768 build_old_libs=$enable_static
20769
20770 # Whether or not to add -lc for building shared libraries.
20771 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20772
20773 # Whether or not to disallow shared libs when runtime libs are static
20774 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20775
20776 # Whether or not to optimize for fast installation.
20777 fast_install=$enable_fast_install
20778
20779 # The host system.
20780 host_alias=$host_alias
20781 host=$host
20782 host_os=$host_os
20783
20784 # The build system.
20785 build_alias=$build_alias
20786 build=$build
20787 build_os=$build_os
20788
20789 # An echo program that does not interpret backslashes.
20790 echo=$lt_echo
20791
20792 # The archiver.
20793 AR=$lt_AR
20794 AR_FLAGS=$lt_AR_FLAGS
20795
20796 # A C compiler.
20797 LTCC=$lt_LTCC
20798
20799 # LTCC compiler flags.
20800 LTCFLAGS=$lt_LTCFLAGS
20801
20802 # A language-specific compiler.
20803 CC=$lt_compiler_CXX
20804
20805 # Is the compiler the GNU C compiler?
20806 with_gcc=$GCC_CXX
20807
20808 # An ERE matcher.
20809 EGREP=$lt_EGREP
20810
20811 # The linker used to build libraries.
20812 LD=$lt_LD_CXX
20813
20814 # Whether we need hard or soft links.
20815 LN_S=$lt_LN_S
20816
20817 # A BSD-compatible nm program.
20818 NM=$lt_NM
20819
20820 # A symbol stripping program
20821 STRIP=$lt_STRIP
20822
20823 # Used to examine libraries when file_magic_cmd begins "file"
20824 MAGIC_CMD=$MAGIC_CMD
20825
20826 # Used on cygwin: DLL creation program.
20827 DLLTOOL="$DLLTOOL"
20828
20829 # Used on cygwin: object dumper.
20830 OBJDUMP="$OBJDUMP"
20831
20832 # Used on cygwin: assembler.
20833 AS="$AS"
20834
20835 # The name of the directory that contains temporary libtool files.
20836 objdir=$objdir
20837
20838 # How to create reloadable object files.
20839 reload_flag=$lt_reload_flag
20840 reload_cmds=$lt_reload_cmds
20841
20842 # How to pass a linker flag through the compiler.
20843 wl=$lt_lt_prog_compiler_wl_CXX
20844
20845 # Object file suffix (normally "o").
20846 objext="$ac_objext"
20847
20848 # Old archive suffix (normally "a").
20849 libext="$libext"
20850
20851 # Shared library suffix (normally ".so").
20852 shrext_cmds='$shrext_cmds'
20853
20854 # Executable file suffix (normally "").
20855 exeext="$exeext"
20856
20857 # Additional compiler flags for building library objects.
20858 pic_flag=$lt_lt_prog_compiler_pic_CXX
20859 pic_mode=$pic_mode
20860
20861 # What is the maximum length of a command?
20862 max_cmd_len=$lt_cv_sys_max_cmd_len
20863
20864 # Does compiler simultaneously support -c and -o options?
20865 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20866
20867 # Must we lock files when doing compilation?
20868 need_locks=$lt_need_locks
20869
20870 # Do we need the lib prefix for modules?
20871 need_lib_prefix=$need_lib_prefix
20872
20873 # Do we need a version for libraries?
20874 need_version=$need_version
20875
20876 # Whether dlopen is supported.
20877 dlopen_support=$enable_dlopen
20878
20879 # Whether dlopen of programs is supported.
20880 dlopen_self=$enable_dlopen_self
20881
20882 # Whether dlopen of statically linked programs is supported.
20883 dlopen_self_static=$enable_dlopen_self_static
20884
20885 # Compiler flag to prevent dynamic linking.
20886 link_static_flag=$lt_lt_prog_compiler_static_CXX
20887
20888 # Compiler flag to turn off builtin functions.
20889 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20890
20891 # Compiler flag to allow reflexive dlopens.
20892 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20893
20894 # Compiler flag to generate shared objects directly from archives.
20895 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20896
20897 # Compiler flag to generate thread-safe objects.
20898 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20899
20900 # Library versioning type.
20901 version_type=$version_type
20902
20903 # Format of library name prefix.
20904 libname_spec=$lt_libname_spec
20905
20906 # List of archive names.  First name is the real one, the rest are links.
20907 # The last name is the one that the linker finds with -lNAME.
20908 library_names_spec=$lt_library_names_spec
20909
20910 # The coded name of the library, if different from the real name.
20911 soname_spec=$lt_soname_spec
20912
20913 # Commands used to build and install an old-style archive.
20914 RANLIB=$lt_RANLIB
20915 old_archive_cmds=$lt_old_archive_cmds_CXX
20916 old_postinstall_cmds=$lt_old_postinstall_cmds
20917 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20918
20919 # Create an old-style archive from a shared archive.
20920 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20921
20922 # Create a temporary old-style archive to link instead of a shared archive.
20923 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20924
20925 # Commands used to build and install a shared archive.
20926 archive_cmds=$lt_archive_cmds_CXX
20927 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20928 postinstall_cmds=$lt_postinstall_cmds
20929 postuninstall_cmds=$lt_postuninstall_cmds
20930
20931 # Commands used to build a loadable module (assumed same as above if empty)
20932 module_cmds=$lt_module_cmds_CXX
20933 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20934
20935 # Commands to strip libraries.
20936 old_striplib=$lt_old_striplib
20937 striplib=$lt_striplib
20938
20939 # Dependencies to place before the objects being linked to create a
20940 # shared library.
20941 predep_objects=$lt_predep_objects_CXX
20942
20943 # Dependencies to place after the objects being linked to create a
20944 # shared library.
20945 postdep_objects=$lt_postdep_objects_CXX
20946
20947 # Dependencies to place before the objects being linked to create a
20948 # shared library.
20949 predeps=$lt_predeps_CXX
20950
20951 # Dependencies to place after the objects being linked to create a
20952 # shared library.
20953 postdeps=$lt_postdeps_CXX
20954
20955 # The library search path used internally by the compiler when linking
20956 # a shared library.
20957 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20958
20959 # Method to check whether dependent libraries are shared objects.
20960 deplibs_check_method=$lt_deplibs_check_method
20961
20962 # Command to use when deplibs_check_method == file_magic.
20963 file_magic_cmd=$lt_file_magic_cmd
20964
20965 # Flag that allows shared libraries with undefined symbols to be built.
20966 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20967
20968 # Flag that forces no undefined symbols.
20969 no_undefined_flag=$lt_no_undefined_flag_CXX
20970
20971 # Commands used to finish a libtool library installation in a directory.
20972 finish_cmds=$lt_finish_cmds
20973
20974 # Same as above, but a single script fragment to be evaled but not shown.
20975 finish_eval=$lt_finish_eval
20976
20977 # Take the output of nm and produce a listing of raw symbols and C names.
20978 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20979
20980 # Transform the output of nm in a proper C declaration
20981 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20982
20983 # Transform the output of nm in a C name address pair
20984 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20985
20986 # This is the shared library runtime path variable.
20987 runpath_var=$runpath_var
20988
20989 # This is the shared library path variable.
20990 shlibpath_var=$shlibpath_var
20991
20992 # Is shlibpath searched before the hard-coded library search path?
20993 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20994
20995 # How to hardcode a shared library path into an executable.
20996 hardcode_action=$hardcode_action_CXX
20997
20998 # Whether we should hardcode library paths into libraries.
20999 hardcode_into_libs=$hardcode_into_libs
21000
21001 # Flag to hardcode \$libdir into a binary during linking.
21002 # This must work even if \$libdir does not exist.
21003 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21004
21005 # If ld is used when linking, flag to hardcode \$libdir into
21006 # a binary during linking. This must work even if \$libdir does
21007 # not exist.
21008 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21009
21010 # Whether we need a single -rpath flag with a separated argument.
21011 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21012
21013 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21014 # resulting binary.
21015 hardcode_direct=$hardcode_direct_CXX
21016
21017 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21018 # resulting binary.
21019 hardcode_minus_L=$hardcode_minus_L_CXX
21020
21021 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21022 # the resulting binary.
21023 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21024
21025 # Set to yes if building a shared library automatically hardcodes DIR into the library
21026 # and all subsequent libraries and executables linked against it.
21027 hardcode_automatic=$hardcode_automatic_CXX
21028
21029 # Variables whose values should be saved in libtool wrapper scripts and
21030 # restored at relink time.
21031 variables_saved_for_relink="$variables_saved_for_relink"
21032
21033 # Whether libtool must link a program against all its dependency libraries.
21034 link_all_deplibs=$link_all_deplibs_CXX
21035
21036 # Compile-time system search path for libraries
21037 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21038
21039 # Run-time system search path for libraries
21040 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21041
21042 # Fix the shell variable \$srcfile for the compiler.
21043 fix_srcfile_path="$fix_srcfile_path_CXX"
21044
21045 # Set to yes if exported symbols are required.
21046 always_export_symbols=$always_export_symbols_CXX
21047
21048 # The commands to list exported symbols.
21049 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21050
21051 # The commands to extract the exported symbol list from a shared archive.
21052 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21053
21054 # Symbols that should not be listed in the preloaded symbols.
21055 exclude_expsyms=$lt_exclude_expsyms_CXX
21056
21057 # Symbols that must always be exported.
21058 include_expsyms=$lt_include_expsyms_CXX
21059
21060 # ### END LIBTOOL TAG CONFIG: $tagname
21061
21062 __EOF__
21063
21064
21065 else
21066   # If there is no Makefile yet, we rely on a make rule to execute
21067   # `config.status --recheck' to rerun these tests and create the
21068   # libtool script then.
21069   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21070   if test -f "$ltmain_in"; then
21071     test -f Makefile && make "$ltmain"
21072   fi
21073 fi
21074
21075
21076 ac_ext=c
21077 ac_cpp='$CPP $CPPFLAGS'
21078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21081
21082 CC=$lt_save_CC
21083 LDCXX=$LD
21084 LD=$lt_save_LD
21085 GCC=$lt_save_GCC
21086 with_gnu_ldcxx=$with_gnu_ld
21087 with_gnu_ld=$lt_save_with_gnu_ld
21088 lt_cv_path_LDCXX=$lt_cv_path_LD
21089 lt_cv_path_LD=$lt_save_path_LD
21090 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21091 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21092
21093         else
21094           tagname=""
21095         fi
21096         ;;
21097
21098       F77)
21099         if test -n "$F77" && test "X$F77" != "Xno"; then
21100
21101 ac_ext=f
21102 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21103 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21104 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21105
21106
21107 archive_cmds_need_lc_F77=no
21108 allow_undefined_flag_F77=
21109 always_export_symbols_F77=no
21110 archive_expsym_cmds_F77=
21111 export_dynamic_flag_spec_F77=
21112 hardcode_direct_F77=no
21113 hardcode_libdir_flag_spec_F77=
21114 hardcode_libdir_flag_spec_ld_F77=
21115 hardcode_libdir_separator_F77=
21116 hardcode_minus_L_F77=no
21117 hardcode_automatic_F77=no
21118 module_cmds_F77=
21119 module_expsym_cmds_F77=
21120 link_all_deplibs_F77=unknown
21121 old_archive_cmds_F77=$old_archive_cmds
21122 no_undefined_flag_F77=
21123 whole_archive_flag_spec_F77=
21124 enable_shared_with_static_runtimes_F77=no
21125
21126 # Source file extension for f77 test sources.
21127 ac_ext=f
21128
21129 # Object file extension for compiled f77 test sources.
21130 objext=o
21131 objext_F77=$objext
21132
21133 # Code to be used in simple compile tests
21134 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
21135
21136 # Code to be used in simple link tests
21137 lt_simple_link_test_code="      program t\n      end\n"
21138
21139 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21140
21141 # If no C compiler was specified, use CC.
21142 LTCC=${LTCC-"$CC"}
21143
21144 # If no C compiler flags were specified, use CFLAGS.
21145 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21146
21147 # Allow CC to be a program name with arguments.
21148 compiler=$CC
21149
21150
21151 # save warnings/boilerplate of simple test code
21152 ac_outfile=conftest.$ac_objext
21153 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21154 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21155 _lt_compiler_boilerplate=`cat conftest.err`
21156 $rm conftest*
21157
21158 ac_outfile=conftest.$ac_objext
21159 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21160 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21161 _lt_linker_boilerplate=`cat conftest.err`
21162 $rm conftest*
21163
21164
21165 # Allow CC to be a program name with arguments.
21166 lt_save_CC="$CC"
21167 CC=${F77-"f77"}
21168 compiler=$CC
21169 compiler_F77=$CC
21170 for cc_temp in $compiler""; do
21171   case $cc_temp in
21172     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21173     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21174     \-*) ;;
21175     *) break;;
21176   esac
21177 done
21178 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21179
21180
21181 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21182 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21183 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21184 echo "${ECHO_T}$can_build_shared" >&6; }
21185
21186 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21187 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21188 test "$can_build_shared" = "no" && enable_shared=no
21189
21190 # On AIX, shared libraries and static libraries use the same namespace, and
21191 # are all built from PIC.
21192 case $host_os in
21193 aix3*)
21194   test "$enable_shared" = yes && enable_static=no
21195   if test -n "$RANLIB"; then
21196     archive_cmds="$archive_cmds~\$RANLIB \$lib"
21197     postinstall_cmds='$RANLIB $lib'
21198   fi
21199   ;;
21200 aix4* | aix5*)
21201   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21202     test "$enable_shared" = yes && enable_static=no
21203   fi
21204   ;;
21205 esac
21206 { echo "$as_me:$LINENO: result: $enable_shared" >&5
21207 echo "${ECHO_T}$enable_shared" >&6; }
21208
21209 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21210 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21211 # Make sure either enable_shared or enable_static is yes.
21212 test "$enable_shared" = yes || enable_static=yes
21213 { echo "$as_me:$LINENO: result: $enable_static" >&5
21214 echo "${ECHO_T}$enable_static" >&6; }
21215
21216 GCC_F77="$G77"
21217 LD_F77="$LD"
21218
21219 lt_prog_compiler_wl_F77=
21220 lt_prog_compiler_pic_F77=
21221 lt_prog_compiler_static_F77=
21222
21223 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21224 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21225
21226   if test "$GCC" = yes; then
21227     lt_prog_compiler_wl_F77='-Wl,'
21228     lt_prog_compiler_static_F77='-static'
21229
21230     case $host_os in
21231       aix*)
21232       # All AIX code is PIC.
21233       if test "$host_cpu" = ia64; then
21234         # AIX 5 now supports IA64 processor
21235         lt_prog_compiler_static_F77='-Bstatic'
21236       fi
21237       ;;
21238
21239     amigaos*)
21240       # FIXME: we need at least 68020 code to build shared libraries, but
21241       # adding the `-m68020' flag to GCC prevents building anything better,
21242       # like `-m68040'.
21243       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21244       ;;
21245
21246     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21247       # PIC is the default for these OSes.
21248       ;;
21249
21250     mingw* | pw32* | os2*)
21251       # This hack is so that the source file can tell whether it is being
21252       # built for inclusion in a dll (and should export symbols for example).
21253       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21254       ;;
21255
21256     darwin* | rhapsody*)
21257       # PIC is the default on this platform
21258       # Common symbols not allowed in MH_DYLIB files
21259       lt_prog_compiler_pic_F77='-fno-common'
21260       ;;
21261
21262     interix3*)
21263       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21264       # Instead, we relocate shared libraries at runtime.
21265       ;;
21266
21267     msdosdjgpp*)
21268       # Just because we use GCC doesn't mean we suddenly get shared libraries
21269       # on systems that don't support them.
21270       lt_prog_compiler_can_build_shared_F77=no
21271       enable_shared=no
21272       ;;
21273
21274     sysv4*MP*)
21275       if test -d /usr/nec; then
21276         lt_prog_compiler_pic_F77=-Kconform_pic
21277       fi
21278       ;;
21279
21280     hpux*)
21281       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21282       # not for PA HP-UX.
21283       case $host_cpu in
21284       hppa*64*|ia64*)
21285         # +Z the default
21286         ;;
21287       *)
21288         lt_prog_compiler_pic_F77='-fPIC'
21289         ;;
21290       esac
21291       ;;
21292
21293     *)
21294       lt_prog_compiler_pic_F77='-fPIC'
21295       ;;
21296     esac
21297   else
21298     # PORTME Check for flag to pass linker flags through the system compiler.
21299     case $host_os in
21300     aix*)
21301       lt_prog_compiler_wl_F77='-Wl,'
21302       if test "$host_cpu" = ia64; then
21303         # AIX 5 now supports IA64 processor
21304         lt_prog_compiler_static_F77='-Bstatic'
21305       else
21306         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21307       fi
21308       ;;
21309       darwin*)
21310         # PIC is the default on this platform
21311         # Common symbols not allowed in MH_DYLIB files
21312        case $cc_basename in
21313          xlc*)
21314          lt_prog_compiler_pic_F77='-qnocommon'
21315          lt_prog_compiler_wl_F77='-Wl,'
21316          ;;
21317        esac
21318        ;;
21319
21320     mingw* | pw32* | os2*)
21321       # This hack is so that the source file can tell whether it is being
21322       # built for inclusion in a dll (and should export symbols for example).
21323       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21324       ;;
21325
21326     hpux9* | hpux10* | hpux11*)
21327       lt_prog_compiler_wl_F77='-Wl,'
21328       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21329       # not for PA HP-UX.
21330       case $host_cpu in
21331       hppa*64*|ia64*)
21332         # +Z the default
21333         ;;
21334       *)
21335         lt_prog_compiler_pic_F77='+Z'
21336         ;;
21337       esac
21338       # Is there a better lt_prog_compiler_static that works with the bundled CC?
21339       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21340       ;;
21341
21342     irix5* | irix6* | nonstopux*)
21343       lt_prog_compiler_wl_F77='-Wl,'
21344       # PIC (with -KPIC) is the default.
21345       lt_prog_compiler_static_F77='-non_shared'
21346       ;;
21347
21348     newsos6)
21349       lt_prog_compiler_pic_F77='-KPIC'
21350       lt_prog_compiler_static_F77='-Bstatic'
21351       ;;
21352
21353     linux*)
21354       case $cc_basename in
21355       icc* | ecc*)
21356         lt_prog_compiler_wl_F77='-Wl,'
21357         lt_prog_compiler_pic_F77='-KPIC'
21358         lt_prog_compiler_static_F77='-static'
21359         ;;
21360       pgcc* | pgf77* | pgf90* | pgf95*)
21361         # Portland Group compilers (*not* the Pentium gcc compiler,
21362         # which looks to be a dead project)
21363         lt_prog_compiler_wl_F77='-Wl,'
21364         lt_prog_compiler_pic_F77='-fpic'
21365         lt_prog_compiler_static_F77='-Bstatic'
21366         ;;
21367       ccc*)
21368         lt_prog_compiler_wl_F77='-Wl,'
21369         # All Alpha code is PIC.
21370         lt_prog_compiler_static_F77='-non_shared'
21371         ;;
21372       esac
21373       ;;
21374
21375     osf3* | osf4* | osf5*)
21376       lt_prog_compiler_wl_F77='-Wl,'
21377       # All OSF/1 code is PIC.
21378       lt_prog_compiler_static_F77='-non_shared'
21379       ;;
21380
21381     solaris*)
21382       lt_prog_compiler_pic_F77='-KPIC'
21383       lt_prog_compiler_static_F77='-Bstatic'
21384       case $cc_basename in
21385       f77* | f90* | f95*)
21386         lt_prog_compiler_wl_F77='-Qoption ld ';;
21387       *)
21388         lt_prog_compiler_wl_F77='-Wl,';;
21389       esac
21390       ;;
21391
21392     sunos4*)
21393       lt_prog_compiler_wl_F77='-Qoption ld '
21394       lt_prog_compiler_pic_F77='-PIC'
21395       lt_prog_compiler_static_F77='-Bstatic'
21396       ;;
21397
21398     sysv4 | sysv4.2uw2* | sysv4.3*)
21399       lt_prog_compiler_wl_F77='-Wl,'
21400       lt_prog_compiler_pic_F77='-KPIC'
21401       lt_prog_compiler_static_F77='-Bstatic'
21402       ;;
21403
21404     sysv4*MP*)
21405       if test -d /usr/nec ;then
21406         lt_prog_compiler_pic_F77='-Kconform_pic'
21407         lt_prog_compiler_static_F77='-Bstatic'
21408       fi
21409       ;;
21410
21411     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21412       lt_prog_compiler_wl_F77='-Wl,'
21413       lt_prog_compiler_pic_F77='-KPIC'
21414       lt_prog_compiler_static_F77='-Bstatic'
21415       ;;
21416
21417     unicos*)
21418       lt_prog_compiler_wl_F77='-Wl,'
21419       lt_prog_compiler_can_build_shared_F77=no
21420       ;;
21421
21422     uts4*)
21423       lt_prog_compiler_pic_F77='-pic'
21424       lt_prog_compiler_static_F77='-Bstatic'
21425       ;;
21426
21427     *)
21428       lt_prog_compiler_can_build_shared_F77=no
21429       ;;
21430     esac
21431   fi
21432
21433 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21434 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21435
21436 #
21437 # Check to make sure the PIC flag actually works.
21438 #
21439 if test -n "$lt_prog_compiler_pic_F77"; then
21440
21441 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21442 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21443 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21444   echo $ECHO_N "(cached) $ECHO_C" >&6
21445 else
21446   lt_prog_compiler_pic_works_F77=no
21447   ac_outfile=conftest.$ac_objext
21448    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21449    lt_compiler_flag="$lt_prog_compiler_pic_F77"
21450    # Insert the option either (1) after the last *FLAGS variable, or
21451    # (2) before a word containing "conftest.", or (3) at the end.
21452    # Note that $ac_compile itself does not contain backslashes and begins
21453    # with a dollar sign (not a hyphen), so the echo should work correctly.
21454    # The option is referenced via a variable to avoid confusing sed.
21455    lt_compile=`echo "$ac_compile" | $SED \
21456    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21457    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21458    -e 's:$: $lt_compiler_flag:'`
21459    (eval echo "\"\$as_me:21459: $lt_compile\"" >&5)
21460    (eval "$lt_compile" 2>conftest.err)
21461    ac_status=$?
21462    cat conftest.err >&5
21463    echo "$as_me:21463: \$? = $ac_status" >&5
21464    if (exit $ac_status) && test -s "$ac_outfile"; then
21465      # The compiler can only warn and ignore the option if not recognized
21466      # So say no if there are warnings other than the usual output.
21467      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21468      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21469      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21470        lt_prog_compiler_pic_works_F77=yes
21471      fi
21472    fi
21473    $rm conftest*
21474
21475 fi
21476 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21477 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21478
21479 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21480     case $lt_prog_compiler_pic_F77 in
21481      "" | " "*) ;;
21482      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21483      esac
21484 else
21485     lt_prog_compiler_pic_F77=
21486      lt_prog_compiler_can_build_shared_F77=no
21487 fi
21488
21489 fi
21490 case $host_os in
21491   # For platforms which do not support PIC, -DPIC is meaningless:
21492   *djgpp*)
21493     lt_prog_compiler_pic_F77=
21494     ;;
21495   *)
21496     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21497     ;;
21498 esac
21499
21500 #
21501 # Check to make sure the static flag actually works.
21502 #
21503 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21504 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21505 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21506 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21507   echo $ECHO_N "(cached) $ECHO_C" >&6
21508 else
21509   lt_prog_compiler_static_works_F77=no
21510    save_LDFLAGS="$LDFLAGS"
21511    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21512    printf "$lt_simple_link_test_code" > conftest.$ac_ext
21513    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21514      # The linker can only warn and ignore the option if not recognized
21515      # So say no if there are warnings
21516      if test -s conftest.err; then
21517        # Append any errors to the config.log.
21518        cat conftest.err 1>&5
21519        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21520        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21521        if diff conftest.exp conftest.er2 >/dev/null; then
21522          lt_prog_compiler_static_works_F77=yes
21523        fi
21524      else
21525        lt_prog_compiler_static_works_F77=yes
21526      fi
21527    fi
21528    $rm conftest*
21529    LDFLAGS="$save_LDFLAGS"
21530
21531 fi
21532 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21533 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21534
21535 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21536     :
21537 else
21538     lt_prog_compiler_static_F77=
21539 fi
21540
21541
21542 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21543 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21544 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21545   echo $ECHO_N "(cached) $ECHO_C" >&6
21546 else
21547   lt_cv_prog_compiler_c_o_F77=no
21548    $rm -r conftest 2>/dev/null
21549    mkdir conftest
21550    cd conftest
21551    mkdir out
21552    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21553
21554    lt_compiler_flag="-o out/conftest2.$ac_objext"
21555    # Insert the option either (1) after the last *FLAGS variable, or
21556    # (2) before a word containing "conftest.", or (3) at the end.
21557    # Note that $ac_compile itself does not contain backslashes and begins
21558    # with a dollar sign (not a hyphen), so the echo should work correctly.
21559    lt_compile=`echo "$ac_compile" | $SED \
21560    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21561    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21562    -e 's:$: $lt_compiler_flag:'`
21563    (eval echo "\"\$as_me:21563: $lt_compile\"" >&5)
21564    (eval "$lt_compile" 2>out/conftest.err)
21565    ac_status=$?
21566    cat out/conftest.err >&5
21567    echo "$as_me:21567: \$? = $ac_status" >&5
21568    if (exit $ac_status) && test -s out/conftest2.$ac_objext
21569    then
21570      # The compiler can only warn and ignore the option if not recognized
21571      # So say no if there are warnings
21572      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21573      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21574      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21575        lt_cv_prog_compiler_c_o_F77=yes
21576      fi
21577    fi
21578    chmod u+w . 2>&5
21579    $rm conftest*
21580    # SGI C++ compiler will create directory out/ii_files/ for
21581    # template instantiation
21582    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21583    $rm out/* && rmdir out
21584    cd ..
21585    rmdir conftest
21586    $rm conftest*
21587
21588 fi
21589 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21590 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21591
21592
21593 hard_links="nottested"
21594 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21595   # do not overwrite the value of need_locks provided by the user
21596   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21597 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21598   hard_links=yes
21599   $rm conftest*
21600   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21601   touch conftest.a
21602   ln conftest.a conftest.b 2>&5 || hard_links=no
21603   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21604   { echo "$as_me:$LINENO: result: $hard_links" >&5
21605 echo "${ECHO_T}$hard_links" >&6; }
21606   if test "$hard_links" = no; then
21607     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21608 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21609     need_locks=warn
21610   fi
21611 else
21612   need_locks=no
21613 fi
21614
21615 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21616 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21617
21618   runpath_var=
21619   allow_undefined_flag_F77=
21620   enable_shared_with_static_runtimes_F77=no
21621   archive_cmds_F77=
21622   archive_expsym_cmds_F77=
21623   old_archive_From_new_cmds_F77=
21624   old_archive_from_expsyms_cmds_F77=
21625   export_dynamic_flag_spec_F77=
21626   whole_archive_flag_spec_F77=
21627   thread_safe_flag_spec_F77=
21628   hardcode_libdir_flag_spec_F77=
21629   hardcode_libdir_flag_spec_ld_F77=
21630   hardcode_libdir_separator_F77=
21631   hardcode_direct_F77=no
21632   hardcode_minus_L_F77=no
21633   hardcode_shlibpath_var_F77=unsupported
21634   link_all_deplibs_F77=unknown
21635   hardcode_automatic_F77=no
21636   module_cmds_F77=
21637   module_expsym_cmds_F77=
21638   always_export_symbols_F77=no
21639   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21640   # include_expsyms should be a list of space-separated symbols to be *always*
21641   # included in the symbol list
21642   include_expsyms_F77=
21643   # exclude_expsyms can be an extended regexp of symbols to exclude
21644   # it will be wrapped by ` (' and `)$', so one must not match beginning or
21645   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21646   # as well as any symbol that contains `d'.
21647   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21648   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21649   # platforms (ab)use it in PIC code, but their linkers get confused if
21650   # the symbol is explicitly referenced.  Since portable code cannot
21651   # rely on this symbol name, it's probably fine to never include it in
21652   # preloaded symbol tables.
21653   extract_expsyms_cmds=
21654   # Just being paranoid about ensuring that cc_basename is set.
21655   for cc_temp in $compiler""; do
21656   case $cc_temp in
21657     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21658     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21659     \-*) ;;
21660     *) break;;
21661   esac
21662 done
21663 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21664
21665   case $host_os in
21666   cygwin* | mingw* | pw32*)
21667     # FIXME: the MSVC++ port hasn't been tested in a loooong time
21668     # When not using gcc, we currently assume that we are using
21669     # Microsoft Visual C++.
21670     if test "$GCC" != yes; then
21671       with_gnu_ld=no
21672     fi
21673     ;;
21674   interix*)
21675     # we just hope/assume this is gcc and not c89 (= MSVC++)
21676     with_gnu_ld=yes
21677     ;;
21678   openbsd*)
21679     with_gnu_ld=no
21680     ;;
21681   esac
21682
21683   ld_shlibs_F77=yes
21684   if test "$with_gnu_ld" = yes; then
21685     # If archive_cmds runs LD, not CC, wlarc should be empty
21686     wlarc='${wl}'
21687
21688     # Set some defaults for GNU ld with shared library support. These
21689     # are reset later if shared libraries are not supported. Putting them
21690     # here allows them to be overridden if necessary.
21691     runpath_var=LD_RUN_PATH
21692     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21693     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21694     # ancient GNU ld didn't support --whole-archive et. al.
21695     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21696         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21697       else
21698         whole_archive_flag_spec_F77=
21699     fi
21700     supports_anon_versioning=no
21701     case `$LD -v 2>/dev/null` in
21702       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21703       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21704       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21705       *\ 2.11.*) ;; # other 2.11 versions
21706       *) supports_anon_versioning=yes ;;
21707     esac
21708
21709     # See if GNU ld supports shared libraries.
21710     case $host_os in
21711     aix3* | aix4* | aix5*)
21712       # On AIX/PPC, the GNU linker is very broken
21713       if test "$host_cpu" != ia64; then
21714         ld_shlibs_F77=no
21715         cat <<EOF 1>&2
21716
21717 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21718 *** to be unable to reliably create shared libraries on AIX.
21719 *** Therefore, libtool is disabling shared libraries support.  If you
21720 *** really care for shared libraries, you may want to modify your PATH
21721 *** so that a non-GNU linker is found, and then restart.
21722
21723 EOF
21724       fi
21725       ;;
21726
21727     amigaos*)
21728       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)'
21729       hardcode_libdir_flag_spec_F77='-L$libdir'
21730       hardcode_minus_L_F77=yes
21731
21732       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21733       # that the semantics of dynamic libraries on AmigaOS, at least up
21734       # to version 4, is to share data among multiple programs linked
21735       # with the same dynamic library.  Since this doesn't match the
21736       # behavior of shared libraries on other platforms, we can't use
21737       # them.
21738       ld_shlibs_F77=no
21739       ;;
21740
21741     beos*)
21742       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21743         allow_undefined_flag_F77=unsupported
21744         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21745         # support --undefined.  This deserves some investigation.  FIXME
21746         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21747       else
21748         ld_shlibs_F77=no
21749       fi
21750       ;;
21751
21752     cygwin* | mingw* | pw32*)
21753       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21754       # as there is no search path for DLLs.
21755       hardcode_libdir_flag_spec_F77='-L$libdir'
21756       allow_undefined_flag_F77=unsupported
21757       always_export_symbols_F77=no
21758       enable_shared_with_static_runtimes_F77=yes
21759       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21760
21761       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21762         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21763         # If the export-symbols file already is a .def file (1st line
21764         # is EXPORTS), use it as is; otherwise, prepend...
21765         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21766           cp $export_symbols $output_objdir/$soname.def;
21767         else
21768           echo EXPORTS > $output_objdir/$soname.def;
21769           cat $export_symbols >> $output_objdir/$soname.def;
21770         fi~
21771         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21772       else
21773         ld_shlibs_F77=no
21774       fi
21775       ;;
21776
21777     interix3*)
21778       hardcode_direct_F77=no
21779       hardcode_shlibpath_var_F77=no
21780       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21781       export_dynamic_flag_spec_F77='${wl}-E'
21782       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21783       # Instead, shared libraries are loaded at an image base (0x10000000 by
21784       # default) and relocated if they conflict, which is a slow very memory
21785       # consuming and fragmenting process.  To avoid this, we pick a random,
21786       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21787       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
21788       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'
21789       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'
21790       ;;
21791
21792     linux*)
21793       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21794         tmp_addflag=
21795         case $cc_basename,$host_cpu in
21796         pgcc*)                          # Portland Group C compiler
21797           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'
21798           tmp_addflag=' $pic_flag'
21799           ;;
21800         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
21801           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'
21802           tmp_addflag=' $pic_flag -Mnomain' ;;
21803         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
21804           tmp_addflag=' -i_dynamic' ;;
21805         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
21806           tmp_addflag=' -i_dynamic -nofor_main' ;;
21807         ifc* | ifort*)                  # Intel Fortran compiler
21808           tmp_addflag=' -nofor_main' ;;
21809         esac
21810         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21811
21812         if test $supports_anon_versioning = yes; then
21813           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21814   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21815   $echo "local: *; };" >> $output_objdir/$libname.ver~
21816           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21817         fi
21818       else
21819         ld_shlibs_F77=no
21820       fi
21821       ;;
21822
21823     netbsd*)
21824       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21825         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21826         wlarc=
21827       else
21828         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21829         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21830       fi
21831       ;;
21832
21833     solaris*)
21834       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21835         ld_shlibs_F77=no
21836         cat <<EOF 1>&2
21837
21838 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21839 *** create shared libraries on Solaris systems.  Therefore, libtool
21840 *** is disabling shared libraries support.  We urge you to upgrade GNU
21841 *** binutils to release 2.9.1 or newer.  Another option is to modify
21842 *** your PATH or compiler configuration so that the native linker is
21843 *** used, and then restart.
21844
21845 EOF
21846       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21847         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21848         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21849       else
21850         ld_shlibs_F77=no
21851       fi
21852       ;;
21853
21854     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21855       case `$LD -v 2>&1` in
21856         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21857         ld_shlibs_F77=no
21858         cat <<_LT_EOF 1>&2
21859
21860 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21861 *** reliably create shared libraries on SCO systems.  Therefore, libtool
21862 *** is disabling shared libraries support.  We urge you to upgrade GNU
21863 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
21864 *** your PATH or compiler configuration so that the native linker is
21865 *** used, and then restart.
21866
21867 _LT_EOF
21868         ;;
21869         *)
21870           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21871             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21872             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21873             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21874           else
21875             ld_shlibs_F77=no
21876           fi
21877         ;;
21878       esac
21879       ;;
21880
21881     sunos4*)
21882       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21883       wlarc=
21884       hardcode_direct_F77=yes
21885       hardcode_shlibpath_var_F77=no
21886       ;;
21887
21888     *)
21889       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21890         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21891         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21892       else
21893         ld_shlibs_F77=no
21894       fi
21895       ;;
21896     esac
21897
21898     if test "$ld_shlibs_F77" = no; then
21899       runpath_var=
21900       hardcode_libdir_flag_spec_F77=
21901       export_dynamic_flag_spec_F77=
21902       whole_archive_flag_spec_F77=
21903     fi
21904   else
21905     # PORTME fill in a description of your system's linker (not GNU ld)
21906     case $host_os in
21907     aix3*)
21908       allow_undefined_flag_F77=unsupported
21909       always_export_symbols_F77=yes
21910       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'
21911       # Note: this linker hardcodes the directories in LIBPATH if there
21912       # are no directories specified by -L.
21913       hardcode_minus_L_F77=yes
21914       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
21915         # Neither direct hardcoding nor static linking is supported with a
21916         # broken collect2.
21917         hardcode_direct_F77=unsupported
21918       fi
21919       ;;
21920
21921     aix4* | aix5*)
21922       if test "$host_cpu" = ia64; then
21923         # On IA64, the linker does run time linking by default, so we don't
21924         # have to do anything special.
21925         aix_use_runtimelinking=no
21926         exp_sym_flag='-Bexport'
21927         no_entry_flag=""
21928       else
21929         # If we're using GNU nm, then we don't want the "-C" option.
21930         # -C means demangle to AIX nm, but means don't demangle with GNU nm
21931         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21932           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'
21933         else
21934           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'
21935         fi
21936         aix_use_runtimelinking=no
21937
21938         # Test if we are trying to use run time linking or normal
21939         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21940         # need to do runtime linking.
21941         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21942           for ld_flag in $LDFLAGS; do
21943           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21944             aix_use_runtimelinking=yes
21945             break
21946           fi
21947           done
21948           ;;
21949         esac
21950
21951         exp_sym_flag='-bexport'
21952         no_entry_flag='-bnoentry'
21953       fi
21954
21955       # When large executables or shared objects are built, AIX ld can
21956       # have problems creating the table of contents.  If linking a library
21957       # or program results in "error TOC overflow" add -mminimal-toc to
21958       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
21959       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21960
21961       archive_cmds_F77=''
21962       hardcode_direct_F77=yes
21963       hardcode_libdir_separator_F77=':'
21964       link_all_deplibs_F77=yes
21965
21966       if test "$GCC" = yes; then
21967         case $host_os in aix4.[012]|aix4.[012].*)
21968         # We only want to do this on AIX 4.2 and lower, the check
21969         # below for broken collect2 doesn't work under 4.3+
21970           collect2name=`${CC} -print-prog-name=collect2`
21971           if test -f "$collect2name" && \
21972            strings "$collect2name" | grep resolve_lib_name >/dev/null
21973           then
21974           # We have reworked collect2
21975           hardcode_direct_F77=yes
21976           else
21977           # We have old collect2
21978           hardcode_direct_F77=unsupported
21979           # It fails to find uninstalled libraries when the uninstalled
21980           # path is not listed in the libpath.  Setting hardcode_minus_L
21981           # to unsupported forces relinking
21982           hardcode_minus_L_F77=yes
21983           hardcode_libdir_flag_spec_F77='-L$libdir'
21984           hardcode_libdir_separator_F77=
21985           fi
21986           ;;
21987         esac
21988         shared_flag='-shared'
21989         if test "$aix_use_runtimelinking" = yes; then
21990           shared_flag="$shared_flag "'${wl}-G'
21991         fi
21992       else
21993         # not using gcc
21994         if test "$host_cpu" = ia64; then
21995         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21996         # chokes on -Wl,-G. The following line is correct:
21997           shared_flag='-G'
21998         else
21999           if test "$aix_use_runtimelinking" = yes; then
22000             shared_flag='${wl}-G'
22001           else
22002             shared_flag='${wl}-bM:SRE'
22003           fi
22004         fi
22005       fi
22006
22007       # It seems that -bexpall does not export symbols beginning with
22008       # underscore (_), so it is better to generate a list of symbols to export.
22009       always_export_symbols_F77=yes
22010       if test "$aix_use_runtimelinking" = yes; then
22011         # Warning - without using the other runtime loading flags (-brtl),
22012         # -berok will link without error, but may produce a broken library.
22013         allow_undefined_flag_F77='-berok'
22014        # Determine the default libpath from the value encoded in an empty executable.
22015        cat >conftest.$ac_ext <<_ACEOF
22016       program main
22017
22018       end
22019 _ACEOF
22020 rm -f conftest.$ac_objext conftest$ac_exeext
22021 if { (ac_try="$ac_link"
22022 case "(($ac_try" in
22023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22024   *) ac_try_echo=$ac_try;;
22025 esac
22026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22027   (eval "$ac_link") 2>conftest.er1
22028   ac_status=$?
22029   grep -v '^ *+' conftest.er1 >conftest.err
22030   rm -f conftest.er1
22031   cat conftest.err >&5
22032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22033   (exit $ac_status); } &&
22034          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22035   { (case "(($ac_try" in
22036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22037   *) ac_try_echo=$ac_try;;
22038 esac
22039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22040   (eval "$ac_try") 2>&5
22041   ac_status=$?
22042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22043   (exit $ac_status); }; } &&
22044          { ac_try='test -s conftest$ac_exeext'
22045   { (case "(($ac_try" in
22046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22047   *) ac_try_echo=$ac_try;;
22048 esac
22049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22050   (eval "$ac_try") 2>&5
22051   ac_status=$?
22052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22053   (exit $ac_status); }; }; then
22054
22055 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22056 }'`
22057 # Check for a 64-bit object if we didn't find anything.
22058 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; }
22059 }'`; fi
22060 else
22061   echo "$as_me: failed program was:" >&5
22062 sed 's/^/| /' conftest.$ac_ext >&5
22063
22064
22065 fi
22066
22067 rm -f core conftest.err conftest.$ac_objext \
22068       conftest$ac_exeext conftest.$ac_ext
22069 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22070
22071        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22072         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"
22073        else
22074         if test "$host_cpu" = ia64; then
22075           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22076           allow_undefined_flag_F77="-z nodefs"
22077           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"
22078         else
22079          # Determine the default libpath from the value encoded in an empty executable.
22080          cat >conftest.$ac_ext <<_ACEOF
22081       program main
22082
22083       end
22084 _ACEOF
22085 rm -f conftest.$ac_objext conftest$ac_exeext
22086 if { (ac_try="$ac_link"
22087 case "(($ac_try" in
22088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22089   *) ac_try_echo=$ac_try;;
22090 esac
22091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22092   (eval "$ac_link") 2>conftest.er1
22093   ac_status=$?
22094   grep -v '^ *+' conftest.er1 >conftest.err
22095   rm -f conftest.er1
22096   cat conftest.err >&5
22097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22098   (exit $ac_status); } &&
22099          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22100   { (case "(($ac_try" in
22101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22102   *) ac_try_echo=$ac_try;;
22103 esac
22104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22105   (eval "$ac_try") 2>&5
22106   ac_status=$?
22107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22108   (exit $ac_status); }; } &&
22109          { ac_try='test -s conftest$ac_exeext'
22110   { (case "(($ac_try" in
22111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22112   *) ac_try_echo=$ac_try;;
22113 esac
22114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22115   (eval "$ac_try") 2>&5
22116   ac_status=$?
22117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22118   (exit $ac_status); }; }; then
22119
22120 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22121 }'`
22122 # Check for a 64-bit object if we didn't find anything.
22123 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; }
22124 }'`; fi
22125 else
22126   echo "$as_me: failed program was:" >&5
22127 sed 's/^/| /' conftest.$ac_ext >&5
22128
22129
22130 fi
22131
22132 rm -f core conftest.err conftest.$ac_objext \
22133       conftest$ac_exeext conftest.$ac_ext
22134 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22135
22136          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22137           # Warning - without using the other run time loading flags,
22138           # -berok will link without error, but may produce a broken library.
22139           no_undefined_flag_F77=' ${wl}-bernotok'
22140           allow_undefined_flag_F77=' ${wl}-berok'
22141           # Exported symbols can be pulled into shared objects from archives
22142           whole_archive_flag_spec_F77='$convenience'
22143           archive_cmds_need_lc_F77=yes
22144           # This is similar to how AIX traditionally builds its shared libraries.
22145           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'
22146         fi
22147       fi
22148       ;;
22149
22150     amigaos*)
22151       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)'
22152       hardcode_libdir_flag_spec_F77='-L$libdir'
22153       hardcode_minus_L_F77=yes
22154       # see comment about different semantics on the GNU ld section
22155       ld_shlibs_F77=no
22156       ;;
22157
22158     bsdi[45]*)
22159       export_dynamic_flag_spec_F77=-rdynamic
22160       ;;
22161
22162     cygwin* | mingw* | pw32*)
22163       # When not using gcc, we currently assume that we are using
22164       # Microsoft Visual C++.
22165       # hardcode_libdir_flag_spec is actually meaningless, as there is
22166       # no search path for DLLs.
22167       hardcode_libdir_flag_spec_F77=' '
22168       allow_undefined_flag_F77=unsupported
22169       # Tell ltmain to make .lib files, not .a files.
22170       libext=lib
22171       # Tell ltmain to make .dll files, not .so files.
22172       shrext_cmds=".dll"
22173       # FIXME: Setting linknames here is a bad hack.
22174       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22175       # The linker will automatically build a .lib file if we build a DLL.
22176       old_archive_From_new_cmds_F77='true'
22177       # FIXME: Should let the user specify the lib program.
22178       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22179       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22180       enable_shared_with_static_runtimes_F77=yes
22181       ;;
22182
22183     darwin* | rhapsody*)
22184       case $host_os in
22185         rhapsody* | darwin1.[012])
22186          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22187          ;;
22188        *) # Darwin 1.3 on
22189          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22190            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22191          else
22192            case ${MACOSX_DEPLOYMENT_TARGET} in
22193              10.[012])
22194                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22195                ;;
22196              10.*)
22197                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22198                ;;
22199            esac
22200          fi
22201          ;;
22202       esac
22203       archive_cmds_need_lc_F77=no
22204       hardcode_direct_F77=no
22205       hardcode_automatic_F77=yes
22206       hardcode_shlibpath_var_F77=unsupported
22207       whole_archive_flag_spec_F77=''
22208       link_all_deplibs_F77=yes
22209     if test "$GCC" = yes ; then
22210         output_verbose_link_cmd='echo'
22211         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22212       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22213       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22214       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}'
22215       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}'
22216     else
22217       case $cc_basename in
22218         xlc*)
22219          output_verbose_link_cmd='echo'
22220          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22221          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22222           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22223          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}'
22224           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}'
22225           ;;
22226        *)
22227          ld_shlibs_F77=no
22228           ;;
22229       esac
22230     fi
22231       ;;
22232
22233     dgux*)
22234       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22235       hardcode_libdir_flag_spec_F77='-L$libdir'
22236       hardcode_shlibpath_var_F77=no
22237       ;;
22238
22239     freebsd1*)
22240       ld_shlibs_F77=no
22241       ;;
22242
22243     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22244     # support.  Future versions do this automatically, but an explicit c++rt0.o
22245     # does not break anything, and helps significantly (at the cost of a little
22246     # extra space).
22247     freebsd2.2*)
22248       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22249       hardcode_libdir_flag_spec_F77='-R$libdir'
22250       hardcode_direct_F77=yes
22251       hardcode_shlibpath_var_F77=no
22252       ;;
22253
22254     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22255     freebsd2*)
22256       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22257       hardcode_direct_F77=yes
22258       hardcode_minus_L_F77=yes
22259       hardcode_shlibpath_var_F77=no
22260       ;;
22261
22262     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22263     freebsd* | kfreebsd*-gnu | dragonfly*)
22264       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22265       hardcode_libdir_flag_spec_F77='-R$libdir'
22266       hardcode_direct_F77=yes
22267       hardcode_shlibpath_var_F77=no
22268       ;;
22269
22270     hpux9*)
22271       if test "$GCC" = yes; then
22272         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'
22273       else
22274         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'
22275       fi
22276       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22277       hardcode_libdir_separator_F77=:
22278       hardcode_direct_F77=yes
22279
22280       # hardcode_minus_L: Not really in the search PATH,
22281       # but as the default location of the library.
22282       hardcode_minus_L_F77=yes
22283       export_dynamic_flag_spec_F77='${wl}-E'
22284       ;;
22285
22286     hpux10*)
22287       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22288         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22289       else
22290         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22291       fi
22292       if test "$with_gnu_ld" = no; then
22293         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22294         hardcode_libdir_separator_F77=:
22295
22296         hardcode_direct_F77=yes
22297         export_dynamic_flag_spec_F77='${wl}-E'
22298
22299         # hardcode_minus_L: Not really in the search PATH,
22300         # but as the default location of the library.
22301         hardcode_minus_L_F77=yes
22302       fi
22303       ;;
22304
22305     hpux11*)
22306       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22307         case $host_cpu in
22308         hppa*64*)
22309           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22310           ;;
22311         ia64*)
22312           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22313           ;;
22314         *)
22315           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22316           ;;
22317         esac
22318       else
22319         case $host_cpu in
22320         hppa*64*)
22321           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22322           ;;
22323         ia64*)
22324           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22325           ;;
22326         *)
22327           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22328           ;;
22329         esac
22330       fi
22331       if test "$with_gnu_ld" = no; then
22332         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22333         hardcode_libdir_separator_F77=:
22334
22335         case $host_cpu in
22336         hppa*64*|ia64*)
22337           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22338           hardcode_direct_F77=no
22339           hardcode_shlibpath_var_F77=no
22340           ;;
22341         *)
22342           hardcode_direct_F77=yes
22343           export_dynamic_flag_spec_F77='${wl}-E'
22344
22345           # hardcode_minus_L: Not really in the search PATH,
22346           # but as the default location of the library.
22347           hardcode_minus_L_F77=yes
22348           ;;
22349         esac
22350       fi
22351       ;;
22352
22353     irix5* | irix6* | nonstopux*)
22354       if test "$GCC" = yes; then
22355         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'
22356       else
22357         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'
22358         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22359       fi
22360       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22361       hardcode_libdir_separator_F77=:
22362       link_all_deplibs_F77=yes
22363       ;;
22364
22365     netbsd*)
22366       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22367         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
22368       else
22369         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
22370       fi
22371       hardcode_libdir_flag_spec_F77='-R$libdir'
22372       hardcode_direct_F77=yes
22373       hardcode_shlibpath_var_F77=no
22374       ;;
22375
22376     newsos6)
22377       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22378       hardcode_direct_F77=yes
22379       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22380       hardcode_libdir_separator_F77=:
22381       hardcode_shlibpath_var_F77=no
22382       ;;
22383
22384     openbsd*)
22385       hardcode_direct_F77=yes
22386       hardcode_shlibpath_var_F77=no
22387       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22388         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22389         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22390         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22391         export_dynamic_flag_spec_F77='${wl}-E'
22392       else
22393        case $host_os in
22394          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22395            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22396            hardcode_libdir_flag_spec_F77='-R$libdir'
22397            ;;
22398          *)
22399            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22400            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22401            ;;
22402        esac
22403       fi
22404       ;;
22405
22406     os2*)
22407       hardcode_libdir_flag_spec_F77='-L$libdir'
22408       hardcode_minus_L_F77=yes
22409       allow_undefined_flag_F77=unsupported
22410       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'
22411       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22412       ;;
22413
22414     osf3*)
22415       if test "$GCC" = yes; then
22416         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22417         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'
22418       else
22419         allow_undefined_flag_F77=' -expect_unresolved \*'
22420         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'
22421       fi
22422       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22423       hardcode_libdir_separator_F77=:
22424       ;;
22425
22426     osf4* | osf5*)      # as osf3* with the addition of -msym flag
22427       if test "$GCC" = yes; then
22428         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22429         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'
22430         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22431       else
22432         allow_undefined_flag_F77=' -expect_unresolved \*'
22433         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'
22434         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~
22435         $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'
22436
22437         # Both c and cxx compiler support -rpath directly
22438         hardcode_libdir_flag_spec_F77='-rpath $libdir'
22439       fi
22440       hardcode_libdir_separator_F77=:
22441       ;;
22442
22443     solaris*)
22444       no_undefined_flag_F77=' -z text'
22445       if test "$GCC" = yes; then
22446         wlarc='${wl}'
22447         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22448         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22449           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22450       else
22451         wlarc=''
22452         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22453         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22454         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22455       fi
22456       hardcode_libdir_flag_spec_F77='-R$libdir'
22457       hardcode_shlibpath_var_F77=no
22458       case $host_os in
22459       solaris2.[0-5] | solaris2.[0-5].*) ;;
22460       *)
22461         # The compiler driver will combine linker options so we
22462         # cannot just pass the convience library names through
22463         # without $wl, iff we do not link with $LD.
22464         # Luckily, gcc supports the same syntax we need for Sun Studio.
22465         # Supported since Solaris 2.6 (maybe 2.5.1?)
22466         case $wlarc in
22467         '')
22468           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22469         *)
22470           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' ;;
22471         esac ;;
22472       esac
22473       link_all_deplibs_F77=yes
22474       ;;
22475
22476     sunos4*)
22477       if test "x$host_vendor" = xsequent; then
22478         # Use $CC to link under sequent, because it throws in some extra .o
22479         # files that make .init and .fini sections work.
22480         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22481       else
22482         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22483       fi
22484       hardcode_libdir_flag_spec_F77='-L$libdir'
22485       hardcode_direct_F77=yes
22486       hardcode_minus_L_F77=yes
22487       hardcode_shlibpath_var_F77=no
22488       ;;
22489
22490     sysv4)
22491       case $host_vendor in
22492         sni)
22493           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22494           hardcode_direct_F77=yes # is this really true???
22495         ;;
22496         siemens)
22497           ## LD is ld it makes a PLAMLIB
22498           ## CC just makes a GrossModule.
22499           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22500           reload_cmds_F77='$CC -r -o $output$reload_objs'
22501           hardcode_direct_F77=no
22502         ;;
22503         motorola)
22504           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22505           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22506         ;;
22507       esac
22508       runpath_var='LD_RUN_PATH'
22509       hardcode_shlibpath_var_F77=no
22510       ;;
22511
22512     sysv4.3*)
22513       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22514       hardcode_shlibpath_var_F77=no
22515       export_dynamic_flag_spec_F77='-Bexport'
22516       ;;
22517
22518     sysv4*MP*)
22519       if test -d /usr/nec; then
22520         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22521         hardcode_shlibpath_var_F77=no
22522         runpath_var=LD_RUN_PATH
22523         hardcode_runpath_var=yes
22524         ld_shlibs_F77=yes
22525       fi
22526       ;;
22527
22528     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22529       no_undefined_flag_F77='${wl}-z,text'
22530       archive_cmds_need_lc_F77=no
22531       hardcode_shlibpath_var_F77=no
22532       runpath_var='LD_RUN_PATH'
22533
22534       if test "$GCC" = yes; then
22535         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22536         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22537       else
22538         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22539         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22540       fi
22541       ;;
22542
22543     sysv5* | sco3.2v5* | sco5v6*)
22544       # Note: We can NOT use -z defs as we might desire, because we do not
22545       # link with -lc, and that would cause any symbols used from libc to
22546       # always be unresolved, which means just about no library would
22547       # ever link correctly.  If we're not using GNU ld we use -z text
22548       # though, which does catch some bad symbols but isn't as heavy-handed
22549       # as -z defs.
22550       no_undefined_flag_F77='${wl}-z,text'
22551       allow_undefined_flag_F77='${wl}-z,nodefs'
22552       archive_cmds_need_lc_F77=no
22553       hardcode_shlibpath_var_F77=no
22554       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22555       hardcode_libdir_separator_F77=':'
22556       link_all_deplibs_F77=yes
22557       export_dynamic_flag_spec_F77='${wl}-Bexport'
22558       runpath_var='LD_RUN_PATH'
22559
22560       if test "$GCC" = yes; then
22561         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22562         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22563       else
22564         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22565         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22566       fi
22567       ;;
22568
22569     uts4*)
22570       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22571       hardcode_libdir_flag_spec_F77='-L$libdir'
22572       hardcode_shlibpath_var_F77=no
22573       ;;
22574
22575     *)
22576       ld_shlibs_F77=no
22577       ;;
22578     esac
22579   fi
22580
22581 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22582 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22583 test "$ld_shlibs_F77" = no && can_build_shared=no
22584
22585 #
22586 # Do we need to explicitly link libc?
22587 #
22588 case "x$archive_cmds_need_lc_F77" in
22589 x|xyes)
22590   # Assume -lc should be added
22591   archive_cmds_need_lc_F77=yes
22592
22593   if test "$enable_shared" = yes && test "$GCC" = yes; then
22594     case $archive_cmds_F77 in
22595     *'~'*)
22596       # FIXME: we may have to deal with multi-command sequences.
22597       ;;
22598     '$CC '*)
22599       # Test whether the compiler implicitly links with -lc since on some
22600       # systems, -lgcc has to come before -lc. If gcc already passes -lc
22601       # to ld, don't add -lc before -lgcc.
22602       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22603 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22604       $rm conftest*
22605       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22606
22607       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22608   (eval $ac_compile) 2>&5
22609   ac_status=$?
22610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22611   (exit $ac_status); } 2>conftest.err; then
22612         soname=conftest
22613         lib=conftest
22614         libobjs=conftest.$ac_objext
22615         deplibs=
22616         wl=$lt_prog_compiler_wl_F77
22617         pic_flag=$lt_prog_compiler_pic_F77
22618         compiler_flags=-v
22619         linker_flags=-v
22620         verstring=
22621         output_objdir=.
22622         libname=conftest
22623         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22624         allow_undefined_flag_F77=
22625         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22626   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22627   ac_status=$?
22628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22629   (exit $ac_status); }
22630         then
22631           archive_cmds_need_lc_F77=no
22632         else
22633           archive_cmds_need_lc_F77=yes
22634         fi
22635         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22636       else
22637         cat conftest.err 1>&5
22638       fi
22639       $rm conftest*
22640       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22641 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22642       ;;
22643     esac
22644   fi
22645   ;;
22646 esac
22647
22648 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22649 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22650 library_names_spec=
22651 libname_spec='lib$name'
22652 soname_spec=
22653 shrext_cmds=".so"
22654 postinstall_cmds=
22655 postuninstall_cmds=
22656 finish_cmds=
22657 finish_eval=
22658 shlibpath_var=
22659 shlibpath_overrides_runpath=unknown
22660 version_type=none
22661 dynamic_linker="$host_os ld.so"
22662 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22663 if test "$GCC" = yes; then
22664   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22665   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22666     # if the path contains ";" then we assume it to be the separator
22667     # otherwise default to the standard path separator (i.e. ":") - it is
22668     # assumed that no part of a normal pathname contains ";" but that should
22669     # okay in the real world where ";" in dirpaths is itself problematic.
22670     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22671   else
22672     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22673   fi
22674 else
22675   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22676 fi
22677 need_lib_prefix=unknown
22678 hardcode_into_libs=no
22679
22680 # when you set need_version to no, make sure it does not cause -set_version
22681 # flags to be left without arguments
22682 need_version=unknown
22683
22684 case $host_os in
22685 aix3*)
22686   version_type=linux
22687   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22688   shlibpath_var=LIBPATH
22689
22690   # AIX 3 has no versioning support, so we append a major version to the name.
22691   soname_spec='${libname}${release}${shared_ext}$major'
22692   ;;
22693
22694 aix4* | aix5*)
22695   version_type=linux
22696   need_lib_prefix=no
22697   need_version=no
22698   hardcode_into_libs=yes
22699   if test "$host_cpu" = ia64; then
22700     # AIX 5 supports IA64
22701     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22702     shlibpath_var=LD_LIBRARY_PATH
22703   else
22704     # With GCC up to 2.95.x, collect2 would create an import file
22705     # for dependence libraries.  The import file would start with
22706     # the line `#! .'.  This would cause the generated library to
22707     # depend on `.', always an invalid library.  This was fixed in
22708     # development snapshots of GCC prior to 3.0.
22709     case $host_os in
22710       aix4 | aix4.[01] | aix4.[01].*)
22711       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22712            echo ' yes '
22713            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22714         :
22715       else
22716         can_build_shared=no
22717       fi
22718       ;;
22719     esac
22720     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22721     # soname into executable. Probably we can add versioning support to
22722     # collect2, so additional links can be useful in future.
22723     if test "$aix_use_runtimelinking" = yes; then
22724       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22725       # instead of lib<name>.a to let people know that these are not
22726       # typical AIX shared libraries.
22727       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22728     else
22729       # We preserve .a as extension for shared libraries through AIX4.2
22730       # and later when we are not doing run time linking.
22731       library_names_spec='${libname}${release}.a $libname.a'
22732       soname_spec='${libname}${release}${shared_ext}$major'
22733     fi
22734     shlibpath_var=LIBPATH
22735   fi
22736   ;;
22737
22738 amigaos*)
22739   library_names_spec='$libname.ixlibrary $libname.a'
22740   # Create ${libname}_ixlibrary.a entries in /sys/libs.
22741   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'
22742   ;;
22743
22744 beos*)
22745   library_names_spec='${libname}${shared_ext}'
22746   dynamic_linker="$host_os ld.so"
22747   shlibpath_var=LIBRARY_PATH
22748   ;;
22749
22750 bsdi[45]*)
22751   version_type=linux
22752   need_version=no
22753   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22754   soname_spec='${libname}${release}${shared_ext}$major'
22755   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22756   shlibpath_var=LD_LIBRARY_PATH
22757   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22758   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22759   # the default ld.so.conf also contains /usr/contrib/lib and
22760   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22761   # libtool to hard-code these into programs
22762   ;;
22763
22764 cygwin* | mingw* | pw32*)
22765   version_type=windows
22766   shrext_cmds=".dll"
22767   need_version=no
22768   need_lib_prefix=no
22769
22770   case $GCC,$host_os in
22771   yes,cygwin* | yes,mingw* | yes,pw32*)
22772     library_names_spec='$libname.dll.a'
22773     # DLL is installed to $(libdir)/../bin by postinstall_cmds
22774     postinstall_cmds='base_file=`basename \${file}`~
22775       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22776       dldir=$destdir/`dirname \$dlpath`~
22777       test -d \$dldir || mkdir -p \$dldir~
22778       $install_prog $dir/$dlname \$dldir/$dlname~
22779       chmod a+x \$dldir/$dlname'
22780     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22781       dlpath=$dir/\$dldll~
22782        $rm \$dlpath'
22783     shlibpath_overrides_runpath=yes
22784
22785     case $host_os in
22786     cygwin*)
22787       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22788       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22789       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22790       ;;
22791     mingw*)
22792       # MinGW DLLs use traditional 'lib' prefix
22793       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22794       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22795       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22796         # It is most probably a Windows format PATH printed by
22797         # mingw gcc, but we are running on Cygwin. Gcc prints its search
22798         # path with ; separators, and with drive letters. We can handle the
22799         # drive letters (cygwin fileutils understands them), so leave them,
22800         # especially as we might pass files found there to a mingw objdump,
22801         # which wouldn't understand a cygwinified path. Ahh.
22802         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22803       else
22804         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22805       fi
22806       ;;
22807     pw32*)
22808       # pw32 DLLs use 'pw' prefix rather than 'lib'
22809       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22810       ;;
22811     esac
22812     ;;
22813
22814   *)
22815     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22816     ;;
22817   esac
22818   dynamic_linker='Win32 ld.exe'
22819   # FIXME: first we should search . and the directory the executable is in
22820   shlibpath_var=PATH
22821   ;;
22822
22823 darwin* | rhapsody*)
22824   dynamic_linker="$host_os dyld"
22825   version_type=darwin
22826   need_lib_prefix=no
22827   need_version=no
22828   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22829   soname_spec='${libname}${release}${major}$shared_ext'
22830   shlibpath_overrides_runpath=yes
22831   shlibpath_var=DYLD_LIBRARY_PATH
22832   shrext_cmds='.dylib'
22833   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22834   if test "$GCC" = yes; then
22835     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"`
22836   else
22837     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22838   fi
22839   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22840   ;;
22841
22842 dgux*)
22843   version_type=linux
22844   need_lib_prefix=no
22845   need_version=no
22846   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22847   soname_spec='${libname}${release}${shared_ext}$major'
22848   shlibpath_var=LD_LIBRARY_PATH
22849   ;;
22850
22851 freebsd1*)
22852   dynamic_linker=no
22853   ;;
22854
22855 kfreebsd*-gnu)
22856   version_type=linux
22857   need_lib_prefix=no
22858   need_version=no
22859   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22860   soname_spec='${libname}${release}${shared_ext}$major'
22861   shlibpath_var=LD_LIBRARY_PATH
22862   shlibpath_overrides_runpath=no
22863   hardcode_into_libs=yes
22864   dynamic_linker='GNU ld.so'
22865   ;;
22866
22867 freebsd* | dragonfly*)
22868   # DragonFly does not have aout.  When/if they implement a new
22869   # versioning mechanism, adjust this.
22870   if test -x /usr/bin/objformat; then
22871     objformat=`/usr/bin/objformat`
22872   else
22873     case $host_os in
22874     freebsd[123]*) objformat=aout ;;
22875     *) objformat=elf ;;
22876     esac
22877   fi
22878   version_type=freebsd-$objformat
22879   case $version_type in
22880     freebsd-elf*)
22881       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22882       need_version=no
22883       need_lib_prefix=no
22884       ;;
22885     freebsd-*)
22886       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22887       need_version=yes
22888       ;;
22889   esac
22890   shlibpath_var=LD_LIBRARY_PATH
22891   case $host_os in
22892   freebsd2*)
22893     shlibpath_overrides_runpath=yes
22894     ;;
22895   freebsd3.[01]* | freebsdelf3.[01]*)
22896     shlibpath_overrides_runpath=yes
22897     hardcode_into_libs=yes
22898     ;;
22899   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22900   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22901     shlibpath_overrides_runpath=no
22902     hardcode_into_libs=yes
22903     ;;
22904   freebsd*) # from 4.6 on
22905     shlibpath_overrides_runpath=yes
22906     hardcode_into_libs=yes
22907     ;;
22908   esac
22909   ;;
22910
22911 gnu*)
22912   version_type=linux
22913   need_lib_prefix=no
22914   need_version=no
22915   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22916   soname_spec='${libname}${release}${shared_ext}$major'
22917   shlibpath_var=LD_LIBRARY_PATH
22918   hardcode_into_libs=yes
22919   ;;
22920
22921 hpux9* | hpux10* | hpux11*)
22922   # Give a soname corresponding to the major version so that dld.sl refuses to
22923   # link against other versions.
22924   version_type=sunos
22925   need_lib_prefix=no
22926   need_version=no
22927   case $host_cpu in
22928   ia64*)
22929     shrext_cmds='.so'
22930     hardcode_into_libs=yes
22931     dynamic_linker="$host_os dld.so"
22932     shlibpath_var=LD_LIBRARY_PATH
22933     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22934     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22935     soname_spec='${libname}${release}${shared_ext}$major'
22936     if test "X$HPUX_IA64_MODE" = X32; then
22937       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22938     else
22939       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22940     fi
22941     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22942     ;;
22943    hppa*64*)
22944      shrext_cmds='.sl'
22945      hardcode_into_libs=yes
22946      dynamic_linker="$host_os dld.sl"
22947      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22948      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22949      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22950      soname_spec='${libname}${release}${shared_ext}$major'
22951      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22952      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22953      ;;
22954    *)
22955     shrext_cmds='.sl'
22956     dynamic_linker="$host_os dld.sl"
22957     shlibpath_var=SHLIB_PATH
22958     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22959     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22960     soname_spec='${libname}${release}${shared_ext}$major'
22961     ;;
22962   esac
22963   # HP-UX runs *really* slowly unless shared libraries are mode 555.
22964   postinstall_cmds='chmod 555 $lib'
22965   ;;
22966
22967 interix3*)
22968   version_type=linux
22969   need_lib_prefix=no
22970   need_version=no
22971   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22972   soname_spec='${libname}${release}${shared_ext}$major'
22973   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22974   shlibpath_var=LD_LIBRARY_PATH
22975   shlibpath_overrides_runpath=no
22976   hardcode_into_libs=yes
22977   ;;
22978
22979 irix5* | irix6* | nonstopux*)
22980   case $host_os in
22981     nonstopux*) version_type=nonstopux ;;
22982     *)
22983         if test "$lt_cv_prog_gnu_ld" = yes; then
22984                 version_type=linux
22985         else
22986                 version_type=irix
22987         fi ;;
22988   esac
22989   need_lib_prefix=no
22990   need_version=no
22991   soname_spec='${libname}${release}${shared_ext}$major'
22992   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22993   case $host_os in
22994   irix5* | nonstopux*)
22995     libsuff= shlibsuff=
22996     ;;
22997   *)
22998     case $LD in # libtool.m4 will add one of these switches to LD
22999     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23000       libsuff= shlibsuff= libmagic=32-bit;;
23001     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23002       libsuff=32 shlibsuff=N32 libmagic=N32;;
23003     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23004       libsuff=64 shlibsuff=64 libmagic=64-bit;;
23005     *) libsuff= shlibsuff= libmagic=never-match;;
23006     esac
23007     ;;
23008   esac
23009   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23010   shlibpath_overrides_runpath=no
23011   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23012   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23013   hardcode_into_libs=yes
23014   ;;
23015
23016 # No shared lib support for Linux oldld, aout, or coff.
23017 linux*oldld* | linux*aout* | linux*coff*)
23018   dynamic_linker=no
23019   ;;
23020
23021 # This must be Linux ELF.
23022 linux*)
23023   version_type=linux
23024   need_lib_prefix=no
23025   need_version=no
23026   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23027   soname_spec='${libname}${release}${shared_ext}$major'
23028   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23029   shlibpath_var=LD_LIBRARY_PATH
23030   shlibpath_overrides_runpath=no
23031   # This implies no fast_install, which is unacceptable.
23032   # Some rework will be needed to allow for fast_install
23033   # before this can be enabled.
23034   hardcode_into_libs=yes
23035
23036   # Append ld.so.conf contents to the search path
23037   if test -f /etc/ld.so.conf; then
23038     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' ' '`
23039     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23040   fi
23041
23042   # We used to test for /lib/ld.so.1 and disable shared libraries on
23043   # powerpc, because MkLinux only supported shared libraries with the
23044   # GNU dynamic linker.  Since this was broken with cross compilers,
23045   # most powerpc-linux boxes support dynamic linking these days and
23046   # people can always --disable-shared, the test was removed, and we
23047   # assume the GNU/Linux dynamic linker is in use.
23048   dynamic_linker='GNU/Linux ld.so'
23049   ;;
23050
23051 knetbsd*-gnu)
23052   version_type=linux
23053   need_lib_prefix=no
23054   need_version=no
23055   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23056   soname_spec='${libname}${release}${shared_ext}$major'
23057   shlibpath_var=LD_LIBRARY_PATH
23058   shlibpath_overrides_runpath=no
23059   hardcode_into_libs=yes
23060   dynamic_linker='GNU ld.so'
23061   ;;
23062
23063 netbsd*)
23064   version_type=sunos
23065   need_lib_prefix=no
23066   need_version=no
23067   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23068     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23069     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23070     dynamic_linker='NetBSD (a.out) ld.so'
23071   else
23072     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23073     soname_spec='${libname}${release}${shared_ext}$major'
23074     dynamic_linker='NetBSD ld.elf_so'
23075   fi
23076   shlibpath_var=LD_LIBRARY_PATH
23077   shlibpath_overrides_runpath=yes
23078   hardcode_into_libs=yes
23079   ;;
23080
23081 newsos6)
23082   version_type=linux
23083   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23084   shlibpath_var=LD_LIBRARY_PATH
23085   shlibpath_overrides_runpath=yes
23086   ;;
23087
23088 nto-qnx*)
23089   version_type=linux
23090   need_lib_prefix=no
23091   need_version=no
23092   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23093   soname_spec='${libname}${release}${shared_ext}$major'
23094   shlibpath_var=LD_LIBRARY_PATH
23095   shlibpath_overrides_runpath=yes
23096   ;;
23097
23098 openbsd*)
23099   version_type=sunos
23100   sys_lib_dlsearch_path_spec="/usr/lib"
23101   need_lib_prefix=no
23102   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23103   case $host_os in
23104     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23105     *)                         need_version=no  ;;
23106   esac
23107   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23108   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23109   shlibpath_var=LD_LIBRARY_PATH
23110   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23111     case $host_os in
23112       openbsd2.[89] | openbsd2.[89].*)
23113         shlibpath_overrides_runpath=no
23114         ;;
23115       *)
23116         shlibpath_overrides_runpath=yes
23117         ;;
23118       esac
23119   else
23120     shlibpath_overrides_runpath=yes
23121   fi
23122   ;;
23123
23124 os2*)
23125   libname_spec='$name'
23126   shrext_cmds=".dll"
23127   need_lib_prefix=no
23128   library_names_spec='$libname${shared_ext} $libname.a'
23129   dynamic_linker='OS/2 ld.exe'
23130   shlibpath_var=LIBPATH
23131   ;;
23132
23133 osf3* | osf4* | osf5*)
23134   version_type=osf
23135   need_lib_prefix=no
23136   need_version=no
23137   soname_spec='${libname}${release}${shared_ext}$major'
23138   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23139   shlibpath_var=LD_LIBRARY_PATH
23140   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23141   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23142   ;;
23143
23144 solaris*)
23145   version_type=linux
23146   need_lib_prefix=no
23147   need_version=no
23148   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23149   soname_spec='${libname}${release}${shared_ext}$major'
23150   shlibpath_var=LD_LIBRARY_PATH
23151   shlibpath_overrides_runpath=yes
23152   hardcode_into_libs=yes
23153   # ldd complains unless libraries are executable
23154   postinstall_cmds='chmod +x $lib'
23155   ;;
23156
23157 sunos4*)
23158   version_type=sunos
23159   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23160   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23161   shlibpath_var=LD_LIBRARY_PATH
23162   shlibpath_overrides_runpath=yes
23163   if test "$with_gnu_ld" = yes; then
23164     need_lib_prefix=no
23165   fi
23166   need_version=yes
23167   ;;
23168
23169 sysv4 | sysv4.3*)
23170   version_type=linux
23171   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23172   soname_spec='${libname}${release}${shared_ext}$major'
23173   shlibpath_var=LD_LIBRARY_PATH
23174   case $host_vendor in
23175     sni)
23176       shlibpath_overrides_runpath=no
23177       need_lib_prefix=no
23178       export_dynamic_flag_spec='${wl}-Blargedynsym'
23179       runpath_var=LD_RUN_PATH
23180       ;;
23181     siemens)
23182       need_lib_prefix=no
23183       ;;
23184     motorola)
23185       need_lib_prefix=no
23186       need_version=no
23187       shlibpath_overrides_runpath=no
23188       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23189       ;;
23190   esac
23191   ;;
23192
23193 sysv4*MP*)
23194   if test -d /usr/nec ;then
23195     version_type=linux
23196     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23197     soname_spec='$libname${shared_ext}.$major'
23198     shlibpath_var=LD_LIBRARY_PATH
23199   fi
23200   ;;
23201
23202 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23203   version_type=freebsd-elf
23204   need_lib_prefix=no
23205   need_version=no
23206   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23207   soname_spec='${libname}${release}${shared_ext}$major'
23208   shlibpath_var=LD_LIBRARY_PATH
23209   hardcode_into_libs=yes
23210   if test "$with_gnu_ld" = yes; then
23211     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23212     shlibpath_overrides_runpath=no
23213   else
23214     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23215     shlibpath_overrides_runpath=yes
23216     case $host_os in
23217       sco3.2v5*)
23218         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23219         ;;
23220     esac
23221   fi
23222   sys_lib_dlsearch_path_spec='/usr/lib'
23223   ;;
23224
23225 uts4*)
23226   version_type=linux
23227   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23228   soname_spec='${libname}${release}${shared_ext}$major'
23229   shlibpath_var=LD_LIBRARY_PATH
23230   ;;
23231
23232 *)
23233   dynamic_linker=no
23234   ;;
23235 esac
23236 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23237 echo "${ECHO_T}$dynamic_linker" >&6; }
23238 test "$dynamic_linker" = no && can_build_shared=no
23239
23240 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23241 if test "$GCC" = yes; then
23242   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23243 fi
23244
23245 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23246 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23247 hardcode_action_F77=
23248 if test -n "$hardcode_libdir_flag_spec_F77" || \
23249    test -n "$runpath_var_F77" || \
23250    test "X$hardcode_automatic_F77" = "Xyes" ; then
23251
23252   # We can hardcode non-existant directories.
23253   if test "$hardcode_direct_F77" != no &&
23254      # If the only mechanism to avoid hardcoding is shlibpath_var, we
23255      # have to relink, otherwise we might link with an installed library
23256      # when we should be linking with a yet-to-be-installed one
23257      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23258      test "$hardcode_minus_L_F77" != no; then
23259     # Linking always hardcodes the temporary library directory.
23260     hardcode_action_F77=relink
23261   else
23262     # We can link without hardcoding, and we can hardcode nonexisting dirs.
23263     hardcode_action_F77=immediate
23264   fi
23265 else
23266   # We cannot hardcode anything, or else we can only hardcode existing
23267   # directories.
23268   hardcode_action_F77=unsupported
23269 fi
23270 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23271 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23272
23273 if test "$hardcode_action_F77" = relink; then
23274   # Fast installation is not supported
23275   enable_fast_install=no
23276 elif test "$shlibpath_overrides_runpath" = yes ||
23277      test "$enable_shared" = no; then
23278   # Fast installation is not necessary
23279   enable_fast_install=needless
23280 fi
23281
23282
23283 # The else clause should only fire when bootstrapping the
23284 # libtool distribution, otherwise you forgot to ship ltmain.sh
23285 # with your package, and you will get complaints that there are
23286 # no rules to generate ltmain.sh.
23287 if test -f "$ltmain"; then
23288   # See if we are running on zsh, and set the options which allow our commands through
23289   # without removal of \ escapes.
23290   if test -n "${ZSH_VERSION+set}" ; then
23291     setopt NO_GLOB_SUBST
23292   fi
23293   # Now quote all the things that may contain metacharacters while being
23294   # careful not to overquote the AC_SUBSTed values.  We take copies of the
23295   # variables and quote the copies for generation of the libtool script.
23296   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23297     SED SHELL STRIP \
23298     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23299     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23300     deplibs_check_method reload_flag reload_cmds need_locks \
23301     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23302     lt_cv_sys_global_symbol_to_c_name_address \
23303     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23304     old_postinstall_cmds old_postuninstall_cmds \
23305     compiler_F77 \
23306     CC_F77 \
23307     LD_F77 \
23308     lt_prog_compiler_wl_F77 \
23309     lt_prog_compiler_pic_F77 \
23310     lt_prog_compiler_static_F77 \
23311     lt_prog_compiler_no_builtin_flag_F77 \
23312     export_dynamic_flag_spec_F77 \
23313     thread_safe_flag_spec_F77 \
23314     whole_archive_flag_spec_F77 \
23315     enable_shared_with_static_runtimes_F77 \
23316     old_archive_cmds_F77 \
23317     old_archive_from_new_cmds_F77 \
23318     predep_objects_F77 \
23319     postdep_objects_F77 \
23320     predeps_F77 \
23321     postdeps_F77 \
23322     compiler_lib_search_path_F77 \
23323     archive_cmds_F77 \
23324     archive_expsym_cmds_F77 \
23325     postinstall_cmds_F77 \
23326     postuninstall_cmds_F77 \
23327     old_archive_from_expsyms_cmds_F77 \
23328     allow_undefined_flag_F77 \
23329     no_undefined_flag_F77 \
23330     export_symbols_cmds_F77 \
23331     hardcode_libdir_flag_spec_F77 \
23332     hardcode_libdir_flag_spec_ld_F77 \
23333     hardcode_libdir_separator_F77 \
23334     hardcode_automatic_F77 \
23335     module_cmds_F77 \
23336     module_expsym_cmds_F77 \
23337     lt_cv_prog_compiler_c_o_F77 \
23338     exclude_expsyms_F77 \
23339     include_expsyms_F77; do
23340
23341     case $var in
23342     old_archive_cmds_F77 | \
23343     old_archive_from_new_cmds_F77 | \
23344     archive_cmds_F77 | \
23345     archive_expsym_cmds_F77 | \
23346     module_cmds_F77 | \
23347     module_expsym_cmds_F77 | \
23348     old_archive_from_expsyms_cmds_F77 | \
23349     export_symbols_cmds_F77 | \
23350     extract_expsyms_cmds | reload_cmds | finish_cmds | \
23351     postinstall_cmds | postuninstall_cmds | \
23352     old_postinstall_cmds | old_postuninstall_cmds | \
23353     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23354       # Double-quote double-evaled strings.
23355       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23356       ;;
23357     *)
23358       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23359       ;;
23360     esac
23361   done
23362
23363   case $lt_echo in
23364   *'\$0 --fallback-echo"')
23365     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23366     ;;
23367   esac
23368
23369 cfgfile="$ofile"
23370
23371   cat <<__EOF__ >> "$cfgfile"
23372 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23373
23374 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23375
23376 # Shell to use when invoking shell scripts.
23377 SHELL=$lt_SHELL
23378
23379 # Whether or not to build shared libraries.
23380 build_libtool_libs=$enable_shared
23381
23382 # Whether or not to build static libraries.
23383 build_old_libs=$enable_static
23384
23385 # Whether or not to add -lc for building shared libraries.
23386 build_libtool_need_lc=$archive_cmds_need_lc_F77
23387
23388 # Whether or not to disallow shared libs when runtime libs are static
23389 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23390
23391 # Whether or not to optimize for fast installation.
23392 fast_install=$enable_fast_install
23393
23394 # The host system.
23395 host_alias=$host_alias
23396 host=$host
23397 host_os=$host_os
23398
23399 # The build system.
23400 build_alias=$build_alias
23401 build=$build
23402 build_os=$build_os
23403
23404 # An echo program that does not interpret backslashes.
23405 echo=$lt_echo
23406
23407 # The archiver.
23408 AR=$lt_AR
23409 AR_FLAGS=$lt_AR_FLAGS
23410
23411 # A C compiler.
23412 LTCC=$lt_LTCC
23413
23414 # LTCC compiler flags.
23415 LTCFLAGS=$lt_LTCFLAGS
23416
23417 # A language-specific compiler.
23418 CC=$lt_compiler_F77
23419
23420 # Is the compiler the GNU C compiler?
23421 with_gcc=$GCC_F77
23422
23423 # An ERE matcher.
23424 EGREP=$lt_EGREP
23425
23426 # The linker used to build libraries.
23427 LD=$lt_LD_F77
23428
23429 # Whether we need hard or soft links.
23430 LN_S=$lt_LN_S
23431
23432 # A BSD-compatible nm program.
23433 NM=$lt_NM
23434
23435 # A symbol stripping program
23436 STRIP=$lt_STRIP
23437
23438 # Used to examine libraries when file_magic_cmd begins "file"
23439 MAGIC_CMD=$MAGIC_CMD
23440
23441 # Used on cygwin: DLL creation program.
23442 DLLTOOL="$DLLTOOL"
23443
23444 # Used on cygwin: object dumper.
23445 OBJDUMP="$OBJDUMP"
23446
23447 # Used on cygwin: assembler.
23448 AS="$AS"
23449
23450 # The name of the directory that contains temporary libtool files.
23451 objdir=$objdir
23452
23453 # How to create reloadable object files.
23454 reload_flag=$lt_reload_flag
23455 reload_cmds=$lt_reload_cmds
23456
23457 # How to pass a linker flag through the compiler.
23458 wl=$lt_lt_prog_compiler_wl_F77
23459
23460 # Object file suffix (normally "o").
23461 objext="$ac_objext"
23462
23463 # Old archive suffix (normally "a").
23464 libext="$libext"
23465
23466 # Shared library suffix (normally ".so").
23467 shrext_cmds='$shrext_cmds'
23468
23469 # Executable file suffix (normally "").
23470 exeext="$exeext"
23471
23472 # Additional compiler flags for building library objects.
23473 pic_flag=$lt_lt_prog_compiler_pic_F77
23474 pic_mode=$pic_mode
23475
23476 # What is the maximum length of a command?
23477 max_cmd_len=$lt_cv_sys_max_cmd_len
23478
23479 # Does compiler simultaneously support -c and -o options?
23480 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23481
23482 # Must we lock files when doing compilation?
23483 need_locks=$lt_need_locks
23484
23485 # Do we need the lib prefix for modules?
23486 need_lib_prefix=$need_lib_prefix
23487
23488 # Do we need a version for libraries?
23489 need_version=$need_version
23490
23491 # Whether dlopen is supported.
23492 dlopen_support=$enable_dlopen
23493
23494 # Whether dlopen of programs is supported.
23495 dlopen_self=$enable_dlopen_self
23496
23497 # Whether dlopen of statically linked programs is supported.
23498 dlopen_self_static=$enable_dlopen_self_static
23499
23500 # Compiler flag to prevent dynamic linking.
23501 link_static_flag=$lt_lt_prog_compiler_static_F77
23502
23503 # Compiler flag to turn off builtin functions.
23504 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23505
23506 # Compiler flag to allow reflexive dlopens.
23507 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23508
23509 # Compiler flag to generate shared objects directly from archives.
23510 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23511
23512 # Compiler flag to generate thread-safe objects.
23513 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23514
23515 # Library versioning type.
23516 version_type=$version_type
23517
23518 # Format of library name prefix.
23519 libname_spec=$lt_libname_spec
23520
23521 # List of archive names.  First name is the real one, the rest are links.
23522 # The last name is the one that the linker finds with -lNAME.
23523 library_names_spec=$lt_library_names_spec
23524
23525 # The coded name of the library, if different from the real name.
23526 soname_spec=$lt_soname_spec
23527
23528 # Commands used to build and install an old-style archive.
23529 RANLIB=$lt_RANLIB
23530 old_archive_cmds=$lt_old_archive_cmds_F77
23531 old_postinstall_cmds=$lt_old_postinstall_cmds
23532 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23533
23534 # Create an old-style archive from a shared archive.
23535 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23536
23537 # Create a temporary old-style archive to link instead of a shared archive.
23538 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23539
23540 # Commands used to build and install a shared archive.
23541 archive_cmds=$lt_archive_cmds_F77
23542 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23543 postinstall_cmds=$lt_postinstall_cmds
23544 postuninstall_cmds=$lt_postuninstall_cmds
23545
23546 # Commands used to build a loadable module (assumed same as above if empty)
23547 module_cmds=$lt_module_cmds_F77
23548 module_expsym_cmds=$lt_module_expsym_cmds_F77
23549
23550 # Commands to strip libraries.
23551 old_striplib=$lt_old_striplib
23552 striplib=$lt_striplib
23553
23554 # Dependencies to place before the objects being linked to create a
23555 # shared library.
23556 predep_objects=$lt_predep_objects_F77
23557
23558 # Dependencies to place after the objects being linked to create a
23559 # shared library.
23560 postdep_objects=$lt_postdep_objects_F77
23561
23562 # Dependencies to place before the objects being linked to create a
23563 # shared library.
23564 predeps=$lt_predeps_F77
23565
23566 # Dependencies to place after the objects being linked to create a
23567 # shared library.
23568 postdeps=$lt_postdeps_F77
23569
23570 # The library search path used internally by the compiler when linking
23571 # a shared library.
23572 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23573
23574 # Method to check whether dependent libraries are shared objects.
23575 deplibs_check_method=$lt_deplibs_check_method
23576
23577 # Command to use when deplibs_check_method == file_magic.
23578 file_magic_cmd=$lt_file_magic_cmd
23579
23580 # Flag that allows shared libraries with undefined symbols to be built.
23581 allow_undefined_flag=$lt_allow_undefined_flag_F77
23582
23583 # Flag that forces no undefined symbols.
23584 no_undefined_flag=$lt_no_undefined_flag_F77
23585
23586 # Commands used to finish a libtool library installation in a directory.
23587 finish_cmds=$lt_finish_cmds
23588
23589 # Same as above, but a single script fragment to be evaled but not shown.
23590 finish_eval=$lt_finish_eval
23591
23592 # Take the output of nm and produce a listing of raw symbols and C names.
23593 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23594
23595 # Transform the output of nm in a proper C declaration
23596 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23597
23598 # Transform the output of nm in a C name address pair
23599 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23600
23601 # This is the shared library runtime path variable.
23602 runpath_var=$runpath_var
23603
23604 # This is the shared library path variable.
23605 shlibpath_var=$shlibpath_var
23606
23607 # Is shlibpath searched before the hard-coded library search path?
23608 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23609
23610 # How to hardcode a shared library path into an executable.
23611 hardcode_action=$hardcode_action_F77
23612
23613 # Whether we should hardcode library paths into libraries.
23614 hardcode_into_libs=$hardcode_into_libs
23615
23616 # Flag to hardcode \$libdir into a binary during linking.
23617 # This must work even if \$libdir does not exist.
23618 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23619
23620 # If ld is used when linking, flag to hardcode \$libdir into
23621 # a binary during linking. This must work even if \$libdir does
23622 # not exist.
23623 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23624
23625 # Whether we need a single -rpath flag with a separated argument.
23626 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23627
23628 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23629 # resulting binary.
23630 hardcode_direct=$hardcode_direct_F77
23631
23632 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23633 # resulting binary.
23634 hardcode_minus_L=$hardcode_minus_L_F77
23635
23636 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23637 # the resulting binary.
23638 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23639
23640 # Set to yes if building a shared library automatically hardcodes DIR into the library
23641 # and all subsequent libraries and executables linked against it.
23642 hardcode_automatic=$hardcode_automatic_F77
23643
23644 # Variables whose values should be saved in libtool wrapper scripts and
23645 # restored at relink time.
23646 variables_saved_for_relink="$variables_saved_for_relink"
23647
23648 # Whether libtool must link a program against all its dependency libraries.
23649 link_all_deplibs=$link_all_deplibs_F77
23650
23651 # Compile-time system search path for libraries
23652 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23653
23654 # Run-time system search path for libraries
23655 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23656
23657 # Fix the shell variable \$srcfile for the compiler.
23658 fix_srcfile_path="$fix_srcfile_path_F77"
23659
23660 # Set to yes if exported symbols are required.
23661 always_export_symbols=$always_export_symbols_F77
23662
23663 # The commands to list exported symbols.
23664 export_symbols_cmds=$lt_export_symbols_cmds_F77
23665
23666 # The commands to extract the exported symbol list from a shared archive.
23667 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23668
23669 # Symbols that should not be listed in the preloaded symbols.
23670 exclude_expsyms=$lt_exclude_expsyms_F77
23671
23672 # Symbols that must always be exported.
23673 include_expsyms=$lt_include_expsyms_F77
23674
23675 # ### END LIBTOOL TAG CONFIG: $tagname
23676
23677 __EOF__
23678
23679
23680 else
23681   # If there is no Makefile yet, we rely on a make rule to execute
23682   # `config.status --recheck' to rerun these tests and create the
23683   # libtool script then.
23684   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23685   if test -f "$ltmain_in"; then
23686     test -f Makefile && make "$ltmain"
23687   fi
23688 fi
23689
23690
23691 ac_ext=c
23692 ac_cpp='$CPP $CPPFLAGS'
23693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23696
23697 CC="$lt_save_CC"
23698
23699         else
23700           tagname=""
23701         fi
23702         ;;
23703
23704       GCJ)
23705         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23706           ac_ext=c
23707 ac_cpp='$CPP $CPPFLAGS'
23708 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23709 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23710 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23711
23712
23713 # Source file extension for Java test sources.
23714 ac_ext=java
23715
23716 # Object file extension for compiled Java test sources.
23717 objext=o
23718 objext_GCJ=$objext
23719
23720 # Code to be used in simple compile tests
23721 lt_simple_compile_test_code="class foo {}\n"
23722
23723 # Code to be used in simple link tests
23724 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23725
23726 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23727
23728 # If no C compiler was specified, use CC.
23729 LTCC=${LTCC-"$CC"}
23730
23731 # If no C compiler flags were specified, use CFLAGS.
23732 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23733
23734 # Allow CC to be a program name with arguments.
23735 compiler=$CC
23736
23737
23738 # save warnings/boilerplate of simple test code
23739 ac_outfile=conftest.$ac_objext
23740 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23741 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23742 _lt_compiler_boilerplate=`cat conftest.err`
23743 $rm conftest*
23744
23745 ac_outfile=conftest.$ac_objext
23746 printf "$lt_simple_link_test_code" >conftest.$ac_ext
23747 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23748 _lt_linker_boilerplate=`cat conftest.err`
23749 $rm conftest*
23750
23751
23752 # Allow CC to be a program name with arguments.
23753 lt_save_CC="$CC"
23754 CC=${GCJ-"gcj"}
23755 compiler=$CC
23756 compiler_GCJ=$CC
23757 for cc_temp in $compiler""; do
23758   case $cc_temp in
23759     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23760     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23761     \-*) ;;
23762     *) break;;
23763   esac
23764 done
23765 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23766
23767
23768 # GCJ did not exist at the time GCC didn't implicitly link libc in.
23769 archive_cmds_need_lc_GCJ=no
23770
23771 old_archive_cmds_GCJ=$old_archive_cmds
23772
23773
23774 lt_prog_compiler_no_builtin_flag_GCJ=
23775
23776 if test "$GCC" = yes; then
23777   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23778
23779
23780 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23781 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23782 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23783   echo $ECHO_N "(cached) $ECHO_C" >&6
23784 else
23785   lt_cv_prog_compiler_rtti_exceptions=no
23786   ac_outfile=conftest.$ac_objext
23787    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23788    lt_compiler_flag="-fno-rtti -fno-exceptions"
23789    # Insert the option either (1) after the last *FLAGS variable, or
23790    # (2) before a word containing "conftest.", or (3) at the end.
23791    # Note that $ac_compile itself does not contain backslashes and begins
23792    # with a dollar sign (not a hyphen), so the echo should work correctly.
23793    # The option is referenced via a variable to avoid confusing sed.
23794    lt_compile=`echo "$ac_compile" | $SED \
23795    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23796    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23797    -e 's:$: $lt_compiler_flag:'`
23798    (eval echo "\"\$as_me:23798: $lt_compile\"" >&5)
23799    (eval "$lt_compile" 2>conftest.err)
23800    ac_status=$?
23801    cat conftest.err >&5
23802    echo "$as_me:23802: \$? = $ac_status" >&5
23803    if (exit $ac_status) && test -s "$ac_outfile"; then
23804      # The compiler can only warn and ignore the option if not recognized
23805      # So say no if there are warnings other than the usual output.
23806      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23807      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23808      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23809        lt_cv_prog_compiler_rtti_exceptions=yes
23810      fi
23811    fi
23812    $rm conftest*
23813
23814 fi
23815 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23816 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
23817
23818 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23819     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23820 else
23821     :
23822 fi
23823
23824 fi
23825
23826 lt_prog_compiler_wl_GCJ=
23827 lt_prog_compiler_pic_GCJ=
23828 lt_prog_compiler_static_GCJ=
23829
23830 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23831 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
23832
23833   if test "$GCC" = yes; then
23834     lt_prog_compiler_wl_GCJ='-Wl,'
23835     lt_prog_compiler_static_GCJ='-static'
23836
23837     case $host_os in
23838       aix*)
23839       # All AIX code is PIC.
23840       if test "$host_cpu" = ia64; then
23841         # AIX 5 now supports IA64 processor
23842         lt_prog_compiler_static_GCJ='-Bstatic'
23843       fi
23844       ;;
23845
23846     amigaos*)
23847       # FIXME: we need at least 68020 code to build shared libraries, but
23848       # adding the `-m68020' flag to GCC prevents building anything better,
23849       # like `-m68040'.
23850       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23851       ;;
23852
23853     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23854       # PIC is the default for these OSes.
23855       ;;
23856
23857     mingw* | pw32* | os2*)
23858       # This hack is so that the source file can tell whether it is being
23859       # built for inclusion in a dll (and should export symbols for example).
23860       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23861       ;;
23862
23863     darwin* | rhapsody*)
23864       # PIC is the default on this platform
23865       # Common symbols not allowed in MH_DYLIB files
23866       lt_prog_compiler_pic_GCJ='-fno-common'
23867       ;;
23868
23869     interix3*)
23870       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23871       # Instead, we relocate shared libraries at runtime.
23872       ;;
23873
23874     msdosdjgpp*)
23875       # Just because we use GCC doesn't mean we suddenly get shared libraries
23876       # on systems that don't support them.
23877       lt_prog_compiler_can_build_shared_GCJ=no
23878       enable_shared=no
23879       ;;
23880
23881     sysv4*MP*)
23882       if test -d /usr/nec; then
23883         lt_prog_compiler_pic_GCJ=-Kconform_pic
23884       fi
23885       ;;
23886
23887     hpux*)
23888       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23889       # not for PA HP-UX.
23890       case $host_cpu in
23891       hppa*64*|ia64*)
23892         # +Z the default
23893         ;;
23894       *)
23895         lt_prog_compiler_pic_GCJ='-fPIC'
23896         ;;
23897       esac
23898       ;;
23899
23900     *)
23901       lt_prog_compiler_pic_GCJ='-fPIC'
23902       ;;
23903     esac
23904   else
23905     # PORTME Check for flag to pass linker flags through the system compiler.
23906     case $host_os in
23907     aix*)
23908       lt_prog_compiler_wl_GCJ='-Wl,'
23909       if test "$host_cpu" = ia64; then
23910         # AIX 5 now supports IA64 processor
23911         lt_prog_compiler_static_GCJ='-Bstatic'
23912       else
23913         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23914       fi
23915       ;;
23916       darwin*)
23917         # PIC is the default on this platform
23918         # Common symbols not allowed in MH_DYLIB files
23919        case $cc_basename in
23920          xlc*)
23921          lt_prog_compiler_pic_GCJ='-qnocommon'
23922          lt_prog_compiler_wl_GCJ='-Wl,'
23923          ;;
23924        esac
23925        ;;
23926
23927     mingw* | pw32* | os2*)
23928       # This hack is so that the source file can tell whether it is being
23929       # built for inclusion in a dll (and should export symbols for example).
23930       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23931       ;;
23932
23933     hpux9* | hpux10* | hpux11*)
23934       lt_prog_compiler_wl_GCJ='-Wl,'
23935       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23936       # not for PA HP-UX.
23937       case $host_cpu in
23938       hppa*64*|ia64*)
23939         # +Z the default
23940         ;;
23941       *)
23942         lt_prog_compiler_pic_GCJ='+Z'
23943         ;;
23944       esac
23945       # Is there a better lt_prog_compiler_static that works with the bundled CC?
23946       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23947       ;;
23948
23949     irix5* | irix6* | nonstopux*)
23950       lt_prog_compiler_wl_GCJ='-Wl,'
23951       # PIC (with -KPIC) is the default.
23952       lt_prog_compiler_static_GCJ='-non_shared'
23953       ;;
23954
23955     newsos6)
23956       lt_prog_compiler_pic_GCJ='-KPIC'
23957       lt_prog_compiler_static_GCJ='-Bstatic'
23958       ;;
23959
23960     linux*)
23961       case $cc_basename in
23962       icc* | ecc*)
23963         lt_prog_compiler_wl_GCJ='-Wl,'
23964         lt_prog_compiler_pic_GCJ='-KPIC'
23965         lt_prog_compiler_static_GCJ='-static'
23966         ;;
23967       pgcc* | pgf77* | pgf90* | pgf95*)
23968         # Portland Group compilers (*not* the Pentium gcc compiler,
23969         # which looks to be a dead project)
23970         lt_prog_compiler_wl_GCJ='-Wl,'
23971         lt_prog_compiler_pic_GCJ='-fpic'
23972         lt_prog_compiler_static_GCJ='-Bstatic'
23973         ;;
23974       ccc*)
23975         lt_prog_compiler_wl_GCJ='-Wl,'
23976         # All Alpha code is PIC.
23977         lt_prog_compiler_static_GCJ='-non_shared'
23978         ;;
23979       esac
23980       ;;
23981
23982     osf3* | osf4* | osf5*)
23983       lt_prog_compiler_wl_GCJ='-Wl,'
23984       # All OSF/1 code is PIC.
23985       lt_prog_compiler_static_GCJ='-non_shared'
23986       ;;
23987
23988     solaris*)
23989       lt_prog_compiler_pic_GCJ='-KPIC'
23990       lt_prog_compiler_static_GCJ='-Bstatic'
23991       case $cc_basename in
23992       f77* | f90* | f95*)
23993         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23994       *)
23995         lt_prog_compiler_wl_GCJ='-Wl,';;
23996       esac
23997       ;;
23998
23999     sunos4*)
24000       lt_prog_compiler_wl_GCJ='-Qoption ld '
24001       lt_prog_compiler_pic_GCJ='-PIC'
24002       lt_prog_compiler_static_GCJ='-Bstatic'
24003       ;;
24004
24005     sysv4 | sysv4.2uw2* | sysv4.3*)
24006       lt_prog_compiler_wl_GCJ='-Wl,'
24007       lt_prog_compiler_pic_GCJ='-KPIC'
24008       lt_prog_compiler_static_GCJ='-Bstatic'
24009       ;;
24010
24011     sysv4*MP*)
24012       if test -d /usr/nec ;then
24013         lt_prog_compiler_pic_GCJ='-Kconform_pic'
24014         lt_prog_compiler_static_GCJ='-Bstatic'
24015       fi
24016       ;;
24017
24018     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24019       lt_prog_compiler_wl_GCJ='-Wl,'
24020       lt_prog_compiler_pic_GCJ='-KPIC'
24021       lt_prog_compiler_static_GCJ='-Bstatic'
24022       ;;
24023
24024     unicos*)
24025       lt_prog_compiler_wl_GCJ='-Wl,'
24026       lt_prog_compiler_can_build_shared_GCJ=no
24027       ;;
24028
24029     uts4*)
24030       lt_prog_compiler_pic_GCJ='-pic'
24031       lt_prog_compiler_static_GCJ='-Bstatic'
24032       ;;
24033
24034     *)
24035       lt_prog_compiler_can_build_shared_GCJ=no
24036       ;;
24037     esac
24038   fi
24039
24040 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24041 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
24042
24043 #
24044 # Check to make sure the PIC flag actually works.
24045 #
24046 if test -n "$lt_prog_compiler_pic_GCJ"; then
24047
24048 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24049 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
24050 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24051   echo $ECHO_N "(cached) $ECHO_C" >&6
24052 else
24053   lt_prog_compiler_pic_works_GCJ=no
24054   ac_outfile=conftest.$ac_objext
24055    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24056    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24057    # Insert the option either (1) after the last *FLAGS variable, or
24058    # (2) before a word containing "conftest.", or (3) at the end.
24059    # Note that $ac_compile itself does not contain backslashes and begins
24060    # with a dollar sign (not a hyphen), so the echo should work correctly.
24061    # The option is referenced via a variable to avoid confusing sed.
24062    lt_compile=`echo "$ac_compile" | $SED \
24063    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24064    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24065    -e 's:$: $lt_compiler_flag:'`
24066    (eval echo "\"\$as_me:24066: $lt_compile\"" >&5)
24067    (eval "$lt_compile" 2>conftest.err)
24068    ac_status=$?
24069    cat conftest.err >&5
24070    echo "$as_me:24070: \$? = $ac_status" >&5
24071    if (exit $ac_status) && test -s "$ac_outfile"; then
24072      # The compiler can only warn and ignore the option if not recognized
24073      # So say no if there are warnings other than the usual output.
24074      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24075      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24076      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24077        lt_prog_compiler_pic_works_GCJ=yes
24078      fi
24079    fi
24080    $rm conftest*
24081
24082 fi
24083 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24084 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24085
24086 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24087     case $lt_prog_compiler_pic_GCJ in
24088      "" | " "*) ;;
24089      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24090      esac
24091 else
24092     lt_prog_compiler_pic_GCJ=
24093      lt_prog_compiler_can_build_shared_GCJ=no
24094 fi
24095
24096 fi
24097 case $host_os in
24098   # For platforms which do not support PIC, -DPIC is meaningless:
24099   *djgpp*)
24100     lt_prog_compiler_pic_GCJ=
24101     ;;
24102   *)
24103     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24104     ;;
24105 esac
24106
24107 #
24108 # Check to make sure the static flag actually works.
24109 #
24110 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24111 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24112 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24113 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24114   echo $ECHO_N "(cached) $ECHO_C" >&6
24115 else
24116   lt_prog_compiler_static_works_GCJ=no
24117    save_LDFLAGS="$LDFLAGS"
24118    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24119    printf "$lt_simple_link_test_code" > conftest.$ac_ext
24120    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24121      # The linker can only warn and ignore the option if not recognized
24122      # So say no if there are warnings
24123      if test -s conftest.err; then
24124        # Append any errors to the config.log.
24125        cat conftest.err 1>&5
24126        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24127        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24128        if diff conftest.exp conftest.er2 >/dev/null; then
24129          lt_prog_compiler_static_works_GCJ=yes
24130        fi
24131      else
24132        lt_prog_compiler_static_works_GCJ=yes
24133      fi
24134    fi
24135    $rm conftest*
24136    LDFLAGS="$save_LDFLAGS"
24137
24138 fi
24139 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24140 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24141
24142 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24143     :
24144 else
24145     lt_prog_compiler_static_GCJ=
24146 fi
24147
24148
24149 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24150 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24151 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24152   echo $ECHO_N "(cached) $ECHO_C" >&6
24153 else
24154   lt_cv_prog_compiler_c_o_GCJ=no
24155    $rm -r conftest 2>/dev/null
24156    mkdir conftest
24157    cd conftest
24158    mkdir out
24159    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24160
24161    lt_compiler_flag="-o out/conftest2.$ac_objext"
24162    # Insert the option either (1) after the last *FLAGS variable, or
24163    # (2) before a word containing "conftest.", or (3) at the end.
24164    # Note that $ac_compile itself does not contain backslashes and begins
24165    # with a dollar sign (not a hyphen), so the echo should work correctly.
24166    lt_compile=`echo "$ac_compile" | $SED \
24167    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24168    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24169    -e 's:$: $lt_compiler_flag:'`
24170    (eval echo "\"\$as_me:24170: $lt_compile\"" >&5)
24171    (eval "$lt_compile" 2>out/conftest.err)
24172    ac_status=$?
24173    cat out/conftest.err >&5
24174    echo "$as_me:24174: \$? = $ac_status" >&5
24175    if (exit $ac_status) && test -s out/conftest2.$ac_objext
24176    then
24177      # The compiler can only warn and ignore the option if not recognized
24178      # So say no if there are warnings
24179      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24180      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24181      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24182        lt_cv_prog_compiler_c_o_GCJ=yes
24183      fi
24184    fi
24185    chmod u+w . 2>&5
24186    $rm conftest*
24187    # SGI C++ compiler will create directory out/ii_files/ for
24188    # template instantiation
24189    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24190    $rm out/* && rmdir out
24191    cd ..
24192    rmdir conftest
24193    $rm conftest*
24194
24195 fi
24196 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24197 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24198
24199
24200 hard_links="nottested"
24201 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24202   # do not overwrite the value of need_locks provided by the user
24203   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24204 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24205   hard_links=yes
24206   $rm conftest*
24207   ln conftest.a conftest.b 2>/dev/null && hard_links=no
24208   touch conftest.a
24209   ln conftest.a conftest.b 2>&5 || hard_links=no
24210   ln conftest.a conftest.b 2>/dev/null && hard_links=no
24211   { echo "$as_me:$LINENO: result: $hard_links" >&5
24212 echo "${ECHO_T}$hard_links" >&6; }
24213   if test "$hard_links" = no; then
24214     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24215 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24216     need_locks=warn
24217   fi
24218 else
24219   need_locks=no
24220 fi
24221
24222 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24223 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24224
24225   runpath_var=
24226   allow_undefined_flag_GCJ=
24227   enable_shared_with_static_runtimes_GCJ=no
24228   archive_cmds_GCJ=
24229   archive_expsym_cmds_GCJ=
24230   old_archive_From_new_cmds_GCJ=
24231   old_archive_from_expsyms_cmds_GCJ=
24232   export_dynamic_flag_spec_GCJ=
24233   whole_archive_flag_spec_GCJ=
24234   thread_safe_flag_spec_GCJ=
24235   hardcode_libdir_flag_spec_GCJ=
24236   hardcode_libdir_flag_spec_ld_GCJ=
24237   hardcode_libdir_separator_GCJ=
24238   hardcode_direct_GCJ=no
24239   hardcode_minus_L_GCJ=no
24240   hardcode_shlibpath_var_GCJ=unsupported
24241   link_all_deplibs_GCJ=unknown
24242   hardcode_automatic_GCJ=no
24243   module_cmds_GCJ=
24244   module_expsym_cmds_GCJ=
24245   always_export_symbols_GCJ=no
24246   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24247   # include_expsyms should be a list of space-separated symbols to be *always*
24248   # included in the symbol list
24249   include_expsyms_GCJ=
24250   # exclude_expsyms can be an extended regexp of symbols to exclude
24251   # it will be wrapped by ` (' and `)$', so one must not match beginning or
24252   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24253   # as well as any symbol that contains `d'.
24254   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24255   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24256   # platforms (ab)use it in PIC code, but their linkers get confused if
24257   # the symbol is explicitly referenced.  Since portable code cannot
24258   # rely on this symbol name, it's probably fine to never include it in
24259   # preloaded symbol tables.
24260   extract_expsyms_cmds=
24261   # Just being paranoid about ensuring that cc_basename is set.
24262   for cc_temp in $compiler""; do
24263   case $cc_temp in
24264     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24265     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24266     \-*) ;;
24267     *) break;;
24268   esac
24269 done
24270 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24271
24272   case $host_os in
24273   cygwin* | mingw* | pw32*)
24274     # FIXME: the MSVC++ port hasn't been tested in a loooong time
24275     # When not using gcc, we currently assume that we are using
24276     # Microsoft Visual C++.
24277     if test "$GCC" != yes; then
24278       with_gnu_ld=no
24279     fi
24280     ;;
24281   interix*)
24282     # we just hope/assume this is gcc and not c89 (= MSVC++)
24283     with_gnu_ld=yes
24284     ;;
24285   openbsd*)
24286     with_gnu_ld=no
24287     ;;
24288   esac
24289
24290   ld_shlibs_GCJ=yes
24291   if test "$with_gnu_ld" = yes; then
24292     # If archive_cmds runs LD, not CC, wlarc should be empty
24293     wlarc='${wl}'
24294
24295     # Set some defaults for GNU ld with shared library support. These
24296     # are reset later if shared libraries are not supported. Putting them
24297     # here allows them to be overridden if necessary.
24298     runpath_var=LD_RUN_PATH
24299     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24300     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24301     # ancient GNU ld didn't support --whole-archive et. al.
24302     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24303         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24304       else
24305         whole_archive_flag_spec_GCJ=
24306     fi
24307     supports_anon_versioning=no
24308     case `$LD -v 2>/dev/null` in
24309       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24310       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24311       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24312       *\ 2.11.*) ;; # other 2.11 versions
24313       *) supports_anon_versioning=yes ;;
24314     esac
24315
24316     # See if GNU ld supports shared libraries.
24317     case $host_os in
24318     aix3* | aix4* | aix5*)
24319       # On AIX/PPC, the GNU linker is very broken
24320       if test "$host_cpu" != ia64; then
24321         ld_shlibs_GCJ=no
24322         cat <<EOF 1>&2
24323
24324 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24325 *** to be unable to reliably create shared libraries on AIX.
24326 *** Therefore, libtool is disabling shared libraries support.  If you
24327 *** really care for shared libraries, you may want to modify your PATH
24328 *** so that a non-GNU linker is found, and then restart.
24329
24330 EOF
24331       fi
24332       ;;
24333
24334     amigaos*)
24335       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)'
24336       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24337       hardcode_minus_L_GCJ=yes
24338
24339       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24340       # that the semantics of dynamic libraries on AmigaOS, at least up
24341       # to version 4, is to share data among multiple programs linked
24342       # with the same dynamic library.  Since this doesn't match the
24343       # behavior of shared libraries on other platforms, we can't use
24344       # them.
24345       ld_shlibs_GCJ=no
24346       ;;
24347
24348     beos*)
24349       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24350         allow_undefined_flag_GCJ=unsupported
24351         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24352         # support --undefined.  This deserves some investigation.  FIXME
24353         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24354       else
24355         ld_shlibs_GCJ=no
24356       fi
24357       ;;
24358
24359     cygwin* | mingw* | pw32*)
24360       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24361       # as there is no search path for DLLs.
24362       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24363       allow_undefined_flag_GCJ=unsupported
24364       always_export_symbols_GCJ=no
24365       enable_shared_with_static_runtimes_GCJ=yes
24366       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24367
24368       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24369         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24370         # If the export-symbols file already is a .def file (1st line
24371         # is EXPORTS), use it as is; otherwise, prepend...
24372         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24373           cp $export_symbols $output_objdir/$soname.def;
24374         else
24375           echo EXPORTS > $output_objdir/$soname.def;
24376           cat $export_symbols >> $output_objdir/$soname.def;
24377         fi~
24378         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24379       else
24380         ld_shlibs_GCJ=no
24381       fi
24382       ;;
24383
24384     interix3*)
24385       hardcode_direct_GCJ=no
24386       hardcode_shlibpath_var_GCJ=no
24387       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24388       export_dynamic_flag_spec_GCJ='${wl}-E'
24389       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24390       # Instead, shared libraries are loaded at an image base (0x10000000 by
24391       # default) and relocated if they conflict, which is a slow very memory
24392       # consuming and fragmenting process.  To avoid this, we pick a random,
24393       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24394       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
24395       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'
24396       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'
24397       ;;
24398
24399     linux*)
24400       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24401         tmp_addflag=
24402         case $cc_basename,$host_cpu in
24403         pgcc*)                          # Portland Group C compiler
24404           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'
24405           tmp_addflag=' $pic_flag'
24406           ;;
24407         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
24408           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'
24409           tmp_addflag=' $pic_flag -Mnomain' ;;
24410         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
24411           tmp_addflag=' -i_dynamic' ;;
24412         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
24413           tmp_addflag=' -i_dynamic -nofor_main' ;;
24414         ifc* | ifort*)                  # Intel Fortran compiler
24415           tmp_addflag=' -nofor_main' ;;
24416         esac
24417         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24418
24419         if test $supports_anon_versioning = yes; then
24420           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24421   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24422   $echo "local: *; };" >> $output_objdir/$libname.ver~
24423           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24424         fi
24425       else
24426         ld_shlibs_GCJ=no
24427       fi
24428       ;;
24429
24430     netbsd*)
24431       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24432         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24433         wlarc=
24434       else
24435         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24436         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24437       fi
24438       ;;
24439
24440     solaris*)
24441       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24442         ld_shlibs_GCJ=no
24443         cat <<EOF 1>&2
24444
24445 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24446 *** create shared libraries on Solaris systems.  Therefore, libtool
24447 *** is disabling shared libraries support.  We urge you to upgrade GNU
24448 *** binutils to release 2.9.1 or newer.  Another option is to modify
24449 *** your PATH or compiler configuration so that the native linker is
24450 *** used, and then restart.
24451
24452 EOF
24453       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24454         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24455         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24456       else
24457         ld_shlibs_GCJ=no
24458       fi
24459       ;;
24460
24461     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24462       case `$LD -v 2>&1` in
24463         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24464         ld_shlibs_GCJ=no
24465         cat <<_LT_EOF 1>&2
24466
24467 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24468 *** reliably create shared libraries on SCO systems.  Therefore, libtool
24469 *** is disabling shared libraries support.  We urge you to upgrade GNU
24470 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
24471 *** your PATH or compiler configuration so that the native linker is
24472 *** used, and then restart.
24473
24474 _LT_EOF
24475         ;;
24476         *)
24477           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24478             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24479             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24480             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24481           else
24482             ld_shlibs_GCJ=no
24483           fi
24484         ;;
24485       esac
24486       ;;
24487
24488     sunos4*)
24489       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24490       wlarc=
24491       hardcode_direct_GCJ=yes
24492       hardcode_shlibpath_var_GCJ=no
24493       ;;
24494
24495     *)
24496       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24497         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24498         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24499       else
24500         ld_shlibs_GCJ=no
24501       fi
24502       ;;
24503     esac
24504
24505     if test "$ld_shlibs_GCJ" = no; then
24506       runpath_var=
24507       hardcode_libdir_flag_spec_GCJ=
24508       export_dynamic_flag_spec_GCJ=
24509       whole_archive_flag_spec_GCJ=
24510     fi
24511   else
24512     # PORTME fill in a description of your system's linker (not GNU ld)
24513     case $host_os in
24514     aix3*)
24515       allow_undefined_flag_GCJ=unsupported
24516       always_export_symbols_GCJ=yes
24517       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'
24518       # Note: this linker hardcodes the directories in LIBPATH if there
24519       # are no directories specified by -L.
24520       hardcode_minus_L_GCJ=yes
24521       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24522         # Neither direct hardcoding nor static linking is supported with a
24523         # broken collect2.
24524         hardcode_direct_GCJ=unsupported
24525       fi
24526       ;;
24527
24528     aix4* | aix5*)
24529       if test "$host_cpu" = ia64; then
24530         # On IA64, the linker does run time linking by default, so we don't
24531         # have to do anything special.
24532         aix_use_runtimelinking=no
24533         exp_sym_flag='-Bexport'
24534         no_entry_flag=""
24535       else
24536         # If we're using GNU nm, then we don't want the "-C" option.
24537         # -C means demangle to AIX nm, but means don't demangle with GNU nm
24538         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24539           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'
24540         else
24541           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'
24542         fi
24543         aix_use_runtimelinking=no
24544
24545         # Test if we are trying to use run time linking or normal
24546         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24547         # need to do runtime linking.
24548         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24549           for ld_flag in $LDFLAGS; do
24550           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24551             aix_use_runtimelinking=yes
24552             break
24553           fi
24554           done
24555           ;;
24556         esac
24557
24558         exp_sym_flag='-bexport'
24559         no_entry_flag='-bnoentry'
24560       fi
24561
24562       # When large executables or shared objects are built, AIX ld can
24563       # have problems creating the table of contents.  If linking a library
24564       # or program results in "error TOC overflow" add -mminimal-toc to
24565       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
24566       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24567
24568       archive_cmds_GCJ=''
24569       hardcode_direct_GCJ=yes
24570       hardcode_libdir_separator_GCJ=':'
24571       link_all_deplibs_GCJ=yes
24572
24573       if test "$GCC" = yes; then
24574         case $host_os in aix4.[012]|aix4.[012].*)
24575         # We only want to do this on AIX 4.2 and lower, the check
24576         # below for broken collect2 doesn't work under 4.3+
24577           collect2name=`${CC} -print-prog-name=collect2`
24578           if test -f "$collect2name" && \
24579            strings "$collect2name" | grep resolve_lib_name >/dev/null
24580           then
24581           # We have reworked collect2
24582           hardcode_direct_GCJ=yes
24583           else
24584           # We have old collect2
24585           hardcode_direct_GCJ=unsupported
24586           # It fails to find uninstalled libraries when the uninstalled
24587           # path is not listed in the libpath.  Setting hardcode_minus_L
24588           # to unsupported forces relinking
24589           hardcode_minus_L_GCJ=yes
24590           hardcode_libdir_flag_spec_GCJ='-L$libdir'
24591           hardcode_libdir_separator_GCJ=
24592           fi
24593           ;;
24594         esac
24595         shared_flag='-shared'
24596         if test "$aix_use_runtimelinking" = yes; then
24597           shared_flag="$shared_flag "'${wl}-G'
24598         fi
24599       else
24600         # not using gcc
24601         if test "$host_cpu" = ia64; then
24602         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24603         # chokes on -Wl,-G. The following line is correct:
24604           shared_flag='-G'
24605         else
24606           if test "$aix_use_runtimelinking" = yes; then
24607             shared_flag='${wl}-G'
24608           else
24609             shared_flag='${wl}-bM:SRE'
24610           fi
24611         fi
24612       fi
24613
24614       # It seems that -bexpall does not export symbols beginning with
24615       # underscore (_), so it is better to generate a list of symbols to export.
24616       always_export_symbols_GCJ=yes
24617       if test "$aix_use_runtimelinking" = yes; then
24618         # Warning - without using the other runtime loading flags (-brtl),
24619         # -berok will link without error, but may produce a broken library.
24620         allow_undefined_flag_GCJ='-berok'
24621        # Determine the default libpath from the value encoded in an empty executable.
24622        cat >conftest.$ac_ext <<_ACEOF
24623 /* confdefs.h.  */
24624 _ACEOF
24625 cat confdefs.h >>conftest.$ac_ext
24626 cat >>conftest.$ac_ext <<_ACEOF
24627 /* end confdefs.h.  */
24628
24629 int
24630 main ()
24631 {
24632
24633   ;
24634   return 0;
24635 }
24636 _ACEOF
24637 rm -f conftest.$ac_objext conftest$ac_exeext
24638 if { (ac_try="$ac_link"
24639 case "(($ac_try" in
24640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24641   *) ac_try_echo=$ac_try;;
24642 esac
24643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24644   (eval "$ac_link") 2>conftest.er1
24645   ac_status=$?
24646   grep -v '^ *+' conftest.er1 >conftest.err
24647   rm -f conftest.er1
24648   cat conftest.err >&5
24649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24650   (exit $ac_status); } &&
24651          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24652   { (case "(($ac_try" in
24653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24654   *) ac_try_echo=$ac_try;;
24655 esac
24656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24657   (eval "$ac_try") 2>&5
24658   ac_status=$?
24659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24660   (exit $ac_status); }; } &&
24661          { ac_try='test -s conftest$ac_exeext'
24662   { (case "(($ac_try" in
24663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24664   *) ac_try_echo=$ac_try;;
24665 esac
24666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24667   (eval "$ac_try") 2>&5
24668   ac_status=$?
24669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24670   (exit $ac_status); }; }; then
24671
24672 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24673 }'`
24674 # Check for a 64-bit object if we didn't find anything.
24675 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; }
24676 }'`; fi
24677 else
24678   echo "$as_me: failed program was:" >&5
24679 sed 's/^/| /' conftest.$ac_ext >&5
24680
24681
24682 fi
24683
24684 rm -f core conftest.err conftest.$ac_objext \
24685       conftest$ac_exeext conftest.$ac_ext
24686 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24687
24688        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24689         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"
24690        else
24691         if test "$host_cpu" = ia64; then
24692           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24693           allow_undefined_flag_GCJ="-z nodefs"
24694           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"
24695         else
24696          # Determine the default libpath from the value encoded in an empty executable.
24697          cat >conftest.$ac_ext <<_ACEOF
24698 /* confdefs.h.  */
24699 _ACEOF
24700 cat confdefs.h >>conftest.$ac_ext
24701 cat >>conftest.$ac_ext <<_ACEOF
24702 /* end confdefs.h.  */
24703
24704 int
24705 main ()
24706 {
24707
24708   ;
24709   return 0;
24710 }
24711 _ACEOF
24712 rm -f conftest.$ac_objext conftest$ac_exeext
24713 if { (ac_try="$ac_link"
24714 case "(($ac_try" in
24715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24716   *) ac_try_echo=$ac_try;;
24717 esac
24718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24719   (eval "$ac_link") 2>conftest.er1
24720   ac_status=$?
24721   grep -v '^ *+' conftest.er1 >conftest.err
24722   rm -f conftest.er1
24723   cat conftest.err >&5
24724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24725   (exit $ac_status); } &&
24726          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24727   { (case "(($ac_try" in
24728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24729   *) ac_try_echo=$ac_try;;
24730 esac
24731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24732   (eval "$ac_try") 2>&5
24733   ac_status=$?
24734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24735   (exit $ac_status); }; } &&
24736          { ac_try='test -s conftest$ac_exeext'
24737   { (case "(($ac_try" in
24738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24739   *) ac_try_echo=$ac_try;;
24740 esac
24741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24742   (eval "$ac_try") 2>&5
24743   ac_status=$?
24744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24745   (exit $ac_status); }; }; then
24746
24747 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24748 }'`
24749 # Check for a 64-bit object if we didn't find anything.
24750 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; }
24751 }'`; fi
24752 else
24753   echo "$as_me: failed program was:" >&5
24754 sed 's/^/| /' conftest.$ac_ext >&5
24755
24756
24757 fi
24758
24759 rm -f core conftest.err conftest.$ac_objext \
24760       conftest$ac_exeext conftest.$ac_ext
24761 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24762
24763          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24764           # Warning - without using the other run time loading flags,
24765           # -berok will link without error, but may produce a broken library.
24766           no_undefined_flag_GCJ=' ${wl}-bernotok'
24767           allow_undefined_flag_GCJ=' ${wl}-berok'
24768           # Exported symbols can be pulled into shared objects from archives
24769           whole_archive_flag_spec_GCJ='$convenience'
24770           archive_cmds_need_lc_GCJ=yes
24771           # This is similar to how AIX traditionally builds its shared libraries.
24772           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'
24773         fi
24774       fi
24775       ;;
24776
24777     amigaos*)
24778       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)'
24779       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24780       hardcode_minus_L_GCJ=yes
24781       # see comment about different semantics on the GNU ld section
24782       ld_shlibs_GCJ=no
24783       ;;
24784
24785     bsdi[45]*)
24786       export_dynamic_flag_spec_GCJ=-rdynamic
24787       ;;
24788
24789     cygwin* | mingw* | pw32*)
24790       # When not using gcc, we currently assume that we are using
24791       # Microsoft Visual C++.
24792       # hardcode_libdir_flag_spec is actually meaningless, as there is
24793       # no search path for DLLs.
24794       hardcode_libdir_flag_spec_GCJ=' '
24795       allow_undefined_flag_GCJ=unsupported
24796       # Tell ltmain to make .lib files, not .a files.
24797       libext=lib
24798       # Tell ltmain to make .dll files, not .so files.
24799       shrext_cmds=".dll"
24800       # FIXME: Setting linknames here is a bad hack.
24801       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24802       # The linker will automatically build a .lib file if we build a DLL.
24803       old_archive_From_new_cmds_GCJ='true'
24804       # FIXME: Should let the user specify the lib program.
24805       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
24806       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
24807       enable_shared_with_static_runtimes_GCJ=yes
24808       ;;
24809
24810     darwin* | rhapsody*)
24811       case $host_os in
24812         rhapsody* | darwin1.[012])
24813          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24814          ;;
24815        *) # Darwin 1.3 on
24816          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24817            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24818          else
24819            case ${MACOSX_DEPLOYMENT_TARGET} in
24820              10.[012])
24821                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24822                ;;
24823              10.*)
24824                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24825                ;;
24826            esac
24827          fi
24828          ;;
24829       esac
24830       archive_cmds_need_lc_GCJ=no
24831       hardcode_direct_GCJ=no
24832       hardcode_automatic_GCJ=yes
24833       hardcode_shlibpath_var_GCJ=unsupported
24834       whole_archive_flag_spec_GCJ=''
24835       link_all_deplibs_GCJ=yes
24836     if test "$GCC" = yes ; then
24837         output_verbose_link_cmd='echo'
24838         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24839       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24840       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24841       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}'
24842       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}'
24843     else
24844       case $cc_basename in
24845         xlc*)
24846          output_verbose_link_cmd='echo'
24847          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24848          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24849           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24850          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}'
24851           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}'
24852           ;;
24853        *)
24854          ld_shlibs_GCJ=no
24855           ;;
24856       esac
24857     fi
24858       ;;
24859
24860     dgux*)
24861       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24862       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24863       hardcode_shlibpath_var_GCJ=no
24864       ;;
24865
24866     freebsd1*)
24867       ld_shlibs_GCJ=no
24868       ;;
24869
24870     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24871     # support.  Future versions do this automatically, but an explicit c++rt0.o
24872     # does not break anything, and helps significantly (at the cost of a little
24873     # extra space).
24874     freebsd2.2*)
24875       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24876       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24877       hardcode_direct_GCJ=yes
24878       hardcode_shlibpath_var_GCJ=no
24879       ;;
24880
24881     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24882     freebsd2*)
24883       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24884       hardcode_direct_GCJ=yes
24885       hardcode_minus_L_GCJ=yes
24886       hardcode_shlibpath_var_GCJ=no
24887       ;;
24888
24889     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24890     freebsd* | kfreebsd*-gnu | dragonfly*)
24891       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24892       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24893       hardcode_direct_GCJ=yes
24894       hardcode_shlibpath_var_GCJ=no
24895       ;;
24896
24897     hpux9*)
24898       if test "$GCC" = yes; then
24899         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'
24900       else
24901         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'
24902       fi
24903       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24904       hardcode_libdir_separator_GCJ=:
24905       hardcode_direct_GCJ=yes
24906
24907       # hardcode_minus_L: Not really in the search PATH,
24908       # but as the default location of the library.
24909       hardcode_minus_L_GCJ=yes
24910       export_dynamic_flag_spec_GCJ='${wl}-E'
24911       ;;
24912
24913     hpux10*)
24914       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24915         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24916       else
24917         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24918       fi
24919       if test "$with_gnu_ld" = no; then
24920         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24921         hardcode_libdir_separator_GCJ=:
24922
24923         hardcode_direct_GCJ=yes
24924         export_dynamic_flag_spec_GCJ='${wl}-E'
24925
24926         # hardcode_minus_L: Not really in the search PATH,
24927         # but as the default location of the library.
24928         hardcode_minus_L_GCJ=yes
24929       fi
24930       ;;
24931
24932     hpux11*)
24933       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24934         case $host_cpu in
24935         hppa*64*)
24936           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24937           ;;
24938         ia64*)
24939           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24940           ;;
24941         *)
24942           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24943           ;;
24944         esac
24945       else
24946         case $host_cpu in
24947         hppa*64*)
24948           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24949           ;;
24950         ia64*)
24951           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24952           ;;
24953         *)
24954           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24955           ;;
24956         esac
24957       fi
24958       if test "$with_gnu_ld" = no; then
24959         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24960         hardcode_libdir_separator_GCJ=:
24961
24962         case $host_cpu in
24963         hppa*64*|ia64*)
24964           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24965           hardcode_direct_GCJ=no
24966           hardcode_shlibpath_var_GCJ=no
24967           ;;
24968         *)
24969           hardcode_direct_GCJ=yes
24970           export_dynamic_flag_spec_GCJ='${wl}-E'
24971
24972           # hardcode_minus_L: Not really in the search PATH,
24973           # but as the default location of the library.
24974           hardcode_minus_L_GCJ=yes
24975           ;;
24976         esac
24977       fi
24978       ;;
24979
24980     irix5* | irix6* | nonstopux*)
24981       if test "$GCC" = yes; then
24982         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'
24983       else
24984         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'
24985         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24986       fi
24987       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24988       hardcode_libdir_separator_GCJ=:
24989       link_all_deplibs_GCJ=yes
24990       ;;
24991
24992     netbsd*)
24993       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24994         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
24995       else
24996         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
24997       fi
24998       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24999       hardcode_direct_GCJ=yes
25000       hardcode_shlibpath_var_GCJ=no
25001       ;;
25002
25003     newsos6)
25004       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25005       hardcode_direct_GCJ=yes
25006       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25007       hardcode_libdir_separator_GCJ=:
25008       hardcode_shlibpath_var_GCJ=no
25009       ;;
25010
25011     openbsd*)
25012       hardcode_direct_GCJ=yes
25013       hardcode_shlibpath_var_GCJ=no
25014       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25015         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25016         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
25017         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25018         export_dynamic_flag_spec_GCJ='${wl}-E'
25019       else
25020        case $host_os in
25021          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25022            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25023            hardcode_libdir_flag_spec_GCJ='-R$libdir'
25024            ;;
25025          *)
25026            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25027            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25028            ;;
25029        esac
25030       fi
25031       ;;
25032
25033     os2*)
25034       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25035       hardcode_minus_L_GCJ=yes
25036       allow_undefined_flag_GCJ=unsupported
25037       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'
25038       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25039       ;;
25040
25041     osf3*)
25042       if test "$GCC" = yes; then
25043         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25044         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'
25045       else
25046         allow_undefined_flag_GCJ=' -expect_unresolved \*'
25047         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'
25048       fi
25049       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25050       hardcode_libdir_separator_GCJ=:
25051       ;;
25052
25053     osf4* | osf5*)      # as osf3* with the addition of -msym flag
25054       if test "$GCC" = yes; then
25055         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25056         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'
25057         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25058       else
25059         allow_undefined_flag_GCJ=' -expect_unresolved \*'
25060         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'
25061         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~
25062         $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'
25063
25064         # Both c and cxx compiler support -rpath directly
25065         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25066       fi
25067       hardcode_libdir_separator_GCJ=:
25068       ;;
25069
25070     solaris*)
25071       no_undefined_flag_GCJ=' -z text'
25072       if test "$GCC" = yes; then
25073         wlarc='${wl}'
25074         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25075         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25076           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25077       else
25078         wlarc=''
25079         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25080         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25081         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25082       fi
25083       hardcode_libdir_flag_spec_GCJ='-R$libdir'
25084       hardcode_shlibpath_var_GCJ=no
25085       case $host_os in
25086       solaris2.[0-5] | solaris2.[0-5].*) ;;
25087       *)
25088         # The compiler driver will combine linker options so we
25089         # cannot just pass the convience library names through
25090         # without $wl, iff we do not link with $LD.
25091         # Luckily, gcc supports the same syntax we need for Sun Studio.
25092         # Supported since Solaris 2.6 (maybe 2.5.1?)
25093         case $wlarc in
25094         '')
25095           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25096         *)
25097           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' ;;
25098         esac ;;
25099       esac
25100       link_all_deplibs_GCJ=yes
25101       ;;
25102
25103     sunos4*)
25104       if test "x$host_vendor" = xsequent; then
25105         # Use $CC to link under sequent, because it throws in some extra .o
25106         # files that make .init and .fini sections work.
25107         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25108       else
25109         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25110       fi
25111       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25112       hardcode_direct_GCJ=yes
25113       hardcode_minus_L_GCJ=yes
25114       hardcode_shlibpath_var_GCJ=no
25115       ;;
25116
25117     sysv4)
25118       case $host_vendor in
25119         sni)
25120           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25121           hardcode_direct_GCJ=yes # is this really true???
25122         ;;
25123         siemens)
25124           ## LD is ld it makes a PLAMLIB
25125           ## CC just makes a GrossModule.
25126           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25127           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25128           hardcode_direct_GCJ=no
25129         ;;
25130         motorola)
25131           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25132           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25133         ;;
25134       esac
25135       runpath_var='LD_RUN_PATH'
25136       hardcode_shlibpath_var_GCJ=no
25137       ;;
25138
25139     sysv4.3*)
25140       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25141       hardcode_shlibpath_var_GCJ=no
25142       export_dynamic_flag_spec_GCJ='-Bexport'
25143       ;;
25144
25145     sysv4*MP*)
25146       if test -d /usr/nec; then
25147         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25148         hardcode_shlibpath_var_GCJ=no
25149         runpath_var=LD_RUN_PATH
25150         hardcode_runpath_var=yes
25151         ld_shlibs_GCJ=yes
25152       fi
25153       ;;
25154
25155     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25156       no_undefined_flag_GCJ='${wl}-z,text'
25157       archive_cmds_need_lc_GCJ=no
25158       hardcode_shlibpath_var_GCJ=no
25159       runpath_var='LD_RUN_PATH'
25160
25161       if test "$GCC" = yes; then
25162         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25163         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25164       else
25165         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25166         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25167       fi
25168       ;;
25169
25170     sysv5* | sco3.2v5* | sco5v6*)
25171       # Note: We can NOT use -z defs as we might desire, because we do not
25172       # link with -lc, and that would cause any symbols used from libc to
25173       # always be unresolved, which means just about no library would
25174       # ever link correctly.  If we're not using GNU ld we use -z text
25175       # though, which does catch some bad symbols but isn't as heavy-handed
25176       # as -z defs.
25177       no_undefined_flag_GCJ='${wl}-z,text'
25178       allow_undefined_flag_GCJ='${wl}-z,nodefs'
25179       archive_cmds_need_lc_GCJ=no
25180       hardcode_shlibpath_var_GCJ=no
25181       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25182       hardcode_libdir_separator_GCJ=':'
25183       link_all_deplibs_GCJ=yes
25184       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25185       runpath_var='LD_RUN_PATH'
25186
25187       if test "$GCC" = yes; then
25188         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25189         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25190       else
25191         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25192         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25193       fi
25194       ;;
25195
25196     uts4*)
25197       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25198       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25199       hardcode_shlibpath_var_GCJ=no
25200       ;;
25201
25202     *)
25203       ld_shlibs_GCJ=no
25204       ;;
25205     esac
25206   fi
25207
25208 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25209 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25210 test "$ld_shlibs_GCJ" = no && can_build_shared=no
25211
25212 #
25213 # Do we need to explicitly link libc?
25214 #
25215 case "x$archive_cmds_need_lc_GCJ" in
25216 x|xyes)
25217   # Assume -lc should be added
25218   archive_cmds_need_lc_GCJ=yes
25219
25220   if test "$enable_shared" = yes && test "$GCC" = yes; then
25221     case $archive_cmds_GCJ in
25222     *'~'*)
25223       # FIXME: we may have to deal with multi-command sequences.
25224       ;;
25225     '$CC '*)
25226       # Test whether the compiler implicitly links with -lc since on some
25227       # systems, -lgcc has to come before -lc. If gcc already passes -lc
25228       # to ld, don't add -lc before -lgcc.
25229       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25230 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25231       $rm conftest*
25232       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25233
25234       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25235   (eval $ac_compile) 2>&5
25236   ac_status=$?
25237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25238   (exit $ac_status); } 2>conftest.err; then
25239         soname=conftest
25240         lib=conftest
25241         libobjs=conftest.$ac_objext
25242         deplibs=
25243         wl=$lt_prog_compiler_wl_GCJ
25244         pic_flag=$lt_prog_compiler_pic_GCJ
25245         compiler_flags=-v
25246         linker_flags=-v
25247         verstring=
25248         output_objdir=.
25249         libname=conftest
25250         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25251         allow_undefined_flag_GCJ=
25252         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25253   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25254   ac_status=$?
25255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25256   (exit $ac_status); }
25257         then
25258           archive_cmds_need_lc_GCJ=no
25259         else
25260           archive_cmds_need_lc_GCJ=yes
25261         fi
25262         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25263       else
25264         cat conftest.err 1>&5
25265       fi
25266       $rm conftest*
25267       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25268 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25269       ;;
25270     esac
25271   fi
25272   ;;
25273 esac
25274
25275 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25276 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25277 library_names_spec=
25278 libname_spec='lib$name'
25279 soname_spec=
25280 shrext_cmds=".so"
25281 postinstall_cmds=
25282 postuninstall_cmds=
25283 finish_cmds=
25284 finish_eval=
25285 shlibpath_var=
25286 shlibpath_overrides_runpath=unknown
25287 version_type=none
25288 dynamic_linker="$host_os ld.so"
25289 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25290 if test "$GCC" = yes; then
25291   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25292   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25293     # if the path contains ";" then we assume it to be the separator
25294     # otherwise default to the standard path separator (i.e. ":") - it is
25295     # assumed that no part of a normal pathname contains ";" but that should
25296     # okay in the real world where ";" in dirpaths is itself problematic.
25297     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25298   else
25299     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25300   fi
25301 else
25302   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25303 fi
25304 need_lib_prefix=unknown
25305 hardcode_into_libs=no
25306
25307 # when you set need_version to no, make sure it does not cause -set_version
25308 # flags to be left without arguments
25309 need_version=unknown
25310
25311 case $host_os in
25312 aix3*)
25313   version_type=linux
25314   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25315   shlibpath_var=LIBPATH
25316
25317   # AIX 3 has no versioning support, so we append a major version to the name.
25318   soname_spec='${libname}${release}${shared_ext}$major'
25319   ;;
25320
25321 aix4* | aix5*)
25322   version_type=linux
25323   need_lib_prefix=no
25324   need_version=no
25325   hardcode_into_libs=yes
25326   if test "$host_cpu" = ia64; then
25327     # AIX 5 supports IA64
25328     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25329     shlibpath_var=LD_LIBRARY_PATH
25330   else
25331     # With GCC up to 2.95.x, collect2 would create an import file
25332     # for dependence libraries.  The import file would start with
25333     # the line `#! .'.  This would cause the generated library to
25334     # depend on `.', always an invalid library.  This was fixed in
25335     # development snapshots of GCC prior to 3.0.
25336     case $host_os in
25337       aix4 | aix4.[01] | aix4.[01].*)
25338       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25339            echo ' yes '
25340            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25341         :
25342       else
25343         can_build_shared=no
25344       fi
25345       ;;
25346     esac
25347     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25348     # soname into executable. Probably we can add versioning support to
25349     # collect2, so additional links can be useful in future.
25350     if test "$aix_use_runtimelinking" = yes; then
25351       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25352       # instead of lib<name>.a to let people know that these are not
25353       # typical AIX shared libraries.
25354       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25355     else
25356       # We preserve .a as extension for shared libraries through AIX4.2
25357       # and later when we are not doing run time linking.
25358       library_names_spec='${libname}${release}.a $libname.a'
25359       soname_spec='${libname}${release}${shared_ext}$major'
25360     fi
25361     shlibpath_var=LIBPATH
25362   fi
25363   ;;
25364
25365 amigaos*)
25366   library_names_spec='$libname.ixlibrary $libname.a'
25367   # Create ${libname}_ixlibrary.a entries in /sys/libs.
25368   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'
25369   ;;
25370
25371 beos*)
25372   library_names_spec='${libname}${shared_ext}'
25373   dynamic_linker="$host_os ld.so"
25374   shlibpath_var=LIBRARY_PATH
25375   ;;
25376
25377 bsdi[45]*)
25378   version_type=linux
25379   need_version=no
25380   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25381   soname_spec='${libname}${release}${shared_ext}$major'
25382   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25383   shlibpath_var=LD_LIBRARY_PATH
25384   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25385   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25386   # the default ld.so.conf also contains /usr/contrib/lib and
25387   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25388   # libtool to hard-code these into programs
25389   ;;
25390
25391 cygwin* | mingw* | pw32*)
25392   version_type=windows
25393   shrext_cmds=".dll"
25394   need_version=no
25395   need_lib_prefix=no
25396
25397   case $GCC,$host_os in
25398   yes,cygwin* | yes,mingw* | yes,pw32*)
25399     library_names_spec='$libname.dll.a'
25400     # DLL is installed to $(libdir)/../bin by postinstall_cmds
25401     postinstall_cmds='base_file=`basename \${file}`~
25402       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25403       dldir=$destdir/`dirname \$dlpath`~
25404       test -d \$dldir || mkdir -p \$dldir~
25405       $install_prog $dir/$dlname \$dldir/$dlname~
25406       chmod a+x \$dldir/$dlname'
25407     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25408       dlpath=$dir/\$dldll~
25409        $rm \$dlpath'
25410     shlibpath_overrides_runpath=yes
25411
25412     case $host_os in
25413     cygwin*)
25414       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25415       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25416       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25417       ;;
25418     mingw*)
25419       # MinGW DLLs use traditional 'lib' prefix
25420       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25421       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25422       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25423         # It is most probably a Windows format PATH printed by
25424         # mingw gcc, but we are running on Cygwin. Gcc prints its search
25425         # path with ; separators, and with drive letters. We can handle the
25426         # drive letters (cygwin fileutils understands them), so leave them,
25427         # especially as we might pass files found there to a mingw objdump,
25428         # which wouldn't understand a cygwinified path. Ahh.
25429         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25430       else
25431         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25432       fi
25433       ;;
25434     pw32*)
25435       # pw32 DLLs use 'pw' prefix rather than 'lib'
25436       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25437       ;;
25438     esac
25439     ;;
25440
25441   *)
25442     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25443     ;;
25444   esac
25445   dynamic_linker='Win32 ld.exe'
25446   # FIXME: first we should search . and the directory the executable is in
25447   shlibpath_var=PATH
25448   ;;
25449
25450 darwin* | rhapsody*)
25451   dynamic_linker="$host_os dyld"
25452   version_type=darwin
25453   need_lib_prefix=no
25454   need_version=no
25455   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25456   soname_spec='${libname}${release}${major}$shared_ext'
25457   shlibpath_overrides_runpath=yes
25458   shlibpath_var=DYLD_LIBRARY_PATH
25459   shrext_cmds='.dylib'
25460   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25461   if test "$GCC" = yes; then
25462     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"`
25463   else
25464     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25465   fi
25466   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25467   ;;
25468
25469 dgux*)
25470   version_type=linux
25471   need_lib_prefix=no
25472   need_version=no
25473   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25474   soname_spec='${libname}${release}${shared_ext}$major'
25475   shlibpath_var=LD_LIBRARY_PATH
25476   ;;
25477
25478 freebsd1*)
25479   dynamic_linker=no
25480   ;;
25481
25482 kfreebsd*-gnu)
25483   version_type=linux
25484   need_lib_prefix=no
25485   need_version=no
25486   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25487   soname_spec='${libname}${release}${shared_ext}$major'
25488   shlibpath_var=LD_LIBRARY_PATH
25489   shlibpath_overrides_runpath=no
25490   hardcode_into_libs=yes
25491   dynamic_linker='GNU ld.so'
25492   ;;
25493
25494 freebsd* | dragonfly*)
25495   # DragonFly does not have aout.  When/if they implement a new
25496   # versioning mechanism, adjust this.
25497   if test -x /usr/bin/objformat; then
25498     objformat=`/usr/bin/objformat`
25499   else
25500     case $host_os in
25501     freebsd[123]*) objformat=aout ;;
25502     *) objformat=elf ;;
25503     esac
25504   fi
25505   version_type=freebsd-$objformat
25506   case $version_type in
25507     freebsd-elf*)
25508       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25509       need_version=no
25510       need_lib_prefix=no
25511       ;;
25512     freebsd-*)
25513       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25514       need_version=yes
25515       ;;
25516   esac
25517   shlibpath_var=LD_LIBRARY_PATH
25518   case $host_os in
25519   freebsd2*)
25520     shlibpath_overrides_runpath=yes
25521     ;;
25522   freebsd3.[01]* | freebsdelf3.[01]*)
25523     shlibpath_overrides_runpath=yes
25524     hardcode_into_libs=yes
25525     ;;
25526   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25527   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25528     shlibpath_overrides_runpath=no
25529     hardcode_into_libs=yes
25530     ;;
25531   freebsd*) # from 4.6 on
25532     shlibpath_overrides_runpath=yes
25533     hardcode_into_libs=yes
25534     ;;
25535   esac
25536   ;;
25537
25538 gnu*)
25539   version_type=linux
25540   need_lib_prefix=no
25541   need_version=no
25542   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25543   soname_spec='${libname}${release}${shared_ext}$major'
25544   shlibpath_var=LD_LIBRARY_PATH
25545   hardcode_into_libs=yes
25546   ;;
25547
25548 hpux9* | hpux10* | hpux11*)
25549   # Give a soname corresponding to the major version so that dld.sl refuses to
25550   # link against other versions.
25551   version_type=sunos
25552   need_lib_prefix=no
25553   need_version=no
25554   case $host_cpu in
25555   ia64*)
25556     shrext_cmds='.so'
25557     hardcode_into_libs=yes
25558     dynamic_linker="$host_os dld.so"
25559     shlibpath_var=LD_LIBRARY_PATH
25560     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25561     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25562     soname_spec='${libname}${release}${shared_ext}$major'
25563     if test "X$HPUX_IA64_MODE" = X32; then
25564       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25565     else
25566       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25567     fi
25568     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25569     ;;
25570    hppa*64*)
25571      shrext_cmds='.sl'
25572      hardcode_into_libs=yes
25573      dynamic_linker="$host_os dld.sl"
25574      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25575      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25576      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25577      soname_spec='${libname}${release}${shared_ext}$major'
25578      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25579      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25580      ;;
25581    *)
25582     shrext_cmds='.sl'
25583     dynamic_linker="$host_os dld.sl"
25584     shlibpath_var=SHLIB_PATH
25585     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25586     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25587     soname_spec='${libname}${release}${shared_ext}$major'
25588     ;;
25589   esac
25590   # HP-UX runs *really* slowly unless shared libraries are mode 555.
25591   postinstall_cmds='chmod 555 $lib'
25592   ;;
25593
25594 interix3*)
25595   version_type=linux
25596   need_lib_prefix=no
25597   need_version=no
25598   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25599   soname_spec='${libname}${release}${shared_ext}$major'
25600   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25601   shlibpath_var=LD_LIBRARY_PATH
25602   shlibpath_overrides_runpath=no
25603   hardcode_into_libs=yes
25604   ;;
25605
25606 irix5* | irix6* | nonstopux*)
25607   case $host_os in
25608     nonstopux*) version_type=nonstopux ;;
25609     *)
25610         if test "$lt_cv_prog_gnu_ld" = yes; then
25611                 version_type=linux
25612         else
25613                 version_type=irix
25614         fi ;;
25615   esac
25616   need_lib_prefix=no
25617   need_version=no
25618   soname_spec='${libname}${release}${shared_ext}$major'
25619   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25620   case $host_os in
25621   irix5* | nonstopux*)
25622     libsuff= shlibsuff=
25623     ;;
25624   *)
25625     case $LD in # libtool.m4 will add one of these switches to LD
25626     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25627       libsuff= shlibsuff= libmagic=32-bit;;
25628     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25629       libsuff=32 shlibsuff=N32 libmagic=N32;;
25630     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25631       libsuff=64 shlibsuff=64 libmagic=64-bit;;
25632     *) libsuff= shlibsuff= libmagic=never-match;;
25633     esac
25634     ;;
25635   esac
25636   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25637   shlibpath_overrides_runpath=no
25638   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25639   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25640   hardcode_into_libs=yes
25641   ;;
25642
25643 # No shared lib support for Linux oldld, aout, or coff.
25644 linux*oldld* | linux*aout* | linux*coff*)
25645   dynamic_linker=no
25646   ;;
25647
25648 # This must be Linux ELF.
25649 linux*)
25650   version_type=linux
25651   need_lib_prefix=no
25652   need_version=no
25653   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25654   soname_spec='${libname}${release}${shared_ext}$major'
25655   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25656   shlibpath_var=LD_LIBRARY_PATH
25657   shlibpath_overrides_runpath=no
25658   # This implies no fast_install, which is unacceptable.
25659   # Some rework will be needed to allow for fast_install
25660   # before this can be enabled.
25661   hardcode_into_libs=yes
25662
25663   # Append ld.so.conf contents to the search path
25664   if test -f /etc/ld.so.conf; then
25665     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' ' '`
25666     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25667   fi
25668
25669   # We used to test for /lib/ld.so.1 and disable shared libraries on
25670   # powerpc, because MkLinux only supported shared libraries with the
25671   # GNU dynamic linker.  Since this was broken with cross compilers,
25672   # most powerpc-linux boxes support dynamic linking these days and
25673   # people can always --disable-shared, the test was removed, and we
25674   # assume the GNU/Linux dynamic linker is in use.
25675   dynamic_linker='GNU/Linux ld.so'
25676   ;;
25677
25678 knetbsd*-gnu)
25679   version_type=linux
25680   need_lib_prefix=no
25681   need_version=no
25682   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25683   soname_spec='${libname}${release}${shared_ext}$major'
25684   shlibpath_var=LD_LIBRARY_PATH
25685   shlibpath_overrides_runpath=no
25686   hardcode_into_libs=yes
25687   dynamic_linker='GNU ld.so'
25688   ;;
25689
25690 netbsd*)
25691   version_type=sunos
25692   need_lib_prefix=no
25693   need_version=no
25694   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25695     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25696     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25697     dynamic_linker='NetBSD (a.out) ld.so'
25698   else
25699     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25700     soname_spec='${libname}${release}${shared_ext}$major'
25701     dynamic_linker='NetBSD ld.elf_so'
25702   fi
25703   shlibpath_var=LD_LIBRARY_PATH
25704   shlibpath_overrides_runpath=yes
25705   hardcode_into_libs=yes
25706   ;;
25707
25708 newsos6)
25709   version_type=linux
25710   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25711   shlibpath_var=LD_LIBRARY_PATH
25712   shlibpath_overrides_runpath=yes
25713   ;;
25714
25715 nto-qnx*)
25716   version_type=linux
25717   need_lib_prefix=no
25718   need_version=no
25719   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25720   soname_spec='${libname}${release}${shared_ext}$major'
25721   shlibpath_var=LD_LIBRARY_PATH
25722   shlibpath_overrides_runpath=yes
25723   ;;
25724
25725 openbsd*)
25726   version_type=sunos
25727   sys_lib_dlsearch_path_spec="/usr/lib"
25728   need_lib_prefix=no
25729   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25730   case $host_os in
25731     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25732     *)                         need_version=no  ;;
25733   esac
25734   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25735   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25736   shlibpath_var=LD_LIBRARY_PATH
25737   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25738     case $host_os in
25739       openbsd2.[89] | openbsd2.[89].*)
25740         shlibpath_overrides_runpath=no
25741         ;;
25742       *)
25743         shlibpath_overrides_runpath=yes
25744         ;;
25745       esac
25746   else
25747     shlibpath_overrides_runpath=yes
25748   fi
25749   ;;
25750
25751 os2*)
25752   libname_spec='$name'
25753   shrext_cmds=".dll"
25754   need_lib_prefix=no
25755   library_names_spec='$libname${shared_ext} $libname.a'
25756   dynamic_linker='OS/2 ld.exe'
25757   shlibpath_var=LIBPATH
25758   ;;
25759
25760 osf3* | osf4* | osf5*)
25761   version_type=osf
25762   need_lib_prefix=no
25763   need_version=no
25764   soname_spec='${libname}${release}${shared_ext}$major'
25765   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25766   shlibpath_var=LD_LIBRARY_PATH
25767   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25768   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25769   ;;
25770
25771 solaris*)
25772   version_type=linux
25773   need_lib_prefix=no
25774   need_version=no
25775   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25776   soname_spec='${libname}${release}${shared_ext}$major'
25777   shlibpath_var=LD_LIBRARY_PATH
25778   shlibpath_overrides_runpath=yes
25779   hardcode_into_libs=yes
25780   # ldd complains unless libraries are executable
25781   postinstall_cmds='chmod +x $lib'
25782   ;;
25783
25784 sunos4*)
25785   version_type=sunos
25786   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25787   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25788   shlibpath_var=LD_LIBRARY_PATH
25789   shlibpath_overrides_runpath=yes
25790   if test "$with_gnu_ld" = yes; then
25791     need_lib_prefix=no
25792   fi
25793   need_version=yes
25794   ;;
25795
25796 sysv4 | sysv4.3*)
25797   version_type=linux
25798   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25799   soname_spec='${libname}${release}${shared_ext}$major'
25800   shlibpath_var=LD_LIBRARY_PATH
25801   case $host_vendor in
25802     sni)
25803       shlibpath_overrides_runpath=no
25804       need_lib_prefix=no
25805       export_dynamic_flag_spec='${wl}-Blargedynsym'
25806       runpath_var=LD_RUN_PATH
25807       ;;
25808     siemens)
25809       need_lib_prefix=no
25810       ;;
25811     motorola)
25812       need_lib_prefix=no
25813       need_version=no
25814       shlibpath_overrides_runpath=no
25815       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25816       ;;
25817   esac
25818   ;;
25819
25820 sysv4*MP*)
25821   if test -d /usr/nec ;then
25822     version_type=linux
25823     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25824     soname_spec='$libname${shared_ext}.$major'
25825     shlibpath_var=LD_LIBRARY_PATH
25826   fi
25827   ;;
25828
25829 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25830   version_type=freebsd-elf
25831   need_lib_prefix=no
25832   need_version=no
25833   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25834   soname_spec='${libname}${release}${shared_ext}$major'
25835   shlibpath_var=LD_LIBRARY_PATH
25836   hardcode_into_libs=yes
25837   if test "$with_gnu_ld" = yes; then
25838     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25839     shlibpath_overrides_runpath=no
25840   else
25841     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25842     shlibpath_overrides_runpath=yes
25843     case $host_os in
25844       sco3.2v5*)
25845         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25846         ;;
25847     esac
25848   fi
25849   sys_lib_dlsearch_path_spec='/usr/lib'
25850   ;;
25851
25852 uts4*)
25853   version_type=linux
25854   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25855   soname_spec='${libname}${release}${shared_ext}$major'
25856   shlibpath_var=LD_LIBRARY_PATH
25857   ;;
25858
25859 *)
25860   dynamic_linker=no
25861   ;;
25862 esac
25863 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25864 echo "${ECHO_T}$dynamic_linker" >&6; }
25865 test "$dynamic_linker" = no && can_build_shared=no
25866
25867 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25868 if test "$GCC" = yes; then
25869   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25870 fi
25871
25872 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25873 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
25874 hardcode_action_GCJ=
25875 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25876    test -n "$runpath_var_GCJ" || \
25877    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25878
25879   # We can hardcode non-existant directories.
25880   if test "$hardcode_direct_GCJ" != no &&
25881      # If the only mechanism to avoid hardcoding is shlibpath_var, we
25882      # have to relink, otherwise we might link with an installed library
25883      # when we should be linking with a yet-to-be-installed one
25884      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25885      test "$hardcode_minus_L_GCJ" != no; then
25886     # Linking always hardcodes the temporary library directory.
25887     hardcode_action_GCJ=relink
25888   else
25889     # We can link without hardcoding, and we can hardcode nonexisting dirs.
25890     hardcode_action_GCJ=immediate
25891   fi
25892 else
25893   # We cannot hardcode anything, or else we can only hardcode existing
25894   # directories.
25895   hardcode_action_GCJ=unsupported
25896 fi
25897 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25898 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
25899
25900 if test "$hardcode_action_GCJ" = relink; then
25901   # Fast installation is not supported
25902   enable_fast_install=no
25903 elif test "$shlibpath_overrides_runpath" = yes ||
25904      test "$enable_shared" = no; then
25905   # Fast installation is not necessary
25906   enable_fast_install=needless
25907 fi
25908
25909
25910 # The else clause should only fire when bootstrapping the
25911 # libtool distribution, otherwise you forgot to ship ltmain.sh
25912 # with your package, and you will get complaints that there are
25913 # no rules to generate ltmain.sh.
25914 if test -f "$ltmain"; then
25915   # See if we are running on zsh, and set the options which allow our commands through
25916   # without removal of \ escapes.
25917   if test -n "${ZSH_VERSION+set}" ; then
25918     setopt NO_GLOB_SUBST
25919   fi
25920   # Now quote all the things that may contain metacharacters while being
25921   # careful not to overquote the AC_SUBSTed values.  We take copies of the
25922   # variables and quote the copies for generation of the libtool script.
25923   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25924     SED SHELL STRIP \
25925     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25926     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25927     deplibs_check_method reload_flag reload_cmds need_locks \
25928     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25929     lt_cv_sys_global_symbol_to_c_name_address \
25930     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25931     old_postinstall_cmds old_postuninstall_cmds \
25932     compiler_GCJ \
25933     CC_GCJ \
25934     LD_GCJ \
25935     lt_prog_compiler_wl_GCJ \
25936     lt_prog_compiler_pic_GCJ \
25937     lt_prog_compiler_static_GCJ \
25938     lt_prog_compiler_no_builtin_flag_GCJ \
25939     export_dynamic_flag_spec_GCJ \
25940     thread_safe_flag_spec_GCJ \
25941     whole_archive_flag_spec_GCJ \
25942     enable_shared_with_static_runtimes_GCJ \
25943     old_archive_cmds_GCJ \
25944     old_archive_from_new_cmds_GCJ \
25945     predep_objects_GCJ \
25946     postdep_objects_GCJ \
25947     predeps_GCJ \
25948     postdeps_GCJ \
25949     compiler_lib_search_path_GCJ \
25950     archive_cmds_GCJ \
25951     archive_expsym_cmds_GCJ \
25952     postinstall_cmds_GCJ \
25953     postuninstall_cmds_GCJ \
25954     old_archive_from_expsyms_cmds_GCJ \
25955     allow_undefined_flag_GCJ \
25956     no_undefined_flag_GCJ \
25957     export_symbols_cmds_GCJ \
25958     hardcode_libdir_flag_spec_GCJ \
25959     hardcode_libdir_flag_spec_ld_GCJ \
25960     hardcode_libdir_separator_GCJ \
25961     hardcode_automatic_GCJ \
25962     module_cmds_GCJ \
25963     module_expsym_cmds_GCJ \
25964     lt_cv_prog_compiler_c_o_GCJ \
25965     exclude_expsyms_GCJ \
25966     include_expsyms_GCJ; do
25967
25968     case $var in
25969     old_archive_cmds_GCJ | \
25970     old_archive_from_new_cmds_GCJ | \
25971     archive_cmds_GCJ | \
25972     archive_expsym_cmds_GCJ | \
25973     module_cmds_GCJ | \
25974     module_expsym_cmds_GCJ | \
25975     old_archive_from_expsyms_cmds_GCJ | \
25976     export_symbols_cmds_GCJ | \
25977     extract_expsyms_cmds | reload_cmds | finish_cmds | \
25978     postinstall_cmds | postuninstall_cmds | \
25979     old_postinstall_cmds | old_postuninstall_cmds | \
25980     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25981       # Double-quote double-evaled strings.
25982       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25983       ;;
25984     *)
25985       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25986       ;;
25987     esac
25988   done
25989
25990   case $lt_echo in
25991   *'\$0 --fallback-echo"')
25992     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25993     ;;
25994   esac
25995
25996 cfgfile="$ofile"
25997
25998   cat <<__EOF__ >> "$cfgfile"
25999 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26000
26001 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26002
26003 # Shell to use when invoking shell scripts.
26004 SHELL=$lt_SHELL
26005
26006 # Whether or not to build shared libraries.
26007 build_libtool_libs=$enable_shared
26008
26009 # Whether or not to build static libraries.
26010 build_old_libs=$enable_static
26011
26012 # Whether or not to add -lc for building shared libraries.
26013 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26014
26015 # Whether or not to disallow shared libs when runtime libs are static
26016 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26017
26018 # Whether or not to optimize for fast installation.
26019 fast_install=$enable_fast_install
26020
26021 # The host system.
26022 host_alias=$host_alias
26023 host=$host
26024 host_os=$host_os
26025
26026 # The build system.
26027 build_alias=$build_alias
26028 build=$build
26029 build_os=$build_os
26030
26031 # An echo program that does not interpret backslashes.
26032 echo=$lt_echo
26033
26034 # The archiver.
26035 AR=$lt_AR
26036 AR_FLAGS=$lt_AR_FLAGS
26037
26038 # A C compiler.
26039 LTCC=$lt_LTCC
26040
26041 # LTCC compiler flags.
26042 LTCFLAGS=$lt_LTCFLAGS
26043
26044 # A language-specific compiler.
26045 CC=$lt_compiler_GCJ
26046
26047 # Is the compiler the GNU C compiler?
26048 with_gcc=$GCC_GCJ
26049
26050 # An ERE matcher.
26051 EGREP=$lt_EGREP
26052
26053 # The linker used to build libraries.
26054 LD=$lt_LD_GCJ
26055
26056 # Whether we need hard or soft links.
26057 LN_S=$lt_LN_S
26058
26059 # A BSD-compatible nm program.
26060 NM=$lt_NM
26061
26062 # A symbol stripping program
26063 STRIP=$lt_STRIP
26064
26065 # Used to examine libraries when file_magic_cmd begins "file"
26066 MAGIC_CMD=$MAGIC_CMD
26067
26068 # Used on cygwin: DLL creation program.
26069 DLLTOOL="$DLLTOOL"
26070
26071 # Used on cygwin: object dumper.
26072 OBJDUMP="$OBJDUMP"
26073
26074 # Used on cygwin: assembler.
26075 AS="$AS"
26076
26077 # The name of the directory that contains temporary libtool files.
26078 objdir=$objdir
26079
26080 # How to create reloadable object files.
26081 reload_flag=$lt_reload_flag
26082 reload_cmds=$lt_reload_cmds
26083
26084 # How to pass a linker flag through the compiler.
26085 wl=$lt_lt_prog_compiler_wl_GCJ
26086
26087 # Object file suffix (normally "o").
26088 objext="$ac_objext"
26089
26090 # Old archive suffix (normally "a").
26091 libext="$libext"
26092
26093 # Shared library suffix (normally ".so").
26094 shrext_cmds='$shrext_cmds'
26095
26096 # Executable file suffix (normally "").
26097 exeext="$exeext"
26098
26099 # Additional compiler flags for building library objects.
26100 pic_flag=$lt_lt_prog_compiler_pic_GCJ
26101 pic_mode=$pic_mode
26102
26103 # What is the maximum length of a command?
26104 max_cmd_len=$lt_cv_sys_max_cmd_len
26105
26106 # Does compiler simultaneously support -c and -o options?
26107 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26108
26109 # Must we lock files when doing compilation?
26110 need_locks=$lt_need_locks
26111
26112 # Do we need the lib prefix for modules?
26113 need_lib_prefix=$need_lib_prefix
26114
26115 # Do we need a version for libraries?
26116 need_version=$need_version
26117
26118 # Whether dlopen is supported.
26119 dlopen_support=$enable_dlopen
26120
26121 # Whether dlopen of programs is supported.
26122 dlopen_self=$enable_dlopen_self
26123
26124 # Whether dlopen of statically linked programs is supported.
26125 dlopen_self_static=$enable_dlopen_self_static
26126
26127 # Compiler flag to prevent dynamic linking.
26128 link_static_flag=$lt_lt_prog_compiler_static_GCJ
26129
26130 # Compiler flag to turn off builtin functions.
26131 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26132
26133 # Compiler flag to allow reflexive dlopens.
26134 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26135
26136 # Compiler flag to generate shared objects directly from archives.
26137 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26138
26139 # Compiler flag to generate thread-safe objects.
26140 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26141
26142 # Library versioning type.
26143 version_type=$version_type
26144
26145 # Format of library name prefix.
26146 libname_spec=$lt_libname_spec
26147
26148 # List of archive names.  First name is the real one, the rest are links.
26149 # The last name is the one that the linker finds with -lNAME.
26150 library_names_spec=$lt_library_names_spec
26151
26152 # The coded name of the library, if different from the real name.
26153 soname_spec=$lt_soname_spec
26154
26155 # Commands used to build and install an old-style archive.
26156 RANLIB=$lt_RANLIB
26157 old_archive_cmds=$lt_old_archive_cmds_GCJ
26158 old_postinstall_cmds=$lt_old_postinstall_cmds
26159 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26160
26161 # Create an old-style archive from a shared archive.
26162 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26163
26164 # Create a temporary old-style archive to link instead of a shared archive.
26165 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26166
26167 # Commands used to build and install a shared archive.
26168 archive_cmds=$lt_archive_cmds_GCJ
26169 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26170 postinstall_cmds=$lt_postinstall_cmds
26171 postuninstall_cmds=$lt_postuninstall_cmds
26172
26173 # Commands used to build a loadable module (assumed same as above if empty)
26174 module_cmds=$lt_module_cmds_GCJ
26175 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26176
26177 # Commands to strip libraries.
26178 old_striplib=$lt_old_striplib
26179 striplib=$lt_striplib
26180
26181 # Dependencies to place before the objects being linked to create a
26182 # shared library.
26183 predep_objects=$lt_predep_objects_GCJ
26184
26185 # Dependencies to place after the objects being linked to create a
26186 # shared library.
26187 postdep_objects=$lt_postdep_objects_GCJ
26188
26189 # Dependencies to place before the objects being linked to create a
26190 # shared library.
26191 predeps=$lt_predeps_GCJ
26192
26193 # Dependencies to place after the objects being linked to create a
26194 # shared library.
26195 postdeps=$lt_postdeps_GCJ
26196
26197 # The library search path used internally by the compiler when linking
26198 # a shared library.
26199 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26200
26201 # Method to check whether dependent libraries are shared objects.
26202 deplibs_check_method=$lt_deplibs_check_method
26203
26204 # Command to use when deplibs_check_method == file_magic.
26205 file_magic_cmd=$lt_file_magic_cmd
26206
26207 # Flag that allows shared libraries with undefined symbols to be built.
26208 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26209
26210 # Flag that forces no undefined symbols.
26211 no_undefined_flag=$lt_no_undefined_flag_GCJ
26212
26213 # Commands used to finish a libtool library installation in a directory.
26214 finish_cmds=$lt_finish_cmds
26215
26216 # Same as above, but a single script fragment to be evaled but not shown.
26217 finish_eval=$lt_finish_eval
26218
26219 # Take the output of nm and produce a listing of raw symbols and C names.
26220 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26221
26222 # Transform the output of nm in a proper C declaration
26223 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26224
26225 # Transform the output of nm in a C name address pair
26226 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26227
26228 # This is the shared library runtime path variable.
26229 runpath_var=$runpath_var
26230
26231 # This is the shared library path variable.
26232 shlibpath_var=$shlibpath_var
26233
26234 # Is shlibpath searched before the hard-coded library search path?
26235 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26236
26237 # How to hardcode a shared library path into an executable.
26238 hardcode_action=$hardcode_action_GCJ
26239
26240 # Whether we should hardcode library paths into libraries.
26241 hardcode_into_libs=$hardcode_into_libs
26242
26243 # Flag to hardcode \$libdir into a binary during linking.
26244 # This must work even if \$libdir does not exist.
26245 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26246
26247 # If ld is used when linking, flag to hardcode \$libdir into
26248 # a binary during linking. This must work even if \$libdir does
26249 # not exist.
26250 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26251
26252 # Whether we need a single -rpath flag with a separated argument.
26253 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26254
26255 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26256 # resulting binary.
26257 hardcode_direct=$hardcode_direct_GCJ
26258
26259 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26260 # resulting binary.
26261 hardcode_minus_L=$hardcode_minus_L_GCJ
26262
26263 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26264 # the resulting binary.
26265 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26266
26267 # Set to yes if building a shared library automatically hardcodes DIR into the library
26268 # and all subsequent libraries and executables linked against it.
26269 hardcode_automatic=$hardcode_automatic_GCJ
26270
26271 # Variables whose values should be saved in libtool wrapper scripts and
26272 # restored at relink time.
26273 variables_saved_for_relink="$variables_saved_for_relink"
26274
26275 # Whether libtool must link a program against all its dependency libraries.
26276 link_all_deplibs=$link_all_deplibs_GCJ
26277
26278 # Compile-time system search path for libraries
26279 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26280
26281 # Run-time system search path for libraries
26282 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26283
26284 # Fix the shell variable \$srcfile for the compiler.
26285 fix_srcfile_path="$fix_srcfile_path_GCJ"
26286
26287 # Set to yes if exported symbols are required.
26288 always_export_symbols=$always_export_symbols_GCJ
26289
26290 # The commands to list exported symbols.
26291 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26292
26293 # The commands to extract the exported symbol list from a shared archive.
26294 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26295
26296 # Symbols that should not be listed in the preloaded symbols.
26297 exclude_expsyms=$lt_exclude_expsyms_GCJ
26298
26299 # Symbols that must always be exported.
26300 include_expsyms=$lt_include_expsyms_GCJ
26301
26302 # ### END LIBTOOL TAG CONFIG: $tagname
26303
26304 __EOF__
26305
26306
26307 else
26308   # If there is no Makefile yet, we rely on a make rule to execute
26309   # `config.status --recheck' to rerun these tests and create the
26310   # libtool script then.
26311   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26312   if test -f "$ltmain_in"; then
26313     test -f Makefile && make "$ltmain"
26314   fi
26315 fi
26316
26317
26318 ac_ext=c
26319 ac_cpp='$CPP $CPPFLAGS'
26320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26323
26324 CC="$lt_save_CC"
26325
26326         else
26327           tagname=""
26328         fi
26329         ;;
26330
26331       RC)
26332         ac_ext=c
26333 ac_cpp='$CPP $CPPFLAGS'
26334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26337
26338
26339 # Source file extension for RC test sources.
26340 ac_ext=rc
26341
26342 # Object file extension for compiled RC test sources.
26343 objext=o
26344 objext_RC=$objext
26345
26346 # Code to be used in simple compile tests
26347 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26348
26349 # Code to be used in simple link tests
26350 lt_simple_link_test_code="$lt_simple_compile_test_code"
26351
26352 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26353
26354 # If no C compiler was specified, use CC.
26355 LTCC=${LTCC-"$CC"}
26356
26357 # If no C compiler flags were specified, use CFLAGS.
26358 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26359
26360 # Allow CC to be a program name with arguments.
26361 compiler=$CC
26362
26363
26364 # save warnings/boilerplate of simple test code
26365 ac_outfile=conftest.$ac_objext
26366 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26367 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26368 _lt_compiler_boilerplate=`cat conftest.err`
26369 $rm conftest*
26370
26371 ac_outfile=conftest.$ac_objext
26372 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26373 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26374 _lt_linker_boilerplate=`cat conftest.err`
26375 $rm conftest*
26376
26377
26378 # Allow CC to be a program name with arguments.
26379 lt_save_CC="$CC"
26380 CC=${RC-"windres"}
26381 compiler=$CC
26382 compiler_RC=$CC
26383 for cc_temp in $compiler""; do
26384   case $cc_temp in
26385     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26386     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26387     \-*) ;;
26388     *) break;;
26389   esac
26390 done
26391 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26392
26393 lt_cv_prog_compiler_c_o_RC=yes
26394
26395 # The else clause should only fire when bootstrapping the
26396 # libtool distribution, otherwise you forgot to ship ltmain.sh
26397 # with your package, and you will get complaints that there are
26398 # no rules to generate ltmain.sh.
26399 if test -f "$ltmain"; then
26400   # See if we are running on zsh, and set the options which allow our commands through
26401   # without removal of \ escapes.
26402   if test -n "${ZSH_VERSION+set}" ; then
26403     setopt NO_GLOB_SUBST
26404   fi
26405   # Now quote all the things that may contain metacharacters while being
26406   # careful not to overquote the AC_SUBSTed values.  We take copies of the
26407   # variables and quote the copies for generation of the libtool script.
26408   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26409     SED SHELL STRIP \
26410     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26411     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26412     deplibs_check_method reload_flag reload_cmds need_locks \
26413     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26414     lt_cv_sys_global_symbol_to_c_name_address \
26415     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26416     old_postinstall_cmds old_postuninstall_cmds \
26417     compiler_RC \
26418     CC_RC \
26419     LD_RC \
26420     lt_prog_compiler_wl_RC \
26421     lt_prog_compiler_pic_RC \
26422     lt_prog_compiler_static_RC \
26423     lt_prog_compiler_no_builtin_flag_RC \
26424     export_dynamic_flag_spec_RC \
26425     thread_safe_flag_spec_RC \
26426     whole_archive_flag_spec_RC \
26427     enable_shared_with_static_runtimes_RC \
26428     old_archive_cmds_RC \
26429     old_archive_from_new_cmds_RC \
26430     predep_objects_RC \
26431     postdep_objects_RC \
26432     predeps_RC \
26433     postdeps_RC \
26434     compiler_lib_search_path_RC \
26435     archive_cmds_RC \
26436     archive_expsym_cmds_RC \
26437     postinstall_cmds_RC \
26438     postuninstall_cmds_RC \
26439     old_archive_from_expsyms_cmds_RC \
26440     allow_undefined_flag_RC \
26441     no_undefined_flag_RC \
26442     export_symbols_cmds_RC \
26443     hardcode_libdir_flag_spec_RC \
26444     hardcode_libdir_flag_spec_ld_RC \
26445     hardcode_libdir_separator_RC \
26446     hardcode_automatic_RC \
26447     module_cmds_RC \
26448     module_expsym_cmds_RC \
26449     lt_cv_prog_compiler_c_o_RC \
26450     exclude_expsyms_RC \
26451     include_expsyms_RC; do
26452
26453     case $var in
26454     old_archive_cmds_RC | \
26455     old_archive_from_new_cmds_RC | \
26456     archive_cmds_RC | \
26457     archive_expsym_cmds_RC | \
26458     module_cmds_RC | \
26459     module_expsym_cmds_RC | \
26460     old_archive_from_expsyms_cmds_RC | \
26461     export_symbols_cmds_RC | \
26462     extract_expsyms_cmds | reload_cmds | finish_cmds | \
26463     postinstall_cmds | postuninstall_cmds | \
26464     old_postinstall_cmds | old_postuninstall_cmds | \
26465     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26466       # Double-quote double-evaled strings.
26467       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26468       ;;
26469     *)
26470       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26471       ;;
26472     esac
26473   done
26474
26475   case $lt_echo in
26476   *'\$0 --fallback-echo"')
26477     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26478     ;;
26479   esac
26480
26481 cfgfile="$ofile"
26482
26483   cat <<__EOF__ >> "$cfgfile"
26484 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26485
26486 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26487
26488 # Shell to use when invoking shell scripts.
26489 SHELL=$lt_SHELL
26490
26491 # Whether or not to build shared libraries.
26492 build_libtool_libs=$enable_shared
26493
26494 # Whether or not to build static libraries.
26495 build_old_libs=$enable_static
26496
26497 # Whether or not to add -lc for building shared libraries.
26498 build_libtool_need_lc=$archive_cmds_need_lc_RC
26499
26500 # Whether or not to disallow shared libs when runtime libs are static
26501 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26502
26503 # Whether or not to optimize for fast installation.
26504 fast_install=$enable_fast_install
26505
26506 # The host system.
26507 host_alias=$host_alias
26508 host=$host
26509 host_os=$host_os
26510
26511 # The build system.
26512 build_alias=$build_alias
26513 build=$build
26514 build_os=$build_os
26515
26516 # An echo program that does not interpret backslashes.
26517 echo=$lt_echo
26518
26519 # The archiver.
26520 AR=$lt_AR
26521 AR_FLAGS=$lt_AR_FLAGS
26522
26523 # A C compiler.
26524 LTCC=$lt_LTCC
26525
26526 # LTCC compiler flags.
26527 LTCFLAGS=$lt_LTCFLAGS
26528
26529 # A language-specific compiler.
26530 CC=$lt_compiler_RC
26531
26532 # Is the compiler the GNU C compiler?
26533 with_gcc=$GCC_RC
26534
26535 # An ERE matcher.
26536 EGREP=$lt_EGREP
26537
26538 # The linker used to build libraries.
26539 LD=$lt_LD_RC
26540
26541 # Whether we need hard or soft links.
26542 LN_S=$lt_LN_S
26543
26544 # A BSD-compatible nm program.
26545 NM=$lt_NM
26546
26547 # A symbol stripping program
26548 STRIP=$lt_STRIP
26549
26550 # Used to examine libraries when file_magic_cmd begins "file"
26551 MAGIC_CMD=$MAGIC_CMD
26552
26553 # Used on cygwin: DLL creation program.
26554 DLLTOOL="$DLLTOOL"
26555
26556 # Used on cygwin: object dumper.
26557 OBJDUMP="$OBJDUMP"
26558
26559 # Used on cygwin: assembler.
26560 AS="$AS"
26561
26562 # The name of the directory that contains temporary libtool files.
26563 objdir=$objdir
26564
26565 # How to create reloadable object files.
26566 reload_flag=$lt_reload_flag
26567 reload_cmds=$lt_reload_cmds
26568
26569 # How to pass a linker flag through the compiler.
26570 wl=$lt_lt_prog_compiler_wl_RC
26571
26572 # Object file suffix (normally "o").
26573 objext="$ac_objext"
26574
26575 # Old archive suffix (normally "a").
26576 libext="$libext"
26577
26578 # Shared library suffix (normally ".so").
26579 shrext_cmds='$shrext_cmds'
26580
26581 # Executable file suffix (normally "").
26582 exeext="$exeext"
26583
26584 # Additional compiler flags for building library objects.
26585 pic_flag=$lt_lt_prog_compiler_pic_RC
26586 pic_mode=$pic_mode
26587
26588 # What is the maximum length of a command?
26589 max_cmd_len=$lt_cv_sys_max_cmd_len
26590
26591 # Does compiler simultaneously support -c and -o options?
26592 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26593
26594 # Must we lock files when doing compilation?
26595 need_locks=$lt_need_locks
26596
26597 # Do we need the lib prefix for modules?
26598 need_lib_prefix=$need_lib_prefix
26599
26600 # Do we need a version for libraries?
26601 need_version=$need_version
26602
26603 # Whether dlopen is supported.
26604 dlopen_support=$enable_dlopen
26605
26606 # Whether dlopen of programs is supported.
26607 dlopen_self=$enable_dlopen_self
26608
26609 # Whether dlopen of statically linked programs is supported.
26610 dlopen_self_static=$enable_dlopen_self_static
26611
26612 # Compiler flag to prevent dynamic linking.
26613 link_static_flag=$lt_lt_prog_compiler_static_RC
26614
26615 # Compiler flag to turn off builtin functions.
26616 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26617
26618 # Compiler flag to allow reflexive dlopens.
26619 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26620
26621 # Compiler flag to generate shared objects directly from archives.
26622 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26623
26624 # Compiler flag to generate thread-safe objects.
26625 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26626
26627 # Library versioning type.
26628 version_type=$version_type
26629
26630 # Format of library name prefix.
26631 libname_spec=$lt_libname_spec
26632
26633 # List of archive names.  First name is the real one, the rest are links.
26634 # The last name is the one that the linker finds with -lNAME.
26635 library_names_spec=$lt_library_names_spec
26636
26637 # The coded name of the library, if different from the real name.
26638 soname_spec=$lt_soname_spec
26639
26640 # Commands used to build and install an old-style archive.
26641 RANLIB=$lt_RANLIB
26642 old_archive_cmds=$lt_old_archive_cmds_RC
26643 old_postinstall_cmds=$lt_old_postinstall_cmds
26644 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26645
26646 # Create an old-style archive from a shared archive.
26647 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26648
26649 # Create a temporary old-style archive to link instead of a shared archive.
26650 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26651
26652 # Commands used to build and install a shared archive.
26653 archive_cmds=$lt_archive_cmds_RC
26654 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26655 postinstall_cmds=$lt_postinstall_cmds
26656 postuninstall_cmds=$lt_postuninstall_cmds
26657
26658 # Commands used to build a loadable module (assumed same as above if empty)
26659 module_cmds=$lt_module_cmds_RC
26660 module_expsym_cmds=$lt_module_expsym_cmds_RC
26661
26662 # Commands to strip libraries.
26663 old_striplib=$lt_old_striplib
26664 striplib=$lt_striplib
26665
26666 # Dependencies to place before the objects being linked to create a
26667 # shared library.
26668 predep_objects=$lt_predep_objects_RC
26669
26670 # Dependencies to place after the objects being linked to create a
26671 # shared library.
26672 postdep_objects=$lt_postdep_objects_RC
26673
26674 # Dependencies to place before the objects being linked to create a
26675 # shared library.
26676 predeps=$lt_predeps_RC
26677
26678 # Dependencies to place after the objects being linked to create a
26679 # shared library.
26680 postdeps=$lt_postdeps_RC
26681
26682 # The library search path used internally by the compiler when linking
26683 # a shared library.
26684 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26685
26686 # Method to check whether dependent libraries are shared objects.
26687 deplibs_check_method=$lt_deplibs_check_method
26688
26689 # Command to use when deplibs_check_method == file_magic.
26690 file_magic_cmd=$lt_file_magic_cmd
26691
26692 # Flag that allows shared libraries with undefined symbols to be built.
26693 allow_undefined_flag=$lt_allow_undefined_flag_RC
26694
26695 # Flag that forces no undefined symbols.
26696 no_undefined_flag=$lt_no_undefined_flag_RC
26697
26698 # Commands used to finish a libtool library installation in a directory.
26699 finish_cmds=$lt_finish_cmds
26700
26701 # Same as above, but a single script fragment to be evaled but not shown.
26702 finish_eval=$lt_finish_eval
26703
26704 # Take the output of nm and produce a listing of raw symbols and C names.
26705 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26706
26707 # Transform the output of nm in a proper C declaration
26708 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26709
26710 # Transform the output of nm in a C name address pair
26711 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26712
26713 # This is the shared library runtime path variable.
26714 runpath_var=$runpath_var
26715
26716 # This is the shared library path variable.
26717 shlibpath_var=$shlibpath_var
26718
26719 # Is shlibpath searched before the hard-coded library search path?
26720 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26721
26722 # How to hardcode a shared library path into an executable.
26723 hardcode_action=$hardcode_action_RC
26724
26725 # Whether we should hardcode library paths into libraries.
26726 hardcode_into_libs=$hardcode_into_libs
26727
26728 # Flag to hardcode \$libdir into a binary during linking.
26729 # This must work even if \$libdir does not exist.
26730 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26731
26732 # If ld is used when linking, flag to hardcode \$libdir into
26733 # a binary during linking. This must work even if \$libdir does
26734 # not exist.
26735 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26736
26737 # Whether we need a single -rpath flag with a separated argument.
26738 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26739
26740 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26741 # resulting binary.
26742 hardcode_direct=$hardcode_direct_RC
26743
26744 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26745 # resulting binary.
26746 hardcode_minus_L=$hardcode_minus_L_RC
26747
26748 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26749 # the resulting binary.
26750 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26751
26752 # Set to yes if building a shared library automatically hardcodes DIR into the library
26753 # and all subsequent libraries and executables linked against it.
26754 hardcode_automatic=$hardcode_automatic_RC
26755
26756 # Variables whose values should be saved in libtool wrapper scripts and
26757 # restored at relink time.
26758 variables_saved_for_relink="$variables_saved_for_relink"
26759
26760 # Whether libtool must link a program against all its dependency libraries.
26761 link_all_deplibs=$link_all_deplibs_RC
26762
26763 # Compile-time system search path for libraries
26764 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26765
26766 # Run-time system search path for libraries
26767 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26768
26769 # Fix the shell variable \$srcfile for the compiler.
26770 fix_srcfile_path="$fix_srcfile_path_RC"
26771
26772 # Set to yes if exported symbols are required.
26773 always_export_symbols=$always_export_symbols_RC
26774
26775 # The commands to list exported symbols.
26776 export_symbols_cmds=$lt_export_symbols_cmds_RC
26777
26778 # The commands to extract the exported symbol list from a shared archive.
26779 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26780
26781 # Symbols that should not be listed in the preloaded symbols.
26782 exclude_expsyms=$lt_exclude_expsyms_RC
26783
26784 # Symbols that must always be exported.
26785 include_expsyms=$lt_include_expsyms_RC
26786
26787 # ### END LIBTOOL TAG CONFIG: $tagname
26788
26789 __EOF__
26790
26791
26792 else
26793   # If there is no Makefile yet, we rely on a make rule to execute
26794   # `config.status --recheck' to rerun these tests and create the
26795   # libtool script then.
26796   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26797   if test -f "$ltmain_in"; then
26798     test -f Makefile && make "$ltmain"
26799   fi
26800 fi
26801
26802
26803 ac_ext=c
26804 ac_cpp='$CPP $CPPFLAGS'
26805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26808
26809 CC="$lt_save_CC"
26810
26811         ;;
26812
26813       *)
26814         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26815 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26816    { (exit 1); exit 1; }; }
26817         ;;
26818       esac
26819
26820       # Append the new tag name to the list of available tags.
26821       if test -n "$tagname" ; then
26822       available_tags="$available_tags $tagname"
26823     fi
26824     fi
26825   done
26826   IFS="$lt_save_ifs"
26827
26828   # Now substitute the updated list of available tags.
26829   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26830     mv "${ofile}T" "$ofile"
26831     chmod +x "$ofile"
26832   else
26833     rm -f "${ofile}T"
26834     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26835 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26836    { (exit 1); exit 1; }; }
26837   fi
26838 fi
26839
26840
26841
26842 # This can be used to rebuild libtool when needed
26843 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26844
26845 # Always use our own libtool.
26846 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
26847
26848 # Prevent multiple expansion
26849
26850
26851
26852
26853
26854
26855
26856
26857
26858
26859
26860
26861
26862
26863
26864
26865
26866
26867
26868
26869
26870 if test "$lt_cv_dlopen_self" = "yes" ; then
26871
26872 cat >>confdefs.h <<\_ACEOF
26873 #define CAN_DLOPEN_SELF 1
26874 _ACEOF
26875
26876 fi
26877
26878
26879 if test "$WITH_LLVMGCCDIR" = "default" ; then
26880   LLVMGCC="llvm-gcc${EXEEXT}"
26881   LLVMGXX="llvm-g++${EXEEXT}"
26882   LLVMGCCCOMMAND="$LLVMGCC"
26883   LLVMGXXCOMMAND="$LLVMGXX"
26884   LLVMGCCCOMMAND=$LLVMGCCCOMMAND
26885
26886   LLVMGXXCOMMAND=$LLVMGXXCOMMAND
26887
26888   # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26889 set dummy $LLVMGCC; ac_word=$2
26890 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26892 if test "${ac_cv_path_LLVMGCC+set}" = set; then
26893   echo $ECHO_N "(cached) $ECHO_C" >&6
26894 else
26895   case $LLVMGCC in
26896   [\\/]* | ?:[\\/]*)
26897   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26898   ;;
26899   *)
26900   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26901 for as_dir in $PATH
26902 do
26903   IFS=$as_save_IFS
26904   test -z "$as_dir" && as_dir=.
26905   for ac_exec_ext in '' $ac_executable_extensions; do
26906   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26907     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26908     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26909     break 2
26910   fi
26911 done
26912 done
26913 IFS=$as_save_IFS
26914
26915   ;;
26916 esac
26917 fi
26918 LLVMGCC=$ac_cv_path_LLVMGCC
26919 if test -n "$LLVMGCC"; then
26920   { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26921 echo "${ECHO_T}$LLVMGCC" >&6; }
26922 else
26923   { echo "$as_me:$LINENO: result: no" >&5
26924 echo "${ECHO_T}no" >&6; }
26925 fi
26926
26927
26928   # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26929 set dummy $LLVMGXX; ac_word=$2
26930 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26932 if test "${ac_cv_path_LLVMGXX+set}" = set; then
26933   echo $ECHO_N "(cached) $ECHO_C" >&6
26934 else
26935   case $LLVMGXX in
26936   [\\/]* | ?:[\\/]*)
26937   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26938   ;;
26939   *)
26940   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26941 for as_dir in $PATH
26942 do
26943   IFS=$as_save_IFS
26944   test -z "$as_dir" && as_dir=.
26945   for ac_exec_ext in '' $ac_executable_extensions; do
26946   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26947     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26948     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26949     break 2
26950   fi
26951 done
26952 done
26953 IFS=$as_save_IFS
26954
26955   ;;
26956 esac
26957 fi
26958 LLVMGXX=$ac_cv_path_LLVMGXX
26959 if test -n "$LLVMGXX"; then
26960   { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26961 echo "${ECHO_T}$LLVMGXX" >&6; }
26962 else
26963   { echo "$as_me:$LINENO: result: no" >&5
26964 echo "${ECHO_T}no" >&6; }
26965 fi
26966
26967
26968 else
26969   if test -z "$LLVMGCC"; then
26970     LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26971     LLVMGCCCOMMAND="$LLVMGCC"
26972   fi
26973   if test -z "$LLVMGXX"; then
26974     LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
26975     LLVMGXXCOMMAND="$LLVMGXX"
26976   fi
26977
26978   LLVMGCC=$LLVMGCC
26979
26980   LLVMGXX=$LLVMGXX
26981
26982   LLVMGCCCOMMAND=$LLVMGCCCOMMAND
26983
26984   LLVMGXXCOMMAND=$LLVMGXXCOMMAND
26985
26986 fi
26987
26988
26989 { echo "$as_me:$LINENO: checking tool compatibility" >&5
26990 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
26991
26992 ICC=no
26993 IXX=no
26994 case $CC in
26995   icc*|icpc*)
26996     ICC=yes
26997     IXX=yes
26998     ;;
26999    *)
27000     ;;
27001 esac
27002
27003 if test "$GCC" != "yes" && test "$ICC" != "yes"
27004 then
27005   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
27006 echo "$as_me: error: gcc|icc required but not found" >&2;}
27007    { (exit 1); exit 1; }; }
27008 fi
27009
27010 if test "$GXX" != "yes" && test "$IXX" != "yes"
27011 then
27012   { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27013 echo "$as_me: error: g++|icc required but not found" >&2;}
27014    { (exit 1); exit 1; }; }
27015 fi
27016
27017 if test "$GCC" = "yes"
27018 then
27019   cat >conftest.$ac_ext <<_ACEOF
27020 #if !defined(__GNUC__) || __GNUC__ < 3
27021 #error Unsupported GCC version
27022 #endif
27023
27024 _ACEOF
27025 rm -f conftest.$ac_objext
27026 if { (ac_try="$ac_compile"
27027 case "(($ac_try" in
27028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27029   *) ac_try_echo=$ac_try;;
27030 esac
27031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27032   (eval "$ac_compile") 2>conftest.er1
27033   ac_status=$?
27034   grep -v '^ *+' conftest.er1 >conftest.err
27035   rm -f conftest.er1
27036   cat conftest.err >&5
27037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27038   (exit $ac_status); } &&
27039          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27040   { (case "(($ac_try" in
27041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27042   *) ac_try_echo=$ac_try;;
27043 esac
27044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27045   (eval "$ac_try") 2>&5
27046   ac_status=$?
27047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27048   (exit $ac_status); }; } &&
27049          { ac_try='test -s conftest.$ac_objext'
27050   { (case "(($ac_try" in
27051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27052   *) ac_try_echo=$ac_try;;
27053 esac
27054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27055   (eval "$ac_try") 2>&5
27056   ac_status=$?
27057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27058   (exit $ac_status); }; }; then
27059   :
27060 else
27061   echo "$as_me: failed program was:" >&5
27062 sed 's/^/| /' conftest.$ac_ext >&5
27063
27064         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
27065 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27066    { (exit 1); exit 1; }; }
27067 fi
27068
27069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27070 fi
27071
27072 if test -z "$llvm_cv_gnu_make_command"
27073 then
27074   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27075 echo "$as_me: error: GNU Make required but not found" >&2;}
27076    { (exit 1); exit 1; }; }
27077 fi
27078
27079 { echo "$as_me:$LINENO: result: ok" >&5
27080 echo "${ECHO_T}ok" >&6; }
27081
27082
27083
27084 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
27085 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
27086 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
27087   echo $ECHO_N "(cached) $ECHO_C" >&6
27088 else
27089   ac_check_lib_save_LIBS=$LIBS
27090 LIBS="-lelf  $LIBS"
27091 cat >conftest.$ac_ext <<_ACEOF
27092 /* confdefs.h.  */
27093 _ACEOF
27094 cat confdefs.h >>conftest.$ac_ext
27095 cat >>conftest.$ac_ext <<_ACEOF
27096 /* end confdefs.h.  */
27097
27098 /* Override any GCC internal prototype to avoid an error.
27099    Use char because int might match the return type of a GCC
27100    builtin and then its argument prototype would still apply.  */
27101 #ifdef __cplusplus
27102 extern "C"
27103 #endif
27104 char elf_begin ();
27105 int
27106 main ()
27107 {
27108 return elf_begin ();
27109   ;
27110   return 0;
27111 }
27112 _ACEOF
27113 rm -f conftest.$ac_objext conftest$ac_exeext
27114 if { (ac_try="$ac_link"
27115 case "(($ac_try" in
27116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27117   *) ac_try_echo=$ac_try;;
27118 esac
27119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27120   (eval "$ac_link") 2>conftest.er1
27121   ac_status=$?
27122   grep -v '^ *+' conftest.er1 >conftest.err
27123   rm -f conftest.er1
27124   cat conftest.err >&5
27125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27126   (exit $ac_status); } &&
27127          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27128   { (case "(($ac_try" in
27129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27130   *) ac_try_echo=$ac_try;;
27131 esac
27132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27133   (eval "$ac_try") 2>&5
27134   ac_status=$?
27135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27136   (exit $ac_status); }; } &&
27137          { ac_try='test -s conftest$ac_exeext'
27138   { (case "(($ac_try" in
27139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27140   *) ac_try_echo=$ac_try;;
27141 esac
27142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27143   (eval "$ac_try") 2>&5
27144   ac_status=$?
27145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27146   (exit $ac_status); }; }; then
27147   ac_cv_lib_elf_elf_begin=yes
27148 else
27149   echo "$as_me: failed program was:" >&5
27150 sed 's/^/| /' conftest.$ac_ext >&5
27151
27152         ac_cv_lib_elf_elf_begin=no
27153 fi
27154
27155 rm -f core conftest.err conftest.$ac_objext \
27156       conftest$ac_exeext conftest.$ac_ext
27157 LIBS=$ac_check_lib_save_LIBS
27158 fi
27159 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
27160 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
27161 if test $ac_cv_lib_elf_elf_begin = yes; then
27162   cat >>confdefs.h <<_ACEOF
27163 #define HAVE_LIBELF 1
27164 _ACEOF
27165
27166   LIBS="-lelf $LIBS"
27167
27168 fi
27169
27170
27171 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
27172 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
27173 if test "${ac_cv_lib_m_sin+set}" = set; then
27174   echo $ECHO_N "(cached) $ECHO_C" >&6
27175 else
27176   ac_check_lib_save_LIBS=$LIBS
27177 LIBS="-lm  $LIBS"
27178 cat >conftest.$ac_ext <<_ACEOF
27179 /* confdefs.h.  */
27180 _ACEOF
27181 cat confdefs.h >>conftest.$ac_ext
27182 cat >>conftest.$ac_ext <<_ACEOF
27183 /* end confdefs.h.  */
27184
27185 /* Override any GCC internal prototype to avoid an error.
27186    Use char because int might match the return type of a GCC
27187    builtin and then its argument prototype would still apply.  */
27188 #ifdef __cplusplus
27189 extern "C"
27190 #endif
27191 char sin ();
27192 int
27193 main ()
27194 {
27195 return sin ();
27196   ;
27197   return 0;
27198 }
27199 _ACEOF
27200 rm -f conftest.$ac_objext conftest$ac_exeext
27201 if { (ac_try="$ac_link"
27202 case "(($ac_try" in
27203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27204   *) ac_try_echo=$ac_try;;
27205 esac
27206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27207   (eval "$ac_link") 2>conftest.er1
27208   ac_status=$?
27209   grep -v '^ *+' conftest.er1 >conftest.err
27210   rm -f conftest.er1
27211   cat conftest.err >&5
27212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27213   (exit $ac_status); } &&
27214          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27215   { (case "(($ac_try" in
27216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27217   *) ac_try_echo=$ac_try;;
27218 esac
27219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27220   (eval "$ac_try") 2>&5
27221   ac_status=$?
27222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27223   (exit $ac_status); }; } &&
27224          { ac_try='test -s conftest$ac_exeext'
27225   { (case "(($ac_try" in
27226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27227   *) ac_try_echo=$ac_try;;
27228 esac
27229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27230   (eval "$ac_try") 2>&5
27231   ac_status=$?
27232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27233   (exit $ac_status); }; }; then
27234   ac_cv_lib_m_sin=yes
27235 else
27236   echo "$as_me: failed program was:" >&5
27237 sed 's/^/| /' conftest.$ac_ext >&5
27238
27239         ac_cv_lib_m_sin=no
27240 fi
27241
27242 rm -f core conftest.err conftest.$ac_objext \
27243       conftest$ac_exeext conftest.$ac_ext
27244 LIBS=$ac_check_lib_save_LIBS
27245 fi
27246 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27247 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27248 if test $ac_cv_lib_m_sin = yes; then
27249   cat >>confdefs.h <<_ACEOF
27250 #define HAVE_LIBM 1
27251 _ACEOF
27252
27253   LIBS="-lm $LIBS"
27254
27255 fi
27256
27257 if test "$llvm_cv_os_type" = "MingW" ; then
27258
27259 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27260 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27261 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27262   echo $ECHO_N "(cached) $ECHO_C" >&6
27263 else
27264   ac_check_lib_save_LIBS=$LIBS
27265 LIBS="-limagehlp  $LIBS"
27266 cat >conftest.$ac_ext <<_ACEOF
27267 /* confdefs.h.  */
27268 _ACEOF
27269 cat confdefs.h >>conftest.$ac_ext
27270 cat >>conftest.$ac_ext <<_ACEOF
27271 /* end confdefs.h.  */
27272
27273
27274 int
27275 main ()
27276 {
27277 return main ();
27278   ;
27279   return 0;
27280 }
27281 _ACEOF
27282 rm -f conftest.$ac_objext conftest$ac_exeext
27283 if { (ac_try="$ac_link"
27284 case "(($ac_try" in
27285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27286   *) ac_try_echo=$ac_try;;
27287 esac
27288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27289   (eval "$ac_link") 2>conftest.er1
27290   ac_status=$?
27291   grep -v '^ *+' conftest.er1 >conftest.err
27292   rm -f conftest.er1
27293   cat conftest.err >&5
27294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27295   (exit $ac_status); } &&
27296          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27297   { (case "(($ac_try" in
27298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27299   *) ac_try_echo=$ac_try;;
27300 esac
27301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27302   (eval "$ac_try") 2>&5
27303   ac_status=$?
27304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27305   (exit $ac_status); }; } &&
27306          { ac_try='test -s conftest$ac_exeext'
27307   { (case "(($ac_try" in
27308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27309   *) ac_try_echo=$ac_try;;
27310 esac
27311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27312   (eval "$ac_try") 2>&5
27313   ac_status=$?
27314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27315   (exit $ac_status); }; }; then
27316   ac_cv_lib_imagehlp_main=yes
27317 else
27318   echo "$as_me: failed program was:" >&5
27319 sed 's/^/| /' conftest.$ac_ext >&5
27320
27321         ac_cv_lib_imagehlp_main=no
27322 fi
27323
27324 rm -f core conftest.err conftest.$ac_objext \
27325       conftest$ac_exeext conftest.$ac_ext
27326 LIBS=$ac_check_lib_save_LIBS
27327 fi
27328 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27329 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27330 if test $ac_cv_lib_imagehlp_main = yes; then
27331   cat >>confdefs.h <<_ACEOF
27332 #define HAVE_LIBIMAGEHLP 1
27333 _ACEOF
27334
27335   LIBS="-limagehlp $LIBS"
27336
27337 fi
27338
27339
27340 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27341 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27342 if test "${ac_cv_lib_psapi_main+set}" = set; then
27343   echo $ECHO_N "(cached) $ECHO_C" >&6
27344 else
27345   ac_check_lib_save_LIBS=$LIBS
27346 LIBS="-lpsapi  $LIBS"
27347 cat >conftest.$ac_ext <<_ACEOF
27348 /* confdefs.h.  */
27349 _ACEOF
27350 cat confdefs.h >>conftest.$ac_ext
27351 cat >>conftest.$ac_ext <<_ACEOF
27352 /* end confdefs.h.  */
27353
27354
27355 int
27356 main ()
27357 {
27358 return main ();
27359   ;
27360   return 0;
27361 }
27362 _ACEOF
27363 rm -f conftest.$ac_objext conftest$ac_exeext
27364 if { (ac_try="$ac_link"
27365 case "(($ac_try" in
27366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27367   *) ac_try_echo=$ac_try;;
27368 esac
27369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27370   (eval "$ac_link") 2>conftest.er1
27371   ac_status=$?
27372   grep -v '^ *+' conftest.er1 >conftest.err
27373   rm -f conftest.er1
27374   cat conftest.err >&5
27375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27376   (exit $ac_status); } &&
27377          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27378   { (case "(($ac_try" in
27379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27380   *) ac_try_echo=$ac_try;;
27381 esac
27382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27383   (eval "$ac_try") 2>&5
27384   ac_status=$?
27385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27386   (exit $ac_status); }; } &&
27387          { ac_try='test -s conftest$ac_exeext'
27388   { (case "(($ac_try" in
27389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27390   *) ac_try_echo=$ac_try;;
27391 esac
27392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27393   (eval "$ac_try") 2>&5
27394   ac_status=$?
27395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27396   (exit $ac_status); }; }; then
27397   ac_cv_lib_psapi_main=yes
27398 else
27399   echo "$as_me: failed program was:" >&5
27400 sed 's/^/| /' conftest.$ac_ext >&5
27401
27402         ac_cv_lib_psapi_main=no
27403 fi
27404
27405 rm -f core conftest.err conftest.$ac_objext \
27406       conftest$ac_exeext conftest.$ac_ext
27407 LIBS=$ac_check_lib_save_LIBS
27408 fi
27409 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27410 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27411 if test $ac_cv_lib_psapi_main = yes; then
27412   cat >>confdefs.h <<_ACEOF
27413 #define HAVE_LIBPSAPI 1
27414 _ACEOF
27415
27416   LIBS="-lpsapi $LIBS"
27417
27418 fi
27419
27420 fi
27421
27422 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27423 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27424 if test "${ac_cv_search_dlopen+set}" = set; then
27425   echo $ECHO_N "(cached) $ECHO_C" >&6
27426 else
27427   ac_func_search_save_LIBS=$LIBS
27428 cat >conftest.$ac_ext <<_ACEOF
27429 /* confdefs.h.  */
27430 _ACEOF
27431 cat confdefs.h >>conftest.$ac_ext
27432 cat >>conftest.$ac_ext <<_ACEOF
27433 /* end confdefs.h.  */
27434
27435 /* Override any GCC internal prototype to avoid an error.
27436    Use char because int might match the return type of a GCC
27437    builtin and then its argument prototype would still apply.  */
27438 #ifdef __cplusplus
27439 extern "C"
27440 #endif
27441 char dlopen ();
27442 int
27443 main ()
27444 {
27445 return dlopen ();
27446   ;
27447   return 0;
27448 }
27449 _ACEOF
27450 for ac_lib in '' dl; do
27451   if test -z "$ac_lib"; then
27452     ac_res="none required"
27453   else
27454     ac_res=-l$ac_lib
27455     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27456   fi
27457   rm -f conftest.$ac_objext conftest$ac_exeext
27458 if { (ac_try="$ac_link"
27459 case "(($ac_try" in
27460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27461   *) ac_try_echo=$ac_try;;
27462 esac
27463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27464   (eval "$ac_link") 2>conftest.er1
27465   ac_status=$?
27466   grep -v '^ *+' conftest.er1 >conftest.err
27467   rm -f conftest.er1
27468   cat conftest.err >&5
27469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27470   (exit $ac_status); } &&
27471          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27472   { (case "(($ac_try" in
27473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27474   *) ac_try_echo=$ac_try;;
27475 esac
27476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27477   (eval "$ac_try") 2>&5
27478   ac_status=$?
27479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27480   (exit $ac_status); }; } &&
27481          { ac_try='test -s conftest$ac_exeext'
27482   { (case "(($ac_try" in
27483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27484   *) ac_try_echo=$ac_try;;
27485 esac
27486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27487   (eval "$ac_try") 2>&5
27488   ac_status=$?
27489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27490   (exit $ac_status); }; }; then
27491   ac_cv_search_dlopen=$ac_res
27492 else
27493   echo "$as_me: failed program was:" >&5
27494 sed 's/^/| /' conftest.$ac_ext >&5
27495
27496
27497 fi
27498
27499 rm -f core conftest.err conftest.$ac_objext \
27500       conftest$ac_exeext
27501   if test "${ac_cv_search_dlopen+set}" = set; then
27502   break
27503 fi
27504 done
27505 if test "${ac_cv_search_dlopen+set}" = set; then
27506   :
27507 else
27508   ac_cv_search_dlopen=no
27509 fi
27510 rm conftest.$ac_ext
27511 LIBS=$ac_func_search_save_LIBS
27512 fi
27513 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27514 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27515 ac_res=$ac_cv_search_dlopen
27516 if test "$ac_res" != no; then
27517   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27518
27519 cat >>confdefs.h <<\_ACEOF
27520 #define HAVE_DLOPEN 1
27521 _ACEOF
27522
27523 else
27524   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27525 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27526 fi
27527
27528
27529 if test "$llvm_cv_enable_libffi" = "yes" ; then
27530   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
27531 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
27532 if test "${ac_cv_search_ffi_call+set}" = set; then
27533   echo $ECHO_N "(cached) $ECHO_C" >&6
27534 else
27535   ac_func_search_save_LIBS=$LIBS
27536 cat >conftest.$ac_ext <<_ACEOF
27537 /* confdefs.h.  */
27538 _ACEOF
27539 cat confdefs.h >>conftest.$ac_ext
27540 cat >>conftest.$ac_ext <<_ACEOF
27541 /* end confdefs.h.  */
27542
27543 /* Override any GCC internal prototype to avoid an error.
27544    Use char because int might match the return type of a GCC
27545    builtin and then its argument prototype would still apply.  */
27546 #ifdef __cplusplus
27547 extern "C"
27548 #endif
27549 char ffi_call ();
27550 int
27551 main ()
27552 {
27553 return ffi_call ();
27554   ;
27555   return 0;
27556 }
27557 _ACEOF
27558 for ac_lib in '' ffi; do
27559   if test -z "$ac_lib"; then
27560     ac_res="none required"
27561   else
27562     ac_res=-l$ac_lib
27563     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27564   fi
27565   rm -f conftest.$ac_objext conftest$ac_exeext
27566 if { (ac_try="$ac_link"
27567 case "(($ac_try" in
27568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27569   *) ac_try_echo=$ac_try;;
27570 esac
27571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27572   (eval "$ac_link") 2>conftest.er1
27573   ac_status=$?
27574   grep -v '^ *+' conftest.er1 >conftest.err
27575   rm -f conftest.er1
27576   cat conftest.err >&5
27577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27578   (exit $ac_status); } &&
27579          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27580   { (case "(($ac_try" in
27581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27582   *) ac_try_echo=$ac_try;;
27583 esac
27584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27585   (eval "$ac_try") 2>&5
27586   ac_status=$?
27587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27588   (exit $ac_status); }; } &&
27589          { ac_try='test -s conftest$ac_exeext'
27590   { (case "(($ac_try" in
27591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27592   *) ac_try_echo=$ac_try;;
27593 esac
27594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27595   (eval "$ac_try") 2>&5
27596   ac_status=$?
27597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27598   (exit $ac_status); }; }; then
27599   ac_cv_search_ffi_call=$ac_res
27600 else
27601   echo "$as_me: failed program was:" >&5
27602 sed 's/^/| /' conftest.$ac_ext >&5
27603
27604
27605 fi
27606
27607 rm -f core conftest.err conftest.$ac_objext \
27608       conftest$ac_exeext
27609   if test "${ac_cv_search_ffi_call+set}" = set; then
27610   break
27611 fi
27612 done
27613 if test "${ac_cv_search_ffi_call+set}" = set; then
27614   :
27615 else
27616   ac_cv_search_ffi_call=no
27617 fi
27618 rm conftest.$ac_ext
27619 LIBS=$ac_func_search_save_LIBS
27620 fi
27621 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
27622 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
27623 ac_res=$ac_cv_search_ffi_call
27624 if test "$ac_res" != no; then
27625   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27626
27627 cat >>confdefs.h <<\_ACEOF
27628 #define HAVE_FFI_CALL 1
27629 _ACEOF
27630
27631 else
27632   { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
27633 echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
27634 fi
27635
27636 fi
27637
27638 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27639 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27640 if test "${ac_cv_search_mallinfo+set}" = set; then
27641   echo $ECHO_N "(cached) $ECHO_C" >&6
27642 else
27643   ac_func_search_save_LIBS=$LIBS
27644 cat >conftest.$ac_ext <<_ACEOF
27645 /* confdefs.h.  */
27646 _ACEOF
27647 cat confdefs.h >>conftest.$ac_ext
27648 cat >>conftest.$ac_ext <<_ACEOF
27649 /* end confdefs.h.  */
27650
27651 /* Override any GCC internal prototype to avoid an error.
27652    Use char because int might match the return type of a GCC
27653    builtin and then its argument prototype would still apply.  */
27654 #ifdef __cplusplus
27655 extern "C"
27656 #endif
27657 char mallinfo ();
27658 int
27659 main ()
27660 {
27661 return mallinfo ();
27662   ;
27663   return 0;
27664 }
27665 _ACEOF
27666 for ac_lib in '' malloc; do
27667   if test -z "$ac_lib"; then
27668     ac_res="none required"
27669   else
27670     ac_res=-l$ac_lib
27671     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27672   fi
27673   rm -f conftest.$ac_objext conftest$ac_exeext
27674 if { (ac_try="$ac_link"
27675 case "(($ac_try" in
27676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27677   *) ac_try_echo=$ac_try;;
27678 esac
27679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27680   (eval "$ac_link") 2>conftest.er1
27681   ac_status=$?
27682   grep -v '^ *+' conftest.er1 >conftest.err
27683   rm -f conftest.er1
27684   cat conftest.err >&5
27685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27686   (exit $ac_status); } &&
27687          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27688   { (case "(($ac_try" in
27689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27690   *) ac_try_echo=$ac_try;;
27691 esac
27692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27693   (eval "$ac_try") 2>&5
27694   ac_status=$?
27695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27696   (exit $ac_status); }; } &&
27697          { ac_try='test -s conftest$ac_exeext'
27698   { (case "(($ac_try" in
27699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27700   *) ac_try_echo=$ac_try;;
27701 esac
27702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27703   (eval "$ac_try") 2>&5
27704   ac_status=$?
27705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27706   (exit $ac_status); }; }; then
27707   ac_cv_search_mallinfo=$ac_res
27708 else
27709   echo "$as_me: failed program was:" >&5
27710 sed 's/^/| /' conftest.$ac_ext >&5
27711
27712
27713 fi
27714
27715 rm -f core conftest.err conftest.$ac_objext \
27716       conftest$ac_exeext
27717   if test "${ac_cv_search_mallinfo+set}" = set; then
27718   break
27719 fi
27720 done
27721 if test "${ac_cv_search_mallinfo+set}" = set; then
27722   :
27723 else
27724   ac_cv_search_mallinfo=no
27725 fi
27726 rm conftest.$ac_ext
27727 LIBS=$ac_func_search_save_LIBS
27728 fi
27729 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27730 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27731 ac_res=$ac_cv_search_mallinfo
27732 if test "$ac_res" != no; then
27733   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27734
27735 cat >>confdefs.h <<\_ACEOF
27736 #define HAVE_MALLINFO 1
27737 _ACEOF
27738
27739 fi
27740
27741
27742 if test "$ENABLE_THREADS" -eq 1 ; then
27743
27744 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27745 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27746 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27747   echo $ECHO_N "(cached) $ECHO_C" >&6
27748 else
27749   ac_check_lib_save_LIBS=$LIBS
27750 LIBS="-lpthread  $LIBS"
27751 cat >conftest.$ac_ext <<_ACEOF
27752 /* confdefs.h.  */
27753 _ACEOF
27754 cat confdefs.h >>conftest.$ac_ext
27755 cat >>conftest.$ac_ext <<_ACEOF
27756 /* end confdefs.h.  */
27757
27758 /* Override any GCC internal prototype to avoid an error.
27759    Use char because int might match the return type of a GCC
27760    builtin and then its argument prototype would still apply.  */
27761 #ifdef __cplusplus
27762 extern "C"
27763 #endif
27764 char pthread_mutex_init ();
27765 int
27766 main ()
27767 {
27768 return pthread_mutex_init ();
27769   ;
27770   return 0;
27771 }
27772 _ACEOF
27773 rm -f conftest.$ac_objext conftest$ac_exeext
27774 if { (ac_try="$ac_link"
27775 case "(($ac_try" in
27776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27777   *) ac_try_echo=$ac_try;;
27778 esac
27779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27780   (eval "$ac_link") 2>conftest.er1
27781   ac_status=$?
27782   grep -v '^ *+' conftest.er1 >conftest.err
27783   rm -f conftest.er1
27784   cat conftest.err >&5
27785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27786   (exit $ac_status); } &&
27787          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27788   { (case "(($ac_try" in
27789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27790   *) ac_try_echo=$ac_try;;
27791 esac
27792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27793   (eval "$ac_try") 2>&5
27794   ac_status=$?
27795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27796   (exit $ac_status); }; } &&
27797          { ac_try='test -s conftest$ac_exeext'
27798   { (case "(($ac_try" in
27799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27800   *) ac_try_echo=$ac_try;;
27801 esac
27802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27803   (eval "$ac_try") 2>&5
27804   ac_status=$?
27805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27806   (exit $ac_status); }; }; then
27807   ac_cv_lib_pthread_pthread_mutex_init=yes
27808 else
27809   echo "$as_me: failed program was:" >&5
27810 sed 's/^/| /' conftest.$ac_ext >&5
27811
27812         ac_cv_lib_pthread_pthread_mutex_init=no
27813 fi
27814
27815 rm -f core conftest.err conftest.$ac_objext \
27816       conftest$ac_exeext conftest.$ac_ext
27817 LIBS=$ac_check_lib_save_LIBS
27818 fi
27819 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27820 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
27821 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27822   cat >>confdefs.h <<_ACEOF
27823 #define HAVE_LIBPTHREAD 1
27824 _ACEOF
27825
27826   LIBS="-lpthread $LIBS"
27827
27828 fi
27829
27830   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27831 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
27832 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27833   echo $ECHO_N "(cached) $ECHO_C" >&6
27834 else
27835   ac_func_search_save_LIBS=$LIBS
27836 cat >conftest.$ac_ext <<_ACEOF
27837 /* confdefs.h.  */
27838 _ACEOF
27839 cat confdefs.h >>conftest.$ac_ext
27840 cat >>conftest.$ac_ext <<_ACEOF
27841 /* end confdefs.h.  */
27842
27843 /* Override any GCC internal prototype to avoid an error.
27844    Use char because int might match the return type of a GCC
27845    builtin and then its argument prototype would still apply.  */
27846 #ifdef __cplusplus
27847 extern "C"
27848 #endif
27849 char pthread_mutex_lock ();
27850 int
27851 main ()
27852 {
27853 return pthread_mutex_lock ();
27854   ;
27855   return 0;
27856 }
27857 _ACEOF
27858 for ac_lib in '' pthread; do
27859   if test -z "$ac_lib"; then
27860     ac_res="none required"
27861   else
27862     ac_res=-l$ac_lib
27863     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27864   fi
27865   rm -f conftest.$ac_objext conftest$ac_exeext
27866 if { (ac_try="$ac_link"
27867 case "(($ac_try" in
27868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27869   *) ac_try_echo=$ac_try;;
27870 esac
27871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27872   (eval "$ac_link") 2>conftest.er1
27873   ac_status=$?
27874   grep -v '^ *+' conftest.er1 >conftest.err
27875   rm -f conftest.er1
27876   cat conftest.err >&5
27877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27878   (exit $ac_status); } &&
27879          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27880   { (case "(($ac_try" in
27881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27882   *) ac_try_echo=$ac_try;;
27883 esac
27884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27885   (eval "$ac_try") 2>&5
27886   ac_status=$?
27887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27888   (exit $ac_status); }; } &&
27889          { ac_try='test -s conftest$ac_exeext'
27890   { (case "(($ac_try" in
27891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27892   *) ac_try_echo=$ac_try;;
27893 esac
27894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27895   (eval "$ac_try") 2>&5
27896   ac_status=$?
27897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27898   (exit $ac_status); }; }; then
27899   ac_cv_search_pthread_mutex_lock=$ac_res
27900 else
27901   echo "$as_me: failed program was:" >&5
27902 sed 's/^/| /' conftest.$ac_ext >&5
27903
27904
27905 fi
27906
27907 rm -f core conftest.err conftest.$ac_objext \
27908       conftest$ac_exeext
27909   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27910   break
27911 fi
27912 done
27913 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27914   :
27915 else
27916   ac_cv_search_pthread_mutex_lock=no
27917 fi
27918 rm conftest.$ac_ext
27919 LIBS=$ac_func_search_save_LIBS
27920 fi
27921 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27922 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27923 ac_res=$ac_cv_search_pthread_mutex_lock
27924 if test "$ac_res" != no; then
27925   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27926
27927 cat >>confdefs.h <<\_ACEOF
27928 #define HAVE_PTHREAD_MUTEX_LOCK 1
27929 _ACEOF
27930
27931 fi
27932
27933   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
27934 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
27935 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
27936   echo $ECHO_N "(cached) $ECHO_C" >&6
27937 else
27938   ac_func_search_save_LIBS=$LIBS
27939 cat >conftest.$ac_ext <<_ACEOF
27940 /* confdefs.h.  */
27941 _ACEOF
27942 cat confdefs.h >>conftest.$ac_ext
27943 cat >>conftest.$ac_ext <<_ACEOF
27944 /* end confdefs.h.  */
27945
27946 /* Override any GCC internal prototype to avoid an error.
27947    Use char because int might match the return type of a GCC
27948    builtin and then its argument prototype would still apply.  */
27949 #ifdef __cplusplus
27950 extern "C"
27951 #endif
27952 char pthread_rwlock_init ();
27953 int
27954 main ()
27955 {
27956 return pthread_rwlock_init ();
27957   ;
27958   return 0;
27959 }
27960 _ACEOF
27961 for ac_lib in '' pthread; do
27962   if test -z "$ac_lib"; then
27963     ac_res="none required"
27964   else
27965     ac_res=-l$ac_lib
27966     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27967   fi
27968   rm -f conftest.$ac_objext conftest$ac_exeext
27969 if { (ac_try="$ac_link"
27970 case "(($ac_try" in
27971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27972   *) ac_try_echo=$ac_try;;
27973 esac
27974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27975   (eval "$ac_link") 2>conftest.er1
27976   ac_status=$?
27977   grep -v '^ *+' conftest.er1 >conftest.err
27978   rm -f conftest.er1
27979   cat conftest.err >&5
27980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27981   (exit $ac_status); } &&
27982          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27983   { (case "(($ac_try" in
27984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27985   *) ac_try_echo=$ac_try;;
27986 esac
27987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27988   (eval "$ac_try") 2>&5
27989   ac_status=$?
27990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27991   (exit $ac_status); }; } &&
27992          { ac_try='test -s conftest$ac_exeext'
27993   { (case "(($ac_try" in
27994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27995   *) ac_try_echo=$ac_try;;
27996 esac
27997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27998   (eval "$ac_try") 2>&5
27999   ac_status=$?
28000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28001   (exit $ac_status); }; }; then
28002   ac_cv_search_pthread_rwlock_init=$ac_res
28003 else
28004   echo "$as_me: failed program was:" >&5
28005 sed 's/^/| /' conftest.$ac_ext >&5
28006
28007
28008 fi
28009
28010 rm -f core conftest.err conftest.$ac_objext \
28011       conftest$ac_exeext
28012   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28013   break
28014 fi
28015 done
28016 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28017   :
28018 else
28019   ac_cv_search_pthread_rwlock_init=no
28020 fi
28021 rm conftest.$ac_ext
28022 LIBS=$ac_func_search_save_LIBS
28023 fi
28024 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
28025 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
28026 ac_res=$ac_cv_search_pthread_rwlock_init
28027 if test "$ac_res" != no; then
28028   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28029
28030 cat >>confdefs.h <<\_ACEOF
28031 #define HAVE_PTHREAD_RWLOCK_INIT 1
28032 _ACEOF
28033
28034 fi
28035
28036 fi
28037
28038
28039 # Check whether --with-udis86 was given.
28040 if test "${with_udis86+set}" = set; then
28041   withval=$with_udis86;
28042       USE_UDIS86=1
28043
28044       case "$withval" in
28045         /usr/lib|yes) ;;
28046         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
28047       esac
28048
28049 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
28050 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
28051 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
28052   echo $ECHO_N "(cached) $ECHO_C" >&6
28053 else
28054   ac_check_lib_save_LIBS=$LIBS
28055 LIBS="-ludis86  $LIBS"
28056 cat >conftest.$ac_ext <<_ACEOF
28057 /* confdefs.h.  */
28058 _ACEOF
28059 cat confdefs.h >>conftest.$ac_ext
28060 cat >>conftest.$ac_ext <<_ACEOF
28061 /* end confdefs.h.  */
28062
28063 /* Override any GCC internal prototype to avoid an error.
28064    Use char because int might match the return type of a GCC
28065    builtin and then its argument prototype would still apply.  */
28066 #ifdef __cplusplus
28067 extern "C"
28068 #endif
28069 char ud_init ();
28070 int
28071 main ()
28072 {
28073 return ud_init ();
28074   ;
28075   return 0;
28076 }
28077 _ACEOF
28078 rm -f conftest.$ac_objext conftest$ac_exeext
28079 if { (ac_try="$ac_link"
28080 case "(($ac_try" in
28081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28082   *) ac_try_echo=$ac_try;;
28083 esac
28084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28085   (eval "$ac_link") 2>conftest.er1
28086   ac_status=$?
28087   grep -v '^ *+' conftest.er1 >conftest.err
28088   rm -f conftest.er1
28089   cat conftest.err >&5
28090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28091   (exit $ac_status); } &&
28092          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28093   { (case "(($ac_try" in
28094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28095   *) ac_try_echo=$ac_try;;
28096 esac
28097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28098   (eval "$ac_try") 2>&5
28099   ac_status=$?
28100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28101   (exit $ac_status); }; } &&
28102          { ac_try='test -s conftest$ac_exeext'
28103   { (case "(($ac_try" in
28104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28105   *) ac_try_echo=$ac_try;;
28106 esac
28107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28108   (eval "$ac_try") 2>&5
28109   ac_status=$?
28110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28111   (exit $ac_status); }; }; then
28112   ac_cv_lib_udis86_ud_init=yes
28113 else
28114   echo "$as_me: failed program was:" >&5
28115 sed 's/^/| /' conftest.$ac_ext >&5
28116
28117         ac_cv_lib_udis86_ud_init=no
28118 fi
28119
28120 rm -f core conftest.err conftest.$ac_objext \
28121       conftest$ac_exeext conftest.$ac_ext
28122 LIBS=$ac_check_lib_save_LIBS
28123 fi
28124 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
28125 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
28126 if test $ac_cv_lib_udis86_ud_init = yes; then
28127   cat >>confdefs.h <<_ACEOF
28128 #define HAVE_LIBUDIS86 1
28129 _ACEOF
28130
28131   LIBS="-ludis86 $LIBS"
28132
28133 else
28134
28135         echo "Error! You need to have libudis86 around."
28136         exit -1
28137
28138 fi
28139
28140
28141 else
28142   USE_UDIS86=0
28143
28144 fi
28145
28146
28147 cat >>confdefs.h <<_ACEOF
28148 #define USE_UDIS86 $USE_UDIS86
28149 _ACEOF
28150
28151
28152
28153
28154
28155
28156
28157
28158 ac_header_dirent=no
28159 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
28160   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
28161 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
28162 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
28163 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28164   echo $ECHO_N "(cached) $ECHO_C" >&6
28165 else
28166   cat >conftest.$ac_ext <<_ACEOF
28167 /* confdefs.h.  */
28168 _ACEOF
28169 cat confdefs.h >>conftest.$ac_ext
28170 cat >>conftest.$ac_ext <<_ACEOF
28171 /* end confdefs.h.  */
28172 #include <sys/types.h>
28173 #include <$ac_hdr>
28174
28175 int
28176 main ()
28177 {
28178 if ((DIR *) 0)
28179 return 0;
28180   ;
28181   return 0;
28182 }
28183 _ACEOF
28184 rm -f conftest.$ac_objext
28185 if { (ac_try="$ac_compile"
28186 case "(($ac_try" in
28187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28188   *) ac_try_echo=$ac_try;;
28189 esac
28190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28191   (eval "$ac_compile") 2>conftest.er1
28192   ac_status=$?
28193   grep -v '^ *+' conftest.er1 >conftest.err
28194   rm -f conftest.er1
28195   cat conftest.err >&5
28196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28197   (exit $ac_status); } &&
28198          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28199   { (case "(($ac_try" in
28200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28201   *) ac_try_echo=$ac_try;;
28202 esac
28203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28204   (eval "$ac_try") 2>&5
28205   ac_status=$?
28206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28207   (exit $ac_status); }; } &&
28208          { ac_try='test -s conftest.$ac_objext'
28209   { (case "(($ac_try" in
28210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28211   *) ac_try_echo=$ac_try;;
28212 esac
28213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28214   (eval "$ac_try") 2>&5
28215   ac_status=$?
28216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28217   (exit $ac_status); }; }; then
28218   eval "$as_ac_Header=yes"
28219 else
28220   echo "$as_me: failed program was:" >&5
28221 sed 's/^/| /' conftest.$ac_ext >&5
28222
28223         eval "$as_ac_Header=no"
28224 fi
28225
28226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28227 fi
28228 ac_res=`eval echo '${'$as_ac_Header'}'`
28229                { echo "$as_me:$LINENO: result: $ac_res" >&5
28230 echo "${ECHO_T}$ac_res" >&6; }
28231 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28232   cat >>confdefs.h <<_ACEOF
28233 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
28234 _ACEOF
28235
28236 ac_header_dirent=$ac_hdr; break
28237 fi
28238
28239 done
28240 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
28241 if test $ac_header_dirent = dirent.h; then
28242   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28243 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28244 if test "${ac_cv_search_opendir+set}" = set; then
28245   echo $ECHO_N "(cached) $ECHO_C" >&6
28246 else
28247   ac_func_search_save_LIBS=$LIBS
28248 cat >conftest.$ac_ext <<_ACEOF
28249 /* confdefs.h.  */
28250 _ACEOF
28251 cat confdefs.h >>conftest.$ac_ext
28252 cat >>conftest.$ac_ext <<_ACEOF
28253 /* end confdefs.h.  */
28254
28255 /* Override any GCC internal prototype to avoid an error.
28256    Use char because int might match the return type of a GCC
28257    builtin and then its argument prototype would still apply.  */
28258 #ifdef __cplusplus
28259 extern "C"
28260 #endif
28261 char opendir ();
28262 int
28263 main ()
28264 {
28265 return opendir ();
28266   ;
28267   return 0;
28268 }
28269 _ACEOF
28270 for ac_lib in '' dir; do
28271   if test -z "$ac_lib"; then
28272     ac_res="none required"
28273   else
28274     ac_res=-l$ac_lib
28275     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28276   fi
28277   rm -f conftest.$ac_objext conftest$ac_exeext
28278 if { (ac_try="$ac_link"
28279 case "(($ac_try" in
28280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28281   *) ac_try_echo=$ac_try;;
28282 esac
28283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28284   (eval "$ac_link") 2>conftest.er1
28285   ac_status=$?
28286   grep -v '^ *+' conftest.er1 >conftest.err
28287   rm -f conftest.er1
28288   cat conftest.err >&5
28289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28290   (exit $ac_status); } &&
28291          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28292   { (case "(($ac_try" in
28293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28294   *) ac_try_echo=$ac_try;;
28295 esac
28296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28297   (eval "$ac_try") 2>&5
28298   ac_status=$?
28299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28300   (exit $ac_status); }; } &&
28301          { ac_try='test -s conftest$ac_exeext'
28302   { (case "(($ac_try" in
28303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28304   *) ac_try_echo=$ac_try;;
28305 esac
28306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28307   (eval "$ac_try") 2>&5
28308   ac_status=$?
28309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28310   (exit $ac_status); }; }; then
28311   ac_cv_search_opendir=$ac_res
28312 else
28313   echo "$as_me: failed program was:" >&5
28314 sed 's/^/| /' conftest.$ac_ext >&5
28315
28316
28317 fi
28318
28319 rm -f core conftest.err conftest.$ac_objext \
28320       conftest$ac_exeext
28321   if test "${ac_cv_search_opendir+set}" = set; then
28322   break
28323 fi
28324 done
28325 if test "${ac_cv_search_opendir+set}" = set; then
28326   :
28327 else
28328   ac_cv_search_opendir=no
28329 fi
28330 rm conftest.$ac_ext
28331 LIBS=$ac_func_search_save_LIBS
28332 fi
28333 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28334 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28335 ac_res=$ac_cv_search_opendir
28336 if test "$ac_res" != no; then
28337   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28338
28339 fi
28340
28341 else
28342   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28343 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28344 if test "${ac_cv_search_opendir+set}" = set; then
28345   echo $ECHO_N "(cached) $ECHO_C" >&6
28346 else
28347   ac_func_search_save_LIBS=$LIBS
28348 cat >conftest.$ac_ext <<_ACEOF
28349 /* confdefs.h.  */
28350 _ACEOF
28351 cat confdefs.h >>conftest.$ac_ext
28352 cat >>conftest.$ac_ext <<_ACEOF
28353 /* end confdefs.h.  */
28354
28355 /* Override any GCC internal prototype to avoid an error.
28356    Use char because int might match the return type of a GCC
28357    builtin and then its argument prototype would still apply.  */
28358 #ifdef __cplusplus
28359 extern "C"
28360 #endif
28361 char opendir ();
28362 int
28363 main ()
28364 {
28365 return opendir ();
28366   ;
28367   return 0;
28368 }
28369 _ACEOF
28370 for ac_lib in '' x; do
28371   if test -z "$ac_lib"; then
28372     ac_res="none required"
28373   else
28374     ac_res=-l$ac_lib
28375     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28376   fi
28377   rm -f conftest.$ac_objext conftest$ac_exeext
28378 if { (ac_try="$ac_link"
28379 case "(($ac_try" in
28380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28381   *) ac_try_echo=$ac_try;;
28382 esac
28383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28384   (eval "$ac_link") 2>conftest.er1
28385   ac_status=$?
28386   grep -v '^ *+' conftest.er1 >conftest.err
28387   rm -f conftest.er1
28388   cat conftest.err >&5
28389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28390   (exit $ac_status); } &&
28391          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28392   { (case "(($ac_try" in
28393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28394   *) ac_try_echo=$ac_try;;
28395 esac
28396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28397   (eval "$ac_try") 2>&5
28398   ac_status=$?
28399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28400   (exit $ac_status); }; } &&
28401          { ac_try='test -s conftest$ac_exeext'
28402   { (case "(($ac_try" in
28403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28404   *) ac_try_echo=$ac_try;;
28405 esac
28406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28407   (eval "$ac_try") 2>&5
28408   ac_status=$?
28409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28410   (exit $ac_status); }; }; then
28411   ac_cv_search_opendir=$ac_res
28412 else
28413   echo "$as_me: failed program was:" >&5
28414 sed 's/^/| /' conftest.$ac_ext >&5
28415
28416
28417 fi
28418
28419 rm -f core conftest.err conftest.$ac_objext \
28420       conftest$ac_exeext
28421   if test "${ac_cv_search_opendir+set}" = set; then
28422   break
28423 fi
28424 done
28425 if test "${ac_cv_search_opendir+set}" = set; then
28426   :
28427 else
28428   ac_cv_search_opendir=no
28429 fi
28430 rm conftest.$ac_ext
28431 LIBS=$ac_func_search_save_LIBS
28432 fi
28433 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28434 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28435 ac_res=$ac_cv_search_opendir
28436 if test "$ac_res" != no; then
28437   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28438
28439 fi
28440
28441 fi
28442
28443 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28444 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
28445 if test "${ac_cv_header_mmap_anon+set}" = set; then
28446   echo $ECHO_N "(cached) $ECHO_C" >&6
28447 else
28448    ac_ext=c
28449 ac_cpp='$CPP $CPPFLAGS'
28450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28453
28454   cat >conftest.$ac_ext <<_ACEOF
28455 /* confdefs.h.  */
28456 _ACEOF
28457 cat confdefs.h >>conftest.$ac_ext
28458 cat >>conftest.$ac_ext <<_ACEOF
28459 /* end confdefs.h.  */
28460 #include <sys/mman.h>
28461 #include <unistd.h>
28462 #include <fcntl.h>
28463 int
28464 main ()
28465 {
28466 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28467   ;
28468   return 0;
28469 }
28470 _ACEOF
28471 rm -f conftest.$ac_objext
28472 if { (ac_try="$ac_compile"
28473 case "(($ac_try" in
28474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28475   *) ac_try_echo=$ac_try;;
28476 esac
28477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28478   (eval "$ac_compile") 2>conftest.er1
28479   ac_status=$?
28480   grep -v '^ *+' conftest.er1 >conftest.err
28481   rm -f conftest.er1
28482   cat conftest.err >&5
28483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28484   (exit $ac_status); } &&
28485          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28486   { (case "(($ac_try" in
28487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28488   *) ac_try_echo=$ac_try;;
28489 esac
28490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28491   (eval "$ac_try") 2>&5
28492   ac_status=$?
28493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28494   (exit $ac_status); }; } &&
28495          { ac_try='test -s conftest.$ac_objext'
28496   { (case "(($ac_try" in
28497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28498   *) ac_try_echo=$ac_try;;
28499 esac
28500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28501   (eval "$ac_try") 2>&5
28502   ac_status=$?
28503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28504   (exit $ac_status); }; }; then
28505   ac_cv_header_mmap_anon=yes
28506 else
28507   echo "$as_me: failed program was:" >&5
28508 sed 's/^/| /' conftest.$ac_ext >&5
28509
28510         ac_cv_header_mmap_anon=no
28511 fi
28512
28513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28514   ac_ext=c
28515 ac_cpp='$CPP $CPPFLAGS'
28516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28519
28520
28521 fi
28522 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28523 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
28524 if test "$ac_cv_header_mmap_anon" = yes; then
28525
28526 cat >>confdefs.h <<\_ACEOF
28527 #define HAVE_MMAP_ANONYMOUS 1
28528 _ACEOF
28529
28530 fi
28531
28532 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28533 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
28534 if test "${ac_cv_header_stat_broken+set}" = set; then
28535   echo $ECHO_N "(cached) $ECHO_C" >&6
28536 else
28537   cat >conftest.$ac_ext <<_ACEOF
28538 /* confdefs.h.  */
28539 _ACEOF
28540 cat confdefs.h >>conftest.$ac_ext
28541 cat >>conftest.$ac_ext <<_ACEOF
28542 /* end confdefs.h.  */
28543 #include <sys/types.h>
28544 #include <sys/stat.h>
28545
28546 #if defined S_ISBLK && defined S_IFDIR
28547 # if S_ISBLK (S_IFDIR)
28548 You lose.
28549 # endif
28550 #endif
28551
28552 #if defined S_ISBLK && defined S_IFCHR
28553 # if S_ISBLK (S_IFCHR)
28554 You lose.
28555 # endif
28556 #endif
28557
28558 #if defined S_ISLNK && defined S_IFREG
28559 # if S_ISLNK (S_IFREG)
28560 You lose.
28561 # endif
28562 #endif
28563
28564 #if defined S_ISSOCK && defined S_IFREG
28565 # if S_ISSOCK (S_IFREG)
28566 You lose.
28567 # endif
28568 #endif
28569
28570 _ACEOF
28571 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28572   $EGREP "You lose" >/dev/null 2>&1; then
28573   ac_cv_header_stat_broken=yes
28574 else
28575   ac_cv_header_stat_broken=no
28576 fi
28577 rm -f conftest*
28578
28579 fi
28580 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28581 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
28582 if test $ac_cv_header_stat_broken = yes; then
28583
28584 cat >>confdefs.h <<\_ACEOF
28585 #define STAT_MACROS_BROKEN 1
28586 _ACEOF
28587
28588 fi
28589
28590 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28591 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
28592 if test "${ac_cv_header_stdc+set}" = set; then
28593   echo $ECHO_N "(cached) $ECHO_C" >&6
28594 else
28595   cat >conftest.$ac_ext <<_ACEOF
28596 /* confdefs.h.  */
28597 _ACEOF
28598 cat confdefs.h >>conftest.$ac_ext
28599 cat >>conftest.$ac_ext <<_ACEOF
28600 /* end confdefs.h.  */
28601 #include <stdlib.h>
28602 #include <stdarg.h>
28603 #include <string.h>
28604 #include <float.h>
28605
28606 int
28607 main ()
28608 {
28609
28610   ;
28611   return 0;
28612 }
28613 _ACEOF
28614 rm -f conftest.$ac_objext
28615 if { (ac_try="$ac_compile"
28616 case "(($ac_try" in
28617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28618   *) ac_try_echo=$ac_try;;
28619 esac
28620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28621   (eval "$ac_compile") 2>conftest.er1
28622   ac_status=$?
28623   grep -v '^ *+' conftest.er1 >conftest.err
28624   rm -f conftest.er1
28625   cat conftest.err >&5
28626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28627   (exit $ac_status); } &&
28628          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28629   { (case "(($ac_try" in
28630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28631   *) ac_try_echo=$ac_try;;
28632 esac
28633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28634   (eval "$ac_try") 2>&5
28635   ac_status=$?
28636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28637   (exit $ac_status); }; } &&
28638          { ac_try='test -s conftest.$ac_objext'
28639   { (case "(($ac_try" in
28640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28641   *) ac_try_echo=$ac_try;;
28642 esac
28643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28644   (eval "$ac_try") 2>&5
28645   ac_status=$?
28646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28647   (exit $ac_status); }; }; then
28648   ac_cv_header_stdc=yes
28649 else
28650   echo "$as_me: failed program was:" >&5
28651 sed 's/^/| /' conftest.$ac_ext >&5
28652
28653         ac_cv_header_stdc=no
28654 fi
28655
28656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28657
28658 if test $ac_cv_header_stdc = yes; then
28659   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28660   cat >conftest.$ac_ext <<_ACEOF
28661 /* confdefs.h.  */
28662 _ACEOF
28663 cat confdefs.h >>conftest.$ac_ext
28664 cat >>conftest.$ac_ext <<_ACEOF
28665 /* end confdefs.h.  */
28666 #include <string.h>
28667
28668 _ACEOF
28669 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28670   $EGREP "memchr" >/dev/null 2>&1; then
28671   :
28672 else
28673   ac_cv_header_stdc=no
28674 fi
28675 rm -f conftest*
28676
28677 fi
28678
28679 if test $ac_cv_header_stdc = yes; then
28680   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28681   cat >conftest.$ac_ext <<_ACEOF
28682 /* confdefs.h.  */
28683 _ACEOF
28684 cat confdefs.h >>conftest.$ac_ext
28685 cat >>conftest.$ac_ext <<_ACEOF
28686 /* end confdefs.h.  */
28687 #include <stdlib.h>
28688
28689 _ACEOF
28690 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28691   $EGREP "free" >/dev/null 2>&1; then
28692   :
28693 else
28694   ac_cv_header_stdc=no
28695 fi
28696 rm -f conftest*
28697
28698 fi
28699
28700 if test $ac_cv_header_stdc = yes; then
28701   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28702   if test "$cross_compiling" = yes; then
28703   :
28704 else
28705   cat >conftest.$ac_ext <<_ACEOF
28706 /* confdefs.h.  */
28707 _ACEOF
28708 cat confdefs.h >>conftest.$ac_ext
28709 cat >>conftest.$ac_ext <<_ACEOF
28710 /* end confdefs.h.  */
28711 #include <ctype.h>
28712 #include <stdlib.h>
28713 #if ((' ' & 0x0FF) == 0x020)
28714 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28715 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28716 #else
28717 # define ISLOWER(c) \
28718                    (('a' <= (c) && (c) <= 'i') \
28719                      || ('j' <= (c) && (c) <= 'r') \
28720                      || ('s' <= (c) && (c) <= 'z'))
28721 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28722 #endif
28723
28724 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28725 int
28726 main ()
28727 {
28728   int i;
28729   for (i = 0; i < 256; i++)
28730     if (XOR (islower (i), ISLOWER (i))
28731         || toupper (i) != TOUPPER (i))
28732       return 2;
28733   return 0;
28734 }
28735 _ACEOF
28736 rm -f conftest$ac_exeext
28737 if { (ac_try="$ac_link"
28738 case "(($ac_try" in
28739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28740   *) ac_try_echo=$ac_try;;
28741 esac
28742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28743   (eval "$ac_link") 2>&5
28744   ac_status=$?
28745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28746   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28747   { (case "(($ac_try" in
28748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28749   *) ac_try_echo=$ac_try;;
28750 esac
28751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28752   (eval "$ac_try") 2>&5
28753   ac_status=$?
28754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28755   (exit $ac_status); }; }; then
28756   :
28757 else
28758   echo "$as_me: program exited with status $ac_status" >&5
28759 echo "$as_me: failed program was:" >&5
28760 sed 's/^/| /' conftest.$ac_ext >&5
28761
28762 ( exit $ac_status )
28763 ac_cv_header_stdc=no
28764 fi
28765 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28766 fi
28767
28768
28769 fi
28770 fi
28771 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28772 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
28773 if test $ac_cv_header_stdc = yes; then
28774
28775 cat >>confdefs.h <<\_ACEOF
28776 #define STDC_HEADERS 1
28777 _ACEOF
28778
28779 fi
28780
28781 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28782 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
28783 if test "${ac_cv_header_sys_wait_h+set}" = set; then
28784   echo $ECHO_N "(cached) $ECHO_C" >&6
28785 else
28786   cat >conftest.$ac_ext <<_ACEOF
28787 /* confdefs.h.  */
28788 _ACEOF
28789 cat confdefs.h >>conftest.$ac_ext
28790 cat >>conftest.$ac_ext <<_ACEOF
28791 /* end confdefs.h.  */
28792 #include <sys/types.h>
28793 #include <sys/wait.h>
28794 #ifndef WEXITSTATUS
28795 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
28796 #endif
28797 #ifndef WIFEXITED
28798 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28799 #endif
28800
28801 int
28802 main ()
28803 {
28804   int s;
28805   wait (&s);
28806   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28807   ;
28808   return 0;
28809 }
28810 _ACEOF
28811 rm -f conftest.$ac_objext
28812 if { (ac_try="$ac_compile"
28813 case "(($ac_try" in
28814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28815   *) ac_try_echo=$ac_try;;
28816 esac
28817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28818   (eval "$ac_compile") 2>conftest.er1
28819   ac_status=$?
28820   grep -v '^ *+' conftest.er1 >conftest.err
28821   rm -f conftest.er1
28822   cat conftest.err >&5
28823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28824   (exit $ac_status); } &&
28825          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28826   { (case "(($ac_try" in
28827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28828   *) ac_try_echo=$ac_try;;
28829 esac
28830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28831   (eval "$ac_try") 2>&5
28832   ac_status=$?
28833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28834   (exit $ac_status); }; } &&
28835          { ac_try='test -s conftest.$ac_objext'
28836   { (case "(($ac_try" in
28837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28838   *) ac_try_echo=$ac_try;;
28839 esac
28840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28841   (eval "$ac_try") 2>&5
28842   ac_status=$?
28843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28844   (exit $ac_status); }; }; then
28845   ac_cv_header_sys_wait_h=yes
28846 else
28847   echo "$as_me: failed program was:" >&5
28848 sed 's/^/| /' conftest.$ac_ext >&5
28849
28850         ac_cv_header_sys_wait_h=no
28851 fi
28852
28853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28854 fi
28855 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28856 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
28857 if test $ac_cv_header_sys_wait_h = yes; then
28858
28859 cat >>confdefs.h <<\_ACEOF
28860 #define HAVE_SYS_WAIT_H 1
28861 _ACEOF
28862
28863 fi
28864
28865 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28866 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
28867 if test "${ac_cv_header_time+set}" = set; then
28868   echo $ECHO_N "(cached) $ECHO_C" >&6
28869 else
28870   cat >conftest.$ac_ext <<_ACEOF
28871 /* confdefs.h.  */
28872 _ACEOF
28873 cat confdefs.h >>conftest.$ac_ext
28874 cat >>conftest.$ac_ext <<_ACEOF
28875 /* end confdefs.h.  */
28876 #include <sys/types.h>
28877 #include <sys/time.h>
28878 #include <time.h>
28879
28880 int
28881 main ()
28882 {
28883 if ((struct tm *) 0)
28884 return 0;
28885   ;
28886   return 0;
28887 }
28888 _ACEOF
28889 rm -f conftest.$ac_objext
28890 if { (ac_try="$ac_compile"
28891 case "(($ac_try" in
28892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28893   *) ac_try_echo=$ac_try;;
28894 esac
28895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28896   (eval "$ac_compile") 2>conftest.er1
28897   ac_status=$?
28898   grep -v '^ *+' conftest.er1 >conftest.err
28899   rm -f conftest.er1
28900   cat conftest.err >&5
28901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28902   (exit $ac_status); } &&
28903          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28904   { (case "(($ac_try" in
28905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28906   *) ac_try_echo=$ac_try;;
28907 esac
28908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28909   (eval "$ac_try") 2>&5
28910   ac_status=$?
28911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28912   (exit $ac_status); }; } &&
28913          { ac_try='test -s conftest.$ac_objext'
28914   { (case "(($ac_try" in
28915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28916   *) ac_try_echo=$ac_try;;
28917 esac
28918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28919   (eval "$ac_try") 2>&5
28920   ac_status=$?
28921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28922   (exit $ac_status); }; }; then
28923   ac_cv_header_time=yes
28924 else
28925   echo "$as_me: failed program was:" >&5
28926 sed 's/^/| /' conftest.$ac_ext >&5
28927
28928         ac_cv_header_time=no
28929 fi
28930
28931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28932 fi
28933 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28934 echo "${ECHO_T}$ac_cv_header_time" >&6; }
28935 if test $ac_cv_header_time = yes; then
28936
28937 cat >>confdefs.h <<\_ACEOF
28938 #define TIME_WITH_SYS_TIME 1
28939 _ACEOF
28940
28941 fi
28942
28943
28944
28945
28946
28947
28948
28949
28950 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28951 do
28952 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28953 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28954   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28955 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28956 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28957   echo $ECHO_N "(cached) $ECHO_C" >&6
28958 fi
28959 ac_res=`eval echo '${'$as_ac_Header'}'`
28960                { echo "$as_me:$LINENO: result: $ac_res" >&5
28961 echo "${ECHO_T}$ac_res" >&6; }
28962 else
28963   # Is the header compilable?
28964 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28965 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28966 cat >conftest.$ac_ext <<_ACEOF
28967 /* confdefs.h.  */
28968 _ACEOF
28969 cat confdefs.h >>conftest.$ac_ext
28970 cat >>conftest.$ac_ext <<_ACEOF
28971 /* end confdefs.h.  */
28972 $ac_includes_default
28973 #include <$ac_header>
28974 _ACEOF
28975 rm -f conftest.$ac_objext
28976 if { (ac_try="$ac_compile"
28977 case "(($ac_try" in
28978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28979   *) ac_try_echo=$ac_try;;
28980 esac
28981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28982   (eval "$ac_compile") 2>conftest.er1
28983   ac_status=$?
28984   grep -v '^ *+' conftest.er1 >conftest.err
28985   rm -f conftest.er1
28986   cat conftest.err >&5
28987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28988   (exit $ac_status); } &&
28989          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28990   { (case "(($ac_try" in
28991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28992   *) ac_try_echo=$ac_try;;
28993 esac
28994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28995   (eval "$ac_try") 2>&5
28996   ac_status=$?
28997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28998   (exit $ac_status); }; } &&
28999          { ac_try='test -s conftest.$ac_objext'
29000   { (case "(($ac_try" in
29001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29002   *) ac_try_echo=$ac_try;;
29003 esac
29004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29005   (eval "$ac_try") 2>&5
29006   ac_status=$?
29007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29008   (exit $ac_status); }; }; then
29009   ac_header_compiler=yes
29010 else
29011   echo "$as_me: failed program was:" >&5
29012 sed 's/^/| /' conftest.$ac_ext >&5
29013
29014         ac_header_compiler=no
29015 fi
29016
29017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29018 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29019 echo "${ECHO_T}$ac_header_compiler" >&6; }
29020
29021 # Is the header present?
29022 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29023 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29024 cat >conftest.$ac_ext <<_ACEOF
29025 /* confdefs.h.  */
29026 _ACEOF
29027 cat confdefs.h >>conftest.$ac_ext
29028 cat >>conftest.$ac_ext <<_ACEOF
29029 /* end confdefs.h.  */
29030 #include <$ac_header>
29031 _ACEOF
29032 if { (ac_try="$ac_cpp conftest.$ac_ext"
29033 case "(($ac_try" in
29034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29035   *) ac_try_echo=$ac_try;;
29036 esac
29037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29038   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29039   ac_status=$?
29040   grep -v '^ *+' conftest.er1 >conftest.err
29041   rm -f conftest.er1
29042   cat conftest.err >&5
29043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29044   (exit $ac_status); } >/dev/null; then
29045   if test -s conftest.err; then
29046     ac_cpp_err=$ac_c_preproc_warn_flag
29047     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29048   else
29049     ac_cpp_err=
29050   fi
29051 else
29052   ac_cpp_err=yes
29053 fi
29054 if test -z "$ac_cpp_err"; then
29055   ac_header_preproc=yes
29056 else
29057   echo "$as_me: failed program was:" >&5
29058 sed 's/^/| /' conftest.$ac_ext >&5
29059
29060   ac_header_preproc=no
29061 fi
29062
29063 rm -f conftest.err conftest.$ac_ext
29064 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29065 echo "${ECHO_T}$ac_header_preproc" >&6; }
29066
29067 # So?  What about this header?
29068 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29069   yes:no: )
29070     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29071 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29072     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29073 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29074     ac_header_preproc=yes
29075     ;;
29076   no:yes:* )
29077     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29078 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29079     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29080 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29081     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29082 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29083     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29084 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29085     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29086 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29087     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29088 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29089     ( cat <<\_ASBOX
29090 ## ----------------------------------- ##
29091 ## Report this to llvmbugs@cs.uiuc.edu ##
29092 ## ----------------------------------- ##
29093 _ASBOX
29094      ) | sed "s/^/$as_me: WARNING:     /" >&2
29095     ;;
29096 esac
29097 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29098 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29099 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29100   echo $ECHO_N "(cached) $ECHO_C" >&6
29101 else
29102   eval "$as_ac_Header=\$ac_header_preproc"
29103 fi
29104 ac_res=`eval echo '${'$as_ac_Header'}'`
29105                { echo "$as_me:$LINENO: result: $ac_res" >&5
29106 echo "${ECHO_T}$ac_res" >&6; }
29107
29108 fi
29109 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29110   cat >>confdefs.h <<_ACEOF
29111 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29112 _ACEOF
29113
29114 fi
29115
29116 done
29117
29118
29119
29120
29121
29122
29123
29124 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
29125 do
29126 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29127 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29128   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29129 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29130 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29131   echo $ECHO_N "(cached) $ECHO_C" >&6
29132 fi
29133 ac_res=`eval echo '${'$as_ac_Header'}'`
29134                { echo "$as_me:$LINENO: result: $ac_res" >&5
29135 echo "${ECHO_T}$ac_res" >&6; }
29136 else
29137   # Is the header compilable?
29138 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29139 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29140 cat >conftest.$ac_ext <<_ACEOF
29141 /* confdefs.h.  */
29142 _ACEOF
29143 cat confdefs.h >>conftest.$ac_ext
29144 cat >>conftest.$ac_ext <<_ACEOF
29145 /* end confdefs.h.  */
29146 $ac_includes_default
29147 #include <$ac_header>
29148 _ACEOF
29149 rm -f conftest.$ac_objext
29150 if { (ac_try="$ac_compile"
29151 case "(($ac_try" in
29152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29153   *) ac_try_echo=$ac_try;;
29154 esac
29155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29156   (eval "$ac_compile") 2>conftest.er1
29157   ac_status=$?
29158   grep -v '^ *+' conftest.er1 >conftest.err
29159   rm -f conftest.er1
29160   cat conftest.err >&5
29161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29162   (exit $ac_status); } &&
29163          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29164   { (case "(($ac_try" in
29165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29166   *) ac_try_echo=$ac_try;;
29167 esac
29168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29169   (eval "$ac_try") 2>&5
29170   ac_status=$?
29171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29172   (exit $ac_status); }; } &&
29173          { ac_try='test -s conftest.$ac_objext'
29174   { (case "(($ac_try" in
29175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29176   *) ac_try_echo=$ac_try;;
29177 esac
29178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29179   (eval "$ac_try") 2>&5
29180   ac_status=$?
29181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29182   (exit $ac_status); }; }; then
29183   ac_header_compiler=yes
29184 else
29185   echo "$as_me: failed program was:" >&5
29186 sed 's/^/| /' conftest.$ac_ext >&5
29187
29188         ac_header_compiler=no
29189 fi
29190
29191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29192 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29193 echo "${ECHO_T}$ac_header_compiler" >&6; }
29194
29195 # Is the header present?
29196 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29197 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29198 cat >conftest.$ac_ext <<_ACEOF
29199 /* confdefs.h.  */
29200 _ACEOF
29201 cat confdefs.h >>conftest.$ac_ext
29202 cat >>conftest.$ac_ext <<_ACEOF
29203 /* end confdefs.h.  */
29204 #include <$ac_header>
29205 _ACEOF
29206 if { (ac_try="$ac_cpp conftest.$ac_ext"
29207 case "(($ac_try" in
29208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29209   *) ac_try_echo=$ac_try;;
29210 esac
29211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29212   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29213   ac_status=$?
29214   grep -v '^ *+' conftest.er1 >conftest.err
29215   rm -f conftest.er1
29216   cat conftest.err >&5
29217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29218   (exit $ac_status); } >/dev/null; then
29219   if test -s conftest.err; then
29220     ac_cpp_err=$ac_c_preproc_warn_flag
29221     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29222   else
29223     ac_cpp_err=
29224   fi
29225 else
29226   ac_cpp_err=yes
29227 fi
29228 if test -z "$ac_cpp_err"; then
29229   ac_header_preproc=yes
29230 else
29231   echo "$as_me: failed program was:" >&5
29232 sed 's/^/| /' conftest.$ac_ext >&5
29233
29234   ac_header_preproc=no
29235 fi
29236
29237 rm -f conftest.err conftest.$ac_ext
29238 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29239 echo "${ECHO_T}$ac_header_preproc" >&6; }
29240
29241 # So?  What about this header?
29242 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29243   yes:no: )
29244     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29245 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29246     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29247 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29248     ac_header_preproc=yes
29249     ;;
29250   no:yes:* )
29251     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29252 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29253     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29254 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29255     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29256 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29257     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29258 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29259     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29260 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29261     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29262 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29263     ( cat <<\_ASBOX
29264 ## ----------------------------------- ##
29265 ## Report this to llvmbugs@cs.uiuc.edu ##
29266 ## ----------------------------------- ##
29267 _ASBOX
29268      ) | sed "s/^/$as_me: WARNING:     /" >&2
29269     ;;
29270 esac
29271 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29272 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29273 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29274   echo $ECHO_N "(cached) $ECHO_C" >&6
29275 else
29276   eval "$as_ac_Header=\$ac_header_preproc"
29277 fi
29278 ac_res=`eval echo '${'$as_ac_Header'}'`
29279                { echo "$as_me:$LINENO: result: $ac_res" >&5
29280 echo "${ECHO_T}$ac_res" >&6; }
29281
29282 fi
29283 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29284   cat >>confdefs.h <<_ACEOF
29285 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29286 _ACEOF
29287
29288 fi
29289
29290 done
29291
29292
29293
29294 for ac_header in utime.h windows.h
29295 do
29296 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29297 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29298   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29299 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29300 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29301   echo $ECHO_N "(cached) $ECHO_C" >&6
29302 fi
29303 ac_res=`eval echo '${'$as_ac_Header'}'`
29304                { echo "$as_me:$LINENO: result: $ac_res" >&5
29305 echo "${ECHO_T}$ac_res" >&6; }
29306 else
29307   # Is the header compilable?
29308 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29309 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29310 cat >conftest.$ac_ext <<_ACEOF
29311 /* confdefs.h.  */
29312 _ACEOF
29313 cat confdefs.h >>conftest.$ac_ext
29314 cat >>conftest.$ac_ext <<_ACEOF
29315 /* end confdefs.h.  */
29316 $ac_includes_default
29317 #include <$ac_header>
29318 _ACEOF
29319 rm -f conftest.$ac_objext
29320 if { (ac_try="$ac_compile"
29321 case "(($ac_try" in
29322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29323   *) ac_try_echo=$ac_try;;
29324 esac
29325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29326   (eval "$ac_compile") 2>conftest.er1
29327   ac_status=$?
29328   grep -v '^ *+' conftest.er1 >conftest.err
29329   rm -f conftest.er1
29330   cat conftest.err >&5
29331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29332   (exit $ac_status); } &&
29333          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29334   { (case "(($ac_try" in
29335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29336   *) ac_try_echo=$ac_try;;
29337 esac
29338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29339   (eval "$ac_try") 2>&5
29340   ac_status=$?
29341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29342   (exit $ac_status); }; } &&
29343          { ac_try='test -s conftest.$ac_objext'
29344   { (case "(($ac_try" in
29345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29346   *) ac_try_echo=$ac_try;;
29347 esac
29348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29349   (eval "$ac_try") 2>&5
29350   ac_status=$?
29351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29352   (exit $ac_status); }; }; then
29353   ac_header_compiler=yes
29354 else
29355   echo "$as_me: failed program was:" >&5
29356 sed 's/^/| /' conftest.$ac_ext >&5
29357
29358         ac_header_compiler=no
29359 fi
29360
29361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29362 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29363 echo "${ECHO_T}$ac_header_compiler" >&6; }
29364
29365 # Is the header present?
29366 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29367 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29368 cat >conftest.$ac_ext <<_ACEOF
29369 /* confdefs.h.  */
29370 _ACEOF
29371 cat confdefs.h >>conftest.$ac_ext
29372 cat >>conftest.$ac_ext <<_ACEOF
29373 /* end confdefs.h.  */
29374 #include <$ac_header>
29375 _ACEOF
29376 if { (ac_try="$ac_cpp conftest.$ac_ext"
29377 case "(($ac_try" in
29378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29379   *) ac_try_echo=$ac_try;;
29380 esac
29381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29382   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29383   ac_status=$?
29384   grep -v '^ *+' conftest.er1 >conftest.err
29385   rm -f conftest.er1
29386   cat conftest.err >&5
29387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29388   (exit $ac_status); } >/dev/null; then
29389   if test -s conftest.err; then
29390     ac_cpp_err=$ac_c_preproc_warn_flag
29391     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29392   else
29393     ac_cpp_err=
29394   fi
29395 else
29396   ac_cpp_err=yes
29397 fi
29398 if test -z "$ac_cpp_err"; then
29399   ac_header_preproc=yes
29400 else
29401   echo "$as_me: failed program was:" >&5
29402 sed 's/^/| /' conftest.$ac_ext >&5
29403
29404   ac_header_preproc=no
29405 fi
29406
29407 rm -f conftest.err conftest.$ac_ext
29408 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29409 echo "${ECHO_T}$ac_header_preproc" >&6; }
29410
29411 # So?  What about this header?
29412 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29413   yes:no: )
29414     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29415 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29416     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29417 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29418     ac_header_preproc=yes
29419     ;;
29420   no:yes:* )
29421     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29422 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29423     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29424 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29425     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29426 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29427     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29428 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29429     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29430 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29431     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29432 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29433     ( cat <<\_ASBOX
29434 ## ----------------------------------- ##
29435 ## Report this to llvmbugs@cs.uiuc.edu ##
29436 ## ----------------------------------- ##
29437 _ASBOX
29438      ) | sed "s/^/$as_me: WARNING:     /" >&2
29439     ;;
29440 esac
29441 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29442 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29443 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29444   echo $ECHO_N "(cached) $ECHO_C" >&6
29445 else
29446   eval "$as_ac_Header=\$ac_header_preproc"
29447 fi
29448 ac_res=`eval echo '${'$as_ac_Header'}'`
29449                { echo "$as_me:$LINENO: result: $ac_res" >&5
29450 echo "${ECHO_T}$ac_res" >&6; }
29451
29452 fi
29453 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29454   cat >>confdefs.h <<_ACEOF
29455 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29456 _ACEOF
29457
29458 fi
29459
29460 done
29461
29462
29463
29464
29465
29466 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
29467 do
29468 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29469 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29470   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29471 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29472 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29473   echo $ECHO_N "(cached) $ECHO_C" >&6
29474 fi
29475 ac_res=`eval echo '${'$as_ac_Header'}'`
29476                { echo "$as_me:$LINENO: result: $ac_res" >&5
29477 echo "${ECHO_T}$ac_res" >&6; }
29478 else
29479   # Is the header compilable?
29480 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29481 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29482 cat >conftest.$ac_ext <<_ACEOF
29483 /* confdefs.h.  */
29484 _ACEOF
29485 cat confdefs.h >>conftest.$ac_ext
29486 cat >>conftest.$ac_ext <<_ACEOF
29487 /* end confdefs.h.  */
29488 $ac_includes_default
29489 #include <$ac_header>
29490 _ACEOF
29491 rm -f conftest.$ac_objext
29492 if { (ac_try="$ac_compile"
29493 case "(($ac_try" in
29494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29495   *) ac_try_echo=$ac_try;;
29496 esac
29497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29498   (eval "$ac_compile") 2>conftest.er1
29499   ac_status=$?
29500   grep -v '^ *+' conftest.er1 >conftest.err
29501   rm -f conftest.er1
29502   cat conftest.err >&5
29503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29504   (exit $ac_status); } &&
29505          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29506   { (case "(($ac_try" in
29507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29508   *) ac_try_echo=$ac_try;;
29509 esac
29510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29511   (eval "$ac_try") 2>&5
29512   ac_status=$?
29513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29514   (exit $ac_status); }; } &&
29515          { ac_try='test -s conftest.$ac_objext'
29516   { (case "(($ac_try" in
29517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29518   *) ac_try_echo=$ac_try;;
29519 esac
29520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29521   (eval "$ac_try") 2>&5
29522   ac_status=$?
29523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29524   (exit $ac_status); }; }; then
29525   ac_header_compiler=yes
29526 else
29527   echo "$as_me: failed program was:" >&5
29528 sed 's/^/| /' conftest.$ac_ext >&5
29529
29530         ac_header_compiler=no
29531 fi
29532
29533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29534 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29535 echo "${ECHO_T}$ac_header_compiler" >&6; }
29536
29537 # Is the header present?
29538 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29539 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29540 cat >conftest.$ac_ext <<_ACEOF
29541 /* confdefs.h.  */
29542 _ACEOF
29543 cat confdefs.h >>conftest.$ac_ext
29544 cat >>conftest.$ac_ext <<_ACEOF
29545 /* end confdefs.h.  */
29546 #include <$ac_header>
29547 _ACEOF
29548 if { (ac_try="$ac_cpp conftest.$ac_ext"
29549 case "(($ac_try" in
29550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29551   *) ac_try_echo=$ac_try;;
29552 esac
29553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29554   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29555   ac_status=$?
29556   grep -v '^ *+' conftest.er1 >conftest.err
29557   rm -f conftest.er1
29558   cat conftest.err >&5
29559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29560   (exit $ac_status); } >/dev/null; then
29561   if test -s conftest.err; then
29562     ac_cpp_err=$ac_c_preproc_warn_flag
29563     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29564   else
29565     ac_cpp_err=
29566   fi
29567 else
29568   ac_cpp_err=yes
29569 fi
29570 if test -z "$ac_cpp_err"; then
29571   ac_header_preproc=yes
29572 else
29573   echo "$as_me: failed program was:" >&5
29574 sed 's/^/| /' conftest.$ac_ext >&5
29575
29576   ac_header_preproc=no
29577 fi
29578
29579 rm -f conftest.err conftest.$ac_ext
29580 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29581 echo "${ECHO_T}$ac_header_preproc" >&6; }
29582
29583 # So?  What about this header?
29584 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29585   yes:no: )
29586     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29587 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29588     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29589 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29590     ac_header_preproc=yes
29591     ;;
29592   no:yes:* )
29593     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29594 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29595     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29596 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29597     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29598 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29599     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29600 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29601     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29602 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29603     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29604 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29605     ( cat <<\_ASBOX
29606 ## ----------------------------------- ##
29607 ## Report this to llvmbugs@cs.uiuc.edu ##
29608 ## ----------------------------------- ##
29609 _ASBOX
29610      ) | sed "s/^/$as_me: WARNING:     /" >&2
29611     ;;
29612 esac
29613 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29614 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29615 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29616   echo $ECHO_N "(cached) $ECHO_C" >&6
29617 else
29618   eval "$as_ac_Header=\$ac_header_preproc"
29619 fi
29620 ac_res=`eval echo '${'$as_ac_Header'}'`
29621                { echo "$as_me:$LINENO: result: $ac_res" >&5
29622 echo "${ECHO_T}$ac_res" >&6; }
29623
29624 fi
29625 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29626   cat >>confdefs.h <<_ACEOF
29627 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29628 _ACEOF
29629
29630 fi
29631
29632 done
29633
29634
29635
29636
29637
29638 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
29639 do
29640 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29641 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29642   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29643 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29644 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29645   echo $ECHO_N "(cached) $ECHO_C" >&6
29646 fi
29647 ac_res=`eval echo '${'$as_ac_Header'}'`
29648                { echo "$as_me:$LINENO: result: $ac_res" >&5
29649 echo "${ECHO_T}$ac_res" >&6; }
29650 else
29651   # Is the header compilable?
29652 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29653 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29654 cat >conftest.$ac_ext <<_ACEOF
29655 /* confdefs.h.  */
29656 _ACEOF
29657 cat confdefs.h >>conftest.$ac_ext
29658 cat >>conftest.$ac_ext <<_ACEOF
29659 /* end confdefs.h.  */
29660 $ac_includes_default
29661 #include <$ac_header>
29662 _ACEOF
29663 rm -f conftest.$ac_objext
29664 if { (ac_try="$ac_compile"
29665 case "(($ac_try" in
29666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29667   *) ac_try_echo=$ac_try;;
29668 esac
29669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29670   (eval "$ac_compile") 2>conftest.er1
29671   ac_status=$?
29672   grep -v '^ *+' conftest.er1 >conftest.err
29673   rm -f conftest.er1
29674   cat conftest.err >&5
29675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29676   (exit $ac_status); } &&
29677          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29678   { (case "(($ac_try" in
29679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29680   *) ac_try_echo=$ac_try;;
29681 esac
29682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29683   (eval "$ac_try") 2>&5
29684   ac_status=$?
29685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29686   (exit $ac_status); }; } &&
29687          { ac_try='test -s conftest.$ac_objext'
29688   { (case "(($ac_try" in
29689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29690   *) ac_try_echo=$ac_try;;
29691 esac
29692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29693   (eval "$ac_try") 2>&5
29694   ac_status=$?
29695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29696   (exit $ac_status); }; }; then
29697   ac_header_compiler=yes
29698 else
29699   echo "$as_me: failed program was:" >&5
29700 sed 's/^/| /' conftest.$ac_ext >&5
29701
29702         ac_header_compiler=no
29703 fi
29704
29705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29706 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29707 echo "${ECHO_T}$ac_header_compiler" >&6; }
29708
29709 # Is the header present?
29710 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29711 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29712 cat >conftest.$ac_ext <<_ACEOF
29713 /* confdefs.h.  */
29714 _ACEOF
29715 cat confdefs.h >>conftest.$ac_ext
29716 cat >>conftest.$ac_ext <<_ACEOF
29717 /* end confdefs.h.  */
29718 #include <$ac_header>
29719 _ACEOF
29720 if { (ac_try="$ac_cpp conftest.$ac_ext"
29721 case "(($ac_try" in
29722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29723   *) ac_try_echo=$ac_try;;
29724 esac
29725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29726   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29727   ac_status=$?
29728   grep -v '^ *+' conftest.er1 >conftest.err
29729   rm -f conftest.er1
29730   cat conftest.err >&5
29731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29732   (exit $ac_status); } >/dev/null; then
29733   if test -s conftest.err; then
29734     ac_cpp_err=$ac_c_preproc_warn_flag
29735     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29736   else
29737     ac_cpp_err=
29738   fi
29739 else
29740   ac_cpp_err=yes
29741 fi
29742 if test -z "$ac_cpp_err"; then
29743   ac_header_preproc=yes
29744 else
29745   echo "$as_me: failed program was:" >&5
29746 sed 's/^/| /' conftest.$ac_ext >&5
29747
29748   ac_header_preproc=no
29749 fi
29750
29751 rm -f conftest.err conftest.$ac_ext
29752 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29753 echo "${ECHO_T}$ac_header_preproc" >&6; }
29754
29755 # So?  What about this header?
29756 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29757   yes:no: )
29758     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29759 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29760     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29761 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29762     ac_header_preproc=yes
29763     ;;
29764   no:yes:* )
29765     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29766 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29767     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29768 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29769     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29770 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29771     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29772 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29773     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29774 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29775     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29776 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29777     ( cat <<\_ASBOX
29778 ## ----------------------------------- ##
29779 ## Report this to llvmbugs@cs.uiuc.edu ##
29780 ## ----------------------------------- ##
29781 _ASBOX
29782      ) | sed "s/^/$as_me: WARNING:     /" >&2
29783     ;;
29784 esac
29785 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29786 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29787 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29788   echo $ECHO_N "(cached) $ECHO_C" >&6
29789 else
29790   eval "$as_ac_Header=\$ac_header_preproc"
29791 fi
29792 ac_res=`eval echo '${'$as_ac_Header'}'`
29793                { echo "$as_me:$LINENO: result: $ac_res" >&5
29794 echo "${ECHO_T}$ac_res" >&6; }
29795
29796 fi
29797 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29798   cat >>confdefs.h <<_ACEOF
29799 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29800 _ACEOF
29801
29802 fi
29803
29804 done
29805
29806 if test "$ENABLE_THREADS" -eq 1 ; then
29807
29808 for ac_header in pthread.h
29809 do
29810 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29811 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29812   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29813 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29814 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29815   echo $ECHO_N "(cached) $ECHO_C" >&6
29816 fi
29817 ac_res=`eval echo '${'$as_ac_Header'}'`
29818                { echo "$as_me:$LINENO: result: $ac_res" >&5
29819 echo "${ECHO_T}$ac_res" >&6; }
29820 else
29821   # Is the header compilable?
29822 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29823 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29824 cat >conftest.$ac_ext <<_ACEOF
29825 /* confdefs.h.  */
29826 _ACEOF
29827 cat confdefs.h >>conftest.$ac_ext
29828 cat >>conftest.$ac_ext <<_ACEOF
29829 /* end confdefs.h.  */
29830 $ac_includes_default
29831 #include <$ac_header>
29832 _ACEOF
29833 rm -f conftest.$ac_objext
29834 if { (ac_try="$ac_compile"
29835 case "(($ac_try" in
29836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29837   *) ac_try_echo=$ac_try;;
29838 esac
29839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29840   (eval "$ac_compile") 2>conftest.er1
29841   ac_status=$?
29842   grep -v '^ *+' conftest.er1 >conftest.err
29843   rm -f conftest.er1
29844   cat conftest.err >&5
29845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29846   (exit $ac_status); } &&
29847          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29848   { (case "(($ac_try" in
29849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29850   *) ac_try_echo=$ac_try;;
29851 esac
29852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29853   (eval "$ac_try") 2>&5
29854   ac_status=$?
29855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29856   (exit $ac_status); }; } &&
29857          { ac_try='test -s conftest.$ac_objext'
29858   { (case "(($ac_try" in
29859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29860   *) ac_try_echo=$ac_try;;
29861 esac
29862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29863   (eval "$ac_try") 2>&5
29864   ac_status=$?
29865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29866   (exit $ac_status); }; }; then
29867   ac_header_compiler=yes
29868 else
29869   echo "$as_me: failed program was:" >&5
29870 sed 's/^/| /' conftest.$ac_ext >&5
29871
29872         ac_header_compiler=no
29873 fi
29874
29875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29876 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29877 echo "${ECHO_T}$ac_header_compiler" >&6; }
29878
29879 # Is the header present?
29880 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29881 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29882 cat >conftest.$ac_ext <<_ACEOF
29883 /* confdefs.h.  */
29884 _ACEOF
29885 cat confdefs.h >>conftest.$ac_ext
29886 cat >>conftest.$ac_ext <<_ACEOF
29887 /* end confdefs.h.  */
29888 #include <$ac_header>
29889 _ACEOF
29890 if { (ac_try="$ac_cpp conftest.$ac_ext"
29891 case "(($ac_try" in
29892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29893   *) ac_try_echo=$ac_try;;
29894 esac
29895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29896   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29897   ac_status=$?
29898   grep -v '^ *+' conftest.er1 >conftest.err
29899   rm -f conftest.er1
29900   cat conftest.err >&5
29901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29902   (exit $ac_status); } >/dev/null; then
29903   if test -s conftest.err; then
29904     ac_cpp_err=$ac_c_preproc_warn_flag
29905     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29906   else
29907     ac_cpp_err=
29908   fi
29909 else
29910   ac_cpp_err=yes
29911 fi
29912 if test -z "$ac_cpp_err"; then
29913   ac_header_preproc=yes
29914 else
29915   echo "$as_me: failed program was:" >&5
29916 sed 's/^/| /' conftest.$ac_ext >&5
29917
29918   ac_header_preproc=no
29919 fi
29920
29921 rm -f conftest.err conftest.$ac_ext
29922 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29923 echo "${ECHO_T}$ac_header_preproc" >&6; }
29924
29925 # So?  What about this header?
29926 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29927   yes:no: )
29928     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29929 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29930     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29931 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29932     ac_header_preproc=yes
29933     ;;
29934   no:yes:* )
29935     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29936 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29937     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29938 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29939     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29940 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29941     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29942 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29943     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29944 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29945     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29946 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29947     ( cat <<\_ASBOX
29948 ## ----------------------------------- ##
29949 ## Report this to llvmbugs@cs.uiuc.edu ##
29950 ## ----------------------------------- ##
29951 _ASBOX
29952      ) | sed "s/^/$as_me: WARNING:     /" >&2
29953     ;;
29954 esac
29955 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29956 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29957 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29958   echo $ECHO_N "(cached) $ECHO_C" >&6
29959 else
29960   eval "$as_ac_Header=\$ac_header_preproc"
29961 fi
29962 ac_res=`eval echo '${'$as_ac_Header'}'`
29963                { echo "$as_me:$LINENO: result: $ac_res" >&5
29964 echo "${ECHO_T}$ac_res" >&6; }
29965
29966 fi
29967 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29968   cat >>confdefs.h <<_ACEOF
29969 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29970 _ACEOF
29971  HAVE_PTHREAD=1
29972
29973 else
29974   HAVE_PTHREAD=0
29975
29976 fi
29977
29978 done
29979
29980 else
29981   HAVE_PTHREAD=0
29982
29983 fi
29984
29985 if test "$llvm_cv_enable_libffi" = "yes" ; then
29986
29987
29988 for ac_header in ffi.h ffi/ffi.h
29989 do
29990 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29991 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29992   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29993 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29994 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29995   echo $ECHO_N "(cached) $ECHO_C" >&6
29996 fi
29997 ac_res=`eval echo '${'$as_ac_Header'}'`
29998                { echo "$as_me:$LINENO: result: $ac_res" >&5
29999 echo "${ECHO_T}$ac_res" >&6; }
30000 else
30001   # Is the header compilable?
30002 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30003 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30004 cat >conftest.$ac_ext <<_ACEOF
30005 /* confdefs.h.  */
30006 _ACEOF
30007 cat confdefs.h >>conftest.$ac_ext
30008 cat >>conftest.$ac_ext <<_ACEOF
30009 /* end confdefs.h.  */
30010 $ac_includes_default
30011 #include <$ac_header>
30012 _ACEOF
30013 rm -f conftest.$ac_objext
30014 if { (ac_try="$ac_compile"
30015 case "(($ac_try" in
30016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30017   *) ac_try_echo=$ac_try;;
30018 esac
30019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30020   (eval "$ac_compile") 2>conftest.er1
30021   ac_status=$?
30022   grep -v '^ *+' conftest.er1 >conftest.err
30023   rm -f conftest.er1
30024   cat conftest.err >&5
30025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30026   (exit $ac_status); } &&
30027          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30028   { (case "(($ac_try" in
30029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30030   *) ac_try_echo=$ac_try;;
30031 esac
30032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30033   (eval "$ac_try") 2>&5
30034   ac_status=$?
30035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30036   (exit $ac_status); }; } &&
30037          { ac_try='test -s conftest.$ac_objext'
30038   { (case "(($ac_try" in
30039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30040   *) ac_try_echo=$ac_try;;
30041 esac
30042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30043   (eval "$ac_try") 2>&5
30044   ac_status=$?
30045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30046   (exit $ac_status); }; }; then
30047   ac_header_compiler=yes
30048 else
30049   echo "$as_me: failed program was:" >&5
30050 sed 's/^/| /' conftest.$ac_ext >&5
30051
30052         ac_header_compiler=no
30053 fi
30054
30055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30056 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30057 echo "${ECHO_T}$ac_header_compiler" >&6; }
30058
30059 # Is the header present?
30060 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30061 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30062 cat >conftest.$ac_ext <<_ACEOF
30063 /* confdefs.h.  */
30064 _ACEOF
30065 cat confdefs.h >>conftest.$ac_ext
30066 cat >>conftest.$ac_ext <<_ACEOF
30067 /* end confdefs.h.  */
30068 #include <$ac_header>
30069 _ACEOF
30070 if { (ac_try="$ac_cpp conftest.$ac_ext"
30071 case "(($ac_try" in
30072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30073   *) ac_try_echo=$ac_try;;
30074 esac
30075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30076   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30077   ac_status=$?
30078   grep -v '^ *+' conftest.er1 >conftest.err
30079   rm -f conftest.er1
30080   cat conftest.err >&5
30081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30082   (exit $ac_status); } >/dev/null; then
30083   if test -s conftest.err; then
30084     ac_cpp_err=$ac_c_preproc_warn_flag
30085     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30086   else
30087     ac_cpp_err=
30088   fi
30089 else
30090   ac_cpp_err=yes
30091 fi
30092 if test -z "$ac_cpp_err"; then
30093   ac_header_preproc=yes
30094 else
30095   echo "$as_me: failed program was:" >&5
30096 sed 's/^/| /' conftest.$ac_ext >&5
30097
30098   ac_header_preproc=no
30099 fi
30100
30101 rm -f conftest.err conftest.$ac_ext
30102 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30103 echo "${ECHO_T}$ac_header_preproc" >&6; }
30104
30105 # So?  What about this header?
30106 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30107   yes:no: )
30108     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30109 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30110     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30111 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30112     ac_header_preproc=yes
30113     ;;
30114   no:yes:* )
30115     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30116 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30117     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30118 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30119     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30120 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30121     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30122 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30123     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30124 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30125     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30126 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30127     ( cat <<\_ASBOX
30128 ## ----------------------------------- ##
30129 ## Report this to llvmbugs@cs.uiuc.edu ##
30130 ## ----------------------------------- ##
30131 _ASBOX
30132      ) | sed "s/^/$as_me: WARNING:     /" >&2
30133     ;;
30134 esac
30135 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30136 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30137 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30138   echo $ECHO_N "(cached) $ECHO_C" >&6
30139 else
30140   eval "$as_ac_Header=\$ac_header_preproc"
30141 fi
30142 ac_res=`eval echo '${'$as_ac_Header'}'`
30143                { echo "$as_me:$LINENO: result: $ac_res" >&5
30144 echo "${ECHO_T}$ac_res" >&6; }
30145
30146 fi
30147 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30148   cat >>confdefs.h <<_ACEOF
30149 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30150 _ACEOF
30151
30152 fi
30153
30154 done
30155
30156 fi
30157
30158
30159
30160   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
30161 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
30162 if test "${ac_cv_huge_val_sanity+set}" = set; then
30163   echo $ECHO_N "(cached) $ECHO_C" >&6
30164 else
30165
30166     ac_ext=cpp
30167 ac_cpp='$CXXCPP $CPPFLAGS'
30168 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30169 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30170 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30171
30172     CXXFLAGS=-pedantic
30173     if test "$cross_compiling" = yes; then
30174   ac_cv_huge_val_sanity=yes
30175 else
30176   cat >conftest.$ac_ext <<_ACEOF
30177 /* confdefs.h.  */
30178 _ACEOF
30179 cat confdefs.h >>conftest.$ac_ext
30180 cat >>conftest.$ac_ext <<_ACEOF
30181 /* end confdefs.h.  */
30182 #include <math.h>
30183 int
30184 main ()
30185 {
30186 double x = HUGE_VAL; return x != x;
30187   ;
30188   return 0;
30189 }
30190 _ACEOF
30191 rm -f conftest$ac_exeext
30192 if { (ac_try="$ac_link"
30193 case "(($ac_try" in
30194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30195   *) ac_try_echo=$ac_try;;
30196 esac
30197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30198   (eval "$ac_link") 2>&5
30199   ac_status=$?
30200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30201   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_huge_val_sanity=yes
30212 else
30213   echo "$as_me: program exited with status $ac_status" >&5
30214 echo "$as_me: failed program was:" >&5
30215 sed 's/^/| /' conftest.$ac_ext >&5
30216
30217 ( exit $ac_status )
30218 ac_cv_huge_val_sanity=no
30219 fi
30220 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30221 fi
30222
30223
30224     ac_ext=c
30225 ac_cpp='$CPP $CPPFLAGS'
30226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30229
30230
30231 fi
30232 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
30233 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
30234   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
30235
30236
30237 { echo "$as_me:$LINENO: checking for pid_t" >&5
30238 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
30239 if test "${ac_cv_type_pid_t+set}" = set; then
30240   echo $ECHO_N "(cached) $ECHO_C" >&6
30241 else
30242   cat >conftest.$ac_ext <<_ACEOF
30243 /* confdefs.h.  */
30244 _ACEOF
30245 cat confdefs.h >>conftest.$ac_ext
30246 cat >>conftest.$ac_ext <<_ACEOF
30247 /* end confdefs.h.  */
30248 $ac_includes_default
30249 typedef pid_t ac__type_new_;
30250 int
30251 main ()
30252 {
30253 if ((ac__type_new_ *) 0)
30254   return 0;
30255 if (sizeof (ac__type_new_))
30256   return 0;
30257   ;
30258   return 0;
30259 }
30260 _ACEOF
30261 rm -f conftest.$ac_objext
30262 if { (ac_try="$ac_compile"
30263 case "(($ac_try" in
30264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30265   *) ac_try_echo=$ac_try;;
30266 esac
30267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30268   (eval "$ac_compile") 2>conftest.er1
30269   ac_status=$?
30270   grep -v '^ *+' conftest.er1 >conftest.err
30271   rm -f conftest.er1
30272   cat conftest.err >&5
30273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30274   (exit $ac_status); } &&
30275          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30276   { (case "(($ac_try" in
30277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30278   *) ac_try_echo=$ac_try;;
30279 esac
30280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30281   (eval "$ac_try") 2>&5
30282   ac_status=$?
30283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30284   (exit $ac_status); }; } &&
30285          { ac_try='test -s conftest.$ac_objext'
30286   { (case "(($ac_try" in
30287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30288   *) ac_try_echo=$ac_try;;
30289 esac
30290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30291   (eval "$ac_try") 2>&5
30292   ac_status=$?
30293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30294   (exit $ac_status); }; }; then
30295   ac_cv_type_pid_t=yes
30296 else
30297   echo "$as_me: failed program was:" >&5
30298 sed 's/^/| /' conftest.$ac_ext >&5
30299
30300         ac_cv_type_pid_t=no
30301 fi
30302
30303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30304 fi
30305 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
30306 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
30307 if test $ac_cv_type_pid_t = yes; then
30308   :
30309 else
30310
30311 cat >>confdefs.h <<_ACEOF
30312 #define pid_t int
30313 _ACEOF
30314
30315 fi
30316
30317 { echo "$as_me:$LINENO: checking for size_t" >&5
30318 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
30319 if test "${ac_cv_type_size_t+set}" = set; then
30320   echo $ECHO_N "(cached) $ECHO_C" >&6
30321 else
30322   cat >conftest.$ac_ext <<_ACEOF
30323 /* confdefs.h.  */
30324 _ACEOF
30325 cat confdefs.h >>conftest.$ac_ext
30326 cat >>conftest.$ac_ext <<_ACEOF
30327 /* end confdefs.h.  */
30328 $ac_includes_default
30329 typedef size_t ac__type_new_;
30330 int
30331 main ()
30332 {
30333 if ((ac__type_new_ *) 0)
30334   return 0;
30335 if (sizeof (ac__type_new_))
30336   return 0;
30337   ;
30338   return 0;
30339 }
30340 _ACEOF
30341 rm -f conftest.$ac_objext
30342 if { (ac_try="$ac_compile"
30343 case "(($ac_try" in
30344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30345   *) ac_try_echo=$ac_try;;
30346 esac
30347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30348   (eval "$ac_compile") 2>conftest.er1
30349   ac_status=$?
30350   grep -v '^ *+' conftest.er1 >conftest.err
30351   rm -f conftest.er1
30352   cat conftest.err >&5
30353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30354   (exit $ac_status); } &&
30355          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30356   { (case "(($ac_try" in
30357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30358   *) ac_try_echo=$ac_try;;
30359 esac
30360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30361   (eval "$ac_try") 2>&5
30362   ac_status=$?
30363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30364   (exit $ac_status); }; } &&
30365          { ac_try='test -s conftest.$ac_objext'
30366   { (case "(($ac_try" in
30367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30368   *) ac_try_echo=$ac_try;;
30369 esac
30370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30371   (eval "$ac_try") 2>&5
30372   ac_status=$?
30373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30374   (exit $ac_status); }; }; then
30375   ac_cv_type_size_t=yes
30376 else
30377   echo "$as_me: failed program was:" >&5
30378 sed 's/^/| /' conftest.$ac_ext >&5
30379
30380         ac_cv_type_size_t=no
30381 fi
30382
30383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30384 fi
30385 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
30386 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
30387 if test $ac_cv_type_size_t = yes; then
30388   :
30389 else
30390
30391 cat >>confdefs.h <<_ACEOF
30392 #define size_t unsigned int
30393 _ACEOF
30394
30395 fi
30396
30397 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
30398 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
30399 if test "${ac_cv_type_signal+set}" = set; then
30400   echo $ECHO_N "(cached) $ECHO_C" >&6
30401 else
30402   cat >conftest.$ac_ext <<_ACEOF
30403 /* confdefs.h.  */
30404 _ACEOF
30405 cat confdefs.h >>conftest.$ac_ext
30406 cat >>conftest.$ac_ext <<_ACEOF
30407 /* end confdefs.h.  */
30408 #include <sys/types.h>
30409 #include <signal.h>
30410
30411 int
30412 main ()
30413 {
30414 return *(signal (0, 0)) (0) == 1;
30415   ;
30416   return 0;
30417 }
30418 _ACEOF
30419 rm -f conftest.$ac_objext
30420 if { (ac_try="$ac_compile"
30421 case "(($ac_try" in
30422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30423   *) ac_try_echo=$ac_try;;
30424 esac
30425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30426   (eval "$ac_compile") 2>conftest.er1
30427   ac_status=$?
30428   grep -v '^ *+' conftest.er1 >conftest.err
30429   rm -f conftest.er1
30430   cat conftest.err >&5
30431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30432   (exit $ac_status); } &&
30433          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30434   { (case "(($ac_try" in
30435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30436   *) ac_try_echo=$ac_try;;
30437 esac
30438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30439   (eval "$ac_try") 2>&5
30440   ac_status=$?
30441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30442   (exit $ac_status); }; } &&
30443          { ac_try='test -s conftest.$ac_objext'
30444   { (case "(($ac_try" in
30445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30446   *) ac_try_echo=$ac_try;;
30447 esac
30448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30449   (eval "$ac_try") 2>&5
30450   ac_status=$?
30451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30452   (exit $ac_status); }; }; then
30453   ac_cv_type_signal=int
30454 else
30455   echo "$as_me: failed program was:" >&5
30456 sed 's/^/| /' conftest.$ac_ext >&5
30457
30458         ac_cv_type_signal=void
30459 fi
30460
30461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30462 fi
30463 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30464 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
30465
30466 cat >>confdefs.h <<_ACEOF
30467 #define RETSIGTYPE $ac_cv_type_signal
30468 _ACEOF
30469
30470
30471 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30472 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
30473 if test "${ac_cv_struct_tm+set}" = set; then
30474   echo $ECHO_N "(cached) $ECHO_C" >&6
30475 else
30476   cat >conftest.$ac_ext <<_ACEOF
30477 /* confdefs.h.  */
30478 _ACEOF
30479 cat confdefs.h >>conftest.$ac_ext
30480 cat >>conftest.$ac_ext <<_ACEOF
30481 /* end confdefs.h.  */
30482 #include <sys/types.h>
30483 #include <time.h>
30484
30485 int
30486 main ()
30487 {
30488 struct tm *tp; tp->tm_sec;
30489   ;
30490   return 0;
30491 }
30492 _ACEOF
30493 rm -f conftest.$ac_objext
30494 if { (ac_try="$ac_compile"
30495 case "(($ac_try" in
30496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30497   *) ac_try_echo=$ac_try;;
30498 esac
30499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30500   (eval "$ac_compile") 2>conftest.er1
30501   ac_status=$?
30502   grep -v '^ *+' conftest.er1 >conftest.err
30503   rm -f conftest.er1
30504   cat conftest.err >&5
30505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30506   (exit $ac_status); } &&
30507          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30508   { (case "(($ac_try" in
30509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30510   *) ac_try_echo=$ac_try;;
30511 esac
30512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30513   (eval "$ac_try") 2>&5
30514   ac_status=$?
30515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30516   (exit $ac_status); }; } &&
30517          { ac_try='test -s conftest.$ac_objext'
30518   { (case "(($ac_try" in
30519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30520   *) ac_try_echo=$ac_try;;
30521 esac
30522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30523   (eval "$ac_try") 2>&5
30524   ac_status=$?
30525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30526   (exit $ac_status); }; }; then
30527   ac_cv_struct_tm=time.h
30528 else
30529   echo "$as_me: failed program was:" >&5
30530 sed 's/^/| /' conftest.$ac_ext >&5
30531
30532         ac_cv_struct_tm=sys/time.h
30533 fi
30534
30535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30536 fi
30537 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30538 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
30539 if test $ac_cv_struct_tm = sys/time.h; then
30540
30541 cat >>confdefs.h <<\_ACEOF
30542 #define TM_IN_SYS_TIME 1
30543 _ACEOF
30544
30545 fi
30546
30547 { echo "$as_me:$LINENO: checking for int64_t" >&5
30548 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
30549 if test "${ac_cv_type_int64_t+set}" = set; then
30550   echo $ECHO_N "(cached) $ECHO_C" >&6
30551 else
30552   cat >conftest.$ac_ext <<_ACEOF
30553 /* confdefs.h.  */
30554 _ACEOF
30555 cat confdefs.h >>conftest.$ac_ext
30556 cat >>conftest.$ac_ext <<_ACEOF
30557 /* end confdefs.h.  */
30558 $ac_includes_default
30559 typedef int64_t ac__type_new_;
30560 int
30561 main ()
30562 {
30563 if ((ac__type_new_ *) 0)
30564   return 0;
30565 if (sizeof (ac__type_new_))
30566   return 0;
30567   ;
30568   return 0;
30569 }
30570 _ACEOF
30571 rm -f conftest.$ac_objext
30572 if { (ac_try="$ac_compile"
30573 case "(($ac_try" in
30574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30575   *) ac_try_echo=$ac_try;;
30576 esac
30577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30578   (eval "$ac_compile") 2>conftest.er1
30579   ac_status=$?
30580   grep -v '^ *+' conftest.er1 >conftest.err
30581   rm -f conftest.er1
30582   cat conftest.err >&5
30583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30584   (exit $ac_status); } &&
30585          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30586   { (case "(($ac_try" in
30587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30588   *) ac_try_echo=$ac_try;;
30589 esac
30590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30591   (eval "$ac_try") 2>&5
30592   ac_status=$?
30593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30594   (exit $ac_status); }; } &&
30595          { ac_try='test -s conftest.$ac_objext'
30596   { (case "(($ac_try" in
30597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30598   *) ac_try_echo=$ac_try;;
30599 esac
30600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30601   (eval "$ac_try") 2>&5
30602   ac_status=$?
30603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30604   (exit $ac_status); }; }; then
30605   ac_cv_type_int64_t=yes
30606 else
30607   echo "$as_me: failed program was:" >&5
30608 sed 's/^/| /' conftest.$ac_ext >&5
30609
30610         ac_cv_type_int64_t=no
30611 fi
30612
30613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30614 fi
30615 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30616 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
30617 if test $ac_cv_type_int64_t = yes; then
30618
30619 cat >>confdefs.h <<_ACEOF
30620 #define HAVE_INT64_T 1
30621 _ACEOF
30622
30623
30624 else
30625   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30626 echo "$as_me: error: Type int64_t required but not found" >&2;}
30627    { (exit 1); exit 1; }; }
30628 fi
30629
30630 { echo "$as_me:$LINENO: checking for uint64_t" >&5
30631 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
30632 if test "${ac_cv_type_uint64_t+set}" = set; then
30633   echo $ECHO_N "(cached) $ECHO_C" >&6
30634 else
30635   cat >conftest.$ac_ext <<_ACEOF
30636 /* confdefs.h.  */
30637 _ACEOF
30638 cat confdefs.h >>conftest.$ac_ext
30639 cat >>conftest.$ac_ext <<_ACEOF
30640 /* end confdefs.h.  */
30641 $ac_includes_default
30642 typedef uint64_t ac__type_new_;
30643 int
30644 main ()
30645 {
30646 if ((ac__type_new_ *) 0)
30647   return 0;
30648 if (sizeof (ac__type_new_))
30649   return 0;
30650   ;
30651   return 0;
30652 }
30653 _ACEOF
30654 rm -f conftest.$ac_objext
30655 if { (ac_try="$ac_compile"
30656 case "(($ac_try" in
30657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30658   *) ac_try_echo=$ac_try;;
30659 esac
30660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30661   (eval "$ac_compile") 2>conftest.er1
30662   ac_status=$?
30663   grep -v '^ *+' conftest.er1 >conftest.err
30664   rm -f conftest.er1
30665   cat conftest.err >&5
30666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30667   (exit $ac_status); } &&
30668          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30669   { (case "(($ac_try" in
30670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30671   *) ac_try_echo=$ac_try;;
30672 esac
30673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30674   (eval "$ac_try") 2>&5
30675   ac_status=$?
30676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30677   (exit $ac_status); }; } &&
30678          { ac_try='test -s conftest.$ac_objext'
30679   { (case "(($ac_try" in
30680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30681   *) ac_try_echo=$ac_try;;
30682 esac
30683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30684   (eval "$ac_try") 2>&5
30685   ac_status=$?
30686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30687   (exit $ac_status); }; }; then
30688   ac_cv_type_uint64_t=yes
30689 else
30690   echo "$as_me: failed program was:" >&5
30691 sed 's/^/| /' conftest.$ac_ext >&5
30692
30693         ac_cv_type_uint64_t=no
30694 fi
30695
30696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30697 fi
30698 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30699 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
30700 if test $ac_cv_type_uint64_t = yes; then
30701
30702 cat >>confdefs.h <<_ACEOF
30703 #define HAVE_UINT64_T 1
30704 _ACEOF
30705
30706
30707 else
30708   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30709 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
30710 if test "${ac_cv_type_u_int64_t+set}" = set; then
30711   echo $ECHO_N "(cached) $ECHO_C" >&6
30712 else
30713   cat >conftest.$ac_ext <<_ACEOF
30714 /* confdefs.h.  */
30715 _ACEOF
30716 cat confdefs.h >>conftest.$ac_ext
30717 cat >>conftest.$ac_ext <<_ACEOF
30718 /* end confdefs.h.  */
30719 $ac_includes_default
30720 typedef u_int64_t ac__type_new_;
30721 int
30722 main ()
30723 {
30724 if ((ac__type_new_ *) 0)
30725   return 0;
30726 if (sizeof (ac__type_new_))
30727   return 0;
30728   ;
30729   return 0;
30730 }
30731 _ACEOF
30732 rm -f conftest.$ac_objext
30733 if { (ac_try="$ac_compile"
30734 case "(($ac_try" in
30735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30736   *) ac_try_echo=$ac_try;;
30737 esac
30738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30739   (eval "$ac_compile") 2>conftest.er1
30740   ac_status=$?
30741   grep -v '^ *+' conftest.er1 >conftest.err
30742   rm -f conftest.er1
30743   cat conftest.err >&5
30744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30745   (exit $ac_status); } &&
30746          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30747   { (case "(($ac_try" in
30748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30749   *) ac_try_echo=$ac_try;;
30750 esac
30751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30752   (eval "$ac_try") 2>&5
30753   ac_status=$?
30754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30755   (exit $ac_status); }; } &&
30756          { ac_try='test -s conftest.$ac_objext'
30757   { (case "(($ac_try" in
30758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30759   *) ac_try_echo=$ac_try;;
30760 esac
30761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30762   (eval "$ac_try") 2>&5
30763   ac_status=$?
30764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30765   (exit $ac_status); }; }; then
30766   ac_cv_type_u_int64_t=yes
30767 else
30768   echo "$as_me: failed program was:" >&5
30769 sed 's/^/| /' conftest.$ac_ext >&5
30770
30771         ac_cv_type_u_int64_t=no
30772 fi
30773
30774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30775 fi
30776 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30777 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
30778 if test $ac_cv_type_u_int64_t = yes; then
30779
30780 cat >>confdefs.h <<_ACEOF
30781 #define HAVE_U_INT64_T 1
30782 _ACEOF
30783
30784
30785 else
30786   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30787 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30788    { (exit 1); exit 1; }; }
30789 fi
30790
30791 fi
30792
30793
30794
30795
30796
30797
30798
30799
30800
30801
30802 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
30803 do
30804 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30805 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30806 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30807 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30808   echo $ECHO_N "(cached) $ECHO_C" >&6
30809 else
30810   cat >conftest.$ac_ext <<_ACEOF
30811 /* confdefs.h.  */
30812 _ACEOF
30813 cat confdefs.h >>conftest.$ac_ext
30814 cat >>conftest.$ac_ext <<_ACEOF
30815 /* end confdefs.h.  */
30816 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30817    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30818 #define $ac_func innocuous_$ac_func
30819
30820 /* System header to define __stub macros and hopefully few prototypes,
30821     which can conflict with char $ac_func (); below.
30822     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30823     <limits.h> exists even on freestanding compilers.  */
30824
30825 #ifdef __STDC__
30826 # include <limits.h>
30827 #else
30828 # include <assert.h>
30829 #endif
30830
30831 #undef $ac_func
30832
30833 /* Override any GCC internal prototype to avoid an error.
30834    Use char because int might match the return type of a GCC
30835    builtin and then its argument prototype would still apply.  */
30836 #ifdef __cplusplus
30837 extern "C"
30838 #endif
30839 char $ac_func ();
30840 /* The GNU C library defines this for functions which it implements
30841     to always fail with ENOSYS.  Some functions are actually named
30842     something starting with __ and the normal name is an alias.  */
30843 #if defined __stub_$ac_func || defined __stub___$ac_func
30844 choke me
30845 #endif
30846
30847 int
30848 main ()
30849 {
30850 return $ac_func ();
30851   ;
30852   return 0;
30853 }
30854 _ACEOF
30855 rm -f conftest.$ac_objext conftest$ac_exeext
30856 if { (ac_try="$ac_link"
30857 case "(($ac_try" in
30858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30859   *) ac_try_echo=$ac_try;;
30860 esac
30861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30862   (eval "$ac_link") 2>conftest.er1
30863   ac_status=$?
30864   grep -v '^ *+' conftest.er1 >conftest.err
30865   rm -f conftest.er1
30866   cat conftest.err >&5
30867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30868   (exit $ac_status); } &&
30869          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30870   { (case "(($ac_try" in
30871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30872   *) ac_try_echo=$ac_try;;
30873 esac
30874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30875   (eval "$ac_try") 2>&5
30876   ac_status=$?
30877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30878   (exit $ac_status); }; } &&
30879          { ac_try='test -s conftest$ac_exeext'
30880   { (case "(($ac_try" in
30881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30882   *) ac_try_echo=$ac_try;;
30883 esac
30884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30885   (eval "$ac_try") 2>&5
30886   ac_status=$?
30887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30888   (exit $ac_status); }; }; then
30889   eval "$as_ac_var=yes"
30890 else
30891   echo "$as_me: failed program was:" >&5
30892 sed 's/^/| /' conftest.$ac_ext >&5
30893
30894         eval "$as_ac_var=no"
30895 fi
30896
30897 rm -f core conftest.err conftest.$ac_objext \
30898       conftest$ac_exeext conftest.$ac_ext
30899 fi
30900 ac_res=`eval echo '${'$as_ac_var'}'`
30901                { echo "$as_me:$LINENO: result: $ac_res" >&5
30902 echo "${ECHO_T}$ac_res" >&6; }
30903 if test `eval echo '${'$as_ac_var'}'` = yes; then
30904   cat >>confdefs.h <<_ACEOF
30905 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30906 _ACEOF
30907
30908 fi
30909 done
30910
30911
30912
30913
30914
30915 for ac_func in powf fmodf strtof round
30916 do
30917 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30918 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30919 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30920 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30921   echo $ECHO_N "(cached) $ECHO_C" >&6
30922 else
30923   cat >conftest.$ac_ext <<_ACEOF
30924 /* confdefs.h.  */
30925 _ACEOF
30926 cat confdefs.h >>conftest.$ac_ext
30927 cat >>conftest.$ac_ext <<_ACEOF
30928 /* end confdefs.h.  */
30929 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30930    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30931 #define $ac_func innocuous_$ac_func
30932
30933 /* System header to define __stub macros and hopefully few prototypes,
30934     which can conflict with char $ac_func (); below.
30935     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30936     <limits.h> exists even on freestanding compilers.  */
30937
30938 #ifdef __STDC__
30939 # include <limits.h>
30940 #else
30941 # include <assert.h>
30942 #endif
30943
30944 #undef $ac_func
30945
30946 /* Override any GCC internal prototype to avoid an error.
30947    Use char because int might match the return type of a GCC
30948    builtin and then its argument prototype would still apply.  */
30949 #ifdef __cplusplus
30950 extern "C"
30951 #endif
30952 char $ac_func ();
30953 /* The GNU C library defines this for functions which it implements
30954     to always fail with ENOSYS.  Some functions are actually named
30955     something starting with __ and the normal name is an alias.  */
30956 #if defined __stub_$ac_func || defined __stub___$ac_func
30957 choke me
30958 #endif
30959
30960 int
30961 main ()
30962 {
30963 return $ac_func ();
30964   ;
30965   return 0;
30966 }
30967 _ACEOF
30968 rm -f conftest.$ac_objext conftest$ac_exeext
30969 if { (ac_try="$ac_link"
30970 case "(($ac_try" in
30971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30972   *) ac_try_echo=$ac_try;;
30973 esac
30974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30975   (eval "$ac_link") 2>conftest.er1
30976   ac_status=$?
30977   grep -v '^ *+' conftest.er1 >conftest.err
30978   rm -f conftest.er1
30979   cat conftest.err >&5
30980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30981   (exit $ac_status); } &&
30982          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30983   { (case "(($ac_try" in
30984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30985   *) ac_try_echo=$ac_try;;
30986 esac
30987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30988   (eval "$ac_try") 2>&5
30989   ac_status=$?
30990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30991   (exit $ac_status); }; } &&
30992          { ac_try='test -s conftest$ac_exeext'
30993   { (case "(($ac_try" in
30994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30995   *) ac_try_echo=$ac_try;;
30996 esac
30997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30998   (eval "$ac_try") 2>&5
30999   ac_status=$?
31000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31001   (exit $ac_status); }; }; then
31002   eval "$as_ac_var=yes"
31003 else
31004   echo "$as_me: failed program was:" >&5
31005 sed 's/^/| /' conftest.$ac_ext >&5
31006
31007         eval "$as_ac_var=no"
31008 fi
31009
31010 rm -f core conftest.err conftest.$ac_objext \
31011       conftest$ac_exeext conftest.$ac_ext
31012 fi
31013 ac_res=`eval echo '${'$as_ac_var'}'`
31014                { echo "$as_me:$LINENO: result: $ac_res" >&5
31015 echo "${ECHO_T}$ac_res" >&6; }
31016 if test `eval echo '${'$as_ac_var'}'` = yes; then
31017   cat >>confdefs.h <<_ACEOF
31018 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31019 _ACEOF
31020
31021 fi
31022 done
31023
31024
31025
31026
31027
31028
31029 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
31030 do
31031 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31032 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31033 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31034 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31035   echo $ECHO_N "(cached) $ECHO_C" >&6
31036 else
31037   cat >conftest.$ac_ext <<_ACEOF
31038 /* confdefs.h.  */
31039 _ACEOF
31040 cat confdefs.h >>conftest.$ac_ext
31041 cat >>conftest.$ac_ext <<_ACEOF
31042 /* end confdefs.h.  */
31043 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31044    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31045 #define $ac_func innocuous_$ac_func
31046
31047 /* System header to define __stub macros and hopefully few prototypes,
31048     which can conflict with char $ac_func (); below.
31049     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31050     <limits.h> exists even on freestanding compilers.  */
31051
31052 #ifdef __STDC__
31053 # include <limits.h>
31054 #else
31055 # include <assert.h>
31056 #endif
31057
31058 #undef $ac_func
31059
31060 /* Override any GCC internal prototype to avoid an error.
31061    Use char because int might match the return type of a GCC
31062    builtin and then its argument prototype would still apply.  */
31063 #ifdef __cplusplus
31064 extern "C"
31065 #endif
31066 char $ac_func ();
31067 /* The GNU C library defines this for functions which it implements
31068     to always fail with ENOSYS.  Some functions are actually named
31069     something starting with __ and the normal name is an alias.  */
31070 #if defined __stub_$ac_func || defined __stub___$ac_func
31071 choke me
31072 #endif
31073
31074 int
31075 main ()
31076 {
31077 return $ac_func ();
31078   ;
31079   return 0;
31080 }
31081 _ACEOF
31082 rm -f conftest.$ac_objext conftest$ac_exeext
31083 if { (ac_try="$ac_link"
31084 case "(($ac_try" in
31085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31086   *) ac_try_echo=$ac_try;;
31087 esac
31088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31089   (eval "$ac_link") 2>conftest.er1
31090   ac_status=$?
31091   grep -v '^ *+' conftest.er1 >conftest.err
31092   rm -f conftest.er1
31093   cat conftest.err >&5
31094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31095   (exit $ac_status); } &&
31096          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31097   { (case "(($ac_try" in
31098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31099   *) ac_try_echo=$ac_try;;
31100 esac
31101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31102   (eval "$ac_try") 2>&5
31103   ac_status=$?
31104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31105   (exit $ac_status); }; } &&
31106          { ac_try='test -s conftest$ac_exeext'
31107   { (case "(($ac_try" in
31108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31109   *) ac_try_echo=$ac_try;;
31110 esac
31111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31112   (eval "$ac_try") 2>&5
31113   ac_status=$?
31114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31115   (exit $ac_status); }; }; then
31116   eval "$as_ac_var=yes"
31117 else
31118   echo "$as_me: failed program was:" >&5
31119 sed 's/^/| /' conftest.$ac_ext >&5
31120
31121         eval "$as_ac_var=no"
31122 fi
31123
31124 rm -f core conftest.err conftest.$ac_objext \
31125       conftest$ac_exeext conftest.$ac_ext
31126 fi
31127 ac_res=`eval echo '${'$as_ac_var'}'`
31128                { echo "$as_me:$LINENO: result: $ac_res" >&5
31129 echo "${ECHO_T}$ac_res" >&6; }
31130 if test `eval echo '${'$as_ac_var'}'` = yes; then
31131   cat >>confdefs.h <<_ACEOF
31132 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31133 _ACEOF
31134
31135 fi
31136 done
31137
31138
31139
31140
31141 for ac_func in isatty mkdtemp mkstemp
31142 do
31143 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31144 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31145 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31146 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31147   echo $ECHO_N "(cached) $ECHO_C" >&6
31148 else
31149   cat >conftest.$ac_ext <<_ACEOF
31150 /* confdefs.h.  */
31151 _ACEOF
31152 cat confdefs.h >>conftest.$ac_ext
31153 cat >>conftest.$ac_ext <<_ACEOF
31154 /* end confdefs.h.  */
31155 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31156    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31157 #define $ac_func innocuous_$ac_func
31158
31159 /* System header to define __stub macros and hopefully few prototypes,
31160     which can conflict with char $ac_func (); below.
31161     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31162     <limits.h> exists even on freestanding compilers.  */
31163
31164 #ifdef __STDC__
31165 # include <limits.h>
31166 #else
31167 # include <assert.h>
31168 #endif
31169
31170 #undef $ac_func
31171
31172 /* Override any GCC internal prototype to avoid an error.
31173    Use char because int might match the return type of a GCC
31174    builtin and then its argument prototype would still apply.  */
31175 #ifdef __cplusplus
31176 extern "C"
31177 #endif
31178 char $ac_func ();
31179 /* The GNU C library defines this for functions which it implements
31180     to always fail with ENOSYS.  Some functions are actually named
31181     something starting with __ and the normal name is an alias.  */
31182 #if defined __stub_$ac_func || defined __stub___$ac_func
31183 choke me
31184 #endif
31185
31186 int
31187 main ()
31188 {
31189 return $ac_func ();
31190   ;
31191   return 0;
31192 }
31193 _ACEOF
31194 rm -f conftest.$ac_objext conftest$ac_exeext
31195 if { (ac_try="$ac_link"
31196 case "(($ac_try" in
31197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31198   *) ac_try_echo=$ac_try;;
31199 esac
31200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31201   (eval "$ac_link") 2>conftest.er1
31202   ac_status=$?
31203   grep -v '^ *+' conftest.er1 >conftest.err
31204   rm -f conftest.er1
31205   cat conftest.err >&5
31206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31207   (exit $ac_status); } &&
31208          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31209   { (case "(($ac_try" in
31210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31211   *) ac_try_echo=$ac_try;;
31212 esac
31213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31214   (eval "$ac_try") 2>&5
31215   ac_status=$?
31216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31217   (exit $ac_status); }; } &&
31218          { ac_try='test -s conftest$ac_exeext'
31219   { (case "(($ac_try" in
31220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31221   *) ac_try_echo=$ac_try;;
31222 esac
31223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31224   (eval "$ac_try") 2>&5
31225   ac_status=$?
31226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31227   (exit $ac_status); }; }; then
31228   eval "$as_ac_var=yes"
31229 else
31230   echo "$as_me: failed program was:" >&5
31231 sed 's/^/| /' conftest.$ac_ext >&5
31232
31233         eval "$as_ac_var=no"
31234 fi
31235
31236 rm -f core conftest.err conftest.$ac_objext \
31237       conftest$ac_exeext conftest.$ac_ext
31238 fi
31239 ac_res=`eval echo '${'$as_ac_var'}'`
31240                { echo "$as_me:$LINENO: result: $ac_res" >&5
31241 echo "${ECHO_T}$ac_res" >&6; }
31242 if test `eval echo '${'$as_ac_var'}'` = yes; then
31243   cat >>confdefs.h <<_ACEOF
31244 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31245 _ACEOF
31246
31247 fi
31248 done
31249
31250
31251
31252
31253
31254
31255
31256
31257 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
31258 do
31259 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31260 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31261 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31262 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31263   echo $ECHO_N "(cached) $ECHO_C" >&6
31264 else
31265   cat >conftest.$ac_ext <<_ACEOF
31266 /* confdefs.h.  */
31267 _ACEOF
31268 cat confdefs.h >>conftest.$ac_ext
31269 cat >>conftest.$ac_ext <<_ACEOF
31270 /* end confdefs.h.  */
31271 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31272    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31273 #define $ac_func innocuous_$ac_func
31274
31275 /* System header to define __stub macros and hopefully few prototypes,
31276     which can conflict with char $ac_func (); below.
31277     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31278     <limits.h> exists even on freestanding compilers.  */
31279
31280 #ifdef __STDC__
31281 # include <limits.h>
31282 #else
31283 # include <assert.h>
31284 #endif
31285
31286 #undef $ac_func
31287
31288 /* Override any GCC internal prototype to avoid an error.
31289    Use char because int might match the return type of a GCC
31290    builtin and then its argument prototype would still apply.  */
31291 #ifdef __cplusplus
31292 extern "C"
31293 #endif
31294 char $ac_func ();
31295 /* The GNU C library defines this for functions which it implements
31296     to always fail with ENOSYS.  Some functions are actually named
31297     something starting with __ and the normal name is an alias.  */
31298 #if defined __stub_$ac_func || defined __stub___$ac_func
31299 choke me
31300 #endif
31301
31302 int
31303 main ()
31304 {
31305 return $ac_func ();
31306   ;
31307   return 0;
31308 }
31309 _ACEOF
31310 rm -f conftest.$ac_objext conftest$ac_exeext
31311 if { (ac_try="$ac_link"
31312 case "(($ac_try" in
31313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31314   *) ac_try_echo=$ac_try;;
31315 esac
31316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31317   (eval "$ac_link") 2>conftest.er1
31318   ac_status=$?
31319   grep -v '^ *+' conftest.er1 >conftest.err
31320   rm -f conftest.er1
31321   cat conftest.err >&5
31322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31323   (exit $ac_status); } &&
31324          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31325   { (case "(($ac_try" in
31326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31327   *) ac_try_echo=$ac_try;;
31328 esac
31329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31330   (eval "$ac_try") 2>&5
31331   ac_status=$?
31332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31333   (exit $ac_status); }; } &&
31334          { ac_try='test -s conftest$ac_exeext'
31335   { (case "(($ac_try" in
31336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31337   *) ac_try_echo=$ac_try;;
31338 esac
31339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31340   (eval "$ac_try") 2>&5
31341   ac_status=$?
31342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31343   (exit $ac_status); }; }; then
31344   eval "$as_ac_var=yes"
31345 else
31346   echo "$as_me: failed program was:" >&5
31347 sed 's/^/| /' conftest.$ac_ext >&5
31348
31349         eval "$as_ac_var=no"
31350 fi
31351
31352 rm -f core conftest.err conftest.$ac_objext \
31353       conftest$ac_exeext conftest.$ac_ext
31354 fi
31355 ac_res=`eval echo '${'$as_ac_var'}'`
31356                { echo "$as_me:$LINENO: result: $ac_res" >&5
31357 echo "${ECHO_T}$ac_res" >&6; }
31358 if test `eval echo '${'$as_ac_var'}'` = yes; then
31359   cat >>confdefs.h <<_ACEOF
31360 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31361 _ACEOF
31362
31363 fi
31364 done
31365
31366
31367
31368
31369
31370 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
31371 do
31372 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31373 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31374 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31375 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31376   echo $ECHO_N "(cached) $ECHO_C" >&6
31377 else
31378   cat >conftest.$ac_ext <<_ACEOF
31379 /* confdefs.h.  */
31380 _ACEOF
31381 cat confdefs.h >>conftest.$ac_ext
31382 cat >>conftest.$ac_ext <<_ACEOF
31383 /* end confdefs.h.  */
31384 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31385    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31386 #define $ac_func innocuous_$ac_func
31387
31388 /* System header to define __stub macros and hopefully few prototypes,
31389     which can conflict with char $ac_func (); below.
31390     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31391     <limits.h> exists even on freestanding compilers.  */
31392
31393 #ifdef __STDC__
31394 # include <limits.h>
31395 #else
31396 # include <assert.h>
31397 #endif
31398
31399 #undef $ac_func
31400
31401 /* Override any GCC internal prototype to avoid an error.
31402    Use char because int might match the return type of a GCC
31403    builtin and then its argument prototype would still apply.  */
31404 #ifdef __cplusplus
31405 extern "C"
31406 #endif
31407 char $ac_func ();
31408 /* The GNU C library defines this for functions which it implements
31409     to always fail with ENOSYS.  Some functions are actually named
31410     something starting with __ and the normal name is an alias.  */
31411 #if defined __stub_$ac_func || defined __stub___$ac_func
31412 choke me
31413 #endif
31414
31415 int
31416 main ()
31417 {
31418 return $ac_func ();
31419   ;
31420   return 0;
31421 }
31422 _ACEOF
31423 rm -f conftest.$ac_objext conftest$ac_exeext
31424 if { (ac_try="$ac_link"
31425 case "(($ac_try" in
31426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31427   *) ac_try_echo=$ac_try;;
31428 esac
31429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31430   (eval "$ac_link") 2>conftest.er1
31431   ac_status=$?
31432   grep -v '^ *+' conftest.er1 >conftest.err
31433   rm -f conftest.er1
31434   cat conftest.err >&5
31435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31436   (exit $ac_status); } &&
31437          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31438   { (case "(($ac_try" in
31439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31440   *) ac_try_echo=$ac_try;;
31441 esac
31442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31443   (eval "$ac_try") 2>&5
31444   ac_status=$?
31445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31446   (exit $ac_status); }; } &&
31447          { ac_try='test -s conftest$ac_exeext'
31448   { (case "(($ac_try" in
31449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31450   *) ac_try_echo=$ac_try;;
31451 esac
31452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31453   (eval "$ac_try") 2>&5
31454   ac_status=$?
31455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31456   (exit $ac_status); }; }; then
31457   eval "$as_ac_var=yes"
31458 else
31459   echo "$as_me: failed program was:" >&5
31460 sed 's/^/| /' conftest.$ac_ext >&5
31461
31462         eval "$as_ac_var=no"
31463 fi
31464
31465 rm -f core conftest.err conftest.$ac_objext \
31466       conftest$ac_exeext conftest.$ac_ext
31467 fi
31468 ac_res=`eval echo '${'$as_ac_var'}'`
31469                { echo "$as_me:$LINENO: result: $ac_res" >&5
31470 echo "${ECHO_T}$ac_res" >&6; }
31471 if test `eval echo '${'$as_ac_var'}'` = yes; then
31472   cat >>confdefs.h <<_ACEOF
31473 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31474 _ACEOF
31475
31476 fi
31477 done
31478
31479
31480
31481
31482
31483 for ac_func in setjmp longjmp sigsetjmp siglongjmp
31484 do
31485 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31486 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31487 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31488 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31489   echo $ECHO_N "(cached) $ECHO_C" >&6
31490 else
31491   cat >conftest.$ac_ext <<_ACEOF
31492 /* confdefs.h.  */
31493 _ACEOF
31494 cat confdefs.h >>conftest.$ac_ext
31495 cat >>conftest.$ac_ext <<_ACEOF
31496 /* end confdefs.h.  */
31497 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31498    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31499 #define $ac_func innocuous_$ac_func
31500
31501 /* System header to define __stub macros and hopefully few prototypes,
31502     which can conflict with char $ac_func (); below.
31503     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31504     <limits.h> exists even on freestanding compilers.  */
31505
31506 #ifdef __STDC__
31507 # include <limits.h>
31508 #else
31509 # include <assert.h>
31510 #endif
31511
31512 #undef $ac_func
31513
31514 /* Override any GCC internal prototype to avoid an error.
31515    Use char because int might match the return type of a GCC
31516    builtin and then its argument prototype would still apply.  */
31517 #ifdef __cplusplus
31518 extern "C"
31519 #endif
31520 char $ac_func ();
31521 /* The GNU C library defines this for functions which it implements
31522     to always fail with ENOSYS.  Some functions are actually named
31523     something starting with __ and the normal name is an alias.  */
31524 #if defined __stub_$ac_func || defined __stub___$ac_func
31525 choke me
31526 #endif
31527
31528 int
31529 main ()
31530 {
31531 return $ac_func ();
31532   ;
31533   return 0;
31534 }
31535 _ACEOF
31536 rm -f conftest.$ac_objext conftest$ac_exeext
31537 if { (ac_try="$ac_link"
31538 case "(($ac_try" in
31539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31540   *) ac_try_echo=$ac_try;;
31541 esac
31542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31543   (eval "$ac_link") 2>conftest.er1
31544   ac_status=$?
31545   grep -v '^ *+' conftest.er1 >conftest.err
31546   rm -f conftest.er1
31547   cat conftest.err >&5
31548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31549   (exit $ac_status); } &&
31550          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31551   { (case "(($ac_try" in
31552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31553   *) ac_try_echo=$ac_try;;
31554 esac
31555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31556   (eval "$ac_try") 2>&5
31557   ac_status=$?
31558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31559   (exit $ac_status); }; } &&
31560          { ac_try='test -s conftest$ac_exeext'
31561   { (case "(($ac_try" in
31562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31563   *) ac_try_echo=$ac_try;;
31564 esac
31565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31566   (eval "$ac_try") 2>&5
31567   ac_status=$?
31568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31569   (exit $ac_status); }; }; then
31570   eval "$as_ac_var=yes"
31571 else
31572   echo "$as_me: failed program was:" >&5
31573 sed 's/^/| /' conftest.$ac_ext >&5
31574
31575         eval "$as_ac_var=no"
31576 fi
31577
31578 rm -f core conftest.err conftest.$ac_objext \
31579       conftest$ac_exeext conftest.$ac_ext
31580 fi
31581 ac_res=`eval echo '${'$as_ac_var'}'`
31582                { echo "$as_me:$LINENO: result: $ac_res" >&5
31583 echo "${ECHO_T}$ac_res" >&6; }
31584 if test `eval echo '${'$as_ac_var'}'` = yes; then
31585   cat >>confdefs.h <<_ACEOF
31586 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31587 _ACEOF
31588
31589 fi
31590 done
31591
31592 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31593 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
31594 if test "${llvm_cv_c_printf_a+set}" = set; then
31595   echo $ECHO_N "(cached) $ECHO_C" >&6
31596 else
31597   ac_ext=c
31598 ac_cpp='$CPP $CPPFLAGS'
31599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31602
31603  if test "$cross_compiling" = yes; then
31604   llvmac_cv_c_printf_a=no
31605 else
31606   cat >conftest.$ac_ext <<_ACEOF
31607
31608   /* confdefs.h.  */
31609 _ACEOF
31610 cat confdefs.h >>conftest.$ac_ext
31611 cat >>conftest.$ac_ext <<_ACEOF
31612 /* end confdefs.h.  */
31613
31614 #include <stdio.h>
31615 #include <stdlib.h>
31616
31617 int
31618 main ()
31619 {
31620
31621 volatile double A, B;
31622 char Buffer[100];
31623 A = 1;
31624 A /= 10.0;
31625 sprintf(Buffer, "%a", A);
31626 B = atof(Buffer);
31627 if (A != B)
31628   return (1);
31629 if (A != 0x1.999999999999ap-4)
31630   return (1);
31631 return (0);
31632   ;
31633   return 0;
31634 }
31635 _ACEOF
31636 rm -f conftest$ac_exeext
31637 if { (ac_try="$ac_link"
31638 case "(($ac_try" in
31639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31640   *) ac_try_echo=$ac_try;;
31641 esac
31642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31643   (eval "$ac_link") 2>&5
31644   ac_status=$?
31645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31646   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31647   { (case "(($ac_try" in
31648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31649   *) ac_try_echo=$ac_try;;
31650 esac
31651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31652   (eval "$ac_try") 2>&5
31653   ac_status=$?
31654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31655   (exit $ac_status); }; }; then
31656   llvm_cv_c_printf_a=yes
31657 else
31658   echo "$as_me: program exited with status $ac_status" >&5
31659 echo "$as_me: failed program was:" >&5
31660 sed 's/^/| /' conftest.$ac_ext >&5
31661
31662 ( exit $ac_status )
31663 llvmac_cv_c_printf_a=no
31664 fi
31665 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31666 fi
31667
31668
31669  ac_ext=c
31670 ac_cpp='$CPP $CPPFLAGS'
31671 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31672 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31673 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31674
31675 fi
31676 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31677 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
31678  if test "$llvm_cv_c_printf_a" = "yes"; then
31679
31680 cat >>confdefs.h <<\_ACEOF
31681 #define HAVE_PRINTF_A 1
31682 _ACEOF
31683
31684  fi
31685
31686 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31687 # for constant arguments.  Useless!
31688 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
31689 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
31690 if test "${ac_cv_working_alloca_h+set}" = set; then
31691   echo $ECHO_N "(cached) $ECHO_C" >&6
31692 else
31693   cat >conftest.$ac_ext <<_ACEOF
31694 /* confdefs.h.  */
31695 _ACEOF
31696 cat confdefs.h >>conftest.$ac_ext
31697 cat >>conftest.$ac_ext <<_ACEOF
31698 /* end confdefs.h.  */
31699 #include <alloca.h>
31700 int
31701 main ()
31702 {
31703 char *p = (char *) alloca (2 * sizeof (int));
31704                           if (p) return 0;
31705   ;
31706   return 0;
31707 }
31708 _ACEOF
31709 rm -f conftest.$ac_objext conftest$ac_exeext
31710 if { (ac_try="$ac_link"
31711 case "(($ac_try" in
31712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31713   *) ac_try_echo=$ac_try;;
31714 esac
31715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31716   (eval "$ac_link") 2>conftest.er1
31717   ac_status=$?
31718   grep -v '^ *+' conftest.er1 >conftest.err
31719   rm -f conftest.er1
31720   cat conftest.err >&5
31721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31722   (exit $ac_status); } &&
31723          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31724   { (case "(($ac_try" in
31725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31726   *) ac_try_echo=$ac_try;;
31727 esac
31728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31729   (eval "$ac_try") 2>&5
31730   ac_status=$?
31731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31732   (exit $ac_status); }; } &&
31733          { ac_try='test -s conftest$ac_exeext'
31734   { (case "(($ac_try" in
31735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31736   *) ac_try_echo=$ac_try;;
31737 esac
31738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31739   (eval "$ac_try") 2>&5
31740   ac_status=$?
31741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31742   (exit $ac_status); }; }; then
31743   ac_cv_working_alloca_h=yes
31744 else
31745   echo "$as_me: failed program was:" >&5
31746 sed 's/^/| /' conftest.$ac_ext >&5
31747
31748         ac_cv_working_alloca_h=no
31749 fi
31750
31751 rm -f core conftest.err conftest.$ac_objext \
31752       conftest$ac_exeext conftest.$ac_ext
31753 fi
31754 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31755 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
31756 if test $ac_cv_working_alloca_h = yes; then
31757
31758 cat >>confdefs.h <<\_ACEOF
31759 #define HAVE_ALLOCA_H 1
31760 _ACEOF
31761
31762 fi
31763
31764 { echo "$as_me:$LINENO: checking for alloca" >&5
31765 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
31766 if test "${ac_cv_func_alloca_works+set}" = set; then
31767   echo $ECHO_N "(cached) $ECHO_C" >&6
31768 else
31769   cat >conftest.$ac_ext <<_ACEOF
31770 /* confdefs.h.  */
31771 _ACEOF
31772 cat confdefs.h >>conftest.$ac_ext
31773 cat >>conftest.$ac_ext <<_ACEOF
31774 /* end confdefs.h.  */
31775 #ifdef __GNUC__
31776 # define alloca __builtin_alloca
31777 #else
31778 # ifdef _MSC_VER
31779 #  include <malloc.h>
31780 #  define alloca _alloca
31781 # else
31782 #  if HAVE_ALLOCA_H
31783 #   include <alloca.h>
31784 #  else
31785 #   ifdef _AIX
31786  #pragma alloca
31787 #   else
31788 #    ifndef alloca /* predefined by HP cc +Olibcalls */
31789 char *alloca ();
31790 #    endif
31791 #   endif
31792 #  endif
31793 # endif
31794 #endif
31795
31796 int
31797 main ()
31798 {
31799 char *p = (char *) alloca (1);
31800                                     if (p) return 0;
31801   ;
31802   return 0;
31803 }
31804 _ACEOF
31805 rm -f conftest.$ac_objext conftest$ac_exeext
31806 if { (ac_try="$ac_link"
31807 case "(($ac_try" in
31808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31809   *) ac_try_echo=$ac_try;;
31810 esac
31811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31812   (eval "$ac_link") 2>conftest.er1
31813   ac_status=$?
31814   grep -v '^ *+' conftest.er1 >conftest.err
31815   rm -f conftest.er1
31816   cat conftest.err >&5
31817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31818   (exit $ac_status); } &&
31819          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31820   { (case "(($ac_try" in
31821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31822   *) ac_try_echo=$ac_try;;
31823 esac
31824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31825   (eval "$ac_try") 2>&5
31826   ac_status=$?
31827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31828   (exit $ac_status); }; } &&
31829          { ac_try='test -s conftest$ac_exeext'
31830   { (case "(($ac_try" in
31831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31832   *) ac_try_echo=$ac_try;;
31833 esac
31834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31835   (eval "$ac_try") 2>&5
31836   ac_status=$?
31837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31838   (exit $ac_status); }; }; then
31839   ac_cv_func_alloca_works=yes
31840 else
31841   echo "$as_me: failed program was:" >&5
31842 sed 's/^/| /' conftest.$ac_ext >&5
31843
31844         ac_cv_func_alloca_works=no
31845 fi
31846
31847 rm -f core conftest.err conftest.$ac_objext \
31848       conftest$ac_exeext conftest.$ac_ext
31849 fi
31850 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31851 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
31852
31853 if test $ac_cv_func_alloca_works = yes; then
31854
31855 cat >>confdefs.h <<\_ACEOF
31856 #define HAVE_ALLOCA 1
31857 _ACEOF
31858
31859 else
31860   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31861 # that cause trouble.  Some versions do not even contain alloca or
31862 # contain a buggy version.  If you still want to use their alloca,
31863 # use ar to extract alloca.o from them instead of compiling alloca.c.
31864
31865 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
31866
31867 cat >>confdefs.h <<\_ACEOF
31868 #define C_ALLOCA 1
31869 _ACEOF
31870
31871
31872 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31873 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
31874 if test "${ac_cv_os_cray+set}" = set; then
31875   echo $ECHO_N "(cached) $ECHO_C" >&6
31876 else
31877   cat >conftest.$ac_ext <<_ACEOF
31878 /* confdefs.h.  */
31879 _ACEOF
31880 cat confdefs.h >>conftest.$ac_ext
31881 cat >>conftest.$ac_ext <<_ACEOF
31882 /* end confdefs.h.  */
31883 #if defined CRAY && ! defined CRAY2
31884 webecray
31885 #else
31886 wenotbecray
31887 #endif
31888
31889 _ACEOF
31890 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31891   $EGREP "webecray" >/dev/null 2>&1; then
31892   ac_cv_os_cray=yes
31893 else
31894   ac_cv_os_cray=no
31895 fi
31896 rm -f conftest*
31897
31898 fi
31899 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31900 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
31901 if test $ac_cv_os_cray = yes; then
31902   for ac_func in _getb67 GETB67 getb67; do
31903     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31904 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31905 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31906 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31907   echo $ECHO_N "(cached) $ECHO_C" >&6
31908 else
31909   cat >conftest.$ac_ext <<_ACEOF
31910 /* confdefs.h.  */
31911 _ACEOF
31912 cat confdefs.h >>conftest.$ac_ext
31913 cat >>conftest.$ac_ext <<_ACEOF
31914 /* end confdefs.h.  */
31915 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31916    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31917 #define $ac_func innocuous_$ac_func
31918
31919 /* System header to define __stub macros and hopefully few prototypes,
31920     which can conflict with char $ac_func (); below.
31921     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31922     <limits.h> exists even on freestanding compilers.  */
31923
31924 #ifdef __STDC__
31925 # include <limits.h>
31926 #else
31927 # include <assert.h>
31928 #endif
31929
31930 #undef $ac_func
31931
31932 /* Override any GCC internal prototype to avoid an error.
31933    Use char because int might match the return type of a GCC
31934    builtin and then its argument prototype would still apply.  */
31935 #ifdef __cplusplus
31936 extern "C"
31937 #endif
31938 char $ac_func ();
31939 /* The GNU C library defines this for functions which it implements
31940     to always fail with ENOSYS.  Some functions are actually named
31941     something starting with __ and the normal name is an alias.  */
31942 #if defined __stub_$ac_func || defined __stub___$ac_func
31943 choke me
31944 #endif
31945
31946 int
31947 main ()
31948 {
31949 return $ac_func ();
31950   ;
31951   return 0;
31952 }
31953 _ACEOF
31954 rm -f conftest.$ac_objext conftest$ac_exeext
31955 if { (ac_try="$ac_link"
31956 case "(($ac_try" in
31957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31958   *) ac_try_echo=$ac_try;;
31959 esac
31960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31961   (eval "$ac_link") 2>conftest.er1
31962   ac_status=$?
31963   grep -v '^ *+' conftest.er1 >conftest.err
31964   rm -f conftest.er1
31965   cat conftest.err >&5
31966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31967   (exit $ac_status); } &&
31968          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31969   { (case "(($ac_try" in
31970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31971   *) ac_try_echo=$ac_try;;
31972 esac
31973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31974   (eval "$ac_try") 2>&5
31975   ac_status=$?
31976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31977   (exit $ac_status); }; } &&
31978          { ac_try='test -s conftest$ac_exeext'
31979   { (case "(($ac_try" in
31980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31981   *) ac_try_echo=$ac_try;;
31982 esac
31983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31984   (eval "$ac_try") 2>&5
31985   ac_status=$?
31986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31987   (exit $ac_status); }; }; then
31988   eval "$as_ac_var=yes"
31989 else
31990   echo "$as_me: failed program was:" >&5
31991 sed 's/^/| /' conftest.$ac_ext >&5
31992
31993         eval "$as_ac_var=no"
31994 fi
31995
31996 rm -f core conftest.err conftest.$ac_objext \
31997       conftest$ac_exeext conftest.$ac_ext
31998 fi
31999 ac_res=`eval echo '${'$as_ac_var'}'`
32000                { echo "$as_me:$LINENO: result: $ac_res" >&5
32001 echo "${ECHO_T}$ac_res" >&6; }
32002 if test `eval echo '${'$as_ac_var'}'` = yes; then
32003
32004 cat >>confdefs.h <<_ACEOF
32005 #define CRAY_STACKSEG_END $ac_func
32006 _ACEOF
32007
32008     break
32009 fi
32010
32011   done
32012 fi
32013
32014 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
32015 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
32016 if test "${ac_cv_c_stack_direction+set}" = set; then
32017   echo $ECHO_N "(cached) $ECHO_C" >&6
32018 else
32019   if test "$cross_compiling" = yes; then
32020   ac_cv_c_stack_direction=0
32021 else
32022   cat >conftest.$ac_ext <<_ACEOF
32023 /* confdefs.h.  */
32024 _ACEOF
32025 cat confdefs.h >>conftest.$ac_ext
32026 cat >>conftest.$ac_ext <<_ACEOF
32027 /* end confdefs.h.  */
32028 $ac_includes_default
32029 int
32030 find_stack_direction ()
32031 {
32032   static char *addr = 0;
32033   auto char dummy;
32034   if (addr == 0)
32035     {
32036       addr = &dummy;
32037       return find_stack_direction ();
32038     }
32039   else
32040     return (&dummy > addr) ? 1 : -1;
32041 }
32042
32043 int
32044 main ()
32045 {
32046   return find_stack_direction () < 0;
32047 }
32048 _ACEOF
32049 rm -f conftest$ac_exeext
32050 if { (ac_try="$ac_link"
32051 case "(($ac_try" in
32052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32053   *) ac_try_echo=$ac_try;;
32054 esac
32055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32056   (eval "$ac_link") 2>&5
32057   ac_status=$?
32058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32059   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32060   { (case "(($ac_try" in
32061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32062   *) ac_try_echo=$ac_try;;
32063 esac
32064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32065   (eval "$ac_try") 2>&5
32066   ac_status=$?
32067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32068   (exit $ac_status); }; }; then
32069   ac_cv_c_stack_direction=1
32070 else
32071   echo "$as_me: program exited with status $ac_status" >&5
32072 echo "$as_me: failed program was:" >&5
32073 sed 's/^/| /' conftest.$ac_ext >&5
32074
32075 ( exit $ac_status )
32076 ac_cv_c_stack_direction=-1
32077 fi
32078 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32079 fi
32080
32081
32082 fi
32083 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
32084 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
32085
32086 cat >>confdefs.h <<_ACEOF
32087 #define STACK_DIRECTION $ac_cv_c_stack_direction
32088 _ACEOF
32089
32090
32091 fi
32092
32093
32094 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
32095 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
32096 if test "${ac_cv_func_rand48+set}" = set; then
32097   echo $ECHO_N "(cached) $ECHO_C" >&6
32098 else
32099   ac_ext=cpp
32100 ac_cpp='$CXXCPP $CPPFLAGS'
32101 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32102 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32103 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32104
32105    cat >conftest.$ac_ext <<_ACEOF
32106 /* confdefs.h.  */
32107 _ACEOF
32108 cat confdefs.h >>conftest.$ac_ext
32109 cat >>conftest.$ac_ext <<_ACEOF
32110 /* end confdefs.h.  */
32111 #include <stdlib.h>
32112 int
32113 main ()
32114 {
32115 srand48(0);lrand48();drand48();
32116   ;
32117   return 0;
32118 }
32119 _ACEOF
32120 rm -f conftest.$ac_objext
32121 if { (ac_try="$ac_compile"
32122 case "(($ac_try" in
32123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32124   *) ac_try_echo=$ac_try;;
32125 esac
32126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32127   (eval "$ac_compile") 2>conftest.er1
32128   ac_status=$?
32129   grep -v '^ *+' conftest.er1 >conftest.err
32130   rm -f conftest.er1
32131   cat conftest.err >&5
32132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32133   (exit $ac_status); } &&
32134          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32135   { (case "(($ac_try" in
32136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32137   *) ac_try_echo=$ac_try;;
32138 esac
32139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32140   (eval "$ac_try") 2>&5
32141   ac_status=$?
32142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32143   (exit $ac_status); }; } &&
32144          { ac_try='test -s conftest.$ac_objext'
32145   { (case "(($ac_try" in
32146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32147   *) ac_try_echo=$ac_try;;
32148 esac
32149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32150   (eval "$ac_try") 2>&5
32151   ac_status=$?
32152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32153   (exit $ac_status); }; }; then
32154   ac_cv_func_rand48=yes
32155 else
32156   echo "$as_me: failed program was:" >&5
32157 sed 's/^/| /' conftest.$ac_ext >&5
32158
32159         ac_cv_func_rand48=no
32160 fi
32161
32162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32163   ac_ext=c
32164 ac_cpp='$CPP $CPPFLAGS'
32165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32168
32169 fi
32170 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
32171 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
32172
32173 if test "$ac_cv_func_rand48" = "yes" ; then
32174
32175 cat >>confdefs.h <<\_ACEOF
32176 #define HAVE_RAND48 1
32177 _ACEOF
32178
32179 fi
32180
32181
32182 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
32183 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
32184 if test "${ac_cv_cxx_namespaces+set}" = set; then
32185   echo $ECHO_N "(cached) $ECHO_C" >&6
32186 else
32187   ac_ext=cpp
32188 ac_cpp='$CXXCPP $CPPFLAGS'
32189 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32190 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32191 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32192
32193  cat >conftest.$ac_ext <<_ACEOF
32194 /* confdefs.h.  */
32195 _ACEOF
32196 cat confdefs.h >>conftest.$ac_ext
32197 cat >>conftest.$ac_ext <<_ACEOF
32198 /* end confdefs.h.  */
32199 namespace Outer { namespace Inner { int i = 0; }}
32200 int
32201 main ()
32202 {
32203 using namespace Outer::Inner; return i;
32204   ;
32205   return 0;
32206 }
32207 _ACEOF
32208 rm -f conftest.$ac_objext
32209 if { (ac_try="$ac_compile"
32210 case "(($ac_try" in
32211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32212   *) ac_try_echo=$ac_try;;
32213 esac
32214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32215   (eval "$ac_compile") 2>conftest.er1
32216   ac_status=$?
32217   grep -v '^ *+' conftest.er1 >conftest.err
32218   rm -f conftest.er1
32219   cat conftest.err >&5
32220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32221   (exit $ac_status); } &&
32222          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32223   { (case "(($ac_try" in
32224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32225   *) ac_try_echo=$ac_try;;
32226 esac
32227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32228   (eval "$ac_try") 2>&5
32229   ac_status=$?
32230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32231   (exit $ac_status); }; } &&
32232          { ac_try='test -s conftest.$ac_objext'
32233   { (case "(($ac_try" in
32234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32235   *) ac_try_echo=$ac_try;;
32236 esac
32237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32238   (eval "$ac_try") 2>&5
32239   ac_status=$?
32240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32241   (exit $ac_status); }; }; then
32242   ac_cv_cxx_namespaces=yes
32243 else
32244   echo "$as_me: failed program was:" >&5
32245 sed 's/^/| /' conftest.$ac_ext >&5
32246
32247         ac_cv_cxx_namespaces=no
32248 fi
32249
32250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32251  ac_ext=c
32252 ac_cpp='$CPP $CPPFLAGS'
32253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32256
32257
32258 fi
32259 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
32260 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
32261 if test "$ac_cv_cxx_namespaces" = yes; then
32262
32263 cat >>confdefs.h <<\_ACEOF
32264 #define HAVE_NAMESPACES
32265 _ACEOF
32266
32267 fi
32268
32269 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32270 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
32271 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32272   echo $ECHO_N "(cached) $ECHO_C" >&6
32273 else
32274
32275   ac_ext=cpp
32276 ac_cpp='$CXXCPP $CPPFLAGS'
32277 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32278 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32279 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32280
32281   cat >conftest.$ac_ext <<_ACEOF
32282 /* confdefs.h.  */
32283 _ACEOF
32284 cat confdefs.h >>conftest.$ac_ext
32285 cat >>conftest.$ac_ext <<_ACEOF
32286 /* end confdefs.h.  */
32287 #include <iterator>
32288 #ifdef HAVE_NAMESPACES
32289 using namespace std;
32290 #endif
32291 int
32292 main ()
32293 {
32294 iterator<int,int,int> t; return 0;
32295   ;
32296   return 0;
32297 }
32298 _ACEOF
32299 rm -f conftest.$ac_objext
32300 if { (ac_try="$ac_compile"
32301 case "(($ac_try" in
32302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32303   *) ac_try_echo=$ac_try;;
32304 esac
32305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32306   (eval "$ac_compile") 2>conftest.er1
32307   ac_status=$?
32308   grep -v '^ *+' conftest.er1 >conftest.err
32309   rm -f conftest.er1
32310   cat conftest.err >&5
32311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32312   (exit $ac_status); } &&
32313          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32314   { (case "(($ac_try" in
32315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32316   *) ac_try_echo=$ac_try;;
32317 esac
32318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32319   (eval "$ac_try") 2>&5
32320   ac_status=$?
32321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32322   (exit $ac_status); }; } &&
32323          { ac_try='test -s conftest.$ac_objext'
32324   { (case "(($ac_try" in
32325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32326   *) ac_try_echo=$ac_try;;
32327 esac
32328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32329   (eval "$ac_try") 2>&5
32330   ac_status=$?
32331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32332   (exit $ac_status); }; }; then
32333   ac_cv_cxx_have_std_iterator=yes
32334 else
32335   echo "$as_me: failed program was:" >&5
32336 sed 's/^/| /' conftest.$ac_ext >&5
32337
32338         ac_cv_cxx_have_std_iterator=no
32339 fi
32340
32341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32342   ac_ext=c
32343 ac_cpp='$CPP $CPPFLAGS'
32344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32347
32348
32349 fi
32350 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32351 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
32352 if test "$ac_cv_cxx_have_std_iterator" = yes
32353 then
32354
32355 cat >>confdefs.h <<\_ACEOF
32356 #define HAVE_STD_ITERATOR 1
32357 _ACEOF
32358
32359 else
32360
32361 cat >>confdefs.h <<\_ACEOF
32362 #define HAVE_STD_ITERATOR 0
32363 _ACEOF
32364
32365 fi
32366
32367 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32368 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
32369 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32370   echo $ECHO_N "(cached) $ECHO_C" >&6
32371 else
32372
32373   ac_ext=cpp
32374 ac_cpp='$CXXCPP $CPPFLAGS'
32375 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32376 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32377 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32378
32379   cat >conftest.$ac_ext <<_ACEOF
32380 /* confdefs.h.  */
32381 _ACEOF
32382 cat confdefs.h >>conftest.$ac_ext
32383 cat >>conftest.$ac_ext <<_ACEOF
32384 /* end confdefs.h.  */
32385 #include <iterator>
32386 #ifdef HAVE_NAMESPACES
32387 using namespace std;
32388 #endif
32389 int
32390 main ()
32391 {
32392 bidirectional_iterator<int,int> t; return 0;
32393   ;
32394   return 0;
32395 }
32396 _ACEOF
32397 rm -f conftest.$ac_objext
32398 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
32405   ac_status=$?
32406   grep -v '^ *+' conftest.er1 >conftest.err
32407   rm -f conftest.er1
32408   cat conftest.err >&5
32409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32410   (exit $ac_status); } &&
32411          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32412   { (case "(($ac_try" in
32413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32414   *) ac_try_echo=$ac_try;;
32415 esac
32416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32417   (eval "$ac_try") 2>&5
32418   ac_status=$?
32419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32420   (exit $ac_status); }; } &&
32421          { ac_try='test -s conftest.$ac_objext'
32422   { (case "(($ac_try" in
32423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32424   *) ac_try_echo=$ac_try;;
32425 esac
32426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32427   (eval "$ac_try") 2>&5
32428   ac_status=$?
32429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32430   (exit $ac_status); }; }; then
32431   ac_cv_cxx_have_bi_iterator=yes
32432 else
32433   echo "$as_me: failed program was:" >&5
32434 sed 's/^/| /' conftest.$ac_ext >&5
32435
32436         ac_cv_cxx_have_bi_iterator=no
32437 fi
32438
32439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32440   ac_ext=c
32441 ac_cpp='$CPP $CPPFLAGS'
32442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32445
32446
32447 fi
32448 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32449 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
32450 if test "$ac_cv_cxx_have_bi_iterator" = yes
32451 then
32452
32453 cat >>confdefs.h <<\_ACEOF
32454 #define HAVE_BI_ITERATOR 1
32455 _ACEOF
32456
32457 else
32458
32459 cat >>confdefs.h <<\_ACEOF
32460 #define HAVE_BI_ITERATOR 0
32461 _ACEOF
32462
32463 fi
32464
32465 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32466 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
32467 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32468   echo $ECHO_N "(cached) $ECHO_C" >&6
32469 else
32470
32471   ac_ext=cpp
32472 ac_cpp='$CXXCPP $CPPFLAGS'
32473 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32474 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32475 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32476
32477   cat >conftest.$ac_ext <<_ACEOF
32478 /* confdefs.h.  */
32479 _ACEOF
32480 cat confdefs.h >>conftest.$ac_ext
32481 cat >>conftest.$ac_ext <<_ACEOF
32482 /* end confdefs.h.  */
32483 #include <iterator>
32484 #ifdef HAVE_NAMESPACES
32485 using namespace std;
32486 #endif
32487 int
32488 main ()
32489 {
32490 forward_iterator<int,int> t; return 0;
32491   ;
32492   return 0;
32493 }
32494 _ACEOF
32495 rm -f conftest.$ac_objext
32496 if { (ac_try="$ac_compile"
32497 case "(($ac_try" in
32498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32499   *) ac_try_echo=$ac_try;;
32500 esac
32501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32502   (eval "$ac_compile") 2>conftest.er1
32503   ac_status=$?
32504   grep -v '^ *+' conftest.er1 >conftest.err
32505   rm -f conftest.er1
32506   cat conftest.err >&5
32507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32508   (exit $ac_status); } &&
32509          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32510   { (case "(($ac_try" in
32511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32512   *) ac_try_echo=$ac_try;;
32513 esac
32514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32515   (eval "$ac_try") 2>&5
32516   ac_status=$?
32517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32518   (exit $ac_status); }; } &&
32519          { ac_try='test -s conftest.$ac_objext'
32520   { (case "(($ac_try" in
32521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32522   *) ac_try_echo=$ac_try;;
32523 esac
32524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32525   (eval "$ac_try") 2>&5
32526   ac_status=$?
32527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32528   (exit $ac_status); }; }; then
32529   ac_cv_cxx_have_fwd_iterator=yes
32530 else
32531   echo "$as_me: failed program was:" >&5
32532 sed 's/^/| /' conftest.$ac_ext >&5
32533
32534         ac_cv_cxx_have_fwd_iterator=no
32535 fi
32536
32537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32538   ac_ext=c
32539 ac_cpp='$CPP $CPPFLAGS'
32540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32543
32544
32545 fi
32546 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32547 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
32548 if test "$ac_cv_cxx_have_fwd_iterator" = yes
32549 then
32550
32551 cat >>confdefs.h <<\_ACEOF
32552 #define HAVE_FWD_ITERATOR 1
32553 _ACEOF
32554
32555 else
32556
32557 cat >>confdefs.h <<\_ACEOF
32558 #define HAVE_FWD_ITERATOR 0
32559 _ACEOF
32560
32561 fi
32562
32563
32564 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32565 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
32566 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32567   echo $ECHO_N "(cached) $ECHO_C" >&6
32568 else
32569   ac_ext=cpp
32570 ac_cpp='$CXXCPP $CPPFLAGS'
32571 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32572 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32573 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32574
32575    cat >conftest.$ac_ext <<_ACEOF
32576 /* confdefs.h.  */
32577 _ACEOF
32578 cat confdefs.h >>conftest.$ac_ext
32579 cat >>conftest.$ac_ext <<_ACEOF
32580 /* end confdefs.h.  */
32581 #include <math.h>
32582 int
32583 main ()
32584 {
32585 float f; isnan(f);
32586   ;
32587   return 0;
32588 }
32589 _ACEOF
32590 rm -f conftest.$ac_objext
32591 if { (ac_try="$ac_compile"
32592 case "(($ac_try" in
32593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32594   *) ac_try_echo=$ac_try;;
32595 esac
32596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32597   (eval "$ac_compile") 2>conftest.er1
32598   ac_status=$?
32599   grep -v '^ *+' conftest.er1 >conftest.err
32600   rm -f conftest.er1
32601   cat conftest.err >&5
32602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32603   (exit $ac_status); } &&
32604          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32605   { (case "(($ac_try" in
32606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32607   *) ac_try_echo=$ac_try;;
32608 esac
32609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32610   (eval "$ac_try") 2>&5
32611   ac_status=$?
32612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32613   (exit $ac_status); }; } &&
32614          { ac_try='test -s conftest.$ac_objext'
32615   { (case "(($ac_try" in
32616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32617   *) ac_try_echo=$ac_try;;
32618 esac
32619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32620   (eval "$ac_try") 2>&5
32621   ac_status=$?
32622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32623   (exit $ac_status); }; }; then
32624   ac_cv_func_isnan_in_math_h=yes
32625 else
32626   echo "$as_me: failed program was:" >&5
32627 sed 's/^/| /' conftest.$ac_ext >&5
32628
32629         ac_cv_func_isnan_in_math_h=no
32630 fi
32631
32632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32633   ac_ext=c
32634 ac_cpp='$CPP $CPPFLAGS'
32635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32638
32639 fi
32640 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32641 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
32642
32643
32644 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
32645
32646 cat >>confdefs.h <<\_ACEOF
32647 #define HAVE_ISNAN_IN_MATH_H 1
32648 _ACEOF
32649
32650 fi
32651
32652 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32653 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
32654 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32655   echo $ECHO_N "(cached) $ECHO_C" >&6
32656 else
32657   ac_ext=cpp
32658 ac_cpp='$CXXCPP $CPPFLAGS'
32659 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32660 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32661 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32662
32663    cat >conftest.$ac_ext <<_ACEOF
32664 /* confdefs.h.  */
32665 _ACEOF
32666 cat confdefs.h >>conftest.$ac_ext
32667 cat >>conftest.$ac_ext <<_ACEOF
32668 /* end confdefs.h.  */
32669 #include <cmath>
32670 int
32671 main ()
32672 {
32673 float f; isnan(f);
32674   ;
32675   return 0;
32676 }
32677 _ACEOF
32678 rm -f conftest.$ac_objext
32679 if { (ac_try="$ac_compile"
32680 case "(($ac_try" in
32681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32682   *) ac_try_echo=$ac_try;;
32683 esac
32684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32685   (eval "$ac_compile") 2>conftest.er1
32686   ac_status=$?
32687   grep -v '^ *+' conftest.er1 >conftest.err
32688   rm -f conftest.er1
32689   cat conftest.err >&5
32690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32691   (exit $ac_status); } &&
32692          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32693   { (case "(($ac_try" in
32694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32695   *) ac_try_echo=$ac_try;;
32696 esac
32697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32698   (eval "$ac_try") 2>&5
32699   ac_status=$?
32700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32701   (exit $ac_status); }; } &&
32702          { ac_try='test -s conftest.$ac_objext'
32703   { (case "(($ac_try" in
32704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32705   *) ac_try_echo=$ac_try;;
32706 esac
32707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32708   (eval "$ac_try") 2>&5
32709   ac_status=$?
32710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32711   (exit $ac_status); }; }; then
32712   ac_cv_func_isnan_in_cmath=yes
32713 else
32714   echo "$as_me: failed program was:" >&5
32715 sed 's/^/| /' conftest.$ac_ext >&5
32716
32717         ac_cv_func_isnan_in_cmath=no
32718 fi
32719
32720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32721   ac_ext=c
32722 ac_cpp='$CPP $CPPFLAGS'
32723 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32724 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32725 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32726
32727 fi
32728 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32729 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
32730
32731 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
32732
32733 cat >>confdefs.h <<\_ACEOF
32734 #define HAVE_ISNAN_IN_CMATH 1
32735 _ACEOF
32736
32737 fi
32738
32739 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32740 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
32741 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32742   echo $ECHO_N "(cached) $ECHO_C" >&6
32743 else
32744   ac_ext=cpp
32745 ac_cpp='$CXXCPP $CPPFLAGS'
32746 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32747 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32748 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32749
32750    cat >conftest.$ac_ext <<_ACEOF
32751 /* confdefs.h.  */
32752 _ACEOF
32753 cat confdefs.h >>conftest.$ac_ext
32754 cat >>conftest.$ac_ext <<_ACEOF
32755 /* end confdefs.h.  */
32756 #include <cmath>
32757 int
32758 main ()
32759 {
32760 float f; std::isnan(f);
32761   ;
32762   return 0;
32763 }
32764 _ACEOF
32765 rm -f conftest.$ac_objext
32766 if { (ac_try="$ac_compile"
32767 case "(($ac_try" in
32768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32769   *) ac_try_echo=$ac_try;;
32770 esac
32771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32772   (eval "$ac_compile") 2>conftest.er1
32773   ac_status=$?
32774   grep -v '^ *+' conftest.er1 >conftest.err
32775   rm -f conftest.er1
32776   cat conftest.err >&5
32777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32778   (exit $ac_status); } &&
32779          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32780   { (case "(($ac_try" in
32781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32782   *) ac_try_echo=$ac_try;;
32783 esac
32784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32785   (eval "$ac_try") 2>&5
32786   ac_status=$?
32787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32788   (exit $ac_status); }; } &&
32789          { ac_try='test -s conftest.$ac_objext'
32790   { (case "(($ac_try" in
32791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32792   *) ac_try_echo=$ac_try;;
32793 esac
32794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32795   (eval "$ac_try") 2>&5
32796   ac_status=$?
32797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32798   (exit $ac_status); }; }; then
32799   ac_cv_func_std_isnan_in_cmath=yes
32800 else
32801   echo "$as_me: failed program was:" >&5
32802 sed 's/^/| /' conftest.$ac_ext >&5
32803
32804         ac_cv_func_std_isnan_in_cmath=no
32805 fi
32806
32807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32808   ac_ext=c
32809 ac_cpp='$CPP $CPPFLAGS'
32810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32813
32814 fi
32815 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
32816 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
32817
32818 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
32819
32820 cat >>confdefs.h <<\_ACEOF
32821 #define HAVE_STD_ISNAN_IN_CMATH 1
32822 _ACEOF
32823
32824 fi
32825
32826
32827 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
32828 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
32829 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
32830   echo $ECHO_N "(cached) $ECHO_C" >&6
32831 else
32832   ac_ext=cpp
32833 ac_cpp='$CXXCPP $CPPFLAGS'
32834 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32835 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32836 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32837
32838    cat >conftest.$ac_ext <<_ACEOF
32839 /* confdefs.h.  */
32840 _ACEOF
32841 cat confdefs.h >>conftest.$ac_ext
32842 cat >>conftest.$ac_ext <<_ACEOF
32843 /* end confdefs.h.  */
32844 #include <math.h>
32845 int
32846 main ()
32847 {
32848 float f; isinf(f);
32849   ;
32850   return 0;
32851 }
32852 _ACEOF
32853 rm -f conftest.$ac_objext
32854 if { (ac_try="$ac_compile"
32855 case "(($ac_try" in
32856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32857   *) ac_try_echo=$ac_try;;
32858 esac
32859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32860   (eval "$ac_compile") 2>conftest.er1
32861   ac_status=$?
32862   grep -v '^ *+' conftest.er1 >conftest.err
32863   rm -f conftest.er1
32864   cat conftest.err >&5
32865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32866   (exit $ac_status); } &&
32867          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32868   { (case "(($ac_try" in
32869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32870   *) ac_try_echo=$ac_try;;
32871 esac
32872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32873   (eval "$ac_try") 2>&5
32874   ac_status=$?
32875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32876   (exit $ac_status); }; } &&
32877          { ac_try='test -s conftest.$ac_objext'
32878   { (case "(($ac_try" in
32879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32880   *) ac_try_echo=$ac_try;;
32881 esac
32882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32883   (eval "$ac_try") 2>&5
32884   ac_status=$?
32885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32886   (exit $ac_status); }; }; then
32887   ac_cv_func_isinf_in_math_h=yes
32888 else
32889   echo "$as_me: failed program was:" >&5
32890 sed 's/^/| /' conftest.$ac_ext >&5
32891
32892         ac_cv_func_isinf_in_math_h=no
32893 fi
32894
32895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32896   ac_ext=c
32897 ac_cpp='$CPP $CPPFLAGS'
32898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32901
32902 fi
32903 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
32904 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
32905
32906 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
32907
32908 cat >>confdefs.h <<\_ACEOF
32909 #define HAVE_ISINF_IN_MATH_H 1
32910 _ACEOF
32911
32912 fi
32913
32914 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
32915 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
32916 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
32917   echo $ECHO_N "(cached) $ECHO_C" >&6
32918 else
32919   ac_ext=cpp
32920 ac_cpp='$CXXCPP $CPPFLAGS'
32921 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32922 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32923 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32924
32925    cat >conftest.$ac_ext <<_ACEOF
32926 /* confdefs.h.  */
32927 _ACEOF
32928 cat confdefs.h >>conftest.$ac_ext
32929 cat >>conftest.$ac_ext <<_ACEOF
32930 /* end confdefs.h.  */
32931 #include <cmath>
32932 int
32933 main ()
32934 {
32935 float f; isinf(f);
32936   ;
32937   return 0;
32938 }
32939 _ACEOF
32940 rm -f conftest.$ac_objext
32941 if { (ac_try="$ac_compile"
32942 case "(($ac_try" in
32943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32944   *) ac_try_echo=$ac_try;;
32945 esac
32946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32947   (eval "$ac_compile") 2>conftest.er1
32948   ac_status=$?
32949   grep -v '^ *+' conftest.er1 >conftest.err
32950   rm -f conftest.er1
32951   cat conftest.err >&5
32952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32953   (exit $ac_status); } &&
32954          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32955   { (case "(($ac_try" in
32956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32957   *) ac_try_echo=$ac_try;;
32958 esac
32959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32960   (eval "$ac_try") 2>&5
32961   ac_status=$?
32962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32963   (exit $ac_status); }; } &&
32964          { ac_try='test -s conftest.$ac_objext'
32965   { (case "(($ac_try" in
32966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32967   *) ac_try_echo=$ac_try;;
32968 esac
32969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32970   (eval "$ac_try") 2>&5
32971   ac_status=$?
32972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32973   (exit $ac_status); }; }; then
32974   ac_cv_func_isinf_in_cmath=yes
32975 else
32976   echo "$as_me: failed program was:" >&5
32977 sed 's/^/| /' conftest.$ac_ext >&5
32978
32979         ac_cv_func_isinf_in_cmath=no
32980 fi
32981
32982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32983   ac_ext=c
32984 ac_cpp='$CPP $CPPFLAGS'
32985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32988
32989 fi
32990 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
32991 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
32992
32993 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
32994
32995 cat >>confdefs.h <<\_ACEOF
32996 #define HAVE_ISINF_IN_CMATH 1
32997 _ACEOF
32998
32999 fi
33000
33001 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33002 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
33003 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33004   echo $ECHO_N "(cached) $ECHO_C" >&6
33005 else
33006   ac_ext=cpp
33007 ac_cpp='$CXXCPP $CPPFLAGS'
33008 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33009 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33010 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33011
33012    cat >conftest.$ac_ext <<_ACEOF
33013 /* confdefs.h.  */
33014 _ACEOF
33015 cat confdefs.h >>conftest.$ac_ext
33016 cat >>conftest.$ac_ext <<_ACEOF
33017 /* end confdefs.h.  */
33018 #include <cmath>
33019 int
33020 main ()
33021 {
33022 float f; std::isinf(f)}
33023   ;
33024   return 0;
33025 }
33026 _ACEOF
33027 rm -f conftest.$ac_objext
33028 if { (ac_try="$ac_compile"
33029 case "(($ac_try" in
33030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33031   *) ac_try_echo=$ac_try;;
33032 esac
33033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33034   (eval "$ac_compile") 2>conftest.er1
33035   ac_status=$?
33036   grep -v '^ *+' conftest.er1 >conftest.err
33037   rm -f conftest.er1
33038   cat conftest.err >&5
33039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33040   (exit $ac_status); } &&
33041          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33042   { (case "(($ac_try" in
33043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33044   *) ac_try_echo=$ac_try;;
33045 esac
33046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33047   (eval "$ac_try") 2>&5
33048   ac_status=$?
33049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33050   (exit $ac_status); }; } &&
33051          { ac_try='test -s conftest.$ac_objext'
33052   { (case "(($ac_try" in
33053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33054   *) ac_try_echo=$ac_try;;
33055 esac
33056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33057   (eval "$ac_try") 2>&5
33058   ac_status=$?
33059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33060   (exit $ac_status); }; }; then
33061   ac_cv_func_std_isinf_in_cmath=yes
33062 else
33063   echo "$as_me: failed program was:" >&5
33064 sed 's/^/| /' conftest.$ac_ext >&5
33065
33066         ac_cv_func_std_isinf_in_cmath=no
33067 fi
33068
33069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33070   ac_ext=c
33071 ac_cpp='$CPP $CPPFLAGS'
33072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33075
33076 fi
33077 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
33078 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
33079
33080 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
33081
33082 cat >>confdefs.h <<\_ACEOF
33083 #define HAVE_STD_ISINF_IN_CMATH 1
33084 _ACEOF
33085
33086 fi
33087
33088 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
33089 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
33090 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
33091   echo $ECHO_N "(cached) $ECHO_C" >&6
33092 else
33093   ac_ext=cpp
33094 ac_cpp='$CXXCPP $CPPFLAGS'
33095 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33096 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33097 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33098
33099    cat >conftest.$ac_ext <<_ACEOF
33100 /* confdefs.h.  */
33101 _ACEOF
33102 cat confdefs.h >>conftest.$ac_ext
33103 cat >>conftest.$ac_ext <<_ACEOF
33104 /* end confdefs.h.  */
33105 #include <ieeefp.h>
33106 int
33107 main ()
33108 {
33109 float f; finite(f);
33110   ;
33111   return 0;
33112 }
33113 _ACEOF
33114 rm -f conftest.$ac_objext
33115 if { (ac_try="$ac_compile"
33116 case "(($ac_try" in
33117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33118   *) ac_try_echo=$ac_try;;
33119 esac
33120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33121   (eval "$ac_compile") 2>conftest.er1
33122   ac_status=$?
33123   grep -v '^ *+' conftest.er1 >conftest.err
33124   rm -f conftest.er1
33125   cat conftest.err >&5
33126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33127   (exit $ac_status); } &&
33128          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33129   { (case "(($ac_try" in
33130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33131   *) ac_try_echo=$ac_try;;
33132 esac
33133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33134   (eval "$ac_try") 2>&5
33135   ac_status=$?
33136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33137   (exit $ac_status); }; } &&
33138          { ac_try='test -s conftest.$ac_objext'
33139   { (case "(($ac_try" in
33140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33141   *) ac_try_echo=$ac_try;;
33142 esac
33143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33144   (eval "$ac_try") 2>&5
33145   ac_status=$?
33146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33147   (exit $ac_status); }; }; then
33148   ac_cv_func_finite_in_ieeefp_h=yes
33149 else
33150   echo "$as_me: failed program was:" >&5
33151 sed 's/^/| /' conftest.$ac_ext >&5
33152
33153         ac_cv_func_finite_in_ieeefp_h=no
33154 fi
33155
33156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33157   ac_ext=c
33158 ac_cpp='$CPP $CPPFLAGS'
33159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33162
33163 fi
33164 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
33165 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
33166
33167 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
33168
33169 cat >>confdefs.h <<\_ACEOF
33170 #define HAVE_FINITE_IN_IEEEFP_H 1
33171 _ACEOF
33172
33173 fi
33174
33175
33176
33177 if test "$llvm_cv_platform_type" = "Unix" ; then
33178
33179
33180 for ac_header in stdlib.h unistd.h
33181 do
33182 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33183 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33184   { echo "$as_me:$LINENO: checking for $ac_header" >&5
33185 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33186 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33187   echo $ECHO_N "(cached) $ECHO_C" >&6
33188 fi
33189 ac_res=`eval echo '${'$as_ac_Header'}'`
33190                { echo "$as_me:$LINENO: result: $ac_res" >&5
33191 echo "${ECHO_T}$ac_res" >&6; }
33192 else
33193   # Is the header compilable?
33194 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
33195 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33196 cat >conftest.$ac_ext <<_ACEOF
33197 /* confdefs.h.  */
33198 _ACEOF
33199 cat confdefs.h >>conftest.$ac_ext
33200 cat >>conftest.$ac_ext <<_ACEOF
33201 /* end confdefs.h.  */
33202 $ac_includes_default
33203 #include <$ac_header>
33204 _ACEOF
33205 rm -f conftest.$ac_objext
33206 if { (ac_try="$ac_compile"
33207 case "(($ac_try" in
33208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33209   *) ac_try_echo=$ac_try;;
33210 esac
33211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33212   (eval "$ac_compile") 2>conftest.er1
33213   ac_status=$?
33214   grep -v '^ *+' conftest.er1 >conftest.err
33215   rm -f conftest.er1
33216   cat conftest.err >&5
33217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33218   (exit $ac_status); } &&
33219          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33220   { (case "(($ac_try" in
33221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33222   *) ac_try_echo=$ac_try;;
33223 esac
33224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33225   (eval "$ac_try") 2>&5
33226   ac_status=$?
33227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33228   (exit $ac_status); }; } &&
33229          { ac_try='test -s conftest.$ac_objext'
33230   { (case "(($ac_try" in
33231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33232   *) ac_try_echo=$ac_try;;
33233 esac
33234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33235   (eval "$ac_try") 2>&5
33236   ac_status=$?
33237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33238   (exit $ac_status); }; }; then
33239   ac_header_compiler=yes
33240 else
33241   echo "$as_me: failed program was:" >&5
33242 sed 's/^/| /' conftest.$ac_ext >&5
33243
33244         ac_header_compiler=no
33245 fi
33246
33247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33248 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33249 echo "${ECHO_T}$ac_header_compiler" >&6; }
33250
33251 # Is the header present?
33252 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
33253 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33254 cat >conftest.$ac_ext <<_ACEOF
33255 /* confdefs.h.  */
33256 _ACEOF
33257 cat confdefs.h >>conftest.$ac_ext
33258 cat >>conftest.$ac_ext <<_ACEOF
33259 /* end confdefs.h.  */
33260 #include <$ac_header>
33261 _ACEOF
33262 if { (ac_try="$ac_cpp conftest.$ac_ext"
33263 case "(($ac_try" in
33264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33265   *) ac_try_echo=$ac_try;;
33266 esac
33267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33268   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33269   ac_status=$?
33270   grep -v '^ *+' conftest.er1 >conftest.err
33271   rm -f conftest.er1
33272   cat conftest.err >&5
33273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33274   (exit $ac_status); } >/dev/null; then
33275   if test -s conftest.err; then
33276     ac_cpp_err=$ac_c_preproc_warn_flag
33277     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33278   else
33279     ac_cpp_err=
33280   fi
33281 else
33282   ac_cpp_err=yes
33283 fi
33284 if test -z "$ac_cpp_err"; then
33285   ac_header_preproc=yes
33286 else
33287   echo "$as_me: failed program was:" >&5
33288 sed 's/^/| /' conftest.$ac_ext >&5
33289
33290   ac_header_preproc=no
33291 fi
33292
33293 rm -f conftest.err conftest.$ac_ext
33294 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33295 echo "${ECHO_T}$ac_header_preproc" >&6; }
33296
33297 # So?  What about this header?
33298 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33299   yes:no: )
33300     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33301 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33302     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33303 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33304     ac_header_preproc=yes
33305     ;;
33306   no:yes:* )
33307     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33308 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33309     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33310 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33311     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33312 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33313     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33314 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33315     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33316 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33317     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33318 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33319     ( cat <<\_ASBOX
33320 ## ----------------------------------- ##
33321 ## Report this to llvmbugs@cs.uiuc.edu ##
33322 ## ----------------------------------- ##
33323 _ASBOX
33324      ) | sed "s/^/$as_me: WARNING:     /" >&2
33325     ;;
33326 esac
33327 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33328 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33329 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33330   echo $ECHO_N "(cached) $ECHO_C" >&6
33331 else
33332   eval "$as_ac_Header=\$ac_header_preproc"
33333 fi
33334 ac_res=`eval echo '${'$as_ac_Header'}'`
33335                { echo "$as_me:$LINENO: result: $ac_res" >&5
33336 echo "${ECHO_T}$ac_res" >&6; }
33337
33338 fi
33339 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33340   cat >>confdefs.h <<_ACEOF
33341 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33342 _ACEOF
33343
33344 fi
33345
33346 done
33347
33348
33349 for ac_func in getpagesize
33350 do
33351 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33352 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33353 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33354 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33355   echo $ECHO_N "(cached) $ECHO_C" >&6
33356 else
33357   cat >conftest.$ac_ext <<_ACEOF
33358 /* confdefs.h.  */
33359 _ACEOF
33360 cat confdefs.h >>conftest.$ac_ext
33361 cat >>conftest.$ac_ext <<_ACEOF
33362 /* end confdefs.h.  */
33363 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33364    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33365 #define $ac_func innocuous_$ac_func
33366
33367 /* System header to define __stub macros and hopefully few prototypes,
33368     which can conflict with char $ac_func (); below.
33369     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33370     <limits.h> exists even on freestanding compilers.  */
33371
33372 #ifdef __STDC__
33373 # include <limits.h>
33374 #else
33375 # include <assert.h>
33376 #endif
33377
33378 #undef $ac_func
33379
33380 /* Override any GCC internal prototype to avoid an error.
33381    Use char because int might match the return type of a GCC
33382    builtin and then its argument prototype would still apply.  */
33383 #ifdef __cplusplus
33384 extern "C"
33385 #endif
33386 char $ac_func ();
33387 /* The GNU C library defines this for functions which it implements
33388     to always fail with ENOSYS.  Some functions are actually named
33389     something starting with __ and the normal name is an alias.  */
33390 #if defined __stub_$ac_func || defined __stub___$ac_func
33391 choke me
33392 #endif
33393
33394 int
33395 main ()
33396 {
33397 return $ac_func ();
33398   ;
33399   return 0;
33400 }
33401 _ACEOF
33402 rm -f conftest.$ac_objext conftest$ac_exeext
33403 if { (ac_try="$ac_link"
33404 case "(($ac_try" in
33405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33406   *) ac_try_echo=$ac_try;;
33407 esac
33408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33409   (eval "$ac_link") 2>conftest.er1
33410   ac_status=$?
33411   grep -v '^ *+' conftest.er1 >conftest.err
33412   rm -f conftest.er1
33413   cat conftest.err >&5
33414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33415   (exit $ac_status); } &&
33416          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33417   { (case "(($ac_try" in
33418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33419   *) ac_try_echo=$ac_try;;
33420 esac
33421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33422   (eval "$ac_try") 2>&5
33423   ac_status=$?
33424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33425   (exit $ac_status); }; } &&
33426          { ac_try='test -s conftest$ac_exeext'
33427   { (case "(($ac_try" in
33428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33429   *) ac_try_echo=$ac_try;;
33430 esac
33431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33432   (eval "$ac_try") 2>&5
33433   ac_status=$?
33434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33435   (exit $ac_status); }; }; then
33436   eval "$as_ac_var=yes"
33437 else
33438   echo "$as_me: failed program was:" >&5
33439 sed 's/^/| /' conftest.$ac_ext >&5
33440
33441         eval "$as_ac_var=no"
33442 fi
33443
33444 rm -f core conftest.err conftest.$ac_objext \
33445       conftest$ac_exeext conftest.$ac_ext
33446 fi
33447 ac_res=`eval echo '${'$as_ac_var'}'`
33448                { echo "$as_me:$LINENO: result: $ac_res" >&5
33449 echo "${ECHO_T}$ac_res" >&6; }
33450 if test `eval echo '${'$as_ac_var'}'` = yes; then
33451   cat >>confdefs.h <<_ACEOF
33452 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33453 _ACEOF
33454
33455 fi
33456 done
33457
33458 { echo "$as_me:$LINENO: checking for working mmap" >&5
33459 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
33460 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33461   echo $ECHO_N "(cached) $ECHO_C" >&6
33462 else
33463   if test "$cross_compiling" = yes; then
33464   ac_cv_func_mmap_fixed_mapped=no
33465 else
33466   cat >conftest.$ac_ext <<_ACEOF
33467 /* confdefs.h.  */
33468 _ACEOF
33469 cat confdefs.h >>conftest.$ac_ext
33470 cat >>conftest.$ac_ext <<_ACEOF
33471 /* end confdefs.h.  */
33472 $ac_includes_default
33473 /* malloc might have been renamed as rpl_malloc. */
33474 #undef malloc
33475
33476 /* Thanks to Mike Haertel and Jim Avera for this test.
33477    Here is a matrix of mmap possibilities:
33478         mmap private not fixed
33479         mmap private fixed at somewhere currently unmapped
33480         mmap private fixed at somewhere already mapped
33481         mmap shared not fixed
33482         mmap shared fixed at somewhere currently unmapped
33483         mmap shared fixed at somewhere already mapped
33484    For private mappings, we should verify that changes cannot be read()
33485    back from the file, nor mmap's back from the file at a different
33486    address.  (There have been systems where private was not correctly
33487    implemented like the infamous i386 svr4.0, and systems where the
33488    VM page cache was not coherent with the file system buffer cache
33489    like early versions of FreeBSD and possibly contemporary NetBSD.)
33490    For shared mappings, we should conversely verify that changes get
33491    propagated back to all the places they're supposed to be.
33492
33493    Grep wants private fixed already mapped.
33494    The main things grep needs to know about mmap are:
33495    * does it exist and is it safe to write into the mmap'd area
33496    * how to use it (BSD variants)  */
33497
33498 #include <fcntl.h>
33499 #include <sys/mman.h>
33500
33501 #if !STDC_HEADERS && !HAVE_STDLIB_H
33502 char *malloc ();
33503 #endif
33504
33505 /* This mess was copied from the GNU getpagesize.h.  */
33506 #if !HAVE_GETPAGESIZE
33507 /* Assume that all systems that can run configure have sys/param.h.  */
33508 # if !HAVE_SYS_PARAM_H
33509 #  define HAVE_SYS_PARAM_H 1
33510 # endif
33511
33512 # ifdef _SC_PAGESIZE
33513 #  define getpagesize() sysconf(_SC_PAGESIZE)
33514 # else /* no _SC_PAGESIZE */
33515 #  if HAVE_SYS_PARAM_H
33516 #   include <sys/param.h>
33517 #   ifdef EXEC_PAGESIZE
33518 #    define getpagesize() EXEC_PAGESIZE
33519 #   else /* no EXEC_PAGESIZE */
33520 #    ifdef NBPG
33521 #     define getpagesize() NBPG * CLSIZE
33522 #     ifndef CLSIZE
33523 #      define CLSIZE 1
33524 #     endif /* no CLSIZE */
33525 #    else /* no NBPG */
33526 #     ifdef NBPC
33527 #      define getpagesize() NBPC
33528 #     else /* no NBPC */
33529 #      ifdef PAGESIZE
33530 #       define getpagesize() PAGESIZE
33531 #      endif /* PAGESIZE */
33532 #     endif /* no NBPC */
33533 #    endif /* no NBPG */
33534 #   endif /* no EXEC_PAGESIZE */
33535 #  else /* no HAVE_SYS_PARAM_H */
33536 #   define getpagesize() 8192   /* punt totally */
33537 #  endif /* no HAVE_SYS_PARAM_H */
33538 # endif /* no _SC_PAGESIZE */
33539
33540 #endif /* no HAVE_GETPAGESIZE */
33541
33542 int
33543 main ()
33544 {
33545   char *data, *data2, *data3;
33546   int i, pagesize;
33547   int fd;
33548
33549   pagesize = getpagesize ();
33550
33551   /* First, make a file with some known garbage in it. */
33552   data = (char *) malloc (pagesize);
33553   if (!data)
33554     return 1;
33555   for (i = 0; i < pagesize; ++i)
33556     *(data + i) = rand ();
33557   umask (0);
33558   fd = creat ("conftest.mmap", 0600);
33559   if (fd < 0)
33560     return 1;
33561   if (write (fd, data, pagesize) != pagesize)
33562     return 1;
33563   close (fd);
33564
33565   /* Next, try to mmap the file at a fixed address which already has
33566      something else allocated at it.  If we can, also make sure that
33567      we see the same garbage.  */
33568   fd = open ("conftest.mmap", O_RDWR);
33569   if (fd < 0)
33570     return 1;
33571   data2 = (char *) malloc (2 * pagesize);
33572   if (!data2)
33573     return 1;
33574   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
33575   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
33576                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
33577     return 1;
33578   for (i = 0; i < pagesize; ++i)
33579     if (*(data + i) != *(data2 + i))
33580       return 1;
33581
33582   /* Finally, make sure that changes to the mapped area do not
33583      percolate back to the file as seen by read().  (This is a bug on
33584      some variants of i386 svr4.0.)  */
33585   for (i = 0; i < pagesize; ++i)
33586     *(data2 + i) = *(data2 + i) + 1;
33587   data3 = (char *) malloc (pagesize);
33588   if (!data3)
33589     return 1;
33590   if (read (fd, data3, pagesize) != pagesize)
33591     return 1;
33592   for (i = 0; i < pagesize; ++i)
33593     if (*(data + i) != *(data3 + i))
33594       return 1;
33595   close (fd);
33596   return 0;
33597 }
33598 _ACEOF
33599 rm -f conftest$ac_exeext
33600 if { (ac_try="$ac_link"
33601 case "(($ac_try" in
33602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33603   *) ac_try_echo=$ac_try;;
33604 esac
33605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33606   (eval "$ac_link") 2>&5
33607   ac_status=$?
33608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33609   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33610   { (case "(($ac_try" in
33611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33612   *) ac_try_echo=$ac_try;;
33613 esac
33614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33615   (eval "$ac_try") 2>&5
33616   ac_status=$?
33617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33618   (exit $ac_status); }; }; then
33619   ac_cv_func_mmap_fixed_mapped=yes
33620 else
33621   echo "$as_me: program exited with status $ac_status" >&5
33622 echo "$as_me: failed program was:" >&5
33623 sed 's/^/| /' conftest.$ac_ext >&5
33624
33625 ( exit $ac_status )
33626 ac_cv_func_mmap_fixed_mapped=no
33627 fi
33628 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33629 fi
33630
33631
33632 fi
33633 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33634 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
33635 if test $ac_cv_func_mmap_fixed_mapped = yes; then
33636
33637 cat >>confdefs.h <<\_ACEOF
33638 #define HAVE_MMAP 1
33639 _ACEOF
33640
33641 fi
33642 rm -f conftest.mmap
33643
33644   { echo "$as_me:$LINENO: checking for mmap of files" >&5
33645 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
33646 if test "${ac_cv_func_mmap_file+set}" = set; then
33647   echo $ECHO_N "(cached) $ECHO_C" >&6
33648 else
33649    ac_ext=c
33650 ac_cpp='$CPP $CPPFLAGS'
33651 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33652 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33653 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33654
33655   if test "$cross_compiling" = yes; then
33656   ac_cv_func_mmap_file=no
33657 else
33658   cat >conftest.$ac_ext <<_ACEOF
33659
33660     /* confdefs.h.  */
33661 _ACEOF
33662 cat confdefs.h >>conftest.$ac_ext
33663 cat >>conftest.$ac_ext <<_ACEOF
33664 /* end confdefs.h.  */
33665
33666 #include <sys/types.h>
33667 #include <sys/mman.h>
33668 #include <fcntl.h>
33669
33670 int
33671 main ()
33672 {
33673
33674   int fd;
33675   fd = creat ("foo",0777);
33676   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33677   unlink ("foo");
33678   return (fd != (int) MAP_FAILED);
33679   ;
33680   return 0;
33681 }
33682 _ACEOF
33683 rm -f conftest$ac_exeext
33684 if { (ac_try="$ac_link"
33685 case "(($ac_try" in
33686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33687   *) ac_try_echo=$ac_try;;
33688 esac
33689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33690   (eval "$ac_link") 2>&5
33691   ac_status=$?
33692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33693   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33694   { (case "(($ac_try" in
33695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33696   *) ac_try_echo=$ac_try;;
33697 esac
33698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33699   (eval "$ac_try") 2>&5
33700   ac_status=$?
33701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33702   (exit $ac_status); }; }; then
33703   ac_cv_func_mmap_file=yes
33704 else
33705   echo "$as_me: program exited with status $ac_status" >&5
33706 echo "$as_me: failed program was:" >&5
33707 sed 's/^/| /' conftest.$ac_ext >&5
33708
33709 ( exit $ac_status )
33710 ac_cv_func_mmap_file=no
33711 fi
33712 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33713 fi
33714
33715
33716   ac_ext=c
33717 ac_cpp='$CPP $CPPFLAGS'
33718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33721
33722
33723 fi
33724 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33725 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
33726 if test "$ac_cv_func_mmap_file" = yes; then
33727
33728 cat >>confdefs.h <<\_ACEOF
33729 #define HAVE_MMAP_FILE
33730 _ACEOF
33731
33732    MMAP_FILE=yes
33733
33734 fi
33735
33736   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
33737 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
33738 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33739   echo $ECHO_N "(cached) $ECHO_C" >&6
33740 else
33741   if test "$llvm_cv_os_type" = "Interix" ; then
33742    ac_cv_need_dev_zero_for_mmap=yes
33743  else
33744    ac_cv_need_dev_zero_for_mmap=no
33745  fi
33746
33747 fi
33748 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33749 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
33750 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33751
33752 cat >>confdefs.h <<\_ACEOF
33753 #define NEED_DEV_ZERO_FOR_MMAP 1
33754 _ACEOF
33755
33756 fi
33757
33758   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33759   then
33760     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
33761 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
33762   fi
33763   if test "$ac_cv_func_mmap_file" = "no"
33764   then
33765     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
33766 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
33767   fi
33768 fi
33769
33770 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
33771 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
33772 cat >conftest.$ac_ext <<_ACEOF
33773 /* confdefs.h.  */
33774 _ACEOF
33775 cat confdefs.h >>conftest.$ac_ext
33776 cat >>conftest.$ac_ext <<_ACEOF
33777 /* end confdefs.h.  */
33778 int main() {
33779         volatile unsigned long val = 1;
33780         __sync_synchronize();
33781         __sync_val_compare_and_swap(&val, 1, 0);
33782         __sync_add_and_fetch(&val, 1);
33783         __sync_sub_and_fetch(&val, 1);
33784         return 0;
33785       }
33786
33787 _ACEOF
33788 rm -f conftest.$ac_objext conftest$ac_exeext
33789 if { (ac_try="$ac_link"
33790 case "(($ac_try" in
33791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33792   *) ac_try_echo=$ac_try;;
33793 esac
33794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33795   (eval "$ac_link") 2>conftest.er1
33796   ac_status=$?
33797   grep -v '^ *+' conftest.er1 >conftest.err
33798   rm -f conftest.er1
33799   cat conftest.err >&5
33800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33801   (exit $ac_status); } &&
33802          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33803   { (case "(($ac_try" in
33804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33805   *) ac_try_echo=$ac_try;;
33806 esac
33807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33808   (eval "$ac_try") 2>&5
33809   ac_status=$?
33810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33811   (exit $ac_status); }; } &&
33812          { ac_try='test -s conftest$ac_exeext'
33813   { (case "(($ac_try" in
33814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33815   *) ac_try_echo=$ac_try;;
33816 esac
33817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33818   (eval "$ac_try") 2>&5
33819   ac_status=$?
33820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33821   (exit $ac_status); }; }; then
33822   { echo "$as_me:$LINENO: result: yes" >&5
33823 echo "${ECHO_T}yes" >&6; }
33824
33825 cat >>confdefs.h <<\_ACEOF
33826 #define LLVM_MULTITHREADED 1
33827 _ACEOF
33828
33829 else
33830   echo "$as_me: failed program was:" >&5
33831 sed 's/^/| /' conftest.$ac_ext >&5
33832
33833         { echo "$as_me:$LINENO: result: no" >&5
33834 echo "${ECHO_T}no" >&6; }
33835
33836 cat >>confdefs.h <<\_ACEOF
33837 #define LLVM_MULTITHREADED 0
33838 _ACEOF
33839
33840   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
33841 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
33842 fi
33843
33844 rm -f core conftest.err conftest.$ac_objext \
33845       conftest$ac_exeext conftest.$ac_ext
33846
33847
33848
33849
33850 for ac_func in __dso_handle
33851 do
33852 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33853 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33854 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33855 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33856   echo $ECHO_N "(cached) $ECHO_C" >&6
33857 else
33858   cat >conftest.$ac_ext <<_ACEOF
33859 /* confdefs.h.  */
33860 _ACEOF
33861 cat confdefs.h >>conftest.$ac_ext
33862 cat >>conftest.$ac_ext <<_ACEOF
33863 /* end confdefs.h.  */
33864 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33865    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33866 #define $ac_func innocuous_$ac_func
33867
33868 /* System header to define __stub macros and hopefully few prototypes,
33869     which can conflict with char $ac_func (); below.
33870     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33871     <limits.h> exists even on freestanding compilers.  */
33872
33873 #ifdef __STDC__
33874 # include <limits.h>
33875 #else
33876 # include <assert.h>
33877 #endif
33878
33879 #undef $ac_func
33880
33881 /* Override any GCC internal prototype to avoid an error.
33882    Use char because int might match the return type of a GCC
33883    builtin and then its argument prototype would still apply.  */
33884 #ifdef __cplusplus
33885 extern "C"
33886 #endif
33887 char $ac_func ();
33888 /* The GNU C library defines this for functions which it implements
33889     to always fail with ENOSYS.  Some functions are actually named
33890     something starting with __ and the normal name is an alias.  */
33891 #if defined __stub_$ac_func || defined __stub___$ac_func
33892 choke me
33893 #endif
33894
33895 int
33896 main ()
33897 {
33898 return $ac_func ();
33899   ;
33900   return 0;
33901 }
33902 _ACEOF
33903 rm -f conftest.$ac_objext conftest$ac_exeext
33904 if { (ac_try="$ac_link"
33905 case "(($ac_try" in
33906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33907   *) ac_try_echo=$ac_try;;
33908 esac
33909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33910   (eval "$ac_link") 2>conftest.er1
33911   ac_status=$?
33912   grep -v '^ *+' conftest.er1 >conftest.err
33913   rm -f conftest.er1
33914   cat conftest.err >&5
33915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33916   (exit $ac_status); } &&
33917          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33918   { (case "(($ac_try" in
33919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33920   *) ac_try_echo=$ac_try;;
33921 esac
33922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33923   (eval "$ac_try") 2>&5
33924   ac_status=$?
33925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33926   (exit $ac_status); }; } &&
33927          { ac_try='test -s conftest$ac_exeext'
33928   { (case "(($ac_try" in
33929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33930   *) ac_try_echo=$ac_try;;
33931 esac
33932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33933   (eval "$ac_try") 2>&5
33934   ac_status=$?
33935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33936   (exit $ac_status); }; }; then
33937   eval "$as_ac_var=yes"
33938 else
33939   echo "$as_me: failed program was:" >&5
33940 sed 's/^/| /' conftest.$ac_ext >&5
33941
33942         eval "$as_ac_var=no"
33943 fi
33944
33945 rm -f core conftest.err conftest.$ac_objext \
33946       conftest$ac_exeext conftest.$ac_ext
33947 fi
33948 ac_res=`eval echo '${'$as_ac_var'}'`
33949                { echo "$as_me:$LINENO: result: $ac_res" >&5
33950 echo "${ECHO_T}$ac_res" >&6; }
33951 if test `eval echo '${'$as_ac_var'}'` = yes; then
33952   cat >>confdefs.h <<_ACEOF
33953 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33954 _ACEOF
33955
33956 fi
33957 done
33958
33959
33960 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
33961 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
33962 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
33963   echo $ECHO_N "(cached) $ECHO_C" >&6
33964 else
33965   llvm_cv_llvmgcc_sanity="no"
33966 if test -x "$LLVMGCC" ; then
33967   cp /dev/null conftest.c
33968   "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
33969       grep 'target datalayout =' > /dev/null 2>&1
33970   if test $? -eq 0 ; then
33971     llvm_cv_llvmgcc_sanity="yes"
33972   fi
33973   rm conftest.c
33974 fi
33975 fi
33976 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
33977 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
33978
33979 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
33980   { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
33981 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
33982   llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
33983   LLVMCC1=$llvmcc1path
33984
33985   llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
33986   LLVMCC1PLUS=$llvmcc1pluspath
33987
33988   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
33989   LLVMGCCDIR=$llvmgccdir
33990
33991   llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
33992   LLVMGCCLIBEXEC=$llvmgcclibexec
33993
33994   llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
33995   llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
33996   LLVMGCC_VERSION=$llvmgccversion
33997
33998   LLVMGCC_MAJVERS=$llvmgccmajvers
33999
34000   llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
34001   LLVMGCC_LANGS=$llvmgcclangs
34002
34003   { echo "$as_me:$LINENO: result: ok" >&5
34004 echo "${ECHO_T}ok" >&6; }
34005 fi
34006
34007 SHLIBEXT=$libltdl_cv_shlibext
34008
34009
34010 # Translate the various configuration directories and other basic
34011 # information into substitutions that will end up in Makefile.config.in
34012 # that these configured values can be used by the makefiles
34013 if test "${prefix}" = "NONE" ; then
34014   prefix="/usr/local"
34015 fi
34016 eval LLVM_PREFIX="${prefix}";
34017 eval LLVM_BINDIR="${prefix}/bin";
34018 eval LLVM_LIBDIR="${prefix}/lib";
34019 eval LLVM_DATADIR="${prefix}/share/llvm";
34020 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
34021 eval LLVM_ETCDIR="${prefix}/etc/llvm";
34022 eval LLVM_INCLUDEDIR="${prefix}/include";
34023 eval LLVM_INFODIR="${prefix}/info";
34024 eval LLVM_MANDIR="${prefix}/man";
34025 LLVM_CONFIGTIME=`date`
34026
34027
34028
34029
34030
34031
34032
34033
34034
34035
34036
34037 # Place the various directores into the config.h file as #defines so that we
34038 # can know about the installation paths within LLVM.
34039
34040 cat >>confdefs.h <<_ACEOF
34041 #define LLVM_PREFIX "$LLVM_PREFIX"
34042 _ACEOF
34043
34044
34045 cat >>confdefs.h <<_ACEOF
34046 #define LLVM_BINDIR "$LLVM_BINDIR"
34047 _ACEOF
34048
34049
34050 cat >>confdefs.h <<_ACEOF
34051 #define LLVM_LIBDIR "$LLVM_LIBDIR"
34052 _ACEOF
34053
34054
34055 cat >>confdefs.h <<_ACEOF
34056 #define LLVM_DATADIR "$LLVM_DATADIR"
34057 _ACEOF
34058
34059
34060 cat >>confdefs.h <<_ACEOF
34061 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
34062 _ACEOF
34063
34064
34065 cat >>confdefs.h <<_ACEOF
34066 #define LLVM_ETCDIR "$LLVM_ETCDIR"
34067 _ACEOF
34068
34069
34070 cat >>confdefs.h <<_ACEOF
34071 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
34072 _ACEOF
34073
34074
34075 cat >>confdefs.h <<_ACEOF
34076 #define LLVM_INFODIR "$LLVM_INFODIR"
34077 _ACEOF
34078
34079
34080 cat >>confdefs.h <<_ACEOF
34081 #define LLVM_MANDIR "$LLVM_MANDIR"
34082 _ACEOF
34083
34084
34085 cat >>confdefs.h <<_ACEOF
34086 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
34087 _ACEOF
34088
34089
34090 cat >>confdefs.h <<_ACEOF
34091 #define LLVM_HOSTTRIPLE "$host"
34092 _ACEOF
34093
34094
34095 # Determine which bindings to build.
34096 if test "$BINDINGS_TO_BUILD" = auto ; then
34097   BINDINGS_TO_BUILD=""
34098   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
34099     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
34100   fi
34101 fi
34102 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
34103
34104
34105 # This isn't really configurey, but it avoids having to repeat the list in
34106 # other files.
34107 ALL_BINDINGS=ocaml
34108
34109
34110 # Do any work necessary to ensure that bindings have what they need.
34111 binding_prereqs_failed=0
34112 for a_binding in $BINDINGS_TO_BUILD ; do
34113   case "$a_binding" in
34114   ocaml)
34115     if test "x$OCAMLC" = x ; then
34116       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
34117 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
34118       binding_prereqs_failed=1
34119     fi
34120     if test "x$OCAMLDEP" = x ; then
34121       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
34122 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
34123       binding_prereqs_failed=1
34124     fi
34125     if test "x$OCAMLOPT" = x ; then
34126       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
34127 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
34128           fi
34129     if test "x$with_ocaml_libdir" != xauto ; then
34130       OCAML_LIBDIR=$with_ocaml_libdir
34131
34132     else
34133       ocaml_stdlib="`"$OCAMLC" -where`"
34134       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
34135       then
34136         # ocaml stdlib is beneath our prefix; use stdlib
34137         OCAML_LIBDIR=$ocaml_stdlib
34138
34139       else
34140         # ocaml stdlib is outside our prefix; use libdir/ocaml
34141         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
34142
34143       fi
34144     fi
34145     ;;
34146   esac
34147 done
34148 if test "$binding_prereqs_failed" = 1 ; then
34149   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
34150 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
34151    { (exit 1); exit 1; }; }
34152 fi
34153
34154 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
34155 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
34156 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
34157   echo $ECHO_N "(cached) $ECHO_C" >&6
34158 else
34159    ac_ext=cpp
34160 ac_cpp='$CXXCPP $CPPFLAGS'
34161 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34162 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34163 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34164
34165   oldcxxflags="$CXXFLAGS"
34166   CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
34167   cat >conftest.$ac_ext <<_ACEOF
34168 /* confdefs.h.  */
34169 _ACEOF
34170 cat confdefs.h >>conftest.$ac_ext
34171 cat >>conftest.$ac_ext <<_ACEOF
34172 /* end confdefs.h.  */
34173
34174 int
34175 main ()
34176 {
34177
34178   ;
34179   return 0;
34180 }
34181 _ACEOF
34182 rm -f conftest.$ac_objext
34183 if { (ac_try="$ac_compile"
34184 case "(($ac_try" in
34185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34186   *) ac_try_echo=$ac_try;;
34187 esac
34188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34189   (eval "$ac_compile") 2>conftest.er1
34190   ac_status=$?
34191   grep -v '^ *+' conftest.er1 >conftest.err
34192   rm -f conftest.er1
34193   cat conftest.err >&5
34194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34195   (exit $ac_status); } &&
34196          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34197   { (case "(($ac_try" in
34198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34199   *) ac_try_echo=$ac_try;;
34200 esac
34201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34202   (eval "$ac_try") 2>&5
34203   ac_status=$?
34204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34205   (exit $ac_status); }; } &&
34206          { ac_try='test -s conftest.$ac_objext'
34207   { (case "(($ac_try" in
34208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34209   *) ac_try_echo=$ac_try;;
34210 esac
34211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34212   (eval "$ac_try") 2>&5
34213   ac_status=$?
34214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34215   (exit $ac_status); }; }; then
34216   llvm_cv_cxx_visibility_inlines_hidden=yes
34217 else
34218   echo "$as_me: failed program was:" >&5
34219 sed 's/^/| /' conftest.$ac_ext >&5
34220
34221         llvm_cv_cxx_visibility_inlines_hidden=no
34222 fi
34223
34224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34225   CXXFLAGS="$oldcxxflags"
34226   ac_ext=c
34227 ac_cpp='$CPP $CPPFLAGS'
34228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34231
34232
34233 fi
34234 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
34235 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
34236 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
34237   ENABLE_VISIBILITY_INLINES_HIDDEN=1
34238
34239 else
34240   ENABLE_VISIBILITY_INLINES_HIDDEN=0
34241
34242 fi
34243
34244
34245 if test "$llvm_cv_link_use_r" = "yes" ; then
34246   RPATH="-Wl,-R"
34247 else
34248   RPATH="-Wl,-rpath"
34249 fi
34250
34251
34252 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
34253   RDYNAMIC="-Wl,-export-dynamic"
34254 else
34255   RDYNAMIC=""
34256 fi
34257
34258
34259
34260 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
34261
34262 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
34263
34264 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
34265
34266 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
34267
34268 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h"
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/llvmc/plugins/Base/Base.td"
34281
34282
34283 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
34284
34285
34286 ac_config_commands="$ac_config_commands setup"
34287
34288 ac_config_commands="$ac_config_commands Makefile"
34289
34290
34291 ac_config_commands="$ac_config_commands Makefile.common"
34292
34293
34294 ac_config_commands="$ac_config_commands examples/Makefile"
34295
34296
34297 ac_config_commands="$ac_config_commands lib/Makefile"
34298
34299
34300 ac_config_commands="$ac_config_commands runtime/Makefile"
34301
34302
34303 ac_config_commands="$ac_config_commands test/Makefile"
34304
34305
34306 ac_config_commands="$ac_config_commands test/Makefile.tests"
34307
34308
34309 ac_config_commands="$ac_config_commands unittests/Makefile"
34310
34311
34312 ac_config_commands="$ac_config_commands tools/Makefile"
34313
34314
34315 ac_config_commands="$ac_config_commands utils/Makefile"
34316
34317
34318 ac_config_commands="$ac_config_commands projects/Makefile"
34319
34320
34321 ac_config_commands="$ac_config_commands bindings/Makefile"
34322
34323
34324 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
34325
34326
34327
34328 cat >confcache <<\_ACEOF
34329 # This file is a shell script that caches the results of configure
34330 # tests run on this system so they can be shared between configure
34331 # scripts and configure runs, see configure's option --config-cache.
34332 # It is not useful on other systems.  If it contains results you don't
34333 # want to keep, you may remove or edit it.
34334 #
34335 # config.status only pays attention to the cache file if you give it
34336 # the --recheck option to rerun configure.
34337 #
34338 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34339 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34340 # following values.
34341
34342 _ACEOF
34343
34344 # The following way of writing the cache mishandles newlines in values,
34345 # but we know of no workaround that is simple, portable, and efficient.
34346 # So, we kill variables containing newlines.
34347 # Ultrix sh set writes to stderr and can't be redirected directly,
34348 # and sets the high bit in the cache file unless we assign to the vars.
34349 (
34350   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34351     eval ac_val=\$$ac_var
34352     case $ac_val in #(
34353     *${as_nl}*)
34354       case $ac_var in #(
34355       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34356 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34357       esac
34358       case $ac_var in #(
34359       _ | IFS | as_nl) ;; #(
34360       *) $as_unset $ac_var ;;
34361       esac ;;
34362     esac
34363   done
34364
34365   (set) 2>&1 |
34366     case $as_nl`(ac_space=' '; set) 2>&1` in #(
34367     *${as_nl}ac_space=\ *)
34368       # `set' does not quote correctly, so add quotes (double-quote
34369       # substitution turns \\\\ into \\, and sed turns \\ into \).
34370       sed -n \
34371         "s/'/'\\\\''/g;
34372           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34373       ;; #(
34374     *)
34375       # `set' quotes correctly as required by POSIX, so do not add quotes.
34376       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34377       ;;
34378     esac |
34379     sort
34380 ) |
34381   sed '
34382      /^ac_cv_env_/b end
34383      t clear
34384      :clear
34385      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34386      t end
34387      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34388      :end' >>confcache
34389 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34390   if test -w "$cache_file"; then
34391     test "x$cache_file" != "x/dev/null" &&
34392       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34393 echo "$as_me: updating cache $cache_file" >&6;}
34394     cat confcache >$cache_file
34395   else
34396     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34397 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34398   fi
34399 fi
34400 rm -f confcache
34401
34402 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34403 # Let make expand exec_prefix.
34404 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34405
34406 DEFS=-DHAVE_CONFIG_H
34407
34408 ac_libobjs=
34409 ac_ltlibobjs=
34410 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34411   # 1. Remove the extension, and $U if already installed.
34412   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34413   ac_i=`echo "$ac_i" | sed "$ac_script"`
34414   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
34415   #    will be set to the directory where LIBOBJS objects are built.
34416   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34417   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34418 done
34419 LIBOBJS=$ac_libobjs
34420
34421 LTLIBOBJS=$ac_ltlibobjs
34422
34423
34424 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34425   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34426 Usually this means the macro was only invoked conditionally." >&5
34427 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34428 Usually this means the macro was only invoked conditionally." >&2;}
34429    { (exit 1); exit 1; }; }
34430 fi
34431 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34432   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34433 Usually this means the macro was only invoked conditionally." >&5
34434 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34435 Usually this means the macro was only invoked conditionally." >&2;}
34436    { (exit 1); exit 1; }; }
34437 fi
34438
34439 : ${CONFIG_STATUS=./config.status}
34440 ac_clean_files_save=$ac_clean_files
34441 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34442 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34443 echo "$as_me: creating $CONFIG_STATUS" >&6;}
34444 cat >$CONFIG_STATUS <<_ACEOF
34445 #! $SHELL
34446 # Generated by $as_me.
34447 # Run this file to recreate the current configuration.
34448 # Compiler output produced by configure, useful for debugging
34449 # configure, is in config.log if it exists.
34450
34451 debug=false
34452 ac_cs_recheck=false
34453 ac_cs_silent=false
34454 SHELL=\${CONFIG_SHELL-$SHELL}
34455 _ACEOF
34456
34457 cat >>$CONFIG_STATUS <<\_ACEOF
34458 ## --------------------- ##
34459 ## M4sh Initialization.  ##
34460 ## --------------------- ##
34461
34462 # Be Bourne compatible
34463 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34464   emulate sh
34465   NULLCMD=:
34466   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34467   # is contrary to our usage.  Disable this feature.
34468   alias -g '${1+"$@"}'='"$@"'
34469   setopt NO_GLOB_SUBST
34470 else
34471   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
34472 fi
34473 BIN_SH=xpg4; export BIN_SH # for Tru64
34474 DUALCASE=1; export DUALCASE # for MKS sh
34475
34476
34477 # PATH needs CR
34478 # Avoid depending upon Character Ranges.
34479 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34480 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34481 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34482 as_cr_digits='0123456789'
34483 as_cr_alnum=$as_cr_Letters$as_cr_digits
34484
34485 # The user is always right.
34486 if test "${PATH_SEPARATOR+set}" != set; then
34487   echo "#! /bin/sh" >conf$$.sh
34488   echo  "exit 0"   >>conf$$.sh
34489   chmod +x conf$$.sh
34490   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34491     PATH_SEPARATOR=';'
34492   else
34493     PATH_SEPARATOR=:
34494   fi
34495   rm -f conf$$.sh
34496 fi
34497
34498 # Support unset when possible.
34499 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34500   as_unset=unset
34501 else
34502   as_unset=false
34503 fi
34504
34505
34506 # IFS
34507 # We need space, tab and new line, in precisely that order.  Quoting is
34508 # there to prevent editors from complaining about space-tab.
34509 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34510 # splitting by setting IFS to empty value.)
34511 as_nl='
34512 '
34513 IFS=" ""        $as_nl"
34514
34515 # Find who we are.  Look in the path if we contain no directory separator.
34516 case $0 in
34517   *[\\/]* ) as_myself=$0 ;;
34518   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34519 for as_dir in $PATH
34520 do
34521   IFS=$as_save_IFS
34522   test -z "$as_dir" && as_dir=.
34523   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34524 done
34525 IFS=$as_save_IFS
34526
34527      ;;
34528 esac
34529 # We did not find ourselves, most probably we were run as `sh COMMAND'
34530 # in which case we are not to be found in the path.
34531 if test "x$as_myself" = x; then
34532   as_myself=$0
34533 fi
34534 if test ! -f "$as_myself"; then
34535   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34536   { (exit 1); exit 1; }
34537 fi
34538
34539 # Work around bugs in pre-3.0 UWIN ksh.
34540 for as_var in ENV MAIL MAILPATH
34541 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34542 done
34543 PS1='$ '
34544 PS2='> '
34545 PS4='+ '
34546
34547 # NLS nuisances.
34548 for as_var in \
34549   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34550   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34551   LC_TELEPHONE LC_TIME
34552 do
34553   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34554     eval $as_var=C; export $as_var
34555   else
34556     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34557   fi
34558 done
34559
34560 # Required to use basename.
34561 if expr a : '\(a\)' >/dev/null 2>&1 &&
34562    test "X`expr 00001 : '.*\(...\)'`" = X001; then
34563   as_expr=expr
34564 else
34565   as_expr=false
34566 fi
34567
34568 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34569   as_basename=basename
34570 else
34571   as_basename=false
34572 fi
34573
34574
34575 # Name of the executable.
34576 as_me=`$as_basename -- "$0" ||
34577 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34578          X"$0" : 'X\(//\)$' \| \
34579          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34580 echo X/"$0" |
34581     sed '/^.*\/\([^/][^/]*\)\/*$/{
34582             s//\1/
34583             q
34584           }
34585           /^X\/\(\/\/\)$/{
34586             s//\1/
34587             q
34588           }
34589           /^X\/\(\/\).*/{
34590             s//\1/
34591             q
34592           }
34593           s/.*/./; q'`
34594
34595 # CDPATH.
34596 $as_unset CDPATH
34597
34598
34599
34600   as_lineno_1=$LINENO
34601   as_lineno_2=$LINENO
34602   test "x$as_lineno_1" != "x$as_lineno_2" &&
34603   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
34604
34605   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34606   # uniformly replaced by the line number.  The first 'sed' inserts a
34607   # line-number line after each line using $LINENO; the second 'sed'
34608   # does the real work.  The second script uses 'N' to pair each
34609   # line-number line with the line containing $LINENO, and appends
34610   # trailing '-' during substitution so that $LINENO is not a special
34611   # case at line end.
34612   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34613   # scripts with optimization help from Paolo Bonzini.  Blame Lee
34614   # E. McMahon (1931-1989) for sed's syntax.  :-)
34615   sed -n '
34616     p
34617     /[$]LINENO/=
34618   ' <$as_myself |
34619     sed '
34620       s/[$]LINENO.*/&-/
34621       t lineno
34622       b
34623       :lineno
34624       N
34625       :loop
34626       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34627       t loop
34628       s/-\n.*//
34629     ' >$as_me.lineno &&
34630   chmod +x "$as_me.lineno" ||
34631     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34632    { (exit 1); exit 1; }; }
34633
34634   # Don't try to exec as it changes $[0], causing all sort of problems
34635   # (the dirname of $[0] is not the place where we might find the
34636   # original and so on.  Autoconf is especially sensitive to this).
34637   . "./$as_me.lineno"
34638   # Exit status is that of the last command.
34639   exit
34640 }
34641
34642
34643 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34644   as_dirname=dirname
34645 else
34646   as_dirname=false
34647 fi
34648
34649 ECHO_C= ECHO_N= ECHO_T=
34650 case `echo -n x` in
34651 -n*)
34652   case `echo 'x\c'` in
34653   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
34654   *)   ECHO_C='\c';;
34655   esac;;
34656 *)
34657   ECHO_N='-n';;
34658 esac
34659
34660 if expr a : '\(a\)' >/dev/null 2>&1 &&
34661    test "X`expr 00001 : '.*\(...\)'`" = X001; then
34662   as_expr=expr
34663 else
34664   as_expr=false
34665 fi
34666
34667 rm -f conf$$ conf$$.exe conf$$.file
34668 if test -d conf$$.dir; then
34669   rm -f conf$$.dir/conf$$.file
34670 else
34671   rm -f conf$$.dir
34672   mkdir conf$$.dir
34673 fi
34674 echo >conf$$.file
34675 if ln -s conf$$.file conf$$ 2>/dev/null; then
34676   as_ln_s='ln -s'
34677   # ... but there are two gotchas:
34678   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34679   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34680   # In both cases, we have to default to `cp -p'.
34681   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34682     as_ln_s='cp -p'
34683 elif ln conf$$.file conf$$ 2>/dev/null; then
34684   as_ln_s=ln
34685 else
34686   as_ln_s='cp -p'
34687 fi
34688 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34689 rmdir conf$$.dir 2>/dev/null
34690
34691 if mkdir -p . 2>/dev/null; then
34692   as_mkdir_p=:
34693 else
34694   test -d ./-p && rmdir ./-p
34695   as_mkdir_p=false
34696 fi
34697
34698 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
34699 # systems may use methods other than mode bits to determine executability.
34700 cat >conf$$.file <<_ASEOF
34701 #! /bin/sh
34702 exit 0
34703 _ASEOF
34704 chmod +x conf$$.file
34705 if test -x conf$$.file >/dev/null 2>&1; then
34706   as_executable_p="test -x"
34707 else
34708   as_executable_p=:
34709 fi
34710 rm -f conf$$.file
34711
34712 # Sed expression to map a string onto a valid CPP name.
34713 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34714
34715 # Sed expression to map a string onto a valid variable name.
34716 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34717
34718
34719 exec 6>&1
34720
34721 # Save the log message, to keep $[0] and so on meaningful, and to
34722 # report actual input values of CONFIG_FILES etc. instead of their
34723 # values after options handling.
34724 ac_log="
34725 This file was extended by llvm $as_me 2.6svn, which was
34726 generated by GNU Autoconf 2.60.  Invocation command line was
34727
34728   CONFIG_FILES    = $CONFIG_FILES
34729   CONFIG_HEADERS  = $CONFIG_HEADERS
34730   CONFIG_LINKS    = $CONFIG_LINKS
34731   CONFIG_COMMANDS = $CONFIG_COMMANDS
34732   $ $0 $@
34733
34734 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34735 "
34736
34737 _ACEOF
34738
34739 cat >>$CONFIG_STATUS <<_ACEOF
34740 # Files that config.status was made for.
34741 config_files="$ac_config_files"
34742 config_headers="$ac_config_headers"
34743 config_commands="$ac_config_commands"
34744
34745 _ACEOF
34746
34747 cat >>$CONFIG_STATUS <<\_ACEOF
34748 ac_cs_usage="\
34749 \`$as_me' instantiates files from templates according to the
34750 current configuration.
34751
34752 Usage: $0 [OPTIONS] [FILE]...
34753
34754   -h, --help       print this help, then exit
34755   -V, --version    print version number, then exit
34756   -q, --quiet      do not print progress messages
34757   -d, --debug      don't remove temporary files
34758       --recheck    update $as_me by reconfiguring in the same conditions
34759   --file=FILE[:TEMPLATE]
34760                    instantiate the configuration file FILE
34761   --header=FILE[:TEMPLATE]
34762                    instantiate the configuration header FILE
34763
34764 Configuration files:
34765 $config_files
34766
34767 Configuration headers:
34768 $config_headers
34769
34770 Configuration commands:
34771 $config_commands
34772
34773 Report bugs to <bug-autoconf@gnu.org>."
34774
34775 _ACEOF
34776 cat >>$CONFIG_STATUS <<_ACEOF
34777 ac_cs_version="\\
34778 llvm config.status 2.6svn
34779 configured by $0, generated by GNU Autoconf 2.60,
34780   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
34781
34782 Copyright (C) 2006 Free Software Foundation, Inc.
34783 This config.status script is free software; the Free Software Foundation
34784 gives unlimited permission to copy, distribute and modify it."
34785
34786 ac_pwd='$ac_pwd'
34787 srcdir='$srcdir'
34788 INSTALL='$INSTALL'
34789 _ACEOF
34790
34791 cat >>$CONFIG_STATUS <<\_ACEOF
34792 # If no file are specified by the user, then we need to provide default
34793 # value.  By we need to know if files were specified by the user.
34794 ac_need_defaults=:
34795 while test $# != 0
34796 do
34797   case $1 in
34798   --*=*)
34799     ac_option=`expr "X$1" : 'X\([^=]*\)='`
34800     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34801     ac_shift=:
34802     ;;
34803   *)
34804     ac_option=$1
34805     ac_optarg=$2
34806     ac_shift=shift
34807     ;;
34808   esac
34809
34810   case $ac_option in
34811   # Handling of the options.
34812   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34813     ac_cs_recheck=: ;;
34814   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34815     echo "$ac_cs_version"; exit ;;
34816   --debug | --debu | --deb | --de | --d | -d )
34817     debug=: ;;
34818   --file | --fil | --fi | --f )
34819     $ac_shift
34820     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
34821     ac_need_defaults=false;;
34822   --header | --heade | --head | --hea )
34823     $ac_shift
34824     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
34825     ac_need_defaults=false;;
34826   --he | --h)
34827     # Conflict between --help and --header
34828     { echo "$as_me: error: ambiguous option: $1
34829 Try \`$0 --help' for more information." >&2
34830    { (exit 1); exit 1; }; };;
34831   --help | --hel | -h )
34832     echo "$ac_cs_usage"; exit ;;
34833   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34834   | -silent | --silent | --silen | --sile | --sil | --si | --s)
34835     ac_cs_silent=: ;;
34836
34837   # This is an error.
34838   -*) { echo "$as_me: error: unrecognized option: $1
34839 Try \`$0 --help' for more information." >&2
34840    { (exit 1); exit 1; }; } ;;
34841
34842   *) ac_config_targets="$ac_config_targets $1"
34843      ac_need_defaults=false ;;
34844
34845   esac
34846   shift
34847 done
34848
34849 ac_configure_extra_args=
34850
34851 if $ac_cs_silent; then
34852   exec 6>/dev/null
34853   ac_configure_extra_args="$ac_configure_extra_args --silent"
34854 fi
34855
34856 _ACEOF
34857 cat >>$CONFIG_STATUS <<_ACEOF
34858 if \$ac_cs_recheck; then
34859   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34860   CONFIG_SHELL=$SHELL
34861   export CONFIG_SHELL
34862   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34863 fi
34864
34865 _ACEOF
34866 cat >>$CONFIG_STATUS <<\_ACEOF
34867 exec 5>>config.log
34868 {
34869   echo
34870   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34871 ## Running $as_me. ##
34872 _ASBOX
34873   echo "$ac_log"
34874 } >&5
34875
34876 _ACEOF
34877 cat >>$CONFIG_STATUS <<_ACEOF
34878 #
34879 # INIT-COMMANDS
34880 #
34881 llvm_src="${srcdir}"
34882
34883 _ACEOF
34884
34885 cat >>$CONFIG_STATUS <<\_ACEOF
34886
34887 # Handling of arguments.
34888 for ac_config_target in $ac_config_targets
34889 do
34890   case $ac_config_target in
34891     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34892     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
34893     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
34894     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
34895     "include/llvm/ADT/iterator.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
34896     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
34897     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
34898     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
34899     "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
34900     "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34901     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34902     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34903     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34904     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34905     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
34906     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
34907     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34908     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
34909     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
34910     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34911     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34912     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
34913     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
34914     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
34915
34916   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34917 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34918    { (exit 1); exit 1; }; };;
34919   esac
34920 done
34921
34922
34923 # If the user did not use the arguments to specify the items to instantiate,
34924 # then the envvar interface is used.  Set only those that are not.
34925 # We use the long form for the default assignment because of an extremely
34926 # bizarre bug on SunOS 4.1.3.
34927 if $ac_need_defaults; then
34928   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34929   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34930   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34931 fi
34932
34933 # Have a temporary directory for convenience.  Make it in the build tree
34934 # simply because there is no reason against having it here, and in addition,
34935 # creating and moving files from /tmp can sometimes cause problems.
34936 # Hook for its removal unless debugging.
34937 # Note that there is a small window in which the directory will not be cleaned:
34938 # after its creation but before its name has been assigned to `$tmp'.
34939 $debug ||
34940 {
34941   tmp=
34942   trap 'exit_status=$?
34943   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34944 ' 0
34945   trap '{ (exit 1); exit 1; }' 1 2 13 15
34946 }
34947 # Create a (secure) tmp directory for tmp files.
34948
34949 {
34950   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34951   test -n "$tmp" && test -d "$tmp"
34952 }  ||
34953 {
34954   tmp=./conf$$-$RANDOM
34955   (umask 077 && mkdir "$tmp")
34956 } ||
34957 {
34958    echo "$me: cannot create a temporary directory in ." >&2
34959    { (exit 1); exit 1; }
34960 }
34961
34962 #
34963 # Set up the sed scripts for CONFIG_FILES section.
34964 #
34965
34966 # No need to generate the scripts if there are no CONFIG_FILES.
34967 # This happens for instance when ./config.status config.h
34968 if test -n "$CONFIG_FILES"; then
34969
34970 _ACEOF
34971
34972
34973
34974 ac_delim='%!_!# '
34975 for ac_last_try in false false false false false :; do
34976   cat >conf$$subs.sed <<_ACEOF
34977 SHELL!$SHELL$ac_delim
34978 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34979 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34980 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34981 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34982 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34983 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34984 exec_prefix!$exec_prefix$ac_delim
34985 prefix!$prefix$ac_delim
34986 program_transform_name!$program_transform_name$ac_delim
34987 bindir!$bindir$ac_delim
34988 sbindir!$sbindir$ac_delim
34989 libexecdir!$libexecdir$ac_delim
34990 datarootdir!$datarootdir$ac_delim
34991 datadir!$datadir$ac_delim
34992 sysconfdir!$sysconfdir$ac_delim
34993 sharedstatedir!$sharedstatedir$ac_delim
34994 localstatedir!$localstatedir$ac_delim
34995 includedir!$includedir$ac_delim
34996 oldincludedir!$oldincludedir$ac_delim
34997 docdir!$docdir$ac_delim
34998 infodir!$infodir$ac_delim
34999 htmldir!$htmldir$ac_delim
35000 dvidir!$dvidir$ac_delim
35001 pdfdir!$pdfdir$ac_delim
35002 psdir!$psdir$ac_delim
35003 libdir!$libdir$ac_delim
35004 localedir!$localedir$ac_delim
35005 mandir!$mandir$ac_delim
35006 DEFS!$DEFS$ac_delim
35007 ECHO_C!$ECHO_C$ac_delim
35008 ECHO_N!$ECHO_N$ac_delim
35009 ECHO_T!$ECHO_T$ac_delim
35010 LIBS!$LIBS$ac_delim
35011 build_alias!$build_alias$ac_delim
35012 host_alias!$host_alias$ac_delim
35013 target_alias!$target_alias$ac_delim
35014 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
35015 subdirs!$subdirs$ac_delim
35016 build!$build$ac_delim
35017 build_cpu!$build_cpu$ac_delim
35018 build_vendor!$build_vendor$ac_delim
35019 build_os!$build_os$ac_delim
35020 host!$host$ac_delim
35021 host_cpu!$host_cpu$ac_delim
35022 host_vendor!$host_vendor$ac_delim
35023 host_os!$host_os$ac_delim
35024 target!$target$ac_delim
35025 target_cpu!$target_cpu$ac_delim
35026 target_vendor!$target_vendor$ac_delim
35027 target_os!$target_os$ac_delim
35028 OS!$OS$ac_delim
35029 LINKALL!$LINKALL$ac_delim
35030 NOLINKALL!$NOLINKALL$ac_delim
35031 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
35032 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
35033 ARCH!$ARCH$ac_delim
35034 ENDIAN!$ENDIAN$ac_delim
35035 CC!$CC$ac_delim
35036 CFLAGS!$CFLAGS$ac_delim
35037 LDFLAGS!$LDFLAGS$ac_delim
35038 CPPFLAGS!$CPPFLAGS$ac_delim
35039 ac_ct_CC!$ac_ct_CC$ac_delim
35040 EXEEXT!$EXEEXT$ac_delim
35041 OBJEXT!$OBJEXT$ac_delim
35042 CPP!$CPP$ac_delim
35043 GREP!$GREP$ac_delim
35044 EGREP!$EGREP$ac_delim
35045 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
35046 BUILD_CC!$BUILD_CC$ac_delim
35047 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
35048 BUILD_CXX!$BUILD_CXX$ac_delim
35049 CVSBUILD!$CVSBUILD$ac_delim
35050 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
35051 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
35052 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
35053 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
35054 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
35055 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
35056 JIT!$JIT$ac_delim
35057 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
35058 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
35059 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
35060 ENABLE_PIC!$ENABLE_PIC$ac_delim
35061 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
35062 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
35063 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
35064 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
35065 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
35066 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
35067 CXX!$CXX$ac_delim
35068 CXXFLAGS!$CXXFLAGS$ac_delim
35069 ac_ct_CXX!$ac_ct_CXX$ac_delim
35070 NM!$NM$ac_delim
35071 ifGNUmake!$ifGNUmake$ac_delim
35072 LN_S!$LN_S$ac_delim
35073 CMP!$CMP$ac_delim
35074 _ACEOF
35075
35076   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35077     break
35078   elif $ac_last_try; then
35079     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35080 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35081    { (exit 1); exit 1; }; }
35082   else
35083     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35084   fi
35085 done
35086
35087 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35088 if test -n "$ac_eof"; then
35089   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35090   ac_eof=`expr $ac_eof + 1`
35091 fi
35092
35093 cat >>$CONFIG_STATUS <<_ACEOF
35094 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
35095 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35096 _ACEOF
35097 sed '
35098 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35099 s/^/s,@/; s/!/@,|#_!!_#|/
35100 :n
35101 t n
35102 s/'"$ac_delim"'$/,g/; t
35103 s/$/\\/; p
35104 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35105 ' >>$CONFIG_STATUS <conf$$subs.sed
35106 rm -f conf$$subs.sed
35107 cat >>$CONFIG_STATUS <<_ACEOF
35108 CEOF$ac_eof
35109 _ACEOF
35110
35111
35112 ac_delim='%!_!# '
35113 for ac_last_try in false false false false false :; do
35114   cat >conf$$subs.sed <<_ACEOF
35115 CP!$CP$ac_delim
35116 DATE!$DATE$ac_delim
35117 FIND!$FIND$ac_delim
35118 MKDIR!$MKDIR$ac_delim
35119 MV!$MV$ac_delim
35120 RANLIB!$RANLIB$ac_delim
35121 RM!$RM$ac_delim
35122 SED!$SED$ac_delim
35123 TAR!$TAR$ac_delim
35124 BINPWD!$BINPWD$ac_delim
35125 GRAPHVIZ!$GRAPHVIZ$ac_delim
35126 DOT!$DOT$ac_delim
35127 GV!$GV$ac_delim
35128 DOTTY!$DOTTY$ac_delim
35129 PERL!$PERL$ac_delim
35130 HAVE_PERL!$HAVE_PERL$ac_delim
35131 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
35132 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
35133 INSTALL_DATA!$INSTALL_DATA$ac_delim
35134 BZIP2!$BZIP2$ac_delim
35135 DOXYGEN!$DOXYGEN$ac_delim
35136 GROFF!$GROFF$ac_delim
35137 GZIP!$GZIP$ac_delim
35138 POD2HTML!$POD2HTML$ac_delim
35139 POD2MAN!$POD2MAN$ac_delim
35140 RUNTEST!$RUNTEST$ac_delim
35141 TCLSH!$TCLSH$ac_delim
35142 ZIP!$ZIP$ac_delim
35143 OCAMLC!$OCAMLC$ac_delim
35144 OCAMLOPT!$OCAMLOPT$ac_delim
35145 OCAMLDEP!$OCAMLDEP$ac_delim
35146 OCAMLDOC!$OCAMLDOC$ac_delim
35147 GAS!$GAS$ac_delim
35148 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
35149 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
35150 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
35151 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
35152 LIBADD_DL!$LIBADD_DL$ac_delim
35153 ECHO!$ECHO$ac_delim
35154 AR!$AR$ac_delim
35155 STRIP!$STRIP$ac_delim
35156 CXXCPP!$CXXCPP$ac_delim
35157 F77!$F77$ac_delim
35158 FFLAGS!$FFLAGS$ac_delim
35159 ac_ct_F77!$ac_ct_F77$ac_delim
35160 LIBTOOL!$LIBTOOL$ac_delim
35161 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
35162 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
35163 LLVMGCC!$LLVMGCC$ac_delim
35164 LLVMGXX!$LLVMGXX$ac_delim
35165 USE_UDIS86!$USE_UDIS86$ac_delim
35166 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
35167 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
35168 ALLOCA!$ALLOCA$ac_delim
35169 MMAP_FILE!$MMAP_FILE$ac_delim
35170 LLVMCC1!$LLVMCC1$ac_delim
35171 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
35172 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
35173 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
35174 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
35175 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
35176 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
35177 SHLIBEXT!$SHLIBEXT$ac_delim
35178 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
35179 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
35180 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
35181 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
35182 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
35183 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
35184 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
35185 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
35186 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
35187 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
35188 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
35189 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
35190 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
35191 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
35192 RPATH!$RPATH$ac_delim
35193 RDYNAMIC!$RDYNAMIC$ac_delim
35194 LIBOBJS!$LIBOBJS$ac_delim
35195 LTLIBOBJS!$LTLIBOBJS$ac_delim
35196 _ACEOF
35197
35198   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 81; then
35199     break
35200   elif $ac_last_try; then
35201     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35202 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35203    { (exit 1); exit 1; }; }
35204   else
35205     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35206   fi
35207 done
35208
35209 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35210 if test -n "$ac_eof"; then
35211   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35212   ac_eof=`expr $ac_eof + 1`
35213 fi
35214
35215 cat >>$CONFIG_STATUS <<_ACEOF
35216 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35217 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35218 _ACEOF
35219 sed '
35220 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35221 s/^/s,@/; s/!/@,|#_!!_#|/
35222 :n
35223 t n
35224 s/'"$ac_delim"'$/,g/; t
35225 s/$/\\/; p
35226 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35227 ' >>$CONFIG_STATUS <conf$$subs.sed
35228 rm -f conf$$subs.sed
35229 cat >>$CONFIG_STATUS <<_ACEOF
35230 :end
35231 s/|#_!!_#|//g
35232 CEOF$ac_eof
35233 _ACEOF
35234
35235
35236 # VPATH may cause trouble with some makes, so we remove $(srcdir),
35237 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35238 # trailing colons and then remove the whole line if VPATH becomes empty
35239 # (actually we leave an empty line to preserve line numbers).
35240 if test "x$srcdir" = x.; then
35241   ac_vpsub='/^[  ]*VPATH[        ]*=/{
35242 s/:*\$(srcdir):*/:/
35243 s/:*\${srcdir}:*/:/
35244 s/:*@srcdir@:*/:/
35245 s/^\([^=]*=[     ]*\):*/\1/
35246 s/:*$//
35247 s/^[^=]*=[       ]*$//
35248 }'
35249 fi
35250
35251 cat >>$CONFIG_STATUS <<\_ACEOF
35252 fi # test -n "$CONFIG_FILES"
35253
35254
35255 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
35256 do
35257   case $ac_tag in
35258   :[FHLC]) ac_mode=$ac_tag; continue;;
35259   esac
35260   case $ac_mode$ac_tag in
35261   :[FHL]*:*);;
35262   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35263 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35264    { (exit 1); exit 1; }; };;
35265   :[FH]-) ac_tag=-:-;;
35266   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35267   esac
35268   ac_save_IFS=$IFS
35269   IFS=:
35270   set x $ac_tag
35271   IFS=$ac_save_IFS
35272   shift
35273   ac_file=$1
35274   shift
35275
35276   case $ac_mode in
35277   :L) ac_source=$1;;
35278   :[FH])
35279     ac_file_inputs=
35280     for ac_f
35281     do
35282       case $ac_f in
35283       -) ac_f="$tmp/stdin";;
35284       *) # Look for the file first in the build tree, then in the source tree
35285          # (if the path is not absolute).  The absolute path cannot be DOS-style,
35286          # because $ac_f cannot contain `:'.
35287          test -f "$ac_f" ||
35288            case $ac_f in
35289            [\\/$]*) false;;
35290            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35291            esac ||
35292            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35293 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35294    { (exit 1); exit 1; }; };;
35295       esac
35296       ac_file_inputs="$ac_file_inputs $ac_f"
35297     done
35298
35299     # Let's still pretend it is `configure' which instantiates (i.e., don't
35300     # use $as_me), people would be surprised to read:
35301     #    /* config.h.  Generated by config.status.  */
35302     configure_input="Generated from "`IFS=:
35303           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35304     if test x"$ac_file" != x-; then
35305       configure_input="$ac_file.  $configure_input"
35306       { echo "$as_me:$LINENO: creating $ac_file" >&5
35307 echo "$as_me: creating $ac_file" >&6;}
35308     fi
35309
35310     case $ac_tag in
35311     *:-:* | *:-) cat >"$tmp/stdin";;
35312     esac
35313     ;;
35314   esac
35315
35316   ac_dir=`$as_dirname -- "$ac_file" ||
35317 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35318          X"$ac_file" : 'X\(//\)[^/]' \| \
35319          X"$ac_file" : 'X\(//\)$' \| \
35320          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35321 echo X"$ac_file" |
35322     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35323             s//\1/
35324             q
35325           }
35326           /^X\(\/\/\)[^/].*/{
35327             s//\1/
35328             q
35329           }
35330           /^X\(\/\/\)$/{
35331             s//\1/
35332             q
35333           }
35334           /^X\(\/\).*/{
35335             s//\1/
35336             q
35337           }
35338           s/.*/./; q'`
35339   { as_dir="$ac_dir"
35340   case $as_dir in #(
35341   -*) as_dir=./$as_dir;;
35342   esac
35343   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35344     as_dirs=
35345     while :; do
35346       case $as_dir in #(
35347       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35348       *) as_qdir=$as_dir;;
35349       esac
35350       as_dirs="'$as_qdir' $as_dirs"
35351       as_dir=`$as_dirname -- "$as_dir" ||
35352 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35353          X"$as_dir" : 'X\(//\)[^/]' \| \
35354          X"$as_dir" : 'X\(//\)$' \| \
35355          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35356 echo X"$as_dir" |
35357     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35358             s//\1/
35359             q
35360           }
35361           /^X\(\/\/\)[^/].*/{
35362             s//\1/
35363             q
35364           }
35365           /^X\(\/\/\)$/{
35366             s//\1/
35367             q
35368           }
35369           /^X\(\/\).*/{
35370             s//\1/
35371             q
35372           }
35373           s/.*/./; q'`
35374       test -d "$as_dir" && break
35375     done
35376     test -z "$as_dirs" || eval "mkdir $as_dirs"
35377   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35378 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35379    { (exit 1); exit 1; }; }; }
35380   ac_builddir=.
35381
35382 case "$ac_dir" in
35383 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35384 *)
35385   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35386   # A ".." for each directory in $ac_dir_suffix.
35387   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35388   case $ac_top_builddir_sub in
35389   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35390   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35391   esac ;;
35392 esac
35393 ac_abs_top_builddir=$ac_pwd
35394 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35395 # for backward compatibility:
35396 ac_top_builddir=$ac_top_build_prefix
35397
35398 case $srcdir in
35399   .)  # We are building in place.
35400     ac_srcdir=.
35401     ac_top_srcdir=$ac_top_builddir_sub
35402     ac_abs_top_srcdir=$ac_pwd ;;
35403   [\\/]* | ?:[\\/]* )  # Absolute name.
35404     ac_srcdir=$srcdir$ac_dir_suffix;
35405     ac_top_srcdir=$srcdir
35406     ac_abs_top_srcdir=$srcdir ;;
35407   *) # Relative name.
35408     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35409     ac_top_srcdir=$ac_top_build_prefix$srcdir
35410     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35411 esac
35412 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35413
35414
35415   case $ac_mode in
35416   :F)
35417   #
35418   # CONFIG_FILE
35419   #
35420
35421   case $INSTALL in
35422   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35423   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35424   esac
35425 _ACEOF
35426
35427 cat >>$CONFIG_STATUS <<\_ACEOF
35428 # If the template does not know about datarootdir, expand it.
35429 # FIXME: This hack should be removed a few years after 2.60.
35430 ac_datarootdir_hack=; ac_datarootdir_seen=
35431
35432 case `sed -n '/datarootdir/ {
35433   p
35434   q
35435 }
35436 /@datadir@/p
35437 /@docdir@/p
35438 /@infodir@/p
35439 /@localedir@/p
35440 /@mandir@/p
35441 ' $ac_file_inputs` in
35442 *datarootdir*) ac_datarootdir_seen=yes;;
35443 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35444   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35445 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35446 _ACEOF
35447 cat >>$CONFIG_STATUS <<_ACEOF
35448   ac_datarootdir_hack='
35449   s&@datadir@&$datadir&g
35450   s&@docdir@&$docdir&g
35451   s&@infodir@&$infodir&g
35452   s&@localedir@&$localedir&g
35453   s&@mandir@&$mandir&g
35454     s&\\\${datarootdir}&$datarootdir&g' ;;
35455 esac
35456 _ACEOF
35457
35458 # Neutralize VPATH when `$srcdir' = `.'.
35459 # Shell code in configure.ac might set extrasub.
35460 # FIXME: do we really want to maintain this feature?
35461 cat >>$CONFIG_STATUS <<_ACEOF
35462   sed "$ac_vpsub
35463 $extrasub
35464 _ACEOF
35465 cat >>$CONFIG_STATUS <<\_ACEOF
35466 :t
35467 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35468 s&@configure_input@&$configure_input&;t t
35469 s&@top_builddir@&$ac_top_builddir_sub&;t t
35470 s&@srcdir@&$ac_srcdir&;t t
35471 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35472 s&@top_srcdir@&$ac_top_srcdir&;t t
35473 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35474 s&@builddir@&$ac_builddir&;t t
35475 s&@abs_builddir@&$ac_abs_builddir&;t t
35476 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35477 s&@INSTALL@&$ac_INSTALL&;t t
35478 $ac_datarootdir_hack
35479 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
35480
35481 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35482   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35483   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35484   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35485 which seems to be undefined.  Please make sure it is defined." >&5
35486 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35487 which seems to be undefined.  Please make sure it is defined." >&2;}
35488
35489   rm -f "$tmp/stdin"
35490   case $ac_file in
35491   -) cat "$tmp/out"; rm -f "$tmp/out";;
35492   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35493   esac
35494  ;;
35495   :H)
35496   #
35497   # CONFIG_HEADER
35498   #
35499 _ACEOF
35500
35501 # Transform confdefs.h into a sed script `conftest.defines', that
35502 # substitutes the proper values into config.h.in to produce config.h.
35503 rm -f conftest.defines conftest.tail
35504 # First, append a space to every undef/define line, to ease matching.
35505 echo 's/$/ /' >conftest.defines
35506 # Then, protect against being on the right side of a sed subst, or in
35507 # an unquoted here document, in config.status.  If some macros were
35508 # called several times there might be several #defines for the same
35509 # symbol, which is useless.  But do not sort them, since the last
35510 # AC_DEFINE must be honored.
35511 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35512 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35513 # NAME is the cpp macro being defined, VALUE is the value it is being given.
35514 # PARAMS is the parameter list in the macro definition--in most cases, it's
35515 # just an empty string.
35516 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
35517 ac_dB='\\)[      (].*,\\1define\\2'
35518 ac_dC=' '
35519 ac_dD=' ,'
35520
35521 uniq confdefs.h |
35522   sed -n '
35523         t rset
35524         :rset
35525         s/^[     ]*#[    ]*define[       ][      ]*//
35526         t ok
35527         d
35528         :ok
35529         s/[\\&,]/\\&/g
35530         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35531         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35532   ' >>conftest.defines
35533
35534 # Remove the space that was appended to ease matching.
35535 # Then replace #undef with comments.  This is necessary, for
35536 # example, in the case of _POSIX_SOURCE, which is predefined and required
35537 # on some systems where configure will not decide to define it.
35538 # (The regexp can be short, since the line contains either #define or #undef.)
35539 echo 's/ $//
35540 s,^[     #]*u.*,/* & */,' >>conftest.defines
35541
35542 # Break up conftest.defines:
35543 ac_max_sed_lines=50
35544
35545 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35546 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35547 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35548 # et cetera.
35549 ac_in='$ac_file_inputs'
35550 ac_out='"$tmp/out1"'
35551 ac_nxt='"$tmp/out2"'
35552
35553 while :
35554 do
35555   # Write a here document:
35556     cat >>$CONFIG_STATUS <<_ACEOF
35557     # First, check the format of the line:
35558     cat >"\$tmp/defines.sed" <<\\CEOF
35559 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
35560 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
35561 b
35562 :def
35563 _ACEOF
35564   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
35565   echo 'CEOF
35566     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35567   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35568   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35569   grep . conftest.tail >/dev/null || break
35570   rm -f conftest.defines
35571   mv conftest.tail conftest.defines
35572 done
35573 rm -f conftest.defines conftest.tail
35574
35575 echo "ac_result=$ac_in" >>$CONFIG_STATUS
35576 cat >>$CONFIG_STATUS <<\_ACEOF
35577   if test x"$ac_file" != x-; then
35578     echo "/* $configure_input  */" >"$tmp/config.h"
35579     cat "$ac_result" >>"$tmp/config.h"
35580     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
35581       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35582 echo "$as_me: $ac_file is unchanged" >&6;}
35583     else
35584       rm -f $ac_file
35585       mv "$tmp/config.h" $ac_file
35586     fi
35587   else
35588     echo "/* $configure_input  */"
35589     cat "$ac_result"
35590   fi
35591   rm -f "$tmp/out12"
35592  ;;
35593
35594   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35595 echo "$as_me: executing $ac_file commands" >&6;}
35596  ;;
35597   esac
35598
35599
35600   case $ac_file$ac_mode in
35601     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
35602    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
35603     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
35604    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
35605     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
35606    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
35607     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
35608    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
35609     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
35610    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
35611     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
35612    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
35613     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
35614    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
35615     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
35616    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
35617     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
35618    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
35619     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
35620    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
35621     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
35622    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
35623     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
35624    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
35625     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
35626    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
35627
35628   esac
35629 done # for ac_tag
35630
35631
35632 { (exit 0); exit 0; }
35633 _ACEOF
35634 chmod +x $CONFIG_STATUS
35635 ac_clean_files=$ac_clean_files_save
35636
35637
35638 # configure is writing to config.log, and then calls config.status.
35639 # config.status does its own redirection, appending to config.log.
35640 # Unfortunately, on DOS this fails, as config.log is still kept open
35641 # by configure, so config.status won't be able to write to it; its
35642 # output is simply discarded.  So we exec the FD to /dev/null,
35643 # effectively closing config.log, so it can be properly (re)opened and
35644 # appended to by config.status.  When coming back to configure, we
35645 # need to make the FD available again.
35646 if test "$no_create" != yes; then
35647   ac_cs_success=:
35648   ac_config_status_args=
35649   test "$silent" = yes &&
35650     ac_config_status_args="$ac_config_status_args --quiet"
35651   exec 5>/dev/null
35652   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35653   exec 5>>config.log
35654   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35655   # would make configure fail if this is the last instruction.
35656   $ac_cs_success || { (exit 1); exit 1; }
35657 fi
35658
35659 #
35660 # CONFIG_SUBDIRS section.
35661 #
35662 if test "$no_recursion" != yes; then
35663
35664   # Remove --cache-file and --srcdir arguments so they do not pile up.
35665   ac_sub_configure_args=
35666   ac_prev=
35667   eval "set x $ac_configure_args"
35668   shift
35669   for ac_arg
35670   do
35671     if test -n "$ac_prev"; then
35672       ac_prev=
35673       continue
35674     fi
35675     case $ac_arg in
35676     -cache-file | --cache-file | --cache-fil | --cache-fi \
35677     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35678       ac_prev=cache_file ;;
35679     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35680     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35681     | --c=*)
35682       ;;
35683     --config-cache | -C)
35684       ;;
35685     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35686       ac_prev=srcdir ;;
35687     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35688       ;;
35689     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35690       ac_prev=prefix ;;
35691     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35692       ;;
35693     *)
35694       case $ac_arg in
35695       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35696       esac
35697       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
35698     esac
35699   done
35700
35701   # Always prepend --prefix to ensure using the same prefix
35702   # in subdir configurations.
35703   ac_arg="--prefix=$prefix"
35704   case $ac_arg in
35705   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35706   esac
35707   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
35708
35709   ac_popdir=`pwd`
35710   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35711
35712     # Do not complain, so a configure script can configure whichever
35713     # parts of a large source tree are present.
35714     test -d "$srcdir/$ac_dir" || continue
35715
35716     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35717     echo "$as_me:$LINENO: $ac_msg" >&5
35718     echo "$ac_msg" >&6
35719     { as_dir="$ac_dir"
35720   case $as_dir in #(
35721   -*) as_dir=./$as_dir;;
35722   esac
35723   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35724     as_dirs=
35725     while :; do
35726       case $as_dir in #(
35727       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35728       *) as_qdir=$as_dir;;
35729       esac
35730       as_dirs="'$as_qdir' $as_dirs"
35731       as_dir=`$as_dirname -- "$as_dir" ||
35732 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35733          X"$as_dir" : 'X\(//\)[^/]' \| \
35734          X"$as_dir" : 'X\(//\)$' \| \
35735          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35736 echo X"$as_dir" |
35737     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35738             s//\1/
35739             q
35740           }
35741           /^X\(\/\/\)[^/].*/{
35742             s//\1/
35743             q
35744           }
35745           /^X\(\/\/\)$/{
35746             s//\1/
35747             q
35748           }
35749           /^X\(\/\).*/{
35750             s//\1/
35751             q
35752           }
35753           s/.*/./; q'`
35754       test -d "$as_dir" && break
35755     done
35756     test -z "$as_dirs" || eval "mkdir $as_dirs"
35757   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35758 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35759    { (exit 1); exit 1; }; }; }
35760     ac_builddir=.
35761
35762 case "$ac_dir" in
35763 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35764 *)
35765   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35766   # A ".." for each directory in $ac_dir_suffix.
35767   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35768   case $ac_top_builddir_sub in
35769   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35770   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35771   esac ;;
35772 esac
35773 ac_abs_top_builddir=$ac_pwd
35774 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35775 # for backward compatibility:
35776 ac_top_builddir=$ac_top_build_prefix
35777
35778 case $srcdir in
35779   .)  # We are building in place.
35780     ac_srcdir=.
35781     ac_top_srcdir=$ac_top_builddir_sub
35782     ac_abs_top_srcdir=$ac_pwd ;;
35783   [\\/]* | ?:[\\/]* )  # Absolute name.
35784     ac_srcdir=$srcdir$ac_dir_suffix;
35785     ac_top_srcdir=$srcdir
35786     ac_abs_top_srcdir=$srcdir ;;
35787   *) # Relative name.
35788     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35789     ac_top_srcdir=$ac_top_build_prefix$srcdir
35790     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35791 esac
35792 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35793
35794
35795     cd "$ac_dir"
35796
35797     # Check for guested configure; otherwise get Cygnus style configure.
35798     if test -f "$ac_srcdir/configure.gnu"; then
35799       ac_sub_configure=$ac_srcdir/configure.gnu
35800     elif test -f "$ac_srcdir/configure"; then
35801       ac_sub_configure=$ac_srcdir/configure
35802     elif test -f "$ac_srcdir/configure.in"; then
35803       # This should be Cygnus configure.
35804       ac_sub_configure=$ac_aux_dir/configure
35805     else
35806       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
35807 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
35808       ac_sub_configure=
35809     fi
35810
35811     # The recursion is here.
35812     if test -n "$ac_sub_configure"; then
35813       # Make the cache file name correct relative to the subdirectory.
35814       case $cache_file in
35815       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
35816       *) # Relative name.
35817         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
35818       esac
35819
35820       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
35821 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
35822       # The eval makes quoting arguments work.
35823       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
35824            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
35825         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
35826 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
35827    { (exit 1); exit 1; }; }
35828     fi
35829
35830     cd "$ac_popdir"
35831   done
35832 fi
35833